From 54f9ee450905e98296e6afd1376b3d1e06a1e00f Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Sun, 25 Apr 2004 06:51:10 +0000 Subject: [PATCH] Renamed the core namespace's submodules to have a leading underscore. This is so epydoc will automatically mark them as private and won't document the objects they contain (they'll be docmented via the wx module.) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26945 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/config.py | 21 +- wxPython/contrib/activex/activex.i | 2 +- wxPython/contrib/gizmos/gizmos.i | 2 +- wxPython/contrib/gizmos/gtk/gizmos.py | 30 +- wxPython/contrib/glcanvas/glcanvas.i | 2 +- wxPython/contrib/glcanvas/gtk/glcanvas.py | 8 +- wxPython/contrib/iewin/iewin.i | 2 +- wxPython/contrib/ogl/gtk/ogl.py | 22 +- wxPython/contrib/ogl/ogl.i | 2 +- wxPython/contrib/stc/gtk/stc.py | 10 +- wxPython/contrib/stc/stc.i | 2 +- wxPython/contrib/xrc/gtk/xrc.py | 10 +- wxPython/contrib/xrc/xrc.i | 2 +- wxPython/include/wx/wxPython/wxPython.h | 4 +- wxPython/setup.py | 47 +- ..._controls_rename.i => __controls_rename.i} | 0 ...ols_reverse.txt => __controls_reverse.txt} | 0 .../src/{_core_rename.i => __core_rename.i} | 0 .../{_core_reverse.txt => __core_reverse.txt} | 0 .../src/{_gdi_rename.i => __gdi_rename.i} | 0 .../{_gdi_reverse.txt => __gdi_reverse.txt} | 0 wxPython/src/__init__.py | 30 +- .../src/{_misc_rename.i => __misc_rename.i} | 0 .../{_misc_reverse.txt => __misc_reverse.txt} | 0 .../{_windows_rename.i => __windows_rename.i} | 0 ...dows_reverse.txt => __windows_reverse.txt} | 0 wxPython/src/_app_ex.py | 28 +- wxPython/src/_core_api.i | 4 +- wxPython/src/_core_ex.py | 18 +- wxPython/src/calendar.i | 2 +- wxPython/src/controls.i | 6 +- wxPython/src/core.i | 7 +- wxPython/src/gdi.i | 6 +- wxPython/src/grid.i | 2 +- .../src/gtk/{controls.py => _controls.py} | 2206 +- .../{controls_wrap.cpp => _controls_wrap.cpp} | 6 +- wxPython/src/gtk/{core.py => _core.py} | 4006 +- .../{mac/core_wrap.cpp => gtk/_core_wrap.cpp} | 6 +- wxPython/src/gtk/{gdi.py => _gdi.py} | 1868 +- .../src/gtk/{gdi_wrap.cpp => _gdi_wrap.cpp} | 6 +- wxPython/src/gtk/{misc.py => _misc.py} | 2486 +- .../src/gtk/{misc_wrap.cpp => _misc_wrap.cpp} | 6 +- wxPython/src/gtk/{windows.py => _windows.py} | 1724 +- .../{windows_wrap.cpp => _windows_wrap.cpp} | 6 +- wxPython/src/gtk/calendar.py | 10 +- wxPython/src/gtk/core_wrap.cpp | 43049 --------------- wxPython/src/gtk/grid.py | 18 +- wxPython/src/gtk/html.py | 30 +- wxPython/src/gtk/wizard.py | 12 +- wxPython/src/html.i | 2 +- wxPython/src/mac/controls.py | 5254 -- wxPython/src/mac/controls_wrap.cpp | 32269 ------------ wxPython/src/mac/core.py | 9702 ---- wxPython/src/mac/gdi.py | 3831 -- wxPython/src/mac/gdi_wrap.cpp | 19835 ------- wxPython/src/mac/misc.py | 5281 -- wxPython/src/mac/misc_wrap.cpp | 30028 ----------- wxPython/src/mac/windows.py | 4499 -- wxPython/src/mac/windows_wrap.cpp | 26095 --------- wxPython/src/misc.i | 7 +- wxPython/src/msw/controls.py | 5306 -- wxPython/src/msw/controls_wrap.cpp | 32725 ------------ wxPython/src/msw/core.py | 9771 ---- wxPython/src/msw/core_wrap.cpp | 43565 ---------------- wxPython/src/msw/gdi.py | 3927 -- wxPython/src/msw/gdi_wrap.cpp | 20514 -------- wxPython/src/msw/misc.py | 5281 -- wxPython/src/msw/misc_wrap.cpp | 30019 ----------- wxPython/src/msw/windows.py | 4552 -- wxPython/src/msw/windows_wrap.cpp | 26476 ---------- wxPython/src/windows.i | 7 +- wxPython/src/wizard.i | 2 +- wxPython/wxPython/_controls.py | 452 + wxPython/wxPython/_core.py | 1091 + wxPython/wxPython/_gdi.py | 595 + wxPython/wxPython/_misc.py | 579 + wxPython/wxPython/_windows.py | 325 + wxPython/wxPython/_wx.py | 12 +- wxPython/wxPython/controls.py | 452 - wxPython/wxPython/core.py | 1091 - wxPython/wxPython/gdi.py | 595 - wxPython/wxPython/misc.py | 579 - wxPython/wxPython/windows.py | 325 - 83 files changed, 9403 insertions(+), 371349 deletions(-) rename wxPython/src/{_controls_rename.i => __controls_rename.i} (100%) rename wxPython/src/{_controls_reverse.txt => __controls_reverse.txt} (100%) rename wxPython/src/{_core_rename.i => __core_rename.i} (100%) rename wxPython/src/{_core_reverse.txt => __core_reverse.txt} (100%) rename wxPython/src/{_gdi_rename.i => __gdi_rename.i} (100%) rename wxPython/src/{_gdi_reverse.txt => __gdi_reverse.txt} (100%) rename wxPython/src/{_misc_rename.i => __misc_rename.i} (100%) rename wxPython/src/{_misc_reverse.txt => __misc_reverse.txt} (100%) rename wxPython/src/{_windows_rename.i => __windows_rename.i} (100%) rename wxPython/src/{_windows_reverse.txt => __windows_reverse.txt} (100%) rename wxPython/src/gtk/{controls.py => _controls.py} (68%) rename wxPython/src/gtk/{controls_wrap.cpp => _controls_wrap.cpp} (99%) rename wxPython/src/gtk/{core.py => _core.py} (71%) rename wxPython/src/{mac/core_wrap.cpp => gtk/_core_wrap.cpp} (99%) rename wxPython/src/gtk/{gdi.py => _gdi.py} (65%) rename wxPython/src/gtk/{gdi_wrap.cpp => _gdi_wrap.cpp} (99%) rename wxPython/src/gtk/{misc.py => _misc.py} (66%) rename wxPython/src/gtk/{misc_wrap.cpp => _misc_wrap.cpp} (99%) rename wxPython/src/gtk/{windows.py => _windows.py} (70%) rename wxPython/src/gtk/{windows_wrap.cpp => _windows_wrap.cpp} (99%) delete mode 100644 wxPython/src/gtk/core_wrap.cpp delete mode 100644 wxPython/src/mac/controls.py delete mode 100644 wxPython/src/mac/controls_wrap.cpp delete mode 100644 wxPython/src/mac/core.py delete mode 100644 wxPython/src/mac/gdi.py delete mode 100644 wxPython/src/mac/gdi_wrap.cpp delete mode 100644 wxPython/src/mac/misc.py delete mode 100644 wxPython/src/mac/misc_wrap.cpp delete mode 100644 wxPython/src/mac/windows.py delete mode 100644 wxPython/src/mac/windows_wrap.cpp delete mode 100644 wxPython/src/msw/controls.py delete mode 100644 wxPython/src/msw/controls_wrap.cpp delete mode 100644 wxPython/src/msw/core.py delete mode 100644 wxPython/src/msw/core_wrap.cpp delete mode 100644 wxPython/src/msw/gdi.py delete mode 100644 wxPython/src/msw/gdi_wrap.cpp delete mode 100644 wxPython/src/msw/misc.py delete mode 100644 wxPython/src/msw/misc_wrap.cpp delete mode 100644 wxPython/src/msw/windows.py delete mode 100644 wxPython/src/msw/windows_wrap.cpp create mode 100644 wxPython/wxPython/_controls.py create mode 100644 wxPython/wxPython/_core.py create mode 100644 wxPython/wxPython/_gdi.py create mode 100644 wxPython/wxPython/_misc.py create mode 100644 wxPython/wxPython/_windows.py delete mode 100644 wxPython/wxPython/controls.py delete mode 100644 wxPython/wxPython/core.py delete mode 100644 wxPython/wxPython/gdi.py delete mode 100644 wxPython/wxPython/misc.py delete mode 100644 wxPython/wxPython/windows.py diff --git a/wxPython/config.py b/wxPython/config.py index 182e2404ec..f981ddbfe1 100644 --- a/wxPython/config.py +++ b/wxPython/config.py @@ -274,7 +274,8 @@ def Verify_WX_CONFIG(): -def run_swig(files, dir, gendir, package, USE_SWIG, force, swig_args, swig_deps=[]): +def run_swig(files, dir, gendir, package, USE_SWIG, force, swig_args, + swig_deps=[], add_under=False): """Run SWIG the way I want it done""" if USE_SWIG and not os.path.exists(os.path.join(dir, gendir)): @@ -285,13 +286,21 @@ def run_swig(files, dir, gendir, package, USE_SWIG, force, swig_args, swig_deps= sources = [] + if add_under: pre = '_' + else: pre = '' + for file in files: basefile = os.path.splitext(file)[0] i_file = os.path.join(dir, file) - py_file = os.path.join(dir, gendir, basefile+'.py') - cpp_file = os.path.join(dir, gendir, basefile+'_wrap.cpp') + py_file = os.path.join(dir, gendir, pre+basefile+'.py') + cpp_file = os.path.join(dir, gendir, pre+basefile+'_wrap.cpp') xml_file = os.path.join("docs", "xml-raw", basefile+'_swig.xml') + if add_under: + interface = ['-interface', '_'+basefile+'_'] + else: + interface = [] + sources.append(cpp_file) if not cleaning and USE_SWIG: @@ -320,14 +329,14 @@ def run_swig(files, dir, gendir, package, USE_SWIG, force, swig_args, swig_deps= # Next run build_renamers to process the XML cmd = [ sys.executable, '-u', - './distrib/build_renamers.py', dir, basefile, xmltemp] + './distrib/build_renamers.py', dir, pre+basefile, xmltemp] msg(' '.join(cmd)) spawn(cmd) os.remove(xmltemp) # Then run swig for real - cmd = [ swig_cmd ] + swig_args + ['-I'+dir, '-o', cpp_file, - '-xmlout', xml_file, i_file] + cmd = [ swig_cmd ] + swig_args + interface + \ + ['-I'+dir, '-o', cpp_file, '-xmlout', xml_file, i_file] msg(' '.join(cmd)) spawn(cmd) diff --git a/wxPython/contrib/activex/activex.i b/wxPython/contrib/activex/activex.i index 907207f60a..6e7c157b45 100644 --- a/wxPython/contrib/activex/activex.i +++ b/wxPython/contrib/activex/activex.i @@ -24,7 +24,7 @@ //--------------------------------------------------------------------------- %import core.i -%pythoncode { wx = core } +%pythoncode { wx = _core } %pythoncode { __docfilter__ = wx.__docfilter__ } MAKE_CONST_WXSTRING_NOSWIG(PanelNameStr); diff --git a/wxPython/contrib/gizmos/gizmos.i b/wxPython/contrib/gizmos/gizmos.i index 30ad7813ec..8b85c16f3a 100644 --- a/wxPython/contrib/gizmos/gizmos.i +++ b/wxPython/contrib/gizmos/gizmos.i @@ -35,7 +35,7 @@ %import windows.i %import controls.i -%pythoncode { wx = core } +%pythoncode { wx = _core } %pythoncode { __docfilter__ = wx.__docfilter__ } diff --git a/wxPython/contrib/gizmos/gtk/gizmos.py b/wxPython/contrib/gizmos/gtk/gizmos.py index ae11e0a72d..6be9719050 100644 --- a/wxPython/contrib/gizmos/gtk/gizmos.py +++ b/wxPython/contrib/gizmos/gtk/gizmos.py @@ -3,16 +3,16 @@ import _gizmos -import windows -import core -import controls -wx = core +import _windows +import _core +import _controls +wx = _core __docfilter__ = wx.__docfilter__ 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 -class DynamicSashSplitEvent(core.CommandEvent): +class DynamicSashSplitEvent(_core.CommandEvent): def __repr__(self): return "<%s.%s; proxy of C++ wxDynamicSashSplitEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -33,7 +33,7 @@ DynamicSashNameStr = cvar.DynamicSashNameStr EditableListBoxNameStr = cvar.EditableListBoxNameStr TreeListCtrlNameStr = cvar.TreeListCtrlNameStr -class DynamicSashUnifyEvent(core.CommandEvent): +class DynamicSashUnifyEvent(_core.CommandEvent): def __repr__(self): return "<%s.%s; proxy of C++ wxDynamicSashUnifyEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -50,7 +50,7 @@ class DynamicSashUnifyEventPtr(DynamicSashUnifyEvent): self.__class__ = DynamicSashUnifyEvent _gizmos.DynamicSashUnifyEvent_swigregister(DynamicSashUnifyEventPtr) -class DynamicSashWindow(core.Window): +class DynamicSashWindow(_core.Window): def __repr__(self): return "<%s.%s; proxy of C++ wxDynamicSashWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -101,7 +101,7 @@ EVT_DYNAMIC_SASH_UNIFY = wx.PyEventBinder( wxEVT_DYNAMIC_SASH_UNIFY, 1 ) EL_ALLOW_NEW = _gizmos.EL_ALLOW_NEW EL_ALLOW_EDIT = _gizmos.EL_ALLOW_EDIT EL_ALLOW_DELETE = _gizmos.EL_ALLOW_DELETE -class EditableListBox(windows.Panel): +class EditableListBox(_windows.Panel): def __repr__(self): return "<%s.%s; proxy of C++ wxEditableListBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -156,7 +156,7 @@ class EditableListBoxPtr(EditableListBox): self.__class__ = EditableListBox _gizmos.EditableListBox_swigregister(EditableListBoxPtr) -class RemotelyScrolledTreeCtrl(controls.TreeCtrl): +class RemotelyScrolledTreeCtrl(_controls.TreeCtrl): def __repr__(self): return "<%s.%s; proxy of C++ wxRemotelyScrolledTreeCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -202,7 +202,7 @@ class RemotelyScrolledTreeCtrlPtr(RemotelyScrolledTreeCtrl): self.__class__ = RemotelyScrolledTreeCtrl _gizmos.RemotelyScrolledTreeCtrl_swigregister(RemotelyScrolledTreeCtrlPtr) -class TreeCompanionWindow(core.Window): +class TreeCompanionWindow(_core.Window): def __repr__(self): return "<%s.%s; proxy of C++ wxPyTreeCompanionWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -236,7 +236,7 @@ class TreeCompanionWindowPtr(TreeCompanionWindow): self.__class__ = TreeCompanionWindow _gizmos.TreeCompanionWindow_swigregister(TreeCompanionWindowPtr) -class ThinSplitterWindow(windows.SplitterWindow): +class ThinSplitterWindow(_windows.SplitterWindow): def __repr__(self): return "<%s.%s; proxy of C++ wxThinSplitterWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -258,7 +258,7 @@ class ThinSplitterWindowPtr(ThinSplitterWindow): self.__class__ = ThinSplitterWindow _gizmos.ThinSplitterWindow_swigregister(ThinSplitterWindowPtr) -class SplitterScrolledWindow(windows.ScrolledWindow): +class SplitterScrolledWindow(_windows.ScrolledWindow): def __repr__(self): return "<%s.%s; proxy of C++ wxSplitterScrolledWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -285,7 +285,7 @@ LED_ALIGN_RIGHT = _gizmos.LED_ALIGN_RIGHT LED_ALIGN_CENTER = _gizmos.LED_ALIGN_CENTER LED_ALIGN_MASK = _gizmos.LED_ALIGN_MASK LED_DRAW_FADED = _gizmos.LED_DRAW_FADED -class LEDNumberCtrl(core.Control): +class LEDNumberCtrl(_core.Control): def __repr__(self): return "<%s.%s; proxy of C++ wxLEDNumberCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -348,7 +348,7 @@ TL_ALIGN_LEFT = _gizmos.TL_ALIGN_LEFT TL_ALIGN_RIGHT = _gizmos.TL_ALIGN_RIGHT TL_ALIGN_CENTER = _gizmos.TL_ALIGN_CENTER TREE_HITTEST_ONITEMCOLUMN = _gizmos.TREE_HITTEST_ONITEMCOLUMN -class TreeListColumnInfo(core.Object): +class TreeListColumnInfo(_core.Object): def __repr__(self): return "<%s.%s; proxy of C++ wxTreeListColumnInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -408,7 +408,7 @@ class TreeListColumnInfoPtr(TreeListColumnInfo): self.__class__ = TreeListColumnInfo _gizmos.TreeListColumnInfo_swigregister(TreeListColumnInfoPtr) -class TreeListCtrl(core.Control): +class TreeListCtrl(_core.Control): def __repr__(self): return "<%s.%s; proxy of C++ wxPyTreeListCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): diff --git a/wxPython/contrib/glcanvas/glcanvas.i b/wxPython/contrib/glcanvas/glcanvas.i index b403ce7854..5e5c8d77c7 100644 --- a/wxPython/contrib/glcanvas/glcanvas.i +++ b/wxPython/contrib/glcanvas/glcanvas.i @@ -24,7 +24,7 @@ //--------------------------------------------------------------------------- %import core.i -%pythoncode { wx = core } +%pythoncode { wx = _core } %pythoncode { __docfilter__ = wx.__docfilter__ } diff --git a/wxPython/contrib/glcanvas/gtk/glcanvas.py b/wxPython/contrib/glcanvas/gtk/glcanvas.py index bd07333f93..644e696724 100644 --- a/wxPython/contrib/glcanvas/gtk/glcanvas.py +++ b/wxPython/contrib/glcanvas/gtk/glcanvas.py @@ -3,10 +3,10 @@ import _glcanvas -import core -wx = core +import _core +wx = _core __docfilter__ = wx.__docfilter__ -class GLContext(core.Object): +class GLContext(_core.Object): def __repr__(self): return "<%s.%s; proxy of C++ wxGLContext instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -82,7 +82,7 @@ WX_GL_MIN_ACCUM_RED = _glcanvas.WX_GL_MIN_ACCUM_RED WX_GL_MIN_ACCUM_GREEN = _glcanvas.WX_GL_MIN_ACCUM_GREEN WX_GL_MIN_ACCUM_BLUE = _glcanvas.WX_GL_MIN_ACCUM_BLUE WX_GL_MIN_ACCUM_ALPHA = _glcanvas.WX_GL_MIN_ACCUM_ALPHA -class GLCanvas(core.Window): +class GLCanvas(_core.Window): def __repr__(self): return "<%s.%s; proxy of C++ wxGLCanvas instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): diff --git a/wxPython/contrib/iewin/iewin.i b/wxPython/contrib/iewin/iewin.i index cac700966c..8a1a4169a9 100644 --- a/wxPython/contrib/iewin/iewin.i +++ b/wxPython/contrib/iewin/iewin.i @@ -24,7 +24,7 @@ //--------------------------------------------------------------------------- %import core.i -%pythoncode { wx = core } +%pythoncode { wx = _core } %pythoncode { __docfilter__ = wx.__docfilter__ } MAKE_CONST_WXSTRING_NOSWIG(PanelNameStr); diff --git a/wxPython/contrib/ogl/gtk/ogl.py b/wxPython/contrib/ogl/gtk/ogl.py index b2f2516f95..ca2383219a 100644 --- a/wxPython/contrib/ogl/gtk/ogl.py +++ b/wxPython/contrib/ogl/gtk/ogl.py @@ -3,13 +3,13 @@ import _ogl -import windows -import core -wx = core +import _windows +import _core +wx = _core __docfilter__ = wx.__docfilter__ #--------------------------------------------------------------------------- -class ShapeRegion(core.Object): +class ShapeRegion(_core.Object): def __repr__(self): return "<%s.%s; proxy of C++ wxShapeRegion instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -138,7 +138,7 @@ class ShapeRegionPtr(ShapeRegion): self.__class__ = ShapeRegion _ogl.ShapeRegion_swigregister(ShapeRegionPtr) -class AttachmentPoint(core.Object): +class AttachmentPoint(_core.Object): def __repr__(self): return "<%s.%s; proxy of C++ wxAttachmentPoint instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -158,7 +158,7 @@ class AttachmentPointPtr(AttachmentPoint): self.__class__ = AttachmentPoint _ogl.AttachmentPoint_swigregister(AttachmentPointPtr) -class PyShapeEvtHandler(core.Object): +class PyShapeEvtHandler(_core.Object): def __repr__(self): return "<%s.%s; proxy of C++ wxPyShapeEvtHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -1066,7 +1066,7 @@ _ogl.PyShape_swigregister(PyShapePtr) oglMETAFLAGS_OUTLINE = _ogl.oglMETAFLAGS_OUTLINE oglMETAFLAGS_ATTACHMENTS = _ogl.oglMETAFLAGS_ATTACHMENTS -class PseudoMetaFile(core.Object): +class PseudoMetaFile(_core.Object): def __repr__(self): return "<%s.%s; proxy of C++ wxPseudoMetaFile instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -2005,7 +2005,7 @@ class PyDrawnShapePtr(PyDrawnShape): self.__class__ = PyDrawnShape _ogl.PyDrawnShape_swigregister(PyDrawnShapePtr) -class OGLConstraint(core.Object): +class OGLConstraint(_core.Object): def __repr__(self): return "<%s.%s; proxy of C++ wxOGLConstraint instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -2960,7 +2960,7 @@ class PyCircleShapePtr(PyCircleShape): self.__class__ = PyCircleShape _ogl.PyCircleShape_swigregister(PyCircleShapePtr) -class ArrowHead(core.Object): +class ArrowHead(_core.Object): def __repr__(self): return "<%s.%s; proxy of C++ wxArrowHead instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -3737,7 +3737,7 @@ class PyTextShapePtr(PyTextShape): self.__class__ = PyTextShape _ogl.PyTextShape_swigregister(PyTextShapePtr) -class Diagram(core.Object): +class Diagram(_core.Object): def __repr__(self): return "<%s.%s; proxy of C++ wxDiagram instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -3850,7 +3850,7 @@ class DiagramPtr(Diagram): self.__class__ = Diagram _ogl.Diagram_swigregister(DiagramPtr) -class PyShapeCanvas(windows.ScrolledWindow): +class PyShapeCanvas(_windows.ScrolledWindow): def __repr__(self): return "<%s.%s; proxy of C++ wxPyShapeCanvas instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): diff --git a/wxPython/contrib/ogl/ogl.i b/wxPython/contrib/ogl/ogl.i index eb27e0a041..b7cb72c772 100644 --- a/wxPython/contrib/ogl/ogl.i +++ b/wxPython/contrib/ogl/ogl.i @@ -23,7 +23,7 @@ //--------------------------------------------------------------------------- %import windows.i -%pythoncode { wx = core } +%pythoncode { wx = _core } %pythoncode { __docfilter__ = wx.__docfilter__ } diff --git a/wxPython/contrib/stc/gtk/stc.py b/wxPython/contrib/stc/gtk/stc.py index b9db255ce8..bcd03c39f5 100644 --- a/wxPython/contrib/stc/gtk/stc.py +++ b/wxPython/contrib/stc/gtk/stc.py @@ -3,9 +3,9 @@ import _stc -import core -import misc -wx = core +import _core +import _misc +wx = _core __docfilter__ = wx.__docfilter__ STC_USE_DND = _stc.STC_USE_DND STC_USE_POPUP = _stc.STC_USE_POPUP @@ -889,7 +889,7 @@ STC_CMD_WORDLEFTEND = _stc.STC_CMD_WORDLEFTEND STC_CMD_WORDLEFTENDEXTEND = _stc.STC_CMD_WORDLEFTENDEXTEND STC_CMD_WORDRIGHTEND = _stc.STC_CMD_WORDRIGHTEND STC_CMD_WORDRIGHTENDEXTEND = _stc.STC_CMD_WORDRIGHTENDEXTEND -class StyledTextCtrl(core.Control): +class StyledTextCtrl(_core.Control): def __repr__(self): return "<%s.%s; proxy of C++ wxStyledTextCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -2627,7 +2627,7 @@ def PreStyledTextCtrl(*args, **kwargs): val.thisown = 1 return val -class StyledTextEvent(core.CommandEvent): +class StyledTextEvent(_core.CommandEvent): def __repr__(self): return "<%s.%s; proxy of C++ wxStyledTextEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): diff --git a/wxPython/contrib/stc/stc.i b/wxPython/contrib/stc/stc.i index 505e5c548d..199798909a 100644 --- a/wxPython/contrib/stc/stc.i +++ b/wxPython/contrib/stc/stc.i @@ -24,7 +24,7 @@ %import core.i %import misc.i // for DnD -%pythoncode { wx = core } +%pythoncode { wx = _core } %pythoncode { __docfilter__ = wx.__docfilter__ } MAKE_CONST_WXSTRING(STCNameStr); diff --git a/wxPython/contrib/xrc/gtk/xrc.py b/wxPython/contrib/xrc/gtk/xrc.py index 48f5a5687f..94510f8828 100644 --- a/wxPython/contrib/xrc/gtk/xrc.py +++ b/wxPython/contrib/xrc/gtk/xrc.py @@ -3,8 +3,8 @@ import _xrc -import core -wx = core +import _core +wx = _core __docfilter__ = wx.__docfilter__ #--------------------------------------------------------------------------- @@ -14,7 +14,7 @@ WX_XMLRES_CURRENT_VERSION_RELEASE = _xrc.WX_XMLRES_CURRENT_VERSION_RELEASE WX_XMLRES_CURRENT_VERSION_REVISION = _xrc.WX_XMLRES_CURRENT_VERSION_REVISION XRC_USE_LOCALE = _xrc.XRC_USE_LOCALE XRC_NO_SUBCLASSING = _xrc.XRC_NO_SUBCLASSING -class XmlResource(core.Object): +class XmlResource(_core.Object): def __repr__(self): return "<%s.%s; proxy of C++ wxXmlResource instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -401,7 +401,7 @@ def XmlNodeEasy(*args, **kwargs): val.thisown = 1 return val -class XmlDocument(core.Object): +class XmlDocument(_core.Object): def __repr__(self): return "<%s.%s; proxy of C++ wxXmlDocument instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -482,7 +482,7 @@ def EmptyXmlDocument(*args, **kwargs): #--------------------------------------------------------------------------- -class XmlResourceHandler(core.Object): +class XmlResourceHandler(_core.Object): def __repr__(self): return "<%s.%s; proxy of C++ wxPyXmlResourceHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): diff --git a/wxPython/contrib/xrc/xrc.i b/wxPython/contrib/xrc/xrc.i index 1ad4e71469..23a04ec32e 100644 --- a/wxPython/contrib/xrc/xrc.i +++ b/wxPython/contrib/xrc/xrc.i @@ -26,7 +26,7 @@ //--------------------------------------------------------------------------- %import core.i -%pythoncode { wx = core } +%pythoncode { wx = _core } %pythoncode { __docfilter__ = wx.__docfilter__ } diff --git a/wxPython/include/wx/wxPython/wxPython.h b/wxPython/include/wx/wxPython/wxPython.h index a52c8697c7..c2ca98e30f 100644 --- a/wxPython/include/wx/wxPython/wxPython.h +++ b/wxPython/include/wx/wxPython/wxPython.h @@ -27,9 +27,9 @@ // exported by the wxPython API. It sets a static pointer to a structure of // function pointers located in the wx._core extension module. static void wxPyCoreAPI_IMPORT() { - wxPyCoreAPIPtr = (wxPyCoreAPI*)PyCObject_Import("wx._core", "_wxPyCoreAPI"); + wxPyCoreAPIPtr = (wxPyCoreAPI*)PyCObject_Import("wx._core_", "_wxPyCoreAPI"); if (! wxPyCoreAPIPtr) - wxPyCoreAPIPtr = (wxPyCoreAPI*)PyCObject_Import("_core", "_wxPyCoreAPI"); + wxPyCoreAPIPtr = (wxPyCoreAPI*)PyCObject_Import("_core_", "_wxPyCoreAPI"); } diff --git a/wxPython/setup.py b/wxPython/setup.py index 62931f836d..346f552fad 100755 --- a/wxPython/setup.py +++ b/wxPython/setup.py @@ -78,8 +78,8 @@ swig_sources = run_swig(['core.i'], 'src', GENDIR, PKGDIR, 'src/_constraints.i', 'src/_core_api.i', 'src/_core_ex.py', - 'src/_core_rename.i', - 'src/_core_reverse.txt', + 'src/__core_rename.i', + 'src/__core_reverse.txt', 'src/_defs.i', 'src/_event.i', 'src/_event_ex.py', @@ -95,7 +95,8 @@ swig_sources = run_swig(['core.i'], 'src', GENDIR, PKGDIR, 'src/_validator.i', 'src/_window.i', 'src/_control.i', - ]) + ], + True) copy_file('src/__init__.py', PKGDIR, update=1, verbose=0) CLEANUP.append(opj(PKGDIR, '__init__.py')) @@ -120,9 +121,9 @@ else: rc_file = [] -ext = Extension('_core', ['src/helpers.cpp', - 'src/libpy.c', - ] + rc_file + swig_sources, +ext = Extension('_core_', ['src/helpers.cpp', + 'src/libpy.c', + ] + rc_file + swig_sources, include_dirs = includes, define_macros = defines, @@ -144,7 +145,7 @@ wxpExtensions.append(ext) # Extension for the GDI module swig_sources = run_swig(['gdi.i'], 'src', GENDIR, PKGDIR, USE_SWIG, swig_force, swig_args, swig_deps + - ['src/_gdi_rename.i', + ['src/__gdi_rename.i', 'src/_bitmap.i', 'src/_colour.i', 'src/_dc.i', @@ -161,8 +162,9 @@ swig_sources = run_swig(['gdi.i'], 'src', GENDIR, PKGDIR, 'src/_icon.i', 'src/_pen.i', 'src/_palette.i', - ]) -ext = Extension('_gdi', ['src/drawlist.cpp'] + swig_sources, + ], + True) +ext = Extension('_gdi_', ['src/drawlist.cpp'] + swig_sources, include_dirs = includes, define_macros = defines, library_dirs = libdirs, @@ -181,8 +183,8 @@ wxpExtensions.append(ext) # Extension for the windows module swig_sources = run_swig(['windows.i'], 'src', GENDIR, PKGDIR, USE_SWIG, swig_force, swig_args, swig_deps + - ['src/_windows_rename.i', - 'src/_windows_reverse.txt', + ['src/__windows_rename.i', + 'src/__windows_reverse.txt', 'src/_panel.i', 'src/_toplvl.i', 'src/_statusbar.i', @@ -196,8 +198,9 @@ swig_sources = run_swig(['windows.i'], 'src', GENDIR, PKGDIR, 'src/_mdi.i', 'src/_pywindows.i', 'src/_printfw.i', - ]) -ext = Extension('_windows', swig_sources, + ], + True) +ext = Extension('_windows_', swig_sources, include_dirs = includes, define_macros = defines, library_dirs = libdirs, @@ -214,8 +217,8 @@ wxpExtensions.append(ext) # Extension for the controls module swig_sources = run_swig(['controls.i'], 'src', GENDIR, PKGDIR, USE_SWIG, swig_force, swig_args, swig_deps + - [ 'src/_controls_rename.i', - 'src/_controls_reverse.txt', + [ 'src/__controls_rename.i', + 'src/__controls_reverse.txt', 'src/_toolbar.i', 'src/_button.i', 'src/_checkbox.i', @@ -237,8 +240,9 @@ swig_sources = run_swig(['controls.i'], 'src', GENDIR, PKGDIR, 'src/_pycontrol.i', 'src/_cshelp.i', 'src/_dragimg.i', - ]) -ext = Extension('_controls', swig_sources, + ], + True) +ext = Extension('_controls_', swig_sources, include_dirs = includes, define_macros = defines, library_dirs = libdirs, @@ -255,7 +259,9 @@ wxpExtensions.append(ext) # Extension for the misc module swig_sources = run_swig(['misc.i'], 'src', GENDIR, PKGDIR, USE_SWIG, swig_force, swig_args, swig_deps + - [ 'src/_settings.i', + [ 'src/__misc_rename.i', + 'src/__misc_reverse.txt', + 'src/_settings.i', 'src/_functions.i', 'src/_misc.i', 'src/_tipdlg.i', @@ -272,8 +278,9 @@ swig_sources = run_swig(['misc.i'], 'src', GENDIR, PKGDIR, 'src/_dnd.i', 'src/_display.i', 'src/_clipbrd.i', - ]) -ext = Extension('_misc', swig_sources, + ], + True) +ext = Extension('_misc_', swig_sources, include_dirs = includes, define_macros = defines, library_dirs = libdirs, diff --git a/wxPython/src/_controls_rename.i b/wxPython/src/__controls_rename.i similarity index 100% rename from wxPython/src/_controls_rename.i rename to wxPython/src/__controls_rename.i diff --git a/wxPython/src/_controls_reverse.txt b/wxPython/src/__controls_reverse.txt similarity index 100% rename from wxPython/src/_controls_reverse.txt rename to wxPython/src/__controls_reverse.txt diff --git a/wxPython/src/_core_rename.i b/wxPython/src/__core_rename.i similarity index 100% rename from wxPython/src/_core_rename.i rename to wxPython/src/__core_rename.i diff --git a/wxPython/src/_core_reverse.txt b/wxPython/src/__core_reverse.txt similarity index 100% rename from wxPython/src/_core_reverse.txt rename to wxPython/src/__core_reverse.txt diff --git a/wxPython/src/_gdi_rename.i b/wxPython/src/__gdi_rename.i similarity index 100% rename from wxPython/src/_gdi_rename.i rename to wxPython/src/__gdi_rename.i diff --git a/wxPython/src/_gdi_reverse.txt b/wxPython/src/__gdi_reverse.txt similarity index 100% rename from wxPython/src/_gdi_reverse.txt rename to wxPython/src/__gdi_reverse.txt diff --git a/wxPython/src/__init__.py b/wxPython/src/__init__.py index 964c9331b7..65b23070ea 100644 --- a/wxPython/src/__init__.py +++ b/wxPython/src/__init__.py @@ -15,13 +15,33 @@ import __version__ __version__ = __version__.VERSION_STRING -# Load the package namespace with the core classes and such -from wx.core import * -from wx.core import __docfilter__ +__all__ = [ + # Sub-packages + 'build', + 'lib', + 'py', + 'tools', + + # other modules + 'calendar', + 'grid', + 'html', + 'wizard', + ] -# wx.core has a 'wx' symbol for internal use. That's kinda silly for -# this namespace so get rid of it. +# Load the package namespace with the core classes and such +from wx._core import * del wx +# Load up __all__ with all the names of items that should appear to be +# defined in this pacakge so epydoc will document them that way. +import wx._core +__docfilter__ = wx._core.__docfilter__ + +__all__ += [name for name in dir(wx._core) + if not (name.startswith('__') and name.endswith('__'))] + + + #---------------------------------------------------------------------------- diff --git a/wxPython/src/_misc_rename.i b/wxPython/src/__misc_rename.i similarity index 100% rename from wxPython/src/_misc_rename.i rename to wxPython/src/__misc_rename.i diff --git a/wxPython/src/_misc_reverse.txt b/wxPython/src/__misc_reverse.txt similarity index 100% rename from wxPython/src/_misc_reverse.txt rename to wxPython/src/__misc_reverse.txt diff --git a/wxPython/src/_windows_rename.i b/wxPython/src/__windows_rename.i similarity index 100% rename from wxPython/src/_windows_rename.i rename to wxPython/src/__windows_rename.i diff --git a/wxPython/src/_windows_reverse.txt b/wxPython/src/__windows_reverse.txt similarity index 100% rename from wxPython/src/_windows_reverse.txt rename to wxPython/src/__windows_reverse.txt diff --git a/wxPython/src/_app_ex.py b/wxPython/src/_app_ex.py index f3246fbcc6..15778e811a 100644 --- a/wxPython/src/_app_ex.py +++ b/wxPython/src/_app_ex.py @@ -148,17 +148,17 @@ your Mac.""" # change from wxPyApp_ to wxApp_ -App_GetMacSupportPCMenuShortcuts = _core.PyApp_GetMacSupportPCMenuShortcuts -App_GetMacAboutMenuItemId = _core.PyApp_GetMacAboutMenuItemId -App_GetMacPreferencesMenuItemId = _core.PyApp_GetMacPreferencesMenuItemId -App_GetMacExitMenuItemId = _core.PyApp_GetMacExitMenuItemId -App_GetMacHelpMenuTitleName = _core.PyApp_GetMacHelpMenuTitleName -App_SetMacSupportPCMenuShortcuts = _core.PyApp_SetMacSupportPCMenuShortcuts -App_SetMacAboutMenuItemId = _core.PyApp_SetMacAboutMenuItemId -App_SetMacPreferencesMenuItemId = _core.PyApp_SetMacPreferencesMenuItemId -App_SetMacExitMenuItemId = _core.PyApp_SetMacExitMenuItemId -App_SetMacHelpMenuTitleName = _core.PyApp_SetMacHelpMenuTitleName -App_GetComCtl32Version = _core.PyApp_GetComCtl32Version +App_GetMacSupportPCMenuShortcuts = _core_.PyApp_GetMacSupportPCMenuShortcuts +App_GetMacAboutMenuItemId = _core_.PyApp_GetMacAboutMenuItemId +App_GetMacPreferencesMenuItemId = _core_.PyApp_GetMacPreferencesMenuItemId +App_GetMacExitMenuItemId = _core_.PyApp_GetMacExitMenuItemId +App_GetMacHelpMenuTitleName = _core_.PyApp_GetMacHelpMenuTitleName +App_SetMacSupportPCMenuShortcuts = _core_.PyApp_SetMacSupportPCMenuShortcuts +App_SetMacAboutMenuItemId = _core_.PyApp_SetMacAboutMenuItemId +App_SetMacPreferencesMenuItemId = _core_.PyApp_SetMacPreferencesMenuItemId +App_SetMacExitMenuItemId = _core_.PyApp_SetMacExitMenuItemId +App_SetMacHelpMenuTitleName = _core_.PyApp_SetMacHelpMenuTitleName +App_GetComCtl32Version = _core_.PyApp_GetComCtl32Version #---------------------------------------------------------------------------- @@ -199,7 +199,7 @@ class PyWidgetTester(wx.App): class __wxPyCleanup: def __init__(self): - self.cleanup = _core.App_CleanUp + self.cleanup = _core_.App_CleanUp def __del__(self): self.cleanup() @@ -208,9 +208,9 @@ _sys.__wxPythonCleanup = __wxPyCleanup() ## # another possible solution, but it gets called too early... ## if sys.version[0] == '2': ## import atexit -## atexit.register(_core.wxApp_CleanUp) +## atexit.register(_core_.wxApp_CleanUp) ## else: -## sys.exitfunc = _core.wxApp_CleanUp +## sys.exitfunc = _core_.wxApp_CleanUp #---------------------------------------------------------------------------- diff --git a/wxPython/src/_core_api.i b/wxPython/src/_core_api.i index 7c44223ef7..0cb17d7e62 100644 --- a/wxPython/src/_core_api.i +++ b/wxPython/src/_core_api.i @@ -128,8 +128,8 @@ PyObject* wxPyMakeSwigPtr(void* ptr, const wxChar* className) { // Export a C API in a struct. Other modules will be able to load this from -// the wx.core module and will then have safe access to these functions, even if -// they are located in another shared library. +// the wx._core_ module and will then have safe access to these functions, +// even if they are located in another shared library. static wxPyCoreAPI API = { (p_SWIG_Python_TypeRegister_t)SWIG_Python_TypeRegister, diff --git a/wxPython/src/_core_ex.py b/wxPython/src/_core_ex.py index fb51c89d6f..6c6ff3b1f9 100644 --- a/wxPython/src/_core_ex.py +++ b/wxPython/src/_core_ex.py @@ -24,9 +24,9 @@ __wxPyPtrTypeMap['wxStatusBar95'] = 'wxStatusBar' from __version__ import * __version__ = VERSION_STRING -assert MAJOR_VERSION == _core.MAJOR_VERSION, "wxPython/wxWindows version mismatch" -assert MINOR_VERSION == _core.MINOR_VERSION, "wxPython/wxWindows version mismatch" -if RELEASE_VERSION != _core.RELEASE_VERSION: +assert MAJOR_VERSION == _core_.MAJOR_VERSION, "wxPython/wxWindows version mismatch" +assert MINOR_VERSION == _core_.MINOR_VERSION, "wxPython/wxWindows version mismatch" +if RELEASE_VERSION != _core_.RELEASE_VERSION: import warnings warnings.warn("wxPython/wxWindows release number mismatch") @@ -64,7 +64,7 @@ class PyUnbornObjectError(AttributeError): class _wxPyUnbornObject(object): """ - Some stock objects are created when the wx.core module is + Some stock objects are created when the wx._core module is imported, but their C++ instance is not created until the wx.App object is created and initialized. These object instances will temporarily have their __class__ changed to this class so an @@ -236,15 +236,15 @@ def __docfilter__(name): # Import other modules in this package that should show up in the # "core" wx namespace -from gdi import * -from windows import * -from controls import * -from misc import * +from _gdi import * +from _windows import * +from _controls import * +from _misc import * # Fixup the stock objects since they can't be used yet. (They will be # restored in wx.PyApp.OnInit.) -_core._wxPyFixStockObjects() +_core_._wxPyFixStockObjects() #---------------------------------------------------------------------------- #---------------------------------------------------------------------------- diff --git a/wxPython/src/calendar.i b/wxPython/src/calendar.i index 96ba7d9e13..8f2f16602b 100644 --- a/wxPython/src/calendar.i +++ b/wxPython/src/calendar.i @@ -23,7 +23,7 @@ //---------------------------------------------------------------------- %import misc.i -%pythoncode { wx = core } +%pythoncode { wx = _core } %pythoncode { __docfilter__ = wx.__docfilter__ } %include _calendar_rename.i diff --git a/wxPython/src/controls.i b/wxPython/src/controls.i index 258bdbc095..eb0cd7ea07 100644 --- a/wxPython/src/controls.i +++ b/wxPython/src/controls.i @@ -10,7 +10,7 @@ // Licence: wxWindows license ///////////////////////////////////////////////////////////////////////////// -%module controls +%module _controls //--------------------------------------------------------------------------- @@ -22,10 +22,10 @@ //--------------------------------------------------------------------------- %import core.i -%pythoncode { wx = core } +%pythoncode { wx = _core } %pythoncode { __docfilter__ = wx.__docfilter__ } -%include _controls_rename.i +%include __controls_rename.i MAKE_CONST_WXSTRING_NOSWIG(PanelNameStr); MAKE_CONST_WXSTRING_NOSWIG(EmptyString); diff --git a/wxPython/src/core.i b/wxPython/src/core.i index be891ef234..5dd883fdc1 100644 --- a/wxPython/src/core.i +++ b/wxPython/src/core.i @@ -10,8 +10,7 @@ // Licence: wxWindows license ///////////////////////////////////////////////////////////////////////////// -%module core - +%module _core %{ #include "wx/wxPython/wxPython_int.h" @@ -26,7 +25,7 @@ %include my_typemaps.i %include _core_api.i -%include _core_rename.i +%include __core_rename.i %native(_wxPySetDictionary) __wxPySetDictionary; %native(_wxPyFixStockObjects) __wxPyFixStockObjects; @@ -34,7 +33,7 @@ %pythoncode { %#// Give a reference to the dictionary of this module to the C++ extension %#// code. -_core._wxPySetDictionary(vars()) +_core_._wxPySetDictionary(vars()) %#// A little trick to make 'wx' be a reference to this module so wx.Names can %#// be used here. diff --git a/wxPython/src/gdi.i b/wxPython/src/gdi.i index 93daf3fdb3..4e6acd8f78 100644 --- a/wxPython/src/gdi.i +++ b/wxPython/src/gdi.i @@ -10,7 +10,7 @@ // Licence: wxWindows license ///////////////////////////////////////////////////////////////////////////// -%module gdi +%module _gdi //--------------------------------------------------------------------------- @@ -23,10 +23,10 @@ //--------------------------------------------------------------------------- %import core.i -%pythoncode { wx = core } +%pythoncode { wx = _core } %pythoncode { __docfilter__ = wx.__docfilter__ } -%include _gdi_rename.i +%include __gdi_rename.i MAKE_CONST_WXSTRING_NOSWIG(EmptyString); diff --git a/wxPython/src/grid.i b/wxPython/src/grid.i index 08ee4d60b6..c01e8a7bbf 100644 --- a/wxPython/src/grid.i +++ b/wxPython/src/grid.i @@ -26,7 +26,7 @@ //--------------------------------------------------------------------------- %import windows.i -%pythoncode { wx = core } +%pythoncode { wx = _core } %pythoncode { __docfilter__ = wx.__docfilter__ } diff --git a/wxPython/src/gtk/controls.py b/wxPython/src/gtk/_controls.py similarity index 68% rename from wxPython/src/gtk/controls.py rename to wxPython/src/gtk/_controls.py index 9953df5e5e..4c9ef52811 100644 --- a/wxPython/src/gtk/controls.py +++ b/wxPython/src/gtk/_controls.py @@ -1,20 +1,20 @@ # This file was created automatically by SWIG. # Don't modify this file, modify the SWIG interface instead. -import _controls +import _controls_ -import core -wx = core +import _core +wx = _core __docfilter__ = wx.__docfilter__ #--------------------------------------------------------------------------- -BU_LEFT = _controls.BU_LEFT -BU_TOP = _controls.BU_TOP -BU_RIGHT = _controls.BU_RIGHT -BU_BOTTOM = _controls.BU_BOTTOM -BU_EXACTFIT = _controls.BU_EXACTFIT -BU_AUTODRAW = _controls.BU_AUTODRAW -class Button(core.Control): +BU_LEFT = _controls_.BU_LEFT +BU_TOP = _controls_.BU_TOP +BU_RIGHT = _controls_.BU_RIGHT +BU_BOTTOM = _controls_.BU_BOTTOM +BU_EXACTFIT = _controls_.BU_EXACTFIT +BU_AUTODRAW = _controls_.BU_AUTODRAW +class Button(_core.Control): """ A button is a control that contains a text string, and is one of the most common elements of a GUI. It may be placed on a dialog box or panel, or @@ -30,7 +30,7 @@ class Button(core.Control): Create and show a button. """ - newobj = _controls.new_Button(*args, **kwargs) + newobj = _controls_.new_Button(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -44,7 +44,7 @@ class Button(core.Control): Acutally create the GUI Button for 2-phase creation. """ - return _controls.Button_Create(*args, **kwargs) + return _controls_.Button_Create(*args, **kwargs) def SetDefault(*args, **kwargs): """ @@ -52,11 +52,11 @@ class Button(core.Control): This sets the button to be the default item for the panel or dialog box. """ - return _controls.Button_SetDefault(*args, **kwargs) + return _controls_.Button_SetDefault(*args, **kwargs) def GetDefaultSize(*args, **kwargs): """Button.GetDefaultSize() -> Size""" - return _controls.Button_GetDefaultSize(*args, **kwargs) + return _controls_.Button_GetDefaultSize(*args, **kwargs) GetDefaultSize = staticmethod(GetDefaultSize) @@ -65,8 +65,8 @@ class ButtonPtr(Button): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = Button -_controls.Button_swigregister(ButtonPtr) -cvar = _controls.cvar +_controls_.Button_swigregister(ButtonPtr) +cvar = _controls_.cvar ButtonNameStr = cvar.ButtonNameStr def PreButton(*args, **kwargs): @@ -75,13 +75,13 @@ def PreButton(*args, **kwargs): Precreate a Button for 2-phase creation. """ - val = _controls.new_PreButton(*args, **kwargs) + val = _controls_.new_PreButton(*args, **kwargs) val.thisown = 1 return val def Button_GetDefaultSize(*args, **kwargs): """Button_GetDefaultSize() -> Size""" - return _controls.Button_GetDefaultSize(*args, **kwargs) + return _controls_.Button_GetDefaultSize(*args, **kwargs) class BitmapButton(Button): """ @@ -102,7 +102,7 @@ class BitmapButton(Button): Create and show a button with a bitmap for the label. """ - newobj = _controls.new_BitmapButton(*args, **kwargs) + newobj = _controls_.new_BitmapButton(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -117,7 +117,7 @@ class BitmapButton(Button): Acutally create the GUI BitmapButton for 2-phase creation. """ - return _controls.BitmapButton_Create(*args, **kwargs) + return _controls_.BitmapButton_Create(*args, **kwargs) def GetBitmapLabel(*args, **kwargs): """ @@ -125,7 +125,7 @@ class BitmapButton(Button): Returns the label bitmap (the one passed to the constructor). """ - return _controls.BitmapButton_GetBitmapLabel(*args, **kwargs) + return _controls_.BitmapButton_GetBitmapLabel(*args, **kwargs) def GetBitmapDisabled(*args, **kwargs): """ @@ -133,7 +133,7 @@ class BitmapButton(Button): Returns the bitmap for the disabled state. """ - return _controls.BitmapButton_GetBitmapDisabled(*args, **kwargs) + return _controls_.BitmapButton_GetBitmapDisabled(*args, **kwargs) def GetBitmapFocus(*args, **kwargs): """ @@ -141,7 +141,7 @@ class BitmapButton(Button): Returns the bitmap for the focused state. """ - return _controls.BitmapButton_GetBitmapFocus(*args, **kwargs) + return _controls_.BitmapButton_GetBitmapFocus(*args, **kwargs) def GetBitmapSelected(*args, **kwargs): """ @@ -149,7 +149,7 @@ class BitmapButton(Button): Returns the bitmap for the selected state. """ - return _controls.BitmapButton_GetBitmapSelected(*args, **kwargs) + return _controls_.BitmapButton_GetBitmapSelected(*args, **kwargs) def SetBitmapDisabled(*args, **kwargs): """ @@ -157,7 +157,7 @@ class BitmapButton(Button): Sets the bitmap for the disabled button appearance. """ - return _controls.BitmapButton_SetBitmapDisabled(*args, **kwargs) + return _controls_.BitmapButton_SetBitmapDisabled(*args, **kwargs) def SetBitmapFocus(*args, **kwargs): """ @@ -165,7 +165,7 @@ class BitmapButton(Button): Sets the bitmap for the button appearance when it has the keyboard focus. """ - return _controls.BitmapButton_SetBitmapFocus(*args, **kwargs) + return _controls_.BitmapButton_SetBitmapFocus(*args, **kwargs) def SetBitmapSelected(*args, **kwargs): """ @@ -173,7 +173,7 @@ class BitmapButton(Button): Sets the bitmap for the selected (depressed) button appearance. """ - return _controls.BitmapButton_SetBitmapSelected(*args, **kwargs) + return _controls_.BitmapButton_SetBitmapSelected(*args, **kwargs) def SetBitmapLabel(*args, **kwargs): """ @@ -182,19 +182,19 @@ class BitmapButton(Button): Sets the bitmap label for the button. This is the bitmap used for the unselected state, and for all other states if no other bitmaps are provided. """ - return _controls.BitmapButton_SetBitmapLabel(*args, **kwargs) + return _controls_.BitmapButton_SetBitmapLabel(*args, **kwargs) def SetMargins(*args, **kwargs): """SetMargins(self, int x, int y)""" - return _controls.BitmapButton_SetMargins(*args, **kwargs) + return _controls_.BitmapButton_SetMargins(*args, **kwargs) def GetMarginX(*args, **kwargs): """GetMarginX(self) -> int""" - return _controls.BitmapButton_GetMarginX(*args, **kwargs) + return _controls_.BitmapButton_GetMarginX(*args, **kwargs) def GetMarginY(*args, **kwargs): """GetMarginY(self) -> int""" - return _controls.BitmapButton_GetMarginY(*args, **kwargs) + return _controls_.BitmapButton_GetMarginY(*args, **kwargs) class BitmapButtonPtr(BitmapButton): @@ -202,7 +202,7 @@ class BitmapButtonPtr(BitmapButton): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = BitmapButton -_controls.BitmapButton_swigregister(BitmapButtonPtr) +_controls_.BitmapButton_swigregister(BitmapButtonPtr) def PreBitmapButton(*args, **kwargs): """ @@ -210,19 +210,19 @@ def PreBitmapButton(*args, **kwargs): Precreate a BitmapButton for 2-phase creation. """ - val = _controls.new_PreBitmapButton(*args, **kwargs) + val = _controls_.new_PreBitmapButton(*args, **kwargs) val.thisown = 1 return val #--------------------------------------------------------------------------- -CHK_2STATE = _controls.CHK_2STATE -CHK_3STATE = _controls.CHK_3STATE -CHK_ALLOW_3RD_STATE_FOR_USER = _controls.CHK_ALLOW_3RD_STATE_FOR_USER -CHK_UNCHECKED = _controls.CHK_UNCHECKED -CHK_CHECKED = _controls.CHK_CHECKED -CHK_UNDETERMINED = _controls.CHK_UNDETERMINED -class CheckBox(core.Control): +CHK_2STATE = _controls_.CHK_2STATE +CHK_3STATE = _controls_.CHK_3STATE +CHK_ALLOW_3RD_STATE_FOR_USER = _controls_.CHK_ALLOW_3RD_STATE_FOR_USER +CHK_UNCHECKED = _controls_.CHK_UNCHECKED +CHK_CHECKED = _controls_.CHK_CHECKED +CHK_UNDETERMINED = _controls_.CHK_UNDETERMINED +class CheckBox(_core.Control): """ A checkbox is a labelled box which by default is either on (checkmark is visible) or off (no checkmark). Optionally (When the wxCHK_3STATE style flag @@ -239,7 +239,7 @@ class CheckBox(core.Control): Creates and shows a CheckBox control """ - newobj = _controls.new_CheckBox(*args, **kwargs) + newobj = _controls_.new_CheckBox(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -253,7 +253,7 @@ class CheckBox(core.Control): Actually create the GUI CheckBox for 2-phase creation. """ - return _controls.CheckBox_Create(*args, **kwargs) + return _controls_.CheckBox_Create(*args, **kwargs) def GetValue(*args, **kwargs): """ @@ -262,7 +262,7 @@ class CheckBox(core.Control): Gets the state of a 2-state CheckBox. Returns True if it is checked, False otherwise. """ - return _controls.CheckBox_GetValue(*args, **kwargs) + return _controls_.CheckBox_GetValue(*args, **kwargs) def IsChecked(*args, **kwargs): """ @@ -270,7 +270,7 @@ class CheckBox(core.Control): Similar to GetValue, but raises an exception if it is not a 2-state CheckBox. """ - return _controls.CheckBox_IsChecked(*args, **kwargs) + return _controls_.CheckBox_IsChecked(*args, **kwargs) def SetValue(*args, **kwargs): """ @@ -279,7 +279,7 @@ class CheckBox(core.Control): Set the state of a 2-state CheckBox. Pass True for checked, False for unchecked. """ - return _controls.CheckBox_SetValue(*args, **kwargs) + return _controls_.CheckBox_SetValue(*args, **kwargs) def Get3StateValue(*args, **kwargs): """ @@ -289,7 +289,7 @@ class CheckBox(core.Control): it is checked and wx.CHK_UNDETERMINED when it's in the undetermined state. Raises an exceptiion when the function is used with a 2-state CheckBox. """ - return _controls.CheckBox_Get3StateValue(*args, **kwargs) + return _controls_.CheckBox_Get3StateValue(*args, **kwargs) def Set3StateValue(*args, **kwargs): """ @@ -301,7 +301,7 @@ class CheckBox(core.Control): exception when the CheckBox is a 2-state checkbox and setting the state to wx.CHK_UNDETERMINED. """ - return _controls.CheckBox_Set3StateValue(*args, **kwargs) + return _controls_.CheckBox_Set3StateValue(*args, **kwargs) def Is3State(*args, **kwargs): """ @@ -309,7 +309,7 @@ class CheckBox(core.Control): Returns whether or not the CheckBox is a 3-state CheckBox. """ - return _controls.CheckBox_Is3State(*args, **kwargs) + return _controls_.CheckBox_Is3State(*args, **kwargs) def Is3rdStateAllowedForUser(*args, **kwargs): """ @@ -317,7 +317,7 @@ class CheckBox(core.Control): Returns whether or not the user can set the CheckBox to the third state. """ - return _controls.CheckBox_Is3rdStateAllowedForUser(*args, **kwargs) + return _controls_.CheckBox_Is3rdStateAllowedForUser(*args, **kwargs) class CheckBoxPtr(CheckBox): @@ -325,7 +325,7 @@ class CheckBoxPtr(CheckBox): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = CheckBox -_controls.CheckBox_swigregister(CheckBoxPtr) +_controls_.CheckBox_swigregister(CheckBoxPtr) CheckBoxNameStr = cvar.CheckBoxNameStr def PreCheckBox(*args, **kwargs): @@ -334,13 +334,13 @@ def PreCheckBox(*args, **kwargs): Precreate a CheckBox for 2-phase creation. """ - val = _controls.new_PreCheckBox(*args, **kwargs) + val = _controls_.new_PreCheckBox(*args, **kwargs) val.thisown = 1 return val #--------------------------------------------------------------------------- -class Choice(core.ControlWithItems): +class Choice(_core.ControlWithItems): """ A Choice control is used to select one of a list of strings. Unlike a ListBox, only the selection is visible until the user pulls down the menu of choices. @@ -355,7 +355,7 @@ class Choice(core.ControlWithItems): Create and show a Choice control """ - newobj = _controls.new_Choice(*args, **kwargs) + newobj = _controls_.new_Choice(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -369,7 +369,7 @@ class Choice(core.ControlWithItems): Actually create the GUI Choice control for 2-phase creation """ - return _controls.Choice_Create(*args, **kwargs) + return _controls_.Choice_Create(*args, **kwargs) def SetSelection(*args, **kwargs): """ @@ -377,7 +377,7 @@ class Choice(core.ControlWithItems): Select the n'th item (zero based) in the list. """ - return _controls.Choice_SetSelection(*args, **kwargs) + return _controls_.Choice_SetSelection(*args, **kwargs) def SetStringSelection(*args, **kwargs): """ @@ -385,7 +385,7 @@ class Choice(core.ControlWithItems): Select the item with the specifed string """ - return _controls.Choice_SetStringSelection(*args, **kwargs) + return _controls_.Choice_SetStringSelection(*args, **kwargs) def SetString(*args, **kwargs): """ @@ -393,7 +393,7 @@ class Choice(core.ControlWithItems): Set the label for the n'th item (zero based) in the list. """ - return _controls.Choice_SetString(*args, **kwargs) + return _controls_.Choice_SetString(*args, **kwargs) Select = SetSelection @@ -402,7 +402,7 @@ class ChoicePtr(Choice): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = Choice -_controls.Choice_swigregister(ChoicePtr) +_controls_.Choice_swigregister(ChoicePtr) ChoiceNameStr = cvar.ChoiceNameStr def PreChoice(*args, **kwargs): @@ -411,13 +411,13 @@ def PreChoice(*args, **kwargs): Precreate a Choice control for 2-phase creation. """ - val = _controls.new_PreChoice(*args, **kwargs) + val = _controls_.new_PreChoice(*args, **kwargs) val.thisown = 1 return val #--------------------------------------------------------------------------- -class ComboBox(core.Control,core.ItemContainer): +class ComboBox(_core.Control,_core.ItemContainer): """ A combobox is like a combination of an edit control and a listbox. It can be displayed as static list with editable or read-only text field; or a drop-down @@ -434,7 +434,7 @@ class ComboBox(core.Control,core.ItemContainer): Constructor, creates and shows a ComboBox control. """ - newobj = _controls.new_ComboBox(*args, **kwargs) + newobj = _controls_.new_ComboBox(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -449,7 +449,7 @@ class ComboBox(core.Control,core.ItemContainer): Actually create the GUI wxComboBox control for 2-phase creation """ - return _controls.ComboBox_Create(*args, **kwargs) + return _controls_.ComboBox_Create(*args, **kwargs) def GetValue(*args, **kwargs): """ @@ -457,11 +457,11 @@ class ComboBox(core.Control,core.ItemContainer): Returns the current value in the combobox text field. """ - return _controls.ComboBox_GetValue(*args, **kwargs) + return _controls_.ComboBox_GetValue(*args, **kwargs) def SetValue(*args, **kwargs): """SetValue(self, String value)""" - return _controls.ComboBox_SetValue(*args, **kwargs) + return _controls_.ComboBox_SetValue(*args, **kwargs) def Copy(*args, **kwargs): """ @@ -469,7 +469,7 @@ class ComboBox(core.Control,core.ItemContainer): Copies the selected text to the clipboard. """ - return _controls.ComboBox_Copy(*args, **kwargs) + return _controls_.ComboBox_Copy(*args, **kwargs) def Cut(*args, **kwargs): """ @@ -477,7 +477,7 @@ class ComboBox(core.Control,core.ItemContainer): Copies the selected text to the clipboard and removes the selection. """ - return _controls.ComboBox_Cut(*args, **kwargs) + return _controls_.ComboBox_Cut(*args, **kwargs) def Paste(*args, **kwargs): """ @@ -485,7 +485,7 @@ class ComboBox(core.Control,core.ItemContainer): Pastes text from the clipboard to the text field. """ - return _controls.ComboBox_Paste(*args, **kwargs) + return _controls_.ComboBox_Paste(*args, **kwargs) def SetInsertionPoint(*args, **kwargs): """ @@ -493,7 +493,7 @@ class ComboBox(core.Control,core.ItemContainer): Sets the insertion point in the combobox text field. """ - return _controls.ComboBox_SetInsertionPoint(*args, **kwargs) + return _controls_.ComboBox_SetInsertionPoint(*args, **kwargs) def GetInsertionPoint(*args, **kwargs): """ @@ -501,7 +501,7 @@ class ComboBox(core.Control,core.ItemContainer): Returns the insertion point for the combobox's text field. """ - return _controls.ComboBox_GetInsertionPoint(*args, **kwargs) + return _controls_.ComboBox_GetInsertionPoint(*args, **kwargs) def GetLastPosition(*args, **kwargs): """ @@ -509,7 +509,7 @@ class ComboBox(core.Control,core.ItemContainer): Returns the last position in the combobox text field. """ - return _controls.ComboBox_GetLastPosition(*args, **kwargs) + return _controls_.ComboBox_GetLastPosition(*args, **kwargs) def Replace(*args, **kwargs): """ @@ -518,7 +518,7 @@ class ComboBox(core.Control,core.ItemContainer): Replaces the text between two positions with the given text, in the combobox text field. """ - return _controls.ComboBox_Replace(*args, **kwargs) + return _controls_.ComboBox_Replace(*args, **kwargs) def SetSelection(*args, **kwargs): """ @@ -526,15 +526,15 @@ class ComboBox(core.Control,core.ItemContainer): Selects the text between the two positions, in the combobox text field. """ - return _controls.ComboBox_SetSelection(*args, **kwargs) + return _controls_.ComboBox_SetSelection(*args, **kwargs) def SetMark(*args, **kwargs): """SetMark(self, long from, long to)""" - return _controls.ComboBox_SetMark(*args, **kwargs) + return _controls_.ComboBox_SetMark(*args, **kwargs) def SetEditable(*args, **kwargs): """SetEditable(self, bool editable)""" - return _controls.ComboBox_SetEditable(*args, **kwargs) + return _controls_.ComboBox_SetEditable(*args, **kwargs) def SetInsertionPointEnd(*args, **kwargs): """ @@ -542,7 +542,7 @@ class ComboBox(core.Control,core.ItemContainer): Sets the insertion point at the end of the combobox text field. """ - return _controls.ComboBox_SetInsertionPointEnd(*args, **kwargs) + return _controls_.ComboBox_SetInsertionPointEnd(*args, **kwargs) def Remove(*args, **kwargs): """ @@ -550,7 +550,7 @@ class ComboBox(core.Control,core.ItemContainer): Removes the text between the two positions in the combobox text field. """ - return _controls.ComboBox_Remove(*args, **kwargs) + return _controls_.ComboBox_Remove(*args, **kwargs) class ComboBoxPtr(ComboBox): @@ -558,7 +558,7 @@ class ComboBoxPtr(ComboBox): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = ComboBox -_controls.ComboBox_swigregister(ComboBoxPtr) +_controls_.ComboBox_swigregister(ComboBoxPtr) ComboBoxNameStr = cvar.ComboBoxNameStr def PreComboBox(*args, **kwargs): @@ -567,17 +567,17 @@ def PreComboBox(*args, **kwargs): Precreate a ComboBox control for 2-phase creation. """ - val = _controls.new_PreComboBox(*args, **kwargs) + val = _controls_.new_PreComboBox(*args, **kwargs) val.thisown = 1 return val #--------------------------------------------------------------------------- -GA_HORIZONTAL = _controls.GA_HORIZONTAL -GA_VERTICAL = _controls.GA_VERTICAL -GA_SMOOTH = _controls.GA_SMOOTH -GA_PROGRESSBAR = _controls.GA_PROGRESSBAR -class Gauge(core.Control): +GA_HORIZONTAL = _controls_.GA_HORIZONTAL +GA_VERTICAL = _controls_.GA_VERTICAL +GA_SMOOTH = _controls_.GA_SMOOTH +GA_PROGRESSBAR = _controls_.GA_PROGRESSBAR +class Gauge(_core.Control): def __repr__(self): return "<%s.%s; proxy of C++ wxGauge instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -587,7 +587,7 @@ class Gauge(core.Control): Validator validator=DefaultValidator, String name=GaugeNameStr) -> Gauge """ - newobj = _controls.new_Gauge(*args, **kwargs) + newobj = _controls_.new_Gauge(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -600,43 +600,43 @@ class Gauge(core.Control): Validator validator=DefaultValidator, String name=GaugeNameStr) -> bool """ - return _controls.Gauge_Create(*args, **kwargs) + return _controls_.Gauge_Create(*args, **kwargs) def SetRange(*args, **kwargs): """SetRange(self, int range)""" - return _controls.Gauge_SetRange(*args, **kwargs) + return _controls_.Gauge_SetRange(*args, **kwargs) def GetRange(*args, **kwargs): """GetRange(self) -> int""" - return _controls.Gauge_GetRange(*args, **kwargs) + return _controls_.Gauge_GetRange(*args, **kwargs) def SetValue(*args, **kwargs): """SetValue(self, int pos)""" - return _controls.Gauge_SetValue(*args, **kwargs) + return _controls_.Gauge_SetValue(*args, **kwargs) def GetValue(*args, **kwargs): """GetValue(self) -> int""" - return _controls.Gauge_GetValue(*args, **kwargs) + return _controls_.Gauge_GetValue(*args, **kwargs) def IsVertical(*args, **kwargs): """IsVertical(self) -> bool""" - return _controls.Gauge_IsVertical(*args, **kwargs) + return _controls_.Gauge_IsVertical(*args, **kwargs) def SetShadowWidth(*args, **kwargs): """SetShadowWidth(self, int w)""" - return _controls.Gauge_SetShadowWidth(*args, **kwargs) + return _controls_.Gauge_SetShadowWidth(*args, **kwargs) def GetShadowWidth(*args, **kwargs): """GetShadowWidth(self) -> int""" - return _controls.Gauge_GetShadowWidth(*args, **kwargs) + return _controls_.Gauge_GetShadowWidth(*args, **kwargs) def SetBezelFace(*args, **kwargs): """SetBezelFace(self, int w)""" - return _controls.Gauge_SetBezelFace(*args, **kwargs) + return _controls_.Gauge_SetBezelFace(*args, **kwargs) def GetBezelFace(*args, **kwargs): """GetBezelFace(self) -> int""" - return _controls.Gauge_GetBezelFace(*args, **kwargs) + return _controls_.Gauge_GetBezelFace(*args, **kwargs) class GaugePtr(Gauge): @@ -644,18 +644,18 @@ class GaugePtr(Gauge): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = Gauge -_controls.Gauge_swigregister(GaugePtr) +_controls_.Gauge_swigregister(GaugePtr) GaugeNameStr = cvar.GaugeNameStr def PreGauge(*args, **kwargs): """PreGauge() -> Gauge""" - val = _controls.new_PreGauge(*args, **kwargs) + val = _controls_.new_PreGauge(*args, **kwargs) val.thisown = 1 return val #--------------------------------------------------------------------------- -class StaticBox(core.Control): +class StaticBox(_core.Control): def __repr__(self): return "<%s.%s; proxy of C++ wxStaticBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -664,7 +664,7 @@ class StaticBox(core.Control): Size size=DefaultSize, long style=0, String name=StaticBoxNameStr) -> StaticBox """ - newobj = _controls.new_StaticBox(*args, **kwargs) + newobj = _controls_.new_StaticBox(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -676,7 +676,7 @@ class StaticBox(core.Control): Size size=DefaultSize, long style=0, String name=StaticBoxNameStr) -> bool """ - return _controls.StaticBox_Create(*args, **kwargs) + return _controls_.StaticBox_Create(*args, **kwargs) class StaticBoxPtr(StaticBox): @@ -684,20 +684,20 @@ class StaticBoxPtr(StaticBox): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = StaticBox -_controls.StaticBox_swigregister(StaticBoxPtr) +_controls_.StaticBox_swigregister(StaticBoxPtr) StaticBitmapNameStr = cvar.StaticBitmapNameStr StaticBoxNameStr = cvar.StaticBoxNameStr StaticTextNameStr = cvar.StaticTextNameStr def PreStaticBox(*args, **kwargs): """PreStaticBox() -> StaticBox""" - val = _controls.new_PreStaticBox(*args, **kwargs) + val = _controls_.new_PreStaticBox(*args, **kwargs) val.thisown = 1 return val #--------------------------------------------------------------------------- -class StaticLine(core.Control): +class StaticLine(_core.Control): def __repr__(self): return "<%s.%s; proxy of C++ wxStaticLine instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -706,7 +706,7 @@ class StaticLine(core.Control): long style=LI_HORIZONTAL, String name=StaticTextNameStr) -> StaticLine """ - newobj = _controls.new_StaticLine(*args, **kwargs) + newobj = _controls_.new_StaticLine(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -718,15 +718,15 @@ class StaticLine(core.Control): long style=LI_HORIZONTAL, String name=StaticTextNameStr) -> bool """ - return _controls.StaticLine_Create(*args, **kwargs) + return _controls_.StaticLine_Create(*args, **kwargs) def IsVertical(*args, **kwargs): """IsVertical(self) -> bool""" - return _controls.StaticLine_IsVertical(*args, **kwargs) + return _controls_.StaticLine_IsVertical(*args, **kwargs) def GetDefaultSize(*args, **kwargs): """StaticLine.GetDefaultSize() -> int""" - return _controls.StaticLine_GetDefaultSize(*args, **kwargs) + return _controls_.StaticLine_GetDefaultSize(*args, **kwargs) GetDefaultSize = staticmethod(GetDefaultSize) @@ -735,21 +735,21 @@ class StaticLinePtr(StaticLine): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = StaticLine -_controls.StaticLine_swigregister(StaticLinePtr) +_controls_.StaticLine_swigregister(StaticLinePtr) def PreStaticLine(*args, **kwargs): """PreStaticLine() -> StaticLine""" - val = _controls.new_PreStaticLine(*args, **kwargs) + val = _controls_.new_PreStaticLine(*args, **kwargs) val.thisown = 1 return val def StaticLine_GetDefaultSize(*args, **kwargs): """StaticLine_GetDefaultSize() -> int""" - return _controls.StaticLine_GetDefaultSize(*args, **kwargs) + return _controls_.StaticLine_GetDefaultSize(*args, **kwargs) #--------------------------------------------------------------------------- -class StaticText(core.Control): +class StaticText(_core.Control): def __repr__(self): return "<%s.%s; proxy of C++ wxStaticText instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -758,7 +758,7 @@ class StaticText(core.Control): Size size=DefaultSize, long style=0, String name=StaticTextNameStr) -> StaticText """ - newobj = _controls.new_StaticText(*args, **kwargs) + newobj = _controls_.new_StaticText(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -770,7 +770,7 @@ class StaticText(core.Control): Size size=DefaultSize, long style=0, String name=StaticTextNameStr) -> bool """ - return _controls.StaticText_Create(*args, **kwargs) + return _controls_.StaticText_Create(*args, **kwargs) class StaticTextPtr(StaticText): @@ -778,17 +778,17 @@ class StaticTextPtr(StaticText): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = StaticText -_controls.StaticText_swigregister(StaticTextPtr) +_controls_.StaticText_swigregister(StaticTextPtr) def PreStaticText(*args, **kwargs): """PreStaticText() -> StaticText""" - val = _controls.new_PreStaticText(*args, **kwargs) + val = _controls_.new_PreStaticText(*args, **kwargs) val.thisown = 1 return val #--------------------------------------------------------------------------- -class StaticBitmap(core.Control): +class StaticBitmap(_core.Control): def __repr__(self): return "<%s.%s; proxy of C++ wxStaticBitmap instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -797,7 +797,7 @@ class StaticBitmap(core.Control): Size size=DefaultSize, long style=0, String name=StaticBitmapNameStr) -> StaticBitmap """ - newobj = _controls.new_StaticBitmap(*args, **kwargs) + newobj = _controls_.new_StaticBitmap(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -809,19 +809,19 @@ class StaticBitmap(core.Control): Size size=DefaultSize, long style=0, String name=StaticBitmapNameStr) -> bool """ - return _controls.StaticBitmap_Create(*args, **kwargs) + return _controls_.StaticBitmap_Create(*args, **kwargs) def GetBitmap(*args, **kwargs): """GetBitmap(self) -> Bitmap""" - return _controls.StaticBitmap_GetBitmap(*args, **kwargs) + return _controls_.StaticBitmap_GetBitmap(*args, **kwargs) def SetBitmap(*args, **kwargs): """SetBitmap(self, Bitmap bitmap)""" - return _controls.StaticBitmap_SetBitmap(*args, **kwargs) + return _controls_.StaticBitmap_SetBitmap(*args, **kwargs) def SetIcon(*args, **kwargs): """SetIcon(self, Icon icon)""" - return _controls.StaticBitmap_SetIcon(*args, **kwargs) + return _controls_.StaticBitmap_SetIcon(*args, **kwargs) class StaticBitmapPtr(StaticBitmap): @@ -829,17 +829,17 @@ class StaticBitmapPtr(StaticBitmap): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = StaticBitmap -_controls.StaticBitmap_swigregister(StaticBitmapPtr) +_controls_.StaticBitmap_swigregister(StaticBitmapPtr) def PreStaticBitmap(*args, **kwargs): """PreStaticBitmap() -> StaticBitmap""" - val = _controls.new_PreStaticBitmap(*args, **kwargs) + val = _controls_.new_PreStaticBitmap(*args, **kwargs) val.thisown = 1 return val #--------------------------------------------------------------------------- -class ListBox(core.ControlWithItems): +class ListBox(_core.ControlWithItems): def __repr__(self): return "<%s.%s; proxy of C++ wxListBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -849,7 +849,7 @@ class ListBox(core.ControlWithItems): long style=0, Validator validator=DefaultValidator, String name=ListBoxNameStr) -> ListBox """ - newobj = _controls.new_ListBox(*args, **kwargs) + newobj = _controls_.new_ListBox(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -862,7 +862,7 @@ class ListBox(core.ControlWithItems): long style=0, Validator validator=DefaultValidator, String name=ListBoxNameStr) -> bool """ - return _controls.ListBox_Create(*args, **kwargs) + return _controls_.ListBox_Create(*args, **kwargs) def Insert(*args, **kwargs): """ @@ -871,23 +871,23 @@ class ListBox(core.ControlWithItems): Insert an item into the control before the item at the pos index, optionally associating some data object with the item. """ - return _controls.ListBox_Insert(*args, **kwargs) + return _controls_.ListBox_Insert(*args, **kwargs) def InsertItems(*args, **kwargs): """InsertItems(self, wxArrayString items, int pos)""" - return _controls.ListBox_InsertItems(*args, **kwargs) + return _controls_.ListBox_InsertItems(*args, **kwargs) def Set(*args, **kwargs): """Set(self, wxArrayString items)""" - return _controls.ListBox_Set(*args, **kwargs) + return _controls_.ListBox_Set(*args, **kwargs) def IsSelected(*args, **kwargs): """IsSelected(self, int n) -> bool""" - return _controls.ListBox_IsSelected(*args, **kwargs) + return _controls_.ListBox_IsSelected(*args, **kwargs) def SetSelection(*args, **kwargs): """SetSelection(self, int n, bool select=True)""" - return _controls.ListBox_SetSelection(*args, **kwargs) + return _controls_.ListBox_SetSelection(*args, **kwargs) def Select(*args, **kwargs): """ @@ -895,55 +895,55 @@ class ListBox(core.ControlWithItems): Sets the item at index 'n' to be the selected item. """ - return _controls.ListBox_Select(*args, **kwargs) + return _controls_.ListBox_Select(*args, **kwargs) def Deselect(*args, **kwargs): """Deselect(self, int n)""" - return _controls.ListBox_Deselect(*args, **kwargs) + return _controls_.ListBox_Deselect(*args, **kwargs) def DeselectAll(*args, **kwargs): """DeselectAll(self, int itemToLeaveSelected=-1)""" - return _controls.ListBox_DeselectAll(*args, **kwargs) + return _controls_.ListBox_DeselectAll(*args, **kwargs) def SetStringSelection(*args, **kwargs): """SetStringSelection(self, String s, bool select=True) -> bool""" - return _controls.ListBox_SetStringSelection(*args, **kwargs) + return _controls_.ListBox_SetStringSelection(*args, **kwargs) def GetSelections(*args, **kwargs): """GetSelections(self) -> PyObject""" - return _controls.ListBox_GetSelections(*args, **kwargs) + return _controls_.ListBox_GetSelections(*args, **kwargs) def SetFirstItem(*args, **kwargs): """SetFirstItem(self, int n)""" - return _controls.ListBox_SetFirstItem(*args, **kwargs) + return _controls_.ListBox_SetFirstItem(*args, **kwargs) def SetFirstItemStr(*args, **kwargs): """SetFirstItemStr(self, String s)""" - return _controls.ListBox_SetFirstItemStr(*args, **kwargs) + return _controls_.ListBox_SetFirstItemStr(*args, **kwargs) def EnsureVisible(*args, **kwargs): """EnsureVisible(self, int n)""" - return _controls.ListBox_EnsureVisible(*args, **kwargs) + return _controls_.ListBox_EnsureVisible(*args, **kwargs) def AppendAndEnsureVisible(*args, **kwargs): """AppendAndEnsureVisible(self, String s)""" - return _controls.ListBox_AppendAndEnsureVisible(*args, **kwargs) + return _controls_.ListBox_AppendAndEnsureVisible(*args, **kwargs) def IsSorted(*args, **kwargs): """IsSorted(self) -> bool""" - return _controls.ListBox_IsSorted(*args, **kwargs) + return _controls_.ListBox_IsSorted(*args, **kwargs) def SetItemForegroundColour(*args, **kwargs): """SetItemForegroundColour(self, int item, Colour c)""" - return _controls.ListBox_SetItemForegroundColour(*args, **kwargs) + return _controls_.ListBox_SetItemForegroundColour(*args, **kwargs) def SetItemBackgroundColour(*args, **kwargs): """SetItemBackgroundColour(self, int item, Colour c)""" - return _controls.ListBox_SetItemBackgroundColour(*args, **kwargs) + return _controls_.ListBox_SetItemBackgroundColour(*args, **kwargs) def SetItemFont(*args, **kwargs): """SetItemFont(self, int item, Font f)""" - return _controls.ListBox_SetItemFont(*args, **kwargs) + return _controls_.ListBox_SetItemFont(*args, **kwargs) def GetClassDefaultAttributes(*args, **kwargs): """ @@ -959,7 +959,7 @@ class ListBox(core.ControlWithItems): ignore under other platforms. Under Mac, it will change the size of the returned font. See SetWindowVariant for more about this. """ - return _controls.ListBox_GetClassDefaultAttributes(*args, **kwargs) + return _controls_.ListBox_GetClassDefaultAttributes(*args, **kwargs) GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) @@ -968,12 +968,12 @@ class ListBoxPtr(ListBox): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = ListBox -_controls.ListBox_swigregister(ListBoxPtr) +_controls_.ListBox_swigregister(ListBoxPtr) ListBoxNameStr = cvar.ListBoxNameStr def PreListBox(*args, **kwargs): """PreListBox() -> ListBox""" - val = _controls.new_PreListBox(*args, **kwargs) + val = _controls_.new_PreListBox(*args, **kwargs) val.thisown = 1 return val @@ -991,7 +991,7 @@ def ListBox_GetClassDefaultAttributes(*args, **kwargs): ignore under other platforms. Under Mac, it will change the size of the returned font. See SetWindowVariant for more about this. """ - return _controls.ListBox_GetClassDefaultAttributes(*args, **kwargs) + return _controls_.ListBox_GetClassDefaultAttributes(*args, **kwargs) #--------------------------------------------------------------------------- @@ -1005,7 +1005,7 @@ class CheckListBox(ListBox): long style=0, Validator validator=DefaultValidator, String name=ListBoxNameStr) -> CheckListBox """ - newobj = _controls.new_CheckListBox(*args, **kwargs) + newobj = _controls_.new_CheckListBox(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -1018,19 +1018,19 @@ class CheckListBox(ListBox): long style=0, Validator validator=DefaultValidator, String name=ListBoxNameStr) -> bool """ - return _controls.CheckListBox_Create(*args, **kwargs) + return _controls_.CheckListBox_Create(*args, **kwargs) def IsChecked(*args, **kwargs): """IsChecked(self, int index) -> bool""" - return _controls.CheckListBox_IsChecked(*args, **kwargs) + return _controls_.CheckListBox_IsChecked(*args, **kwargs) def Check(*args, **kwargs): """Check(self, int index, int check=True)""" - return _controls.CheckListBox_Check(*args, **kwargs) + return _controls_.CheckListBox_Check(*args, **kwargs) def GetItemHeight(*args, **kwargs): """GetItemHeight(self) -> int""" - return _controls.CheckListBox_GetItemHeight(*args, **kwargs) + return _controls_.CheckListBox_GetItemHeight(*args, **kwargs) def HitTest(*args, **kwargs): """ @@ -1038,7 +1038,7 @@ class CheckListBox(ListBox): Test where the given (in client coords) point lies """ - return _controls.CheckListBox_HitTest(*args, **kwargs) + return _controls_.CheckListBox_HitTest(*args, **kwargs) def HitTestXY(*args, **kwargs): """ @@ -1046,7 +1046,7 @@ class CheckListBox(ListBox): Test where the given (in client coords) point lies """ - return _controls.CheckListBox_HitTestXY(*args, **kwargs) + return _controls_.CheckListBox_HitTestXY(*args, **kwargs) class CheckListBoxPtr(CheckListBox): @@ -1054,57 +1054,57 @@ class CheckListBoxPtr(CheckListBox): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = CheckListBox -_controls.CheckListBox_swigregister(CheckListBoxPtr) +_controls_.CheckListBox_swigregister(CheckListBoxPtr) def PreCheckListBox(*args, **kwargs): """PreCheckListBox() -> CheckListBox""" - val = _controls.new_PreCheckListBox(*args, **kwargs) + val = _controls_.new_PreCheckListBox(*args, **kwargs) val.thisown = 1 return val #--------------------------------------------------------------------------- -TE_NO_VSCROLL = _controls.TE_NO_VSCROLL -TE_AUTO_SCROLL = _controls.TE_AUTO_SCROLL -TE_READONLY = _controls.TE_READONLY -TE_MULTILINE = _controls.TE_MULTILINE -TE_PROCESS_TAB = _controls.TE_PROCESS_TAB -TE_LEFT = _controls.TE_LEFT -TE_CENTER = _controls.TE_CENTER -TE_RIGHT = _controls.TE_RIGHT -TE_CENTRE = _controls.TE_CENTRE -TE_RICH = _controls.TE_RICH -TE_PROCESS_ENTER = _controls.TE_PROCESS_ENTER -TE_PASSWORD = _controls.TE_PASSWORD -TE_AUTO_URL = _controls.TE_AUTO_URL -TE_NOHIDESEL = _controls.TE_NOHIDESEL -TE_DONTWRAP = _controls.TE_DONTWRAP -TE_LINEWRAP = _controls.TE_LINEWRAP -TE_WORDWRAP = _controls.TE_WORDWRAP -TE_RICH2 = _controls.TE_RICH2 -TEXT_ALIGNMENT_DEFAULT = _controls.TEXT_ALIGNMENT_DEFAULT -TEXT_ALIGNMENT_LEFT = _controls.TEXT_ALIGNMENT_LEFT -TEXT_ALIGNMENT_CENTRE = _controls.TEXT_ALIGNMENT_CENTRE -TEXT_ALIGNMENT_CENTER = _controls.TEXT_ALIGNMENT_CENTER -TEXT_ALIGNMENT_RIGHT = _controls.TEXT_ALIGNMENT_RIGHT -TEXT_ALIGNMENT_JUSTIFIED = _controls.TEXT_ALIGNMENT_JUSTIFIED -TEXT_ATTR_TEXT_COLOUR = _controls.TEXT_ATTR_TEXT_COLOUR -TEXT_ATTR_BACKGROUND_COLOUR = _controls.TEXT_ATTR_BACKGROUND_COLOUR -TEXT_ATTR_FONT_FACE = _controls.TEXT_ATTR_FONT_FACE -TEXT_ATTR_FONT_SIZE = _controls.TEXT_ATTR_FONT_SIZE -TEXT_ATTR_FONT_WEIGHT = _controls.TEXT_ATTR_FONT_WEIGHT -TEXT_ATTR_FONT_ITALIC = _controls.TEXT_ATTR_FONT_ITALIC -TEXT_ATTR_FONT_UNDERLINE = _controls.TEXT_ATTR_FONT_UNDERLINE -TEXT_ATTR_FONT = _controls.TEXT_ATTR_FONT -TEXT_ATTR_ALIGNMENT = _controls.TEXT_ATTR_ALIGNMENT -TEXT_ATTR_LEFT_INDENT = _controls.TEXT_ATTR_LEFT_INDENT -TEXT_ATTR_RIGHT_INDENT = _controls.TEXT_ATTR_RIGHT_INDENT -TEXT_ATTR_TABS = _controls.TEXT_ATTR_TABS -TE_HT_UNKNOWN = _controls.TE_HT_UNKNOWN -TE_HT_BEFORE = _controls.TE_HT_BEFORE -TE_HT_ON_TEXT = _controls.TE_HT_ON_TEXT -TE_HT_BELOW = _controls.TE_HT_BELOW -TE_HT_BEYOND = _controls.TE_HT_BEYOND +TE_NO_VSCROLL = _controls_.TE_NO_VSCROLL +TE_AUTO_SCROLL = _controls_.TE_AUTO_SCROLL +TE_READONLY = _controls_.TE_READONLY +TE_MULTILINE = _controls_.TE_MULTILINE +TE_PROCESS_TAB = _controls_.TE_PROCESS_TAB +TE_LEFT = _controls_.TE_LEFT +TE_CENTER = _controls_.TE_CENTER +TE_RIGHT = _controls_.TE_RIGHT +TE_CENTRE = _controls_.TE_CENTRE +TE_RICH = _controls_.TE_RICH +TE_PROCESS_ENTER = _controls_.TE_PROCESS_ENTER +TE_PASSWORD = _controls_.TE_PASSWORD +TE_AUTO_URL = _controls_.TE_AUTO_URL +TE_NOHIDESEL = _controls_.TE_NOHIDESEL +TE_DONTWRAP = _controls_.TE_DONTWRAP +TE_LINEWRAP = _controls_.TE_LINEWRAP +TE_WORDWRAP = _controls_.TE_WORDWRAP +TE_RICH2 = _controls_.TE_RICH2 +TEXT_ALIGNMENT_DEFAULT = _controls_.TEXT_ALIGNMENT_DEFAULT +TEXT_ALIGNMENT_LEFT = _controls_.TEXT_ALIGNMENT_LEFT +TEXT_ALIGNMENT_CENTRE = _controls_.TEXT_ALIGNMENT_CENTRE +TEXT_ALIGNMENT_CENTER = _controls_.TEXT_ALIGNMENT_CENTER +TEXT_ALIGNMENT_RIGHT = _controls_.TEXT_ALIGNMENT_RIGHT +TEXT_ALIGNMENT_JUSTIFIED = _controls_.TEXT_ALIGNMENT_JUSTIFIED +TEXT_ATTR_TEXT_COLOUR = _controls_.TEXT_ATTR_TEXT_COLOUR +TEXT_ATTR_BACKGROUND_COLOUR = _controls_.TEXT_ATTR_BACKGROUND_COLOUR +TEXT_ATTR_FONT_FACE = _controls_.TEXT_ATTR_FONT_FACE +TEXT_ATTR_FONT_SIZE = _controls_.TEXT_ATTR_FONT_SIZE +TEXT_ATTR_FONT_WEIGHT = _controls_.TEXT_ATTR_FONT_WEIGHT +TEXT_ATTR_FONT_ITALIC = _controls_.TEXT_ATTR_FONT_ITALIC +TEXT_ATTR_FONT_UNDERLINE = _controls_.TEXT_ATTR_FONT_UNDERLINE +TEXT_ATTR_FONT = _controls_.TEXT_ATTR_FONT +TEXT_ATTR_ALIGNMENT = _controls_.TEXT_ATTR_ALIGNMENT +TEXT_ATTR_LEFT_INDENT = _controls_.TEXT_ATTR_LEFT_INDENT +TEXT_ATTR_RIGHT_INDENT = _controls_.TEXT_ATTR_RIGHT_INDENT +TEXT_ATTR_TABS = _controls_.TEXT_ATTR_TABS +TE_HT_UNKNOWN = _controls_.TE_HT_UNKNOWN +TE_HT_BEFORE = _controls_.TE_HT_BEFORE +TE_HT_ON_TEXT = _controls_.TE_HT_ON_TEXT +TE_HT_BELOW = _controls_.TE_HT_BELOW +TE_HT_BEYOND = _controls_.TE_HT_BEYOND class TextAttr(object): def __repr__(self): return "<%s.%s; proxy of C++ wxTextAttr instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) @@ -1114,11 +1114,11 @@ class TextAttr(object): __init__(self, Colour colText, Colour colBack=wxNullColour, Font font=wxNullFont, int alignment=TEXT_ALIGNMENT_DEFAULT) -> TextAttr """ - newobj = _controls.new_TextAttr(*args) + newobj = _controls_.new_TextAttr(*args) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_controls.delete_TextAttr): + def __del__(self, destroy=_controls_.delete_TextAttr): """__del__(self)""" try: if self.thisown: destroy(self) @@ -1126,111 +1126,111 @@ class TextAttr(object): def Init(*args, **kwargs): """Init(self)""" - return _controls.TextAttr_Init(*args, **kwargs) + return _controls_.TextAttr_Init(*args, **kwargs) def SetTextColour(*args, **kwargs): """SetTextColour(self, Colour colText)""" - return _controls.TextAttr_SetTextColour(*args, **kwargs) + return _controls_.TextAttr_SetTextColour(*args, **kwargs) def SetBackgroundColour(*args, **kwargs): """SetBackgroundColour(self, Colour colBack)""" - return _controls.TextAttr_SetBackgroundColour(*args, **kwargs) + return _controls_.TextAttr_SetBackgroundColour(*args, **kwargs) def SetFont(*args, **kwargs): """SetFont(self, Font font, long flags=TEXT_ATTR_FONT)""" - return _controls.TextAttr_SetFont(*args, **kwargs) + return _controls_.TextAttr_SetFont(*args, **kwargs) def SetAlignment(*args, **kwargs): """SetAlignment(self, int alignment)""" - return _controls.TextAttr_SetAlignment(*args, **kwargs) + return _controls_.TextAttr_SetAlignment(*args, **kwargs) def SetTabs(*args, **kwargs): """SetTabs(self, wxArrayInt tabs)""" - return _controls.TextAttr_SetTabs(*args, **kwargs) + return _controls_.TextAttr_SetTabs(*args, **kwargs) def SetLeftIndent(*args, **kwargs): """SetLeftIndent(self, int indent)""" - return _controls.TextAttr_SetLeftIndent(*args, **kwargs) + return _controls_.TextAttr_SetLeftIndent(*args, **kwargs) def SetRightIndent(*args, **kwargs): """SetRightIndent(self, int indent)""" - return _controls.TextAttr_SetRightIndent(*args, **kwargs) + return _controls_.TextAttr_SetRightIndent(*args, **kwargs) def SetFlags(*args, **kwargs): """SetFlags(self, long flags)""" - return _controls.TextAttr_SetFlags(*args, **kwargs) + return _controls_.TextAttr_SetFlags(*args, **kwargs) def HasTextColour(*args, **kwargs): """HasTextColour(self) -> bool""" - return _controls.TextAttr_HasTextColour(*args, **kwargs) + return _controls_.TextAttr_HasTextColour(*args, **kwargs) def HasBackgroundColour(*args, **kwargs): """HasBackgroundColour(self) -> bool""" - return _controls.TextAttr_HasBackgroundColour(*args, **kwargs) + return _controls_.TextAttr_HasBackgroundColour(*args, **kwargs) def HasFont(*args, **kwargs): """HasFont(self) -> bool""" - return _controls.TextAttr_HasFont(*args, **kwargs) + return _controls_.TextAttr_HasFont(*args, **kwargs) def HasAlignment(*args, **kwargs): """HasAlignment(self) -> bool""" - return _controls.TextAttr_HasAlignment(*args, **kwargs) + return _controls_.TextAttr_HasAlignment(*args, **kwargs) def HasTabs(*args, **kwargs): """HasTabs(self) -> bool""" - return _controls.TextAttr_HasTabs(*args, **kwargs) + return _controls_.TextAttr_HasTabs(*args, **kwargs) def HasLeftIndent(*args, **kwargs): """HasLeftIndent(self) -> bool""" - return _controls.TextAttr_HasLeftIndent(*args, **kwargs) + return _controls_.TextAttr_HasLeftIndent(*args, **kwargs) def HasRightIndent(*args, **kwargs): """HasRightIndent(self) -> bool""" - return _controls.TextAttr_HasRightIndent(*args, **kwargs) + return _controls_.TextAttr_HasRightIndent(*args, **kwargs) def HasFlag(*args, **kwargs): """HasFlag(self, long flag) -> bool""" - return _controls.TextAttr_HasFlag(*args, **kwargs) + return _controls_.TextAttr_HasFlag(*args, **kwargs) def GetTextColour(*args, **kwargs): """GetTextColour(self) -> Colour""" - return _controls.TextAttr_GetTextColour(*args, **kwargs) + return _controls_.TextAttr_GetTextColour(*args, **kwargs) def GetBackgroundColour(*args, **kwargs): """GetBackgroundColour(self) -> Colour""" - return _controls.TextAttr_GetBackgroundColour(*args, **kwargs) + return _controls_.TextAttr_GetBackgroundColour(*args, **kwargs) def GetFont(*args, **kwargs): """GetFont(self) -> Font""" - return _controls.TextAttr_GetFont(*args, **kwargs) + return _controls_.TextAttr_GetFont(*args, **kwargs) def GetAlignment(*args, **kwargs): """GetAlignment(self) -> int""" - return _controls.TextAttr_GetAlignment(*args, **kwargs) + return _controls_.TextAttr_GetAlignment(*args, **kwargs) def GetTabs(*args, **kwargs): """GetTabs(self) -> wxArrayInt""" - return _controls.TextAttr_GetTabs(*args, **kwargs) + return _controls_.TextAttr_GetTabs(*args, **kwargs) def GetLeftIndent(*args, **kwargs): """GetLeftIndent(self) -> long""" - return _controls.TextAttr_GetLeftIndent(*args, **kwargs) + return _controls_.TextAttr_GetLeftIndent(*args, **kwargs) def GetRightIndent(*args, **kwargs): """GetRightIndent(self) -> long""" - return _controls.TextAttr_GetRightIndent(*args, **kwargs) + return _controls_.TextAttr_GetRightIndent(*args, **kwargs) def GetFlags(*args, **kwargs): """GetFlags(self) -> long""" - return _controls.TextAttr_GetFlags(*args, **kwargs) + return _controls_.TextAttr_GetFlags(*args, **kwargs) def IsDefault(*args, **kwargs): """IsDefault(self) -> bool""" - return _controls.TextAttr_IsDefault(*args, **kwargs) + return _controls_.TextAttr_IsDefault(*args, **kwargs) def Combine(*args, **kwargs): """TextAttr.Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr""" - return _controls.TextAttr_Combine(*args, **kwargs) + return _controls_.TextAttr_Combine(*args, **kwargs) Combine = staticmethod(Combine) @@ -1239,14 +1239,14 @@ class TextAttrPtr(TextAttr): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = TextAttr -_controls.TextAttr_swigregister(TextAttrPtr) +_controls_.TextAttr_swigregister(TextAttrPtr) TextCtrlNameStr = cvar.TextCtrlNameStr def TextAttr_Combine(*args, **kwargs): """TextAttr_Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr""" - return _controls.TextAttr_Combine(*args, **kwargs) + return _controls_.TextAttr_Combine(*args, **kwargs) -class TextCtrl(core.Control): +class TextCtrl(_core.Control): def __repr__(self): return "<%s.%s; proxy of C++ wxTextCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -1256,7 +1256,7 @@ class TextCtrl(core.Control): long style=0, Validator validator=DefaultValidator, String name=TextCtrlNameStr) -> TextCtrl """ - newobj = _controls.new_TextCtrl(*args, **kwargs) + newobj = _controls_.new_TextCtrl(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -1269,47 +1269,47 @@ class TextCtrl(core.Control): long style=0, Validator validator=DefaultValidator, String name=TextCtrlNameStr) -> bool """ - return _controls.TextCtrl_Create(*args, **kwargs) + return _controls_.TextCtrl_Create(*args, **kwargs) def GetValue(*args, **kwargs): """GetValue(self) -> String""" - return _controls.TextCtrl_GetValue(*args, **kwargs) + return _controls_.TextCtrl_GetValue(*args, **kwargs) def SetValue(*args, **kwargs): """SetValue(self, String value)""" - return _controls.TextCtrl_SetValue(*args, **kwargs) + return _controls_.TextCtrl_SetValue(*args, **kwargs) def GetRange(*args, **kwargs): """GetRange(self, long from, long to) -> String""" - return _controls.TextCtrl_GetRange(*args, **kwargs) + return _controls_.TextCtrl_GetRange(*args, **kwargs) def GetLineLength(*args, **kwargs): """GetLineLength(self, long lineNo) -> int""" - return _controls.TextCtrl_GetLineLength(*args, **kwargs) + return _controls_.TextCtrl_GetLineLength(*args, **kwargs) def GetLineText(*args, **kwargs): """GetLineText(self, long lineNo) -> String""" - return _controls.TextCtrl_GetLineText(*args, **kwargs) + return _controls_.TextCtrl_GetLineText(*args, **kwargs) def GetNumberOfLines(*args, **kwargs): """GetNumberOfLines(self) -> int""" - return _controls.TextCtrl_GetNumberOfLines(*args, **kwargs) + return _controls_.TextCtrl_GetNumberOfLines(*args, **kwargs) def IsModified(*args, **kwargs): """IsModified(self) -> bool""" - return _controls.TextCtrl_IsModified(*args, **kwargs) + return _controls_.TextCtrl_IsModified(*args, **kwargs) def IsEditable(*args, **kwargs): """IsEditable(self) -> bool""" - return _controls.TextCtrl_IsEditable(*args, **kwargs) + return _controls_.TextCtrl_IsEditable(*args, **kwargs) def IsSingleLine(*args, **kwargs): """IsSingleLine(self) -> bool""" - return _controls.TextCtrl_IsSingleLine(*args, **kwargs) + return _controls_.TextCtrl_IsSingleLine(*args, **kwargs) def IsMultiLine(*args, **kwargs): """IsMultiLine(self) -> bool""" - return _controls.TextCtrl_IsMultiLine(*args, **kwargs) + return _controls_.TextCtrl_IsMultiLine(*args, **kwargs) def GetSelection(*args, **kwargs): """ @@ -1317,83 +1317,83 @@ class TextCtrl(core.Control): If the return values from and to are the same, there is no selection. """ - return _controls.TextCtrl_GetSelection(*args, **kwargs) + return _controls_.TextCtrl_GetSelection(*args, **kwargs) def GetStringSelection(*args, **kwargs): """GetStringSelection(self) -> String""" - return _controls.TextCtrl_GetStringSelection(*args, **kwargs) + return _controls_.TextCtrl_GetStringSelection(*args, **kwargs) def Clear(*args, **kwargs): """Clear(self)""" - return _controls.TextCtrl_Clear(*args, **kwargs) + return _controls_.TextCtrl_Clear(*args, **kwargs) def Replace(*args, **kwargs): """Replace(self, long from, long to, String value)""" - return _controls.TextCtrl_Replace(*args, **kwargs) + return _controls_.TextCtrl_Replace(*args, **kwargs) def Remove(*args, **kwargs): """Remove(self, long from, long to)""" - return _controls.TextCtrl_Remove(*args, **kwargs) + return _controls_.TextCtrl_Remove(*args, **kwargs) def LoadFile(*args, **kwargs): """LoadFile(self, String file) -> bool""" - return _controls.TextCtrl_LoadFile(*args, **kwargs) + return _controls_.TextCtrl_LoadFile(*args, **kwargs) def SaveFile(*args, **kwargs): """SaveFile(self, String file=EmptyString) -> bool""" - return _controls.TextCtrl_SaveFile(*args, **kwargs) + return _controls_.TextCtrl_SaveFile(*args, **kwargs) def MarkDirty(*args, **kwargs): """MarkDirty(self)""" - return _controls.TextCtrl_MarkDirty(*args, **kwargs) + return _controls_.TextCtrl_MarkDirty(*args, **kwargs) def DiscardEdits(*args, **kwargs): """DiscardEdits(self)""" - return _controls.TextCtrl_DiscardEdits(*args, **kwargs) + return _controls_.TextCtrl_DiscardEdits(*args, **kwargs) def SetMaxLength(*args, **kwargs): """SetMaxLength(self, unsigned long len)""" - return _controls.TextCtrl_SetMaxLength(*args, **kwargs) + return _controls_.TextCtrl_SetMaxLength(*args, **kwargs) def WriteText(*args, **kwargs): """WriteText(self, String text)""" - return _controls.TextCtrl_WriteText(*args, **kwargs) + return _controls_.TextCtrl_WriteText(*args, **kwargs) def AppendText(*args, **kwargs): """AppendText(self, String text)""" - return _controls.TextCtrl_AppendText(*args, **kwargs) + return _controls_.TextCtrl_AppendText(*args, **kwargs) def EmulateKeyPress(*args, **kwargs): """EmulateKeyPress(self, KeyEvent event) -> bool""" - return _controls.TextCtrl_EmulateKeyPress(*args, **kwargs) + return _controls_.TextCtrl_EmulateKeyPress(*args, **kwargs) def SetStyle(*args, **kwargs): """SetStyle(self, long start, long end, TextAttr style) -> bool""" - return _controls.TextCtrl_SetStyle(*args, **kwargs) + return _controls_.TextCtrl_SetStyle(*args, **kwargs) def GetStyle(*args, **kwargs): """GetStyle(self, long position, TextAttr style) -> bool""" - return _controls.TextCtrl_GetStyle(*args, **kwargs) + return _controls_.TextCtrl_GetStyle(*args, **kwargs) def SetDefaultStyle(*args, **kwargs): """SetDefaultStyle(self, TextAttr style) -> bool""" - return _controls.TextCtrl_SetDefaultStyle(*args, **kwargs) + return _controls_.TextCtrl_SetDefaultStyle(*args, **kwargs) def GetDefaultStyle(*args, **kwargs): """GetDefaultStyle(self) -> TextAttr""" - return _controls.TextCtrl_GetDefaultStyle(*args, **kwargs) + return _controls_.TextCtrl_GetDefaultStyle(*args, **kwargs) def XYToPosition(*args, **kwargs): """XYToPosition(self, long x, long y) -> long""" - return _controls.TextCtrl_XYToPosition(*args, **kwargs) + return _controls_.TextCtrl_XYToPosition(*args, **kwargs) def PositionToXY(*args, **kwargs): """PositionToXY(long pos) -> (x, y)""" - return _controls.TextCtrl_PositionToXY(*args, **kwargs) + return _controls_.TextCtrl_PositionToXY(*args, **kwargs) def ShowPosition(*args, **kwargs): """ShowPosition(self, long pos)""" - return _controls.TextCtrl_ShowPosition(*args, **kwargs) + return _controls_.TextCtrl_ShowPosition(*args, **kwargs) def HitTest(*args, **kwargs): """ @@ -1403,83 +1403,83 @@ class TextCtrl(core.Control): NB: pt is in device coords (not adjusted for the client area origin nor scrolling) """ - return _controls.TextCtrl_HitTest(*args, **kwargs) + return _controls_.TextCtrl_HitTest(*args, **kwargs) def Copy(*args, **kwargs): """Copy(self)""" - return _controls.TextCtrl_Copy(*args, **kwargs) + return _controls_.TextCtrl_Copy(*args, **kwargs) def Cut(*args, **kwargs): """Cut(self)""" - return _controls.TextCtrl_Cut(*args, **kwargs) + return _controls_.TextCtrl_Cut(*args, **kwargs) def Paste(*args, **kwargs): """Paste(self)""" - return _controls.TextCtrl_Paste(*args, **kwargs) + return _controls_.TextCtrl_Paste(*args, **kwargs) def CanCopy(*args, **kwargs): """CanCopy(self) -> bool""" - return _controls.TextCtrl_CanCopy(*args, **kwargs) + return _controls_.TextCtrl_CanCopy(*args, **kwargs) def CanCut(*args, **kwargs): """CanCut(self) -> bool""" - return _controls.TextCtrl_CanCut(*args, **kwargs) + return _controls_.TextCtrl_CanCut(*args, **kwargs) def CanPaste(*args, **kwargs): """CanPaste(self) -> bool""" - return _controls.TextCtrl_CanPaste(*args, **kwargs) + return _controls_.TextCtrl_CanPaste(*args, **kwargs) def Undo(*args, **kwargs): """Undo(self)""" - return _controls.TextCtrl_Undo(*args, **kwargs) + return _controls_.TextCtrl_Undo(*args, **kwargs) def Redo(*args, **kwargs): """Redo(self)""" - return _controls.TextCtrl_Redo(*args, **kwargs) + return _controls_.TextCtrl_Redo(*args, **kwargs) def CanUndo(*args, **kwargs): """CanUndo(self) -> bool""" - return _controls.TextCtrl_CanUndo(*args, **kwargs) + return _controls_.TextCtrl_CanUndo(*args, **kwargs) def CanRedo(*args, **kwargs): """CanRedo(self) -> bool""" - return _controls.TextCtrl_CanRedo(*args, **kwargs) + return _controls_.TextCtrl_CanRedo(*args, **kwargs) def SetInsertionPoint(*args, **kwargs): """SetInsertionPoint(self, long pos)""" - return _controls.TextCtrl_SetInsertionPoint(*args, **kwargs) + return _controls_.TextCtrl_SetInsertionPoint(*args, **kwargs) def SetInsertionPointEnd(*args, **kwargs): """SetInsertionPointEnd(self)""" - return _controls.TextCtrl_SetInsertionPointEnd(*args, **kwargs) + return _controls_.TextCtrl_SetInsertionPointEnd(*args, **kwargs) def GetInsertionPoint(*args, **kwargs): """GetInsertionPoint(self) -> long""" - return _controls.TextCtrl_GetInsertionPoint(*args, **kwargs) + return _controls_.TextCtrl_GetInsertionPoint(*args, **kwargs) def GetLastPosition(*args, **kwargs): """GetLastPosition(self) -> long""" - return _controls.TextCtrl_GetLastPosition(*args, **kwargs) + return _controls_.TextCtrl_GetLastPosition(*args, **kwargs) def SetSelection(*args, **kwargs): """SetSelection(self, long from, long to)""" - return _controls.TextCtrl_SetSelection(*args, **kwargs) + return _controls_.TextCtrl_SetSelection(*args, **kwargs) def SelectAll(*args, **kwargs): """SelectAll(self)""" - return _controls.TextCtrl_SelectAll(*args, **kwargs) + return _controls_.TextCtrl_SelectAll(*args, **kwargs) def SetEditable(*args, **kwargs): """SetEditable(self, bool editable)""" - return _controls.TextCtrl_SetEditable(*args, **kwargs) + return _controls_.TextCtrl_SetEditable(*args, **kwargs) def write(*args, **kwargs): """write(self, String text)""" - return _controls.TextCtrl_write(*args, **kwargs) + return _controls_.TextCtrl_write(*args, **kwargs) def GetString(*args, **kwargs): """GetString(self, long from, long to) -> String""" - return _controls.TextCtrl_GetString(*args, **kwargs) + return _controls_.TextCtrl_GetString(*args, **kwargs) class TextCtrlPtr(TextCtrl): @@ -1487,38 +1487,38 @@ class TextCtrlPtr(TextCtrl): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = TextCtrl -_controls.TextCtrl_swigregister(TextCtrlPtr) +_controls_.TextCtrl_swigregister(TextCtrlPtr) def PreTextCtrl(*args, **kwargs): """PreTextCtrl() -> TextCtrl""" - val = _controls.new_PreTextCtrl(*args, **kwargs) + val = _controls_.new_PreTextCtrl(*args, **kwargs) val.thisown = 1 return val -wxEVT_COMMAND_TEXT_UPDATED = _controls.wxEVT_COMMAND_TEXT_UPDATED -wxEVT_COMMAND_TEXT_ENTER = _controls.wxEVT_COMMAND_TEXT_ENTER -wxEVT_COMMAND_TEXT_URL = _controls.wxEVT_COMMAND_TEXT_URL -wxEVT_COMMAND_TEXT_MAXLEN = _controls.wxEVT_COMMAND_TEXT_MAXLEN -class TextUrlEvent(core.CommandEvent): +wxEVT_COMMAND_TEXT_UPDATED = _controls_.wxEVT_COMMAND_TEXT_UPDATED +wxEVT_COMMAND_TEXT_ENTER = _controls_.wxEVT_COMMAND_TEXT_ENTER +wxEVT_COMMAND_TEXT_URL = _controls_.wxEVT_COMMAND_TEXT_URL +wxEVT_COMMAND_TEXT_MAXLEN = _controls_.wxEVT_COMMAND_TEXT_MAXLEN +class TextUrlEvent(_core.CommandEvent): def __repr__(self): return "<%s.%s; proxy of C++ wxTextUrlEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, int winid, MouseEvent evtMouse, long start, long end) -> TextUrlEvent""" - newobj = _controls.new_TextUrlEvent(*args, **kwargs) + newobj = _controls_.new_TextUrlEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def GetMouseEvent(*args, **kwargs): """GetMouseEvent(self) -> MouseEvent""" - return _controls.TextUrlEvent_GetMouseEvent(*args, **kwargs) + return _controls_.TextUrlEvent_GetMouseEvent(*args, **kwargs) def GetURLStart(*args, **kwargs): """GetURLStart(self) -> long""" - return _controls.TextUrlEvent_GetURLStart(*args, **kwargs) + return _controls_.TextUrlEvent_GetURLStart(*args, **kwargs) def GetURLEnd(*args, **kwargs): """GetURLEnd(self) -> long""" - return _controls.TextUrlEvent_GetURLEnd(*args, **kwargs) + return _controls_.TextUrlEvent_GetURLEnd(*args, **kwargs) class TextUrlEventPtr(TextUrlEvent): @@ -1526,7 +1526,7 @@ class TextUrlEventPtr(TextUrlEvent): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = TextUrlEvent -_controls.TextUrlEvent_swigregister(TextUrlEventPtr) +_controls_.TextUrlEvent_swigregister(TextUrlEventPtr) EVT_TEXT = wx.PyEventBinder( wxEVT_COMMAND_TEXT_UPDATED, 1) EVT_TEXT_ENTER = wx.PyEventBinder( wxEVT_COMMAND_TEXT_ENTER, 1) @@ -1535,7 +1535,7 @@ EVT_TEXT_MAXLEN = wx.PyEventBinder( wxEVT_COMMAND_TEXT_MAXLEN, 1) #--------------------------------------------------------------------------- -class ScrollBar(core.Control): +class ScrollBar(_core.Control): def __repr__(self): return "<%s.%s; proxy of C++ wxScrollBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -1544,7 +1544,7 @@ class ScrollBar(core.Control): Size size=DefaultSize, long style=SB_HORIZONTAL, Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> ScrollBar """ - newobj = _controls.new_ScrollBar(*args, **kwargs) + newobj = _controls_.new_ScrollBar(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -1558,32 +1558,32 @@ class ScrollBar(core.Control): Do the 2nd phase and create the GUI control. """ - return _controls.ScrollBar_Create(*args, **kwargs) + return _controls_.ScrollBar_Create(*args, **kwargs) def GetThumbPosition(*args, **kwargs): """GetThumbPosition(self) -> int""" - return _controls.ScrollBar_GetThumbPosition(*args, **kwargs) + return _controls_.ScrollBar_GetThumbPosition(*args, **kwargs) def GetThumbSize(*args, **kwargs): """GetThumbSize(self) -> int""" - return _controls.ScrollBar_GetThumbSize(*args, **kwargs) + return _controls_.ScrollBar_GetThumbSize(*args, **kwargs) GetThumbLength = GetThumbSize def GetPageSize(*args, **kwargs): """GetPageSize(self) -> int""" - return _controls.ScrollBar_GetPageSize(*args, **kwargs) + return _controls_.ScrollBar_GetPageSize(*args, **kwargs) def GetRange(*args, **kwargs): """GetRange(self) -> int""" - return _controls.ScrollBar_GetRange(*args, **kwargs) + return _controls_.ScrollBar_GetRange(*args, **kwargs) def IsVertical(*args, **kwargs): """IsVertical(self) -> bool""" - return _controls.ScrollBar_IsVertical(*args, **kwargs) + return _controls_.ScrollBar_IsVertical(*args, **kwargs) def SetThumbPosition(*args, **kwargs): """SetThumbPosition(self, int viewStart)""" - return _controls.ScrollBar_SetThumbPosition(*args, **kwargs) + return _controls_.ScrollBar_SetThumbPosition(*args, **kwargs) def SetScrollbar(*args, **kwargs): """ @@ -1604,7 +1604,7 @@ class ScrollBar(core.Control): refresh: True to redraw the scrollbar, false otherwise. """ - return _controls.ScrollBar_SetScrollbar(*args, **kwargs) + return _controls_.ScrollBar_SetScrollbar(*args, **kwargs) class ScrollBarPtr(ScrollBar): @@ -1612,22 +1612,22 @@ class ScrollBarPtr(ScrollBar): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = ScrollBar -_controls.ScrollBar_swigregister(ScrollBarPtr) +_controls_.ScrollBar_swigregister(ScrollBarPtr) ScrollBarNameStr = cvar.ScrollBarNameStr def PreScrollBar(*args, **kwargs): """PreScrollBar() -> ScrollBar""" - val = _controls.new_PreScrollBar(*args, **kwargs) + val = _controls_.new_PreScrollBar(*args, **kwargs) val.thisown = 1 return val #--------------------------------------------------------------------------- -SP_HORIZONTAL = _controls.SP_HORIZONTAL -SP_VERTICAL = _controls.SP_VERTICAL -SP_ARROW_KEYS = _controls.SP_ARROW_KEYS -SP_WRAP = _controls.SP_WRAP -class SpinButton(core.Control): +SP_HORIZONTAL = _controls_.SP_HORIZONTAL +SP_VERTICAL = _controls_.SP_VERTICAL +SP_ARROW_KEYS = _controls_.SP_ARROW_KEYS +SP_WRAP = _controls_.SP_WRAP +class SpinButton(_core.Control): def __repr__(self): return "<%s.%s; proxy of C++ wxSpinButton instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -1636,7 +1636,7 @@ class SpinButton(core.Control): Size size=DefaultSize, long style=SP_HORIZONTAL, String name=SPIN_BUTTON_NAME) -> SpinButton """ - newobj = _controls.new_SpinButton(*args, **kwargs) + newobj = _controls_.new_SpinButton(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -1648,39 +1648,39 @@ class SpinButton(core.Control): Size size=DefaultSize, long style=SP_HORIZONTAL, String name=SPIN_BUTTON_NAME) -> bool """ - return _controls.SpinButton_Create(*args, **kwargs) + return _controls_.SpinButton_Create(*args, **kwargs) def GetValue(*args, **kwargs): """GetValue(self) -> int""" - return _controls.SpinButton_GetValue(*args, **kwargs) + return _controls_.SpinButton_GetValue(*args, **kwargs) def GetMin(*args, **kwargs): """GetMin(self) -> int""" - return _controls.SpinButton_GetMin(*args, **kwargs) + return _controls_.SpinButton_GetMin(*args, **kwargs) def GetMax(*args, **kwargs): """GetMax(self) -> int""" - return _controls.SpinButton_GetMax(*args, **kwargs) + return _controls_.SpinButton_GetMax(*args, **kwargs) def SetValue(*args, **kwargs): """SetValue(self, int val)""" - return _controls.SpinButton_SetValue(*args, **kwargs) + return _controls_.SpinButton_SetValue(*args, **kwargs) def SetMin(*args, **kwargs): """SetMin(self, int minVal)""" - return _controls.SpinButton_SetMin(*args, **kwargs) + return _controls_.SpinButton_SetMin(*args, **kwargs) def SetMax(*args, **kwargs): """SetMax(self, int maxVal)""" - return _controls.SpinButton_SetMax(*args, **kwargs) + return _controls_.SpinButton_SetMax(*args, **kwargs) def SetRange(*args, **kwargs): """SetRange(self, int minVal, int maxVal)""" - return _controls.SpinButton_SetRange(*args, **kwargs) + return _controls_.SpinButton_SetRange(*args, **kwargs) def IsVertical(*args, **kwargs): """IsVertical(self) -> bool""" - return _controls.SpinButton_IsVertical(*args, **kwargs) + return _controls_.SpinButton_IsVertical(*args, **kwargs) class SpinButtonPtr(SpinButton): @@ -1688,17 +1688,17 @@ class SpinButtonPtr(SpinButton): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = SpinButton -_controls.SpinButton_swigregister(SpinButtonPtr) +_controls_.SpinButton_swigregister(SpinButtonPtr) SPIN_BUTTON_NAME = cvar.SPIN_BUTTON_NAME SpinCtrlNameStr = cvar.SpinCtrlNameStr def PreSpinButton(*args, **kwargs): """PreSpinButton() -> SpinButton""" - val = _controls.new_PreSpinButton(*args, **kwargs) + val = _controls_.new_PreSpinButton(*args, **kwargs) val.thisown = 1 return val -class SpinCtrl(core.Control): +class SpinCtrl(_core.Control): def __repr__(self): return "<%s.%s; proxy of C++ wxSpinCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -1708,7 +1708,7 @@ class SpinCtrl(core.Control): long style=SP_ARROW_KEYS, int min=0, int max=100, int initial=0, String name=SpinCtrlNameStr) -> SpinCtrl """ - newobj = _controls.new_SpinCtrl(*args, **kwargs) + newobj = _controls_.new_SpinCtrl(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -1721,35 +1721,35 @@ class SpinCtrl(core.Control): long style=SP_ARROW_KEYS, int min=0, int max=100, int initial=0, String name=SpinCtrlNameStr) -> bool """ - return _controls.SpinCtrl_Create(*args, **kwargs) + return _controls_.SpinCtrl_Create(*args, **kwargs) def GetValue(*args, **kwargs): """GetValue(self) -> int""" - return _controls.SpinCtrl_GetValue(*args, **kwargs) + return _controls_.SpinCtrl_GetValue(*args, **kwargs) def SetValue(*args, **kwargs): """SetValue(self, int value)""" - return _controls.SpinCtrl_SetValue(*args, **kwargs) + return _controls_.SpinCtrl_SetValue(*args, **kwargs) def SetValueString(*args, **kwargs): """SetValueString(self, String text)""" - return _controls.SpinCtrl_SetValueString(*args, **kwargs) + return _controls_.SpinCtrl_SetValueString(*args, **kwargs) def SetRange(*args, **kwargs): """SetRange(self, int minVal, int maxVal)""" - return _controls.SpinCtrl_SetRange(*args, **kwargs) + return _controls_.SpinCtrl_SetRange(*args, **kwargs) def GetMin(*args, **kwargs): """GetMin(self) -> int""" - return _controls.SpinCtrl_GetMin(*args, **kwargs) + return _controls_.SpinCtrl_GetMin(*args, **kwargs) def GetMax(*args, **kwargs): """GetMax(self) -> int""" - return _controls.SpinCtrl_GetMax(*args, **kwargs) + return _controls_.SpinCtrl_GetMax(*args, **kwargs) def SetSelection(*args, **kwargs): """SetSelection(self, long from, long to)""" - return _controls.SpinCtrl_SetSelection(*args, **kwargs) + return _controls_.SpinCtrl_SetSelection(*args, **kwargs) class SpinCtrlPtr(SpinCtrl): @@ -1757,30 +1757,30 @@ class SpinCtrlPtr(SpinCtrl): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = SpinCtrl -_controls.SpinCtrl_swigregister(SpinCtrlPtr) +_controls_.SpinCtrl_swigregister(SpinCtrlPtr) def PreSpinCtrl(*args, **kwargs): """PreSpinCtrl() -> SpinCtrl""" - val = _controls.new_PreSpinCtrl(*args, **kwargs) + val = _controls_.new_PreSpinCtrl(*args, **kwargs) val.thisown = 1 return val -class SpinEvent(core.NotifyEvent): +class SpinEvent(_core.NotifyEvent): def __repr__(self): return "<%s.%s; proxy of C++ wxSpinEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, wxEventType commandType=wxEVT_NULL, int winid=0) -> SpinEvent""" - newobj = _controls.new_SpinEvent(*args, **kwargs) + newobj = _controls_.new_SpinEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def GetPosition(*args, **kwargs): """GetPosition(self) -> int""" - return _controls.SpinEvent_GetPosition(*args, **kwargs) + return _controls_.SpinEvent_GetPosition(*args, **kwargs) def SetPosition(*args, **kwargs): """SetPosition(self, int pos)""" - return _controls.SpinEvent_SetPosition(*args, **kwargs) + return _controls_.SpinEvent_SetPosition(*args, **kwargs) class SpinEventPtr(SpinEvent): @@ -1788,9 +1788,9 @@ class SpinEventPtr(SpinEvent): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = SpinEvent -_controls.SpinEvent_swigregister(SpinEventPtr) +_controls_.SpinEvent_swigregister(SpinEventPtr) -wxEVT_COMMAND_SPINCTRL_UPDATED = _controls.wxEVT_COMMAND_SPINCTRL_UPDATED +wxEVT_COMMAND_SPINCTRL_UPDATED = _controls_.wxEVT_COMMAND_SPINCTRL_UPDATED EVT_SPIN_UP = wx.PyEventBinder( wx.wxEVT_SCROLL_LINEUP, 1) EVT_SPIN_DOWN = wx.PyEventBinder( wx.wxEVT_SCROLL_LINEDOWN, 1) EVT_SPIN = wx.PyEventBinder( wx.wxEVT_SCROLL_THUMBTRACK, 1) @@ -1798,7 +1798,7 @@ EVT_SPINCTRL = wx.PyEventBinder( wxEVT_COMMAND_SPINCTRL_UPDATED, 1) #--------------------------------------------------------------------------- -class RadioBox(core.Control): +class RadioBox(_core.Control): def __repr__(self): return "<%s.%s; proxy of C++ wxRadioBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -1810,7 +1810,7 @@ class RadioBox(core.Control): String name=RadioBoxNameStr) -> RadioBox """ if kwargs.has_key('point'): kwargs['pos'] = kwargs['point'];del kwargs['point'] - newobj = _controls.new_RadioBox(*args, **kwargs) + newobj = _controls_.new_RadioBox(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -1824,61 +1824,61 @@ class RadioBox(core.Control): long style=RA_HORIZONTAL, Validator validator=DefaultValidator, String name=RadioBoxNameStr) -> bool """ - return _controls.RadioBox_Create(*args, **kwargs) + return _controls_.RadioBox_Create(*args, **kwargs) def SetSelection(*args, **kwargs): """SetSelection(self, int n)""" - return _controls.RadioBox_SetSelection(*args, **kwargs) + return _controls_.RadioBox_SetSelection(*args, **kwargs) def GetSelection(*args, **kwargs): """GetSelection(self) -> int""" - return _controls.RadioBox_GetSelection(*args, **kwargs) + return _controls_.RadioBox_GetSelection(*args, **kwargs) def GetStringSelection(*args, **kwargs): """GetStringSelection(self) -> String""" - return _controls.RadioBox_GetStringSelection(*args, **kwargs) + return _controls_.RadioBox_GetStringSelection(*args, **kwargs) def SetStringSelection(*args, **kwargs): """SetStringSelection(self, String s) -> bool""" - return _controls.RadioBox_SetStringSelection(*args, **kwargs) + return _controls_.RadioBox_SetStringSelection(*args, **kwargs) def GetCount(*args, **kwargs): """GetCount(self) -> int""" - return _controls.RadioBox_GetCount(*args, **kwargs) + return _controls_.RadioBox_GetCount(*args, **kwargs) def FindString(*args, **kwargs): """FindString(self, String s) -> int""" - return _controls.RadioBox_FindString(*args, **kwargs) + return _controls_.RadioBox_FindString(*args, **kwargs) def GetString(*args, **kwargs): """GetString(self, int n) -> String""" - return _controls.RadioBox_GetString(*args, **kwargs) + return _controls_.RadioBox_GetString(*args, **kwargs) def SetString(*args, **kwargs): """SetString(self, int n, String label)""" - return _controls.RadioBox_SetString(*args, **kwargs) + return _controls_.RadioBox_SetString(*args, **kwargs) GetItemLabel = GetString SetItemLabel = SetString def EnableItem(*args, **kwargs): """EnableItem(self, int n, bool enable=True)""" - return _controls.RadioBox_EnableItem(*args, **kwargs) + return _controls_.RadioBox_EnableItem(*args, **kwargs) def ShowItem(*args, **kwargs): """ShowItem(self, int n, bool show=True)""" - return _controls.RadioBox_ShowItem(*args, **kwargs) + return _controls_.RadioBox_ShowItem(*args, **kwargs) def GetColumnCount(*args, **kwargs): """GetColumnCount(self) -> int""" - return _controls.RadioBox_GetColumnCount(*args, **kwargs) + return _controls_.RadioBox_GetColumnCount(*args, **kwargs) def GetRowCount(*args, **kwargs): """GetRowCount(self) -> int""" - return _controls.RadioBox_GetRowCount(*args, **kwargs) + return _controls_.RadioBox_GetRowCount(*args, **kwargs) def GetNextItem(*args, **kwargs): """GetNextItem(self, int item, int dir, long style) -> int""" - return _controls.RadioBox_GetNextItem(*args, **kwargs) + return _controls_.RadioBox_GetNextItem(*args, **kwargs) class RadioBoxPtr(RadioBox): @@ -1886,19 +1886,19 @@ class RadioBoxPtr(RadioBox): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = RadioBox -_controls.RadioBox_swigregister(RadioBoxPtr) +_controls_.RadioBox_swigregister(RadioBoxPtr) RadioBoxNameStr = cvar.RadioBoxNameStr RadioButtonNameStr = cvar.RadioButtonNameStr def PreRadioBox(*args, **kwargs): """PreRadioBox() -> RadioBox""" - val = _controls.new_PreRadioBox(*args, **kwargs) + val = _controls_.new_PreRadioBox(*args, **kwargs) val.thisown = 1 return val #--------------------------------------------------------------------------- -class RadioButton(core.Control): +class RadioButton(_core.Control): def __repr__(self): return "<%s.%s; proxy of C++ wxRadioButton instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -1907,7 +1907,7 @@ class RadioButton(core.Control): Size size=DefaultSize, long style=0, Validator validator=DefaultValidator, String name=RadioButtonNameStr) -> RadioButton """ - newobj = _controls.new_RadioButton(*args, **kwargs) + newobj = _controls_.new_RadioButton(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -1919,15 +1919,15 @@ class RadioButton(core.Control): Size size=DefaultSize, long style=0, Validator validator=DefaultValidator, String name=RadioButtonNameStr) -> bool """ - return _controls.RadioButton_Create(*args, **kwargs) + return _controls_.RadioButton_Create(*args, **kwargs) def GetValue(*args, **kwargs): """GetValue(self) -> bool""" - return _controls.RadioButton_GetValue(*args, **kwargs) + return _controls_.RadioButton_GetValue(*args, **kwargs) def SetValue(*args, **kwargs): """SetValue(self, bool value)""" - return _controls.RadioButton_SetValue(*args, **kwargs) + return _controls_.RadioButton_SetValue(*args, **kwargs) class RadioButtonPtr(RadioButton): @@ -1935,17 +1935,17 @@ class RadioButtonPtr(RadioButton): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = RadioButton -_controls.RadioButton_swigregister(RadioButtonPtr) +_controls_.RadioButton_swigregister(RadioButtonPtr) def PreRadioButton(*args, **kwargs): """PreRadioButton() -> RadioButton""" - val = _controls.new_PreRadioButton(*args, **kwargs) + val = _controls_.new_PreRadioButton(*args, **kwargs) val.thisown = 1 return val #--------------------------------------------------------------------------- -class Slider(core.Control): +class Slider(_core.Control): def __repr__(self): return "<%s.%s; proxy of C++ wxSlider instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -1956,7 +1956,7 @@ class Slider(core.Control): String name=SliderNameStr) -> Slider """ if kwargs.has_key('point'): kwargs['pos'] = kwargs['point'];del kwargs['point'] - newobj = _controls.new_Slider(*args, **kwargs) + newobj = _controls_.new_Slider(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -1969,91 +1969,91 @@ class Slider(core.Control): long style=SL_HORIZONTAL, Validator validator=DefaultValidator, String name=SliderNameStr) -> bool """ - return _controls.Slider_Create(*args, **kwargs) + return _controls_.Slider_Create(*args, **kwargs) def GetValue(*args, **kwargs): """GetValue(self) -> int""" - return _controls.Slider_GetValue(*args, **kwargs) + return _controls_.Slider_GetValue(*args, **kwargs) def SetValue(*args, **kwargs): """SetValue(self, int value)""" - return _controls.Slider_SetValue(*args, **kwargs) + return _controls_.Slider_SetValue(*args, **kwargs) def SetRange(*args, **kwargs): """SetRange(self, int minValue, int maxValue)""" - return _controls.Slider_SetRange(*args, **kwargs) + return _controls_.Slider_SetRange(*args, **kwargs) def GetMin(*args, **kwargs): """GetMin(self) -> int""" - return _controls.Slider_GetMin(*args, **kwargs) + return _controls_.Slider_GetMin(*args, **kwargs) def GetMax(*args, **kwargs): """GetMax(self) -> int""" - return _controls.Slider_GetMax(*args, **kwargs) + return _controls_.Slider_GetMax(*args, **kwargs) def SetMin(*args, **kwargs): """SetMin(self, int minValue)""" - return _controls.Slider_SetMin(*args, **kwargs) + return _controls_.Slider_SetMin(*args, **kwargs) def SetMax(*args, **kwargs): """SetMax(self, int maxValue)""" - return _controls.Slider_SetMax(*args, **kwargs) + return _controls_.Slider_SetMax(*args, **kwargs) def SetLineSize(*args, **kwargs): """SetLineSize(self, int lineSize)""" - return _controls.Slider_SetLineSize(*args, **kwargs) + return _controls_.Slider_SetLineSize(*args, **kwargs) def SetPageSize(*args, **kwargs): """SetPageSize(self, int pageSize)""" - return _controls.Slider_SetPageSize(*args, **kwargs) + return _controls_.Slider_SetPageSize(*args, **kwargs) def GetLineSize(*args, **kwargs): """GetLineSize(self) -> int""" - return _controls.Slider_GetLineSize(*args, **kwargs) + return _controls_.Slider_GetLineSize(*args, **kwargs) def GetPageSize(*args, **kwargs): """GetPageSize(self) -> int""" - return _controls.Slider_GetPageSize(*args, **kwargs) + return _controls_.Slider_GetPageSize(*args, **kwargs) def SetThumbLength(*args, **kwargs): """SetThumbLength(self, int lenPixels)""" - return _controls.Slider_SetThumbLength(*args, **kwargs) + return _controls_.Slider_SetThumbLength(*args, **kwargs) def GetThumbLength(*args, **kwargs): """GetThumbLength(self) -> int""" - return _controls.Slider_GetThumbLength(*args, **kwargs) + return _controls_.Slider_GetThumbLength(*args, **kwargs) def SetTickFreq(*args, **kwargs): """SetTickFreq(self, int n, int pos=1)""" - return _controls.Slider_SetTickFreq(*args, **kwargs) + return _controls_.Slider_SetTickFreq(*args, **kwargs) def GetTickFreq(*args, **kwargs): """GetTickFreq(self) -> int""" - return _controls.Slider_GetTickFreq(*args, **kwargs) + return _controls_.Slider_GetTickFreq(*args, **kwargs) def ClearTicks(*args, **kwargs): """ClearTicks(self)""" - return _controls.Slider_ClearTicks(*args, **kwargs) + return _controls_.Slider_ClearTicks(*args, **kwargs) def SetTick(*args, **kwargs): """SetTick(self, int tickPos)""" - return _controls.Slider_SetTick(*args, **kwargs) + return _controls_.Slider_SetTick(*args, **kwargs) def ClearSel(*args, **kwargs): """ClearSel(self)""" - return _controls.Slider_ClearSel(*args, **kwargs) + return _controls_.Slider_ClearSel(*args, **kwargs) def GetSelEnd(*args, **kwargs): """GetSelEnd(self) -> int""" - return _controls.Slider_GetSelEnd(*args, **kwargs) + return _controls_.Slider_GetSelEnd(*args, **kwargs) def GetSelStart(*args, **kwargs): """GetSelStart(self) -> int""" - return _controls.Slider_GetSelStart(*args, **kwargs) + return _controls_.Slider_GetSelStart(*args, **kwargs) def SetSelection(*args, **kwargs): """SetSelection(self, int min, int max)""" - return _controls.Slider_SetSelection(*args, **kwargs) + return _controls_.Slider_SetSelection(*args, **kwargs) class SliderPtr(Slider): @@ -2061,21 +2061,21 @@ class SliderPtr(Slider): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = Slider -_controls.Slider_swigregister(SliderPtr) +_controls_.Slider_swigregister(SliderPtr) SliderNameStr = cvar.SliderNameStr def PreSlider(*args, **kwargs): """PreSlider() -> Slider""" - val = _controls.new_PreSlider(*args, **kwargs) + val = _controls_.new_PreSlider(*args, **kwargs) val.thisown = 1 return val #--------------------------------------------------------------------------- -wxEVT_COMMAND_TOGGLEBUTTON_CLICKED = _controls.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED +wxEVT_COMMAND_TOGGLEBUTTON_CLICKED = _controls_.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED EVT_TOGGLEBUTTON = wx.PyEventBinder( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, 1) -class ToggleButton(core.Control): +class ToggleButton(_core.Control): def __repr__(self): return "<%s.%s; proxy of C++ wxToggleButton instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -2084,7 +2084,7 @@ class ToggleButton(core.Control): Size size=DefaultSize, long style=0, Validator validator=DefaultValidator, String name=ToggleButtonNameStr) -> ToggleButton """ - newobj = _controls.new_ToggleButton(*args, **kwargs) + newobj = _controls_.new_ToggleButton(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -2096,15 +2096,15 @@ class ToggleButton(core.Control): Size size=DefaultSize, long style=0, Validator validator=DefaultValidator, String name=ToggleButtonNameStr) -> bool """ - return _controls.ToggleButton_Create(*args, **kwargs) + return _controls_.ToggleButton_Create(*args, **kwargs) def SetValue(*args, **kwargs): """SetValue(self, bool value)""" - return _controls.ToggleButton_SetValue(*args, **kwargs) + return _controls_.ToggleButton_SetValue(*args, **kwargs) def GetValue(*args, **kwargs): """GetValue(self) -> bool""" - return _controls.ToggleButton_GetValue(*args, **kwargs) + return _controls_.ToggleButton_GetValue(*args, **kwargs) def SetLabel(*args, **kwargs): """ @@ -2112,7 +2112,7 @@ class ToggleButton(core.Control): Sets the item's text. """ - return _controls.ToggleButton_SetLabel(*args, **kwargs) + return _controls_.ToggleButton_SetLabel(*args, **kwargs) class ToggleButtonPtr(ToggleButton): @@ -2120,99 +2120,99 @@ class ToggleButtonPtr(ToggleButton): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = ToggleButton -_controls.ToggleButton_swigregister(ToggleButtonPtr) +_controls_.ToggleButton_swigregister(ToggleButtonPtr) ToggleButtonNameStr = cvar.ToggleButtonNameStr def PreToggleButton(*args, **kwargs): """PreToggleButton() -> ToggleButton""" - val = _controls.new_PreToggleButton(*args, **kwargs) + val = _controls_.new_PreToggleButton(*args, **kwargs) val.thisown = 1 return val #--------------------------------------------------------------------------- -class BookCtrl(core.Control): +class BookCtrl(_core.Control): def __init__(self): raise RuntimeError, "No constructor defined" def __repr__(self): return "<%s.%s; proxy of C++ wxBookCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def GetPageCount(*args, **kwargs): """GetPageCount(self) -> size_t""" - return _controls.BookCtrl_GetPageCount(*args, **kwargs) + return _controls_.BookCtrl_GetPageCount(*args, **kwargs) def GetPage(*args, **kwargs): """GetPage(self, size_t n) -> Window""" - return _controls.BookCtrl_GetPage(*args, **kwargs) + return _controls_.BookCtrl_GetPage(*args, **kwargs) def GetSelection(*args, **kwargs): """GetSelection(self) -> int""" - return _controls.BookCtrl_GetSelection(*args, **kwargs) + return _controls_.BookCtrl_GetSelection(*args, **kwargs) def SetPageText(*args, **kwargs): """SetPageText(self, size_t n, String strText) -> bool""" - return _controls.BookCtrl_SetPageText(*args, **kwargs) + return _controls_.BookCtrl_SetPageText(*args, **kwargs) def GetPageText(*args, **kwargs): """GetPageText(self, size_t n) -> String""" - return _controls.BookCtrl_GetPageText(*args, **kwargs) + return _controls_.BookCtrl_GetPageText(*args, **kwargs) def SetImageList(*args, **kwargs): """SetImageList(self, ImageList imageList)""" - return _controls.BookCtrl_SetImageList(*args, **kwargs) + return _controls_.BookCtrl_SetImageList(*args, **kwargs) def AssignImageList(*args, **kwargs): """AssignImageList(self, ImageList imageList)""" - return _controls.BookCtrl_AssignImageList(*args, **kwargs) + return _controls_.BookCtrl_AssignImageList(*args, **kwargs) def GetImageList(*args, **kwargs): """GetImageList(self) -> ImageList""" - return _controls.BookCtrl_GetImageList(*args, **kwargs) + return _controls_.BookCtrl_GetImageList(*args, **kwargs) def GetPageImage(*args, **kwargs): """GetPageImage(self, size_t n) -> int""" - return _controls.BookCtrl_GetPageImage(*args, **kwargs) + return _controls_.BookCtrl_GetPageImage(*args, **kwargs) def SetPageImage(*args, **kwargs): """SetPageImage(self, size_t n, int imageId) -> bool""" - return _controls.BookCtrl_SetPageImage(*args, **kwargs) + return _controls_.BookCtrl_SetPageImage(*args, **kwargs) def SetPageSize(*args, **kwargs): """SetPageSize(self, Size size)""" - return _controls.BookCtrl_SetPageSize(*args, **kwargs) + return _controls_.BookCtrl_SetPageSize(*args, **kwargs) def CalcSizeFromPage(*args, **kwargs): """CalcSizeFromPage(self, Size sizePage) -> Size""" - return _controls.BookCtrl_CalcSizeFromPage(*args, **kwargs) + return _controls_.BookCtrl_CalcSizeFromPage(*args, **kwargs) def DeletePage(*args, **kwargs): """DeletePage(self, size_t n) -> bool""" - return _controls.BookCtrl_DeletePage(*args, **kwargs) + return _controls_.BookCtrl_DeletePage(*args, **kwargs) def RemovePage(*args, **kwargs): """RemovePage(self, size_t n) -> bool""" - return _controls.BookCtrl_RemovePage(*args, **kwargs) + return _controls_.BookCtrl_RemovePage(*args, **kwargs) def DeleteAllPages(*args, **kwargs): """DeleteAllPages(self) -> bool""" - return _controls.BookCtrl_DeleteAllPages(*args, **kwargs) + return _controls_.BookCtrl_DeleteAllPages(*args, **kwargs) def AddPage(*args, **kwargs): """AddPage(self, Window page, String text, bool select=False, int imageId=-1) -> bool""" - return _controls.BookCtrl_AddPage(*args, **kwargs) + return _controls_.BookCtrl_AddPage(*args, **kwargs) def InsertPage(*args, **kwargs): """ InsertPage(self, size_t n, Window page, String text, bool select=False, int imageId=-1) -> bool """ - return _controls.BookCtrl_InsertPage(*args, **kwargs) + return _controls_.BookCtrl_InsertPage(*args, **kwargs) def SetSelection(*args, **kwargs): """SetSelection(self, size_t n) -> int""" - return _controls.BookCtrl_SetSelection(*args, **kwargs) + return _controls_.BookCtrl_SetSelection(*args, **kwargs) def AdvanceSelection(*args, **kwargs): """AdvanceSelection(self, bool forward=True)""" - return _controls.BookCtrl_AdvanceSelection(*args, **kwargs) + return _controls_.BookCtrl_AdvanceSelection(*args, **kwargs) class BookCtrlPtr(BookCtrl): @@ -2220,10 +2220,10 @@ class BookCtrlPtr(BookCtrl): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = BookCtrl -_controls.BookCtrl_swigregister(BookCtrlPtr) +_controls_.BookCtrl_swigregister(BookCtrlPtr) NOTEBOOK_NAME = cvar.NOTEBOOK_NAME -class BookCtrlEvent(core.NotifyEvent): +class BookCtrlEvent(_core.NotifyEvent): def __repr__(self): return "<%s.%s; proxy of C++ wxBookCtrlEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -2231,25 +2231,25 @@ class BookCtrlEvent(core.NotifyEvent): __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1, int nOldSel=-1) -> BookCtrlEvent """ - newobj = _controls.new_BookCtrlEvent(*args, **kwargs) + newobj = _controls_.new_BookCtrlEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def GetSelection(*args, **kwargs): """GetSelection(self) -> int""" - return _controls.BookCtrlEvent_GetSelection(*args, **kwargs) + return _controls_.BookCtrlEvent_GetSelection(*args, **kwargs) def SetSelection(*args, **kwargs): """SetSelection(self, int nSel)""" - return _controls.BookCtrlEvent_SetSelection(*args, **kwargs) + return _controls_.BookCtrlEvent_SetSelection(*args, **kwargs) def GetOldSelection(*args, **kwargs): """GetOldSelection(self) -> int""" - return _controls.BookCtrlEvent_GetOldSelection(*args, **kwargs) + return _controls_.BookCtrlEvent_GetOldSelection(*args, **kwargs) def SetOldSelection(*args, **kwargs): """SetOldSelection(self, int nOldSel)""" - return _controls.BookCtrlEvent_SetOldSelection(*args, **kwargs) + return _controls_.BookCtrlEvent_SetOldSelection(*args, **kwargs) class BookCtrlEventPtr(BookCtrlEvent): @@ -2257,20 +2257,20 @@ class BookCtrlEventPtr(BookCtrlEvent): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = BookCtrlEvent -_controls.BookCtrlEvent_swigregister(BookCtrlEventPtr) +_controls_.BookCtrlEvent_swigregister(BookCtrlEventPtr) #--------------------------------------------------------------------------- -NB_FIXEDWIDTH = _controls.NB_FIXEDWIDTH -NB_TOP = _controls.NB_TOP -NB_LEFT = _controls.NB_LEFT -NB_RIGHT = _controls.NB_RIGHT -NB_BOTTOM = _controls.NB_BOTTOM -NB_MULTILINE = _controls.NB_MULTILINE -NB_HITTEST_NOWHERE = _controls.NB_HITTEST_NOWHERE -NB_HITTEST_ONICON = _controls.NB_HITTEST_ONICON -NB_HITTEST_ONLABEL = _controls.NB_HITTEST_ONLABEL -NB_HITTEST_ONITEM = _controls.NB_HITTEST_ONITEM +NB_FIXEDWIDTH = _controls_.NB_FIXEDWIDTH +NB_TOP = _controls_.NB_TOP +NB_LEFT = _controls_.NB_LEFT +NB_RIGHT = _controls_.NB_RIGHT +NB_BOTTOM = _controls_.NB_BOTTOM +NB_MULTILINE = _controls_.NB_MULTILINE +NB_HITTEST_NOWHERE = _controls_.NB_HITTEST_NOWHERE +NB_HITTEST_ONICON = _controls_.NB_HITTEST_ONICON +NB_HITTEST_ONLABEL = _controls_.NB_HITTEST_ONLABEL +NB_HITTEST_ONITEM = _controls_.NB_HITTEST_ONITEM class Notebook(BookCtrl): def __repr__(self): return "<%s.%s; proxy of C++ wxNotebook instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) @@ -2279,7 +2279,7 @@ class Notebook(BookCtrl): __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, Size size=DefaultSize, long style=0, String name=NOTEBOOK_NAME) -> Notebook """ - newobj = _controls.new_Notebook(*args, **kwargs) + newobj = _controls_.new_Notebook(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -2290,19 +2290,19 @@ class Notebook(BookCtrl): Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, long style=0, String name=NOTEBOOK_NAME) -> bool """ - return _controls.Notebook_Create(*args, **kwargs) + return _controls_.Notebook_Create(*args, **kwargs) def GetRowCount(*args, **kwargs): """GetRowCount(self) -> int""" - return _controls.Notebook_GetRowCount(*args, **kwargs) + return _controls_.Notebook_GetRowCount(*args, **kwargs) def SetPadding(*args, **kwargs): """SetPadding(self, Size padding)""" - return _controls.Notebook_SetPadding(*args, **kwargs) + return _controls_.Notebook_SetPadding(*args, **kwargs) def SetTabSize(*args, **kwargs): """SetTabSize(self, Size sz)""" - return _controls.Notebook_SetTabSize(*args, **kwargs) + return _controls_.Notebook_SetTabSize(*args, **kwargs) def HitTest(*args, **kwargs): """ @@ -2310,11 +2310,11 @@ class Notebook(BookCtrl): Returns the tab which is hit, and flags indicating where using wx.NB_HITTEST_ flags. """ - return _controls.Notebook_HitTest(*args, **kwargs) + return _controls_.Notebook_HitTest(*args, **kwargs) def CalcSizeFromPage(*args, **kwargs): """CalcSizeFromPage(self, Size sizePage) -> Size""" - return _controls.Notebook_CalcSizeFromPage(*args, **kwargs) + return _controls_.Notebook_CalcSizeFromPage(*args, **kwargs) class NotebookPtr(Notebook): @@ -2322,11 +2322,11 @@ class NotebookPtr(Notebook): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = Notebook -_controls.Notebook_swigregister(NotebookPtr) +_controls_.Notebook_swigregister(NotebookPtr) def PreNotebook(*args, **kwargs): """PreNotebook() -> Notebook""" - val = _controls.new_PreNotebook(*args, **kwargs) + val = _controls_.new_PreNotebook(*args, **kwargs) val.thisown = 1 return val @@ -2338,7 +2338,7 @@ class NotebookEvent(BookCtrlEvent): __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1, int nOldSel=-1) -> NotebookEvent """ - newobj = _controls.new_NotebookEvent(*args, **kwargs) + newobj = _controls_.new_NotebookEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -2348,10 +2348,10 @@ class NotebookEventPtr(NotebookEvent): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = NotebookEvent -_controls.NotebookEvent_swigregister(NotebookEventPtr) +_controls_.NotebookEvent_swigregister(NotebookEventPtr) -wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED = _controls.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED -wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING = _controls.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING +wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED = _controls_.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED +wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING = _controls_.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING # wxNotebook events EVT_NOTEBOOK_PAGE_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, 1 ) EVT_NOTEBOOK_PAGE_CHANGING = wx.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING, 1 ) @@ -2388,12 +2388,12 @@ class NotebookPage(wx.Panel): #--------------------------------------------------------------------------- -LB_DEFAULT = _controls.LB_DEFAULT -LB_TOP = _controls.LB_TOP -LB_BOTTOM = _controls.LB_BOTTOM -LB_LEFT = _controls.LB_LEFT -LB_RIGHT = _controls.LB_RIGHT -LB_ALIGN_MASK = _controls.LB_ALIGN_MASK +LB_DEFAULT = _controls_.LB_DEFAULT +LB_TOP = _controls_.LB_TOP +LB_BOTTOM = _controls_.LB_BOTTOM +LB_LEFT = _controls_.LB_LEFT +LB_RIGHT = _controls_.LB_RIGHT +LB_ALIGN_MASK = _controls_.LB_ALIGN_MASK class Listbook(BookCtrl): def __repr__(self): return "<%s.%s; proxy of C++ wxListbook instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) @@ -2402,7 +2402,7 @@ class Listbook(BookCtrl): __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, Size size=DefaultSize, long style=0, String name=EmptyString) -> Listbook """ - newobj = _controls.new_Listbook(*args, **kwargs) + newobj = _controls_.new_Listbook(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -2413,11 +2413,11 @@ class Listbook(BookCtrl): Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, long style=0, String name=EmptyString) -> bool """ - return _controls.Listbook_Create(*args, **kwargs) + return _controls_.Listbook_Create(*args, **kwargs) def IsVertical(*args, **kwargs): """IsVertical(self) -> bool""" - return _controls.Listbook_IsVertical(*args, **kwargs) + return _controls_.Listbook_IsVertical(*args, **kwargs) class ListbookPtr(Listbook): @@ -2425,11 +2425,11 @@ class ListbookPtr(Listbook): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = Listbook -_controls.Listbook_swigregister(ListbookPtr) +_controls_.Listbook_swigregister(ListbookPtr) def PreListbook(*args, **kwargs): """PreListbook() -> Listbook""" - val = _controls.new_PreListbook(*args, **kwargs) + val = _controls_.new_PreListbook(*args, **kwargs) val.thisown = 1 return val @@ -2441,7 +2441,7 @@ class ListbookEvent(BookCtrlEvent): __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1, int nOldSel=-1) -> ListbookEvent """ - newobj = _controls.new_ListbookEvent(*args, **kwargs) + newobj = _controls_.new_ListbookEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -2451,21 +2451,21 @@ class ListbookEventPtr(ListbookEvent): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = ListbookEvent -_controls.ListbookEvent_swigregister(ListbookEventPtr) +_controls_.ListbookEvent_swigregister(ListbookEventPtr) -wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED = _controls.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED -wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING = _controls.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING +wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED = _controls_.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED +wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING = _controls_.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING EVT_LISTBOOK_PAGE_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED, 1 ) EVT_LISTBOOK_PAGE_CHANGING = wx.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING, 1 ) #--------------------------------------------------------------------------- -class BookCtrlSizer(core.Sizer): +class BookCtrlSizer(_core.Sizer): def __repr__(self): return "<%s.%s; proxy of C++ wxBookCtrlSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, BookCtrl nb) -> BookCtrlSizer""" - newobj = _controls.new_BookCtrlSizer(*args, **kwargs) + newobj = _controls_.new_BookCtrlSizer(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -2473,15 +2473,15 @@ class BookCtrlSizer(core.Sizer): def RecalcSizes(*args, **kwargs): """RecalcSizes(self)""" - return _controls.BookCtrlSizer_RecalcSizes(*args, **kwargs) + return _controls_.BookCtrlSizer_RecalcSizes(*args, **kwargs) def CalcMin(*args, **kwargs): """CalcMin(self) -> Size""" - return _controls.BookCtrlSizer_CalcMin(*args, **kwargs) + return _controls_.BookCtrlSizer_CalcMin(*args, **kwargs) def GetControl(*args, **kwargs): """GetControl(self) -> BookCtrl""" - return _controls.BookCtrlSizer_GetControl(*args, **kwargs) + return _controls_.BookCtrlSizer_GetControl(*args, **kwargs) class BookCtrlSizerPtr(BookCtrlSizer): @@ -2489,14 +2489,14 @@ class BookCtrlSizerPtr(BookCtrlSizer): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = BookCtrlSizer -_controls.BookCtrlSizer_swigregister(BookCtrlSizerPtr) +_controls_.BookCtrlSizer_swigregister(BookCtrlSizerPtr) -class NotebookSizer(core.Sizer): +class NotebookSizer(_core.Sizer): def __repr__(self): return "<%s.%s; proxy of C++ wxNotebookSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, Notebook nb) -> NotebookSizer""" - newobj = _controls.new_NotebookSizer(*args, **kwargs) + newobj = _controls_.new_NotebookSizer(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -2504,15 +2504,15 @@ class NotebookSizer(core.Sizer): def RecalcSizes(*args, **kwargs): """RecalcSizes(self)""" - return _controls.NotebookSizer_RecalcSizes(*args, **kwargs) + return _controls_.NotebookSizer_RecalcSizes(*args, **kwargs) def CalcMin(*args, **kwargs): """CalcMin(self) -> Size""" - return _controls.NotebookSizer_CalcMin(*args, **kwargs) + return _controls_.NotebookSizer_CalcMin(*args, **kwargs) def GetNotebook(*args, **kwargs): """GetNotebook(self) -> Notebook""" - return _controls.NotebookSizer_GetNotebook(*args, **kwargs) + return _controls_.NotebookSizer_GetNotebook(*args, **kwargs) class NotebookSizerPtr(NotebookSizer): @@ -2520,143 +2520,143 @@ class NotebookSizerPtr(NotebookSizer): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = NotebookSizer -_controls.NotebookSizer_swigregister(NotebookSizerPtr) +_controls_.NotebookSizer_swigregister(NotebookSizerPtr) #--------------------------------------------------------------------------- -TOOL_STYLE_BUTTON = _controls.TOOL_STYLE_BUTTON -TOOL_STYLE_SEPARATOR = _controls.TOOL_STYLE_SEPARATOR -TOOL_STYLE_CONTROL = _controls.TOOL_STYLE_CONTROL -TB_HORIZONTAL = _controls.TB_HORIZONTAL -TB_VERTICAL = _controls.TB_VERTICAL -TB_3DBUTTONS = _controls.TB_3DBUTTONS -TB_FLAT = _controls.TB_FLAT -TB_DOCKABLE = _controls.TB_DOCKABLE -TB_NOICONS = _controls.TB_NOICONS -TB_TEXT = _controls.TB_TEXT -TB_NODIVIDER = _controls.TB_NODIVIDER -TB_NOALIGN = _controls.TB_NOALIGN -TB_HORZ_LAYOUT = _controls.TB_HORZ_LAYOUT -TB_HORZ_TEXT = _controls.TB_HORZ_TEXT -class ToolBarToolBase(core.Object): +TOOL_STYLE_BUTTON = _controls_.TOOL_STYLE_BUTTON +TOOL_STYLE_SEPARATOR = _controls_.TOOL_STYLE_SEPARATOR +TOOL_STYLE_CONTROL = _controls_.TOOL_STYLE_CONTROL +TB_HORIZONTAL = _controls_.TB_HORIZONTAL +TB_VERTICAL = _controls_.TB_VERTICAL +TB_3DBUTTONS = _controls_.TB_3DBUTTONS +TB_FLAT = _controls_.TB_FLAT +TB_DOCKABLE = _controls_.TB_DOCKABLE +TB_NOICONS = _controls_.TB_NOICONS +TB_TEXT = _controls_.TB_TEXT +TB_NODIVIDER = _controls_.TB_NODIVIDER +TB_NOALIGN = _controls_.TB_NOALIGN +TB_HORZ_LAYOUT = _controls_.TB_HORZ_LAYOUT +TB_HORZ_TEXT = _controls_.TB_HORZ_TEXT +class ToolBarToolBase(_core.Object): def __init__(self): raise RuntimeError, "No constructor defined" def __repr__(self): return "<%s.%s; proxy of C++ wxToolBarToolBase instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def GetId(*args, **kwargs): """GetId(self) -> int""" - return _controls.ToolBarToolBase_GetId(*args, **kwargs) + return _controls_.ToolBarToolBase_GetId(*args, **kwargs) def GetControl(*args, **kwargs): """GetControl(self) -> Control""" - return _controls.ToolBarToolBase_GetControl(*args, **kwargs) + return _controls_.ToolBarToolBase_GetControl(*args, **kwargs) def GetToolBar(*args, **kwargs): """GetToolBar(self) -> ToolBarBase""" - return _controls.ToolBarToolBase_GetToolBar(*args, **kwargs) + return _controls_.ToolBarToolBase_GetToolBar(*args, **kwargs) def IsButton(*args, **kwargs): """IsButton(self) -> int""" - return _controls.ToolBarToolBase_IsButton(*args, **kwargs) + return _controls_.ToolBarToolBase_IsButton(*args, **kwargs) def IsControl(*args, **kwargs): """IsControl(self) -> int""" - return _controls.ToolBarToolBase_IsControl(*args, **kwargs) + return _controls_.ToolBarToolBase_IsControl(*args, **kwargs) def IsSeparator(*args, **kwargs): """IsSeparator(self) -> int""" - return _controls.ToolBarToolBase_IsSeparator(*args, **kwargs) + return _controls_.ToolBarToolBase_IsSeparator(*args, **kwargs) def GetStyle(*args, **kwargs): """GetStyle(self) -> int""" - return _controls.ToolBarToolBase_GetStyle(*args, **kwargs) + return _controls_.ToolBarToolBase_GetStyle(*args, **kwargs) def GetKind(*args, **kwargs): """GetKind(self) -> int""" - return _controls.ToolBarToolBase_GetKind(*args, **kwargs) + return _controls_.ToolBarToolBase_GetKind(*args, **kwargs) def IsEnabled(*args, **kwargs): """IsEnabled(self) -> bool""" - return _controls.ToolBarToolBase_IsEnabled(*args, **kwargs) + return _controls_.ToolBarToolBase_IsEnabled(*args, **kwargs) def IsToggled(*args, **kwargs): """IsToggled(self) -> bool""" - return _controls.ToolBarToolBase_IsToggled(*args, **kwargs) + return _controls_.ToolBarToolBase_IsToggled(*args, **kwargs) def CanBeToggled(*args, **kwargs): """CanBeToggled(self) -> bool""" - return _controls.ToolBarToolBase_CanBeToggled(*args, **kwargs) + return _controls_.ToolBarToolBase_CanBeToggled(*args, **kwargs) def GetNormalBitmap(*args, **kwargs): """GetNormalBitmap(self) -> Bitmap""" - return _controls.ToolBarToolBase_GetNormalBitmap(*args, **kwargs) + return _controls_.ToolBarToolBase_GetNormalBitmap(*args, **kwargs) def GetDisabledBitmap(*args, **kwargs): """GetDisabledBitmap(self) -> Bitmap""" - return _controls.ToolBarToolBase_GetDisabledBitmap(*args, **kwargs) + return _controls_.ToolBarToolBase_GetDisabledBitmap(*args, **kwargs) def GetBitmap(*args, **kwargs): """GetBitmap(self) -> Bitmap""" - return _controls.ToolBarToolBase_GetBitmap(*args, **kwargs) + return _controls_.ToolBarToolBase_GetBitmap(*args, **kwargs) def GetLabel(*args, **kwargs): """GetLabel(self) -> String""" - return _controls.ToolBarToolBase_GetLabel(*args, **kwargs) + return _controls_.ToolBarToolBase_GetLabel(*args, **kwargs) def GetShortHelp(*args, **kwargs): """GetShortHelp(self) -> String""" - return _controls.ToolBarToolBase_GetShortHelp(*args, **kwargs) + return _controls_.ToolBarToolBase_GetShortHelp(*args, **kwargs) def GetLongHelp(*args, **kwargs): """GetLongHelp(self) -> String""" - return _controls.ToolBarToolBase_GetLongHelp(*args, **kwargs) + return _controls_.ToolBarToolBase_GetLongHelp(*args, **kwargs) def Enable(*args, **kwargs): """Enable(self, bool enable) -> bool""" - return _controls.ToolBarToolBase_Enable(*args, **kwargs) + return _controls_.ToolBarToolBase_Enable(*args, **kwargs) def Toggle(*args, **kwargs): """Toggle(self)""" - return _controls.ToolBarToolBase_Toggle(*args, **kwargs) + return _controls_.ToolBarToolBase_Toggle(*args, **kwargs) def SetToggle(*args, **kwargs): """SetToggle(self, bool toggle) -> bool""" - return _controls.ToolBarToolBase_SetToggle(*args, **kwargs) + return _controls_.ToolBarToolBase_SetToggle(*args, **kwargs) def SetShortHelp(*args, **kwargs): """SetShortHelp(self, String help) -> bool""" - return _controls.ToolBarToolBase_SetShortHelp(*args, **kwargs) + return _controls_.ToolBarToolBase_SetShortHelp(*args, **kwargs) def SetLongHelp(*args, **kwargs): """SetLongHelp(self, String help) -> bool""" - return _controls.ToolBarToolBase_SetLongHelp(*args, **kwargs) + return _controls_.ToolBarToolBase_SetLongHelp(*args, **kwargs) def SetNormalBitmap(*args, **kwargs): """SetNormalBitmap(self, Bitmap bmp)""" - return _controls.ToolBarToolBase_SetNormalBitmap(*args, **kwargs) + return _controls_.ToolBarToolBase_SetNormalBitmap(*args, **kwargs) def SetDisabledBitmap(*args, **kwargs): """SetDisabledBitmap(self, Bitmap bmp)""" - return _controls.ToolBarToolBase_SetDisabledBitmap(*args, **kwargs) + return _controls_.ToolBarToolBase_SetDisabledBitmap(*args, **kwargs) def SetLabel(*args, **kwargs): """SetLabel(self, String label)""" - return _controls.ToolBarToolBase_SetLabel(*args, **kwargs) + return _controls_.ToolBarToolBase_SetLabel(*args, **kwargs) def Detach(*args, **kwargs): """Detach(self)""" - return _controls.ToolBarToolBase_Detach(*args, **kwargs) + return _controls_.ToolBarToolBase_Detach(*args, **kwargs) def Attach(*args, **kwargs): """Attach(self, ToolBarBase tbar)""" - return _controls.ToolBarToolBase_Attach(*args, **kwargs) + return _controls_.ToolBarToolBase_Attach(*args, **kwargs) def GetClientData(*args, **kwargs): """GetClientData(self) -> PyObject""" - return _controls.ToolBarToolBase_GetClientData(*args, **kwargs) + return _controls_.ToolBarToolBase_GetClientData(*args, **kwargs) def SetClientData(*args, **kwargs): """SetClientData(self, PyObject clientData)""" - return _controls.ToolBarToolBase_SetClientData(*args, **kwargs) + return _controls_.ToolBarToolBase_SetClientData(*args, **kwargs) GetBitmap1 = GetNormalBitmap GetBitmap2 = GetDisabledBitmap @@ -2669,9 +2669,9 @@ class ToolBarToolBasePtr(ToolBarToolBase): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = ToolBarToolBase -_controls.ToolBarToolBase_swigregister(ToolBarToolBasePtr) +_controls_.ToolBarToolBase_swigregister(ToolBarToolBasePtr) -class ToolBarBase(core.Control): +class ToolBarBase(_core.Control): def __init__(self): raise RuntimeError, "No constructor defined" def __repr__(self): return "<%s.%s; proxy of C++ wxToolBarBase instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) @@ -2682,7 +2682,7 @@ class ToolBarBase(core.Control): String longHelp=EmptyString, PyObject clientData=None) -> ToolBarToolBase """ - return _controls.ToolBarBase_DoAddTool(*args, **kwargs) + return _controls_.ToolBarBase_DoAddTool(*args, **kwargs) def DoInsertTool(*args, **kwargs): """ @@ -2691,7 +2691,7 @@ class ToolBarBase(core.Control): String shortHelp=EmptyString, String longHelp=EmptyString, PyObject clientData=None) -> ToolBarToolBase """ - return _controls.ToolBarBase_DoInsertTool(*args, **kwargs) + return _controls_.ToolBarBase_DoInsertTool(*args, **kwargs) # These match the original Add methods for this class, kept for # backwards compatibility with versions < 2.3.3. @@ -2818,171 +2818,171 @@ class ToolBarBase(core.Control): def AddToolItem(*args, **kwargs): """AddToolItem(self, ToolBarToolBase tool) -> ToolBarToolBase""" - return _controls.ToolBarBase_AddToolItem(*args, **kwargs) + return _controls_.ToolBarBase_AddToolItem(*args, **kwargs) def InsertToolItem(*args, **kwargs): """InsertToolItem(self, size_t pos, ToolBarToolBase tool) -> ToolBarToolBase""" - return _controls.ToolBarBase_InsertToolItem(*args, **kwargs) + return _controls_.ToolBarBase_InsertToolItem(*args, **kwargs) def AddControl(*args, **kwargs): """AddControl(self, Control control) -> ToolBarToolBase""" - return _controls.ToolBarBase_AddControl(*args, **kwargs) + return _controls_.ToolBarBase_AddControl(*args, **kwargs) def InsertControl(*args, **kwargs): """InsertControl(self, size_t pos, Control control) -> ToolBarToolBase""" - return _controls.ToolBarBase_InsertControl(*args, **kwargs) + return _controls_.ToolBarBase_InsertControl(*args, **kwargs) def FindControl(*args, **kwargs): """FindControl(self, int id) -> Control""" - return _controls.ToolBarBase_FindControl(*args, **kwargs) + return _controls_.ToolBarBase_FindControl(*args, **kwargs) def AddSeparator(*args, **kwargs): """AddSeparator(self) -> ToolBarToolBase""" - return _controls.ToolBarBase_AddSeparator(*args, **kwargs) + return _controls_.ToolBarBase_AddSeparator(*args, **kwargs) def InsertSeparator(*args, **kwargs): """InsertSeparator(self, size_t pos) -> ToolBarToolBase""" - return _controls.ToolBarBase_InsertSeparator(*args, **kwargs) + return _controls_.ToolBarBase_InsertSeparator(*args, **kwargs) def RemoveTool(*args, **kwargs): """RemoveTool(self, int id) -> ToolBarToolBase""" - return _controls.ToolBarBase_RemoveTool(*args, **kwargs) + return _controls_.ToolBarBase_RemoveTool(*args, **kwargs) def DeleteToolByPos(*args, **kwargs): """DeleteToolByPos(self, size_t pos) -> bool""" - return _controls.ToolBarBase_DeleteToolByPos(*args, **kwargs) + return _controls_.ToolBarBase_DeleteToolByPos(*args, **kwargs) def DeleteTool(*args, **kwargs): """DeleteTool(self, int id) -> bool""" - return _controls.ToolBarBase_DeleteTool(*args, **kwargs) + return _controls_.ToolBarBase_DeleteTool(*args, **kwargs) def ClearTools(*args, **kwargs): """ClearTools(self)""" - return _controls.ToolBarBase_ClearTools(*args, **kwargs) + return _controls_.ToolBarBase_ClearTools(*args, **kwargs) def Realize(*args, **kwargs): """Realize(self) -> bool""" - return _controls.ToolBarBase_Realize(*args, **kwargs) + return _controls_.ToolBarBase_Realize(*args, **kwargs) def EnableTool(*args, **kwargs): """EnableTool(self, int id, bool enable)""" - return _controls.ToolBarBase_EnableTool(*args, **kwargs) + return _controls_.ToolBarBase_EnableTool(*args, **kwargs) def ToggleTool(*args, **kwargs): """ToggleTool(self, int id, bool toggle)""" - return _controls.ToolBarBase_ToggleTool(*args, **kwargs) + return _controls_.ToolBarBase_ToggleTool(*args, **kwargs) def SetToggle(*args, **kwargs): """SetToggle(self, int id, bool toggle)""" - return _controls.ToolBarBase_SetToggle(*args, **kwargs) + return _controls_.ToolBarBase_SetToggle(*args, **kwargs) def GetToolClientData(*args, **kwargs): """GetToolClientData(self, int id) -> PyObject""" - return _controls.ToolBarBase_GetToolClientData(*args, **kwargs) + return _controls_.ToolBarBase_GetToolClientData(*args, **kwargs) def SetToolClientData(*args, **kwargs): """SetToolClientData(self, int id, PyObject clientData)""" - return _controls.ToolBarBase_SetToolClientData(*args, **kwargs) + return _controls_.ToolBarBase_SetToolClientData(*args, **kwargs) def GetToolPos(*args, **kwargs): """GetToolPos(self, int id) -> int""" - return _controls.ToolBarBase_GetToolPos(*args, **kwargs) + return _controls_.ToolBarBase_GetToolPos(*args, **kwargs) def GetToolState(*args, **kwargs): """GetToolState(self, int id) -> bool""" - return _controls.ToolBarBase_GetToolState(*args, **kwargs) + return _controls_.ToolBarBase_GetToolState(*args, **kwargs) def GetToolEnabled(*args, **kwargs): """GetToolEnabled(self, int id) -> bool""" - return _controls.ToolBarBase_GetToolEnabled(*args, **kwargs) + return _controls_.ToolBarBase_GetToolEnabled(*args, **kwargs) def SetToolShortHelp(*args, **kwargs): """SetToolShortHelp(self, int id, String helpString)""" - return _controls.ToolBarBase_SetToolShortHelp(*args, **kwargs) + return _controls_.ToolBarBase_SetToolShortHelp(*args, **kwargs) def GetToolShortHelp(*args, **kwargs): """GetToolShortHelp(self, int id) -> String""" - return _controls.ToolBarBase_GetToolShortHelp(*args, **kwargs) + return _controls_.ToolBarBase_GetToolShortHelp(*args, **kwargs) def SetToolLongHelp(*args, **kwargs): """SetToolLongHelp(self, int id, String helpString)""" - return _controls.ToolBarBase_SetToolLongHelp(*args, **kwargs) + return _controls_.ToolBarBase_SetToolLongHelp(*args, **kwargs) def GetToolLongHelp(*args, **kwargs): """GetToolLongHelp(self, int id) -> String""" - return _controls.ToolBarBase_GetToolLongHelp(*args, **kwargs) + return _controls_.ToolBarBase_GetToolLongHelp(*args, **kwargs) def SetMarginsXY(*args, **kwargs): """SetMarginsXY(self, int x, int y)""" - return _controls.ToolBarBase_SetMarginsXY(*args, **kwargs) + return _controls_.ToolBarBase_SetMarginsXY(*args, **kwargs) def SetMargins(*args, **kwargs): """SetMargins(self, Size size)""" - return _controls.ToolBarBase_SetMargins(*args, **kwargs) + return _controls_.ToolBarBase_SetMargins(*args, **kwargs) def SetToolPacking(*args, **kwargs): """SetToolPacking(self, int packing)""" - return _controls.ToolBarBase_SetToolPacking(*args, **kwargs) + return _controls_.ToolBarBase_SetToolPacking(*args, **kwargs) def SetToolSeparation(*args, **kwargs): """SetToolSeparation(self, int separation)""" - return _controls.ToolBarBase_SetToolSeparation(*args, **kwargs) + return _controls_.ToolBarBase_SetToolSeparation(*args, **kwargs) def GetToolMargins(*args, **kwargs): """GetToolMargins(self) -> Size""" - return _controls.ToolBarBase_GetToolMargins(*args, **kwargs) + return _controls_.ToolBarBase_GetToolMargins(*args, **kwargs) def GetMargins(*args, **kwargs): """GetMargins(self) -> Size""" - return _controls.ToolBarBase_GetMargins(*args, **kwargs) + return _controls_.ToolBarBase_GetMargins(*args, **kwargs) def GetToolPacking(*args, **kwargs): """GetToolPacking(self) -> int""" - return _controls.ToolBarBase_GetToolPacking(*args, **kwargs) + return _controls_.ToolBarBase_GetToolPacking(*args, **kwargs) def GetToolSeparation(*args, **kwargs): """GetToolSeparation(self) -> int""" - return _controls.ToolBarBase_GetToolSeparation(*args, **kwargs) + return _controls_.ToolBarBase_GetToolSeparation(*args, **kwargs) def SetRows(*args, **kwargs): """SetRows(self, int nRows)""" - return _controls.ToolBarBase_SetRows(*args, **kwargs) + return _controls_.ToolBarBase_SetRows(*args, **kwargs) def SetMaxRowsCols(*args, **kwargs): """SetMaxRowsCols(self, int rows, int cols)""" - return _controls.ToolBarBase_SetMaxRowsCols(*args, **kwargs) + return _controls_.ToolBarBase_SetMaxRowsCols(*args, **kwargs) def GetMaxRows(*args, **kwargs): """GetMaxRows(self) -> int""" - return _controls.ToolBarBase_GetMaxRows(*args, **kwargs) + return _controls_.ToolBarBase_GetMaxRows(*args, **kwargs) def GetMaxCols(*args, **kwargs): """GetMaxCols(self) -> int""" - return _controls.ToolBarBase_GetMaxCols(*args, **kwargs) + return _controls_.ToolBarBase_GetMaxCols(*args, **kwargs) def SetToolBitmapSize(*args, **kwargs): """SetToolBitmapSize(self, Size size)""" - return _controls.ToolBarBase_SetToolBitmapSize(*args, **kwargs) + return _controls_.ToolBarBase_SetToolBitmapSize(*args, **kwargs) def GetToolBitmapSize(*args, **kwargs): """GetToolBitmapSize(self) -> Size""" - return _controls.ToolBarBase_GetToolBitmapSize(*args, **kwargs) + return _controls_.ToolBarBase_GetToolBitmapSize(*args, **kwargs) def GetToolSize(*args, **kwargs): """GetToolSize(self) -> Size""" - return _controls.ToolBarBase_GetToolSize(*args, **kwargs) + return _controls_.ToolBarBase_GetToolSize(*args, **kwargs) def FindToolForPosition(*args, **kwargs): """FindToolForPosition(self, int x, int y) -> ToolBarToolBase""" - return _controls.ToolBarBase_FindToolForPosition(*args, **kwargs) + return _controls_.ToolBarBase_FindToolForPosition(*args, **kwargs) def FindById(*args, **kwargs): """FindById(self, int toolid) -> ToolBarToolBase""" - return _controls.ToolBarBase_FindById(*args, **kwargs) + return _controls_.ToolBarBase_FindById(*args, **kwargs) def IsVertical(*args, **kwargs): """IsVertical(self) -> bool""" - return _controls.ToolBarBase_IsVertical(*args, **kwargs) + return _controls_.ToolBarBase_IsVertical(*args, **kwargs) class ToolBarBasePtr(ToolBarBase): @@ -2990,7 +2990,7 @@ class ToolBarBasePtr(ToolBarBase): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = ToolBarBase -_controls.ToolBarBase_swigregister(ToolBarBasePtr) +_controls_.ToolBarBase_swigregister(ToolBarBasePtr) class ToolBar(ToolBarBase): def __repr__(self): @@ -3001,7 +3001,7 @@ class ToolBar(ToolBarBase): long style=wxNO_BORDER|wxTB_HORIZONTAL, String name=wxPyToolBarNameStr) -> ToolBar """ - newobj = _controls.new_ToolBar(*args, **kwargs) + newobj = _controls_.new_ToolBar(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -3013,11 +3013,11 @@ class ToolBar(ToolBarBase): long style=wxNO_BORDER|wxTB_HORIZONTAL, String name=wxPyToolBarNameStr) -> bool """ - return _controls.ToolBar_Create(*args, **kwargs) + return _controls_.ToolBar_Create(*args, **kwargs) def FindToolForPosition(*args, **kwargs): """FindToolForPosition(self, int x, int y) -> ToolBarToolBase""" - return _controls.ToolBar_FindToolForPosition(*args, **kwargs) + return _controls_.ToolBar_FindToolForPosition(*args, **kwargs) class ToolBarPtr(ToolBar): @@ -3025,84 +3025,84 @@ class ToolBarPtr(ToolBar): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = ToolBar -_controls.ToolBar_swigregister(ToolBarPtr) +_controls_.ToolBar_swigregister(ToolBarPtr) def PreToolBar(*args, **kwargs): """PreToolBar() -> ToolBar""" - val = _controls.new_PreToolBar(*args, **kwargs) + val = _controls_.new_PreToolBar(*args, **kwargs) val.thisown = 1 return val #--------------------------------------------------------------------------- -LC_VRULES = _controls.LC_VRULES -LC_HRULES = _controls.LC_HRULES -LC_ICON = _controls.LC_ICON -LC_SMALL_ICON = _controls.LC_SMALL_ICON -LC_LIST = _controls.LC_LIST -LC_REPORT = _controls.LC_REPORT -LC_ALIGN_TOP = _controls.LC_ALIGN_TOP -LC_ALIGN_LEFT = _controls.LC_ALIGN_LEFT -LC_AUTOARRANGE = _controls.LC_AUTOARRANGE -LC_VIRTUAL = _controls.LC_VIRTUAL -LC_EDIT_LABELS = _controls.LC_EDIT_LABELS -LC_NO_HEADER = _controls.LC_NO_HEADER -LC_NO_SORT_HEADER = _controls.LC_NO_SORT_HEADER -LC_SINGLE_SEL = _controls.LC_SINGLE_SEL -LC_SORT_ASCENDING = _controls.LC_SORT_ASCENDING -LC_SORT_DESCENDING = _controls.LC_SORT_DESCENDING -LC_MASK_TYPE = _controls.LC_MASK_TYPE -LC_MASK_ALIGN = _controls.LC_MASK_ALIGN -LC_MASK_SORT = _controls.LC_MASK_SORT -LIST_MASK_STATE = _controls.LIST_MASK_STATE -LIST_MASK_TEXT = _controls.LIST_MASK_TEXT -LIST_MASK_IMAGE = _controls.LIST_MASK_IMAGE -LIST_MASK_DATA = _controls.LIST_MASK_DATA -LIST_SET_ITEM = _controls.LIST_SET_ITEM -LIST_MASK_WIDTH = _controls.LIST_MASK_WIDTH -LIST_MASK_FORMAT = _controls.LIST_MASK_FORMAT -LIST_STATE_DONTCARE = _controls.LIST_STATE_DONTCARE -LIST_STATE_DROPHILITED = _controls.LIST_STATE_DROPHILITED -LIST_STATE_FOCUSED = _controls.LIST_STATE_FOCUSED -LIST_STATE_SELECTED = _controls.LIST_STATE_SELECTED -LIST_STATE_CUT = _controls.LIST_STATE_CUT -LIST_STATE_DISABLED = _controls.LIST_STATE_DISABLED -LIST_STATE_FILTERED = _controls.LIST_STATE_FILTERED -LIST_STATE_INUSE = _controls.LIST_STATE_INUSE -LIST_STATE_PICKED = _controls.LIST_STATE_PICKED -LIST_STATE_SOURCE = _controls.LIST_STATE_SOURCE -LIST_HITTEST_ABOVE = _controls.LIST_HITTEST_ABOVE -LIST_HITTEST_BELOW = _controls.LIST_HITTEST_BELOW -LIST_HITTEST_NOWHERE = _controls.LIST_HITTEST_NOWHERE -LIST_HITTEST_ONITEMICON = _controls.LIST_HITTEST_ONITEMICON -LIST_HITTEST_ONITEMLABEL = _controls.LIST_HITTEST_ONITEMLABEL -LIST_HITTEST_ONITEMRIGHT = _controls.LIST_HITTEST_ONITEMRIGHT -LIST_HITTEST_ONITEMSTATEICON = _controls.LIST_HITTEST_ONITEMSTATEICON -LIST_HITTEST_TOLEFT = _controls.LIST_HITTEST_TOLEFT -LIST_HITTEST_TORIGHT = _controls.LIST_HITTEST_TORIGHT -LIST_HITTEST_ONITEM = _controls.LIST_HITTEST_ONITEM -LIST_NEXT_ABOVE = _controls.LIST_NEXT_ABOVE -LIST_NEXT_ALL = _controls.LIST_NEXT_ALL -LIST_NEXT_BELOW = _controls.LIST_NEXT_BELOW -LIST_NEXT_LEFT = _controls.LIST_NEXT_LEFT -LIST_NEXT_RIGHT = _controls.LIST_NEXT_RIGHT -LIST_ALIGN_DEFAULT = _controls.LIST_ALIGN_DEFAULT -LIST_ALIGN_LEFT = _controls.LIST_ALIGN_LEFT -LIST_ALIGN_TOP = _controls.LIST_ALIGN_TOP -LIST_ALIGN_SNAP_TO_GRID = _controls.LIST_ALIGN_SNAP_TO_GRID -LIST_FORMAT_LEFT = _controls.LIST_FORMAT_LEFT -LIST_FORMAT_RIGHT = _controls.LIST_FORMAT_RIGHT -LIST_FORMAT_CENTRE = _controls.LIST_FORMAT_CENTRE -LIST_FORMAT_CENTER = _controls.LIST_FORMAT_CENTER -LIST_AUTOSIZE = _controls.LIST_AUTOSIZE -LIST_AUTOSIZE_USEHEADER = _controls.LIST_AUTOSIZE_USEHEADER -LIST_RECT_BOUNDS = _controls.LIST_RECT_BOUNDS -LIST_RECT_ICON = _controls.LIST_RECT_ICON -LIST_RECT_LABEL = _controls.LIST_RECT_LABEL -LIST_FIND_UP = _controls.LIST_FIND_UP -LIST_FIND_DOWN = _controls.LIST_FIND_DOWN -LIST_FIND_LEFT = _controls.LIST_FIND_LEFT -LIST_FIND_RIGHT = _controls.LIST_FIND_RIGHT +LC_VRULES = _controls_.LC_VRULES +LC_HRULES = _controls_.LC_HRULES +LC_ICON = _controls_.LC_ICON +LC_SMALL_ICON = _controls_.LC_SMALL_ICON +LC_LIST = _controls_.LC_LIST +LC_REPORT = _controls_.LC_REPORT +LC_ALIGN_TOP = _controls_.LC_ALIGN_TOP +LC_ALIGN_LEFT = _controls_.LC_ALIGN_LEFT +LC_AUTOARRANGE = _controls_.LC_AUTOARRANGE +LC_VIRTUAL = _controls_.LC_VIRTUAL +LC_EDIT_LABELS = _controls_.LC_EDIT_LABELS +LC_NO_HEADER = _controls_.LC_NO_HEADER +LC_NO_SORT_HEADER = _controls_.LC_NO_SORT_HEADER +LC_SINGLE_SEL = _controls_.LC_SINGLE_SEL +LC_SORT_ASCENDING = _controls_.LC_SORT_ASCENDING +LC_SORT_DESCENDING = _controls_.LC_SORT_DESCENDING +LC_MASK_TYPE = _controls_.LC_MASK_TYPE +LC_MASK_ALIGN = _controls_.LC_MASK_ALIGN +LC_MASK_SORT = _controls_.LC_MASK_SORT +LIST_MASK_STATE = _controls_.LIST_MASK_STATE +LIST_MASK_TEXT = _controls_.LIST_MASK_TEXT +LIST_MASK_IMAGE = _controls_.LIST_MASK_IMAGE +LIST_MASK_DATA = _controls_.LIST_MASK_DATA +LIST_SET_ITEM = _controls_.LIST_SET_ITEM +LIST_MASK_WIDTH = _controls_.LIST_MASK_WIDTH +LIST_MASK_FORMAT = _controls_.LIST_MASK_FORMAT +LIST_STATE_DONTCARE = _controls_.LIST_STATE_DONTCARE +LIST_STATE_DROPHILITED = _controls_.LIST_STATE_DROPHILITED +LIST_STATE_FOCUSED = _controls_.LIST_STATE_FOCUSED +LIST_STATE_SELECTED = _controls_.LIST_STATE_SELECTED +LIST_STATE_CUT = _controls_.LIST_STATE_CUT +LIST_STATE_DISABLED = _controls_.LIST_STATE_DISABLED +LIST_STATE_FILTERED = _controls_.LIST_STATE_FILTERED +LIST_STATE_INUSE = _controls_.LIST_STATE_INUSE +LIST_STATE_PICKED = _controls_.LIST_STATE_PICKED +LIST_STATE_SOURCE = _controls_.LIST_STATE_SOURCE +LIST_HITTEST_ABOVE = _controls_.LIST_HITTEST_ABOVE +LIST_HITTEST_BELOW = _controls_.LIST_HITTEST_BELOW +LIST_HITTEST_NOWHERE = _controls_.LIST_HITTEST_NOWHERE +LIST_HITTEST_ONITEMICON = _controls_.LIST_HITTEST_ONITEMICON +LIST_HITTEST_ONITEMLABEL = _controls_.LIST_HITTEST_ONITEMLABEL +LIST_HITTEST_ONITEMRIGHT = _controls_.LIST_HITTEST_ONITEMRIGHT +LIST_HITTEST_ONITEMSTATEICON = _controls_.LIST_HITTEST_ONITEMSTATEICON +LIST_HITTEST_TOLEFT = _controls_.LIST_HITTEST_TOLEFT +LIST_HITTEST_TORIGHT = _controls_.LIST_HITTEST_TORIGHT +LIST_HITTEST_ONITEM = _controls_.LIST_HITTEST_ONITEM +LIST_NEXT_ABOVE = _controls_.LIST_NEXT_ABOVE +LIST_NEXT_ALL = _controls_.LIST_NEXT_ALL +LIST_NEXT_BELOW = _controls_.LIST_NEXT_BELOW +LIST_NEXT_LEFT = _controls_.LIST_NEXT_LEFT +LIST_NEXT_RIGHT = _controls_.LIST_NEXT_RIGHT +LIST_ALIGN_DEFAULT = _controls_.LIST_ALIGN_DEFAULT +LIST_ALIGN_LEFT = _controls_.LIST_ALIGN_LEFT +LIST_ALIGN_TOP = _controls_.LIST_ALIGN_TOP +LIST_ALIGN_SNAP_TO_GRID = _controls_.LIST_ALIGN_SNAP_TO_GRID +LIST_FORMAT_LEFT = _controls_.LIST_FORMAT_LEFT +LIST_FORMAT_RIGHT = _controls_.LIST_FORMAT_RIGHT +LIST_FORMAT_CENTRE = _controls_.LIST_FORMAT_CENTRE +LIST_FORMAT_CENTER = _controls_.LIST_FORMAT_CENTER +LIST_AUTOSIZE = _controls_.LIST_AUTOSIZE +LIST_AUTOSIZE_USEHEADER = _controls_.LIST_AUTOSIZE_USEHEADER +LIST_RECT_BOUNDS = _controls_.LIST_RECT_BOUNDS +LIST_RECT_ICON = _controls_.LIST_RECT_ICON +LIST_RECT_LABEL = _controls_.LIST_RECT_LABEL +LIST_FIND_UP = _controls_.LIST_FIND_UP +LIST_FIND_DOWN = _controls_.LIST_FIND_DOWN +LIST_FIND_LEFT = _controls_.LIST_FIND_LEFT +LIST_FIND_RIGHT = _controls_.LIST_FIND_RIGHT #--------------------------------------------------------------------------- class ListItemAttr(object): @@ -3113,49 +3113,49 @@ class ListItemAttr(object): __init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour, Font font=wxNullFont) -> ListItemAttr """ - newobj = _controls.new_ListItemAttr(*args, **kwargs) + newobj = _controls_.new_ListItemAttr(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def SetTextColour(*args, **kwargs): """SetTextColour(self, Colour colText)""" - return _controls.ListItemAttr_SetTextColour(*args, **kwargs) + return _controls_.ListItemAttr_SetTextColour(*args, **kwargs) def SetBackgroundColour(*args, **kwargs): """SetBackgroundColour(self, Colour colBack)""" - return _controls.ListItemAttr_SetBackgroundColour(*args, **kwargs) + return _controls_.ListItemAttr_SetBackgroundColour(*args, **kwargs) def SetFont(*args, **kwargs): """SetFont(self, Font font)""" - return _controls.ListItemAttr_SetFont(*args, **kwargs) + return _controls_.ListItemAttr_SetFont(*args, **kwargs) def HasTextColour(*args, **kwargs): """HasTextColour(self) -> bool""" - return _controls.ListItemAttr_HasTextColour(*args, **kwargs) + return _controls_.ListItemAttr_HasTextColour(*args, **kwargs) def HasBackgroundColour(*args, **kwargs): """HasBackgroundColour(self) -> bool""" - return _controls.ListItemAttr_HasBackgroundColour(*args, **kwargs) + return _controls_.ListItemAttr_HasBackgroundColour(*args, **kwargs) def HasFont(*args, **kwargs): """HasFont(self) -> bool""" - return _controls.ListItemAttr_HasFont(*args, **kwargs) + return _controls_.ListItemAttr_HasFont(*args, **kwargs) def GetTextColour(*args, **kwargs): """GetTextColour(self) -> Colour""" - return _controls.ListItemAttr_GetTextColour(*args, **kwargs) + return _controls_.ListItemAttr_GetTextColour(*args, **kwargs) def GetBackgroundColour(*args, **kwargs): """GetBackgroundColour(self) -> Colour""" - return _controls.ListItemAttr_GetBackgroundColour(*args, **kwargs) + return _controls_.ListItemAttr_GetBackgroundColour(*args, **kwargs) def GetFont(*args, **kwargs): """GetFont(self) -> Font""" - return _controls.ListItemAttr_GetFont(*args, **kwargs) + return _controls_.ListItemAttr_GetFont(*args, **kwargs) def Destroy(*args, **kwargs): """Destroy(self)""" - return _controls.ListItemAttr_Destroy(*args, **kwargs) + return _controls_.ListItemAttr_Destroy(*args, **kwargs) class ListItemAttrPtr(ListItemAttr): @@ -3163,21 +3163,21 @@ class ListItemAttrPtr(ListItemAttr): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = ListItemAttr -_controls.ListItemAttr_swigregister(ListItemAttrPtr) +_controls_.ListItemAttr_swigregister(ListItemAttrPtr) ListCtrlNameStr = cvar.ListCtrlNameStr #--------------------------------------------------------------------------- -class ListItem(core.Object): +class ListItem(_core.Object): def __repr__(self): return "<%s.%s; proxy of C++ wxListItem instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> ListItem""" - newobj = _controls.new_ListItem(*args, **kwargs) + newobj = _controls_.new_ListItem(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_controls.delete_ListItem): + def __del__(self, destroy=_controls_.delete_ListItem): """__del__(self)""" try: if self.thisown: destroy(self) @@ -3185,212 +3185,212 @@ class ListItem(core.Object): def Clear(*args, **kwargs): """Clear(self)""" - return _controls.ListItem_Clear(*args, **kwargs) + return _controls_.ListItem_Clear(*args, **kwargs) def ClearAttributes(*args, **kwargs): """ClearAttributes(self)""" - return _controls.ListItem_ClearAttributes(*args, **kwargs) + return _controls_.ListItem_ClearAttributes(*args, **kwargs) def SetMask(*args, **kwargs): """SetMask(self, long mask)""" - return _controls.ListItem_SetMask(*args, **kwargs) + return _controls_.ListItem_SetMask(*args, **kwargs) def SetId(*args, **kwargs): """SetId(self, long id)""" - return _controls.ListItem_SetId(*args, **kwargs) + return _controls_.ListItem_SetId(*args, **kwargs) def SetColumn(*args, **kwargs): """SetColumn(self, int col)""" - return _controls.ListItem_SetColumn(*args, **kwargs) + return _controls_.ListItem_SetColumn(*args, **kwargs) def SetState(*args, **kwargs): """SetState(self, long state)""" - return _controls.ListItem_SetState(*args, **kwargs) + return _controls_.ListItem_SetState(*args, **kwargs) def SetStateMask(*args, **kwargs): """SetStateMask(self, long stateMask)""" - return _controls.ListItem_SetStateMask(*args, **kwargs) + return _controls_.ListItem_SetStateMask(*args, **kwargs) def SetText(*args, **kwargs): """SetText(self, String text)""" - return _controls.ListItem_SetText(*args, **kwargs) + return _controls_.ListItem_SetText(*args, **kwargs) def SetImage(*args, **kwargs): """SetImage(self, int image)""" - return _controls.ListItem_SetImage(*args, **kwargs) + return _controls_.ListItem_SetImage(*args, **kwargs) def SetData(*args, **kwargs): """SetData(self, long data)""" - return _controls.ListItem_SetData(*args, **kwargs) + return _controls_.ListItem_SetData(*args, **kwargs) def SetWidth(*args, **kwargs): """SetWidth(self, int width)""" - return _controls.ListItem_SetWidth(*args, **kwargs) + return _controls_.ListItem_SetWidth(*args, **kwargs) def SetAlign(*args, **kwargs): """SetAlign(self, int align)""" - return _controls.ListItem_SetAlign(*args, **kwargs) + return _controls_.ListItem_SetAlign(*args, **kwargs) def SetTextColour(*args, **kwargs): """SetTextColour(self, Colour colText)""" - return _controls.ListItem_SetTextColour(*args, **kwargs) + return _controls_.ListItem_SetTextColour(*args, **kwargs) def SetBackgroundColour(*args, **kwargs): """SetBackgroundColour(self, Colour colBack)""" - return _controls.ListItem_SetBackgroundColour(*args, **kwargs) + return _controls_.ListItem_SetBackgroundColour(*args, **kwargs) def SetFont(*args, **kwargs): """SetFont(self, Font font)""" - return _controls.ListItem_SetFont(*args, **kwargs) + return _controls_.ListItem_SetFont(*args, **kwargs) def GetMask(*args, **kwargs): """GetMask(self) -> long""" - return _controls.ListItem_GetMask(*args, **kwargs) + return _controls_.ListItem_GetMask(*args, **kwargs) def GetId(*args, **kwargs): """GetId(self) -> long""" - return _controls.ListItem_GetId(*args, **kwargs) + return _controls_.ListItem_GetId(*args, **kwargs) def GetColumn(*args, **kwargs): """GetColumn(self) -> int""" - return _controls.ListItem_GetColumn(*args, **kwargs) + return _controls_.ListItem_GetColumn(*args, **kwargs) def GetState(*args, **kwargs): """GetState(self) -> long""" - return _controls.ListItem_GetState(*args, **kwargs) + return _controls_.ListItem_GetState(*args, **kwargs) def GetText(*args, **kwargs): """GetText(self) -> String""" - return _controls.ListItem_GetText(*args, **kwargs) + return _controls_.ListItem_GetText(*args, **kwargs) def GetImage(*args, **kwargs): """GetImage(self) -> int""" - return _controls.ListItem_GetImage(*args, **kwargs) + return _controls_.ListItem_GetImage(*args, **kwargs) def GetData(*args, **kwargs): """GetData(self) -> long""" - return _controls.ListItem_GetData(*args, **kwargs) + return _controls_.ListItem_GetData(*args, **kwargs) def GetWidth(*args, **kwargs): """GetWidth(self) -> int""" - return _controls.ListItem_GetWidth(*args, **kwargs) + return _controls_.ListItem_GetWidth(*args, **kwargs) def GetAlign(*args, **kwargs): """GetAlign(self) -> int""" - return _controls.ListItem_GetAlign(*args, **kwargs) + return _controls_.ListItem_GetAlign(*args, **kwargs) def GetAttributes(*args, **kwargs): """GetAttributes(self) -> ListItemAttr""" - return _controls.ListItem_GetAttributes(*args, **kwargs) + return _controls_.ListItem_GetAttributes(*args, **kwargs) def HasAttributes(*args, **kwargs): """HasAttributes(self) -> bool""" - return _controls.ListItem_HasAttributes(*args, **kwargs) + return _controls_.ListItem_HasAttributes(*args, **kwargs) def GetTextColour(*args, **kwargs): """GetTextColour(self) -> Colour""" - return _controls.ListItem_GetTextColour(*args, **kwargs) + return _controls_.ListItem_GetTextColour(*args, **kwargs) def GetBackgroundColour(*args, **kwargs): """GetBackgroundColour(self) -> Colour""" - return _controls.ListItem_GetBackgroundColour(*args, **kwargs) + return _controls_.ListItem_GetBackgroundColour(*args, **kwargs) def GetFont(*args, **kwargs): """GetFont(self) -> Font""" - return _controls.ListItem_GetFont(*args, **kwargs) - - m_mask = property(_controls.ListItem_m_mask_get, _controls.ListItem_m_mask_set) - m_itemId = property(_controls.ListItem_m_itemId_get, _controls.ListItem_m_itemId_set) - m_col = property(_controls.ListItem_m_col_get, _controls.ListItem_m_col_set) - m_state = property(_controls.ListItem_m_state_get, _controls.ListItem_m_state_set) - m_stateMask = property(_controls.ListItem_m_stateMask_get, _controls.ListItem_m_stateMask_set) - m_text = property(_controls.ListItem_m_text_get, _controls.ListItem_m_text_set) - m_image = property(_controls.ListItem_m_image_get, _controls.ListItem_m_image_set) - m_data = property(_controls.ListItem_m_data_get, _controls.ListItem_m_data_set) - m_format = property(_controls.ListItem_m_format_get, _controls.ListItem_m_format_set) - m_width = property(_controls.ListItem_m_width_get, _controls.ListItem_m_width_set) + return _controls_.ListItem_GetFont(*args, **kwargs) + + m_mask = property(_controls_.ListItem_m_mask_get, _controls_.ListItem_m_mask_set) + m_itemId = property(_controls_.ListItem_m_itemId_get, _controls_.ListItem_m_itemId_set) + m_col = property(_controls_.ListItem_m_col_get, _controls_.ListItem_m_col_set) + m_state = property(_controls_.ListItem_m_state_get, _controls_.ListItem_m_state_set) + m_stateMask = property(_controls_.ListItem_m_stateMask_get, _controls_.ListItem_m_stateMask_set) + m_text = property(_controls_.ListItem_m_text_get, _controls_.ListItem_m_text_set) + m_image = property(_controls_.ListItem_m_image_get, _controls_.ListItem_m_image_set) + m_data = property(_controls_.ListItem_m_data_get, _controls_.ListItem_m_data_set) + m_format = property(_controls_.ListItem_m_format_get, _controls_.ListItem_m_format_set) + m_width = property(_controls_.ListItem_m_width_get, _controls_.ListItem_m_width_set) class ListItemPtr(ListItem): def __init__(self, this): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = ListItem -_controls.ListItem_swigregister(ListItemPtr) +_controls_.ListItem_swigregister(ListItemPtr) #--------------------------------------------------------------------------- -class ListEvent(core.NotifyEvent): +class ListEvent(_core.NotifyEvent): def __repr__(self): return "<%s.%s; proxy of C++ wxListEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> ListEvent""" - newobj = _controls.new_ListEvent(*args, **kwargs) + newobj = _controls_.new_ListEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - m_code = property(_controls.ListEvent_m_code_get, _controls.ListEvent_m_code_set) - m_oldItemIndex = property(_controls.ListEvent_m_oldItemIndex_get, _controls.ListEvent_m_oldItemIndex_set) - m_itemIndex = property(_controls.ListEvent_m_itemIndex_get, _controls.ListEvent_m_itemIndex_set) - m_col = property(_controls.ListEvent_m_col_get, _controls.ListEvent_m_col_set) - m_pointDrag = property(_controls.ListEvent_m_pointDrag_get, _controls.ListEvent_m_pointDrag_set) - m_item = property(_controls.ListEvent_m_item_get) + m_code = property(_controls_.ListEvent_m_code_get, _controls_.ListEvent_m_code_set) + m_oldItemIndex = property(_controls_.ListEvent_m_oldItemIndex_get, _controls_.ListEvent_m_oldItemIndex_set) + m_itemIndex = property(_controls_.ListEvent_m_itemIndex_get, _controls_.ListEvent_m_itemIndex_set) + m_col = property(_controls_.ListEvent_m_col_get, _controls_.ListEvent_m_col_set) + m_pointDrag = property(_controls_.ListEvent_m_pointDrag_get, _controls_.ListEvent_m_pointDrag_set) + m_item = property(_controls_.ListEvent_m_item_get) def GetKeyCode(*args, **kwargs): """GetKeyCode(self) -> int""" - return _controls.ListEvent_GetKeyCode(*args, **kwargs) + return _controls_.ListEvent_GetKeyCode(*args, **kwargs) GetCode = GetKeyCode def GetIndex(*args, **kwargs): """GetIndex(self) -> long""" - return _controls.ListEvent_GetIndex(*args, **kwargs) + return _controls_.ListEvent_GetIndex(*args, **kwargs) def GetColumn(*args, **kwargs): """GetColumn(self) -> int""" - return _controls.ListEvent_GetColumn(*args, **kwargs) + return _controls_.ListEvent_GetColumn(*args, **kwargs) def GetPoint(*args, **kwargs): """GetPoint(self) -> Point""" - return _controls.ListEvent_GetPoint(*args, **kwargs) + return _controls_.ListEvent_GetPoint(*args, **kwargs) GetPosition = GetPoint def GetLabel(*args, **kwargs): """GetLabel(self) -> String""" - return _controls.ListEvent_GetLabel(*args, **kwargs) + return _controls_.ListEvent_GetLabel(*args, **kwargs) def GetText(*args, **kwargs): """GetText(self) -> String""" - return _controls.ListEvent_GetText(*args, **kwargs) + return _controls_.ListEvent_GetText(*args, **kwargs) def GetImage(*args, **kwargs): """GetImage(self) -> int""" - return _controls.ListEvent_GetImage(*args, **kwargs) + return _controls_.ListEvent_GetImage(*args, **kwargs) def GetData(*args, **kwargs): """GetData(self) -> long""" - return _controls.ListEvent_GetData(*args, **kwargs) + return _controls_.ListEvent_GetData(*args, **kwargs) def GetMask(*args, **kwargs): """GetMask(self) -> long""" - return _controls.ListEvent_GetMask(*args, **kwargs) + return _controls_.ListEvent_GetMask(*args, **kwargs) def GetItem(*args, **kwargs): """GetItem(self) -> ListItem""" - return _controls.ListEvent_GetItem(*args, **kwargs) + return _controls_.ListEvent_GetItem(*args, **kwargs) def GetCacheFrom(*args, **kwargs): """GetCacheFrom(self) -> long""" - return _controls.ListEvent_GetCacheFrom(*args, **kwargs) + return _controls_.ListEvent_GetCacheFrom(*args, **kwargs) def GetCacheTo(*args, **kwargs): """GetCacheTo(self) -> long""" - return _controls.ListEvent_GetCacheTo(*args, **kwargs) + return _controls_.ListEvent_GetCacheTo(*args, **kwargs) def IsEditCancelled(*args, **kwargs): """IsEditCancelled(self) -> bool""" - return _controls.ListEvent_IsEditCancelled(*args, **kwargs) + return _controls_.ListEvent_IsEditCancelled(*args, **kwargs) def SetEditCanceled(*args, **kwargs): """SetEditCanceled(self, bool editCancelled)""" - return _controls.ListEvent_SetEditCanceled(*args, **kwargs) + return _controls_.ListEvent_SetEditCanceled(*args, **kwargs) class ListEventPtr(ListEvent): @@ -3398,30 +3398,30 @@ class ListEventPtr(ListEvent): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = ListEvent -_controls.ListEvent_swigregister(ListEventPtr) - -wxEVT_COMMAND_LIST_BEGIN_DRAG = _controls.wxEVT_COMMAND_LIST_BEGIN_DRAG -wxEVT_COMMAND_LIST_BEGIN_RDRAG = _controls.wxEVT_COMMAND_LIST_BEGIN_RDRAG -wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT = _controls.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT -wxEVT_COMMAND_LIST_END_LABEL_EDIT = _controls.wxEVT_COMMAND_LIST_END_LABEL_EDIT -wxEVT_COMMAND_LIST_DELETE_ITEM = _controls.wxEVT_COMMAND_LIST_DELETE_ITEM -wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS = _controls.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS -wxEVT_COMMAND_LIST_GET_INFO = _controls.wxEVT_COMMAND_LIST_GET_INFO -wxEVT_COMMAND_LIST_SET_INFO = _controls.wxEVT_COMMAND_LIST_SET_INFO -wxEVT_COMMAND_LIST_ITEM_SELECTED = _controls.wxEVT_COMMAND_LIST_ITEM_SELECTED -wxEVT_COMMAND_LIST_ITEM_DESELECTED = _controls.wxEVT_COMMAND_LIST_ITEM_DESELECTED -wxEVT_COMMAND_LIST_KEY_DOWN = _controls.wxEVT_COMMAND_LIST_KEY_DOWN -wxEVT_COMMAND_LIST_INSERT_ITEM = _controls.wxEVT_COMMAND_LIST_INSERT_ITEM -wxEVT_COMMAND_LIST_COL_CLICK = _controls.wxEVT_COMMAND_LIST_COL_CLICK -wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK = _controls.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK -wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK = _controls.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK -wxEVT_COMMAND_LIST_ITEM_ACTIVATED = _controls.wxEVT_COMMAND_LIST_ITEM_ACTIVATED -wxEVT_COMMAND_LIST_CACHE_HINT = _controls.wxEVT_COMMAND_LIST_CACHE_HINT -wxEVT_COMMAND_LIST_COL_RIGHT_CLICK = _controls.wxEVT_COMMAND_LIST_COL_RIGHT_CLICK -wxEVT_COMMAND_LIST_COL_BEGIN_DRAG = _controls.wxEVT_COMMAND_LIST_COL_BEGIN_DRAG -wxEVT_COMMAND_LIST_COL_DRAGGING = _controls.wxEVT_COMMAND_LIST_COL_DRAGGING -wxEVT_COMMAND_LIST_COL_END_DRAG = _controls.wxEVT_COMMAND_LIST_COL_END_DRAG -wxEVT_COMMAND_LIST_ITEM_FOCUSED = _controls.wxEVT_COMMAND_LIST_ITEM_FOCUSED +_controls_.ListEvent_swigregister(ListEventPtr) + +wxEVT_COMMAND_LIST_BEGIN_DRAG = _controls_.wxEVT_COMMAND_LIST_BEGIN_DRAG +wxEVT_COMMAND_LIST_BEGIN_RDRAG = _controls_.wxEVT_COMMAND_LIST_BEGIN_RDRAG +wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT = _controls_.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT +wxEVT_COMMAND_LIST_END_LABEL_EDIT = _controls_.wxEVT_COMMAND_LIST_END_LABEL_EDIT +wxEVT_COMMAND_LIST_DELETE_ITEM = _controls_.wxEVT_COMMAND_LIST_DELETE_ITEM +wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS = _controls_.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS +wxEVT_COMMAND_LIST_GET_INFO = _controls_.wxEVT_COMMAND_LIST_GET_INFO +wxEVT_COMMAND_LIST_SET_INFO = _controls_.wxEVT_COMMAND_LIST_SET_INFO +wxEVT_COMMAND_LIST_ITEM_SELECTED = _controls_.wxEVT_COMMAND_LIST_ITEM_SELECTED +wxEVT_COMMAND_LIST_ITEM_DESELECTED = _controls_.wxEVT_COMMAND_LIST_ITEM_DESELECTED +wxEVT_COMMAND_LIST_KEY_DOWN = _controls_.wxEVT_COMMAND_LIST_KEY_DOWN +wxEVT_COMMAND_LIST_INSERT_ITEM = _controls_.wxEVT_COMMAND_LIST_INSERT_ITEM +wxEVT_COMMAND_LIST_COL_CLICK = _controls_.wxEVT_COMMAND_LIST_COL_CLICK +wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK = _controls_.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK +wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK = _controls_.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK +wxEVT_COMMAND_LIST_ITEM_ACTIVATED = _controls_.wxEVT_COMMAND_LIST_ITEM_ACTIVATED +wxEVT_COMMAND_LIST_CACHE_HINT = _controls_.wxEVT_COMMAND_LIST_CACHE_HINT +wxEVT_COMMAND_LIST_COL_RIGHT_CLICK = _controls_.wxEVT_COMMAND_LIST_COL_RIGHT_CLICK +wxEVT_COMMAND_LIST_COL_BEGIN_DRAG = _controls_.wxEVT_COMMAND_LIST_COL_BEGIN_DRAG +wxEVT_COMMAND_LIST_COL_DRAGGING = _controls_.wxEVT_COMMAND_LIST_COL_DRAGGING +wxEVT_COMMAND_LIST_COL_END_DRAG = _controls_.wxEVT_COMMAND_LIST_COL_END_DRAG +wxEVT_COMMAND_LIST_ITEM_FOCUSED = _controls_.wxEVT_COMMAND_LIST_ITEM_FOCUSED EVT_LIST_BEGIN_DRAG = wx.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_DRAG , 1) EVT_LIST_BEGIN_RDRAG = wx.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_RDRAG , 1) EVT_LIST_BEGIN_LABEL_EDIT = wx.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT , 1) @@ -3447,7 +3447,7 @@ EVT_LIST_ITEM_FOCUSED = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_FOCUSED #--------------------------------------------------------------------------- -class ListCtrl(core.Control): +class ListCtrl(_core.Control): def __repr__(self): return "<%s.%s; proxy of C++ wxPyListCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -3456,7 +3456,7 @@ class ListCtrl(core.Control): Size size=DefaultSize, long style=LC_ICON, Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListCtrl """ - newobj = _controls.new_ListCtrl(*args, **kwargs) + newobj = _controls_.new_ListCtrl(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -3470,135 +3470,135 @@ class ListCtrl(core.Control): Do the 2nd phase and create the GUI control. """ - return _controls.ListCtrl_Create(*args, **kwargs) + return _controls_.ListCtrl_Create(*args, **kwargs) def _setCallbackInfo(*args, **kwargs): """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _controls.ListCtrl__setCallbackInfo(*args, **kwargs) + return _controls_.ListCtrl__setCallbackInfo(*args, **kwargs) def SetForegroundColour(*args, **kwargs): """SetForegroundColour(self, Colour col) -> bool""" - return _controls.ListCtrl_SetForegroundColour(*args, **kwargs) + return _controls_.ListCtrl_SetForegroundColour(*args, **kwargs) def SetBackgroundColour(*args, **kwargs): """SetBackgroundColour(self, Colour col) -> bool""" - return _controls.ListCtrl_SetBackgroundColour(*args, **kwargs) + return _controls_.ListCtrl_SetBackgroundColour(*args, **kwargs) def GetColumn(*args, **kwargs): """GetColumn(self, int col) -> ListItem""" - val = _controls.ListCtrl_GetColumn(*args, **kwargs) + val = _controls_.ListCtrl_GetColumn(*args, **kwargs) if val is not None: val.thisown = 1 return val def SetColumn(*args, **kwargs): """SetColumn(self, int col, ListItem item) -> bool""" - return _controls.ListCtrl_SetColumn(*args, **kwargs) + return _controls_.ListCtrl_SetColumn(*args, **kwargs) def GetColumnWidth(*args, **kwargs): """GetColumnWidth(self, int col) -> int""" - return _controls.ListCtrl_GetColumnWidth(*args, **kwargs) + return _controls_.ListCtrl_GetColumnWidth(*args, **kwargs) def SetColumnWidth(*args, **kwargs): """SetColumnWidth(self, int col, int width) -> bool""" - return _controls.ListCtrl_SetColumnWidth(*args, **kwargs) + return _controls_.ListCtrl_SetColumnWidth(*args, **kwargs) def GetCountPerPage(*args, **kwargs): """GetCountPerPage(self) -> int""" - return _controls.ListCtrl_GetCountPerPage(*args, **kwargs) + return _controls_.ListCtrl_GetCountPerPage(*args, **kwargs) def GetViewRect(*args, **kwargs): """GetViewRect(self) -> Rect""" - return _controls.ListCtrl_GetViewRect(*args, **kwargs) + return _controls_.ListCtrl_GetViewRect(*args, **kwargs) def GetItem(*args, **kwargs): """GetItem(self, long itemId, int col=0) -> ListItem""" - val = _controls.ListCtrl_GetItem(*args, **kwargs) + val = _controls_.ListCtrl_GetItem(*args, **kwargs) if val is not None: val.thisown = 1 return val def SetItem(*args, **kwargs): """SetItem(self, ListItem info) -> bool""" - return _controls.ListCtrl_SetItem(*args, **kwargs) + return _controls_.ListCtrl_SetItem(*args, **kwargs) def SetStringItem(*args, **kwargs): """SetStringItem(self, long index, int col, String label, int imageId=-1) -> long""" - return _controls.ListCtrl_SetStringItem(*args, **kwargs) + return _controls_.ListCtrl_SetStringItem(*args, **kwargs) def GetItemState(*args, **kwargs): """GetItemState(self, long item, long stateMask) -> int""" - return _controls.ListCtrl_GetItemState(*args, **kwargs) + return _controls_.ListCtrl_GetItemState(*args, **kwargs) def SetItemState(*args, **kwargs): """SetItemState(self, long item, long state, long stateMask) -> bool""" - return _controls.ListCtrl_SetItemState(*args, **kwargs) + return _controls_.ListCtrl_SetItemState(*args, **kwargs) def SetItemImage(*args, **kwargs): """SetItemImage(self, long item, int image, int selImage) -> bool""" - return _controls.ListCtrl_SetItemImage(*args, **kwargs) + return _controls_.ListCtrl_SetItemImage(*args, **kwargs) def GetItemText(*args, **kwargs): """GetItemText(self, long item) -> String""" - return _controls.ListCtrl_GetItemText(*args, **kwargs) + return _controls_.ListCtrl_GetItemText(*args, **kwargs) def SetItemText(*args, **kwargs): """SetItemText(self, long item, String str)""" - return _controls.ListCtrl_SetItemText(*args, **kwargs) + return _controls_.ListCtrl_SetItemText(*args, **kwargs) def GetItemData(*args, **kwargs): """GetItemData(self, long item) -> long""" - return _controls.ListCtrl_GetItemData(*args, **kwargs) + return _controls_.ListCtrl_GetItemData(*args, **kwargs) def SetItemData(*args, **kwargs): """SetItemData(self, long item, long data) -> bool""" - return _controls.ListCtrl_SetItemData(*args, **kwargs) + return _controls_.ListCtrl_SetItemData(*args, **kwargs) def GetItemPosition(*args, **kwargs): """GetItemPosition(self, long item) -> Point""" - return _controls.ListCtrl_GetItemPosition(*args, **kwargs) + return _controls_.ListCtrl_GetItemPosition(*args, **kwargs) def GetItemRect(*args, **kwargs): """GetItemRect(self, long item, int code=LIST_RECT_BOUNDS) -> Rect""" - return _controls.ListCtrl_GetItemRect(*args, **kwargs) + return _controls_.ListCtrl_GetItemRect(*args, **kwargs) def SetItemPosition(*args, **kwargs): """SetItemPosition(self, long item, Point pos) -> bool""" - return _controls.ListCtrl_SetItemPosition(*args, **kwargs) + return _controls_.ListCtrl_SetItemPosition(*args, **kwargs) def GetItemCount(*args, **kwargs): """GetItemCount(self) -> int""" - return _controls.ListCtrl_GetItemCount(*args, **kwargs) + return _controls_.ListCtrl_GetItemCount(*args, **kwargs) def GetColumnCount(*args, **kwargs): """GetColumnCount(self) -> int""" - return _controls.ListCtrl_GetColumnCount(*args, **kwargs) + return _controls_.ListCtrl_GetColumnCount(*args, **kwargs) def GetItemSpacing(*args, **kwargs): """GetItemSpacing(self) -> Size""" - return _controls.ListCtrl_GetItemSpacing(*args, **kwargs) + return _controls_.ListCtrl_GetItemSpacing(*args, **kwargs) def SetItemSpacing(*args, **kwargs): """SetItemSpacing(self, int spacing, bool isSmall=False)""" - return _controls.ListCtrl_SetItemSpacing(*args, **kwargs) + return _controls_.ListCtrl_SetItemSpacing(*args, **kwargs) def GetSelectedItemCount(*args, **kwargs): """GetSelectedItemCount(self) -> int""" - return _controls.ListCtrl_GetSelectedItemCount(*args, **kwargs) + return _controls_.ListCtrl_GetSelectedItemCount(*args, **kwargs) def GetTextColour(*args, **kwargs): """GetTextColour(self) -> Colour""" - return _controls.ListCtrl_GetTextColour(*args, **kwargs) + return _controls_.ListCtrl_GetTextColour(*args, **kwargs) def SetTextColour(*args, **kwargs): """SetTextColour(self, Colour col)""" - return _controls.ListCtrl_SetTextColour(*args, **kwargs) + return _controls_.ListCtrl_SetTextColour(*args, **kwargs) def GetTopItem(*args, **kwargs): """GetTopItem(self) -> long""" - return _controls.ListCtrl_GetTopItem(*args, **kwargs) + return _controls_.ListCtrl_GetTopItem(*args, **kwargs) def SetSingleStyle(*args, **kwargs): """SetSingleStyle(self, long style, bool add=True)""" - return _controls.ListCtrl_SetSingleStyle(*args, **kwargs) + return _controls_.ListCtrl_SetSingleStyle(*args, **kwargs) def SetWindowStyleFlag(*args, **kwargs): """ @@ -3609,83 +3609,83 @@ class ListCtrl(core.Control): need to be called after changing the others for the change to take place immediately. """ - return _controls.ListCtrl_SetWindowStyleFlag(*args, **kwargs) + return _controls_.ListCtrl_SetWindowStyleFlag(*args, **kwargs) def GetNextItem(*args, **kwargs): """GetNextItem(self, long item, int geometry=LIST_NEXT_ALL, int state=LIST_STATE_DONTCARE) -> long""" - return _controls.ListCtrl_GetNextItem(*args, **kwargs) + return _controls_.ListCtrl_GetNextItem(*args, **kwargs) def GetImageList(*args, **kwargs): """GetImageList(self, int which) -> ImageList""" - return _controls.ListCtrl_GetImageList(*args, **kwargs) + return _controls_.ListCtrl_GetImageList(*args, **kwargs) def SetImageList(*args, **kwargs): """SetImageList(self, ImageList imageList, int which)""" - return _controls.ListCtrl_SetImageList(*args, **kwargs) + return _controls_.ListCtrl_SetImageList(*args, **kwargs) def AssignImageList(*args, **kwargs): """AssignImageList(self, ImageList imageList, int which)""" - return _controls.ListCtrl_AssignImageList(*args, **kwargs) + return _controls_.ListCtrl_AssignImageList(*args, **kwargs) def InReportView(*args, **kwargs): """InReportView(self) -> bool""" - return _controls.ListCtrl_InReportView(*args, **kwargs) + return _controls_.ListCtrl_InReportView(*args, **kwargs) def IsVirtual(*args, **kwargs): """IsVirtual(self) -> bool""" - return _controls.ListCtrl_IsVirtual(*args, **kwargs) + return _controls_.ListCtrl_IsVirtual(*args, **kwargs) def RefreshItem(*args, **kwargs): """RefreshItem(self, long item)""" - return _controls.ListCtrl_RefreshItem(*args, **kwargs) + return _controls_.ListCtrl_RefreshItem(*args, **kwargs) def RefreshItems(*args, **kwargs): """RefreshItems(self, long itemFrom, long itemTo)""" - return _controls.ListCtrl_RefreshItems(*args, **kwargs) + return _controls_.ListCtrl_RefreshItems(*args, **kwargs) def Arrange(*args, **kwargs): """Arrange(self, int flag=LIST_ALIGN_DEFAULT) -> bool""" - return _controls.ListCtrl_Arrange(*args, **kwargs) + return _controls_.ListCtrl_Arrange(*args, **kwargs) def DeleteItem(*args, **kwargs): """DeleteItem(self, long item) -> bool""" - return _controls.ListCtrl_DeleteItem(*args, **kwargs) + return _controls_.ListCtrl_DeleteItem(*args, **kwargs) def DeleteAllItems(*args, **kwargs): """DeleteAllItems(self) -> bool""" - return _controls.ListCtrl_DeleteAllItems(*args, **kwargs) + return _controls_.ListCtrl_DeleteAllItems(*args, **kwargs) def DeleteColumn(*args, **kwargs): """DeleteColumn(self, int col) -> bool""" - return _controls.ListCtrl_DeleteColumn(*args, **kwargs) + return _controls_.ListCtrl_DeleteColumn(*args, **kwargs) def DeleteAllColumns(*args, **kwargs): """DeleteAllColumns(self) -> bool""" - return _controls.ListCtrl_DeleteAllColumns(*args, **kwargs) + return _controls_.ListCtrl_DeleteAllColumns(*args, **kwargs) def ClearAll(*args, **kwargs): """ClearAll(self)""" - return _controls.ListCtrl_ClearAll(*args, **kwargs) + return _controls_.ListCtrl_ClearAll(*args, **kwargs) def EditLabel(*args, **kwargs): """EditLabel(self, long item)""" - return _controls.ListCtrl_EditLabel(*args, **kwargs) + return _controls_.ListCtrl_EditLabel(*args, **kwargs) def EnsureVisible(*args, **kwargs): """EnsureVisible(self, long item) -> bool""" - return _controls.ListCtrl_EnsureVisible(*args, **kwargs) + return _controls_.ListCtrl_EnsureVisible(*args, **kwargs) def FindItem(*args, **kwargs): """FindItem(self, long start, String str, bool partial=False) -> long""" - return _controls.ListCtrl_FindItem(*args, **kwargs) + return _controls_.ListCtrl_FindItem(*args, **kwargs) def FindItemData(*args, **kwargs): """FindItemData(self, long start, long data) -> long""" - return _controls.ListCtrl_FindItemData(*args, **kwargs) + return _controls_.ListCtrl_FindItemData(*args, **kwargs) def FindItemAtPos(*args, **kwargs): """FindItemAtPos(self, long start, Point pt, int direction) -> long""" - return _controls.ListCtrl_FindItemAtPos(*args, **kwargs) + return _controls_.ListCtrl_FindItemAtPos(*args, **kwargs) def HitTest(*args, **kwargs): """ @@ -3694,58 +3694,58 @@ class ListCtrl(core.Control): Determines which item (if any) is at the specified point, giving details in the second return value (see wxLIST_HITTEST_... flags.) """ - return _controls.ListCtrl_HitTest(*args, **kwargs) + return _controls_.ListCtrl_HitTest(*args, **kwargs) def InsertItem(*args, **kwargs): """InsertItem(self, ListItem info) -> long""" - return _controls.ListCtrl_InsertItem(*args, **kwargs) + return _controls_.ListCtrl_InsertItem(*args, **kwargs) def InsertStringItem(*args, **kwargs): """InsertStringItem(self, long index, String label) -> long""" - return _controls.ListCtrl_InsertStringItem(*args, **kwargs) + return _controls_.ListCtrl_InsertStringItem(*args, **kwargs) def InsertImageItem(*args, **kwargs): """InsertImageItem(self, long index, int imageIndex) -> long""" - return _controls.ListCtrl_InsertImageItem(*args, **kwargs) + return _controls_.ListCtrl_InsertImageItem(*args, **kwargs) def InsertImageStringItem(*args, **kwargs): """InsertImageStringItem(self, long index, String label, int imageIndex) -> long""" - return _controls.ListCtrl_InsertImageStringItem(*args, **kwargs) + return _controls_.ListCtrl_InsertImageStringItem(*args, **kwargs) def InsertColumnInfo(*args, **kwargs): """InsertColumnInfo(self, long col, ListItem info) -> long""" - return _controls.ListCtrl_InsertColumnInfo(*args, **kwargs) + return _controls_.ListCtrl_InsertColumnInfo(*args, **kwargs) def InsertColumn(*args, **kwargs): """ InsertColumn(self, long col, String heading, int format=LIST_FORMAT_LEFT, int width=-1) -> long """ - return _controls.ListCtrl_InsertColumn(*args, **kwargs) + return _controls_.ListCtrl_InsertColumn(*args, **kwargs) def SetItemCount(*args, **kwargs): """SetItemCount(self, long count)""" - return _controls.ListCtrl_SetItemCount(*args, **kwargs) + return _controls_.ListCtrl_SetItemCount(*args, **kwargs) def ScrollList(*args, **kwargs): """ScrollList(self, int dx, int dy) -> bool""" - return _controls.ListCtrl_ScrollList(*args, **kwargs) + return _controls_.ListCtrl_ScrollList(*args, **kwargs) def SetItemTextColour(*args, **kwargs): """SetItemTextColour(self, long item, Colour col)""" - return _controls.ListCtrl_SetItemTextColour(*args, **kwargs) + return _controls_.ListCtrl_SetItemTextColour(*args, **kwargs) def GetItemTextColour(*args, **kwargs): """GetItemTextColour(self, long item) -> Colour""" - return _controls.ListCtrl_GetItemTextColour(*args, **kwargs) + return _controls_.ListCtrl_GetItemTextColour(*args, **kwargs) def SetItemBackgroundColour(*args, **kwargs): """SetItemBackgroundColour(self, long item, Colour col)""" - return _controls.ListCtrl_SetItemBackgroundColour(*args, **kwargs) + return _controls_.ListCtrl_SetItemBackgroundColour(*args, **kwargs) def GetItemBackgroundColour(*args, **kwargs): """GetItemBackgroundColour(self, long item) -> Colour""" - return _controls.ListCtrl_GetItemBackgroundColour(*args, **kwargs) + return _controls_.ListCtrl_GetItemBackgroundColour(*args, **kwargs) # # Some helpers... @@ -3808,11 +3808,11 @@ class ListCtrl(core.Control): def SortItems(*args, **kwargs): """SortItems(self, PyObject func) -> bool""" - return _controls.ListCtrl_SortItems(*args, **kwargs) + return _controls_.ListCtrl_SortItems(*args, **kwargs) def GetMainWindow(*args, **kwargs): """GetMainWindow(self) -> Window""" - return _controls.ListCtrl_GetMainWindow(*args, **kwargs) + return _controls_.ListCtrl_GetMainWindow(*args, **kwargs) def GetClassDefaultAttributes(*args, **kwargs): """ @@ -3828,7 +3828,7 @@ class ListCtrl(core.Control): ignore under other platforms. Under Mac, it will change the size of the returned font. See SetWindowVariant for more about this. """ - return _controls.ListCtrl_GetClassDefaultAttributes(*args, **kwargs) + return _controls_.ListCtrl_GetClassDefaultAttributes(*args, **kwargs) GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) @@ -3837,11 +3837,11 @@ class ListCtrlPtr(ListCtrl): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = ListCtrl -_controls.ListCtrl_swigregister(ListCtrlPtr) +_controls_.ListCtrl_swigregister(ListCtrlPtr) def PreListCtrl(*args, **kwargs): """PreListCtrl() -> ListCtrl""" - val = _controls.new_PreListCtrl(*args, **kwargs) + val = _controls_.new_PreListCtrl(*args, **kwargs) val.thisown = 1 return val @@ -3859,7 +3859,7 @@ def ListCtrl_GetClassDefaultAttributes(*args, **kwargs): ignore under other platforms. Under Mac, it will change the size of the returned font. See SetWindowVariant for more about this. """ - return _controls.ListCtrl_GetClassDefaultAttributes(*args, **kwargs) + return _controls_.ListCtrl_GetClassDefaultAttributes(*args, **kwargs) #--------------------------------------------------------------------------- @@ -3872,7 +3872,7 @@ class ListView(ListCtrl): Size size=DefaultSize, long style=LC_REPORT, Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListView """ - newobj = _controls.new_ListView(*args, **kwargs) + newobj = _controls_.new_ListView(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -3886,39 +3886,39 @@ class ListView(ListCtrl): Do the 2nd phase and create the GUI control. """ - return _controls.ListView_Create(*args, **kwargs) + return _controls_.ListView_Create(*args, **kwargs) def Select(*args, **kwargs): """Select(self, long n, bool on=True)""" - return _controls.ListView_Select(*args, **kwargs) + return _controls_.ListView_Select(*args, **kwargs) def Focus(*args, **kwargs): """Focus(self, long index)""" - return _controls.ListView_Focus(*args, **kwargs) + return _controls_.ListView_Focus(*args, **kwargs) def GetFocusedItem(*args, **kwargs): """GetFocusedItem(self) -> long""" - return _controls.ListView_GetFocusedItem(*args, **kwargs) + return _controls_.ListView_GetFocusedItem(*args, **kwargs) def GetNextSelected(*args, **kwargs): """GetNextSelected(self, long item) -> long""" - return _controls.ListView_GetNextSelected(*args, **kwargs) + return _controls_.ListView_GetNextSelected(*args, **kwargs) def GetFirstSelected(*args, **kwargs): """GetFirstSelected(self) -> long""" - return _controls.ListView_GetFirstSelected(*args, **kwargs) + return _controls_.ListView_GetFirstSelected(*args, **kwargs) def IsSelected(*args, **kwargs): """IsSelected(self, long index) -> bool""" - return _controls.ListView_IsSelected(*args, **kwargs) + return _controls_.ListView_IsSelected(*args, **kwargs) def SetColumnImage(*args, **kwargs): """SetColumnImage(self, int col, int image)""" - return _controls.ListView_SetColumnImage(*args, **kwargs) + return _controls_.ListView_SetColumnImage(*args, **kwargs) def ClearColumnImage(*args, **kwargs): """ClearColumnImage(self, int col)""" - return _controls.ListView_ClearColumnImage(*args, **kwargs) + return _controls_.ListView_ClearColumnImage(*args, **kwargs) class ListViewPtr(ListView): @@ -3926,51 +3926,51 @@ class ListViewPtr(ListView): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = ListView -_controls.ListView_swigregister(ListViewPtr) +_controls_.ListView_swigregister(ListViewPtr) def PreListView(*args, **kwargs): """PreListView() -> ListView""" - val = _controls.new_PreListView(*args, **kwargs) + val = _controls_.new_PreListView(*args, **kwargs) val.thisown = 1 return val #--------------------------------------------------------------------------- -TR_NO_BUTTONS = _controls.TR_NO_BUTTONS -TR_HAS_BUTTONS = _controls.TR_HAS_BUTTONS -TR_NO_LINES = _controls.TR_NO_LINES -TR_LINES_AT_ROOT = _controls.TR_LINES_AT_ROOT -TR_SINGLE = _controls.TR_SINGLE -TR_MULTIPLE = _controls.TR_MULTIPLE -TR_EXTENDED = _controls.TR_EXTENDED -TR_HAS_VARIABLE_ROW_HEIGHT = _controls.TR_HAS_VARIABLE_ROW_HEIGHT -TR_EDIT_LABELS = _controls.TR_EDIT_LABELS -TR_HIDE_ROOT = _controls.TR_HIDE_ROOT -TR_ROW_LINES = _controls.TR_ROW_LINES -TR_FULL_ROW_HIGHLIGHT = _controls.TR_FULL_ROW_HIGHLIGHT -TR_DEFAULT_STYLE = _controls.TR_DEFAULT_STYLE -TR_TWIST_BUTTONS = _controls.TR_TWIST_BUTTONS -TR_MAC_BUTTONS = _controls.TR_MAC_BUTTONS -TR_AQUA_BUTTONS = _controls.TR_AQUA_BUTTONS -TreeItemIcon_Normal = _controls.TreeItemIcon_Normal -TreeItemIcon_Selected = _controls.TreeItemIcon_Selected -TreeItemIcon_Expanded = _controls.TreeItemIcon_Expanded -TreeItemIcon_SelectedExpanded = _controls.TreeItemIcon_SelectedExpanded -TreeItemIcon_Max = _controls.TreeItemIcon_Max -TREE_HITTEST_ABOVE = _controls.TREE_HITTEST_ABOVE -TREE_HITTEST_BELOW = _controls.TREE_HITTEST_BELOW -TREE_HITTEST_NOWHERE = _controls.TREE_HITTEST_NOWHERE -TREE_HITTEST_ONITEMBUTTON = _controls.TREE_HITTEST_ONITEMBUTTON -TREE_HITTEST_ONITEMICON = _controls.TREE_HITTEST_ONITEMICON -TREE_HITTEST_ONITEMINDENT = _controls.TREE_HITTEST_ONITEMINDENT -TREE_HITTEST_ONITEMLABEL = _controls.TREE_HITTEST_ONITEMLABEL -TREE_HITTEST_ONITEMRIGHT = _controls.TREE_HITTEST_ONITEMRIGHT -TREE_HITTEST_ONITEMSTATEICON = _controls.TREE_HITTEST_ONITEMSTATEICON -TREE_HITTEST_TOLEFT = _controls.TREE_HITTEST_TOLEFT -TREE_HITTEST_TORIGHT = _controls.TREE_HITTEST_TORIGHT -TREE_HITTEST_ONITEMUPPERPART = _controls.TREE_HITTEST_ONITEMUPPERPART -TREE_HITTEST_ONITEMLOWERPART = _controls.TREE_HITTEST_ONITEMLOWERPART -TREE_HITTEST_ONITEM = _controls.TREE_HITTEST_ONITEM +TR_NO_BUTTONS = _controls_.TR_NO_BUTTONS +TR_HAS_BUTTONS = _controls_.TR_HAS_BUTTONS +TR_NO_LINES = _controls_.TR_NO_LINES +TR_LINES_AT_ROOT = _controls_.TR_LINES_AT_ROOT +TR_SINGLE = _controls_.TR_SINGLE +TR_MULTIPLE = _controls_.TR_MULTIPLE +TR_EXTENDED = _controls_.TR_EXTENDED +TR_HAS_VARIABLE_ROW_HEIGHT = _controls_.TR_HAS_VARIABLE_ROW_HEIGHT +TR_EDIT_LABELS = _controls_.TR_EDIT_LABELS +TR_HIDE_ROOT = _controls_.TR_HIDE_ROOT +TR_ROW_LINES = _controls_.TR_ROW_LINES +TR_FULL_ROW_HIGHLIGHT = _controls_.TR_FULL_ROW_HIGHLIGHT +TR_DEFAULT_STYLE = _controls_.TR_DEFAULT_STYLE +TR_TWIST_BUTTONS = _controls_.TR_TWIST_BUTTONS +TR_MAC_BUTTONS = _controls_.TR_MAC_BUTTONS +TR_AQUA_BUTTONS = _controls_.TR_AQUA_BUTTONS +TreeItemIcon_Normal = _controls_.TreeItemIcon_Normal +TreeItemIcon_Selected = _controls_.TreeItemIcon_Selected +TreeItemIcon_Expanded = _controls_.TreeItemIcon_Expanded +TreeItemIcon_SelectedExpanded = _controls_.TreeItemIcon_SelectedExpanded +TreeItemIcon_Max = _controls_.TreeItemIcon_Max +TREE_HITTEST_ABOVE = _controls_.TREE_HITTEST_ABOVE +TREE_HITTEST_BELOW = _controls_.TREE_HITTEST_BELOW +TREE_HITTEST_NOWHERE = _controls_.TREE_HITTEST_NOWHERE +TREE_HITTEST_ONITEMBUTTON = _controls_.TREE_HITTEST_ONITEMBUTTON +TREE_HITTEST_ONITEMICON = _controls_.TREE_HITTEST_ONITEMICON +TREE_HITTEST_ONITEMINDENT = _controls_.TREE_HITTEST_ONITEMINDENT +TREE_HITTEST_ONITEMLABEL = _controls_.TREE_HITTEST_ONITEMLABEL +TREE_HITTEST_ONITEMRIGHT = _controls_.TREE_HITTEST_ONITEMRIGHT +TREE_HITTEST_ONITEMSTATEICON = _controls_.TREE_HITTEST_ONITEMSTATEICON +TREE_HITTEST_TOLEFT = _controls_.TREE_HITTEST_TOLEFT +TREE_HITTEST_TORIGHT = _controls_.TREE_HITTEST_TORIGHT +TREE_HITTEST_ONITEMUPPERPART = _controls_.TREE_HITTEST_ONITEMUPPERPART +TREE_HITTEST_ONITEMLOWERPART = _controls_.TREE_HITTEST_ONITEMLOWERPART +TREE_HITTEST_ONITEM = _controls_.TREE_HITTEST_ONITEM #--------------------------------------------------------------------------- class TreeItemId(object): @@ -3978,11 +3978,11 @@ class TreeItemId(object): return "<%s.%s; proxy of C++ wxTreeItemId instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> TreeItemId""" - newobj = _controls.new_TreeItemId(*args, **kwargs) + newobj = _controls_.new_TreeItemId(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_controls.delete_TreeItemId): + def __del__(self, destroy=_controls_.delete_TreeItemId): """__del__(self)""" try: if self.thisown: destroy(self) @@ -3990,17 +3990,17 @@ class TreeItemId(object): def IsOk(*args, **kwargs): """IsOk(self) -> bool""" - return _controls.TreeItemId_IsOk(*args, **kwargs) + return _controls_.TreeItemId_IsOk(*args, **kwargs) def __eq__(*args, **kwargs): """__eq__(self, TreeItemId other) -> bool""" - return _controls.TreeItemId___eq__(*args, **kwargs) + return _controls_.TreeItemId___eq__(*args, **kwargs) def __ne__(*args, **kwargs): """__ne__(self, TreeItemId other) -> bool""" - return _controls.TreeItemId___ne__(*args, **kwargs) + return _controls_.TreeItemId___ne__(*args, **kwargs) - m_pItem = property(_controls.TreeItemId_m_pItem_get, _controls.TreeItemId_m_pItem_set) + m_pItem = property(_controls_.TreeItemId_m_pItem_get, _controls_.TreeItemId_m_pItem_set) Ok = IsOk def __nonzero__(self): return self.IsOk() @@ -4009,7 +4009,7 @@ class TreeItemIdPtr(TreeItemId): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = TreeItemId -_controls.TreeItemId_swigregister(TreeItemIdPtr) +_controls_.TreeItemId_swigregister(TreeItemIdPtr) TreeCtrlNameStr = cvar.TreeCtrlNameStr class TreeItemData(object): @@ -4017,29 +4017,29 @@ class TreeItemData(object): return "<%s.%s; proxy of C++ wxPyTreeItemData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, PyObject obj=None) -> TreeItemData""" - newobj = _controls.new_TreeItemData(*args, **kwargs) + newobj = _controls_.new_TreeItemData(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def GetData(*args, **kwargs): """GetData(self) -> PyObject""" - return _controls.TreeItemData_GetData(*args, **kwargs) + return _controls_.TreeItemData_GetData(*args, **kwargs) def SetData(*args, **kwargs): """SetData(self, PyObject obj)""" - return _controls.TreeItemData_SetData(*args, **kwargs) + return _controls_.TreeItemData_SetData(*args, **kwargs) def GetId(*args, **kwargs): """GetId(self) -> TreeItemId""" - return _controls.TreeItemData_GetId(*args, **kwargs) + return _controls_.TreeItemData_GetId(*args, **kwargs) def SetId(*args, **kwargs): """SetId(self, TreeItemId id)""" - return _controls.TreeItemData_SetId(*args, **kwargs) + return _controls_.TreeItemData_SetId(*args, **kwargs) def Destroy(*args, **kwargs): """Destroy(self)""" - return _controls.TreeItemData_Destroy(*args, **kwargs) + return _controls_.TreeItemData_Destroy(*args, **kwargs) class TreeItemDataPtr(TreeItemData): @@ -4047,30 +4047,30 @@ class TreeItemDataPtr(TreeItemData): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = TreeItemData -_controls.TreeItemData_swigregister(TreeItemDataPtr) +_controls_.TreeItemData_swigregister(TreeItemDataPtr) #--------------------------------------------------------------------------- -wxEVT_COMMAND_TREE_BEGIN_DRAG = _controls.wxEVT_COMMAND_TREE_BEGIN_DRAG -wxEVT_COMMAND_TREE_BEGIN_RDRAG = _controls.wxEVT_COMMAND_TREE_BEGIN_RDRAG -wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT = _controls.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT -wxEVT_COMMAND_TREE_END_LABEL_EDIT = _controls.wxEVT_COMMAND_TREE_END_LABEL_EDIT -wxEVT_COMMAND_TREE_DELETE_ITEM = _controls.wxEVT_COMMAND_TREE_DELETE_ITEM -wxEVT_COMMAND_TREE_GET_INFO = _controls.wxEVT_COMMAND_TREE_GET_INFO -wxEVT_COMMAND_TREE_SET_INFO = _controls.wxEVT_COMMAND_TREE_SET_INFO -wxEVT_COMMAND_TREE_ITEM_EXPANDED = _controls.wxEVT_COMMAND_TREE_ITEM_EXPANDED -wxEVT_COMMAND_TREE_ITEM_EXPANDING = _controls.wxEVT_COMMAND_TREE_ITEM_EXPANDING -wxEVT_COMMAND_TREE_ITEM_COLLAPSED = _controls.wxEVT_COMMAND_TREE_ITEM_COLLAPSED -wxEVT_COMMAND_TREE_ITEM_COLLAPSING = _controls.wxEVT_COMMAND_TREE_ITEM_COLLAPSING -wxEVT_COMMAND_TREE_SEL_CHANGED = _controls.wxEVT_COMMAND_TREE_SEL_CHANGED -wxEVT_COMMAND_TREE_SEL_CHANGING = _controls.wxEVT_COMMAND_TREE_SEL_CHANGING -wxEVT_COMMAND_TREE_KEY_DOWN = _controls.wxEVT_COMMAND_TREE_KEY_DOWN -wxEVT_COMMAND_TREE_ITEM_ACTIVATED = _controls.wxEVT_COMMAND_TREE_ITEM_ACTIVATED -wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK = _controls.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK -wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK = _controls.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK -wxEVT_COMMAND_TREE_END_DRAG = _controls.wxEVT_COMMAND_TREE_END_DRAG -wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK = _controls.wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK -wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP = _controls.wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP +wxEVT_COMMAND_TREE_BEGIN_DRAG = _controls_.wxEVT_COMMAND_TREE_BEGIN_DRAG +wxEVT_COMMAND_TREE_BEGIN_RDRAG = _controls_.wxEVT_COMMAND_TREE_BEGIN_RDRAG +wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT = _controls_.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT +wxEVT_COMMAND_TREE_END_LABEL_EDIT = _controls_.wxEVT_COMMAND_TREE_END_LABEL_EDIT +wxEVT_COMMAND_TREE_DELETE_ITEM = _controls_.wxEVT_COMMAND_TREE_DELETE_ITEM +wxEVT_COMMAND_TREE_GET_INFO = _controls_.wxEVT_COMMAND_TREE_GET_INFO +wxEVT_COMMAND_TREE_SET_INFO = _controls_.wxEVT_COMMAND_TREE_SET_INFO +wxEVT_COMMAND_TREE_ITEM_EXPANDED = _controls_.wxEVT_COMMAND_TREE_ITEM_EXPANDED +wxEVT_COMMAND_TREE_ITEM_EXPANDING = _controls_.wxEVT_COMMAND_TREE_ITEM_EXPANDING +wxEVT_COMMAND_TREE_ITEM_COLLAPSED = _controls_.wxEVT_COMMAND_TREE_ITEM_COLLAPSED +wxEVT_COMMAND_TREE_ITEM_COLLAPSING = _controls_.wxEVT_COMMAND_TREE_ITEM_COLLAPSING +wxEVT_COMMAND_TREE_SEL_CHANGED = _controls_.wxEVT_COMMAND_TREE_SEL_CHANGED +wxEVT_COMMAND_TREE_SEL_CHANGING = _controls_.wxEVT_COMMAND_TREE_SEL_CHANGING +wxEVT_COMMAND_TREE_KEY_DOWN = _controls_.wxEVT_COMMAND_TREE_KEY_DOWN +wxEVT_COMMAND_TREE_ITEM_ACTIVATED = _controls_.wxEVT_COMMAND_TREE_ITEM_ACTIVATED +wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK = _controls_.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK +wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK = _controls_.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK +wxEVT_COMMAND_TREE_END_DRAG = _controls_.wxEVT_COMMAND_TREE_END_DRAG +wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK = _controls_.wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK +wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP = _controls_.wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP EVT_TREE_BEGIN_DRAG = wx.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_DRAG , 1) EVT_TREE_BEGIN_RDRAG = wx.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_RDRAG , 1) EVT_TREE_BEGIN_LABEL_EDIT = wx.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT , 1) @@ -4092,70 +4092,70 @@ EVT_TREE_END_DRAG = wx.PyEventBinder(wxEVT_COMMAND_TREE_END_DRAG EVT_TREE_STATE_IMAGE_CLICK = wx.PyEventBinder(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK, 1) EVT_TREE_ITEM_GETTOOLTIP = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP, 1) -class TreeEvent(core.NotifyEvent): +class TreeEvent(_core.NotifyEvent): def __repr__(self): return "<%s.%s; proxy of C++ wxTreeEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> TreeEvent""" - newobj = _controls.new_TreeEvent(*args, **kwargs) + newobj = _controls_.new_TreeEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def GetItem(*args, **kwargs): """GetItem(self) -> TreeItemId""" - return _controls.TreeEvent_GetItem(*args, **kwargs) + return _controls_.TreeEvent_GetItem(*args, **kwargs) def SetItem(*args, **kwargs): """SetItem(self, TreeItemId item)""" - return _controls.TreeEvent_SetItem(*args, **kwargs) + return _controls_.TreeEvent_SetItem(*args, **kwargs) def GetOldItem(*args, **kwargs): """GetOldItem(self) -> TreeItemId""" - return _controls.TreeEvent_GetOldItem(*args, **kwargs) + return _controls_.TreeEvent_GetOldItem(*args, **kwargs) def SetOldItem(*args, **kwargs): """SetOldItem(self, TreeItemId item)""" - return _controls.TreeEvent_SetOldItem(*args, **kwargs) + return _controls_.TreeEvent_SetOldItem(*args, **kwargs) def GetPoint(*args, **kwargs): """GetPoint(self) -> Point""" - return _controls.TreeEvent_GetPoint(*args, **kwargs) + return _controls_.TreeEvent_GetPoint(*args, **kwargs) def SetPoint(*args, **kwargs): """SetPoint(self, Point pt)""" - return _controls.TreeEvent_SetPoint(*args, **kwargs) + return _controls_.TreeEvent_SetPoint(*args, **kwargs) def GetKeyEvent(*args, **kwargs): """GetKeyEvent(self) -> KeyEvent""" - return _controls.TreeEvent_GetKeyEvent(*args, **kwargs) + return _controls_.TreeEvent_GetKeyEvent(*args, **kwargs) def GetKeyCode(*args, **kwargs): """GetKeyCode(self) -> int""" - return _controls.TreeEvent_GetKeyCode(*args, **kwargs) + return _controls_.TreeEvent_GetKeyCode(*args, **kwargs) def SetKeyEvent(*args, **kwargs): """SetKeyEvent(self, KeyEvent evt)""" - return _controls.TreeEvent_SetKeyEvent(*args, **kwargs) + return _controls_.TreeEvent_SetKeyEvent(*args, **kwargs) def GetLabel(*args, **kwargs): """GetLabel(self) -> String""" - return _controls.TreeEvent_GetLabel(*args, **kwargs) + return _controls_.TreeEvent_GetLabel(*args, **kwargs) def SetLabel(*args, **kwargs): """SetLabel(self, String label)""" - return _controls.TreeEvent_SetLabel(*args, **kwargs) + return _controls_.TreeEvent_SetLabel(*args, **kwargs) def IsEditCancelled(*args, **kwargs): """IsEditCancelled(self) -> bool""" - return _controls.TreeEvent_IsEditCancelled(*args, **kwargs) + return _controls_.TreeEvent_IsEditCancelled(*args, **kwargs) def SetEditCanceled(*args, **kwargs): """SetEditCanceled(self, bool editCancelled)""" - return _controls.TreeEvent_SetEditCanceled(*args, **kwargs) + return _controls_.TreeEvent_SetEditCanceled(*args, **kwargs) def SetToolTip(*args, **kwargs): """SetToolTip(self, String toolTip)""" - return _controls.TreeEvent_SetToolTip(*args, **kwargs) + return _controls_.TreeEvent_SetToolTip(*args, **kwargs) class TreeEventPtr(TreeEvent): @@ -4163,11 +4163,11 @@ class TreeEventPtr(TreeEvent): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = TreeEvent -_controls.TreeEvent_swigregister(TreeEventPtr) +_controls_.TreeEvent_swigregister(TreeEventPtr) #--------------------------------------------------------------------------- -class TreeCtrl(core.Control): +class TreeCtrl(_core.Control): def __repr__(self): return "<%s.%s; proxy of C++ wxPyTreeCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -4177,7 +4177,7 @@ class TreeCtrl(core.Control): Validator validator=DefaultValidator, String name=TreeCtrlNameStr) -> TreeCtrl """ - newobj = _controls.new_TreeCtrl(*args, **kwargs) + newobj = _controls_.new_TreeCtrl(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -4192,293 +4192,293 @@ class TreeCtrl(core.Control): Do the 2nd phase and create the GUI control. """ - return _controls.TreeCtrl_Create(*args, **kwargs) + return _controls_.TreeCtrl_Create(*args, **kwargs) def _setCallbackInfo(*args, **kwargs): """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _controls.TreeCtrl__setCallbackInfo(*args, **kwargs) + return _controls_.TreeCtrl__setCallbackInfo(*args, **kwargs) def GetCount(*args, **kwargs): """GetCount(self) -> size_t""" - return _controls.TreeCtrl_GetCount(*args, **kwargs) + return _controls_.TreeCtrl_GetCount(*args, **kwargs) def GetIndent(*args, **kwargs): """GetIndent(self) -> unsigned int""" - return _controls.TreeCtrl_GetIndent(*args, **kwargs) + return _controls_.TreeCtrl_GetIndent(*args, **kwargs) def SetIndent(*args, **kwargs): """SetIndent(self, unsigned int indent)""" - return _controls.TreeCtrl_SetIndent(*args, **kwargs) + return _controls_.TreeCtrl_SetIndent(*args, **kwargs) def GetSpacing(*args, **kwargs): """GetSpacing(self) -> unsigned int""" - return _controls.TreeCtrl_GetSpacing(*args, **kwargs) + return _controls_.TreeCtrl_GetSpacing(*args, **kwargs) def SetSpacing(*args, **kwargs): """SetSpacing(self, unsigned int spacing)""" - return _controls.TreeCtrl_SetSpacing(*args, **kwargs) + return _controls_.TreeCtrl_SetSpacing(*args, **kwargs) def GetImageList(*args, **kwargs): """GetImageList(self) -> ImageList""" - return _controls.TreeCtrl_GetImageList(*args, **kwargs) + return _controls_.TreeCtrl_GetImageList(*args, **kwargs) def GetStateImageList(*args, **kwargs): """GetStateImageList(self) -> ImageList""" - return _controls.TreeCtrl_GetStateImageList(*args, **kwargs) + return _controls_.TreeCtrl_GetStateImageList(*args, **kwargs) def SetImageList(*args, **kwargs): """SetImageList(self, ImageList imageList)""" - return _controls.TreeCtrl_SetImageList(*args, **kwargs) + return _controls_.TreeCtrl_SetImageList(*args, **kwargs) def SetStateImageList(*args, **kwargs): """SetStateImageList(self, ImageList imageList)""" - return _controls.TreeCtrl_SetStateImageList(*args, **kwargs) + return _controls_.TreeCtrl_SetStateImageList(*args, **kwargs) def AssignImageList(*args, **kwargs): """AssignImageList(self, ImageList imageList)""" - return _controls.TreeCtrl_AssignImageList(*args, **kwargs) + return _controls_.TreeCtrl_AssignImageList(*args, **kwargs) def AssignStateImageList(*args, **kwargs): """AssignStateImageList(self, ImageList imageList)""" - return _controls.TreeCtrl_AssignStateImageList(*args, **kwargs) + return _controls_.TreeCtrl_AssignStateImageList(*args, **kwargs) def GetItemText(*args, **kwargs): """GetItemText(self, TreeItemId item) -> String""" - return _controls.TreeCtrl_GetItemText(*args, **kwargs) + return _controls_.TreeCtrl_GetItemText(*args, **kwargs) def GetItemImage(*args, **kwargs): """GetItemImage(self, TreeItemId item, int which=TreeItemIcon_Normal) -> int""" - return _controls.TreeCtrl_GetItemImage(*args, **kwargs) + return _controls_.TreeCtrl_GetItemImage(*args, **kwargs) def GetItemData(*args, **kwargs): """GetItemData(self, TreeItemId item) -> TreeItemData""" - return _controls.TreeCtrl_GetItemData(*args, **kwargs) + return _controls_.TreeCtrl_GetItemData(*args, **kwargs) def GetItemPyData(*args, **kwargs): """GetItemPyData(self, TreeItemId item) -> PyObject""" - return _controls.TreeCtrl_GetItemPyData(*args, **kwargs) + return _controls_.TreeCtrl_GetItemPyData(*args, **kwargs) GetPyData = GetItemPyData def GetItemTextColour(*args, **kwargs): """GetItemTextColour(self, TreeItemId item) -> Colour""" - return _controls.TreeCtrl_GetItemTextColour(*args, **kwargs) + return _controls_.TreeCtrl_GetItemTextColour(*args, **kwargs) def GetItemBackgroundColour(*args, **kwargs): """GetItemBackgroundColour(self, TreeItemId item) -> Colour""" - return _controls.TreeCtrl_GetItemBackgroundColour(*args, **kwargs) + return _controls_.TreeCtrl_GetItemBackgroundColour(*args, **kwargs) def GetItemFont(*args, **kwargs): """GetItemFont(self, TreeItemId item) -> Font""" - return _controls.TreeCtrl_GetItemFont(*args, **kwargs) + return _controls_.TreeCtrl_GetItemFont(*args, **kwargs) def SetItemText(*args, **kwargs): """SetItemText(self, TreeItemId item, String text)""" - return _controls.TreeCtrl_SetItemText(*args, **kwargs) + return _controls_.TreeCtrl_SetItemText(*args, **kwargs) def SetItemImage(*args, **kwargs): """SetItemImage(self, TreeItemId item, int image, int which=TreeItemIcon_Normal)""" - return _controls.TreeCtrl_SetItemImage(*args, **kwargs) + return _controls_.TreeCtrl_SetItemImage(*args, **kwargs) def SetItemData(*args, **kwargs): """SetItemData(self, TreeItemId item, TreeItemData data)""" - return _controls.TreeCtrl_SetItemData(*args, **kwargs) + return _controls_.TreeCtrl_SetItemData(*args, **kwargs) def SetItemPyData(*args, **kwargs): """SetItemPyData(self, TreeItemId item, PyObject obj)""" - return _controls.TreeCtrl_SetItemPyData(*args, **kwargs) + return _controls_.TreeCtrl_SetItemPyData(*args, **kwargs) SetPyData = SetItemPyData def SetItemHasChildren(*args, **kwargs): """SetItemHasChildren(self, TreeItemId item, bool has=True)""" - return _controls.TreeCtrl_SetItemHasChildren(*args, **kwargs) + return _controls_.TreeCtrl_SetItemHasChildren(*args, **kwargs) def SetItemBold(*args, **kwargs): """SetItemBold(self, TreeItemId item, bool bold=True)""" - return _controls.TreeCtrl_SetItemBold(*args, **kwargs) + return _controls_.TreeCtrl_SetItemBold(*args, **kwargs) def SetItemTextColour(*args, **kwargs): """SetItemTextColour(self, TreeItemId item, Colour col)""" - return _controls.TreeCtrl_SetItemTextColour(*args, **kwargs) + return _controls_.TreeCtrl_SetItemTextColour(*args, **kwargs) def SetItemBackgroundColour(*args, **kwargs): """SetItemBackgroundColour(self, TreeItemId item, Colour col)""" - return _controls.TreeCtrl_SetItemBackgroundColour(*args, **kwargs) + return _controls_.TreeCtrl_SetItemBackgroundColour(*args, **kwargs) def SetItemFont(*args, **kwargs): """SetItemFont(self, TreeItemId item, Font font)""" - return _controls.TreeCtrl_SetItemFont(*args, **kwargs) + return _controls_.TreeCtrl_SetItemFont(*args, **kwargs) def IsVisible(*args, **kwargs): """IsVisible(self, TreeItemId item) -> bool""" - return _controls.TreeCtrl_IsVisible(*args, **kwargs) + return _controls_.TreeCtrl_IsVisible(*args, **kwargs) def ItemHasChildren(*args, **kwargs): """ItemHasChildren(self, TreeItemId item) -> bool""" - return _controls.TreeCtrl_ItemHasChildren(*args, **kwargs) + return _controls_.TreeCtrl_ItemHasChildren(*args, **kwargs) def IsExpanded(*args, **kwargs): """IsExpanded(self, TreeItemId item) -> bool""" - return _controls.TreeCtrl_IsExpanded(*args, **kwargs) + return _controls_.TreeCtrl_IsExpanded(*args, **kwargs) def IsSelected(*args, **kwargs): """IsSelected(self, TreeItemId item) -> bool""" - return _controls.TreeCtrl_IsSelected(*args, **kwargs) + return _controls_.TreeCtrl_IsSelected(*args, **kwargs) def IsBold(*args, **kwargs): """IsBold(self, TreeItemId item) -> bool""" - return _controls.TreeCtrl_IsBold(*args, **kwargs) + return _controls_.TreeCtrl_IsBold(*args, **kwargs) def GetChildrenCount(*args, **kwargs): """GetChildrenCount(self, TreeItemId item, bool recursively=True) -> size_t""" - return _controls.TreeCtrl_GetChildrenCount(*args, **kwargs) + return _controls_.TreeCtrl_GetChildrenCount(*args, **kwargs) def GetRootItem(*args, **kwargs): """GetRootItem(self) -> TreeItemId""" - return _controls.TreeCtrl_GetRootItem(*args, **kwargs) + return _controls_.TreeCtrl_GetRootItem(*args, **kwargs) def GetSelection(*args, **kwargs): """GetSelection(self) -> TreeItemId""" - return _controls.TreeCtrl_GetSelection(*args, **kwargs) + return _controls_.TreeCtrl_GetSelection(*args, **kwargs) def GetSelections(*args, **kwargs): """GetSelections(self) -> PyObject""" - return _controls.TreeCtrl_GetSelections(*args, **kwargs) + return _controls_.TreeCtrl_GetSelections(*args, **kwargs) def GetItemParent(*args, **kwargs): """GetItemParent(self, TreeItemId item) -> TreeItemId""" - return _controls.TreeCtrl_GetItemParent(*args, **kwargs) + return _controls_.TreeCtrl_GetItemParent(*args, **kwargs) def GetFirstChild(*args, **kwargs): """GetFirstChild(self, TreeItemId item) -> PyObject""" - return _controls.TreeCtrl_GetFirstChild(*args, **kwargs) + return _controls_.TreeCtrl_GetFirstChild(*args, **kwargs) def GetNextChild(*args, **kwargs): """GetNextChild(self, TreeItemId item, void cookie) -> PyObject""" - return _controls.TreeCtrl_GetNextChild(*args, **kwargs) + return _controls_.TreeCtrl_GetNextChild(*args, **kwargs) def GetLastChild(*args, **kwargs): """GetLastChild(self, TreeItemId item) -> TreeItemId""" - return _controls.TreeCtrl_GetLastChild(*args, **kwargs) + return _controls_.TreeCtrl_GetLastChild(*args, **kwargs) def GetNextSibling(*args, **kwargs): """GetNextSibling(self, TreeItemId item) -> TreeItemId""" - return _controls.TreeCtrl_GetNextSibling(*args, **kwargs) + return _controls_.TreeCtrl_GetNextSibling(*args, **kwargs) def GetPrevSibling(*args, **kwargs): """GetPrevSibling(self, TreeItemId item) -> TreeItemId""" - return _controls.TreeCtrl_GetPrevSibling(*args, **kwargs) + return _controls_.TreeCtrl_GetPrevSibling(*args, **kwargs) def GetFirstVisibleItem(*args, **kwargs): """GetFirstVisibleItem(self) -> TreeItemId""" - return _controls.TreeCtrl_GetFirstVisibleItem(*args, **kwargs) + return _controls_.TreeCtrl_GetFirstVisibleItem(*args, **kwargs) def GetNextVisible(*args, **kwargs): """GetNextVisible(self, TreeItemId item) -> TreeItemId""" - return _controls.TreeCtrl_GetNextVisible(*args, **kwargs) + return _controls_.TreeCtrl_GetNextVisible(*args, **kwargs) def GetPrevVisible(*args, **kwargs): """GetPrevVisible(self, TreeItemId item) -> TreeItemId""" - return _controls.TreeCtrl_GetPrevVisible(*args, **kwargs) + return _controls_.TreeCtrl_GetPrevVisible(*args, **kwargs) def AddRoot(*args, **kwargs): """AddRoot(self, String text, int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId""" - return _controls.TreeCtrl_AddRoot(*args, **kwargs) + return _controls_.TreeCtrl_AddRoot(*args, **kwargs) def PrependItem(*args, **kwargs): """ PrependItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId """ - return _controls.TreeCtrl_PrependItem(*args, **kwargs) + return _controls_.TreeCtrl_PrependItem(*args, **kwargs) def InsertItem(*args, **kwargs): """ InsertItem(self, TreeItemId parent, TreeItemId idPrevious, String text, int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId """ - return _controls.TreeCtrl_InsertItem(*args, **kwargs) + return _controls_.TreeCtrl_InsertItem(*args, **kwargs) def InsertItemBefore(*args, **kwargs): """ InsertItemBefore(self, TreeItemId parent, size_t index, String text, int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId """ - return _controls.TreeCtrl_InsertItemBefore(*args, **kwargs) + return _controls_.TreeCtrl_InsertItemBefore(*args, **kwargs) def AppendItem(*args, **kwargs): """ AppendItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId """ - return _controls.TreeCtrl_AppendItem(*args, **kwargs) + return _controls_.TreeCtrl_AppendItem(*args, **kwargs) def Delete(*args, **kwargs): """Delete(self, TreeItemId item)""" - return _controls.TreeCtrl_Delete(*args, **kwargs) + return _controls_.TreeCtrl_Delete(*args, **kwargs) def DeleteChildren(*args, **kwargs): """DeleteChildren(self, TreeItemId item)""" - return _controls.TreeCtrl_DeleteChildren(*args, **kwargs) + return _controls_.TreeCtrl_DeleteChildren(*args, **kwargs) def DeleteAllItems(*args, **kwargs): """DeleteAllItems(self)""" - return _controls.TreeCtrl_DeleteAllItems(*args, **kwargs) + return _controls_.TreeCtrl_DeleteAllItems(*args, **kwargs) def Expand(*args, **kwargs): """Expand(self, TreeItemId item)""" - return _controls.TreeCtrl_Expand(*args, **kwargs) + return _controls_.TreeCtrl_Expand(*args, **kwargs) def Collapse(*args, **kwargs): """Collapse(self, TreeItemId item)""" - return _controls.TreeCtrl_Collapse(*args, **kwargs) + return _controls_.TreeCtrl_Collapse(*args, **kwargs) def CollapseAndReset(*args, **kwargs): """CollapseAndReset(self, TreeItemId item)""" - return _controls.TreeCtrl_CollapseAndReset(*args, **kwargs) + return _controls_.TreeCtrl_CollapseAndReset(*args, **kwargs) def Toggle(*args, **kwargs): """Toggle(self, TreeItemId item)""" - return _controls.TreeCtrl_Toggle(*args, **kwargs) + return _controls_.TreeCtrl_Toggle(*args, **kwargs) def Unselect(*args, **kwargs): """Unselect(self)""" - return _controls.TreeCtrl_Unselect(*args, **kwargs) + return _controls_.TreeCtrl_Unselect(*args, **kwargs) def UnselectItem(*args, **kwargs): """UnselectItem(self, TreeItemId item)""" - return _controls.TreeCtrl_UnselectItem(*args, **kwargs) + return _controls_.TreeCtrl_UnselectItem(*args, **kwargs) def UnselectAll(*args, **kwargs): """UnselectAll(self)""" - return _controls.TreeCtrl_UnselectAll(*args, **kwargs) + return _controls_.TreeCtrl_UnselectAll(*args, **kwargs) def SelectItem(*args, **kwargs): """SelectItem(self, TreeItemId item, bool select=True)""" - return _controls.TreeCtrl_SelectItem(*args, **kwargs) + return _controls_.TreeCtrl_SelectItem(*args, **kwargs) def ToggleItemSelection(*args, **kwargs): """ToggleItemSelection(self, TreeItemId item)""" - return _controls.TreeCtrl_ToggleItemSelection(*args, **kwargs) + return _controls_.TreeCtrl_ToggleItemSelection(*args, **kwargs) def EnsureVisible(*args, **kwargs): """EnsureVisible(self, TreeItemId item)""" - return _controls.TreeCtrl_EnsureVisible(*args, **kwargs) + return _controls_.TreeCtrl_EnsureVisible(*args, **kwargs) def ScrollTo(*args, **kwargs): """ScrollTo(self, TreeItemId item)""" - return _controls.TreeCtrl_ScrollTo(*args, **kwargs) + return _controls_.TreeCtrl_ScrollTo(*args, **kwargs) def EditLabel(*args, **kwargs): """EditLabel(self, TreeItemId item)""" - return _controls.TreeCtrl_EditLabel(*args, **kwargs) + return _controls_.TreeCtrl_EditLabel(*args, **kwargs) def GetEditControl(*args, **kwargs): """GetEditControl(self) -> TextCtrl""" - return _controls.TreeCtrl_GetEditControl(*args, **kwargs) + return _controls_.TreeCtrl_GetEditControl(*args, **kwargs) def SortChildren(*args, **kwargs): """SortChildren(self, TreeItemId item)""" - return _controls.TreeCtrl_SortChildren(*args, **kwargs) + return _controls_.TreeCtrl_SortChildren(*args, **kwargs) def HitTest(*args, **kwargs): """ @@ -4490,11 +4490,11 @@ class TreeCtrl(core.Control): constants. """ - return _controls.TreeCtrl_HitTest(*args, **kwargs) + return _controls_.TreeCtrl_HitTest(*args, **kwargs) def GetBoundingRect(*args, **kwargs): """GetBoundingRect(self, TreeItemId item, bool textOnly=False) -> PyObject""" - return _controls.TreeCtrl_GetBoundingRect(*args, **kwargs) + return _controls_.TreeCtrl_GetBoundingRect(*args, **kwargs) def GetClassDefaultAttributes(*args, **kwargs): """ @@ -4510,7 +4510,7 @@ class TreeCtrl(core.Control): ignore under other platforms. Under Mac, it will change the size of the returned font. See SetWindowVariant for more about this. """ - return _controls.TreeCtrl_GetClassDefaultAttributes(*args, **kwargs) + return _controls_.TreeCtrl_GetClassDefaultAttributes(*args, **kwargs) GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) @@ -4519,11 +4519,11 @@ class TreeCtrlPtr(TreeCtrl): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = TreeCtrl -_controls.TreeCtrl_swigregister(TreeCtrlPtr) +_controls_.TreeCtrl_swigregister(TreeCtrlPtr) def PreTreeCtrl(*args, **kwargs): """PreTreeCtrl() -> TreeCtrl""" - val = _controls.new_PreTreeCtrl(*args, **kwargs) + val = _controls_.new_PreTreeCtrl(*args, **kwargs) val.thisown = 1 return val @@ -4541,16 +4541,16 @@ def TreeCtrl_GetClassDefaultAttributes(*args, **kwargs): ignore under other platforms. Under Mac, it will change the size of the returned font. See SetWindowVariant for more about this. """ - return _controls.TreeCtrl_GetClassDefaultAttributes(*args, **kwargs) + return _controls_.TreeCtrl_GetClassDefaultAttributes(*args, **kwargs) #--------------------------------------------------------------------------- -DIRCTRL_DIR_ONLY = _controls.DIRCTRL_DIR_ONLY -DIRCTRL_SELECT_FIRST = _controls.DIRCTRL_SELECT_FIRST -DIRCTRL_SHOW_FILTERS = _controls.DIRCTRL_SHOW_FILTERS -DIRCTRL_3D_INTERNAL = _controls.DIRCTRL_3D_INTERNAL -DIRCTRL_EDIT_LABELS = _controls.DIRCTRL_EDIT_LABELS -class GenericDirCtrl(core.Control): +DIRCTRL_DIR_ONLY = _controls_.DIRCTRL_DIR_ONLY +DIRCTRL_SELECT_FIRST = _controls_.DIRCTRL_SELECT_FIRST +DIRCTRL_SHOW_FILTERS = _controls_.DIRCTRL_SHOW_FILTERS +DIRCTRL_3D_INTERNAL = _controls_.DIRCTRL_3D_INTERNAL +DIRCTRL_EDIT_LABELS = _controls_.DIRCTRL_EDIT_LABELS +class GenericDirCtrl(_core.Control): def __repr__(self): return "<%s.%s; proxy of C++ wxGenericDirCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -4561,7 +4561,7 @@ class GenericDirCtrl(core.Control): String filter=EmptyString, int defaultFilter=0, String name=TreeCtrlNameStr) -> GenericDirCtrl """ - newobj = _controls.new_GenericDirCtrl(*args, **kwargs) + newobj = _controls_.new_GenericDirCtrl(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -4575,67 +4575,67 @@ class GenericDirCtrl(core.Control): String filter=EmptyString, int defaultFilter=0, String name=TreeCtrlNameStr) -> bool """ - return _controls.GenericDirCtrl_Create(*args, **kwargs) + return _controls_.GenericDirCtrl_Create(*args, **kwargs) def ExpandPath(*args, **kwargs): """ExpandPath(self, String path) -> bool""" - return _controls.GenericDirCtrl_ExpandPath(*args, **kwargs) + return _controls_.GenericDirCtrl_ExpandPath(*args, **kwargs) def GetDefaultPath(*args, **kwargs): """GetDefaultPath(self) -> String""" - return _controls.GenericDirCtrl_GetDefaultPath(*args, **kwargs) + return _controls_.GenericDirCtrl_GetDefaultPath(*args, **kwargs) def SetDefaultPath(*args, **kwargs): """SetDefaultPath(self, String path)""" - return _controls.GenericDirCtrl_SetDefaultPath(*args, **kwargs) + return _controls_.GenericDirCtrl_SetDefaultPath(*args, **kwargs) def GetPath(*args, **kwargs): """GetPath(self) -> String""" - return _controls.GenericDirCtrl_GetPath(*args, **kwargs) + return _controls_.GenericDirCtrl_GetPath(*args, **kwargs) def GetFilePath(*args, **kwargs): """GetFilePath(self) -> String""" - return _controls.GenericDirCtrl_GetFilePath(*args, **kwargs) + return _controls_.GenericDirCtrl_GetFilePath(*args, **kwargs) def SetPath(*args, **kwargs): """SetPath(self, String path)""" - return _controls.GenericDirCtrl_SetPath(*args, **kwargs) + return _controls_.GenericDirCtrl_SetPath(*args, **kwargs) def ShowHidden(*args, **kwargs): """ShowHidden(self, bool show)""" - return _controls.GenericDirCtrl_ShowHidden(*args, **kwargs) + return _controls_.GenericDirCtrl_ShowHidden(*args, **kwargs) def GetShowHidden(*args, **kwargs): """GetShowHidden(self) -> bool""" - return _controls.GenericDirCtrl_GetShowHidden(*args, **kwargs) + return _controls_.GenericDirCtrl_GetShowHidden(*args, **kwargs) def GetFilter(*args, **kwargs): """GetFilter(self) -> String""" - return _controls.GenericDirCtrl_GetFilter(*args, **kwargs) + return _controls_.GenericDirCtrl_GetFilter(*args, **kwargs) def SetFilter(*args, **kwargs): """SetFilter(self, String filter)""" - return _controls.GenericDirCtrl_SetFilter(*args, **kwargs) + return _controls_.GenericDirCtrl_SetFilter(*args, **kwargs) def GetFilterIndex(*args, **kwargs): """GetFilterIndex(self) -> int""" - return _controls.GenericDirCtrl_GetFilterIndex(*args, **kwargs) + return _controls_.GenericDirCtrl_GetFilterIndex(*args, **kwargs) def SetFilterIndex(*args, **kwargs): """SetFilterIndex(self, int n)""" - return _controls.GenericDirCtrl_SetFilterIndex(*args, **kwargs) + return _controls_.GenericDirCtrl_SetFilterIndex(*args, **kwargs) def GetRootId(*args, **kwargs): """GetRootId(self) -> TreeItemId""" - return _controls.GenericDirCtrl_GetRootId(*args, **kwargs) + return _controls_.GenericDirCtrl_GetRootId(*args, **kwargs) def GetTreeCtrl(*args, **kwargs): """GetTreeCtrl(self) -> TreeCtrl""" - return _controls.GenericDirCtrl_GetTreeCtrl(*args, **kwargs) + return _controls_.GenericDirCtrl_GetTreeCtrl(*args, **kwargs) def GetFilterListCtrl(*args, **kwargs): """GetFilterListCtrl(self) -> DirFilterListCtrl""" - return _controls.GenericDirCtrl_GetFilterListCtrl(*args, **kwargs) + return _controls_.GenericDirCtrl_GetFilterListCtrl(*args, **kwargs) def FindChild(*args, **kwargs): """ @@ -4646,15 +4646,15 @@ class GenericDirCtrl(core.Control): If the path string has been used (we're at the leaf), done is set to True """ - return _controls.GenericDirCtrl_FindChild(*args, **kwargs) + return _controls_.GenericDirCtrl_FindChild(*args, **kwargs) def DoResize(*args, **kwargs): """DoResize(self)""" - return _controls.GenericDirCtrl_DoResize(*args, **kwargs) + return _controls_.GenericDirCtrl_DoResize(*args, **kwargs) def ReCreateTree(*args, **kwargs): """ReCreateTree(self)""" - return _controls.GenericDirCtrl_ReCreateTree(*args, **kwargs) + return _controls_.GenericDirCtrl_ReCreateTree(*args, **kwargs) class GenericDirCtrlPtr(GenericDirCtrl): @@ -4662,12 +4662,12 @@ class GenericDirCtrlPtr(GenericDirCtrl): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = GenericDirCtrl -_controls.GenericDirCtrl_swigregister(GenericDirCtrlPtr) +_controls_.GenericDirCtrl_swigregister(GenericDirCtrlPtr) DirDialogDefaultFolderStr = cvar.DirDialogDefaultFolderStr def PreGenericDirCtrl(*args, **kwargs): """PreGenericDirCtrl() -> GenericDirCtrl""" - val = _controls.new_PreGenericDirCtrl(*args, **kwargs) + val = _controls_.new_PreGenericDirCtrl(*args, **kwargs) val.thisown = 1 return val @@ -4679,7 +4679,7 @@ class DirFilterListCtrl(Choice): __init__(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition, Size size=DefaultSize, long style=0) -> DirFilterListCtrl """ - newobj = _controls.new_DirFilterListCtrl(*args, **kwargs) + newobj = _controls_.new_DirFilterListCtrl(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -4690,11 +4690,11 @@ class DirFilterListCtrl(Choice): Create(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition, Size size=DefaultSize, long style=0) -> bool """ - return _controls.DirFilterListCtrl_Create(*args, **kwargs) + return _controls_.DirFilterListCtrl_Create(*args, **kwargs) def FillFilterList(*args, **kwargs): """FillFilterList(self, String filter, int defaultFilter)""" - return _controls.DirFilterListCtrl_FillFilterList(*args, **kwargs) + return _controls_.DirFilterListCtrl_FillFilterList(*args, **kwargs) class DirFilterListCtrlPtr(DirFilterListCtrl): @@ -4702,17 +4702,17 @@ class DirFilterListCtrlPtr(DirFilterListCtrl): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = DirFilterListCtrl -_controls.DirFilterListCtrl_swigregister(DirFilterListCtrlPtr) +_controls_.DirFilterListCtrl_swigregister(DirFilterListCtrlPtr) def PreDirFilterListCtrl(*args, **kwargs): """PreDirFilterListCtrl() -> DirFilterListCtrl""" - val = _controls.new_PreDirFilterListCtrl(*args, **kwargs) + val = _controls_.new_PreDirFilterListCtrl(*args, **kwargs) val.thisown = 1 return val #--------------------------------------------------------------------------- -class PyControl(core.Control): +class PyControl(_core.Control): def __repr__(self): return "<%s.%s; proxy of C++ wxPyControl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -4721,7 +4721,7 @@ class PyControl(core.Control): long style=0, Validator validator=DefaultValidator, String name=ControlNameStr) -> PyControl """ - newobj = _controls.new_PyControl(*args, **kwargs) + newobj = _controls_.new_PyControl(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -4729,87 +4729,87 @@ class PyControl(core.Control): def _setCallbackInfo(*args, **kwargs): """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _controls.PyControl__setCallbackInfo(*args, **kwargs) + return _controls_.PyControl__setCallbackInfo(*args, **kwargs) def base_DoMoveWindow(*args, **kwargs): """base_DoMoveWindow(self, int x, int y, int width, int height)""" - return _controls.PyControl_base_DoMoveWindow(*args, **kwargs) + return _controls_.PyControl_base_DoMoveWindow(*args, **kwargs) def base_DoSetSize(*args, **kwargs): """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)""" - return _controls.PyControl_base_DoSetSize(*args, **kwargs) + return _controls_.PyControl_base_DoSetSize(*args, **kwargs) def base_DoSetClientSize(*args, **kwargs): """base_DoSetClientSize(self, int width, int height)""" - return _controls.PyControl_base_DoSetClientSize(*args, **kwargs) + return _controls_.PyControl_base_DoSetClientSize(*args, **kwargs) def base_DoSetVirtualSize(*args, **kwargs): """base_DoSetVirtualSize(self, int x, int y)""" - return _controls.PyControl_base_DoSetVirtualSize(*args, **kwargs) + return _controls_.PyControl_base_DoSetVirtualSize(*args, **kwargs) def base_DoGetSize(*args, **kwargs): """base_DoGetSize() -> (width, height)""" - return _controls.PyControl_base_DoGetSize(*args, **kwargs) + return _controls_.PyControl_base_DoGetSize(*args, **kwargs) def base_DoGetClientSize(*args, **kwargs): """base_DoGetClientSize() -> (width, height)""" - return _controls.PyControl_base_DoGetClientSize(*args, **kwargs) + return _controls_.PyControl_base_DoGetClientSize(*args, **kwargs) def base_DoGetPosition(*args, **kwargs): """base_DoGetPosition() -> (x,y)""" - return _controls.PyControl_base_DoGetPosition(*args, **kwargs) + return _controls_.PyControl_base_DoGetPosition(*args, **kwargs) def base_DoGetVirtualSize(*args, **kwargs): """base_DoGetVirtualSize(self) -> Size""" - return _controls.PyControl_base_DoGetVirtualSize(*args, **kwargs) + return _controls_.PyControl_base_DoGetVirtualSize(*args, **kwargs) def base_DoGetBestSize(*args, **kwargs): """base_DoGetBestSize(self) -> Size""" - return _controls.PyControl_base_DoGetBestSize(*args, **kwargs) + return _controls_.PyControl_base_DoGetBestSize(*args, **kwargs) def base_InitDialog(*args, **kwargs): """base_InitDialog(self)""" - return _controls.PyControl_base_InitDialog(*args, **kwargs) + return _controls_.PyControl_base_InitDialog(*args, **kwargs) def base_TransferDataToWindow(*args, **kwargs): """base_TransferDataToWindow(self) -> bool""" - return _controls.PyControl_base_TransferDataToWindow(*args, **kwargs) + return _controls_.PyControl_base_TransferDataToWindow(*args, **kwargs) def base_TransferDataFromWindow(*args, **kwargs): """base_TransferDataFromWindow(self) -> bool""" - return _controls.PyControl_base_TransferDataFromWindow(*args, **kwargs) + return _controls_.PyControl_base_TransferDataFromWindow(*args, **kwargs) def base_Validate(*args, **kwargs): """base_Validate(self) -> bool""" - return _controls.PyControl_base_Validate(*args, **kwargs) + return _controls_.PyControl_base_Validate(*args, **kwargs) def base_AcceptsFocus(*args, **kwargs): """base_AcceptsFocus(self) -> bool""" - return _controls.PyControl_base_AcceptsFocus(*args, **kwargs) + return _controls_.PyControl_base_AcceptsFocus(*args, **kwargs) def base_AcceptsFocusFromKeyboard(*args, **kwargs): """base_AcceptsFocusFromKeyboard(self) -> bool""" - return _controls.PyControl_base_AcceptsFocusFromKeyboard(*args, **kwargs) + return _controls_.PyControl_base_AcceptsFocusFromKeyboard(*args, **kwargs) def base_GetMaxSize(*args, **kwargs): """base_GetMaxSize(self) -> Size""" - return _controls.PyControl_base_GetMaxSize(*args, **kwargs) + return _controls_.PyControl_base_GetMaxSize(*args, **kwargs) def base_AddChild(*args, **kwargs): """base_AddChild(self, Window child)""" - return _controls.PyControl_base_AddChild(*args, **kwargs) + return _controls_.PyControl_base_AddChild(*args, **kwargs) def base_RemoveChild(*args, **kwargs): """base_RemoveChild(self, Window child)""" - return _controls.PyControl_base_RemoveChild(*args, **kwargs) + return _controls_.PyControl_base_RemoveChild(*args, **kwargs) def base_ShouldInheritColours(*args, **kwargs): """base_ShouldInheritColours(self) -> bool""" - return _controls.PyControl_base_ShouldInheritColours(*args, **kwargs) + return _controls_.PyControl_base_ShouldInheritColours(*args, **kwargs) def base_ApplyParentThemeBackground(*args, **kwargs): """base_ApplyParentThemeBackground(self, Colour c)""" - return _controls.PyControl_base_ApplyParentThemeBackground(*args, **kwargs) + return _controls_.PyControl_base_ApplyParentThemeBackground(*args, **kwargs) class PyControlPtr(PyControl): @@ -4817,26 +4817,26 @@ class PyControlPtr(PyControl): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = PyControl -_controls.PyControl_swigregister(PyControlPtr) +_controls_.PyControl_swigregister(PyControlPtr) def PrePyControl(*args, **kwargs): """PrePyControl() -> PyControl""" - val = _controls.new_PrePyControl(*args, **kwargs) + val = _controls_.new_PrePyControl(*args, **kwargs) val.thisown = 1 return val #--------------------------------------------------------------------------- -FRAME_EX_CONTEXTHELP = _controls.FRAME_EX_CONTEXTHELP -DIALOG_EX_CONTEXTHELP = _controls.DIALOG_EX_CONTEXTHELP -wxEVT_HELP = _controls.wxEVT_HELP -wxEVT_DETAILED_HELP = _controls.wxEVT_DETAILED_HELP +FRAME_EX_CONTEXTHELP = _controls_.FRAME_EX_CONTEXTHELP +DIALOG_EX_CONTEXTHELP = _controls_.DIALOG_EX_CONTEXTHELP +wxEVT_HELP = _controls_.wxEVT_HELP +wxEVT_DETAILED_HELP = _controls_.wxEVT_DETAILED_HELP EVT_HELP = wx.PyEventBinder( wxEVT_HELP, 1) EVT_HELP_RANGE = wx.PyEventBinder( wxEVT_HELP, 2) EVT_DETAILED_HELP = wx.PyEventBinder( wxEVT_DETAILED_HELP, 1) EVT_DETAILED_HELP_RANGE = wx.PyEventBinder( wxEVT_DETAILED_HELP, 2) -class HelpEvent(core.CommandEvent): +class HelpEvent(_core.CommandEvent): """ A help event is sent when the user has requested context-sensitive help. This can either be caused by the @@ -4866,7 +4866,7 @@ class HelpEvent(core.CommandEvent): return "<%s.%s; proxy of C++ wxHelpEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> HelpEvent""" - newobj = _controls.new_HelpEvent(*args, **kwargs) + newobj = _controls_.new_HelpEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -4878,7 +4878,7 @@ class HelpEvent(core.CommandEvent): coordinates. This allows the application to position the help appropriately. """ - return _controls.HelpEvent_GetPosition(*args, **kwargs) + return _controls_.HelpEvent_GetPosition(*args, **kwargs) def SetPosition(*args, **kwargs): """ @@ -4886,7 +4886,7 @@ class HelpEvent(core.CommandEvent): Sets the left-click position of the mouse, in screen coordinates. """ - return _controls.HelpEvent_SetPosition(*args, **kwargs) + return _controls_.HelpEvent_SetPosition(*args, **kwargs) def GetLink(*args, **kwargs): """ @@ -4894,7 +4894,7 @@ class HelpEvent(core.CommandEvent): Get an optional link to further help """ - return _controls.HelpEvent_GetLink(*args, **kwargs) + return _controls_.HelpEvent_GetLink(*args, **kwargs) def SetLink(*args, **kwargs): """ @@ -4902,7 +4902,7 @@ class HelpEvent(core.CommandEvent): Set an optional link to further help """ - return _controls.HelpEvent_SetLink(*args, **kwargs) + return _controls_.HelpEvent_SetLink(*args, **kwargs) def GetTarget(*args, **kwargs): """ @@ -4910,7 +4910,7 @@ class HelpEvent(core.CommandEvent): Get an optional target to display help in. E.g. a window specification """ - return _controls.HelpEvent_GetTarget(*args, **kwargs) + return _controls_.HelpEvent_GetTarget(*args, **kwargs) def SetTarget(*args, **kwargs): """ @@ -4918,7 +4918,7 @@ class HelpEvent(core.CommandEvent): Set an optional target to display help in. E.g. a window specification """ - return _controls.HelpEvent_SetTarget(*args, **kwargs) + return _controls_.HelpEvent_SetTarget(*args, **kwargs) class HelpEventPtr(HelpEvent): @@ -4926,9 +4926,9 @@ class HelpEventPtr(HelpEvent): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = HelpEvent -_controls.HelpEvent_swigregister(HelpEventPtr) +_controls_.HelpEvent_swigregister(HelpEventPtr) -class ContextHelp(core.Object): +class ContextHelp(_core.Object): """ This class changes the cursor to a query and puts the application into a 'context-sensitive help mode'. When the user left-clicks @@ -4962,11 +4962,11 @@ class ContextHelp(core.Object): If window is None, the top window is used. """ - newobj = _controls.new_ContextHelp(*args, **kwargs) + newobj = _controls_.new_ContextHelp(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_controls.delete_ContextHelp): + def __del__(self, destroy=_controls_.delete_ContextHelp): """__del__(self)""" try: if self.thisown: destroy(self) @@ -4984,7 +4984,7 @@ class ContextHelp(core.Object): context-sensitive help mode. This function only returns when the event loop has finished. """ - return _controls.ContextHelp_BeginContextHelp(*args, **kwargs) + return _controls_.ContextHelp_BeginContextHelp(*args, **kwargs) def EndContextHelp(*args, **kwargs): """ @@ -4993,7 +4993,7 @@ class ContextHelp(core.Object): Ends context-sensitive help mode. Not normally called by the application. """ - return _controls.ContextHelp_EndContextHelp(*args, **kwargs) + return _controls_.ContextHelp_EndContextHelp(*args, **kwargs) class ContextHelpPtr(ContextHelp): @@ -5001,7 +5001,7 @@ class ContextHelpPtr(ContextHelp): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = ContextHelp -_controls.ContextHelp_swigregister(ContextHelpPtr) +_controls_.ContextHelp_swigregister(ContextHelpPtr) class ContextHelpButton(BitmapButton): """ @@ -5026,7 +5026,7 @@ class ContextHelpButton(BitmapButton): Constructor, creating and showing a context help button. """ - newobj = _controls.new_ContextHelpButton(*args, **kwargs) + newobj = _controls_.new_ContextHelpButton(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -5038,7 +5038,7 @@ class ContextHelpButtonPtr(ContextHelpButton): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = ContextHelpButton -_controls.ContextHelpButton_swigregister(ContextHelpButtonPtr) +_controls_.ContextHelpButton_swigregister(ContextHelpButtonPtr) class HelpProvider(object): """ @@ -5061,7 +5061,7 @@ class HelpProvider(object): not created on demand. This must be explicitly done by the application. """ - return _controls.HelpProvider_Set(*args, **kwargs) + return _controls_.HelpProvider_Set(*args, **kwargs) Set = staticmethod(Set) def Get(*args, **kwargs): @@ -5070,7 +5070,7 @@ class HelpProvider(object): Return the current application-wide help provider. """ - return _controls.HelpProvider_Get(*args, **kwargs) + return _controls_.HelpProvider_Get(*args, **kwargs) Get = staticmethod(Get) def GetHelp(*args, **kwargs): @@ -5081,7 +5081,7 @@ class HelpProvider(object): dependent on the help provider except that empty string always means that no help is associated with the window. """ - return _controls.HelpProvider_GetHelp(*args, **kwargs) + return _controls_.HelpProvider_GetHelp(*args, **kwargs) def ShowHelp(*args, **kwargs): """ @@ -5093,7 +5093,7 @@ class HelpProvider(object): Returns true if it was done, or false if no help was available for this window. """ - return _controls.HelpProvider_ShowHelp(*args, **kwargs) + return _controls_.HelpProvider_ShowHelp(*args, **kwargs) def AddHelp(*args, **kwargs): """ @@ -5101,7 +5101,7 @@ class HelpProvider(object): Associates the text with the given window. """ - return _controls.HelpProvider_AddHelp(*args, **kwargs) + return _controls_.HelpProvider_AddHelp(*args, **kwargs) def AddHelpById(*args, **kwargs): """ @@ -5111,7 +5111,7 @@ class HelpProvider(object): id. May be used to set the same help string for all Cancel buttons in the application, for example. """ - return _controls.HelpProvider_AddHelpById(*args, **kwargs) + return _controls_.HelpProvider_AddHelpById(*args, **kwargs) def RemoveHelp(*args, **kwargs): """ @@ -5122,11 +5122,11 @@ class HelpProvider(object): the table of help strings will fill up and when window pointers are reused, the wrong help string will be found. """ - return _controls.HelpProvider_RemoveHelp(*args, **kwargs) + return _controls_.HelpProvider_RemoveHelp(*args, **kwargs) def Destroy(*args, **kwargs): """Destroy(self)""" - return _controls.HelpProvider_Destroy(*args, **kwargs) + return _controls_.HelpProvider_Destroy(*args, **kwargs) class HelpProviderPtr(HelpProvider): @@ -5134,7 +5134,7 @@ class HelpProviderPtr(HelpProvider): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = HelpProvider -_controls.HelpProvider_swigregister(HelpProviderPtr) +_controls_.HelpProvider_swigregister(HelpProviderPtr) def HelpProvider_Set(*args, **kwargs): """ @@ -5145,7 +5145,7 @@ def HelpProvider_Set(*args, **kwargs): not created on demand. This must be explicitly done by the application. """ - return _controls.HelpProvider_Set(*args, **kwargs) + return _controls_.HelpProvider_Set(*args, **kwargs) def HelpProvider_Get(*args, **kwargs): """ @@ -5153,7 +5153,7 @@ def HelpProvider_Get(*args, **kwargs): Return the current application-wide help provider. """ - return _controls.HelpProvider_Get(*args, **kwargs) + return _controls_.HelpProvider_Get(*args, **kwargs) class SimpleHelpProvider(HelpProvider): """ @@ -5171,7 +5171,7 @@ class SimpleHelpProvider(HelpProvider): which supports only plain text help strings, and shows the string associated with the control (if any) in a tooltip. """ - newobj = _controls.new_SimpleHelpProvider(*args, **kwargs) + newobj = _controls_.new_SimpleHelpProvider(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -5181,20 +5181,20 @@ class SimpleHelpProviderPtr(SimpleHelpProvider): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = SimpleHelpProvider -_controls.SimpleHelpProvider_swigregister(SimpleHelpProviderPtr) +_controls_.SimpleHelpProvider_swigregister(SimpleHelpProviderPtr) #--------------------------------------------------------------------------- -class DragImage(core.Object): +class DragImage(_core.Object): def __repr__(self): return "<%s.%s; proxy of C++ wxGenericDragImage instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, Bitmap image, Cursor cursor=wxNullCursor) -> DragImage""" - newobj = _controls.new_DragImage(*args, **kwargs) + newobj = _controls_.new_DragImage(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_controls.delete_DragImage): + def __del__(self, destroy=_controls_.delete_DragImage): """__del__(self)""" try: if self.thisown: destroy(self) @@ -5202,50 +5202,50 @@ class DragImage(core.Object): def SetBackingBitmap(*args, **kwargs): """SetBackingBitmap(self, Bitmap bitmap)""" - return _controls.DragImage_SetBackingBitmap(*args, **kwargs) + return _controls_.DragImage_SetBackingBitmap(*args, **kwargs) def BeginDrag(*args, **kwargs): """ BeginDrag(self, Point hotspot, Window window, bool fullScreen=False, Rect rect=None) -> bool """ - return _controls.DragImage_BeginDrag(*args, **kwargs) + return _controls_.DragImage_BeginDrag(*args, **kwargs) def BeginDragBounded(*args, **kwargs): """BeginDragBounded(self, Point hotspot, Window window, Window boundingWindow) -> bool""" - return _controls.DragImage_BeginDragBounded(*args, **kwargs) + return _controls_.DragImage_BeginDragBounded(*args, **kwargs) def EndDrag(*args, **kwargs): """EndDrag(self) -> bool""" - return _controls.DragImage_EndDrag(*args, **kwargs) + return _controls_.DragImage_EndDrag(*args, **kwargs) def Move(*args, **kwargs): """Move(self, Point pt) -> bool""" - return _controls.DragImage_Move(*args, **kwargs) + return _controls_.DragImage_Move(*args, **kwargs) def Show(*args, **kwargs): """Show(self) -> bool""" - return _controls.DragImage_Show(*args, **kwargs) + return _controls_.DragImage_Show(*args, **kwargs) def Hide(*args, **kwargs): """Hide(self) -> bool""" - return _controls.DragImage_Hide(*args, **kwargs) + return _controls_.DragImage_Hide(*args, **kwargs) def GetImageRect(*args, **kwargs): """GetImageRect(self, Point pos) -> Rect""" - return _controls.DragImage_GetImageRect(*args, **kwargs) + return _controls_.DragImage_GetImageRect(*args, **kwargs) def DoDrawImage(*args, **kwargs): """DoDrawImage(self, DC dc, Point pos) -> bool""" - return _controls.DragImage_DoDrawImage(*args, **kwargs) + return _controls_.DragImage_DoDrawImage(*args, **kwargs) def UpdateBackingFromWindow(*args, **kwargs): """UpdateBackingFromWindow(self, DC windowDC, MemoryDC destDC, Rect sourceRect, Rect destRect) -> bool""" - return _controls.DragImage_UpdateBackingFromWindow(*args, **kwargs) + return _controls_.DragImage_UpdateBackingFromWindow(*args, **kwargs) def RedrawImage(*args, **kwargs): """RedrawImage(self, Point oldPos, Point newPos, bool eraseOld, bool drawNew) -> bool""" - return _controls.DragImage_RedrawImage(*args, **kwargs) + return _controls_.DragImage_RedrawImage(*args, **kwargs) class DragImagePtr(DragImage): @@ -5253,29 +5253,29 @@ class DragImagePtr(DragImage): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = DragImage -_controls.DragImage_swigregister(DragImagePtr) +_controls_.DragImage_swigregister(DragImagePtr) def DragIcon(*args, **kwargs): """DragIcon(Icon image, Cursor cursor=wxNullCursor) -> DragImage""" - val = _controls.new_DragIcon(*args, **kwargs) + val = _controls_.new_DragIcon(*args, **kwargs) val.thisown = 1 return val def DragString(*args, **kwargs): """DragString(String str, Cursor cursor=wxNullCursor) -> DragImage""" - val = _controls.new_DragString(*args, **kwargs) + val = _controls_.new_DragString(*args, **kwargs) val.thisown = 1 return val def DragTreeItem(*args, **kwargs): """DragTreeItem(TreeCtrl treeCtrl, TreeItemId id) -> DragImage""" - val = _controls.new_DragTreeItem(*args, **kwargs) + val = _controls_.new_DragTreeItem(*args, **kwargs) val.thisown = 1 return val def DragListItem(*args, **kwargs): """DragListItem(ListCtrl listCtrl, long id) -> DragImage""" - val = _controls.new_DragListItem(*args, **kwargs) + val = _controls_.new_DragListItem(*args, **kwargs) val.thisown = 1 return val diff --git a/wxPython/src/gtk/controls_wrap.cpp b/wxPython/src/gtk/_controls_wrap.cpp similarity index 99% rename from wxPython/src/gtk/controls_wrap.cpp rename to wxPython/src/gtk/_controls_wrap.cpp index 93ccf207ce..2ed9f0630a 100644 --- a/wxPython/src/gtk/controls_wrap.cpp +++ b/wxPython/src/gtk/_controls_wrap.cpp @@ -297,11 +297,11 @@ static swig_type_info *swig_types[86]; /*----------------------------------------------- - @(target):= _controls.so + @(target):= _controls_.so ------------------------------------------------*/ -#define SWIG_init init_controls +#define SWIG_init init_controls_ -#define SWIG_name "_controls" +#define SWIG_name "_controls_" /* Auxiliar swig macros */ diff --git a/wxPython/src/gtk/core.py b/wxPython/src/gtk/_core.py similarity index 71% rename from wxPython/src/gtk/core.py rename to wxPython/src/gtk/_core.py index 303730f768..69b8a41f10 100644 --- a/wxPython/src/gtk/core.py +++ b/wxPython/src/gtk/_core.py @@ -1,532 +1,532 @@ # This file was created automatically by SWIG. # Don't modify this file, modify the SWIG interface instead. -import _core +import _core_ #// Give a reference to the dictionary of this module to the C++ extension #// code. -_core._wxPySetDictionary(vars()) +_core_._wxPySetDictionary(vars()) #// A little trick to make 'wx' be a reference to this module so wx.Names can #// be used here. import sys as _sys wx = _sys.modules[__name__] -NOT_FOUND = _core.NOT_FOUND -VSCROLL = _core.VSCROLL -HSCROLL = _core.HSCROLL -CAPTION = _core.CAPTION -DOUBLE_BORDER = _core.DOUBLE_BORDER -SUNKEN_BORDER = _core.SUNKEN_BORDER -RAISED_BORDER = _core.RAISED_BORDER -BORDER = _core.BORDER -SIMPLE_BORDER = _core.SIMPLE_BORDER -STATIC_BORDER = _core.STATIC_BORDER -TRANSPARENT_WINDOW = _core.TRANSPARENT_WINDOW -NO_BORDER = _core.NO_BORDER -TAB_TRAVERSAL = _core.TAB_TRAVERSAL -WANTS_CHARS = _core.WANTS_CHARS -POPUP_WINDOW = _core.POPUP_WINDOW -CENTER_FRAME = _core.CENTER_FRAME -CENTRE_ON_SCREEN = _core.CENTRE_ON_SCREEN -CENTER_ON_SCREEN = _core.CENTER_ON_SCREEN -ED_CLIENT_MARGIN = _core.ED_CLIENT_MARGIN -ED_BUTTONS_BOTTOM = _core.ED_BUTTONS_BOTTOM -ED_BUTTONS_RIGHT = _core.ED_BUTTONS_RIGHT -ED_STATIC_LINE = _core.ED_STATIC_LINE -EXT_DIALOG_STYLE = _core.EXT_DIALOG_STYLE -CLIP_CHILDREN = _core.CLIP_CHILDREN -CLIP_SIBLINGS = _core.CLIP_SIBLINGS -ALWAYS_SHOW_SB = _core.ALWAYS_SHOW_SB -RETAINED = _core.RETAINED -BACKINGSTORE = _core.BACKINGSTORE -COLOURED = _core.COLOURED -FIXED_LENGTH = _core.FIXED_LENGTH -LB_NEEDED_SB = _core.LB_NEEDED_SB -LB_ALWAYS_SB = _core.LB_ALWAYS_SB -LB_SORT = _core.LB_SORT -LB_SINGLE = _core.LB_SINGLE -LB_MULTIPLE = _core.LB_MULTIPLE -LB_EXTENDED = _core.LB_EXTENDED -LB_OWNERDRAW = _core.LB_OWNERDRAW -LB_HSCROLL = _core.LB_HSCROLL -PROCESS_ENTER = _core.PROCESS_ENTER -PASSWORD = _core.PASSWORD -CB_SIMPLE = _core.CB_SIMPLE -CB_DROPDOWN = _core.CB_DROPDOWN -CB_SORT = _core.CB_SORT -CB_READONLY = _core.CB_READONLY -RA_HORIZONTAL = _core.RA_HORIZONTAL -RA_VERTICAL = _core.RA_VERTICAL -RA_SPECIFY_ROWS = _core.RA_SPECIFY_ROWS -RA_SPECIFY_COLS = _core.RA_SPECIFY_COLS -RB_GROUP = _core.RB_GROUP -RB_SINGLE = _core.RB_SINGLE -SL_HORIZONTAL = _core.SL_HORIZONTAL -SL_VERTICAL = _core.SL_VERTICAL -SL_AUTOTICKS = _core.SL_AUTOTICKS -SL_LABELS = _core.SL_LABELS -SL_LEFT = _core.SL_LEFT -SL_TOP = _core.SL_TOP -SL_RIGHT = _core.SL_RIGHT -SL_BOTTOM = _core.SL_BOTTOM -SL_BOTH = _core.SL_BOTH -SL_SELRANGE = _core.SL_SELRANGE -SB_HORIZONTAL = _core.SB_HORIZONTAL -SB_VERTICAL = _core.SB_VERTICAL -ST_SIZEGRIP = _core.ST_SIZEGRIP -ST_NO_AUTORESIZE = _core.ST_NO_AUTORESIZE -FLOOD_SURFACE = _core.FLOOD_SURFACE -FLOOD_BORDER = _core.FLOOD_BORDER -ODDEVEN_RULE = _core.ODDEVEN_RULE -WINDING_RULE = _core.WINDING_RULE -TOOL_TOP = _core.TOOL_TOP -TOOL_BOTTOM = _core.TOOL_BOTTOM -TOOL_LEFT = _core.TOOL_LEFT -TOOL_RIGHT = _core.TOOL_RIGHT -OK = _core.OK -YES_NO = _core.YES_NO -CANCEL = _core.CANCEL -YES = _core.YES -NO = _core.NO -NO_DEFAULT = _core.NO_DEFAULT -YES_DEFAULT = _core.YES_DEFAULT -ICON_EXCLAMATION = _core.ICON_EXCLAMATION -ICON_HAND = _core.ICON_HAND -ICON_QUESTION = _core.ICON_QUESTION -ICON_INFORMATION = _core.ICON_INFORMATION -ICON_STOP = _core.ICON_STOP -ICON_ASTERISK = _core.ICON_ASTERISK -ICON_MASK = _core.ICON_MASK -ICON_WARNING = _core.ICON_WARNING -ICON_ERROR = _core.ICON_ERROR -FORWARD = _core.FORWARD -BACKWARD = _core.BACKWARD -RESET = _core.RESET -HELP = _core.HELP -MORE = _core.MORE -SETUP = _core.SETUP -SIZE_AUTO_WIDTH = _core.SIZE_AUTO_WIDTH -SIZE_AUTO_HEIGHT = _core.SIZE_AUTO_HEIGHT -SIZE_AUTO = _core.SIZE_AUTO -SIZE_USE_EXISTING = _core.SIZE_USE_EXISTING -SIZE_ALLOW_MINUS_ONE = _core.SIZE_ALLOW_MINUS_ONE -PORTRAIT = _core.PORTRAIT -LANDSCAPE = _core.LANDSCAPE -PRINT_QUALITY_HIGH = _core.PRINT_QUALITY_HIGH -PRINT_QUALITY_MEDIUM = _core.PRINT_QUALITY_MEDIUM -PRINT_QUALITY_LOW = _core.PRINT_QUALITY_LOW -PRINT_QUALITY_DRAFT = _core.PRINT_QUALITY_DRAFT -ID_ANY = _core.ID_ANY -ID_SEPARATOR = _core.ID_SEPARATOR -ID_LOWEST = _core.ID_LOWEST -ID_OPEN = _core.ID_OPEN -ID_CLOSE = _core.ID_CLOSE -ID_NEW = _core.ID_NEW -ID_SAVE = _core.ID_SAVE -ID_SAVEAS = _core.ID_SAVEAS -ID_REVERT = _core.ID_REVERT -ID_EXIT = _core.ID_EXIT -ID_UNDO = _core.ID_UNDO -ID_REDO = _core.ID_REDO -ID_HELP = _core.ID_HELP -ID_PRINT = _core.ID_PRINT -ID_PRINT_SETUP = _core.ID_PRINT_SETUP -ID_PREVIEW = _core.ID_PREVIEW -ID_ABOUT = _core.ID_ABOUT -ID_HELP_CONTENTS = _core.ID_HELP_CONTENTS -ID_HELP_COMMANDS = _core.ID_HELP_COMMANDS -ID_HELP_PROCEDURES = _core.ID_HELP_PROCEDURES -ID_HELP_CONTEXT = _core.ID_HELP_CONTEXT -ID_CLOSE_ALL = _core.ID_CLOSE_ALL -ID_PREFERENCES = _core.ID_PREFERENCES -ID_CUT = _core.ID_CUT -ID_COPY = _core.ID_COPY -ID_PASTE = _core.ID_PASTE -ID_CLEAR = _core.ID_CLEAR -ID_FIND = _core.ID_FIND -ID_DUPLICATE = _core.ID_DUPLICATE -ID_SELECTALL = _core.ID_SELECTALL -ID_DELETE = _core.ID_DELETE -ID_REPLACE = _core.ID_REPLACE -ID_REPLACE_ALL = _core.ID_REPLACE_ALL -ID_PROPERTIES = _core.ID_PROPERTIES -ID_VIEW_DETAILS = _core.ID_VIEW_DETAILS -ID_VIEW_LARGEICONS = _core.ID_VIEW_LARGEICONS -ID_VIEW_SMALLICONS = _core.ID_VIEW_SMALLICONS -ID_VIEW_LIST = _core.ID_VIEW_LIST -ID_VIEW_SORTDATE = _core.ID_VIEW_SORTDATE -ID_VIEW_SORTNAME = _core.ID_VIEW_SORTNAME -ID_VIEW_SORTSIZE = _core.ID_VIEW_SORTSIZE -ID_VIEW_SORTTYPE = _core.ID_VIEW_SORTTYPE -ID_FILE1 = _core.ID_FILE1 -ID_FILE2 = _core.ID_FILE2 -ID_FILE3 = _core.ID_FILE3 -ID_FILE4 = _core.ID_FILE4 -ID_FILE5 = _core.ID_FILE5 -ID_FILE6 = _core.ID_FILE6 -ID_FILE7 = _core.ID_FILE7 -ID_FILE8 = _core.ID_FILE8 -ID_FILE9 = _core.ID_FILE9 -ID_OK = _core.ID_OK -ID_CANCEL = _core.ID_CANCEL -ID_APPLY = _core.ID_APPLY -ID_YES = _core.ID_YES -ID_NO = _core.ID_NO -ID_STATIC = _core.ID_STATIC -ID_FORWARD = _core.ID_FORWARD -ID_BACKWARD = _core.ID_BACKWARD -ID_DEFAULT = _core.ID_DEFAULT -ID_MORE = _core.ID_MORE -ID_SETUP = _core.ID_SETUP -ID_RESET = _core.ID_RESET -ID_CONTEXT_HELP = _core.ID_CONTEXT_HELP -ID_YESTOALL = _core.ID_YESTOALL -ID_NOTOALL = _core.ID_NOTOALL -ID_ABORT = _core.ID_ABORT -ID_RETRY = _core.ID_RETRY -ID_IGNORE = _core.ID_IGNORE -ID_HIGHEST = _core.ID_HIGHEST -OPEN = _core.OPEN -SAVE = _core.SAVE -HIDE_READONLY = _core.HIDE_READONLY -OVERWRITE_PROMPT = _core.OVERWRITE_PROMPT -FILE_MUST_EXIST = _core.FILE_MUST_EXIST -MULTIPLE = _core.MULTIPLE -CHANGE_DIR = _core.CHANGE_DIR -ACCEL_ALT = _core.ACCEL_ALT -ACCEL_CTRL = _core.ACCEL_CTRL -ACCEL_SHIFT = _core.ACCEL_SHIFT -ACCEL_NORMAL = _core.ACCEL_NORMAL -PD_AUTO_HIDE = _core.PD_AUTO_HIDE -PD_APP_MODAL = _core.PD_APP_MODAL -PD_CAN_ABORT = _core.PD_CAN_ABORT -PD_ELAPSED_TIME = _core.PD_ELAPSED_TIME -PD_ESTIMATED_TIME = _core.PD_ESTIMATED_TIME -PD_REMAINING_TIME = _core.PD_REMAINING_TIME -DD_NEW_DIR_BUTTON = _core.DD_NEW_DIR_BUTTON -DD_DEFAULT_STYLE = _core.DD_DEFAULT_STYLE -MENU_TEAROFF = _core.MENU_TEAROFF -MB_DOCKABLE = _core.MB_DOCKABLE -NO_FULL_REPAINT_ON_RESIZE = _core.NO_FULL_REPAINT_ON_RESIZE -FULL_REPAINT_ON_RESIZE = _core.FULL_REPAINT_ON_RESIZE -LI_HORIZONTAL = _core.LI_HORIZONTAL -LI_VERTICAL = _core.LI_VERTICAL -WS_EX_VALIDATE_RECURSIVELY = _core.WS_EX_VALIDATE_RECURSIVELY -WS_EX_BLOCK_EVENTS = _core.WS_EX_BLOCK_EVENTS -WS_EX_TRANSIENT = _core.WS_EX_TRANSIENT -WS_EX_THEMED_BACKGROUND = _core.WS_EX_THEMED_BACKGROUND -WS_EX_PROCESS_IDLE = _core.WS_EX_PROCESS_IDLE -WS_EX_PROCESS_UI_UPDATES = _core.WS_EX_PROCESS_UI_UPDATES -MM_TEXT = _core.MM_TEXT -MM_LOMETRIC = _core.MM_LOMETRIC -MM_HIMETRIC = _core.MM_HIMETRIC -MM_LOENGLISH = _core.MM_LOENGLISH -MM_HIENGLISH = _core.MM_HIENGLISH -MM_TWIPS = _core.MM_TWIPS -MM_ISOTROPIC = _core.MM_ISOTROPIC -MM_ANISOTROPIC = _core.MM_ANISOTROPIC -MM_POINTS = _core.MM_POINTS -MM_METRIC = _core.MM_METRIC -CENTRE = _core.CENTRE -CENTER = _core.CENTER -HORIZONTAL = _core.HORIZONTAL -VERTICAL = _core.VERTICAL -BOTH = _core.BOTH -LEFT = _core.LEFT -RIGHT = _core.RIGHT -UP = _core.UP -DOWN = _core.DOWN -TOP = _core.TOP -BOTTOM = _core.BOTTOM -NORTH = _core.NORTH -SOUTH = _core.SOUTH -WEST = _core.WEST -EAST = _core.EAST -ALL = _core.ALL -ALIGN_NOT = _core.ALIGN_NOT -ALIGN_CENTER_HORIZONTAL = _core.ALIGN_CENTER_HORIZONTAL -ALIGN_CENTRE_HORIZONTAL = _core.ALIGN_CENTRE_HORIZONTAL -ALIGN_LEFT = _core.ALIGN_LEFT -ALIGN_TOP = _core.ALIGN_TOP -ALIGN_RIGHT = _core.ALIGN_RIGHT -ALIGN_BOTTOM = _core.ALIGN_BOTTOM -ALIGN_CENTER_VERTICAL = _core.ALIGN_CENTER_VERTICAL -ALIGN_CENTRE_VERTICAL = _core.ALIGN_CENTRE_VERTICAL -ALIGN_CENTER = _core.ALIGN_CENTER -ALIGN_CENTRE = _core.ALIGN_CENTRE -ALIGN_MASK = _core.ALIGN_MASK -STRETCH_NOT = _core.STRETCH_NOT -SHRINK = _core.SHRINK -GROW = _core.GROW -EXPAND = _core.EXPAND -SHAPED = _core.SHAPED -FIXED_MINSIZE = _core.FIXED_MINSIZE -TILE = _core.TILE -ADJUST_MINSIZE = _core.ADJUST_MINSIZE -BORDER_DEFAULT = _core.BORDER_DEFAULT -BORDER_NONE = _core.BORDER_NONE -BORDER_STATIC = _core.BORDER_STATIC -BORDER_SIMPLE = _core.BORDER_SIMPLE -BORDER_RAISED = _core.BORDER_RAISED -BORDER_SUNKEN = _core.BORDER_SUNKEN -BORDER_DOUBLE = _core.BORDER_DOUBLE -BORDER_MASK = _core.BORDER_MASK -DEFAULT = _core.DEFAULT -DECORATIVE = _core.DECORATIVE -ROMAN = _core.ROMAN -SCRIPT = _core.SCRIPT -SWISS = _core.SWISS -MODERN = _core.MODERN -TELETYPE = _core.TELETYPE -VARIABLE = _core.VARIABLE -FIXED = _core.FIXED -NORMAL = _core.NORMAL -LIGHT = _core.LIGHT -BOLD = _core.BOLD -ITALIC = _core.ITALIC -SLANT = _core.SLANT -SOLID = _core.SOLID -DOT = _core.DOT -LONG_DASH = _core.LONG_DASH -SHORT_DASH = _core.SHORT_DASH -DOT_DASH = _core.DOT_DASH -USER_DASH = _core.USER_DASH -TRANSPARENT = _core.TRANSPARENT -STIPPLE = _core.STIPPLE -BDIAGONAL_HATCH = _core.BDIAGONAL_HATCH -CROSSDIAG_HATCH = _core.CROSSDIAG_HATCH -FDIAGONAL_HATCH = _core.FDIAGONAL_HATCH -CROSS_HATCH = _core.CROSS_HATCH -HORIZONTAL_HATCH = _core.HORIZONTAL_HATCH -VERTICAL_HATCH = _core.VERTICAL_HATCH -JOIN_BEVEL = _core.JOIN_BEVEL -JOIN_MITER = _core.JOIN_MITER -JOIN_ROUND = _core.JOIN_ROUND -CAP_ROUND = _core.CAP_ROUND -CAP_PROJECTING = _core.CAP_PROJECTING -CAP_BUTT = _core.CAP_BUTT -CLEAR = _core.CLEAR -XOR = _core.XOR -INVERT = _core.INVERT -OR_REVERSE = _core.OR_REVERSE -AND_REVERSE = _core.AND_REVERSE -COPY = _core.COPY -AND = _core.AND -AND_INVERT = _core.AND_INVERT -NO_OP = _core.NO_OP -NOR = _core.NOR -EQUIV = _core.EQUIV -SRC_INVERT = _core.SRC_INVERT -OR_INVERT = _core.OR_INVERT -NAND = _core.NAND -OR = _core.OR -SET = _core.SET -WXK_BACK = _core.WXK_BACK -WXK_TAB = _core.WXK_TAB -WXK_RETURN = _core.WXK_RETURN -WXK_ESCAPE = _core.WXK_ESCAPE -WXK_SPACE = _core.WXK_SPACE -WXK_DELETE = _core.WXK_DELETE -WXK_START = _core.WXK_START -WXK_LBUTTON = _core.WXK_LBUTTON -WXK_RBUTTON = _core.WXK_RBUTTON -WXK_CANCEL = _core.WXK_CANCEL -WXK_MBUTTON = _core.WXK_MBUTTON -WXK_CLEAR = _core.WXK_CLEAR -WXK_SHIFT = _core.WXK_SHIFT -WXK_ALT = _core.WXK_ALT -WXK_CONTROL = _core.WXK_CONTROL -WXK_MENU = _core.WXK_MENU -WXK_PAUSE = _core.WXK_PAUSE -WXK_CAPITAL = _core.WXK_CAPITAL -WXK_PRIOR = _core.WXK_PRIOR -WXK_NEXT = _core.WXK_NEXT -WXK_END = _core.WXK_END -WXK_HOME = _core.WXK_HOME -WXK_LEFT = _core.WXK_LEFT -WXK_UP = _core.WXK_UP -WXK_RIGHT = _core.WXK_RIGHT -WXK_DOWN = _core.WXK_DOWN -WXK_SELECT = _core.WXK_SELECT -WXK_PRINT = _core.WXK_PRINT -WXK_EXECUTE = _core.WXK_EXECUTE -WXK_SNAPSHOT = _core.WXK_SNAPSHOT -WXK_INSERT = _core.WXK_INSERT -WXK_HELP = _core.WXK_HELP -WXK_NUMPAD0 = _core.WXK_NUMPAD0 -WXK_NUMPAD1 = _core.WXK_NUMPAD1 -WXK_NUMPAD2 = _core.WXK_NUMPAD2 -WXK_NUMPAD3 = _core.WXK_NUMPAD3 -WXK_NUMPAD4 = _core.WXK_NUMPAD4 -WXK_NUMPAD5 = _core.WXK_NUMPAD5 -WXK_NUMPAD6 = _core.WXK_NUMPAD6 -WXK_NUMPAD7 = _core.WXK_NUMPAD7 -WXK_NUMPAD8 = _core.WXK_NUMPAD8 -WXK_NUMPAD9 = _core.WXK_NUMPAD9 -WXK_MULTIPLY = _core.WXK_MULTIPLY -WXK_ADD = _core.WXK_ADD -WXK_SEPARATOR = _core.WXK_SEPARATOR -WXK_SUBTRACT = _core.WXK_SUBTRACT -WXK_DECIMAL = _core.WXK_DECIMAL -WXK_DIVIDE = _core.WXK_DIVIDE -WXK_F1 = _core.WXK_F1 -WXK_F2 = _core.WXK_F2 -WXK_F3 = _core.WXK_F3 -WXK_F4 = _core.WXK_F4 -WXK_F5 = _core.WXK_F5 -WXK_F6 = _core.WXK_F6 -WXK_F7 = _core.WXK_F7 -WXK_F8 = _core.WXK_F8 -WXK_F9 = _core.WXK_F9 -WXK_F10 = _core.WXK_F10 -WXK_F11 = _core.WXK_F11 -WXK_F12 = _core.WXK_F12 -WXK_F13 = _core.WXK_F13 -WXK_F14 = _core.WXK_F14 -WXK_F15 = _core.WXK_F15 -WXK_F16 = _core.WXK_F16 -WXK_F17 = _core.WXK_F17 -WXK_F18 = _core.WXK_F18 -WXK_F19 = _core.WXK_F19 -WXK_F20 = _core.WXK_F20 -WXK_F21 = _core.WXK_F21 -WXK_F22 = _core.WXK_F22 -WXK_F23 = _core.WXK_F23 -WXK_F24 = _core.WXK_F24 -WXK_NUMLOCK = _core.WXK_NUMLOCK -WXK_SCROLL = _core.WXK_SCROLL -WXK_PAGEUP = _core.WXK_PAGEUP -WXK_PAGEDOWN = _core.WXK_PAGEDOWN -WXK_NUMPAD_SPACE = _core.WXK_NUMPAD_SPACE -WXK_NUMPAD_TAB = _core.WXK_NUMPAD_TAB -WXK_NUMPAD_ENTER = _core.WXK_NUMPAD_ENTER -WXK_NUMPAD_F1 = _core.WXK_NUMPAD_F1 -WXK_NUMPAD_F2 = _core.WXK_NUMPAD_F2 -WXK_NUMPAD_F3 = _core.WXK_NUMPAD_F3 -WXK_NUMPAD_F4 = _core.WXK_NUMPAD_F4 -WXK_NUMPAD_HOME = _core.WXK_NUMPAD_HOME -WXK_NUMPAD_LEFT = _core.WXK_NUMPAD_LEFT -WXK_NUMPAD_UP = _core.WXK_NUMPAD_UP -WXK_NUMPAD_RIGHT = _core.WXK_NUMPAD_RIGHT -WXK_NUMPAD_DOWN = _core.WXK_NUMPAD_DOWN -WXK_NUMPAD_PRIOR = _core.WXK_NUMPAD_PRIOR -WXK_NUMPAD_PAGEUP = _core.WXK_NUMPAD_PAGEUP -WXK_NUMPAD_NEXT = _core.WXK_NUMPAD_NEXT -WXK_NUMPAD_PAGEDOWN = _core.WXK_NUMPAD_PAGEDOWN -WXK_NUMPAD_END = _core.WXK_NUMPAD_END -WXK_NUMPAD_BEGIN = _core.WXK_NUMPAD_BEGIN -WXK_NUMPAD_INSERT = _core.WXK_NUMPAD_INSERT -WXK_NUMPAD_DELETE = _core.WXK_NUMPAD_DELETE -WXK_NUMPAD_EQUAL = _core.WXK_NUMPAD_EQUAL -WXK_NUMPAD_MULTIPLY = _core.WXK_NUMPAD_MULTIPLY -WXK_NUMPAD_ADD = _core.WXK_NUMPAD_ADD -WXK_NUMPAD_SEPARATOR = _core.WXK_NUMPAD_SEPARATOR -WXK_NUMPAD_SUBTRACT = _core.WXK_NUMPAD_SUBTRACT -WXK_NUMPAD_DECIMAL = _core.WXK_NUMPAD_DECIMAL -WXK_NUMPAD_DIVIDE = _core.WXK_NUMPAD_DIVIDE -WXK_WINDOWS_LEFT = _core.WXK_WINDOWS_LEFT -WXK_WINDOWS_RIGHT = _core.WXK_WINDOWS_RIGHT -WXK_WINDOWS_MENU = _core.WXK_WINDOWS_MENU -PAPER_NONE = _core.PAPER_NONE -PAPER_LETTER = _core.PAPER_LETTER -PAPER_LEGAL = _core.PAPER_LEGAL -PAPER_A4 = _core.PAPER_A4 -PAPER_CSHEET = _core.PAPER_CSHEET -PAPER_DSHEET = _core.PAPER_DSHEET -PAPER_ESHEET = _core.PAPER_ESHEET -PAPER_LETTERSMALL = _core.PAPER_LETTERSMALL -PAPER_TABLOID = _core.PAPER_TABLOID -PAPER_LEDGER = _core.PAPER_LEDGER -PAPER_STATEMENT = _core.PAPER_STATEMENT -PAPER_EXECUTIVE = _core.PAPER_EXECUTIVE -PAPER_A3 = _core.PAPER_A3 -PAPER_A4SMALL = _core.PAPER_A4SMALL -PAPER_A5 = _core.PAPER_A5 -PAPER_B4 = _core.PAPER_B4 -PAPER_B5 = _core.PAPER_B5 -PAPER_FOLIO = _core.PAPER_FOLIO -PAPER_QUARTO = _core.PAPER_QUARTO -PAPER_10X14 = _core.PAPER_10X14 -PAPER_11X17 = _core.PAPER_11X17 -PAPER_NOTE = _core.PAPER_NOTE -PAPER_ENV_9 = _core.PAPER_ENV_9 -PAPER_ENV_10 = _core.PAPER_ENV_10 -PAPER_ENV_11 = _core.PAPER_ENV_11 -PAPER_ENV_12 = _core.PAPER_ENV_12 -PAPER_ENV_14 = _core.PAPER_ENV_14 -PAPER_ENV_DL = _core.PAPER_ENV_DL -PAPER_ENV_C5 = _core.PAPER_ENV_C5 -PAPER_ENV_C3 = _core.PAPER_ENV_C3 -PAPER_ENV_C4 = _core.PAPER_ENV_C4 -PAPER_ENV_C6 = _core.PAPER_ENV_C6 -PAPER_ENV_C65 = _core.PAPER_ENV_C65 -PAPER_ENV_B4 = _core.PAPER_ENV_B4 -PAPER_ENV_B5 = _core.PAPER_ENV_B5 -PAPER_ENV_B6 = _core.PAPER_ENV_B6 -PAPER_ENV_ITALY = _core.PAPER_ENV_ITALY -PAPER_ENV_MONARCH = _core.PAPER_ENV_MONARCH -PAPER_ENV_PERSONAL = _core.PAPER_ENV_PERSONAL -PAPER_FANFOLD_US = _core.PAPER_FANFOLD_US -PAPER_FANFOLD_STD_GERMAN = _core.PAPER_FANFOLD_STD_GERMAN -PAPER_FANFOLD_LGL_GERMAN = _core.PAPER_FANFOLD_LGL_GERMAN -PAPER_ISO_B4 = _core.PAPER_ISO_B4 -PAPER_JAPANESE_POSTCARD = _core.PAPER_JAPANESE_POSTCARD -PAPER_9X11 = _core.PAPER_9X11 -PAPER_10X11 = _core.PAPER_10X11 -PAPER_15X11 = _core.PAPER_15X11 -PAPER_ENV_INVITE = _core.PAPER_ENV_INVITE -PAPER_LETTER_EXTRA = _core.PAPER_LETTER_EXTRA -PAPER_LEGAL_EXTRA = _core.PAPER_LEGAL_EXTRA -PAPER_TABLOID_EXTRA = _core.PAPER_TABLOID_EXTRA -PAPER_A4_EXTRA = _core.PAPER_A4_EXTRA -PAPER_LETTER_TRANSVERSE = _core.PAPER_LETTER_TRANSVERSE -PAPER_A4_TRANSVERSE = _core.PAPER_A4_TRANSVERSE -PAPER_LETTER_EXTRA_TRANSVERSE = _core.PAPER_LETTER_EXTRA_TRANSVERSE -PAPER_A_PLUS = _core.PAPER_A_PLUS -PAPER_B_PLUS = _core.PAPER_B_PLUS -PAPER_LETTER_PLUS = _core.PAPER_LETTER_PLUS -PAPER_A4_PLUS = _core.PAPER_A4_PLUS -PAPER_A5_TRANSVERSE = _core.PAPER_A5_TRANSVERSE -PAPER_B5_TRANSVERSE = _core.PAPER_B5_TRANSVERSE -PAPER_A3_EXTRA = _core.PAPER_A3_EXTRA -PAPER_A5_EXTRA = _core.PAPER_A5_EXTRA -PAPER_B5_EXTRA = _core.PAPER_B5_EXTRA -PAPER_A2 = _core.PAPER_A2 -PAPER_A3_TRANSVERSE = _core.PAPER_A3_TRANSVERSE -PAPER_A3_EXTRA_TRANSVERSE = _core.PAPER_A3_EXTRA_TRANSVERSE -DUPLEX_SIMPLEX = _core.DUPLEX_SIMPLEX -DUPLEX_HORIZONTAL = _core.DUPLEX_HORIZONTAL -DUPLEX_VERTICAL = _core.DUPLEX_VERTICAL -ITEM_SEPARATOR = _core.ITEM_SEPARATOR -ITEM_NORMAL = _core.ITEM_NORMAL -ITEM_CHECK = _core.ITEM_CHECK -ITEM_RADIO = _core.ITEM_RADIO -ITEM_MAX = _core.ITEM_MAX -HT_NOWHERE = _core.HT_NOWHERE -HT_SCROLLBAR_FIRST = _core.HT_SCROLLBAR_FIRST -HT_SCROLLBAR_ARROW_LINE_1 = _core.HT_SCROLLBAR_ARROW_LINE_1 -HT_SCROLLBAR_ARROW_LINE_2 = _core.HT_SCROLLBAR_ARROW_LINE_2 -HT_SCROLLBAR_ARROW_PAGE_1 = _core.HT_SCROLLBAR_ARROW_PAGE_1 -HT_SCROLLBAR_ARROW_PAGE_2 = _core.HT_SCROLLBAR_ARROW_PAGE_2 -HT_SCROLLBAR_THUMB = _core.HT_SCROLLBAR_THUMB -HT_SCROLLBAR_BAR_1 = _core.HT_SCROLLBAR_BAR_1 -HT_SCROLLBAR_BAR_2 = _core.HT_SCROLLBAR_BAR_2 -HT_SCROLLBAR_LAST = _core.HT_SCROLLBAR_LAST -HT_WINDOW_OUTSIDE = _core.HT_WINDOW_OUTSIDE -HT_WINDOW_INSIDE = _core.HT_WINDOW_INSIDE -HT_WINDOW_VERT_SCROLLBAR = _core.HT_WINDOW_VERT_SCROLLBAR -HT_WINDOW_HORZ_SCROLLBAR = _core.HT_WINDOW_HORZ_SCROLLBAR -HT_WINDOW_CORNER = _core.HT_WINDOW_CORNER -HT_MAX = _core.HT_MAX -MOD_NONE = _core.MOD_NONE -MOD_ALT = _core.MOD_ALT -MOD_CONTROL = _core.MOD_CONTROL -MOD_SHIFT = _core.MOD_SHIFT -MOD_WIN = _core.MOD_WIN -UPDATE_UI_NONE = _core.UPDATE_UI_NONE -UPDATE_UI_RECURSE = _core.UPDATE_UI_RECURSE -UPDATE_UI_FROMIDLE = _core.UPDATE_UI_FROMIDLE +NOT_FOUND = _core_.NOT_FOUND +VSCROLL = _core_.VSCROLL +HSCROLL = _core_.HSCROLL +CAPTION = _core_.CAPTION +DOUBLE_BORDER = _core_.DOUBLE_BORDER +SUNKEN_BORDER = _core_.SUNKEN_BORDER +RAISED_BORDER = _core_.RAISED_BORDER +BORDER = _core_.BORDER +SIMPLE_BORDER = _core_.SIMPLE_BORDER +STATIC_BORDER = _core_.STATIC_BORDER +TRANSPARENT_WINDOW = _core_.TRANSPARENT_WINDOW +NO_BORDER = _core_.NO_BORDER +TAB_TRAVERSAL = _core_.TAB_TRAVERSAL +WANTS_CHARS = _core_.WANTS_CHARS +POPUP_WINDOW = _core_.POPUP_WINDOW +CENTER_FRAME = _core_.CENTER_FRAME +CENTRE_ON_SCREEN = _core_.CENTRE_ON_SCREEN +CENTER_ON_SCREEN = _core_.CENTER_ON_SCREEN +ED_CLIENT_MARGIN = _core_.ED_CLIENT_MARGIN +ED_BUTTONS_BOTTOM = _core_.ED_BUTTONS_BOTTOM +ED_BUTTONS_RIGHT = _core_.ED_BUTTONS_RIGHT +ED_STATIC_LINE = _core_.ED_STATIC_LINE +EXT_DIALOG_STYLE = _core_.EXT_DIALOG_STYLE +CLIP_CHILDREN = _core_.CLIP_CHILDREN +CLIP_SIBLINGS = _core_.CLIP_SIBLINGS +ALWAYS_SHOW_SB = _core_.ALWAYS_SHOW_SB +RETAINED = _core_.RETAINED +BACKINGSTORE = _core_.BACKINGSTORE +COLOURED = _core_.COLOURED +FIXED_LENGTH = _core_.FIXED_LENGTH +LB_NEEDED_SB = _core_.LB_NEEDED_SB +LB_ALWAYS_SB = _core_.LB_ALWAYS_SB +LB_SORT = _core_.LB_SORT +LB_SINGLE = _core_.LB_SINGLE +LB_MULTIPLE = _core_.LB_MULTIPLE +LB_EXTENDED = _core_.LB_EXTENDED +LB_OWNERDRAW = _core_.LB_OWNERDRAW +LB_HSCROLL = _core_.LB_HSCROLL +PROCESS_ENTER = _core_.PROCESS_ENTER +PASSWORD = _core_.PASSWORD +CB_SIMPLE = _core_.CB_SIMPLE +CB_DROPDOWN = _core_.CB_DROPDOWN +CB_SORT = _core_.CB_SORT +CB_READONLY = _core_.CB_READONLY +RA_HORIZONTAL = _core_.RA_HORIZONTAL +RA_VERTICAL = _core_.RA_VERTICAL +RA_SPECIFY_ROWS = _core_.RA_SPECIFY_ROWS +RA_SPECIFY_COLS = _core_.RA_SPECIFY_COLS +RB_GROUP = _core_.RB_GROUP +RB_SINGLE = _core_.RB_SINGLE +SL_HORIZONTAL = _core_.SL_HORIZONTAL +SL_VERTICAL = _core_.SL_VERTICAL +SL_AUTOTICKS = _core_.SL_AUTOTICKS +SL_LABELS = _core_.SL_LABELS +SL_LEFT = _core_.SL_LEFT +SL_TOP = _core_.SL_TOP +SL_RIGHT = _core_.SL_RIGHT +SL_BOTTOM = _core_.SL_BOTTOM +SL_BOTH = _core_.SL_BOTH +SL_SELRANGE = _core_.SL_SELRANGE +SB_HORIZONTAL = _core_.SB_HORIZONTAL +SB_VERTICAL = _core_.SB_VERTICAL +ST_SIZEGRIP = _core_.ST_SIZEGRIP +ST_NO_AUTORESIZE = _core_.ST_NO_AUTORESIZE +FLOOD_SURFACE = _core_.FLOOD_SURFACE +FLOOD_BORDER = _core_.FLOOD_BORDER +ODDEVEN_RULE = _core_.ODDEVEN_RULE +WINDING_RULE = _core_.WINDING_RULE +TOOL_TOP = _core_.TOOL_TOP +TOOL_BOTTOM = _core_.TOOL_BOTTOM +TOOL_LEFT = _core_.TOOL_LEFT +TOOL_RIGHT = _core_.TOOL_RIGHT +OK = _core_.OK +YES_NO = _core_.YES_NO +CANCEL = _core_.CANCEL +YES = _core_.YES +NO = _core_.NO +NO_DEFAULT = _core_.NO_DEFAULT +YES_DEFAULT = _core_.YES_DEFAULT +ICON_EXCLAMATION = _core_.ICON_EXCLAMATION +ICON_HAND = _core_.ICON_HAND +ICON_QUESTION = _core_.ICON_QUESTION +ICON_INFORMATION = _core_.ICON_INFORMATION +ICON_STOP = _core_.ICON_STOP +ICON_ASTERISK = _core_.ICON_ASTERISK +ICON_MASK = _core_.ICON_MASK +ICON_WARNING = _core_.ICON_WARNING +ICON_ERROR = _core_.ICON_ERROR +FORWARD = _core_.FORWARD +BACKWARD = _core_.BACKWARD +RESET = _core_.RESET +HELP = _core_.HELP +MORE = _core_.MORE +SETUP = _core_.SETUP +SIZE_AUTO_WIDTH = _core_.SIZE_AUTO_WIDTH +SIZE_AUTO_HEIGHT = _core_.SIZE_AUTO_HEIGHT +SIZE_AUTO = _core_.SIZE_AUTO +SIZE_USE_EXISTING = _core_.SIZE_USE_EXISTING +SIZE_ALLOW_MINUS_ONE = _core_.SIZE_ALLOW_MINUS_ONE +PORTRAIT = _core_.PORTRAIT +LANDSCAPE = _core_.LANDSCAPE +PRINT_QUALITY_HIGH = _core_.PRINT_QUALITY_HIGH +PRINT_QUALITY_MEDIUM = _core_.PRINT_QUALITY_MEDIUM +PRINT_QUALITY_LOW = _core_.PRINT_QUALITY_LOW +PRINT_QUALITY_DRAFT = _core_.PRINT_QUALITY_DRAFT +ID_ANY = _core_.ID_ANY +ID_SEPARATOR = _core_.ID_SEPARATOR +ID_LOWEST = _core_.ID_LOWEST +ID_OPEN = _core_.ID_OPEN +ID_CLOSE = _core_.ID_CLOSE +ID_NEW = _core_.ID_NEW +ID_SAVE = _core_.ID_SAVE +ID_SAVEAS = _core_.ID_SAVEAS +ID_REVERT = _core_.ID_REVERT +ID_EXIT = _core_.ID_EXIT +ID_UNDO = _core_.ID_UNDO +ID_REDO = _core_.ID_REDO +ID_HELP = _core_.ID_HELP +ID_PRINT = _core_.ID_PRINT +ID_PRINT_SETUP = _core_.ID_PRINT_SETUP +ID_PREVIEW = _core_.ID_PREVIEW +ID_ABOUT = _core_.ID_ABOUT +ID_HELP_CONTENTS = _core_.ID_HELP_CONTENTS +ID_HELP_COMMANDS = _core_.ID_HELP_COMMANDS +ID_HELP_PROCEDURES = _core_.ID_HELP_PROCEDURES +ID_HELP_CONTEXT = _core_.ID_HELP_CONTEXT +ID_CLOSE_ALL = _core_.ID_CLOSE_ALL +ID_PREFERENCES = _core_.ID_PREFERENCES +ID_CUT = _core_.ID_CUT +ID_COPY = _core_.ID_COPY +ID_PASTE = _core_.ID_PASTE +ID_CLEAR = _core_.ID_CLEAR +ID_FIND = _core_.ID_FIND +ID_DUPLICATE = _core_.ID_DUPLICATE +ID_SELECTALL = _core_.ID_SELECTALL +ID_DELETE = _core_.ID_DELETE +ID_REPLACE = _core_.ID_REPLACE +ID_REPLACE_ALL = _core_.ID_REPLACE_ALL +ID_PROPERTIES = _core_.ID_PROPERTIES +ID_VIEW_DETAILS = _core_.ID_VIEW_DETAILS +ID_VIEW_LARGEICONS = _core_.ID_VIEW_LARGEICONS +ID_VIEW_SMALLICONS = _core_.ID_VIEW_SMALLICONS +ID_VIEW_LIST = _core_.ID_VIEW_LIST +ID_VIEW_SORTDATE = _core_.ID_VIEW_SORTDATE +ID_VIEW_SORTNAME = _core_.ID_VIEW_SORTNAME +ID_VIEW_SORTSIZE = _core_.ID_VIEW_SORTSIZE +ID_VIEW_SORTTYPE = _core_.ID_VIEW_SORTTYPE +ID_FILE1 = _core_.ID_FILE1 +ID_FILE2 = _core_.ID_FILE2 +ID_FILE3 = _core_.ID_FILE3 +ID_FILE4 = _core_.ID_FILE4 +ID_FILE5 = _core_.ID_FILE5 +ID_FILE6 = _core_.ID_FILE6 +ID_FILE7 = _core_.ID_FILE7 +ID_FILE8 = _core_.ID_FILE8 +ID_FILE9 = _core_.ID_FILE9 +ID_OK = _core_.ID_OK +ID_CANCEL = _core_.ID_CANCEL +ID_APPLY = _core_.ID_APPLY +ID_YES = _core_.ID_YES +ID_NO = _core_.ID_NO +ID_STATIC = _core_.ID_STATIC +ID_FORWARD = _core_.ID_FORWARD +ID_BACKWARD = _core_.ID_BACKWARD +ID_DEFAULT = _core_.ID_DEFAULT +ID_MORE = _core_.ID_MORE +ID_SETUP = _core_.ID_SETUP +ID_RESET = _core_.ID_RESET +ID_CONTEXT_HELP = _core_.ID_CONTEXT_HELP +ID_YESTOALL = _core_.ID_YESTOALL +ID_NOTOALL = _core_.ID_NOTOALL +ID_ABORT = _core_.ID_ABORT +ID_RETRY = _core_.ID_RETRY +ID_IGNORE = _core_.ID_IGNORE +ID_HIGHEST = _core_.ID_HIGHEST +OPEN = _core_.OPEN +SAVE = _core_.SAVE +HIDE_READONLY = _core_.HIDE_READONLY +OVERWRITE_PROMPT = _core_.OVERWRITE_PROMPT +FILE_MUST_EXIST = _core_.FILE_MUST_EXIST +MULTIPLE = _core_.MULTIPLE +CHANGE_DIR = _core_.CHANGE_DIR +ACCEL_ALT = _core_.ACCEL_ALT +ACCEL_CTRL = _core_.ACCEL_CTRL +ACCEL_SHIFT = _core_.ACCEL_SHIFT +ACCEL_NORMAL = _core_.ACCEL_NORMAL +PD_AUTO_HIDE = _core_.PD_AUTO_HIDE +PD_APP_MODAL = _core_.PD_APP_MODAL +PD_CAN_ABORT = _core_.PD_CAN_ABORT +PD_ELAPSED_TIME = _core_.PD_ELAPSED_TIME +PD_ESTIMATED_TIME = _core_.PD_ESTIMATED_TIME +PD_REMAINING_TIME = _core_.PD_REMAINING_TIME +DD_NEW_DIR_BUTTON = _core_.DD_NEW_DIR_BUTTON +DD_DEFAULT_STYLE = _core_.DD_DEFAULT_STYLE +MENU_TEAROFF = _core_.MENU_TEAROFF +MB_DOCKABLE = _core_.MB_DOCKABLE +NO_FULL_REPAINT_ON_RESIZE = _core_.NO_FULL_REPAINT_ON_RESIZE +FULL_REPAINT_ON_RESIZE = _core_.FULL_REPAINT_ON_RESIZE +LI_HORIZONTAL = _core_.LI_HORIZONTAL +LI_VERTICAL = _core_.LI_VERTICAL +WS_EX_VALIDATE_RECURSIVELY = _core_.WS_EX_VALIDATE_RECURSIVELY +WS_EX_BLOCK_EVENTS = _core_.WS_EX_BLOCK_EVENTS +WS_EX_TRANSIENT = _core_.WS_EX_TRANSIENT +WS_EX_THEMED_BACKGROUND = _core_.WS_EX_THEMED_BACKGROUND +WS_EX_PROCESS_IDLE = _core_.WS_EX_PROCESS_IDLE +WS_EX_PROCESS_UI_UPDATES = _core_.WS_EX_PROCESS_UI_UPDATES +MM_TEXT = _core_.MM_TEXT +MM_LOMETRIC = _core_.MM_LOMETRIC +MM_HIMETRIC = _core_.MM_HIMETRIC +MM_LOENGLISH = _core_.MM_LOENGLISH +MM_HIENGLISH = _core_.MM_HIENGLISH +MM_TWIPS = _core_.MM_TWIPS +MM_ISOTROPIC = _core_.MM_ISOTROPIC +MM_ANISOTROPIC = _core_.MM_ANISOTROPIC +MM_POINTS = _core_.MM_POINTS +MM_METRIC = _core_.MM_METRIC +CENTRE = _core_.CENTRE +CENTER = _core_.CENTER +HORIZONTAL = _core_.HORIZONTAL +VERTICAL = _core_.VERTICAL +BOTH = _core_.BOTH +LEFT = _core_.LEFT +RIGHT = _core_.RIGHT +UP = _core_.UP +DOWN = _core_.DOWN +TOP = _core_.TOP +BOTTOM = _core_.BOTTOM +NORTH = _core_.NORTH +SOUTH = _core_.SOUTH +WEST = _core_.WEST +EAST = _core_.EAST +ALL = _core_.ALL +ALIGN_NOT = _core_.ALIGN_NOT +ALIGN_CENTER_HORIZONTAL = _core_.ALIGN_CENTER_HORIZONTAL +ALIGN_CENTRE_HORIZONTAL = _core_.ALIGN_CENTRE_HORIZONTAL +ALIGN_LEFT = _core_.ALIGN_LEFT +ALIGN_TOP = _core_.ALIGN_TOP +ALIGN_RIGHT = _core_.ALIGN_RIGHT +ALIGN_BOTTOM = _core_.ALIGN_BOTTOM +ALIGN_CENTER_VERTICAL = _core_.ALIGN_CENTER_VERTICAL +ALIGN_CENTRE_VERTICAL = _core_.ALIGN_CENTRE_VERTICAL +ALIGN_CENTER = _core_.ALIGN_CENTER +ALIGN_CENTRE = _core_.ALIGN_CENTRE +ALIGN_MASK = _core_.ALIGN_MASK +STRETCH_NOT = _core_.STRETCH_NOT +SHRINK = _core_.SHRINK +GROW = _core_.GROW +EXPAND = _core_.EXPAND +SHAPED = _core_.SHAPED +FIXED_MINSIZE = _core_.FIXED_MINSIZE +TILE = _core_.TILE +ADJUST_MINSIZE = _core_.ADJUST_MINSIZE +BORDER_DEFAULT = _core_.BORDER_DEFAULT +BORDER_NONE = _core_.BORDER_NONE +BORDER_STATIC = _core_.BORDER_STATIC +BORDER_SIMPLE = _core_.BORDER_SIMPLE +BORDER_RAISED = _core_.BORDER_RAISED +BORDER_SUNKEN = _core_.BORDER_SUNKEN +BORDER_DOUBLE = _core_.BORDER_DOUBLE +BORDER_MASK = _core_.BORDER_MASK +DEFAULT = _core_.DEFAULT +DECORATIVE = _core_.DECORATIVE +ROMAN = _core_.ROMAN +SCRIPT = _core_.SCRIPT +SWISS = _core_.SWISS +MODERN = _core_.MODERN +TELETYPE = _core_.TELETYPE +VARIABLE = _core_.VARIABLE +FIXED = _core_.FIXED +NORMAL = _core_.NORMAL +LIGHT = _core_.LIGHT +BOLD = _core_.BOLD +ITALIC = _core_.ITALIC +SLANT = _core_.SLANT +SOLID = _core_.SOLID +DOT = _core_.DOT +LONG_DASH = _core_.LONG_DASH +SHORT_DASH = _core_.SHORT_DASH +DOT_DASH = _core_.DOT_DASH +USER_DASH = _core_.USER_DASH +TRANSPARENT = _core_.TRANSPARENT +STIPPLE = _core_.STIPPLE +BDIAGONAL_HATCH = _core_.BDIAGONAL_HATCH +CROSSDIAG_HATCH = _core_.CROSSDIAG_HATCH +FDIAGONAL_HATCH = _core_.FDIAGONAL_HATCH +CROSS_HATCH = _core_.CROSS_HATCH +HORIZONTAL_HATCH = _core_.HORIZONTAL_HATCH +VERTICAL_HATCH = _core_.VERTICAL_HATCH +JOIN_BEVEL = _core_.JOIN_BEVEL +JOIN_MITER = _core_.JOIN_MITER +JOIN_ROUND = _core_.JOIN_ROUND +CAP_ROUND = _core_.CAP_ROUND +CAP_PROJECTING = _core_.CAP_PROJECTING +CAP_BUTT = _core_.CAP_BUTT +CLEAR = _core_.CLEAR +XOR = _core_.XOR +INVERT = _core_.INVERT +OR_REVERSE = _core_.OR_REVERSE +AND_REVERSE = _core_.AND_REVERSE +COPY = _core_.COPY +AND = _core_.AND +AND_INVERT = _core_.AND_INVERT +NO_OP = _core_.NO_OP +NOR = _core_.NOR +EQUIV = _core_.EQUIV +SRC_INVERT = _core_.SRC_INVERT +OR_INVERT = _core_.OR_INVERT +NAND = _core_.NAND +OR = _core_.OR +SET = _core_.SET +WXK_BACK = _core_.WXK_BACK +WXK_TAB = _core_.WXK_TAB +WXK_RETURN = _core_.WXK_RETURN +WXK_ESCAPE = _core_.WXK_ESCAPE +WXK_SPACE = _core_.WXK_SPACE +WXK_DELETE = _core_.WXK_DELETE +WXK_START = _core_.WXK_START +WXK_LBUTTON = _core_.WXK_LBUTTON +WXK_RBUTTON = _core_.WXK_RBUTTON +WXK_CANCEL = _core_.WXK_CANCEL +WXK_MBUTTON = _core_.WXK_MBUTTON +WXK_CLEAR = _core_.WXK_CLEAR +WXK_SHIFT = _core_.WXK_SHIFT +WXK_ALT = _core_.WXK_ALT +WXK_CONTROL = _core_.WXK_CONTROL +WXK_MENU = _core_.WXK_MENU +WXK_PAUSE = _core_.WXK_PAUSE +WXK_CAPITAL = _core_.WXK_CAPITAL +WXK_PRIOR = _core_.WXK_PRIOR +WXK_NEXT = _core_.WXK_NEXT +WXK_END = _core_.WXK_END +WXK_HOME = _core_.WXK_HOME +WXK_LEFT = _core_.WXK_LEFT +WXK_UP = _core_.WXK_UP +WXK_RIGHT = _core_.WXK_RIGHT +WXK_DOWN = _core_.WXK_DOWN +WXK_SELECT = _core_.WXK_SELECT +WXK_PRINT = _core_.WXK_PRINT +WXK_EXECUTE = _core_.WXK_EXECUTE +WXK_SNAPSHOT = _core_.WXK_SNAPSHOT +WXK_INSERT = _core_.WXK_INSERT +WXK_HELP = _core_.WXK_HELP +WXK_NUMPAD0 = _core_.WXK_NUMPAD0 +WXK_NUMPAD1 = _core_.WXK_NUMPAD1 +WXK_NUMPAD2 = _core_.WXK_NUMPAD2 +WXK_NUMPAD3 = _core_.WXK_NUMPAD3 +WXK_NUMPAD4 = _core_.WXK_NUMPAD4 +WXK_NUMPAD5 = _core_.WXK_NUMPAD5 +WXK_NUMPAD6 = _core_.WXK_NUMPAD6 +WXK_NUMPAD7 = _core_.WXK_NUMPAD7 +WXK_NUMPAD8 = _core_.WXK_NUMPAD8 +WXK_NUMPAD9 = _core_.WXK_NUMPAD9 +WXK_MULTIPLY = _core_.WXK_MULTIPLY +WXK_ADD = _core_.WXK_ADD +WXK_SEPARATOR = _core_.WXK_SEPARATOR +WXK_SUBTRACT = _core_.WXK_SUBTRACT +WXK_DECIMAL = _core_.WXK_DECIMAL +WXK_DIVIDE = _core_.WXK_DIVIDE +WXK_F1 = _core_.WXK_F1 +WXK_F2 = _core_.WXK_F2 +WXK_F3 = _core_.WXK_F3 +WXK_F4 = _core_.WXK_F4 +WXK_F5 = _core_.WXK_F5 +WXK_F6 = _core_.WXK_F6 +WXK_F7 = _core_.WXK_F7 +WXK_F8 = _core_.WXK_F8 +WXK_F9 = _core_.WXK_F9 +WXK_F10 = _core_.WXK_F10 +WXK_F11 = _core_.WXK_F11 +WXK_F12 = _core_.WXK_F12 +WXK_F13 = _core_.WXK_F13 +WXK_F14 = _core_.WXK_F14 +WXK_F15 = _core_.WXK_F15 +WXK_F16 = _core_.WXK_F16 +WXK_F17 = _core_.WXK_F17 +WXK_F18 = _core_.WXK_F18 +WXK_F19 = _core_.WXK_F19 +WXK_F20 = _core_.WXK_F20 +WXK_F21 = _core_.WXK_F21 +WXK_F22 = _core_.WXK_F22 +WXK_F23 = _core_.WXK_F23 +WXK_F24 = _core_.WXK_F24 +WXK_NUMLOCK = _core_.WXK_NUMLOCK +WXK_SCROLL = _core_.WXK_SCROLL +WXK_PAGEUP = _core_.WXK_PAGEUP +WXK_PAGEDOWN = _core_.WXK_PAGEDOWN +WXK_NUMPAD_SPACE = _core_.WXK_NUMPAD_SPACE +WXK_NUMPAD_TAB = _core_.WXK_NUMPAD_TAB +WXK_NUMPAD_ENTER = _core_.WXK_NUMPAD_ENTER +WXK_NUMPAD_F1 = _core_.WXK_NUMPAD_F1 +WXK_NUMPAD_F2 = _core_.WXK_NUMPAD_F2 +WXK_NUMPAD_F3 = _core_.WXK_NUMPAD_F3 +WXK_NUMPAD_F4 = _core_.WXK_NUMPAD_F4 +WXK_NUMPAD_HOME = _core_.WXK_NUMPAD_HOME +WXK_NUMPAD_LEFT = _core_.WXK_NUMPAD_LEFT +WXK_NUMPAD_UP = _core_.WXK_NUMPAD_UP +WXK_NUMPAD_RIGHT = _core_.WXK_NUMPAD_RIGHT +WXK_NUMPAD_DOWN = _core_.WXK_NUMPAD_DOWN +WXK_NUMPAD_PRIOR = _core_.WXK_NUMPAD_PRIOR +WXK_NUMPAD_PAGEUP = _core_.WXK_NUMPAD_PAGEUP +WXK_NUMPAD_NEXT = _core_.WXK_NUMPAD_NEXT +WXK_NUMPAD_PAGEDOWN = _core_.WXK_NUMPAD_PAGEDOWN +WXK_NUMPAD_END = _core_.WXK_NUMPAD_END +WXK_NUMPAD_BEGIN = _core_.WXK_NUMPAD_BEGIN +WXK_NUMPAD_INSERT = _core_.WXK_NUMPAD_INSERT +WXK_NUMPAD_DELETE = _core_.WXK_NUMPAD_DELETE +WXK_NUMPAD_EQUAL = _core_.WXK_NUMPAD_EQUAL +WXK_NUMPAD_MULTIPLY = _core_.WXK_NUMPAD_MULTIPLY +WXK_NUMPAD_ADD = _core_.WXK_NUMPAD_ADD +WXK_NUMPAD_SEPARATOR = _core_.WXK_NUMPAD_SEPARATOR +WXK_NUMPAD_SUBTRACT = _core_.WXK_NUMPAD_SUBTRACT +WXK_NUMPAD_DECIMAL = _core_.WXK_NUMPAD_DECIMAL +WXK_NUMPAD_DIVIDE = _core_.WXK_NUMPAD_DIVIDE +WXK_WINDOWS_LEFT = _core_.WXK_WINDOWS_LEFT +WXK_WINDOWS_RIGHT = _core_.WXK_WINDOWS_RIGHT +WXK_WINDOWS_MENU = _core_.WXK_WINDOWS_MENU +PAPER_NONE = _core_.PAPER_NONE +PAPER_LETTER = _core_.PAPER_LETTER +PAPER_LEGAL = _core_.PAPER_LEGAL +PAPER_A4 = _core_.PAPER_A4 +PAPER_CSHEET = _core_.PAPER_CSHEET +PAPER_DSHEET = _core_.PAPER_DSHEET +PAPER_ESHEET = _core_.PAPER_ESHEET +PAPER_LETTERSMALL = _core_.PAPER_LETTERSMALL +PAPER_TABLOID = _core_.PAPER_TABLOID +PAPER_LEDGER = _core_.PAPER_LEDGER +PAPER_STATEMENT = _core_.PAPER_STATEMENT +PAPER_EXECUTIVE = _core_.PAPER_EXECUTIVE +PAPER_A3 = _core_.PAPER_A3 +PAPER_A4SMALL = _core_.PAPER_A4SMALL +PAPER_A5 = _core_.PAPER_A5 +PAPER_B4 = _core_.PAPER_B4 +PAPER_B5 = _core_.PAPER_B5 +PAPER_FOLIO = _core_.PAPER_FOLIO +PAPER_QUARTO = _core_.PAPER_QUARTO +PAPER_10X14 = _core_.PAPER_10X14 +PAPER_11X17 = _core_.PAPER_11X17 +PAPER_NOTE = _core_.PAPER_NOTE +PAPER_ENV_9 = _core_.PAPER_ENV_9 +PAPER_ENV_10 = _core_.PAPER_ENV_10 +PAPER_ENV_11 = _core_.PAPER_ENV_11 +PAPER_ENV_12 = _core_.PAPER_ENV_12 +PAPER_ENV_14 = _core_.PAPER_ENV_14 +PAPER_ENV_DL = _core_.PAPER_ENV_DL +PAPER_ENV_C5 = _core_.PAPER_ENV_C5 +PAPER_ENV_C3 = _core_.PAPER_ENV_C3 +PAPER_ENV_C4 = _core_.PAPER_ENV_C4 +PAPER_ENV_C6 = _core_.PAPER_ENV_C6 +PAPER_ENV_C65 = _core_.PAPER_ENV_C65 +PAPER_ENV_B4 = _core_.PAPER_ENV_B4 +PAPER_ENV_B5 = _core_.PAPER_ENV_B5 +PAPER_ENV_B6 = _core_.PAPER_ENV_B6 +PAPER_ENV_ITALY = _core_.PAPER_ENV_ITALY +PAPER_ENV_MONARCH = _core_.PAPER_ENV_MONARCH +PAPER_ENV_PERSONAL = _core_.PAPER_ENV_PERSONAL +PAPER_FANFOLD_US = _core_.PAPER_FANFOLD_US +PAPER_FANFOLD_STD_GERMAN = _core_.PAPER_FANFOLD_STD_GERMAN +PAPER_FANFOLD_LGL_GERMAN = _core_.PAPER_FANFOLD_LGL_GERMAN +PAPER_ISO_B4 = _core_.PAPER_ISO_B4 +PAPER_JAPANESE_POSTCARD = _core_.PAPER_JAPANESE_POSTCARD +PAPER_9X11 = _core_.PAPER_9X11 +PAPER_10X11 = _core_.PAPER_10X11 +PAPER_15X11 = _core_.PAPER_15X11 +PAPER_ENV_INVITE = _core_.PAPER_ENV_INVITE +PAPER_LETTER_EXTRA = _core_.PAPER_LETTER_EXTRA +PAPER_LEGAL_EXTRA = _core_.PAPER_LEGAL_EXTRA +PAPER_TABLOID_EXTRA = _core_.PAPER_TABLOID_EXTRA +PAPER_A4_EXTRA = _core_.PAPER_A4_EXTRA +PAPER_LETTER_TRANSVERSE = _core_.PAPER_LETTER_TRANSVERSE +PAPER_A4_TRANSVERSE = _core_.PAPER_A4_TRANSVERSE +PAPER_LETTER_EXTRA_TRANSVERSE = _core_.PAPER_LETTER_EXTRA_TRANSVERSE +PAPER_A_PLUS = _core_.PAPER_A_PLUS +PAPER_B_PLUS = _core_.PAPER_B_PLUS +PAPER_LETTER_PLUS = _core_.PAPER_LETTER_PLUS +PAPER_A4_PLUS = _core_.PAPER_A4_PLUS +PAPER_A5_TRANSVERSE = _core_.PAPER_A5_TRANSVERSE +PAPER_B5_TRANSVERSE = _core_.PAPER_B5_TRANSVERSE +PAPER_A3_EXTRA = _core_.PAPER_A3_EXTRA +PAPER_A5_EXTRA = _core_.PAPER_A5_EXTRA +PAPER_B5_EXTRA = _core_.PAPER_B5_EXTRA +PAPER_A2 = _core_.PAPER_A2 +PAPER_A3_TRANSVERSE = _core_.PAPER_A3_TRANSVERSE +PAPER_A3_EXTRA_TRANSVERSE = _core_.PAPER_A3_EXTRA_TRANSVERSE +DUPLEX_SIMPLEX = _core_.DUPLEX_SIMPLEX +DUPLEX_HORIZONTAL = _core_.DUPLEX_HORIZONTAL +DUPLEX_VERTICAL = _core_.DUPLEX_VERTICAL +ITEM_SEPARATOR = _core_.ITEM_SEPARATOR +ITEM_NORMAL = _core_.ITEM_NORMAL +ITEM_CHECK = _core_.ITEM_CHECK +ITEM_RADIO = _core_.ITEM_RADIO +ITEM_MAX = _core_.ITEM_MAX +HT_NOWHERE = _core_.HT_NOWHERE +HT_SCROLLBAR_FIRST = _core_.HT_SCROLLBAR_FIRST +HT_SCROLLBAR_ARROW_LINE_1 = _core_.HT_SCROLLBAR_ARROW_LINE_1 +HT_SCROLLBAR_ARROW_LINE_2 = _core_.HT_SCROLLBAR_ARROW_LINE_2 +HT_SCROLLBAR_ARROW_PAGE_1 = _core_.HT_SCROLLBAR_ARROW_PAGE_1 +HT_SCROLLBAR_ARROW_PAGE_2 = _core_.HT_SCROLLBAR_ARROW_PAGE_2 +HT_SCROLLBAR_THUMB = _core_.HT_SCROLLBAR_THUMB +HT_SCROLLBAR_BAR_1 = _core_.HT_SCROLLBAR_BAR_1 +HT_SCROLLBAR_BAR_2 = _core_.HT_SCROLLBAR_BAR_2 +HT_SCROLLBAR_LAST = _core_.HT_SCROLLBAR_LAST +HT_WINDOW_OUTSIDE = _core_.HT_WINDOW_OUTSIDE +HT_WINDOW_INSIDE = _core_.HT_WINDOW_INSIDE +HT_WINDOW_VERT_SCROLLBAR = _core_.HT_WINDOW_VERT_SCROLLBAR +HT_WINDOW_HORZ_SCROLLBAR = _core_.HT_WINDOW_HORZ_SCROLLBAR +HT_WINDOW_CORNER = _core_.HT_WINDOW_CORNER +HT_MAX = _core_.HT_MAX +MOD_NONE = _core_.MOD_NONE +MOD_ALT = _core_.MOD_ALT +MOD_CONTROL = _core_.MOD_CONTROL +MOD_SHIFT = _core_.MOD_SHIFT +MOD_WIN = _core_.MOD_WIN +UPDATE_UI_NONE = _core_.UPDATE_UI_NONE +UPDATE_UI_RECURSE = _core_.UPDATE_UI_RECURSE +UPDATE_UI_FROMIDLE = _core_.UPDATE_UI_FROMIDLE #--------------------------------------------------------------------------- class Object(object): @@ -543,7 +543,7 @@ class Object(object): Returns the class name of the C++ class using wxRTTI. """ - return _core.Object_GetClassName(*args, **kwargs) + return _core_.Object_GetClassName(*args, **kwargs) def Destroy(*args, **kwargs): """ @@ -551,7 +551,7 @@ class Object(object): Deletes the C++ object this Python object is a proxy for. """ - return _core.Object_Destroy(*args, **kwargs) + return _core_.Object_Destroy(*args, **kwargs) class ObjectPtr(Object): @@ -559,67 +559,67 @@ class ObjectPtr(Object): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = Object -_core.Object_swigregister(ObjectPtr) -_wxPySetDictionary = _core._wxPySetDictionary +_core_.Object_swigregister(ObjectPtr) +_wxPySetDictionary = _core_._wxPySetDictionary -_wxPyFixStockObjects = _core._wxPyFixStockObjects +_wxPyFixStockObjects = _core_._wxPyFixStockObjects -cvar = _core.cvar +cvar = _core_.cvar EmptyString = cvar.EmptyString #--------------------------------------------------------------------------- -BITMAP_TYPE_INVALID = _core.BITMAP_TYPE_INVALID -BITMAP_TYPE_BMP = _core.BITMAP_TYPE_BMP -BITMAP_TYPE_ICO = _core.BITMAP_TYPE_ICO -BITMAP_TYPE_CUR = _core.BITMAP_TYPE_CUR -BITMAP_TYPE_XBM = _core.BITMAP_TYPE_XBM -BITMAP_TYPE_XBM_DATA = _core.BITMAP_TYPE_XBM_DATA -BITMAP_TYPE_XPM = _core.BITMAP_TYPE_XPM -BITMAP_TYPE_XPM_DATA = _core.BITMAP_TYPE_XPM_DATA -BITMAP_TYPE_TIF = _core.BITMAP_TYPE_TIF -BITMAP_TYPE_GIF = _core.BITMAP_TYPE_GIF -BITMAP_TYPE_PNG = _core.BITMAP_TYPE_PNG -BITMAP_TYPE_JPEG = _core.BITMAP_TYPE_JPEG -BITMAP_TYPE_PNM = _core.BITMAP_TYPE_PNM -BITMAP_TYPE_PCX = _core.BITMAP_TYPE_PCX -BITMAP_TYPE_PICT = _core.BITMAP_TYPE_PICT -BITMAP_TYPE_ICON = _core.BITMAP_TYPE_ICON -BITMAP_TYPE_ANI = _core.BITMAP_TYPE_ANI -BITMAP_TYPE_IFF = _core.BITMAP_TYPE_IFF -BITMAP_TYPE_MACCURSOR = _core.BITMAP_TYPE_MACCURSOR -BITMAP_TYPE_ANY = _core.BITMAP_TYPE_ANY -CURSOR_NONE = _core.CURSOR_NONE -CURSOR_ARROW = _core.CURSOR_ARROW -CURSOR_RIGHT_ARROW = _core.CURSOR_RIGHT_ARROW -CURSOR_BULLSEYE = _core.CURSOR_BULLSEYE -CURSOR_CHAR = _core.CURSOR_CHAR -CURSOR_CROSS = _core.CURSOR_CROSS -CURSOR_HAND = _core.CURSOR_HAND -CURSOR_IBEAM = _core.CURSOR_IBEAM -CURSOR_LEFT_BUTTON = _core.CURSOR_LEFT_BUTTON -CURSOR_MAGNIFIER = _core.CURSOR_MAGNIFIER -CURSOR_MIDDLE_BUTTON = _core.CURSOR_MIDDLE_BUTTON -CURSOR_NO_ENTRY = _core.CURSOR_NO_ENTRY -CURSOR_PAINT_BRUSH = _core.CURSOR_PAINT_BRUSH -CURSOR_PENCIL = _core.CURSOR_PENCIL -CURSOR_POINT_LEFT = _core.CURSOR_POINT_LEFT -CURSOR_POINT_RIGHT = _core.CURSOR_POINT_RIGHT -CURSOR_QUESTION_ARROW = _core.CURSOR_QUESTION_ARROW -CURSOR_RIGHT_BUTTON = _core.CURSOR_RIGHT_BUTTON -CURSOR_SIZENESW = _core.CURSOR_SIZENESW -CURSOR_SIZENS = _core.CURSOR_SIZENS -CURSOR_SIZENWSE = _core.CURSOR_SIZENWSE -CURSOR_SIZEWE = _core.CURSOR_SIZEWE -CURSOR_SIZING = _core.CURSOR_SIZING -CURSOR_SPRAYCAN = _core.CURSOR_SPRAYCAN -CURSOR_WAIT = _core.CURSOR_WAIT -CURSOR_WATCH = _core.CURSOR_WATCH -CURSOR_BLANK = _core.CURSOR_BLANK -CURSOR_DEFAULT = _core.CURSOR_DEFAULT -CURSOR_COPY_ARROW = _core.CURSOR_COPY_ARROW -CURSOR_ARROWWAIT = _core.CURSOR_ARROWWAIT -CURSOR_MAX = _core.CURSOR_MAX +BITMAP_TYPE_INVALID = _core_.BITMAP_TYPE_INVALID +BITMAP_TYPE_BMP = _core_.BITMAP_TYPE_BMP +BITMAP_TYPE_ICO = _core_.BITMAP_TYPE_ICO +BITMAP_TYPE_CUR = _core_.BITMAP_TYPE_CUR +BITMAP_TYPE_XBM = _core_.BITMAP_TYPE_XBM +BITMAP_TYPE_XBM_DATA = _core_.BITMAP_TYPE_XBM_DATA +BITMAP_TYPE_XPM = _core_.BITMAP_TYPE_XPM +BITMAP_TYPE_XPM_DATA = _core_.BITMAP_TYPE_XPM_DATA +BITMAP_TYPE_TIF = _core_.BITMAP_TYPE_TIF +BITMAP_TYPE_GIF = _core_.BITMAP_TYPE_GIF +BITMAP_TYPE_PNG = _core_.BITMAP_TYPE_PNG +BITMAP_TYPE_JPEG = _core_.BITMAP_TYPE_JPEG +BITMAP_TYPE_PNM = _core_.BITMAP_TYPE_PNM +BITMAP_TYPE_PCX = _core_.BITMAP_TYPE_PCX +BITMAP_TYPE_PICT = _core_.BITMAP_TYPE_PICT +BITMAP_TYPE_ICON = _core_.BITMAP_TYPE_ICON +BITMAP_TYPE_ANI = _core_.BITMAP_TYPE_ANI +BITMAP_TYPE_IFF = _core_.BITMAP_TYPE_IFF +BITMAP_TYPE_MACCURSOR = _core_.BITMAP_TYPE_MACCURSOR +BITMAP_TYPE_ANY = _core_.BITMAP_TYPE_ANY +CURSOR_NONE = _core_.CURSOR_NONE +CURSOR_ARROW = _core_.CURSOR_ARROW +CURSOR_RIGHT_ARROW = _core_.CURSOR_RIGHT_ARROW +CURSOR_BULLSEYE = _core_.CURSOR_BULLSEYE +CURSOR_CHAR = _core_.CURSOR_CHAR +CURSOR_CROSS = _core_.CURSOR_CROSS +CURSOR_HAND = _core_.CURSOR_HAND +CURSOR_IBEAM = _core_.CURSOR_IBEAM +CURSOR_LEFT_BUTTON = _core_.CURSOR_LEFT_BUTTON +CURSOR_MAGNIFIER = _core_.CURSOR_MAGNIFIER +CURSOR_MIDDLE_BUTTON = _core_.CURSOR_MIDDLE_BUTTON +CURSOR_NO_ENTRY = _core_.CURSOR_NO_ENTRY +CURSOR_PAINT_BRUSH = _core_.CURSOR_PAINT_BRUSH +CURSOR_PENCIL = _core_.CURSOR_PENCIL +CURSOR_POINT_LEFT = _core_.CURSOR_POINT_LEFT +CURSOR_POINT_RIGHT = _core_.CURSOR_POINT_RIGHT +CURSOR_QUESTION_ARROW = _core_.CURSOR_QUESTION_ARROW +CURSOR_RIGHT_BUTTON = _core_.CURSOR_RIGHT_BUTTON +CURSOR_SIZENESW = _core_.CURSOR_SIZENESW +CURSOR_SIZENS = _core_.CURSOR_SIZENS +CURSOR_SIZENWSE = _core_.CURSOR_SIZENWSE +CURSOR_SIZEWE = _core_.CURSOR_SIZEWE +CURSOR_SIZING = _core_.CURSOR_SIZING +CURSOR_SPRAYCAN = _core_.CURSOR_SPRAYCAN +CURSOR_WAIT = _core_.CURSOR_WAIT +CURSOR_WATCH = _core_.CURSOR_WATCH +CURSOR_BLANK = _core_.CURSOR_BLANK +CURSOR_DEFAULT = _core_.CURSOR_DEFAULT +CURSOR_COPY_ARROW = _core_.CURSOR_COPY_ARROW +CURSOR_ARROWWAIT = _core_.CURSOR_ARROWWAIT +CURSOR_MAX = _core_.CURSOR_MAX #--------------------------------------------------------------------------- class Size(object): @@ -631,8 +631,8 @@ class Size(object): """ def __repr__(self): return "<%s.%s; proxy of C++ wxSize instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - width = property(_core.Size_width_get, _core.Size_width_set) - height = property(_core.Size_height_get, _core.Size_height_set) + width = property(_core_.Size_width_get, _core_.Size_width_set) + height = property(_core_.Size_height_get, _core_.Size_height_set) x = width; y = height def __init__(self, *args, **kwargs): """ @@ -640,11 +640,11 @@ class Size(object): Creates a size object. """ - newobj = _core.new_Size(*args, **kwargs) + newobj = _core_.new_Size(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_core.delete_Size): + def __del__(self, destroy=_core_.delete_Size): """__del__(self)""" try: if self.thisown: destroy(self) @@ -656,7 +656,7 @@ class Size(object): Test for equality of wx.Size objects. """ - return _core.Size___eq__(*args, **kwargs) + return _core_.Size___eq__(*args, **kwargs) def __ne__(*args, **kwargs): """ @@ -664,7 +664,7 @@ class Size(object): Test for inequality. """ - return _core.Size___ne__(*args, **kwargs) + return _core_.Size___ne__(*args, **kwargs) def __add__(*args, **kwargs): """ @@ -672,7 +672,7 @@ class Size(object): Add sz's proprties to this and return the result. """ - return _core.Size___add__(*args, **kwargs) + return _core_.Size___add__(*args, **kwargs) def __sub__(*args, **kwargs): """ @@ -680,7 +680,7 @@ class Size(object): Subtract sz's properties from this and return the result. """ - return _core.Size___sub__(*args, **kwargs) + return _core_.Size___sub__(*args, **kwargs) def IncTo(*args, **kwargs): """ @@ -689,7 +689,7 @@ class Size(object): Increments this object so that both of its dimensions are not less than the corresponding dimensions of the size. """ - return _core.Size_IncTo(*args, **kwargs) + return _core_.Size_IncTo(*args, **kwargs) def DecTo(*args, **kwargs): """ @@ -698,7 +698,7 @@ class Size(object): Decrements this object so that both of its dimensions are not greater than the corresponding dimensions of the size. """ - return _core.Size_DecTo(*args, **kwargs) + return _core_.Size_DecTo(*args, **kwargs) def Set(*args, **kwargs): """ @@ -706,23 +706,23 @@ class Size(object): Set both width and height. """ - return _core.Size_Set(*args, **kwargs) + return _core_.Size_Set(*args, **kwargs) def SetWidth(*args, **kwargs): """SetWidth(self, int w)""" - return _core.Size_SetWidth(*args, **kwargs) + return _core_.Size_SetWidth(*args, **kwargs) def SetHeight(*args, **kwargs): """SetHeight(self, int h)""" - return _core.Size_SetHeight(*args, **kwargs) + return _core_.Size_SetHeight(*args, **kwargs) def GetWidth(*args, **kwargs): """GetWidth(self) -> int""" - return _core.Size_GetWidth(*args, **kwargs) + return _core_.Size_GetWidth(*args, **kwargs) def GetHeight(*args, **kwargs): """GetHeight(self) -> int""" - return _core.Size_GetHeight(*args, **kwargs) + return _core_.Size_GetHeight(*args, **kwargs) def IsFullySpecified(*args, **kwargs): """ @@ -730,7 +730,7 @@ class Size(object): Returns True if both components of the size are non-default values. """ - return _core.Size_IsFullySpecified(*args, **kwargs) + return _core_.Size_IsFullySpecified(*args, **kwargs) def SetDefaults(*args, **kwargs): """ @@ -740,7 +740,7 @@ class Size(object): components of this object (i.e. equal to -1) with those of the other. """ - return _core.Size_SetDefaults(*args, **kwargs) + return _core_.Size_SetDefaults(*args, **kwargs) def Get(*args, **kwargs): """ @@ -748,7 +748,7 @@ class Size(object): Returns the width and height properties as a tuple. """ - return _core.Size_Get(*args, **kwargs) + return _core_.Size_Get(*args, **kwargs) asTuple = Get def __str__(self): return str(self.Get()) @@ -769,7 +769,7 @@ class SizePtr(Size): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = Size -_core.Size_swigregister(SizePtr) +_core_.Size_swigregister(SizePtr) #--------------------------------------------------------------------------- @@ -781,19 +781,19 @@ class RealPoint(object): """ def __repr__(self): return "<%s.%s; proxy of C++ wxRealPoint instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - x = property(_core.RealPoint_x_get, _core.RealPoint_x_set) - y = property(_core.RealPoint_y_get, _core.RealPoint_y_set) + x = property(_core_.RealPoint_x_get, _core_.RealPoint_x_set) + y = property(_core_.RealPoint_y_get, _core_.RealPoint_y_set) def __init__(self, *args, **kwargs): """ __init__(self, double x=0.0, double y=0.0) -> RealPoint Create a wx.RealPoint object """ - newobj = _core.new_RealPoint(*args, **kwargs) + newobj = _core_.new_RealPoint(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_core.delete_RealPoint): + def __del__(self, destroy=_core_.delete_RealPoint): """__del__(self)""" try: if self.thisown: destroy(self) @@ -805,7 +805,7 @@ class RealPoint(object): Test for equality of wx.RealPoint objects. """ - return _core.RealPoint___eq__(*args, **kwargs) + return _core_.RealPoint___eq__(*args, **kwargs) def __ne__(*args, **kwargs): """ @@ -813,7 +813,7 @@ class RealPoint(object): Test for inequality of wx.RealPoint objects. """ - return _core.RealPoint___ne__(*args, **kwargs) + return _core_.RealPoint___ne__(*args, **kwargs) def __add__(*args, **kwargs): """ @@ -821,7 +821,7 @@ class RealPoint(object): Add pt's proprties to this and return the result. """ - return _core.RealPoint___add__(*args, **kwargs) + return _core_.RealPoint___add__(*args, **kwargs) def __sub__(*args, **kwargs): """ @@ -829,7 +829,7 @@ class RealPoint(object): Subtract pt's proprties from this and return the result """ - return _core.RealPoint___sub__(*args, **kwargs) + return _core_.RealPoint___sub__(*args, **kwargs) def Set(*args, **kwargs): """ @@ -837,7 +837,7 @@ class RealPoint(object): Set both the x and y properties """ - return _core.RealPoint_Set(*args, **kwargs) + return _core_.RealPoint_Set(*args, **kwargs) def Get(*args, **kwargs): """ @@ -845,7 +845,7 @@ class RealPoint(object): Return the x and y properties as a tuple. """ - return _core.RealPoint_Get(*args, **kwargs) + return _core_.RealPoint_Get(*args, **kwargs) asTuple = Get def __str__(self): return str(self.Get()) @@ -866,7 +866,7 @@ class RealPointPtr(RealPoint): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = RealPoint -_core.RealPoint_swigregister(RealPointPtr) +_core_.RealPoint_swigregister(RealPointPtr) #--------------------------------------------------------------------------- @@ -878,19 +878,19 @@ class Point(object): """ def __repr__(self): return "<%s.%s; proxy of C++ wxPoint instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - x = property(_core.Point_x_get, _core.Point_x_set) - y = property(_core.Point_y_get, _core.Point_y_set) + x = property(_core_.Point_x_get, _core_.Point_x_set) + y = property(_core_.Point_y_get, _core_.Point_y_set) def __init__(self, *args, **kwargs): """ __init__(self, int x=0, int y=0) -> Point Create a wx.Point object """ - newobj = _core.new_Point(*args, **kwargs) + newobj = _core_.new_Point(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_core.delete_Point): + def __del__(self, destroy=_core_.delete_Point): """__del__(self)""" try: if self.thisown: destroy(self) @@ -902,7 +902,7 @@ class Point(object): Test for equality of wx.Point objects. """ - return _core.Point___eq__(*args, **kwargs) + return _core_.Point___eq__(*args, **kwargs) def __ne__(*args, **kwargs): """ @@ -910,7 +910,7 @@ class Point(object): Test for inequality of wx.Point objects. """ - return _core.Point___ne__(*args, **kwargs) + return _core_.Point___ne__(*args, **kwargs) def __add__(*args, **kwargs): """ @@ -918,7 +918,7 @@ class Point(object): Add pt's proprties to this and return the result. """ - return _core.Point___add__(*args, **kwargs) + return _core_.Point___add__(*args, **kwargs) def __sub__(*args, **kwargs): """ @@ -926,7 +926,7 @@ class Point(object): Subtract pt's proprties from this and return the result """ - return _core.Point___sub__(*args, **kwargs) + return _core_.Point___sub__(*args, **kwargs) def __iadd__(*args, **kwargs): """ @@ -934,7 +934,7 @@ class Point(object): Add pt to this object. """ - return _core.Point___iadd__(*args, **kwargs) + return _core_.Point___iadd__(*args, **kwargs) def __isub__(*args, **kwargs): """ @@ -942,7 +942,7 @@ class Point(object): Subtract pt from this object. """ - return _core.Point___isub__(*args, **kwargs) + return _core_.Point___isub__(*args, **kwargs) def Set(*args, **kwargs): """ @@ -950,7 +950,7 @@ class Point(object): Set both the x and y properties """ - return _core.Point_Set(*args, **kwargs) + return _core_.Point_Set(*args, **kwargs) def Get(*args, **kwargs): """ @@ -958,7 +958,7 @@ class Point(object): Return the x and y properties as a tuple. """ - return _core.Point_Get(*args, **kwargs) + return _core_.Point_Get(*args, **kwargs) asTuple = Get def __str__(self): return str(self.Get()) @@ -979,7 +979,7 @@ class PointPtr(Point): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = Point -_core.Point_swigregister(PointPtr) +_core_.Point_swigregister(PointPtr) #--------------------------------------------------------------------------- @@ -997,11 +997,11 @@ class Rect(object): Create a new Rect object. """ - newobj = _core.new_Rect(*args, **kwargs) + newobj = _core_.new_Rect(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_core.delete_Rect): + def __del__(self, destroy=_core_.delete_Rect): """__del__(self)""" try: if self.thisown: destroy(self) @@ -1009,99 +1009,99 @@ class Rect(object): def GetX(*args, **kwargs): """GetX(self) -> int""" - return _core.Rect_GetX(*args, **kwargs) + return _core_.Rect_GetX(*args, **kwargs) def SetX(*args, **kwargs): """SetX(self, int x)""" - return _core.Rect_SetX(*args, **kwargs) + return _core_.Rect_SetX(*args, **kwargs) def GetY(*args, **kwargs): """GetY(self) -> int""" - return _core.Rect_GetY(*args, **kwargs) + return _core_.Rect_GetY(*args, **kwargs) def SetY(*args, **kwargs): """SetY(self, int y)""" - return _core.Rect_SetY(*args, **kwargs) + return _core_.Rect_SetY(*args, **kwargs) def GetWidth(*args, **kwargs): """GetWidth(self) -> int""" - return _core.Rect_GetWidth(*args, **kwargs) + return _core_.Rect_GetWidth(*args, **kwargs) def SetWidth(*args, **kwargs): """SetWidth(self, int w)""" - return _core.Rect_SetWidth(*args, **kwargs) + return _core_.Rect_SetWidth(*args, **kwargs) def GetHeight(*args, **kwargs): """GetHeight(self) -> int""" - return _core.Rect_GetHeight(*args, **kwargs) + return _core_.Rect_GetHeight(*args, **kwargs) def SetHeight(*args, **kwargs): """SetHeight(self, int h)""" - return _core.Rect_SetHeight(*args, **kwargs) + return _core_.Rect_SetHeight(*args, **kwargs) def GetPosition(*args, **kwargs): """GetPosition(self) -> Point""" - return _core.Rect_GetPosition(*args, **kwargs) + return _core_.Rect_GetPosition(*args, **kwargs) def SetPosition(*args, **kwargs): """SetPosition(self, Point p)""" - return _core.Rect_SetPosition(*args, **kwargs) + return _core_.Rect_SetPosition(*args, **kwargs) def GetSize(*args, **kwargs): """GetSize(self) -> Size""" - return _core.Rect_GetSize(*args, **kwargs) + return _core_.Rect_GetSize(*args, **kwargs) def SetSize(*args, **kwargs): """SetSize(self, Size s)""" - return _core.Rect_SetSize(*args, **kwargs) + return _core_.Rect_SetSize(*args, **kwargs) def GetTopLeft(*args, **kwargs): """GetTopLeft(self) -> Point""" - return _core.Rect_GetTopLeft(*args, **kwargs) + return _core_.Rect_GetTopLeft(*args, **kwargs) def SetTopLeft(*args, **kwargs): """SetTopLeft(self, Point p)""" - return _core.Rect_SetTopLeft(*args, **kwargs) + return _core_.Rect_SetTopLeft(*args, **kwargs) def GetBottomRight(*args, **kwargs): """GetBottomRight(self) -> Point""" - return _core.Rect_GetBottomRight(*args, **kwargs) + return _core_.Rect_GetBottomRight(*args, **kwargs) def SetBottomRight(*args, **kwargs): """SetBottomRight(self, Point p)""" - return _core.Rect_SetBottomRight(*args, **kwargs) + return _core_.Rect_SetBottomRight(*args, **kwargs) def GetLeft(*args, **kwargs): """GetLeft(self) -> int""" - return _core.Rect_GetLeft(*args, **kwargs) + return _core_.Rect_GetLeft(*args, **kwargs) def GetTop(*args, **kwargs): """GetTop(self) -> int""" - return _core.Rect_GetTop(*args, **kwargs) + return _core_.Rect_GetTop(*args, **kwargs) def GetBottom(*args, **kwargs): """GetBottom(self) -> int""" - return _core.Rect_GetBottom(*args, **kwargs) + return _core_.Rect_GetBottom(*args, **kwargs) def GetRight(*args, **kwargs): """GetRight(self) -> int""" - return _core.Rect_GetRight(*args, **kwargs) + return _core_.Rect_GetRight(*args, **kwargs) def SetLeft(*args, **kwargs): """SetLeft(self, int left)""" - return _core.Rect_SetLeft(*args, **kwargs) + return _core_.Rect_SetLeft(*args, **kwargs) def SetRight(*args, **kwargs): """SetRight(self, int right)""" - return _core.Rect_SetRight(*args, **kwargs) + return _core_.Rect_SetRight(*args, **kwargs) def SetTop(*args, **kwargs): """SetTop(self, int top)""" - return _core.Rect_SetTop(*args, **kwargs) + return _core_.Rect_SetTop(*args, **kwargs) def SetBottom(*args, **kwargs): """SetBottom(self, int bottom)""" - return _core.Rect_SetBottom(*args, **kwargs) + return _core_.Rect_SetBottom(*args, **kwargs) position = property(GetPosition, SetPosition) size = property(GetSize, SetSize) @@ -1117,7 +1117,7 @@ class Rect(object): Increase the rectangle size by dx in x direction and dy in y direction. Both (or one of) parameters may be negative to decrease the rectangle size. """ - return _core.Rect_Inflate(*args, **kwargs) + return _core_.Rect_Inflate(*args, **kwargs) def Deflate(*args, **kwargs): """ @@ -1127,7 +1127,7 @@ class Rect(object): (or one of) parameters may be negative to increase the rectngle size. This method is the opposite of Inflate. """ - return _core.Rect_Deflate(*args, **kwargs) + return _core_.Rect_Deflate(*args, **kwargs) def OffsetXY(*args, **kwargs): """ @@ -1137,7 +1137,7 @@ class Rect(object): is moved to the right, if dy is positive, it is moved to the bottom, otherwise it is moved to the left or top respectively. """ - return _core.Rect_OffsetXY(*args, **kwargs) + return _core_.Rect_OffsetXY(*args, **kwargs) def Offset(*args, **kwargs): """ @@ -1145,7 +1145,7 @@ class Rect(object): Same as OffsetXY but uses dx,dy from Point """ - return _core.Rect_Offset(*args, **kwargs) + return _core_.Rect_Offset(*args, **kwargs) def Intersect(*args, **kwargs): """ @@ -1153,7 +1153,7 @@ class Rect(object): Return the intersectsion of this rectangle and rect. """ - return _core.Rect_Intersect(*args, **kwargs) + return _core_.Rect_Intersect(*args, **kwargs) def __add__(*args, **kwargs): """ @@ -1161,7 +1161,7 @@ class Rect(object): Add the properties of rect to this rectangle and return the result. """ - return _core.Rect___add__(*args, **kwargs) + return _core_.Rect___add__(*args, **kwargs) def __iadd__(*args, **kwargs): """ @@ -1169,7 +1169,7 @@ class Rect(object): Add the properties of rect to this rectangle, updating this rectangle. """ - return _core.Rect___iadd__(*args, **kwargs) + return _core_.Rect___iadd__(*args, **kwargs) def __eq__(*args, **kwargs): """ @@ -1177,7 +1177,7 @@ class Rect(object): Test for equality. """ - return _core.Rect___eq__(*args, **kwargs) + return _core_.Rect___eq__(*args, **kwargs) def __ne__(*args, **kwargs): """ @@ -1185,7 +1185,7 @@ class Rect(object): Test for inequality. """ - return _core.Rect___ne__(*args, **kwargs) + return _core_.Rect___ne__(*args, **kwargs) def InsideXY(*args, **kwargs): """ @@ -1193,7 +1193,7 @@ class Rect(object): Return True if the point is (not strcitly) inside the rect. """ - return _core.Rect_InsideXY(*args, **kwargs) + return _core_.Rect_InsideXY(*args, **kwargs) def Inside(*args, **kwargs): """ @@ -1201,7 +1201,7 @@ class Rect(object): Return True if the point is (not strcitly) inside the rect. """ - return _core.Rect_Inside(*args, **kwargs) + return _core_.Rect_Inside(*args, **kwargs) def Intersects(*args, **kwargs): """ @@ -1209,19 +1209,19 @@ class Rect(object): Returns True if the rectangles have a non empty intersection. """ - return _core.Rect_Intersects(*args, **kwargs) + return _core_.Rect_Intersects(*args, **kwargs) - x = property(_core.Rect_x_get, _core.Rect_x_set) - y = property(_core.Rect_y_get, _core.Rect_y_set) - width = property(_core.Rect_width_get, _core.Rect_width_set) - height = property(_core.Rect_height_get, _core.Rect_height_set) + x = property(_core_.Rect_x_get, _core_.Rect_x_set) + y = property(_core_.Rect_y_get, _core_.Rect_y_set) + width = property(_core_.Rect_width_get, _core_.Rect_width_set) + height = property(_core_.Rect_height_get, _core_.Rect_height_set) def Set(*args, **kwargs): """ Set(self, int x=0, int y=0, int width=0, int height=0) Set all rectangle properties. """ - return _core.Rect_Set(*args, **kwargs) + return _core_.Rect_Set(*args, **kwargs) def Get(*args, **kwargs): """ @@ -1229,7 +1229,7 @@ class Rect(object): Return the rectangle properties as a tuple. """ - return _core.Rect_Get(*args, **kwargs) + return _core_.Rect_Get(*args, **kwargs) asTuple = Get def __str__(self): return str(self.Get()) @@ -1252,7 +1252,7 @@ class RectPtr(Rect): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = Rect -_core.Rect_swigregister(RectPtr) +_core_.Rect_swigregister(RectPtr) def RectPP(*args, **kwargs): """ @@ -1260,7 +1260,7 @@ def RectPP(*args, **kwargs): Create a new Rect object from Points representing two corners. """ - val = _core.new_RectPP(*args, **kwargs) + val = _core_.new_RectPP(*args, **kwargs) val.thisown = 1 return val @@ -1270,7 +1270,7 @@ def RectPS(*args, **kwargs): Create a new Rect from a position and size. """ - val = _core.new_RectPS(*args, **kwargs) + val = _core_.new_RectPS(*args, **kwargs) val.thisown = 1 return val @@ -1281,7 +1281,7 @@ def IntersectRect(*args, **kwargs): Calculate and return the intersection of r1 and r2. """ - return _core.IntersectRect(*args, **kwargs) + return _core_.IntersectRect(*args, **kwargs) #--------------------------------------------------------------------------- class Point2D(object): @@ -1294,7 +1294,7 @@ class Point2D(object): Create a w.Point2D object. """ - newobj = _core.new_Point2D(*args, **kwargs) + newobj = _core_.new_Point2D(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -1304,7 +1304,7 @@ class Point2D(object): Convert to integer """ - return _core.Point2D_GetFloor(*args, **kwargs) + return _core_.Point2D_GetFloor(*args, **kwargs) def GetRounded(*args, **kwargs): """ @@ -1312,23 +1312,23 @@ class Point2D(object): Convert to integer """ - return _core.Point2D_GetRounded(*args, **kwargs) + return _core_.Point2D_GetRounded(*args, **kwargs) def GetVectorLength(*args, **kwargs): """GetVectorLength(self) -> double""" - return _core.Point2D_GetVectorLength(*args, **kwargs) + return _core_.Point2D_GetVectorLength(*args, **kwargs) def GetVectorAngle(*args, **kwargs): """GetVectorAngle(self) -> double""" - return _core.Point2D_GetVectorAngle(*args, **kwargs) + return _core_.Point2D_GetVectorAngle(*args, **kwargs) def SetVectorLength(*args, **kwargs): """SetVectorLength(self, double length)""" - return _core.Point2D_SetVectorLength(*args, **kwargs) + return _core_.Point2D_SetVectorLength(*args, **kwargs) def SetVectorAngle(*args, **kwargs): """SetVectorAngle(self, double degrees)""" - return _core.Point2D_SetVectorAngle(*args, **kwargs) + return _core_.Point2D_SetVectorAngle(*args, **kwargs) def SetPolarCoordinates(self, angle, length): self.SetVectorLength(length) @@ -1338,19 +1338,19 @@ class Point2D(object): def GetDistance(*args, **kwargs): """GetDistance(self, Point2D pt) -> double""" - return _core.Point2D_GetDistance(*args, **kwargs) + return _core_.Point2D_GetDistance(*args, **kwargs) def GetDistanceSquare(*args, **kwargs): """GetDistanceSquare(self, Point2D pt) -> double""" - return _core.Point2D_GetDistanceSquare(*args, **kwargs) + return _core_.Point2D_GetDistanceSquare(*args, **kwargs) def GetDotProduct(*args, **kwargs): """GetDotProduct(self, Point2D vec) -> double""" - return _core.Point2D_GetDotProduct(*args, **kwargs) + return _core_.Point2D_GetDotProduct(*args, **kwargs) def GetCrossProduct(*args, **kwargs): """GetCrossProduct(self, Point2D vec) -> double""" - return _core.Point2D_GetCrossProduct(*args, **kwargs) + return _core_.Point2D_GetCrossProduct(*args, **kwargs) def __neg__(*args, **kwargs): """ @@ -1358,23 +1358,23 @@ class Point2D(object): the reflection of this point """ - return _core.Point2D___neg__(*args, **kwargs) + return _core_.Point2D___neg__(*args, **kwargs) def __iadd__(*args, **kwargs): """__iadd__(self, Point2D pt) -> Point2D""" - return _core.Point2D___iadd__(*args, **kwargs) + return _core_.Point2D___iadd__(*args, **kwargs) def __isub__(*args, **kwargs): """__isub__(self, Point2D pt) -> Point2D""" - return _core.Point2D___isub__(*args, **kwargs) + return _core_.Point2D___isub__(*args, **kwargs) def __imul__(*args, **kwargs): """__imul__(self, Point2D pt) -> Point2D""" - return _core.Point2D___imul__(*args, **kwargs) + return _core_.Point2D___imul__(*args, **kwargs) def __idiv__(*args, **kwargs): """__idiv__(self, Point2D pt) -> Point2D""" - return _core.Point2D___idiv__(*args, **kwargs) + return _core_.Point2D___idiv__(*args, **kwargs) def __eq__(*args, **kwargs): """ @@ -1382,7 +1382,7 @@ class Point2D(object): Test for equality """ - return _core.Point2D___eq__(*args, **kwargs) + return _core_.Point2D___eq__(*args, **kwargs) def __ne__(*args, **kwargs): """ @@ -1390,13 +1390,13 @@ class Point2D(object): Test for inequality """ - return _core.Point2D___ne__(*args, **kwargs) + return _core_.Point2D___ne__(*args, **kwargs) - x = property(_core.Point2D_x_get, _core.Point2D_x_set) - y = property(_core.Point2D_y_get, _core.Point2D_y_set) + x = property(_core_.Point2D_x_get, _core_.Point2D_x_set) + y = property(_core_.Point2D_y_get, _core_.Point2D_y_set) def Set(*args, **kwargs): """Set(self, double x=0, double y=0)""" - return _core.Point2D_Set(*args, **kwargs) + return _core_.Point2D_Set(*args, **kwargs) def Get(*args, **kwargs): """ @@ -1404,7 +1404,7 @@ class Point2D(object): Return x and y properties as a tuple. """ - return _core.Point2D_Get(*args, **kwargs) + return _core_.Point2D_Get(*args, **kwargs) asTuple = Get def __str__(self): return str(self.Get()) @@ -1425,7 +1425,7 @@ class Point2DPtr(Point2D): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = Point2D -_core.Point2D_swigregister(Point2DPtr) +_core_.Point2D_swigregister(Point2DPtr) def Point2DCopy(*args, **kwargs): """ @@ -1433,7 +1433,7 @@ def Point2DCopy(*args, **kwargs): Create a w.Point2D object. """ - val = _core.new_Point2DCopy(*args, **kwargs) + val = _core_.new_Point2DCopy(*args, **kwargs) val.thisown = 1 return val @@ -1443,87 +1443,87 @@ def Point2DFromPoint(*args, **kwargs): Create a w.Point2D object. """ - val = _core.new_Point2DFromPoint(*args, **kwargs) + val = _core_.new_Point2DFromPoint(*args, **kwargs) val.thisown = 1 return val #--------------------------------------------------------------------------- -FromStart = _core.FromStart -FromCurrent = _core.FromCurrent -FromEnd = _core.FromEnd +FromStart = _core_.FromStart +FromCurrent = _core_.FromCurrent +FromEnd = _core_.FromEnd class InputStream(object): def __repr__(self): return "<%s.%s; proxy of C++ wxPyInputStream instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, PyObject p) -> InputStream""" - newobj = _core.new_InputStream(*args, **kwargs) + newobj = _core_.new_InputStream(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def close(*args, **kwargs): """close(self)""" - return _core.InputStream_close(*args, **kwargs) + return _core_.InputStream_close(*args, **kwargs) def flush(*args, **kwargs): """flush(self)""" - return _core.InputStream_flush(*args, **kwargs) + return _core_.InputStream_flush(*args, **kwargs) def eof(*args, **kwargs): """eof(self) -> bool""" - return _core.InputStream_eof(*args, **kwargs) + return _core_.InputStream_eof(*args, **kwargs) def read(*args, **kwargs): """read(self, int size=-1) -> PyObject""" - return _core.InputStream_read(*args, **kwargs) + return _core_.InputStream_read(*args, **kwargs) def readline(*args, **kwargs): """readline(self, int size=-1) -> PyObject""" - return _core.InputStream_readline(*args, **kwargs) + return _core_.InputStream_readline(*args, **kwargs) def readlines(*args, **kwargs): """readlines(self, int sizehint=-1) -> PyObject""" - return _core.InputStream_readlines(*args, **kwargs) + return _core_.InputStream_readlines(*args, **kwargs) def seek(*args, **kwargs): """seek(self, int offset, int whence=0)""" - return _core.InputStream_seek(*args, **kwargs) + return _core_.InputStream_seek(*args, **kwargs) def tell(*args, **kwargs): """tell(self) -> int""" - return _core.InputStream_tell(*args, **kwargs) + return _core_.InputStream_tell(*args, **kwargs) def Peek(*args, **kwargs): """Peek(self) -> char""" - return _core.InputStream_Peek(*args, **kwargs) + return _core_.InputStream_Peek(*args, **kwargs) def GetC(*args, **kwargs): """GetC(self) -> char""" - return _core.InputStream_GetC(*args, **kwargs) + return _core_.InputStream_GetC(*args, **kwargs) def LastRead(*args, **kwargs): """LastRead(self) -> size_t""" - return _core.InputStream_LastRead(*args, **kwargs) + return _core_.InputStream_LastRead(*args, **kwargs) def CanRead(*args, **kwargs): """CanRead(self) -> bool""" - return _core.InputStream_CanRead(*args, **kwargs) + return _core_.InputStream_CanRead(*args, **kwargs) def Eof(*args, **kwargs): """Eof(self) -> bool""" - return _core.InputStream_Eof(*args, **kwargs) + return _core_.InputStream_Eof(*args, **kwargs) def Ungetch(*args, **kwargs): """Ungetch(self, char c) -> bool""" - return _core.InputStream_Ungetch(*args, **kwargs) + return _core_.InputStream_Ungetch(*args, **kwargs) def SeekI(*args, **kwargs): """SeekI(self, long pos, int mode=FromStart) -> long""" - return _core.InputStream_SeekI(*args, **kwargs) + return _core_.InputStream_SeekI(*args, **kwargs) def TellI(*args, **kwargs): """TellI(self) -> long""" - return _core.InputStream_TellI(*args, **kwargs) + return _core_.InputStream_TellI(*args, **kwargs) class InputStreamPtr(InputStream): @@ -1531,7 +1531,7 @@ class InputStreamPtr(InputStream): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = InputStream -_core.InputStream_swigregister(InputStreamPtr) +_core_.InputStream_swigregister(InputStreamPtr) DefaultPosition = cvar.DefaultPosition DefaultSize = cvar.DefaultSize @@ -1541,7 +1541,7 @@ class OutputStream(object): return "<%s.%s; proxy of C++ wxOutputStream instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def write(*args, **kwargs): """write(self, PyObject obj)""" - return _core.OutputStream_write(*args, **kwargs) + return _core_.OutputStream_write(*args, **kwargs) class OutputStreamPtr(OutputStream): @@ -1549,7 +1549,7 @@ class OutputStreamPtr(OutputStream): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = OutputStream -_core.OutputStream_swigregister(OutputStreamPtr) +_core_.OutputStream_swigregister(OutputStreamPtr) #--------------------------------------------------------------------------- @@ -1561,11 +1561,11 @@ class FSFile(Object): __init__(self, InputStream stream, String loc, String mimetype, String anchor, DateTime modif) -> FSFile """ - newobj = _core.new_FSFile(*args, **kwargs) + newobj = _core_.new_FSFile(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_core.delete_FSFile): + def __del__(self, destroy=_core_.delete_FSFile): """__del__(self)""" try: if self.thisown: destroy(self) @@ -1573,23 +1573,23 @@ class FSFile(Object): def GetStream(*args, **kwargs): """GetStream(self) -> InputStream""" - return _core.FSFile_GetStream(*args, **kwargs) + return _core_.FSFile_GetStream(*args, **kwargs) def GetMimeType(*args, **kwargs): """GetMimeType(self) -> String""" - return _core.FSFile_GetMimeType(*args, **kwargs) + return _core_.FSFile_GetMimeType(*args, **kwargs) def GetLocation(*args, **kwargs): """GetLocation(self) -> String""" - return _core.FSFile_GetLocation(*args, **kwargs) + return _core_.FSFile_GetLocation(*args, **kwargs) def GetAnchor(*args, **kwargs): """GetAnchor(self) -> String""" - return _core.FSFile_GetAnchor(*args, **kwargs) + return _core_.FSFile_GetAnchor(*args, **kwargs) def GetModificationTime(*args, **kwargs): """GetModificationTime(self) -> DateTime""" - return _core.FSFile_GetModificationTime(*args, **kwargs) + return _core_.FSFile_GetModificationTime(*args, **kwargs) class FSFilePtr(FSFile): @@ -1597,7 +1597,7 @@ class FSFilePtr(FSFile): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = FSFile -_core.FSFile_swigregister(FSFilePtr) +_core_.FSFile_swigregister(FSFilePtr) class CPPFileSystemHandler(object): def __init__(self): raise RuntimeError, "No constructor defined" @@ -1609,14 +1609,14 @@ class CPPFileSystemHandlerPtr(CPPFileSystemHandler): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = CPPFileSystemHandler -_core.CPPFileSystemHandler_swigregister(CPPFileSystemHandlerPtr) +_core_.CPPFileSystemHandler_swigregister(CPPFileSystemHandlerPtr) class FileSystemHandler(CPPFileSystemHandler): def __repr__(self): return "<%s.%s; proxy of C++ wxPyFileSystemHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> FileSystemHandler""" - newobj = _core.new_FileSystemHandler(*args, **kwargs) + newobj = _core_.new_FileSystemHandler(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -1624,43 +1624,43 @@ class FileSystemHandler(CPPFileSystemHandler): def _setCallbackInfo(*args, **kwargs): """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _core.FileSystemHandler__setCallbackInfo(*args, **kwargs) + return _core_.FileSystemHandler__setCallbackInfo(*args, **kwargs) def CanOpen(*args, **kwargs): """CanOpen(self, String location) -> bool""" - return _core.FileSystemHandler_CanOpen(*args, **kwargs) + return _core_.FileSystemHandler_CanOpen(*args, **kwargs) def OpenFile(*args, **kwargs): """OpenFile(self, FileSystem fs, String location) -> FSFile""" - return _core.FileSystemHandler_OpenFile(*args, **kwargs) + return _core_.FileSystemHandler_OpenFile(*args, **kwargs) def FindFirst(*args, **kwargs): """FindFirst(self, String spec, int flags=0) -> String""" - return _core.FileSystemHandler_FindFirst(*args, **kwargs) + return _core_.FileSystemHandler_FindFirst(*args, **kwargs) def FindNext(*args, **kwargs): """FindNext(self) -> String""" - return _core.FileSystemHandler_FindNext(*args, **kwargs) + return _core_.FileSystemHandler_FindNext(*args, **kwargs) def GetProtocol(*args, **kwargs): """GetProtocol(self, String location) -> String""" - return _core.FileSystemHandler_GetProtocol(*args, **kwargs) + return _core_.FileSystemHandler_GetProtocol(*args, **kwargs) def GetLeftLocation(*args, **kwargs): """GetLeftLocation(self, String location) -> String""" - return _core.FileSystemHandler_GetLeftLocation(*args, **kwargs) + return _core_.FileSystemHandler_GetLeftLocation(*args, **kwargs) def GetAnchor(*args, **kwargs): """GetAnchor(self, String location) -> String""" - return _core.FileSystemHandler_GetAnchor(*args, **kwargs) + return _core_.FileSystemHandler_GetAnchor(*args, **kwargs) def GetRightLocation(*args, **kwargs): """GetRightLocation(self, String location) -> String""" - return _core.FileSystemHandler_GetRightLocation(*args, **kwargs) + return _core_.FileSystemHandler_GetRightLocation(*args, **kwargs) def GetMimeTypeFromExt(*args, **kwargs): """GetMimeTypeFromExt(self, String location) -> String""" - return _core.FileSystemHandler_GetMimeTypeFromExt(*args, **kwargs) + return _core_.FileSystemHandler_GetMimeTypeFromExt(*args, **kwargs) class FileSystemHandlerPtr(FileSystemHandler): @@ -1668,18 +1668,18 @@ class FileSystemHandlerPtr(FileSystemHandler): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = FileSystemHandler -_core.FileSystemHandler_swigregister(FileSystemHandlerPtr) +_core_.FileSystemHandler_swigregister(FileSystemHandlerPtr) class FileSystem(Object): def __repr__(self): return "<%s.%s; proxy of C++ wxFileSystem instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> FileSystem""" - newobj = _core.new_FileSystem(*args, **kwargs) + newobj = _core_.new_FileSystem(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_core.delete_FileSystem): + def __del__(self, destroy=_core_.delete_FileSystem): """__del__(self)""" try: if self.thisown: destroy(self) @@ -1687,37 +1687,37 @@ class FileSystem(Object): def ChangePathTo(*args, **kwargs): """ChangePathTo(self, String location, bool is_dir=False)""" - return _core.FileSystem_ChangePathTo(*args, **kwargs) + return _core_.FileSystem_ChangePathTo(*args, **kwargs) def GetPath(*args, **kwargs): """GetPath(self) -> String""" - return _core.FileSystem_GetPath(*args, **kwargs) + return _core_.FileSystem_GetPath(*args, **kwargs) def OpenFile(*args, **kwargs): """OpenFile(self, String location) -> FSFile""" - return _core.FileSystem_OpenFile(*args, **kwargs) + return _core_.FileSystem_OpenFile(*args, **kwargs) def FindFirst(*args, **kwargs): """FindFirst(self, String spec, int flags=0) -> String""" - return _core.FileSystem_FindFirst(*args, **kwargs) + return _core_.FileSystem_FindFirst(*args, **kwargs) def FindNext(*args, **kwargs): """FindNext(self) -> String""" - return _core.FileSystem_FindNext(*args, **kwargs) + return _core_.FileSystem_FindNext(*args, **kwargs) def AddHandler(*args, **kwargs): """FileSystem.AddHandler(CPPFileSystemHandler handler)""" - return _core.FileSystem_AddHandler(*args, **kwargs) + return _core_.FileSystem_AddHandler(*args, **kwargs) AddHandler = staticmethod(AddHandler) def CleanUpHandlers(*args, **kwargs): """FileSystem.CleanUpHandlers()""" - return _core.FileSystem_CleanUpHandlers(*args, **kwargs) + return _core_.FileSystem_CleanUpHandlers(*args, **kwargs) CleanUpHandlers = staticmethod(CleanUpHandlers) def FileNameToURL(*args, **kwargs): """FileSystem.FileNameToURL(String filename) -> String""" - return _core.FileSystem_FileNameToURL(*args, **kwargs) + return _core_.FileSystem_FileNameToURL(*args, **kwargs) FileNameToURL = staticmethod(FileNameToURL) @@ -1726,40 +1726,40 @@ class FileSystemPtr(FileSystem): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = FileSystem -_core.FileSystem_swigregister(FileSystemPtr) +_core_.FileSystem_swigregister(FileSystemPtr) def FileSystem_AddHandler(*args, **kwargs): """FileSystem_AddHandler(CPPFileSystemHandler handler)""" - return _core.FileSystem_AddHandler(*args, **kwargs) + return _core_.FileSystem_AddHandler(*args, **kwargs) def FileSystem_CleanUpHandlers(*args, **kwargs): """FileSystem_CleanUpHandlers()""" - return _core.FileSystem_CleanUpHandlers(*args, **kwargs) + return _core_.FileSystem_CleanUpHandlers(*args, **kwargs) def FileSystem_FileNameToURL(*args, **kwargs): """FileSystem_FileNameToURL(String filename) -> String""" - return _core.FileSystem_FileNameToURL(*args, **kwargs) + return _core_.FileSystem_FileNameToURL(*args, **kwargs) def FileSystem_URLToFileName(*args, **kwargs): """FileSystem_URLToFileName(String url) -> String""" - return _core.FileSystem_URLToFileName(*args, **kwargs) + return _core_.FileSystem_URLToFileName(*args, **kwargs) class InternetFSHandler(CPPFileSystemHandler): def __repr__(self): return "<%s.%s; proxy of C++ wxInternetFSHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> InternetFSHandler""" - newobj = _core.new_InternetFSHandler(*args, **kwargs) + newobj = _core_.new_InternetFSHandler(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def CanOpen(*args, **kwargs): """CanOpen(self, String location) -> bool""" - return _core.InternetFSHandler_CanOpen(*args, **kwargs) + return _core_.InternetFSHandler_CanOpen(*args, **kwargs) def OpenFile(*args, **kwargs): """OpenFile(self, FileSystem fs, String location) -> FSFile""" - return _core.InternetFSHandler_OpenFile(*args, **kwargs) + return _core_.InternetFSHandler_OpenFile(*args, **kwargs) class InternetFSHandlerPtr(InternetFSHandler): @@ -1767,32 +1767,32 @@ class InternetFSHandlerPtr(InternetFSHandler): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = InternetFSHandler -_core.InternetFSHandler_swigregister(InternetFSHandlerPtr) +_core_.InternetFSHandler_swigregister(InternetFSHandlerPtr) class ZipFSHandler(CPPFileSystemHandler): def __repr__(self): return "<%s.%s; proxy of C++ wxZipFSHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> ZipFSHandler""" - newobj = _core.new_ZipFSHandler(*args, **kwargs) + newobj = _core_.new_ZipFSHandler(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def CanOpen(*args, **kwargs): """CanOpen(self, String location) -> bool""" - return _core.ZipFSHandler_CanOpen(*args, **kwargs) + return _core_.ZipFSHandler_CanOpen(*args, **kwargs) def OpenFile(*args, **kwargs): """OpenFile(self, FileSystem fs, String location) -> FSFile""" - return _core.ZipFSHandler_OpenFile(*args, **kwargs) + return _core_.ZipFSHandler_OpenFile(*args, **kwargs) def FindFirst(*args, **kwargs): """FindFirst(self, String spec, int flags=0) -> String""" - return _core.ZipFSHandler_FindFirst(*args, **kwargs) + return _core_.ZipFSHandler_FindFirst(*args, **kwargs) def FindNext(*args, **kwargs): """FindNext(self) -> String""" - return _core.ZipFSHandler_FindNext(*args, **kwargs) + return _core_.ZipFSHandler_FindNext(*args, **kwargs) class ZipFSHandlerPtr(ZipFSHandler): @@ -1800,20 +1800,20 @@ class ZipFSHandlerPtr(ZipFSHandler): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = ZipFSHandler -_core.ZipFSHandler_swigregister(ZipFSHandlerPtr) +_core_.ZipFSHandler_swigregister(ZipFSHandlerPtr) def __wxMemoryFSHandler_AddFile_wxImage(*args, **kwargs): """__wxMemoryFSHandler_AddFile_wxImage(String filename, Image image, long type)""" - return _core.__wxMemoryFSHandler_AddFile_wxImage(*args, **kwargs) + return _core_.__wxMemoryFSHandler_AddFile_wxImage(*args, **kwargs) def __wxMemoryFSHandler_AddFile_wxBitmap(*args, **kwargs): """__wxMemoryFSHandler_AddFile_wxBitmap(String filename, Bitmap bitmap, long type)""" - return _core.__wxMemoryFSHandler_AddFile_wxBitmap(*args, **kwargs) + return _core_.__wxMemoryFSHandler_AddFile_wxBitmap(*args, **kwargs) def __wxMemoryFSHandler_AddFile_Data(*args, **kwargs): """__wxMemoryFSHandler_AddFile_Data(String filename, PyObject data)""" - return _core.__wxMemoryFSHandler_AddFile_Data(*args, **kwargs) + return _core_.__wxMemoryFSHandler_AddFile_Data(*args, **kwargs) def MemoryFSHandler_AddFile(filename, a, b=''): if isinstance(a, wx.Image): __wxMemoryFSHandler_AddFile_wxImage(filename, a, b) @@ -1828,31 +1828,31 @@ class MemoryFSHandler(CPPFileSystemHandler): return "<%s.%s; proxy of C++ wxMemoryFSHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> MemoryFSHandler""" - newobj = _core.new_MemoryFSHandler(*args, **kwargs) + newobj = _core_.new_MemoryFSHandler(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def RemoveFile(*args, **kwargs): """MemoryFSHandler.RemoveFile(String filename)""" - return _core.MemoryFSHandler_RemoveFile(*args, **kwargs) + return _core_.MemoryFSHandler_RemoveFile(*args, **kwargs) RemoveFile = staticmethod(RemoveFile) AddFile = staticmethod(MemoryFSHandler_AddFile) def CanOpen(*args, **kwargs): """CanOpen(self, String location) -> bool""" - return _core.MemoryFSHandler_CanOpen(*args, **kwargs) + return _core_.MemoryFSHandler_CanOpen(*args, **kwargs) def OpenFile(*args, **kwargs): """OpenFile(self, FileSystem fs, String location) -> FSFile""" - return _core.MemoryFSHandler_OpenFile(*args, **kwargs) + return _core_.MemoryFSHandler_OpenFile(*args, **kwargs) def FindFirst(*args, **kwargs): """FindFirst(self, String spec, int flags=0) -> String""" - return _core.MemoryFSHandler_FindFirst(*args, **kwargs) + return _core_.MemoryFSHandler_FindFirst(*args, **kwargs) def FindNext(*args, **kwargs): """FindNext(self) -> String""" - return _core.MemoryFSHandler_FindNext(*args, **kwargs) + return _core_.MemoryFSHandler_FindNext(*args, **kwargs) class MemoryFSHandlerPtr(MemoryFSHandler): @@ -1860,11 +1860,11 @@ class MemoryFSHandlerPtr(MemoryFSHandler): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = MemoryFSHandler -_core.MemoryFSHandler_swigregister(MemoryFSHandlerPtr) +_core_.MemoryFSHandler_swigregister(MemoryFSHandlerPtr) def MemoryFSHandler_RemoveFile(*args, **kwargs): """MemoryFSHandler_RemoveFile(String filename)""" - return _core.MemoryFSHandler_RemoveFile(*args, **kwargs) + return _core_.MemoryFSHandler_RemoveFile(*args, **kwargs) #--------------------------------------------------------------------------- @@ -1874,39 +1874,39 @@ class ImageHandler(Object): return "<%s.%s; proxy of C++ wxImageHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def GetName(*args, **kwargs): """GetName(self) -> String""" - return _core.ImageHandler_GetName(*args, **kwargs) + return _core_.ImageHandler_GetName(*args, **kwargs) def GetExtension(*args, **kwargs): """GetExtension(self) -> String""" - return _core.ImageHandler_GetExtension(*args, **kwargs) + return _core_.ImageHandler_GetExtension(*args, **kwargs) def GetType(*args, **kwargs): """GetType(self) -> long""" - return _core.ImageHandler_GetType(*args, **kwargs) + return _core_.ImageHandler_GetType(*args, **kwargs) def GetMimeType(*args, **kwargs): """GetMimeType(self) -> String""" - return _core.ImageHandler_GetMimeType(*args, **kwargs) + return _core_.ImageHandler_GetMimeType(*args, **kwargs) def CanRead(*args, **kwargs): """CanRead(self, String name) -> bool""" - return _core.ImageHandler_CanRead(*args, **kwargs) + return _core_.ImageHandler_CanRead(*args, **kwargs) def SetName(*args, **kwargs): """SetName(self, String name)""" - return _core.ImageHandler_SetName(*args, **kwargs) + return _core_.ImageHandler_SetName(*args, **kwargs) def SetExtension(*args, **kwargs): """SetExtension(self, String extension)""" - return _core.ImageHandler_SetExtension(*args, **kwargs) + return _core_.ImageHandler_SetExtension(*args, **kwargs) def SetType(*args, **kwargs): """SetType(self, long type)""" - return _core.ImageHandler_SetType(*args, **kwargs) + return _core_.ImageHandler_SetType(*args, **kwargs) def SetMimeType(*args, **kwargs): """SetMimeType(self, String mimetype)""" - return _core.ImageHandler_SetMimeType(*args, **kwargs) + return _core_.ImageHandler_SetMimeType(*args, **kwargs) class ImageHandlerPtr(ImageHandler): @@ -1914,14 +1914,14 @@ class ImageHandlerPtr(ImageHandler): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = ImageHandler -_core.ImageHandler_swigregister(ImageHandlerPtr) +_core_.ImageHandler_swigregister(ImageHandlerPtr) class ImageHistogram(object): def __repr__(self): return "<%s.%s; proxy of C++ wxImageHistogram instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> ImageHistogram""" - newobj = _core.new_ImageHistogram(*args, **kwargs) + newobj = _core_.new_ImageHistogram(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -1931,7 +1931,7 @@ class ImageHistogram(object): Get the key in the histogram for the given RGB values """ - return _core.ImageHistogram_MakeKey(*args, **kwargs) + return _core_.ImageHistogram_MakeKey(*args, **kwargs) MakeKey = staticmethod(MakeKey) def FindFirstUnusedColour(*args, **kwargs): @@ -1942,7 +1942,7 @@ class ImageHistogram(object): startR, startG, startB. Returns a tuple consisting of a success flag and rgb values. """ - return _core.ImageHistogram_FindFirstUnusedColour(*args, **kwargs) + return _core_.ImageHistogram_FindFirstUnusedColour(*args, **kwargs) class ImageHistogramPtr(ImageHistogram): @@ -1950,7 +1950,7 @@ class ImageHistogramPtr(ImageHistogram): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = ImageHistogram -_core.ImageHistogram_swigregister(ImageHistogramPtr) +_core_.ImageHistogram_swigregister(ImageHistogramPtr) def ImageHistogram_MakeKey(*args, **kwargs): """ @@ -1958,18 +1958,18 @@ def ImageHistogram_MakeKey(*args, **kwargs): Get the key in the histogram for the given RGB values """ - return _core.ImageHistogram_MakeKey(*args, **kwargs) + return _core_.ImageHistogram_MakeKey(*args, **kwargs) class Image(Object): def __repr__(self): return "<%s.%s; proxy of C++ wxImage instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, String name, long type=BITMAP_TYPE_ANY, int index=-1) -> Image""" - newobj = _core.new_Image(*args, **kwargs) + newobj = _core_.new_Image(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_core.delete_Image): + def __del__(self, destroy=_core_.delete_Image): """__del__(self)""" try: if self.thisown: destroy(self) @@ -1977,7 +1977,7 @@ class Image(Object): def Create(*args, **kwargs): """Create(self, int width, int height)""" - return _core.Image_Create(*args, **kwargs) + return _core_.Image_Create(*args, **kwargs) def Destroy(*args, **kwargs): """ @@ -1985,47 +1985,47 @@ class Image(Object): Deletes the C++ object this Python object is a proxy for. """ - return _core.Image_Destroy(*args, **kwargs) + return _core_.Image_Destroy(*args, **kwargs) def Scale(*args, **kwargs): """Scale(self, int width, int height) -> Image""" - return _core.Image_Scale(*args, **kwargs) + return _core_.Image_Scale(*args, **kwargs) def ShrinkBy(*args, **kwargs): """ShrinkBy(self, int xFactor, int yFactor) -> Image""" - return _core.Image_ShrinkBy(*args, **kwargs) + return _core_.Image_ShrinkBy(*args, **kwargs) def Rescale(*args, **kwargs): """Rescale(self, int width, int height) -> Image""" - return _core.Image_Rescale(*args, **kwargs) + return _core_.Image_Rescale(*args, **kwargs) def SetRGB(*args, **kwargs): """SetRGB(self, int x, int y, unsigned char r, unsigned char g, unsigned char b)""" - return _core.Image_SetRGB(*args, **kwargs) + return _core_.Image_SetRGB(*args, **kwargs) def GetRed(*args, **kwargs): """GetRed(self, int x, int y) -> unsigned char""" - return _core.Image_GetRed(*args, **kwargs) + return _core_.Image_GetRed(*args, **kwargs) def GetGreen(*args, **kwargs): """GetGreen(self, int x, int y) -> unsigned char""" - return _core.Image_GetGreen(*args, **kwargs) + return _core_.Image_GetGreen(*args, **kwargs) def GetBlue(*args, **kwargs): """GetBlue(self, int x, int y) -> unsigned char""" - return _core.Image_GetBlue(*args, **kwargs) + return _core_.Image_GetBlue(*args, **kwargs) def SetAlpha(*args, **kwargs): """SetAlpha(self, int x, int y, unsigned char alpha)""" - return _core.Image_SetAlpha(*args, **kwargs) + return _core_.Image_SetAlpha(*args, **kwargs) def GetAlpha(*args, **kwargs): """GetAlpha(self, int x, int y) -> unsigned char""" - return _core.Image_GetAlpha(*args, **kwargs) + return _core_.Image_GetAlpha(*args, **kwargs) def HasAlpha(*args, **kwargs): """HasAlpha(self) -> bool""" - return _core.Image_HasAlpha(*args, **kwargs) + return _core_.Image_HasAlpha(*args, **kwargs) def FindFirstUnusedColour(*args, **kwargs): """ @@ -2035,216 +2035,216 @@ class Image(Object): startR, startG, startB. Returns a tuple consisting of a success flag and rgb values. """ - return _core.Image_FindFirstUnusedColour(*args, **kwargs) + return _core_.Image_FindFirstUnusedColour(*args, **kwargs) def SetMaskFromImage(*args, **kwargs): """SetMaskFromImage(self, Image mask, byte mr, byte mg, byte mb) -> bool""" - return _core.Image_SetMaskFromImage(*args, **kwargs) + return _core_.Image_SetMaskFromImage(*args, **kwargs) def CanRead(*args, **kwargs): """Image.CanRead(String name) -> bool""" - return _core.Image_CanRead(*args, **kwargs) + return _core_.Image_CanRead(*args, **kwargs) CanRead = staticmethod(CanRead) def GetImageCount(*args, **kwargs): """Image.GetImageCount(String name, long type=BITMAP_TYPE_ANY) -> int""" - return _core.Image_GetImageCount(*args, **kwargs) + return _core_.Image_GetImageCount(*args, **kwargs) GetImageCount = staticmethod(GetImageCount) def LoadFile(*args, **kwargs): """LoadFile(self, String name, long type=BITMAP_TYPE_ANY, int index=-1) -> bool""" - return _core.Image_LoadFile(*args, **kwargs) + return _core_.Image_LoadFile(*args, **kwargs) def LoadMimeFile(*args, **kwargs): """LoadMimeFile(self, String name, String mimetype, int index=-1) -> bool""" - return _core.Image_LoadMimeFile(*args, **kwargs) + return _core_.Image_LoadMimeFile(*args, **kwargs) def SaveFile(*args, **kwargs): """SaveFile(self, String name, int type) -> bool""" - return _core.Image_SaveFile(*args, **kwargs) + return _core_.Image_SaveFile(*args, **kwargs) def SaveMimeFile(*args, **kwargs): """SaveMimeFile(self, String name, String mimetype) -> bool""" - return _core.Image_SaveMimeFile(*args, **kwargs) + return _core_.Image_SaveMimeFile(*args, **kwargs) def CanReadStream(*args, **kwargs): """Image.CanReadStream(InputStream stream) -> bool""" - return _core.Image_CanReadStream(*args, **kwargs) + return _core_.Image_CanReadStream(*args, **kwargs) CanReadStream = staticmethod(CanReadStream) def LoadStream(*args, **kwargs): """LoadStream(self, InputStream stream, long type=BITMAP_TYPE_ANY, int index=-1) -> bool""" - return _core.Image_LoadStream(*args, **kwargs) + return _core_.Image_LoadStream(*args, **kwargs) def LoadMimeStream(*args, **kwargs): """LoadMimeStream(self, InputStream stream, String mimetype, int index=-1) -> bool""" - return _core.Image_LoadMimeStream(*args, **kwargs) + return _core_.Image_LoadMimeStream(*args, **kwargs) def Ok(*args, **kwargs): """Ok(self) -> bool""" - return _core.Image_Ok(*args, **kwargs) + return _core_.Image_Ok(*args, **kwargs) def GetWidth(*args, **kwargs): """GetWidth(self) -> int""" - return _core.Image_GetWidth(*args, **kwargs) + return _core_.Image_GetWidth(*args, **kwargs) def GetHeight(*args, **kwargs): """GetHeight(self) -> int""" - return _core.Image_GetHeight(*args, **kwargs) + return _core_.Image_GetHeight(*args, **kwargs) def GetSize(*args, **kwargs): """GetSize(self) -> Size""" - return _core.Image_GetSize(*args, **kwargs) + return _core_.Image_GetSize(*args, **kwargs) def GetSubImage(*args, **kwargs): """GetSubImage(self, Rect rect) -> Image""" - return _core.Image_GetSubImage(*args, **kwargs) + return _core_.Image_GetSubImage(*args, **kwargs) def Copy(*args, **kwargs): """Copy(self) -> Image""" - return _core.Image_Copy(*args, **kwargs) + return _core_.Image_Copy(*args, **kwargs) def Paste(*args, **kwargs): """Paste(self, Image image, int x, int y)""" - return _core.Image_Paste(*args, **kwargs) + return _core_.Image_Paste(*args, **kwargs) def GetData(*args, **kwargs): """GetData(self) -> PyObject""" - return _core.Image_GetData(*args, **kwargs) + return _core_.Image_GetData(*args, **kwargs) def SetData(*args, **kwargs): """SetData(self, PyObject data)""" - return _core.Image_SetData(*args, **kwargs) + return _core_.Image_SetData(*args, **kwargs) def GetDataBuffer(*args, **kwargs): """GetDataBuffer(self) -> PyObject""" - return _core.Image_GetDataBuffer(*args, **kwargs) + return _core_.Image_GetDataBuffer(*args, **kwargs) def SetDataBuffer(*args, **kwargs): """SetDataBuffer(self, PyObject data)""" - return _core.Image_SetDataBuffer(*args, **kwargs) + return _core_.Image_SetDataBuffer(*args, **kwargs) def GetAlphaData(*args, **kwargs): """GetAlphaData(self) -> PyObject""" - return _core.Image_GetAlphaData(*args, **kwargs) + return _core_.Image_GetAlphaData(*args, **kwargs) def SetAlphaData(*args, **kwargs): """SetAlphaData(self, PyObject data)""" - return _core.Image_SetAlphaData(*args, **kwargs) + return _core_.Image_SetAlphaData(*args, **kwargs) def GetAlphaBuffer(*args, **kwargs): """GetAlphaBuffer(self) -> PyObject""" - return _core.Image_GetAlphaBuffer(*args, **kwargs) + return _core_.Image_GetAlphaBuffer(*args, **kwargs) def SetAlphaBuffer(*args, **kwargs): """SetAlphaBuffer(self, PyObject data)""" - return _core.Image_SetAlphaBuffer(*args, **kwargs) + return _core_.Image_SetAlphaBuffer(*args, **kwargs) def SetMaskColour(*args, **kwargs): """SetMaskColour(self, unsigned char r, unsigned char g, unsigned char b)""" - return _core.Image_SetMaskColour(*args, **kwargs) + return _core_.Image_SetMaskColour(*args, **kwargs) def GetMaskRed(*args, **kwargs): """GetMaskRed(self) -> unsigned char""" - return _core.Image_GetMaskRed(*args, **kwargs) + return _core_.Image_GetMaskRed(*args, **kwargs) def GetMaskGreen(*args, **kwargs): """GetMaskGreen(self) -> unsigned char""" - return _core.Image_GetMaskGreen(*args, **kwargs) + return _core_.Image_GetMaskGreen(*args, **kwargs) def GetMaskBlue(*args, **kwargs): """GetMaskBlue(self) -> unsigned char""" - return _core.Image_GetMaskBlue(*args, **kwargs) + return _core_.Image_GetMaskBlue(*args, **kwargs) def SetMask(*args, **kwargs): """SetMask(self, bool mask=True)""" - return _core.Image_SetMask(*args, **kwargs) + return _core_.Image_SetMask(*args, **kwargs) def HasMask(*args, **kwargs): """HasMask(self) -> bool""" - return _core.Image_HasMask(*args, **kwargs) + return _core_.Image_HasMask(*args, **kwargs) def Rotate(*args, **kwargs): """ Rotate(self, double angle, Point centre_of_rotation, bool interpolating=True, Point offset_after_rotation=None) -> Image """ - return _core.Image_Rotate(*args, **kwargs) + return _core_.Image_Rotate(*args, **kwargs) def Rotate90(*args, **kwargs): """Rotate90(self, bool clockwise=True) -> Image""" - return _core.Image_Rotate90(*args, **kwargs) + return _core_.Image_Rotate90(*args, **kwargs) def Mirror(*args, **kwargs): """Mirror(self, bool horizontally=True) -> Image""" - return _core.Image_Mirror(*args, **kwargs) + return _core_.Image_Mirror(*args, **kwargs) def Replace(*args, **kwargs): """ Replace(self, unsigned char r1, unsigned char g1, unsigned char b1, unsigned char r2, unsigned char g2, unsigned char b2) """ - return _core.Image_Replace(*args, **kwargs) + return _core_.Image_Replace(*args, **kwargs) def ConvertToMono(*args, **kwargs): """ConvertToMono(self, unsigned char r, unsigned char g, unsigned char b) -> Image""" - return _core.Image_ConvertToMono(*args, **kwargs) + return _core_.Image_ConvertToMono(*args, **kwargs) def SetOption(*args, **kwargs): """SetOption(self, String name, String value)""" - return _core.Image_SetOption(*args, **kwargs) + return _core_.Image_SetOption(*args, **kwargs) def SetOptionInt(*args, **kwargs): """SetOptionInt(self, String name, int value)""" - return _core.Image_SetOptionInt(*args, **kwargs) + return _core_.Image_SetOptionInt(*args, **kwargs) def GetOption(*args, **kwargs): """GetOption(self, String name) -> String""" - return _core.Image_GetOption(*args, **kwargs) + return _core_.Image_GetOption(*args, **kwargs) def GetOptionInt(*args, **kwargs): """GetOptionInt(self, String name) -> int""" - return _core.Image_GetOptionInt(*args, **kwargs) + return _core_.Image_GetOptionInt(*args, **kwargs) def HasOption(*args, **kwargs): """HasOption(self, String name) -> bool""" - return _core.Image_HasOption(*args, **kwargs) + return _core_.Image_HasOption(*args, **kwargs) def CountColours(*args, **kwargs): """CountColours(self, unsigned long stopafter=(unsigned long) -1) -> unsigned long""" - return _core.Image_CountColours(*args, **kwargs) + return _core_.Image_CountColours(*args, **kwargs) def ComputeHistogram(*args, **kwargs): """ComputeHistogram(self, ImageHistogram h) -> unsigned long""" - return _core.Image_ComputeHistogram(*args, **kwargs) + return _core_.Image_ComputeHistogram(*args, **kwargs) def AddHandler(*args, **kwargs): """Image.AddHandler(ImageHandler handler)""" - return _core.Image_AddHandler(*args, **kwargs) + return _core_.Image_AddHandler(*args, **kwargs) AddHandler = staticmethod(AddHandler) def InsertHandler(*args, **kwargs): """Image.InsertHandler(ImageHandler handler)""" - return _core.Image_InsertHandler(*args, **kwargs) + return _core_.Image_InsertHandler(*args, **kwargs) InsertHandler = staticmethod(InsertHandler) def RemoveHandler(*args, **kwargs): """Image.RemoveHandler(String name) -> bool""" - return _core.Image_RemoveHandler(*args, **kwargs) + return _core_.Image_RemoveHandler(*args, **kwargs) RemoveHandler = staticmethod(RemoveHandler) def GetImageExtWildcard(*args, **kwargs): """Image.GetImageExtWildcard() -> String""" - return _core.Image_GetImageExtWildcard(*args, **kwargs) + return _core_.Image_GetImageExtWildcard(*args, **kwargs) GetImageExtWildcard = staticmethod(GetImageExtWildcard) def ConvertToBitmap(*args, **kwargs): """ConvertToBitmap(self) -> Bitmap""" - return _core.Image_ConvertToBitmap(*args, **kwargs) + return _core_.Image_ConvertToBitmap(*args, **kwargs) def ConvertToMonoBitmap(*args, **kwargs): """ConvertToMonoBitmap(self, unsigned char red, unsigned char green, unsigned char blue) -> Bitmap""" - return _core.Image_ConvertToMonoBitmap(*args, **kwargs) + return _core_.Image_ConvertToMonoBitmap(*args, **kwargs) def __nonzero__(self): return self.Ok() @@ -2253,23 +2253,23 @@ class ImagePtr(Image): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = Image -_core.Image_swigregister(ImagePtr) +_core_.Image_swigregister(ImagePtr) def ImageFromMime(*args, **kwargs): """ImageFromMime(String name, String mimetype, int index=-1) -> Image""" - val = _core.new_ImageFromMime(*args, **kwargs) + val = _core_.new_ImageFromMime(*args, **kwargs) val.thisown = 1 return val def ImageFromStream(*args, **kwargs): """ImageFromStream(InputStream stream, long type=BITMAP_TYPE_ANY, int index=-1) -> Image""" - val = _core.new_ImageFromStream(*args, **kwargs) + val = _core_.new_ImageFromStream(*args, **kwargs) val.thisown = 1 return val def ImageFromStreamMime(*args, **kwargs): """ImageFromStreamMime(InputStream stream, String mimetype, int index=-1) -> Image""" - val = _core.new_ImageFromStreamMime(*args, **kwargs) + val = _core_.new_ImageFromStreamMime(*args, **kwargs) val.thisown = 1 return val @@ -2278,71 +2278,71 @@ def EmptyImage(*args): EmptyImage(int width=0, int height=0, bool clear=True) -> Image EmptyImage(Size size, bool clear=True) -> Image """ - val = _core.new_EmptyImage(*args) + val = _core_.new_EmptyImage(*args) val.thisown = 1 return val def ImageFromBitmap(*args, **kwargs): """ImageFromBitmap(Bitmap bitmap) -> Image""" - val = _core.new_ImageFromBitmap(*args, **kwargs) + val = _core_.new_ImageFromBitmap(*args, **kwargs) val.thisown = 1 return val def ImageFromData(*args, **kwargs): """ImageFromData(int width, int height, unsigned char data) -> Image""" - val = _core.new_ImageFromData(*args, **kwargs) + val = _core_.new_ImageFromData(*args, **kwargs) val.thisown = 1 return val def Image_CanRead(*args, **kwargs): """Image_CanRead(String name) -> bool""" - return _core.Image_CanRead(*args, **kwargs) + return _core_.Image_CanRead(*args, **kwargs) def Image_GetImageCount(*args, **kwargs): """Image_GetImageCount(String name, long type=BITMAP_TYPE_ANY) -> int""" - return _core.Image_GetImageCount(*args, **kwargs) + return _core_.Image_GetImageCount(*args, **kwargs) def Image_CanReadStream(*args, **kwargs): """Image_CanReadStream(InputStream stream) -> bool""" - return _core.Image_CanReadStream(*args, **kwargs) + return _core_.Image_CanReadStream(*args, **kwargs) def Image_AddHandler(*args, **kwargs): """Image_AddHandler(ImageHandler handler)""" - return _core.Image_AddHandler(*args, **kwargs) + return _core_.Image_AddHandler(*args, **kwargs) def Image_InsertHandler(*args, **kwargs): """Image_InsertHandler(ImageHandler handler)""" - return _core.Image_InsertHandler(*args, **kwargs) + return _core_.Image_InsertHandler(*args, **kwargs) def Image_RemoveHandler(*args, **kwargs): """Image_RemoveHandler(String name) -> bool""" - return _core.Image_RemoveHandler(*args, **kwargs) + return _core_.Image_RemoveHandler(*args, **kwargs) def Image_GetImageExtWildcard(*args, **kwargs): """Image_GetImageExtWildcard() -> String""" - return _core.Image_GetImageExtWildcard(*args, **kwargs) + return _core_.Image_GetImageExtWildcard(*args, **kwargs) def InitAllImageHandlers(*args, **kwargs): """InitAllImageHandlers()""" - return _core.InitAllImageHandlers(*args, **kwargs) -IMAGE_RESOLUTION_INCHES = _core.IMAGE_RESOLUTION_INCHES -IMAGE_RESOLUTION_CM = _core.IMAGE_RESOLUTION_CM -BMP_24BPP = _core.BMP_24BPP -BMP_8BPP = _core.BMP_8BPP -BMP_8BPP_GREY = _core.BMP_8BPP_GREY -BMP_8BPP_GRAY = _core.BMP_8BPP_GRAY -BMP_8BPP_RED = _core.BMP_8BPP_RED -BMP_8BPP_PALETTE = _core.BMP_8BPP_PALETTE -BMP_4BPP = _core.BMP_4BPP -BMP_1BPP = _core.BMP_1BPP -BMP_1BPP_BW = _core.BMP_1BPP_BW + return _core_.InitAllImageHandlers(*args, **kwargs) +IMAGE_RESOLUTION_INCHES = _core_.IMAGE_RESOLUTION_INCHES +IMAGE_RESOLUTION_CM = _core_.IMAGE_RESOLUTION_CM +BMP_24BPP = _core_.BMP_24BPP +BMP_8BPP = _core_.BMP_8BPP +BMP_8BPP_GREY = _core_.BMP_8BPP_GREY +BMP_8BPP_GRAY = _core_.BMP_8BPP_GRAY +BMP_8BPP_RED = _core_.BMP_8BPP_RED +BMP_8BPP_PALETTE = _core_.BMP_8BPP_PALETTE +BMP_4BPP = _core_.BMP_4BPP +BMP_1BPP = _core_.BMP_1BPP +BMP_1BPP_BW = _core_.BMP_1BPP_BW class BMPHandler(ImageHandler): def __repr__(self): return "<%s.%s; proxy of C++ wxBMPHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> BMPHandler""" - newobj = _core.new_BMPHandler(*args, **kwargs) + newobj = _core_.new_BMPHandler(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -2352,7 +2352,7 @@ class BMPHandlerPtr(BMPHandler): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = BMPHandler -_core.BMPHandler_swigregister(BMPHandlerPtr) +_core_.BMPHandler_swigregister(BMPHandlerPtr) NullImage = cvar.NullImage IMAGE_OPTION_BMP_FORMAT = cvar.IMAGE_OPTION_BMP_FORMAT IMAGE_OPTION_CUR_HOTSPOT_X = cvar.IMAGE_OPTION_CUR_HOTSPOT_X @@ -2365,7 +2365,7 @@ class ICOHandler(BMPHandler): return "<%s.%s; proxy of C++ wxICOHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> ICOHandler""" - newobj = _core.new_ICOHandler(*args, **kwargs) + newobj = _core_.new_ICOHandler(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -2375,14 +2375,14 @@ class ICOHandlerPtr(ICOHandler): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = ICOHandler -_core.ICOHandler_swigregister(ICOHandlerPtr) +_core_.ICOHandler_swigregister(ICOHandlerPtr) class CURHandler(ICOHandler): def __repr__(self): return "<%s.%s; proxy of C++ wxCURHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> CURHandler""" - newobj = _core.new_CURHandler(*args, **kwargs) + newobj = _core_.new_CURHandler(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -2392,14 +2392,14 @@ class CURHandlerPtr(CURHandler): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = CURHandler -_core.CURHandler_swigregister(CURHandlerPtr) +_core_.CURHandler_swigregister(CURHandlerPtr) class ANIHandler(CURHandler): def __repr__(self): return "<%s.%s; proxy of C++ wxANIHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> ANIHandler""" - newobj = _core.new_ANIHandler(*args, **kwargs) + newobj = _core_.new_ANIHandler(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -2409,14 +2409,14 @@ class ANIHandlerPtr(ANIHandler): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = ANIHandler -_core.ANIHandler_swigregister(ANIHandlerPtr) +_core_.ANIHandler_swigregister(ANIHandlerPtr) class PNGHandler(ImageHandler): def __repr__(self): return "<%s.%s; proxy of C++ wxPNGHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> PNGHandler""" - newobj = _core.new_PNGHandler(*args, **kwargs) + newobj = _core_.new_PNGHandler(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -2426,14 +2426,14 @@ class PNGHandlerPtr(PNGHandler): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = PNGHandler -_core.PNGHandler_swigregister(PNGHandlerPtr) +_core_.PNGHandler_swigregister(PNGHandlerPtr) class GIFHandler(ImageHandler): def __repr__(self): return "<%s.%s; proxy of C++ wxGIFHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> GIFHandler""" - newobj = _core.new_GIFHandler(*args, **kwargs) + newobj = _core_.new_GIFHandler(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -2443,14 +2443,14 @@ class GIFHandlerPtr(GIFHandler): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = GIFHandler -_core.GIFHandler_swigregister(GIFHandlerPtr) +_core_.GIFHandler_swigregister(GIFHandlerPtr) class PCXHandler(ImageHandler): def __repr__(self): return "<%s.%s; proxy of C++ wxPCXHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> PCXHandler""" - newobj = _core.new_PCXHandler(*args, **kwargs) + newobj = _core_.new_PCXHandler(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -2460,14 +2460,14 @@ class PCXHandlerPtr(PCXHandler): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = PCXHandler -_core.PCXHandler_swigregister(PCXHandlerPtr) +_core_.PCXHandler_swigregister(PCXHandlerPtr) class JPEGHandler(ImageHandler): def __repr__(self): return "<%s.%s; proxy of C++ wxJPEGHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> JPEGHandler""" - newobj = _core.new_JPEGHandler(*args, **kwargs) + newobj = _core_.new_JPEGHandler(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -2477,14 +2477,14 @@ class JPEGHandlerPtr(JPEGHandler): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = JPEGHandler -_core.JPEGHandler_swigregister(JPEGHandlerPtr) +_core_.JPEGHandler_swigregister(JPEGHandlerPtr) class PNMHandler(ImageHandler): def __repr__(self): return "<%s.%s; proxy of C++ wxPNMHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> PNMHandler""" - newobj = _core.new_PNMHandler(*args, **kwargs) + newobj = _core_.new_PNMHandler(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -2494,14 +2494,14 @@ class PNMHandlerPtr(PNMHandler): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = PNMHandler -_core.PNMHandler_swigregister(PNMHandlerPtr) +_core_.PNMHandler_swigregister(PNMHandlerPtr) class XPMHandler(ImageHandler): def __repr__(self): return "<%s.%s; proxy of C++ wxXPMHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> XPMHandler""" - newobj = _core.new_XPMHandler(*args, **kwargs) + newobj = _core_.new_XPMHandler(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -2511,14 +2511,14 @@ class XPMHandlerPtr(XPMHandler): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = XPMHandler -_core.XPMHandler_swigregister(XPMHandlerPtr) +_core_.XPMHandler_swigregister(XPMHandlerPtr) class TIFFHandler(ImageHandler): def __repr__(self): return "<%s.%s; proxy of C++ wxTIFFHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> TIFFHandler""" - newobj = _core.new_TIFFHandler(*args, **kwargs) + newobj = _core_.new_TIFFHandler(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -2528,7 +2528,7 @@ class TIFFHandlerPtr(TIFFHandler): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = TIFFHandler -_core.TIFFHandler_swigregister(TIFFHandlerPtr) +_core_.TIFFHandler_swigregister(TIFFHandlerPtr) #--------------------------------------------------------------------------- @@ -2537,57 +2537,57 @@ class EvtHandler(Object): return "<%s.%s; proxy of C++ wxEvtHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> EvtHandler""" - newobj = _core.new_EvtHandler(*args, **kwargs) + newobj = _core_.new_EvtHandler(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def GetNextHandler(*args, **kwargs): """GetNextHandler(self) -> EvtHandler""" - return _core.EvtHandler_GetNextHandler(*args, **kwargs) + return _core_.EvtHandler_GetNextHandler(*args, **kwargs) def GetPreviousHandler(*args, **kwargs): """GetPreviousHandler(self) -> EvtHandler""" - return _core.EvtHandler_GetPreviousHandler(*args, **kwargs) + return _core_.EvtHandler_GetPreviousHandler(*args, **kwargs) def SetNextHandler(*args, **kwargs): """SetNextHandler(self, EvtHandler handler)""" - return _core.EvtHandler_SetNextHandler(*args, **kwargs) + return _core_.EvtHandler_SetNextHandler(*args, **kwargs) def SetPreviousHandler(*args, **kwargs): """SetPreviousHandler(self, EvtHandler handler)""" - return _core.EvtHandler_SetPreviousHandler(*args, **kwargs) + return _core_.EvtHandler_SetPreviousHandler(*args, **kwargs) def GetEvtHandlerEnabled(*args, **kwargs): """GetEvtHandlerEnabled(self) -> bool""" - return _core.EvtHandler_GetEvtHandlerEnabled(*args, **kwargs) + return _core_.EvtHandler_GetEvtHandlerEnabled(*args, **kwargs) def SetEvtHandlerEnabled(*args, **kwargs): """SetEvtHandlerEnabled(self, bool enabled)""" - return _core.EvtHandler_SetEvtHandlerEnabled(*args, **kwargs) + return _core_.EvtHandler_SetEvtHandlerEnabled(*args, **kwargs) def ProcessEvent(*args, **kwargs): """ProcessEvent(self, Event event) -> bool""" - return _core.EvtHandler_ProcessEvent(*args, **kwargs) + return _core_.EvtHandler_ProcessEvent(*args, **kwargs) def AddPendingEvent(*args, **kwargs): """AddPendingEvent(self, Event event)""" - return _core.EvtHandler_AddPendingEvent(*args, **kwargs) + return _core_.EvtHandler_AddPendingEvent(*args, **kwargs) def ProcessPendingEvents(*args, **kwargs): """ProcessPendingEvents(self)""" - return _core.EvtHandler_ProcessPendingEvents(*args, **kwargs) + return _core_.EvtHandler_ProcessPendingEvents(*args, **kwargs) def Connect(*args, **kwargs): """Connect(self, int id, int lastId, int eventType, PyObject func)""" - return _core.EvtHandler_Connect(*args, **kwargs) + return _core_.EvtHandler_Connect(*args, **kwargs) def Disconnect(*args, **kwargs): """Disconnect(self, int id, int lastId=-1, wxEventType eventType=wxEVT_NULL) -> bool""" - return _core.EvtHandler_Disconnect(*args, **kwargs) + return _core_.EvtHandler_Disconnect(*args, **kwargs) def _setOORInfo(*args, **kwargs): """_setOORInfo(self, PyObject _self)""" - return _core.EvtHandler__setOORInfo(*args, **kwargs) + return _core_.EvtHandler__setOORInfo(*args, **kwargs) def Bind(self, event, handler, source=None, id=wx.ID_ANY, id2=wx.ID_ANY): """ @@ -2621,7 +2621,7 @@ class EvtHandlerPtr(EvtHandler): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = EvtHandler -_core.EvtHandler_swigregister(EvtHandlerPtr) +_core_.EvtHandler_swigregister(EvtHandlerPtr) #--------------------------------------------------------------------------- @@ -2684,126 +2684,126 @@ def EVT_COMMAND_RANGE(win, id1, id2, cmd, func): #--------------------------------------------------------------------------- -EVENT_PROPAGATE_NONE = _core.EVENT_PROPAGATE_NONE -EVENT_PROPAGATE_MAX = _core.EVENT_PROPAGATE_MAX +EVENT_PROPAGATE_NONE = _core_.EVENT_PROPAGATE_NONE +EVENT_PROPAGATE_MAX = _core_.EVENT_PROPAGATE_MAX def NewEventType(*args, **kwargs): """NewEventType() -> wxEventType""" - return _core.NewEventType(*args, **kwargs) -wxEVT_NULL = _core.wxEVT_NULL -wxEVT_FIRST = _core.wxEVT_FIRST -wxEVT_USER_FIRST = _core.wxEVT_USER_FIRST -wxEVT_COMMAND_BUTTON_CLICKED = _core.wxEVT_COMMAND_BUTTON_CLICKED -wxEVT_COMMAND_CHECKBOX_CLICKED = _core.wxEVT_COMMAND_CHECKBOX_CLICKED -wxEVT_COMMAND_CHOICE_SELECTED = _core.wxEVT_COMMAND_CHOICE_SELECTED -wxEVT_COMMAND_LISTBOX_SELECTED = _core.wxEVT_COMMAND_LISTBOX_SELECTED -wxEVT_COMMAND_LISTBOX_DOUBLECLICKED = _core.wxEVT_COMMAND_LISTBOX_DOUBLECLICKED -wxEVT_COMMAND_CHECKLISTBOX_TOGGLED = _core.wxEVT_COMMAND_CHECKLISTBOX_TOGGLED -wxEVT_COMMAND_MENU_SELECTED = _core.wxEVT_COMMAND_MENU_SELECTED -wxEVT_COMMAND_TOOL_CLICKED = _core.wxEVT_COMMAND_TOOL_CLICKED -wxEVT_COMMAND_SLIDER_UPDATED = _core.wxEVT_COMMAND_SLIDER_UPDATED -wxEVT_COMMAND_RADIOBOX_SELECTED = _core.wxEVT_COMMAND_RADIOBOX_SELECTED -wxEVT_COMMAND_RADIOBUTTON_SELECTED = _core.wxEVT_COMMAND_RADIOBUTTON_SELECTED -wxEVT_COMMAND_SCROLLBAR_UPDATED = _core.wxEVT_COMMAND_SCROLLBAR_UPDATED -wxEVT_COMMAND_VLBOX_SELECTED = _core.wxEVT_COMMAND_VLBOX_SELECTED -wxEVT_COMMAND_COMBOBOX_SELECTED = _core.wxEVT_COMMAND_COMBOBOX_SELECTED -wxEVT_COMMAND_TOOL_RCLICKED = _core.wxEVT_COMMAND_TOOL_RCLICKED -wxEVT_COMMAND_TOOL_ENTER = _core.wxEVT_COMMAND_TOOL_ENTER -wxEVT_LEFT_DOWN = _core.wxEVT_LEFT_DOWN -wxEVT_LEFT_UP = _core.wxEVT_LEFT_UP -wxEVT_MIDDLE_DOWN = _core.wxEVT_MIDDLE_DOWN -wxEVT_MIDDLE_UP = _core.wxEVT_MIDDLE_UP -wxEVT_RIGHT_DOWN = _core.wxEVT_RIGHT_DOWN -wxEVT_RIGHT_UP = _core.wxEVT_RIGHT_UP -wxEVT_MOTION = _core.wxEVT_MOTION -wxEVT_ENTER_WINDOW = _core.wxEVT_ENTER_WINDOW -wxEVT_LEAVE_WINDOW = _core.wxEVT_LEAVE_WINDOW -wxEVT_LEFT_DCLICK = _core.wxEVT_LEFT_DCLICK -wxEVT_MIDDLE_DCLICK = _core.wxEVT_MIDDLE_DCLICK -wxEVT_RIGHT_DCLICK = _core.wxEVT_RIGHT_DCLICK -wxEVT_SET_FOCUS = _core.wxEVT_SET_FOCUS -wxEVT_KILL_FOCUS = _core.wxEVT_KILL_FOCUS -wxEVT_CHILD_FOCUS = _core.wxEVT_CHILD_FOCUS -wxEVT_MOUSEWHEEL = _core.wxEVT_MOUSEWHEEL -wxEVT_NC_LEFT_DOWN = _core.wxEVT_NC_LEFT_DOWN -wxEVT_NC_LEFT_UP = _core.wxEVT_NC_LEFT_UP -wxEVT_NC_MIDDLE_DOWN = _core.wxEVT_NC_MIDDLE_DOWN -wxEVT_NC_MIDDLE_UP = _core.wxEVT_NC_MIDDLE_UP -wxEVT_NC_RIGHT_DOWN = _core.wxEVT_NC_RIGHT_DOWN -wxEVT_NC_RIGHT_UP = _core.wxEVT_NC_RIGHT_UP -wxEVT_NC_MOTION = _core.wxEVT_NC_MOTION -wxEVT_NC_ENTER_WINDOW = _core.wxEVT_NC_ENTER_WINDOW -wxEVT_NC_LEAVE_WINDOW = _core.wxEVT_NC_LEAVE_WINDOW -wxEVT_NC_LEFT_DCLICK = _core.wxEVT_NC_LEFT_DCLICK -wxEVT_NC_MIDDLE_DCLICK = _core.wxEVT_NC_MIDDLE_DCLICK -wxEVT_NC_RIGHT_DCLICK = _core.wxEVT_NC_RIGHT_DCLICK -wxEVT_CHAR = _core.wxEVT_CHAR -wxEVT_CHAR_HOOK = _core.wxEVT_CHAR_HOOK -wxEVT_NAVIGATION_KEY = _core.wxEVT_NAVIGATION_KEY -wxEVT_KEY_DOWN = _core.wxEVT_KEY_DOWN -wxEVT_KEY_UP = _core.wxEVT_KEY_UP -wxEVT_HOTKEY = _core.wxEVT_HOTKEY -wxEVT_SET_CURSOR = _core.wxEVT_SET_CURSOR -wxEVT_SCROLL_TOP = _core.wxEVT_SCROLL_TOP -wxEVT_SCROLL_BOTTOM = _core.wxEVT_SCROLL_BOTTOM -wxEVT_SCROLL_LINEUP = _core.wxEVT_SCROLL_LINEUP -wxEVT_SCROLL_LINEDOWN = _core.wxEVT_SCROLL_LINEDOWN -wxEVT_SCROLL_PAGEUP = _core.wxEVT_SCROLL_PAGEUP -wxEVT_SCROLL_PAGEDOWN = _core.wxEVT_SCROLL_PAGEDOWN -wxEVT_SCROLL_THUMBTRACK = _core.wxEVT_SCROLL_THUMBTRACK -wxEVT_SCROLL_THUMBRELEASE = _core.wxEVT_SCROLL_THUMBRELEASE -wxEVT_SCROLL_ENDSCROLL = _core.wxEVT_SCROLL_ENDSCROLL -wxEVT_SCROLLWIN_TOP = _core.wxEVT_SCROLLWIN_TOP -wxEVT_SCROLLWIN_BOTTOM = _core.wxEVT_SCROLLWIN_BOTTOM -wxEVT_SCROLLWIN_LINEUP = _core.wxEVT_SCROLLWIN_LINEUP -wxEVT_SCROLLWIN_LINEDOWN = _core.wxEVT_SCROLLWIN_LINEDOWN -wxEVT_SCROLLWIN_PAGEUP = _core.wxEVT_SCROLLWIN_PAGEUP -wxEVT_SCROLLWIN_PAGEDOWN = _core.wxEVT_SCROLLWIN_PAGEDOWN -wxEVT_SCROLLWIN_THUMBTRACK = _core.wxEVT_SCROLLWIN_THUMBTRACK -wxEVT_SCROLLWIN_THUMBRELEASE = _core.wxEVT_SCROLLWIN_THUMBRELEASE -wxEVT_SIZE = _core.wxEVT_SIZE -wxEVT_MOVE = _core.wxEVT_MOVE -wxEVT_CLOSE_WINDOW = _core.wxEVT_CLOSE_WINDOW -wxEVT_END_SESSION = _core.wxEVT_END_SESSION -wxEVT_QUERY_END_SESSION = _core.wxEVT_QUERY_END_SESSION -wxEVT_ACTIVATE_APP = _core.wxEVT_ACTIVATE_APP -wxEVT_POWER = _core.wxEVT_POWER -wxEVT_ACTIVATE = _core.wxEVT_ACTIVATE -wxEVT_CREATE = _core.wxEVT_CREATE -wxEVT_DESTROY = _core.wxEVT_DESTROY -wxEVT_SHOW = _core.wxEVT_SHOW -wxEVT_ICONIZE = _core.wxEVT_ICONIZE -wxEVT_MAXIMIZE = _core.wxEVT_MAXIMIZE -wxEVT_MOUSE_CAPTURE_CHANGED = _core.wxEVT_MOUSE_CAPTURE_CHANGED -wxEVT_PAINT = _core.wxEVT_PAINT -wxEVT_ERASE_BACKGROUND = _core.wxEVT_ERASE_BACKGROUND -wxEVT_NC_PAINT = _core.wxEVT_NC_PAINT -wxEVT_PAINT_ICON = _core.wxEVT_PAINT_ICON -wxEVT_MENU_OPEN = _core.wxEVT_MENU_OPEN -wxEVT_MENU_CLOSE = _core.wxEVT_MENU_CLOSE -wxEVT_MENU_HIGHLIGHT = _core.wxEVT_MENU_HIGHLIGHT -wxEVT_CONTEXT_MENU = _core.wxEVT_CONTEXT_MENU -wxEVT_SYS_COLOUR_CHANGED = _core.wxEVT_SYS_COLOUR_CHANGED -wxEVT_DISPLAY_CHANGED = _core.wxEVT_DISPLAY_CHANGED -wxEVT_SETTING_CHANGED = _core.wxEVT_SETTING_CHANGED -wxEVT_QUERY_NEW_PALETTE = _core.wxEVT_QUERY_NEW_PALETTE -wxEVT_PALETTE_CHANGED = _core.wxEVT_PALETTE_CHANGED -wxEVT_DROP_FILES = _core.wxEVT_DROP_FILES -wxEVT_DRAW_ITEM = _core.wxEVT_DRAW_ITEM -wxEVT_MEASURE_ITEM = _core.wxEVT_MEASURE_ITEM -wxEVT_COMPARE_ITEM = _core.wxEVT_COMPARE_ITEM -wxEVT_INIT_DIALOG = _core.wxEVT_INIT_DIALOG -wxEVT_IDLE = _core.wxEVT_IDLE -wxEVT_UPDATE_UI = _core.wxEVT_UPDATE_UI -wxEVT_SIZING = _core.wxEVT_SIZING -wxEVT_MOVING = _core.wxEVT_MOVING -wxEVT_COMMAND_LEFT_CLICK = _core.wxEVT_COMMAND_LEFT_CLICK -wxEVT_COMMAND_LEFT_DCLICK = _core.wxEVT_COMMAND_LEFT_DCLICK -wxEVT_COMMAND_RIGHT_CLICK = _core.wxEVT_COMMAND_RIGHT_CLICK -wxEVT_COMMAND_RIGHT_DCLICK = _core.wxEVT_COMMAND_RIGHT_DCLICK -wxEVT_COMMAND_SET_FOCUS = _core.wxEVT_COMMAND_SET_FOCUS -wxEVT_COMMAND_KILL_FOCUS = _core.wxEVT_COMMAND_KILL_FOCUS -wxEVT_COMMAND_ENTER = _core.wxEVT_COMMAND_ENTER + return _core_.NewEventType(*args, **kwargs) +wxEVT_NULL = _core_.wxEVT_NULL +wxEVT_FIRST = _core_.wxEVT_FIRST +wxEVT_USER_FIRST = _core_.wxEVT_USER_FIRST +wxEVT_COMMAND_BUTTON_CLICKED = _core_.wxEVT_COMMAND_BUTTON_CLICKED +wxEVT_COMMAND_CHECKBOX_CLICKED = _core_.wxEVT_COMMAND_CHECKBOX_CLICKED +wxEVT_COMMAND_CHOICE_SELECTED = _core_.wxEVT_COMMAND_CHOICE_SELECTED +wxEVT_COMMAND_LISTBOX_SELECTED = _core_.wxEVT_COMMAND_LISTBOX_SELECTED +wxEVT_COMMAND_LISTBOX_DOUBLECLICKED = _core_.wxEVT_COMMAND_LISTBOX_DOUBLECLICKED +wxEVT_COMMAND_CHECKLISTBOX_TOGGLED = _core_.wxEVT_COMMAND_CHECKLISTBOX_TOGGLED +wxEVT_COMMAND_MENU_SELECTED = _core_.wxEVT_COMMAND_MENU_SELECTED +wxEVT_COMMAND_TOOL_CLICKED = _core_.wxEVT_COMMAND_TOOL_CLICKED +wxEVT_COMMAND_SLIDER_UPDATED = _core_.wxEVT_COMMAND_SLIDER_UPDATED +wxEVT_COMMAND_RADIOBOX_SELECTED = _core_.wxEVT_COMMAND_RADIOBOX_SELECTED +wxEVT_COMMAND_RADIOBUTTON_SELECTED = _core_.wxEVT_COMMAND_RADIOBUTTON_SELECTED +wxEVT_COMMAND_SCROLLBAR_UPDATED = _core_.wxEVT_COMMAND_SCROLLBAR_UPDATED +wxEVT_COMMAND_VLBOX_SELECTED = _core_.wxEVT_COMMAND_VLBOX_SELECTED +wxEVT_COMMAND_COMBOBOX_SELECTED = _core_.wxEVT_COMMAND_COMBOBOX_SELECTED +wxEVT_COMMAND_TOOL_RCLICKED = _core_.wxEVT_COMMAND_TOOL_RCLICKED +wxEVT_COMMAND_TOOL_ENTER = _core_.wxEVT_COMMAND_TOOL_ENTER +wxEVT_LEFT_DOWN = _core_.wxEVT_LEFT_DOWN +wxEVT_LEFT_UP = _core_.wxEVT_LEFT_UP +wxEVT_MIDDLE_DOWN = _core_.wxEVT_MIDDLE_DOWN +wxEVT_MIDDLE_UP = _core_.wxEVT_MIDDLE_UP +wxEVT_RIGHT_DOWN = _core_.wxEVT_RIGHT_DOWN +wxEVT_RIGHT_UP = _core_.wxEVT_RIGHT_UP +wxEVT_MOTION = _core_.wxEVT_MOTION +wxEVT_ENTER_WINDOW = _core_.wxEVT_ENTER_WINDOW +wxEVT_LEAVE_WINDOW = _core_.wxEVT_LEAVE_WINDOW +wxEVT_LEFT_DCLICK = _core_.wxEVT_LEFT_DCLICK +wxEVT_MIDDLE_DCLICK = _core_.wxEVT_MIDDLE_DCLICK +wxEVT_RIGHT_DCLICK = _core_.wxEVT_RIGHT_DCLICK +wxEVT_SET_FOCUS = _core_.wxEVT_SET_FOCUS +wxEVT_KILL_FOCUS = _core_.wxEVT_KILL_FOCUS +wxEVT_CHILD_FOCUS = _core_.wxEVT_CHILD_FOCUS +wxEVT_MOUSEWHEEL = _core_.wxEVT_MOUSEWHEEL +wxEVT_NC_LEFT_DOWN = _core_.wxEVT_NC_LEFT_DOWN +wxEVT_NC_LEFT_UP = _core_.wxEVT_NC_LEFT_UP +wxEVT_NC_MIDDLE_DOWN = _core_.wxEVT_NC_MIDDLE_DOWN +wxEVT_NC_MIDDLE_UP = _core_.wxEVT_NC_MIDDLE_UP +wxEVT_NC_RIGHT_DOWN = _core_.wxEVT_NC_RIGHT_DOWN +wxEVT_NC_RIGHT_UP = _core_.wxEVT_NC_RIGHT_UP +wxEVT_NC_MOTION = _core_.wxEVT_NC_MOTION +wxEVT_NC_ENTER_WINDOW = _core_.wxEVT_NC_ENTER_WINDOW +wxEVT_NC_LEAVE_WINDOW = _core_.wxEVT_NC_LEAVE_WINDOW +wxEVT_NC_LEFT_DCLICK = _core_.wxEVT_NC_LEFT_DCLICK +wxEVT_NC_MIDDLE_DCLICK = _core_.wxEVT_NC_MIDDLE_DCLICK +wxEVT_NC_RIGHT_DCLICK = _core_.wxEVT_NC_RIGHT_DCLICK +wxEVT_CHAR = _core_.wxEVT_CHAR +wxEVT_CHAR_HOOK = _core_.wxEVT_CHAR_HOOK +wxEVT_NAVIGATION_KEY = _core_.wxEVT_NAVIGATION_KEY +wxEVT_KEY_DOWN = _core_.wxEVT_KEY_DOWN +wxEVT_KEY_UP = _core_.wxEVT_KEY_UP +wxEVT_HOTKEY = _core_.wxEVT_HOTKEY +wxEVT_SET_CURSOR = _core_.wxEVT_SET_CURSOR +wxEVT_SCROLL_TOP = _core_.wxEVT_SCROLL_TOP +wxEVT_SCROLL_BOTTOM = _core_.wxEVT_SCROLL_BOTTOM +wxEVT_SCROLL_LINEUP = _core_.wxEVT_SCROLL_LINEUP +wxEVT_SCROLL_LINEDOWN = _core_.wxEVT_SCROLL_LINEDOWN +wxEVT_SCROLL_PAGEUP = _core_.wxEVT_SCROLL_PAGEUP +wxEVT_SCROLL_PAGEDOWN = _core_.wxEVT_SCROLL_PAGEDOWN +wxEVT_SCROLL_THUMBTRACK = _core_.wxEVT_SCROLL_THUMBTRACK +wxEVT_SCROLL_THUMBRELEASE = _core_.wxEVT_SCROLL_THUMBRELEASE +wxEVT_SCROLL_ENDSCROLL = _core_.wxEVT_SCROLL_ENDSCROLL +wxEVT_SCROLLWIN_TOP = _core_.wxEVT_SCROLLWIN_TOP +wxEVT_SCROLLWIN_BOTTOM = _core_.wxEVT_SCROLLWIN_BOTTOM +wxEVT_SCROLLWIN_LINEUP = _core_.wxEVT_SCROLLWIN_LINEUP +wxEVT_SCROLLWIN_LINEDOWN = _core_.wxEVT_SCROLLWIN_LINEDOWN +wxEVT_SCROLLWIN_PAGEUP = _core_.wxEVT_SCROLLWIN_PAGEUP +wxEVT_SCROLLWIN_PAGEDOWN = _core_.wxEVT_SCROLLWIN_PAGEDOWN +wxEVT_SCROLLWIN_THUMBTRACK = _core_.wxEVT_SCROLLWIN_THUMBTRACK +wxEVT_SCROLLWIN_THUMBRELEASE = _core_.wxEVT_SCROLLWIN_THUMBRELEASE +wxEVT_SIZE = _core_.wxEVT_SIZE +wxEVT_MOVE = _core_.wxEVT_MOVE +wxEVT_CLOSE_WINDOW = _core_.wxEVT_CLOSE_WINDOW +wxEVT_END_SESSION = _core_.wxEVT_END_SESSION +wxEVT_QUERY_END_SESSION = _core_.wxEVT_QUERY_END_SESSION +wxEVT_ACTIVATE_APP = _core_.wxEVT_ACTIVATE_APP +wxEVT_POWER = _core_.wxEVT_POWER +wxEVT_ACTIVATE = _core_.wxEVT_ACTIVATE +wxEVT_CREATE = _core_.wxEVT_CREATE +wxEVT_DESTROY = _core_.wxEVT_DESTROY +wxEVT_SHOW = _core_.wxEVT_SHOW +wxEVT_ICONIZE = _core_.wxEVT_ICONIZE +wxEVT_MAXIMIZE = _core_.wxEVT_MAXIMIZE +wxEVT_MOUSE_CAPTURE_CHANGED = _core_.wxEVT_MOUSE_CAPTURE_CHANGED +wxEVT_PAINT = _core_.wxEVT_PAINT +wxEVT_ERASE_BACKGROUND = _core_.wxEVT_ERASE_BACKGROUND +wxEVT_NC_PAINT = _core_.wxEVT_NC_PAINT +wxEVT_PAINT_ICON = _core_.wxEVT_PAINT_ICON +wxEVT_MENU_OPEN = _core_.wxEVT_MENU_OPEN +wxEVT_MENU_CLOSE = _core_.wxEVT_MENU_CLOSE +wxEVT_MENU_HIGHLIGHT = _core_.wxEVT_MENU_HIGHLIGHT +wxEVT_CONTEXT_MENU = _core_.wxEVT_CONTEXT_MENU +wxEVT_SYS_COLOUR_CHANGED = _core_.wxEVT_SYS_COLOUR_CHANGED +wxEVT_DISPLAY_CHANGED = _core_.wxEVT_DISPLAY_CHANGED +wxEVT_SETTING_CHANGED = _core_.wxEVT_SETTING_CHANGED +wxEVT_QUERY_NEW_PALETTE = _core_.wxEVT_QUERY_NEW_PALETTE +wxEVT_PALETTE_CHANGED = _core_.wxEVT_PALETTE_CHANGED +wxEVT_DROP_FILES = _core_.wxEVT_DROP_FILES +wxEVT_DRAW_ITEM = _core_.wxEVT_DRAW_ITEM +wxEVT_MEASURE_ITEM = _core_.wxEVT_MEASURE_ITEM +wxEVT_COMPARE_ITEM = _core_.wxEVT_COMPARE_ITEM +wxEVT_INIT_DIALOG = _core_.wxEVT_INIT_DIALOG +wxEVT_IDLE = _core_.wxEVT_IDLE +wxEVT_UPDATE_UI = _core_.wxEVT_UPDATE_UI +wxEVT_SIZING = _core_.wxEVT_SIZING +wxEVT_MOVING = _core_.wxEVT_MOVING +wxEVT_COMMAND_LEFT_CLICK = _core_.wxEVT_COMMAND_LEFT_CLICK +wxEVT_COMMAND_LEFT_DCLICK = _core_.wxEVT_COMMAND_LEFT_DCLICK +wxEVT_COMMAND_RIGHT_CLICK = _core_.wxEVT_COMMAND_RIGHT_CLICK +wxEVT_COMMAND_RIGHT_DCLICK = _core_.wxEVT_COMMAND_RIGHT_DCLICK +wxEVT_COMMAND_SET_FOCUS = _core_.wxEVT_COMMAND_SET_FOCUS +wxEVT_COMMAND_KILL_FOCUS = _core_.wxEVT_COMMAND_KILL_FOCUS +wxEVT_COMMAND_ENTER = _core_.wxEVT_COMMAND_ENTER # # Create some event binders EVT_SIZE = wx.PyEventBinder( wxEVT_SIZE ) @@ -2986,7 +2986,7 @@ class Event(Object): def __init__(self): raise RuntimeError, "No constructor defined" def __repr__(self): return "<%s.%s; proxy of C++ wxEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __del__(self, destroy=_core.delete_Event): + def __del__(self, destroy=_core_.delete_Event): """__del__(self)""" try: if self.thisown: destroy(self) @@ -2994,63 +2994,63 @@ class Event(Object): def SetEventType(*args, **kwargs): """SetEventType(self, wxEventType typ)""" - return _core.Event_SetEventType(*args, **kwargs) + return _core_.Event_SetEventType(*args, **kwargs) def GetEventType(*args, **kwargs): """GetEventType(self) -> wxEventType""" - return _core.Event_GetEventType(*args, **kwargs) + return _core_.Event_GetEventType(*args, **kwargs) def GetEventObject(*args, **kwargs): """GetEventObject(self) -> Object""" - return _core.Event_GetEventObject(*args, **kwargs) + return _core_.Event_GetEventObject(*args, **kwargs) def SetEventObject(*args, **kwargs): """SetEventObject(self, Object obj)""" - return _core.Event_SetEventObject(*args, **kwargs) + return _core_.Event_SetEventObject(*args, **kwargs) def GetTimestamp(*args, **kwargs): """GetTimestamp(self) -> long""" - return _core.Event_GetTimestamp(*args, **kwargs) + return _core_.Event_GetTimestamp(*args, **kwargs) def SetTimestamp(*args, **kwargs): """SetTimestamp(self, long ts=0)""" - return _core.Event_SetTimestamp(*args, **kwargs) + return _core_.Event_SetTimestamp(*args, **kwargs) def GetId(*args, **kwargs): """GetId(self) -> int""" - return _core.Event_GetId(*args, **kwargs) + return _core_.Event_GetId(*args, **kwargs) def SetId(*args, **kwargs): """SetId(self, int Id)""" - return _core.Event_SetId(*args, **kwargs) + return _core_.Event_SetId(*args, **kwargs) def IsCommandEvent(*args, **kwargs): """IsCommandEvent(self) -> bool""" - return _core.Event_IsCommandEvent(*args, **kwargs) + return _core_.Event_IsCommandEvent(*args, **kwargs) def Skip(*args, **kwargs): """Skip(self, bool skip=True)""" - return _core.Event_Skip(*args, **kwargs) + return _core_.Event_Skip(*args, **kwargs) def GetSkipped(*args, **kwargs): """GetSkipped(self) -> bool""" - return _core.Event_GetSkipped(*args, **kwargs) + return _core_.Event_GetSkipped(*args, **kwargs) def ShouldPropagate(*args, **kwargs): """ShouldPropagate(self) -> bool""" - return _core.Event_ShouldPropagate(*args, **kwargs) + return _core_.Event_ShouldPropagate(*args, **kwargs) def StopPropagation(*args, **kwargs): """StopPropagation(self) -> int""" - return _core.Event_StopPropagation(*args, **kwargs) + return _core_.Event_StopPropagation(*args, **kwargs) def ResumePropagation(*args, **kwargs): """ResumePropagation(self, int propagationLevel)""" - return _core.Event_ResumePropagation(*args, **kwargs) + return _core_.Event_ResumePropagation(*args, **kwargs) def Clone(*args, **kwargs): """Clone(self) -> Event""" - return _core.Event_Clone(*args, **kwargs) + return _core_.Event_Clone(*args, **kwargs) class EventPtr(Event): @@ -3058,7 +3058,7 @@ class EventPtr(Event): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = Event -_core.Event_swigregister(EventPtr) +_core_.Event_swigregister(EventPtr) #--------------------------------------------------------------------------- @@ -3067,11 +3067,11 @@ class PropagationDisabler(object): return "<%s.%s; proxy of C++ wxPropagationDisabler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, Event event) -> PropagationDisabler""" - newobj = _core.new_PropagationDisabler(*args, **kwargs) + newobj = _core_.new_PropagationDisabler(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_core.delete_PropagationDisabler): + def __del__(self, destroy=_core_.delete_PropagationDisabler): """__del__(self)""" try: if self.thisown: destroy(self) @@ -3083,18 +3083,18 @@ class PropagationDisablerPtr(PropagationDisabler): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = PropagationDisabler -_core.PropagationDisabler_swigregister(PropagationDisablerPtr) +_core_.PropagationDisabler_swigregister(PropagationDisablerPtr) class PropagateOnce(object): def __repr__(self): return "<%s.%s; proxy of C++ wxPropagateOnce instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, Event event) -> PropagateOnce""" - newobj = _core.new_PropagateOnce(*args, **kwargs) + newobj = _core_.new_PropagateOnce(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_core.delete_PropagateOnce): + def __del__(self, destroy=_core_.delete_PropagateOnce): """__del__(self)""" try: if self.thisown: destroy(self) @@ -3106,7 +3106,7 @@ class PropagateOncePtr(PropagateOnce): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = PropagateOnce -_core.PropagateOnce_swigregister(PropagateOncePtr) +_core_.PropagateOnce_swigregister(PropagateOncePtr) #--------------------------------------------------------------------------- @@ -3115,50 +3115,50 @@ class CommandEvent(Event): return "<%s.%s; proxy of C++ wxCommandEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, wxEventType commandType=wxEVT_NULL, int winid=0) -> CommandEvent""" - newobj = _core.new_CommandEvent(*args, **kwargs) + newobj = _core_.new_CommandEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def GetSelection(*args, **kwargs): """GetSelection(self) -> int""" - return _core.CommandEvent_GetSelection(*args, **kwargs) + return _core_.CommandEvent_GetSelection(*args, **kwargs) def SetString(*args, **kwargs): """SetString(self, String s)""" - return _core.CommandEvent_SetString(*args, **kwargs) + return _core_.CommandEvent_SetString(*args, **kwargs) def GetString(*args, **kwargs): """GetString(self) -> String""" - return _core.CommandEvent_GetString(*args, **kwargs) + return _core_.CommandEvent_GetString(*args, **kwargs) def IsChecked(*args, **kwargs): """IsChecked(self) -> bool""" - return _core.CommandEvent_IsChecked(*args, **kwargs) + return _core_.CommandEvent_IsChecked(*args, **kwargs) Checked = IsChecked def IsSelection(*args, **kwargs): """IsSelection(self) -> bool""" - return _core.CommandEvent_IsSelection(*args, **kwargs) + return _core_.CommandEvent_IsSelection(*args, **kwargs) def SetExtraLong(*args, **kwargs): """SetExtraLong(self, long extraLong)""" - return _core.CommandEvent_SetExtraLong(*args, **kwargs) + return _core_.CommandEvent_SetExtraLong(*args, **kwargs) def GetExtraLong(*args, **kwargs): """GetExtraLong(self) -> long""" - return _core.CommandEvent_GetExtraLong(*args, **kwargs) + return _core_.CommandEvent_GetExtraLong(*args, **kwargs) def SetInt(*args, **kwargs): """SetInt(self, int i)""" - return _core.CommandEvent_SetInt(*args, **kwargs) + return _core_.CommandEvent_SetInt(*args, **kwargs) def GetInt(*args, **kwargs): """GetInt(self) -> long""" - return _core.CommandEvent_GetInt(*args, **kwargs) + return _core_.CommandEvent_GetInt(*args, **kwargs) def Clone(*args, **kwargs): """Clone(self) -> Event""" - return _core.CommandEvent_Clone(*args, **kwargs) + return _core_.CommandEvent_Clone(*args, **kwargs) class CommandEventPtr(CommandEvent): @@ -3166,7 +3166,7 @@ class CommandEventPtr(CommandEvent): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = CommandEvent -_core.CommandEvent_swigregister(CommandEventPtr) +_core_.CommandEvent_swigregister(CommandEventPtr) #--------------------------------------------------------------------------- @@ -3175,21 +3175,21 @@ class NotifyEvent(CommandEvent): return "<%s.%s; proxy of C++ wxNotifyEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, wxEventType commandType=wxEVT_NULL, int winid=0) -> NotifyEvent""" - newobj = _core.new_NotifyEvent(*args, **kwargs) + newobj = _core_.new_NotifyEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def Veto(*args, **kwargs): """Veto(self)""" - return _core.NotifyEvent_Veto(*args, **kwargs) + return _core_.NotifyEvent_Veto(*args, **kwargs) def Allow(*args, **kwargs): """Allow(self)""" - return _core.NotifyEvent_Allow(*args, **kwargs) + return _core_.NotifyEvent_Allow(*args, **kwargs) def IsAllowed(*args, **kwargs): """IsAllowed(self) -> bool""" - return _core.NotifyEvent_IsAllowed(*args, **kwargs) + return _core_.NotifyEvent_IsAllowed(*args, **kwargs) class NotifyEventPtr(NotifyEvent): @@ -3197,7 +3197,7 @@ class NotifyEventPtr(NotifyEvent): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = NotifyEvent -_core.NotifyEvent_swigregister(NotifyEventPtr) +_core_.NotifyEvent_swigregister(NotifyEventPtr) #--------------------------------------------------------------------------- @@ -3209,25 +3209,25 @@ class ScrollEvent(CommandEvent): __init__(self, wxEventType commandType=wxEVT_NULL, int winid=0, int pos=0, int orient=0) -> ScrollEvent """ - newobj = _core.new_ScrollEvent(*args, **kwargs) + newobj = _core_.new_ScrollEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def GetOrientation(*args, **kwargs): """GetOrientation(self) -> int""" - return _core.ScrollEvent_GetOrientation(*args, **kwargs) + return _core_.ScrollEvent_GetOrientation(*args, **kwargs) def GetPosition(*args, **kwargs): """GetPosition(self) -> int""" - return _core.ScrollEvent_GetPosition(*args, **kwargs) + return _core_.ScrollEvent_GetPosition(*args, **kwargs) def SetOrientation(*args, **kwargs): """SetOrientation(self, int orient)""" - return _core.ScrollEvent_SetOrientation(*args, **kwargs) + return _core_.ScrollEvent_SetOrientation(*args, **kwargs) def SetPosition(*args, **kwargs): """SetPosition(self, int pos)""" - return _core.ScrollEvent_SetPosition(*args, **kwargs) + return _core_.ScrollEvent_SetPosition(*args, **kwargs) class ScrollEventPtr(ScrollEvent): @@ -3235,7 +3235,7 @@ class ScrollEventPtr(ScrollEvent): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = ScrollEvent -_core.ScrollEvent_swigregister(ScrollEventPtr) +_core_.ScrollEvent_swigregister(ScrollEventPtr) #--------------------------------------------------------------------------- @@ -3244,25 +3244,25 @@ class ScrollWinEvent(Event): return "<%s.%s; proxy of C++ wxScrollWinEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, wxEventType commandType=wxEVT_NULL, int pos=0, int orient=0) -> ScrollWinEvent""" - newobj = _core.new_ScrollWinEvent(*args, **kwargs) + newobj = _core_.new_ScrollWinEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def GetOrientation(*args, **kwargs): """GetOrientation(self) -> int""" - return _core.ScrollWinEvent_GetOrientation(*args, **kwargs) + return _core_.ScrollWinEvent_GetOrientation(*args, **kwargs) def GetPosition(*args, **kwargs): """GetPosition(self) -> int""" - return _core.ScrollWinEvent_GetPosition(*args, **kwargs) + return _core_.ScrollWinEvent_GetPosition(*args, **kwargs) def SetOrientation(*args, **kwargs): """SetOrientation(self, int orient)""" - return _core.ScrollWinEvent_SetOrientation(*args, **kwargs) + return _core_.ScrollWinEvent_SetOrientation(*args, **kwargs) def SetPosition(*args, **kwargs): """SetPosition(self, int pos)""" - return _core.ScrollWinEvent_SetPosition(*args, **kwargs) + return _core_.ScrollWinEvent_SetPosition(*args, **kwargs) class ScrollWinEventPtr(ScrollWinEvent): @@ -3270,131 +3270,131 @@ class ScrollWinEventPtr(ScrollWinEvent): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = ScrollWinEvent -_core.ScrollWinEvent_swigregister(ScrollWinEventPtr) +_core_.ScrollWinEvent_swigregister(ScrollWinEventPtr) #--------------------------------------------------------------------------- -MOUSE_BTN_ANY = _core.MOUSE_BTN_ANY -MOUSE_BTN_NONE = _core.MOUSE_BTN_NONE -MOUSE_BTN_LEFT = _core.MOUSE_BTN_LEFT -MOUSE_BTN_MIDDLE = _core.MOUSE_BTN_MIDDLE -MOUSE_BTN_RIGHT = _core.MOUSE_BTN_RIGHT +MOUSE_BTN_ANY = _core_.MOUSE_BTN_ANY +MOUSE_BTN_NONE = _core_.MOUSE_BTN_NONE +MOUSE_BTN_LEFT = _core_.MOUSE_BTN_LEFT +MOUSE_BTN_MIDDLE = _core_.MOUSE_BTN_MIDDLE +MOUSE_BTN_RIGHT = _core_.MOUSE_BTN_RIGHT class MouseEvent(Event): def __repr__(self): return "<%s.%s; proxy of C++ wxMouseEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, wxEventType mouseType=wxEVT_NULL) -> MouseEvent""" - newobj = _core.new_MouseEvent(*args, **kwargs) + newobj = _core_.new_MouseEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def IsButton(*args, **kwargs): """IsButton(self) -> bool""" - return _core.MouseEvent_IsButton(*args, **kwargs) + return _core_.MouseEvent_IsButton(*args, **kwargs) def ButtonDown(*args, **kwargs): """ButtonDown(self, int but=MOUSE_BTN_ANY) -> bool""" - return _core.MouseEvent_ButtonDown(*args, **kwargs) + return _core_.MouseEvent_ButtonDown(*args, **kwargs) def ButtonDClick(*args, **kwargs): """ButtonDClick(self, int but=MOUSE_BTN_ANY) -> bool""" - return _core.MouseEvent_ButtonDClick(*args, **kwargs) + return _core_.MouseEvent_ButtonDClick(*args, **kwargs) def ButtonUp(*args, **kwargs): """ButtonUp(self, int but=MOUSE_BTN_ANY) -> bool""" - return _core.MouseEvent_ButtonUp(*args, **kwargs) + return _core_.MouseEvent_ButtonUp(*args, **kwargs) def Button(*args, **kwargs): """Button(self, int but) -> bool""" - return _core.MouseEvent_Button(*args, **kwargs) + return _core_.MouseEvent_Button(*args, **kwargs) def ButtonIsDown(*args, **kwargs): """ButtonIsDown(self, int but) -> bool""" - return _core.MouseEvent_ButtonIsDown(*args, **kwargs) + return _core_.MouseEvent_ButtonIsDown(*args, **kwargs) def GetButton(*args, **kwargs): """GetButton(self) -> int""" - return _core.MouseEvent_GetButton(*args, **kwargs) + return _core_.MouseEvent_GetButton(*args, **kwargs) def ControlDown(*args, **kwargs): """ControlDown(self) -> bool""" - return _core.MouseEvent_ControlDown(*args, **kwargs) + return _core_.MouseEvent_ControlDown(*args, **kwargs) def MetaDown(*args, **kwargs): """MetaDown(self) -> bool""" - return _core.MouseEvent_MetaDown(*args, **kwargs) + return _core_.MouseEvent_MetaDown(*args, **kwargs) def AltDown(*args, **kwargs): """AltDown(self) -> bool""" - return _core.MouseEvent_AltDown(*args, **kwargs) + return _core_.MouseEvent_AltDown(*args, **kwargs) def ShiftDown(*args, **kwargs): """ShiftDown(self) -> bool""" - return _core.MouseEvent_ShiftDown(*args, **kwargs) + return _core_.MouseEvent_ShiftDown(*args, **kwargs) def LeftDown(*args, **kwargs): """LeftDown(self) -> bool""" - return _core.MouseEvent_LeftDown(*args, **kwargs) + return _core_.MouseEvent_LeftDown(*args, **kwargs) def MiddleDown(*args, **kwargs): """MiddleDown(self) -> bool""" - return _core.MouseEvent_MiddleDown(*args, **kwargs) + return _core_.MouseEvent_MiddleDown(*args, **kwargs) def RightDown(*args, **kwargs): """RightDown(self) -> bool""" - return _core.MouseEvent_RightDown(*args, **kwargs) + return _core_.MouseEvent_RightDown(*args, **kwargs) def LeftUp(*args, **kwargs): """LeftUp(self) -> bool""" - return _core.MouseEvent_LeftUp(*args, **kwargs) + return _core_.MouseEvent_LeftUp(*args, **kwargs) def MiddleUp(*args, **kwargs): """MiddleUp(self) -> bool""" - return _core.MouseEvent_MiddleUp(*args, **kwargs) + return _core_.MouseEvent_MiddleUp(*args, **kwargs) def RightUp(*args, **kwargs): """RightUp(self) -> bool""" - return _core.MouseEvent_RightUp(*args, **kwargs) + return _core_.MouseEvent_RightUp(*args, **kwargs) def LeftDClick(*args, **kwargs): """LeftDClick(self) -> bool""" - return _core.MouseEvent_LeftDClick(*args, **kwargs) + return _core_.MouseEvent_LeftDClick(*args, **kwargs) def MiddleDClick(*args, **kwargs): """MiddleDClick(self) -> bool""" - return _core.MouseEvent_MiddleDClick(*args, **kwargs) + return _core_.MouseEvent_MiddleDClick(*args, **kwargs) def RightDClick(*args, **kwargs): """RightDClick(self) -> bool""" - return _core.MouseEvent_RightDClick(*args, **kwargs) + return _core_.MouseEvent_RightDClick(*args, **kwargs) def LeftIsDown(*args, **kwargs): """LeftIsDown(self) -> bool""" - return _core.MouseEvent_LeftIsDown(*args, **kwargs) + return _core_.MouseEvent_LeftIsDown(*args, **kwargs) def MiddleIsDown(*args, **kwargs): """MiddleIsDown(self) -> bool""" - return _core.MouseEvent_MiddleIsDown(*args, **kwargs) + return _core_.MouseEvent_MiddleIsDown(*args, **kwargs) def RightIsDown(*args, **kwargs): """RightIsDown(self) -> bool""" - return _core.MouseEvent_RightIsDown(*args, **kwargs) + return _core_.MouseEvent_RightIsDown(*args, **kwargs) def Dragging(*args, **kwargs): """Dragging(self) -> bool""" - return _core.MouseEvent_Dragging(*args, **kwargs) + return _core_.MouseEvent_Dragging(*args, **kwargs) def Moving(*args, **kwargs): """Moving(self) -> bool""" - return _core.MouseEvent_Moving(*args, **kwargs) + return _core_.MouseEvent_Moving(*args, **kwargs) def Entering(*args, **kwargs): """Entering(self) -> bool""" - return _core.MouseEvent_Entering(*args, **kwargs) + return _core_.MouseEvent_Entering(*args, **kwargs) def Leaving(*args, **kwargs): """Leaving(self) -> bool""" - return _core.MouseEvent_Leaving(*args, **kwargs) + return _core_.MouseEvent_Leaving(*args, **kwargs) def GetPosition(*args, **kwargs): """ @@ -3402,7 +3402,7 @@ class MouseEvent(Event): Returns the position of the mouse in window coordinates when the event happened. """ - return _core.MouseEvent_GetPosition(*args, **kwargs) + return _core_.MouseEvent_GetPosition(*args, **kwargs) def GetPositionTuple(*args, **kwargs): """ @@ -3410,55 +3410,55 @@ class MouseEvent(Event): Returns the position of the mouse in window coordinates when the event happened. """ - return _core.MouseEvent_GetPositionTuple(*args, **kwargs) + return _core_.MouseEvent_GetPositionTuple(*args, **kwargs) def GetLogicalPosition(*args, **kwargs): """GetLogicalPosition(self, DC dc) -> Point""" - return _core.MouseEvent_GetLogicalPosition(*args, **kwargs) + return _core_.MouseEvent_GetLogicalPosition(*args, **kwargs) def GetX(*args, **kwargs): """GetX(self) -> int""" - return _core.MouseEvent_GetX(*args, **kwargs) + return _core_.MouseEvent_GetX(*args, **kwargs) def GetY(*args, **kwargs): """GetY(self) -> int""" - return _core.MouseEvent_GetY(*args, **kwargs) + return _core_.MouseEvent_GetY(*args, **kwargs) def GetWheelRotation(*args, **kwargs): """GetWheelRotation(self) -> int""" - return _core.MouseEvent_GetWheelRotation(*args, **kwargs) + return _core_.MouseEvent_GetWheelRotation(*args, **kwargs) def GetWheelDelta(*args, **kwargs): """GetWheelDelta(self) -> int""" - return _core.MouseEvent_GetWheelDelta(*args, **kwargs) + return _core_.MouseEvent_GetWheelDelta(*args, **kwargs) def GetLinesPerAction(*args, **kwargs): """GetLinesPerAction(self) -> int""" - return _core.MouseEvent_GetLinesPerAction(*args, **kwargs) + return _core_.MouseEvent_GetLinesPerAction(*args, **kwargs) def IsPageScroll(*args, **kwargs): """IsPageScroll(self) -> bool""" - return _core.MouseEvent_IsPageScroll(*args, **kwargs) - - m_x = property(_core.MouseEvent_m_x_get, _core.MouseEvent_m_x_set) - m_y = property(_core.MouseEvent_m_y_get, _core.MouseEvent_m_y_set) - m_leftDown = property(_core.MouseEvent_m_leftDown_get, _core.MouseEvent_m_leftDown_set) - m_middleDown = property(_core.MouseEvent_m_middleDown_get, _core.MouseEvent_m_middleDown_set) - m_rightDown = property(_core.MouseEvent_m_rightDown_get, _core.MouseEvent_m_rightDown_set) - m_controlDown = property(_core.MouseEvent_m_controlDown_get, _core.MouseEvent_m_controlDown_set) - m_shiftDown = property(_core.MouseEvent_m_shiftDown_get, _core.MouseEvent_m_shiftDown_set) - m_altDown = property(_core.MouseEvent_m_altDown_get, _core.MouseEvent_m_altDown_set) - m_metaDown = property(_core.MouseEvent_m_metaDown_get, _core.MouseEvent_m_metaDown_set) - m_wheelRotation = property(_core.MouseEvent_m_wheelRotation_get, _core.MouseEvent_m_wheelRotation_set) - m_wheelDelta = property(_core.MouseEvent_m_wheelDelta_get, _core.MouseEvent_m_wheelDelta_set) - m_linesPerAction = property(_core.MouseEvent_m_linesPerAction_get, _core.MouseEvent_m_linesPerAction_set) + return _core_.MouseEvent_IsPageScroll(*args, **kwargs) + + m_x = property(_core_.MouseEvent_m_x_get, _core_.MouseEvent_m_x_set) + m_y = property(_core_.MouseEvent_m_y_get, _core_.MouseEvent_m_y_set) + m_leftDown = property(_core_.MouseEvent_m_leftDown_get, _core_.MouseEvent_m_leftDown_set) + m_middleDown = property(_core_.MouseEvent_m_middleDown_get, _core_.MouseEvent_m_middleDown_set) + m_rightDown = property(_core_.MouseEvent_m_rightDown_get, _core_.MouseEvent_m_rightDown_set) + m_controlDown = property(_core_.MouseEvent_m_controlDown_get, _core_.MouseEvent_m_controlDown_set) + m_shiftDown = property(_core_.MouseEvent_m_shiftDown_get, _core_.MouseEvent_m_shiftDown_set) + m_altDown = property(_core_.MouseEvent_m_altDown_get, _core_.MouseEvent_m_altDown_set) + m_metaDown = property(_core_.MouseEvent_m_metaDown_get, _core_.MouseEvent_m_metaDown_set) + m_wheelRotation = property(_core_.MouseEvent_m_wheelRotation_get, _core_.MouseEvent_m_wheelRotation_set) + m_wheelDelta = property(_core_.MouseEvent_m_wheelDelta_get, _core_.MouseEvent_m_wheelDelta_set) + m_linesPerAction = property(_core_.MouseEvent_m_linesPerAction_get, _core_.MouseEvent_m_linesPerAction_set) class MouseEventPtr(MouseEvent): def __init__(self, this): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = MouseEvent -_core.MouseEvent_swigregister(MouseEventPtr) +_core_.MouseEvent_swigregister(MouseEventPtr) #--------------------------------------------------------------------------- @@ -3467,29 +3467,29 @@ class SetCursorEvent(Event): return "<%s.%s; proxy of C++ wxSetCursorEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, int x=0, int y=0) -> SetCursorEvent""" - newobj = _core.new_SetCursorEvent(*args, **kwargs) + newobj = _core_.new_SetCursorEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def GetX(*args, **kwargs): """GetX(self) -> int""" - return _core.SetCursorEvent_GetX(*args, **kwargs) + return _core_.SetCursorEvent_GetX(*args, **kwargs) def GetY(*args, **kwargs): """GetY(self) -> int""" - return _core.SetCursorEvent_GetY(*args, **kwargs) + return _core_.SetCursorEvent_GetY(*args, **kwargs) def SetCursor(*args, **kwargs): """SetCursor(self, Cursor cursor)""" - return _core.SetCursorEvent_SetCursor(*args, **kwargs) + return _core_.SetCursorEvent_SetCursor(*args, **kwargs) def GetCursor(*args, **kwargs): """GetCursor(self) -> Cursor""" - return _core.SetCursorEvent_GetCursor(*args, **kwargs) + return _core_.SetCursorEvent_GetCursor(*args, **kwargs) def HasCursor(*args, **kwargs): """HasCursor(self) -> bool""" - return _core.SetCursorEvent_HasCursor(*args, **kwargs) + return _core_.SetCursorEvent_HasCursor(*args, **kwargs) class SetCursorEventPtr(SetCursorEvent): @@ -3497,7 +3497,7 @@ class SetCursorEventPtr(SetCursorEvent): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = SetCursorEvent -_core.SetCursorEvent_swigregister(SetCursorEventPtr) +_core_.SetCursorEvent_swigregister(SetCursorEventPtr) #--------------------------------------------------------------------------- @@ -3506,46 +3506,46 @@ class KeyEvent(Event): return "<%s.%s; proxy of C++ wxKeyEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, wxEventType keyType=wxEVT_NULL) -> KeyEvent""" - newobj = _core.new_KeyEvent(*args, **kwargs) + newobj = _core_.new_KeyEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def ControlDown(*args, **kwargs): """ControlDown(self) -> bool""" - return _core.KeyEvent_ControlDown(*args, **kwargs) + return _core_.KeyEvent_ControlDown(*args, **kwargs) def MetaDown(*args, **kwargs): """MetaDown(self) -> bool""" - return _core.KeyEvent_MetaDown(*args, **kwargs) + return _core_.KeyEvent_MetaDown(*args, **kwargs) def AltDown(*args, **kwargs): """AltDown(self) -> bool""" - return _core.KeyEvent_AltDown(*args, **kwargs) + return _core_.KeyEvent_AltDown(*args, **kwargs) def ShiftDown(*args, **kwargs): """ShiftDown(self) -> bool""" - return _core.KeyEvent_ShiftDown(*args, **kwargs) + return _core_.KeyEvent_ShiftDown(*args, **kwargs) def HasModifiers(*args, **kwargs): """HasModifiers(self) -> bool""" - return _core.KeyEvent_HasModifiers(*args, **kwargs) + return _core_.KeyEvent_HasModifiers(*args, **kwargs) def GetKeyCode(*args, **kwargs): """GetKeyCode(self) -> int""" - return _core.KeyEvent_GetKeyCode(*args, **kwargs) + return _core_.KeyEvent_GetKeyCode(*args, **kwargs) KeyCode = GetKeyCode def GetUniChar(*args, **kwargs): """GetUniChar(self) -> int""" - return _core.KeyEvent_GetUniChar(*args, **kwargs) + return _core_.KeyEvent_GetUniChar(*args, **kwargs) def GetRawKeyCode(*args, **kwargs): """GetRawKeyCode(self) -> unsigned int""" - return _core.KeyEvent_GetRawKeyCode(*args, **kwargs) + return _core_.KeyEvent_GetRawKeyCode(*args, **kwargs) def GetRawKeyFlags(*args, **kwargs): """GetRawKeyFlags(self) -> unsigned int""" - return _core.KeyEvent_GetRawKeyFlags(*args, **kwargs) + return _core_.KeyEvent_GetRawKeyFlags(*args, **kwargs) def GetPosition(*args, **kwargs): """ @@ -3553,7 +3553,7 @@ class KeyEvent(Event): Find the position of the event. """ - return _core.KeyEvent_GetPosition(*args, **kwargs) + return _core_.KeyEvent_GetPosition(*args, **kwargs) def GetPositionTuple(*args, **kwargs): """ @@ -3561,33 +3561,33 @@ class KeyEvent(Event): Find the position of the event. """ - return _core.KeyEvent_GetPositionTuple(*args, **kwargs) + return _core_.KeyEvent_GetPositionTuple(*args, **kwargs) def GetX(*args, **kwargs): """GetX(self) -> int""" - return _core.KeyEvent_GetX(*args, **kwargs) + return _core_.KeyEvent_GetX(*args, **kwargs) def GetY(*args, **kwargs): """GetY(self) -> int""" - return _core.KeyEvent_GetY(*args, **kwargs) - - m_x = property(_core.KeyEvent_m_x_get, _core.KeyEvent_m_x_set) - m_y = property(_core.KeyEvent_m_y_get, _core.KeyEvent_m_y_set) - m_keyCode = property(_core.KeyEvent_m_keyCode_get, _core.KeyEvent_m_keyCode_set) - m_controlDown = property(_core.KeyEvent_m_controlDown_get, _core.KeyEvent_m_controlDown_set) - m_shiftDown = property(_core.KeyEvent_m_shiftDown_get, _core.KeyEvent_m_shiftDown_set) - m_altDown = property(_core.KeyEvent_m_altDown_get, _core.KeyEvent_m_altDown_set) - m_metaDown = property(_core.KeyEvent_m_metaDown_get, _core.KeyEvent_m_metaDown_set) - m_scanCode = property(_core.KeyEvent_m_scanCode_get, _core.KeyEvent_m_scanCode_set) - m_rawCode = property(_core.KeyEvent_m_rawCode_get, _core.KeyEvent_m_rawCode_set) - m_rawFlags = property(_core.KeyEvent_m_rawFlags_get, _core.KeyEvent_m_rawFlags_set) + return _core_.KeyEvent_GetY(*args, **kwargs) + + m_x = property(_core_.KeyEvent_m_x_get, _core_.KeyEvent_m_x_set) + m_y = property(_core_.KeyEvent_m_y_get, _core_.KeyEvent_m_y_set) + m_keyCode = property(_core_.KeyEvent_m_keyCode_get, _core_.KeyEvent_m_keyCode_set) + m_controlDown = property(_core_.KeyEvent_m_controlDown_get, _core_.KeyEvent_m_controlDown_set) + m_shiftDown = property(_core_.KeyEvent_m_shiftDown_get, _core_.KeyEvent_m_shiftDown_set) + m_altDown = property(_core_.KeyEvent_m_altDown_get, _core_.KeyEvent_m_altDown_set) + m_metaDown = property(_core_.KeyEvent_m_metaDown_get, _core_.KeyEvent_m_metaDown_set) + m_scanCode = property(_core_.KeyEvent_m_scanCode_get, _core_.KeyEvent_m_scanCode_set) + m_rawCode = property(_core_.KeyEvent_m_rawCode_get, _core_.KeyEvent_m_rawCode_set) + m_rawFlags = property(_core_.KeyEvent_m_rawFlags_get, _core_.KeyEvent_m_rawFlags_set) class KeyEventPtr(KeyEvent): def __init__(self, this): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = KeyEvent -_core.KeyEvent_swigregister(KeyEventPtr) +_core_.KeyEvent_swigregister(KeyEventPtr) #--------------------------------------------------------------------------- @@ -3596,35 +3596,35 @@ class SizeEvent(Event): return "<%s.%s; proxy of C++ wxSizeEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, Size sz=DefaultSize, int winid=0) -> SizeEvent""" - newobj = _core.new_SizeEvent(*args, **kwargs) + newobj = _core_.new_SizeEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def GetSize(*args, **kwargs): """GetSize(self) -> Size""" - return _core.SizeEvent_GetSize(*args, **kwargs) + return _core_.SizeEvent_GetSize(*args, **kwargs) def GetRect(*args, **kwargs): """GetRect(self) -> Rect""" - return _core.SizeEvent_GetRect(*args, **kwargs) + return _core_.SizeEvent_GetRect(*args, **kwargs) def SetRect(*args, **kwargs): """SetRect(self, Rect rect)""" - return _core.SizeEvent_SetRect(*args, **kwargs) + return _core_.SizeEvent_SetRect(*args, **kwargs) def SetSize(*args, **kwargs): """SetSize(self, Size size)""" - return _core.SizeEvent_SetSize(*args, **kwargs) + return _core_.SizeEvent_SetSize(*args, **kwargs) - m_size = property(_core.SizeEvent_m_size_get, _core.SizeEvent_m_size_set) - m_rect = property(_core.SizeEvent_m_rect_get, _core.SizeEvent_m_rect_set) + m_size = property(_core_.SizeEvent_m_size_get, _core_.SizeEvent_m_size_set) + m_rect = property(_core_.SizeEvent_m_rect_get, _core_.SizeEvent_m_rect_set) class SizeEventPtr(SizeEvent): def __init__(self, this): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = SizeEvent -_core.SizeEvent_swigregister(SizeEventPtr) +_core_.SizeEvent_swigregister(SizeEventPtr) #--------------------------------------------------------------------------- @@ -3633,35 +3633,35 @@ class MoveEvent(Event): return "<%s.%s; proxy of C++ wxMoveEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, Point pos=DefaultPosition, int winid=0) -> MoveEvent""" - newobj = _core.new_MoveEvent(*args, **kwargs) + newobj = _core_.new_MoveEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def GetPosition(*args, **kwargs): """GetPosition(self) -> Point""" - return _core.MoveEvent_GetPosition(*args, **kwargs) + return _core_.MoveEvent_GetPosition(*args, **kwargs) def GetRect(*args, **kwargs): """GetRect(self) -> Rect""" - return _core.MoveEvent_GetRect(*args, **kwargs) + return _core_.MoveEvent_GetRect(*args, **kwargs) def SetRect(*args, **kwargs): """SetRect(self, Rect rect)""" - return _core.MoveEvent_SetRect(*args, **kwargs) + return _core_.MoveEvent_SetRect(*args, **kwargs) def SetPosition(*args, **kwargs): """SetPosition(self, Point pos)""" - return _core.MoveEvent_SetPosition(*args, **kwargs) + return _core_.MoveEvent_SetPosition(*args, **kwargs) - m_pos = property(_core.MoveEvent_m_pos_get, _core.MoveEvent_m_pos_set) - m_rect = property(_core.MoveEvent_m_rect_get, _core.MoveEvent_m_rect_set) + m_pos = property(_core_.MoveEvent_m_pos_get, _core_.MoveEvent_m_pos_set) + m_rect = property(_core_.MoveEvent_m_rect_get, _core_.MoveEvent_m_rect_set) class MoveEventPtr(MoveEvent): def __init__(self, this): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = MoveEvent -_core.MoveEvent_swigregister(MoveEventPtr) +_core_.MoveEvent_swigregister(MoveEventPtr) #--------------------------------------------------------------------------- @@ -3670,7 +3670,7 @@ class PaintEvent(Event): return "<%s.%s; proxy of C++ wxPaintEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, int Id=0) -> PaintEvent""" - newobj = _core.new_PaintEvent(*args, **kwargs) + newobj = _core_.new_PaintEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -3680,14 +3680,14 @@ class PaintEventPtr(PaintEvent): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = PaintEvent -_core.PaintEvent_swigregister(PaintEventPtr) +_core_.PaintEvent_swigregister(PaintEventPtr) class NcPaintEvent(Event): def __repr__(self): return "<%s.%s; proxy of C++ wxNcPaintEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, int winid=0) -> NcPaintEvent""" - newobj = _core.new_NcPaintEvent(*args, **kwargs) + newobj = _core_.new_NcPaintEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -3697,7 +3697,7 @@ class NcPaintEventPtr(NcPaintEvent): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = NcPaintEvent -_core.NcPaintEvent_swigregister(NcPaintEventPtr) +_core_.NcPaintEvent_swigregister(NcPaintEventPtr) #--------------------------------------------------------------------------- @@ -3706,13 +3706,13 @@ class EraseEvent(Event): return "<%s.%s; proxy of C++ wxEraseEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, int Id=0, DC dc=(wxDC *) NULL) -> EraseEvent""" - newobj = _core.new_EraseEvent(*args, **kwargs) + newobj = _core_.new_EraseEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def GetDC(*args, **kwargs): """GetDC(self) -> DC""" - return _core.EraseEvent_GetDC(*args, **kwargs) + return _core_.EraseEvent_GetDC(*args, **kwargs) class EraseEventPtr(EraseEvent): @@ -3720,7 +3720,7 @@ class EraseEventPtr(EraseEvent): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = EraseEvent -_core.EraseEvent_swigregister(EraseEventPtr) +_core_.EraseEvent_swigregister(EraseEventPtr) #--------------------------------------------------------------------------- @@ -3729,17 +3729,17 @@ class FocusEvent(Event): return "<%s.%s; proxy of C++ wxFocusEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, wxEventType type=wxEVT_NULL, int winid=0) -> FocusEvent""" - newobj = _core.new_FocusEvent(*args, **kwargs) + newobj = _core_.new_FocusEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def GetWindow(*args, **kwargs): """GetWindow(self) -> Window""" - return _core.FocusEvent_GetWindow(*args, **kwargs) + return _core_.FocusEvent_GetWindow(*args, **kwargs) def SetWindow(*args, **kwargs): """SetWindow(self, Window win)""" - return _core.FocusEvent_SetWindow(*args, **kwargs) + return _core_.FocusEvent_SetWindow(*args, **kwargs) class FocusEventPtr(FocusEvent): @@ -3747,7 +3747,7 @@ class FocusEventPtr(FocusEvent): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = FocusEvent -_core.FocusEvent_swigregister(FocusEventPtr) +_core_.FocusEvent_swigregister(FocusEventPtr) #--------------------------------------------------------------------------- @@ -3756,13 +3756,13 @@ class ChildFocusEvent(CommandEvent): return "<%s.%s; proxy of C++ wxChildFocusEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, Window win=None) -> ChildFocusEvent""" - newobj = _core.new_ChildFocusEvent(*args, **kwargs) + newobj = _core_.new_ChildFocusEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def GetWindow(*args, **kwargs): """GetWindow(self) -> Window""" - return _core.ChildFocusEvent_GetWindow(*args, **kwargs) + return _core_.ChildFocusEvent_GetWindow(*args, **kwargs) class ChildFocusEventPtr(ChildFocusEvent): @@ -3770,7 +3770,7 @@ class ChildFocusEventPtr(ChildFocusEvent): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = ChildFocusEvent -_core.ChildFocusEvent_swigregister(ChildFocusEventPtr) +_core_.ChildFocusEvent_swigregister(ChildFocusEventPtr) #--------------------------------------------------------------------------- @@ -3779,13 +3779,13 @@ class ActivateEvent(Event): return "<%s.%s; proxy of C++ wxActivateEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, wxEventType type=wxEVT_NULL, bool active=True, int Id=0) -> ActivateEvent""" - newobj = _core.new_ActivateEvent(*args, **kwargs) + newobj = _core_.new_ActivateEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def GetActive(*args, **kwargs): """GetActive(self) -> bool""" - return _core.ActivateEvent_GetActive(*args, **kwargs) + return _core_.ActivateEvent_GetActive(*args, **kwargs) class ActivateEventPtr(ActivateEvent): @@ -3793,7 +3793,7 @@ class ActivateEventPtr(ActivateEvent): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = ActivateEvent -_core.ActivateEvent_swigregister(ActivateEventPtr) +_core_.ActivateEvent_swigregister(ActivateEventPtr) #--------------------------------------------------------------------------- @@ -3802,7 +3802,7 @@ class InitDialogEvent(Event): return "<%s.%s; proxy of C++ wxInitDialogEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, int Id=0) -> InitDialogEvent""" - newobj = _core.new_InitDialogEvent(*args, **kwargs) + newobj = _core_.new_InitDialogEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -3812,7 +3812,7 @@ class InitDialogEventPtr(InitDialogEvent): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = InitDialogEvent -_core.InitDialogEvent_swigregister(InitDialogEventPtr) +_core_.InitDialogEvent_swigregister(InitDialogEventPtr) #--------------------------------------------------------------------------- @@ -3821,21 +3821,21 @@ class MenuEvent(Event): return "<%s.%s; proxy of C++ wxMenuEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, wxEventType type=wxEVT_NULL, int winid=0, Menu menu=None) -> MenuEvent""" - newobj = _core.new_MenuEvent(*args, **kwargs) + newobj = _core_.new_MenuEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def GetMenuId(*args, **kwargs): """GetMenuId(self) -> int""" - return _core.MenuEvent_GetMenuId(*args, **kwargs) + return _core_.MenuEvent_GetMenuId(*args, **kwargs) def IsPopup(*args, **kwargs): """IsPopup(self) -> bool""" - return _core.MenuEvent_IsPopup(*args, **kwargs) + return _core_.MenuEvent_IsPopup(*args, **kwargs) def GetMenu(*args, **kwargs): """GetMenu(self) -> Menu""" - return _core.MenuEvent_GetMenu(*args, **kwargs) + return _core_.MenuEvent_GetMenu(*args, **kwargs) class MenuEventPtr(MenuEvent): @@ -3843,7 +3843,7 @@ class MenuEventPtr(MenuEvent): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = MenuEvent -_core.MenuEvent_swigregister(MenuEventPtr) +_core_.MenuEvent_swigregister(MenuEventPtr) #--------------------------------------------------------------------------- @@ -3852,33 +3852,33 @@ class CloseEvent(Event): return "<%s.%s; proxy of C++ wxCloseEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, wxEventType type=wxEVT_NULL, int winid=0) -> CloseEvent""" - newobj = _core.new_CloseEvent(*args, **kwargs) + newobj = _core_.new_CloseEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def SetLoggingOff(*args, **kwargs): """SetLoggingOff(self, bool logOff)""" - return _core.CloseEvent_SetLoggingOff(*args, **kwargs) + return _core_.CloseEvent_SetLoggingOff(*args, **kwargs) def GetLoggingOff(*args, **kwargs): """GetLoggingOff(self) -> bool""" - return _core.CloseEvent_GetLoggingOff(*args, **kwargs) + return _core_.CloseEvent_GetLoggingOff(*args, **kwargs) def Veto(*args, **kwargs): """Veto(self, bool veto=True)""" - return _core.CloseEvent_Veto(*args, **kwargs) + return _core_.CloseEvent_Veto(*args, **kwargs) def SetCanVeto(*args, **kwargs): """SetCanVeto(self, bool canVeto)""" - return _core.CloseEvent_SetCanVeto(*args, **kwargs) + return _core_.CloseEvent_SetCanVeto(*args, **kwargs) def CanVeto(*args, **kwargs): """CanVeto(self) -> bool""" - return _core.CloseEvent_CanVeto(*args, **kwargs) + return _core_.CloseEvent_CanVeto(*args, **kwargs) def GetVeto(*args, **kwargs): """GetVeto(self) -> bool""" - return _core.CloseEvent_GetVeto(*args, **kwargs) + return _core_.CloseEvent_GetVeto(*args, **kwargs) class CloseEventPtr(CloseEvent): @@ -3886,7 +3886,7 @@ class CloseEventPtr(CloseEvent): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = CloseEvent -_core.CloseEvent_swigregister(CloseEventPtr) +_core_.CloseEvent_swigregister(CloseEventPtr) #--------------------------------------------------------------------------- @@ -3895,17 +3895,17 @@ class ShowEvent(Event): return "<%s.%s; proxy of C++ wxShowEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, int winid=0, bool show=False) -> ShowEvent""" - newobj = _core.new_ShowEvent(*args, **kwargs) + newobj = _core_.new_ShowEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def SetShow(*args, **kwargs): """SetShow(self, bool show)""" - return _core.ShowEvent_SetShow(*args, **kwargs) + return _core_.ShowEvent_SetShow(*args, **kwargs) def GetShow(*args, **kwargs): """GetShow(self) -> bool""" - return _core.ShowEvent_GetShow(*args, **kwargs) + return _core_.ShowEvent_GetShow(*args, **kwargs) class ShowEventPtr(ShowEvent): @@ -3913,7 +3913,7 @@ class ShowEventPtr(ShowEvent): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = ShowEvent -_core.ShowEvent_swigregister(ShowEventPtr) +_core_.ShowEvent_swigregister(ShowEventPtr) #--------------------------------------------------------------------------- @@ -3922,13 +3922,13 @@ class IconizeEvent(Event): return "<%s.%s; proxy of C++ wxIconizeEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, int id=0, bool iconized=True) -> IconizeEvent""" - newobj = _core.new_IconizeEvent(*args, **kwargs) + newobj = _core_.new_IconizeEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def Iconized(*args, **kwargs): """Iconized(self) -> bool""" - return _core.IconizeEvent_Iconized(*args, **kwargs) + return _core_.IconizeEvent_Iconized(*args, **kwargs) class IconizeEventPtr(IconizeEvent): @@ -3936,7 +3936,7 @@ class IconizeEventPtr(IconizeEvent): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = IconizeEvent -_core.IconizeEvent_swigregister(IconizeEventPtr) +_core_.IconizeEvent_swigregister(IconizeEventPtr) #--------------------------------------------------------------------------- @@ -3945,7 +3945,7 @@ class MaximizeEvent(Event): return "<%s.%s; proxy of C++ wxMaximizeEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, int id=0) -> MaximizeEvent""" - newobj = _core.new_MaximizeEvent(*args, **kwargs) + newobj = _core_.new_MaximizeEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -3955,7 +3955,7 @@ class MaximizeEventPtr(MaximizeEvent): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = MaximizeEvent -_core.MaximizeEvent_swigregister(MaximizeEventPtr) +_core_.MaximizeEvent_swigregister(MaximizeEventPtr) #--------------------------------------------------------------------------- @@ -3965,15 +3965,15 @@ class DropFilesEvent(Event): return "<%s.%s; proxy of C++ wxDropFilesEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def GetPosition(*args, **kwargs): """GetPosition(self) -> Point""" - return _core.DropFilesEvent_GetPosition(*args, **kwargs) + return _core_.DropFilesEvent_GetPosition(*args, **kwargs) def GetNumberOfFiles(*args, **kwargs): """GetNumberOfFiles(self) -> int""" - return _core.DropFilesEvent_GetNumberOfFiles(*args, **kwargs) + return _core_.DropFilesEvent_GetNumberOfFiles(*args, **kwargs) def GetFiles(*args, **kwargs): """GetFiles(self) -> PyObject""" - return _core.DropFilesEvent_GetFiles(*args, **kwargs) + return _core_.DropFilesEvent_GetFiles(*args, **kwargs) class DropFilesEventPtr(DropFilesEvent): @@ -3981,85 +3981,85 @@ class DropFilesEventPtr(DropFilesEvent): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = DropFilesEvent -_core.DropFilesEvent_swigregister(DropFilesEventPtr) +_core_.DropFilesEvent_swigregister(DropFilesEventPtr) #--------------------------------------------------------------------------- -UPDATE_UI_PROCESS_ALL = _core.UPDATE_UI_PROCESS_ALL -UPDATE_UI_PROCESS_SPECIFIED = _core.UPDATE_UI_PROCESS_SPECIFIED +UPDATE_UI_PROCESS_ALL = _core_.UPDATE_UI_PROCESS_ALL +UPDATE_UI_PROCESS_SPECIFIED = _core_.UPDATE_UI_PROCESS_SPECIFIED class UpdateUIEvent(CommandEvent): def __repr__(self): return "<%s.%s; proxy of C++ wxUpdateUIEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, int commandId=0) -> UpdateUIEvent""" - newobj = _core.new_UpdateUIEvent(*args, **kwargs) + newobj = _core_.new_UpdateUIEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def GetChecked(*args, **kwargs): """GetChecked(self) -> bool""" - return _core.UpdateUIEvent_GetChecked(*args, **kwargs) + return _core_.UpdateUIEvent_GetChecked(*args, **kwargs) def GetEnabled(*args, **kwargs): """GetEnabled(self) -> bool""" - return _core.UpdateUIEvent_GetEnabled(*args, **kwargs) + return _core_.UpdateUIEvent_GetEnabled(*args, **kwargs) def GetText(*args, **kwargs): """GetText(self) -> String""" - return _core.UpdateUIEvent_GetText(*args, **kwargs) + return _core_.UpdateUIEvent_GetText(*args, **kwargs) def GetSetText(*args, **kwargs): """GetSetText(self) -> bool""" - return _core.UpdateUIEvent_GetSetText(*args, **kwargs) + return _core_.UpdateUIEvent_GetSetText(*args, **kwargs) def GetSetChecked(*args, **kwargs): """GetSetChecked(self) -> bool""" - return _core.UpdateUIEvent_GetSetChecked(*args, **kwargs) + return _core_.UpdateUIEvent_GetSetChecked(*args, **kwargs) def GetSetEnabled(*args, **kwargs): """GetSetEnabled(self) -> bool""" - return _core.UpdateUIEvent_GetSetEnabled(*args, **kwargs) + return _core_.UpdateUIEvent_GetSetEnabled(*args, **kwargs) def Check(*args, **kwargs): """Check(self, bool check)""" - return _core.UpdateUIEvent_Check(*args, **kwargs) + return _core_.UpdateUIEvent_Check(*args, **kwargs) def Enable(*args, **kwargs): """Enable(self, bool enable)""" - return _core.UpdateUIEvent_Enable(*args, **kwargs) + return _core_.UpdateUIEvent_Enable(*args, **kwargs) def SetText(*args, **kwargs): """SetText(self, String text)""" - return _core.UpdateUIEvent_SetText(*args, **kwargs) + return _core_.UpdateUIEvent_SetText(*args, **kwargs) def SetUpdateInterval(*args, **kwargs): """UpdateUIEvent.SetUpdateInterval(long updateInterval)""" - return _core.UpdateUIEvent_SetUpdateInterval(*args, **kwargs) + return _core_.UpdateUIEvent_SetUpdateInterval(*args, **kwargs) SetUpdateInterval = staticmethod(SetUpdateInterval) def GetUpdateInterval(*args, **kwargs): """UpdateUIEvent.GetUpdateInterval() -> long""" - return _core.UpdateUIEvent_GetUpdateInterval(*args, **kwargs) + return _core_.UpdateUIEvent_GetUpdateInterval(*args, **kwargs) GetUpdateInterval = staticmethod(GetUpdateInterval) def CanUpdate(*args, **kwargs): """UpdateUIEvent.CanUpdate(Window win) -> bool""" - return _core.UpdateUIEvent_CanUpdate(*args, **kwargs) + return _core_.UpdateUIEvent_CanUpdate(*args, **kwargs) CanUpdate = staticmethod(CanUpdate) def ResetUpdateTime(*args, **kwargs): """UpdateUIEvent.ResetUpdateTime()""" - return _core.UpdateUIEvent_ResetUpdateTime(*args, **kwargs) + return _core_.UpdateUIEvent_ResetUpdateTime(*args, **kwargs) ResetUpdateTime = staticmethod(ResetUpdateTime) def SetMode(*args, **kwargs): """UpdateUIEvent.SetMode(int mode)""" - return _core.UpdateUIEvent_SetMode(*args, **kwargs) + return _core_.UpdateUIEvent_SetMode(*args, **kwargs) SetMode = staticmethod(SetMode) def GetMode(*args, **kwargs): """UpdateUIEvent.GetMode() -> int""" - return _core.UpdateUIEvent_GetMode(*args, **kwargs) + return _core_.UpdateUIEvent_GetMode(*args, **kwargs) GetMode = staticmethod(GetMode) @@ -4068,31 +4068,31 @@ class UpdateUIEventPtr(UpdateUIEvent): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = UpdateUIEvent -_core.UpdateUIEvent_swigregister(UpdateUIEventPtr) +_core_.UpdateUIEvent_swigregister(UpdateUIEventPtr) def UpdateUIEvent_SetUpdateInterval(*args, **kwargs): """UpdateUIEvent_SetUpdateInterval(long updateInterval)""" - return _core.UpdateUIEvent_SetUpdateInterval(*args, **kwargs) + return _core_.UpdateUIEvent_SetUpdateInterval(*args, **kwargs) def UpdateUIEvent_GetUpdateInterval(*args, **kwargs): """UpdateUIEvent_GetUpdateInterval() -> long""" - return _core.UpdateUIEvent_GetUpdateInterval(*args, **kwargs) + return _core_.UpdateUIEvent_GetUpdateInterval(*args, **kwargs) def UpdateUIEvent_CanUpdate(*args, **kwargs): """UpdateUIEvent_CanUpdate(Window win) -> bool""" - return _core.UpdateUIEvent_CanUpdate(*args, **kwargs) + return _core_.UpdateUIEvent_CanUpdate(*args, **kwargs) def UpdateUIEvent_ResetUpdateTime(*args, **kwargs): """UpdateUIEvent_ResetUpdateTime()""" - return _core.UpdateUIEvent_ResetUpdateTime(*args, **kwargs) + return _core_.UpdateUIEvent_ResetUpdateTime(*args, **kwargs) def UpdateUIEvent_SetMode(*args, **kwargs): """UpdateUIEvent_SetMode(int mode)""" - return _core.UpdateUIEvent_SetMode(*args, **kwargs) + return _core_.UpdateUIEvent_SetMode(*args, **kwargs) def UpdateUIEvent_GetMode(*args, **kwargs): """UpdateUIEvent_GetMode() -> int""" - return _core.UpdateUIEvent_GetMode(*args, **kwargs) + return _core_.UpdateUIEvent_GetMode(*args, **kwargs) #--------------------------------------------------------------------------- @@ -4101,7 +4101,7 @@ class SysColourChangedEvent(Event): return "<%s.%s; proxy of C++ wxSysColourChangedEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> SysColourChangedEvent""" - newobj = _core.new_SysColourChangedEvent(*args, **kwargs) + newobj = _core_.new_SysColourChangedEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -4111,7 +4111,7 @@ class SysColourChangedEventPtr(SysColourChangedEvent): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = SysColourChangedEvent -_core.SysColourChangedEvent_swigregister(SysColourChangedEventPtr) +_core_.SysColourChangedEvent_swigregister(SysColourChangedEventPtr) #--------------------------------------------------------------------------- @@ -4120,13 +4120,13 @@ class MouseCaptureChangedEvent(Event): return "<%s.%s; proxy of C++ wxMouseCaptureChangedEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, int winid=0, Window gainedCapture=None) -> MouseCaptureChangedEvent""" - newobj = _core.new_MouseCaptureChangedEvent(*args, **kwargs) + newobj = _core_.new_MouseCaptureChangedEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def GetCapturedWindow(*args, **kwargs): """GetCapturedWindow(self) -> Window""" - return _core.MouseCaptureChangedEvent_GetCapturedWindow(*args, **kwargs) + return _core_.MouseCaptureChangedEvent_GetCapturedWindow(*args, **kwargs) class MouseCaptureChangedEventPtr(MouseCaptureChangedEvent): @@ -4134,7 +4134,7 @@ class MouseCaptureChangedEventPtr(MouseCaptureChangedEvent): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = MouseCaptureChangedEvent -_core.MouseCaptureChangedEvent_swigregister(MouseCaptureChangedEventPtr) +_core_.MouseCaptureChangedEvent_swigregister(MouseCaptureChangedEventPtr) #--------------------------------------------------------------------------- @@ -4143,7 +4143,7 @@ class DisplayChangedEvent(Event): return "<%s.%s; proxy of C++ wxDisplayChangedEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> DisplayChangedEvent""" - newobj = _core.new_DisplayChangedEvent(*args, **kwargs) + newobj = _core_.new_DisplayChangedEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -4153,7 +4153,7 @@ class DisplayChangedEventPtr(DisplayChangedEvent): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = DisplayChangedEvent -_core.DisplayChangedEvent_swigregister(DisplayChangedEventPtr) +_core_.DisplayChangedEvent_swigregister(DisplayChangedEventPtr) #--------------------------------------------------------------------------- @@ -4162,17 +4162,17 @@ class PaletteChangedEvent(Event): return "<%s.%s; proxy of C++ wxPaletteChangedEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, int id=0) -> PaletteChangedEvent""" - newobj = _core.new_PaletteChangedEvent(*args, **kwargs) + newobj = _core_.new_PaletteChangedEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def SetChangedWindow(*args, **kwargs): """SetChangedWindow(self, Window win)""" - return _core.PaletteChangedEvent_SetChangedWindow(*args, **kwargs) + return _core_.PaletteChangedEvent_SetChangedWindow(*args, **kwargs) def GetChangedWindow(*args, **kwargs): """GetChangedWindow(self) -> Window""" - return _core.PaletteChangedEvent_GetChangedWindow(*args, **kwargs) + return _core_.PaletteChangedEvent_GetChangedWindow(*args, **kwargs) class PaletteChangedEventPtr(PaletteChangedEvent): @@ -4180,7 +4180,7 @@ class PaletteChangedEventPtr(PaletteChangedEvent): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = PaletteChangedEvent -_core.PaletteChangedEvent_swigregister(PaletteChangedEventPtr) +_core_.PaletteChangedEvent_swigregister(PaletteChangedEventPtr) #--------------------------------------------------------------------------- @@ -4189,17 +4189,17 @@ class QueryNewPaletteEvent(Event): return "<%s.%s; proxy of C++ wxQueryNewPaletteEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, int winid=0) -> QueryNewPaletteEvent""" - newobj = _core.new_QueryNewPaletteEvent(*args, **kwargs) + newobj = _core_.new_QueryNewPaletteEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def SetPaletteRealized(*args, **kwargs): """SetPaletteRealized(self, bool realized)""" - return _core.QueryNewPaletteEvent_SetPaletteRealized(*args, **kwargs) + return _core_.QueryNewPaletteEvent_SetPaletteRealized(*args, **kwargs) def GetPaletteRealized(*args, **kwargs): """GetPaletteRealized(self) -> bool""" - return _core.QueryNewPaletteEvent_GetPaletteRealized(*args, **kwargs) + return _core_.QueryNewPaletteEvent_GetPaletteRealized(*args, **kwargs) class QueryNewPaletteEventPtr(QueryNewPaletteEvent): @@ -4207,7 +4207,7 @@ class QueryNewPaletteEventPtr(QueryNewPaletteEvent): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = QueryNewPaletteEvent -_core.QueryNewPaletteEvent_swigregister(QueryNewPaletteEventPtr) +_core_.QueryNewPaletteEvent_swigregister(QueryNewPaletteEventPtr) #--------------------------------------------------------------------------- @@ -4216,33 +4216,33 @@ class NavigationKeyEvent(Event): return "<%s.%s; proxy of C++ wxNavigationKeyEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> NavigationKeyEvent""" - newobj = _core.new_NavigationKeyEvent(*args, **kwargs) + newobj = _core_.new_NavigationKeyEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def GetDirection(*args, **kwargs): """GetDirection(self) -> bool""" - return _core.NavigationKeyEvent_GetDirection(*args, **kwargs) + return _core_.NavigationKeyEvent_GetDirection(*args, **kwargs) def SetDirection(*args, **kwargs): """SetDirection(self, bool bForward)""" - return _core.NavigationKeyEvent_SetDirection(*args, **kwargs) + return _core_.NavigationKeyEvent_SetDirection(*args, **kwargs) def IsWindowChange(*args, **kwargs): """IsWindowChange(self) -> bool""" - return _core.NavigationKeyEvent_IsWindowChange(*args, **kwargs) + return _core_.NavigationKeyEvent_IsWindowChange(*args, **kwargs) def SetWindowChange(*args, **kwargs): """SetWindowChange(self, bool bIs)""" - return _core.NavigationKeyEvent_SetWindowChange(*args, **kwargs) + return _core_.NavigationKeyEvent_SetWindowChange(*args, **kwargs) def GetCurrentFocus(*args, **kwargs): """GetCurrentFocus(self) -> Window""" - return _core.NavigationKeyEvent_GetCurrentFocus(*args, **kwargs) + return _core_.NavigationKeyEvent_GetCurrentFocus(*args, **kwargs) def SetCurrentFocus(*args, **kwargs): """SetCurrentFocus(self, Window win)""" - return _core.NavigationKeyEvent_SetCurrentFocus(*args, **kwargs) + return _core_.NavigationKeyEvent_SetCurrentFocus(*args, **kwargs) class NavigationKeyEventPtr(NavigationKeyEvent): @@ -4250,7 +4250,7 @@ class NavigationKeyEventPtr(NavigationKeyEvent): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = NavigationKeyEvent -_core.NavigationKeyEvent_swigregister(NavigationKeyEventPtr) +_core_.NavigationKeyEvent_swigregister(NavigationKeyEventPtr) #--------------------------------------------------------------------------- @@ -4259,13 +4259,13 @@ class WindowCreateEvent(CommandEvent): return "<%s.%s; proxy of C++ wxWindowCreateEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, Window win=None) -> WindowCreateEvent""" - newobj = _core.new_WindowCreateEvent(*args, **kwargs) + newobj = _core_.new_WindowCreateEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def GetWindow(*args, **kwargs): """GetWindow(self) -> Window""" - return _core.WindowCreateEvent_GetWindow(*args, **kwargs) + return _core_.WindowCreateEvent_GetWindow(*args, **kwargs) class WindowCreateEventPtr(WindowCreateEvent): @@ -4273,20 +4273,20 @@ class WindowCreateEventPtr(WindowCreateEvent): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = WindowCreateEvent -_core.WindowCreateEvent_swigregister(WindowCreateEventPtr) +_core_.WindowCreateEvent_swigregister(WindowCreateEventPtr) class WindowDestroyEvent(CommandEvent): def __repr__(self): return "<%s.%s; proxy of C++ wxWindowDestroyEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, Window win=None) -> WindowDestroyEvent""" - newobj = _core.new_WindowDestroyEvent(*args, **kwargs) + newobj = _core_.new_WindowDestroyEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def GetWindow(*args, **kwargs): """GetWindow(self) -> Window""" - return _core.WindowDestroyEvent_GetWindow(*args, **kwargs) + return _core_.WindowDestroyEvent_GetWindow(*args, **kwargs) class WindowDestroyEventPtr(WindowDestroyEvent): @@ -4294,7 +4294,7 @@ class WindowDestroyEventPtr(WindowDestroyEvent): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = WindowDestroyEvent -_core.WindowDestroyEvent_swigregister(WindowDestroyEventPtr) +_core_.WindowDestroyEvent_swigregister(WindowDestroyEventPtr) #--------------------------------------------------------------------------- @@ -4303,17 +4303,17 @@ class ContextMenuEvent(CommandEvent): return "<%s.%s; proxy of C++ wxContextMenuEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> ContextMenuEvent""" - newobj = _core.new_ContextMenuEvent(*args, **kwargs) + newobj = _core_.new_ContextMenuEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def GetPosition(*args, **kwargs): """GetPosition(self) -> Point""" - return _core.ContextMenuEvent_GetPosition(*args, **kwargs) + return _core_.ContextMenuEvent_GetPosition(*args, **kwargs) def SetPosition(*args, **kwargs): """SetPosition(self, Point pos)""" - return _core.ContextMenuEvent_SetPosition(*args, **kwargs) + return _core_.ContextMenuEvent_SetPosition(*args, **kwargs) class ContextMenuEventPtr(ContextMenuEvent): @@ -4321,42 +4321,42 @@ class ContextMenuEventPtr(ContextMenuEvent): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = ContextMenuEvent -_core.ContextMenuEvent_swigregister(ContextMenuEventPtr) +_core_.ContextMenuEvent_swigregister(ContextMenuEventPtr) #--------------------------------------------------------------------------- -IDLE_PROCESS_ALL = _core.IDLE_PROCESS_ALL -IDLE_PROCESS_SPECIFIED = _core.IDLE_PROCESS_SPECIFIED +IDLE_PROCESS_ALL = _core_.IDLE_PROCESS_ALL +IDLE_PROCESS_SPECIFIED = _core_.IDLE_PROCESS_SPECIFIED class IdleEvent(Event): def __repr__(self): return "<%s.%s; proxy of C++ wxIdleEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> IdleEvent""" - newobj = _core.new_IdleEvent(*args, **kwargs) + newobj = _core_.new_IdleEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def RequestMore(*args, **kwargs): """RequestMore(self, bool needMore=True)""" - return _core.IdleEvent_RequestMore(*args, **kwargs) + return _core_.IdleEvent_RequestMore(*args, **kwargs) def MoreRequested(*args, **kwargs): """MoreRequested(self) -> bool""" - return _core.IdleEvent_MoreRequested(*args, **kwargs) + return _core_.IdleEvent_MoreRequested(*args, **kwargs) def SetMode(*args, **kwargs): """IdleEvent.SetMode(int mode)""" - return _core.IdleEvent_SetMode(*args, **kwargs) + return _core_.IdleEvent_SetMode(*args, **kwargs) SetMode = staticmethod(SetMode) def GetMode(*args, **kwargs): """IdleEvent.GetMode() -> int""" - return _core.IdleEvent_GetMode(*args, **kwargs) + return _core_.IdleEvent_GetMode(*args, **kwargs) GetMode = staticmethod(GetMode) def CanSend(*args, **kwargs): """IdleEvent.CanSend(Window win) -> bool""" - return _core.IdleEvent_CanSend(*args, **kwargs) + return _core_.IdleEvent_CanSend(*args, **kwargs) CanSend = staticmethod(CanSend) @@ -4365,19 +4365,19 @@ class IdleEventPtr(IdleEvent): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = IdleEvent -_core.IdleEvent_swigregister(IdleEventPtr) +_core_.IdleEvent_swigregister(IdleEventPtr) def IdleEvent_SetMode(*args, **kwargs): """IdleEvent_SetMode(int mode)""" - return _core.IdleEvent_SetMode(*args, **kwargs) + return _core_.IdleEvent_SetMode(*args, **kwargs) def IdleEvent_GetMode(*args, **kwargs): """IdleEvent_GetMode() -> int""" - return _core.IdleEvent_GetMode(*args, **kwargs) + return _core_.IdleEvent_GetMode(*args, **kwargs) def IdleEvent_CanSend(*args, **kwargs): """IdleEvent_CanSend(Window win) -> bool""" - return _core.IdleEvent_CanSend(*args, **kwargs) + return _core_.IdleEvent_CanSend(*args, **kwargs) #--------------------------------------------------------------------------- @@ -4386,13 +4386,13 @@ class PyEvent(Event): return "<%s.%s; proxy of C++ wxPyEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, int winid=0, wxEventType commandType=wxEVT_NULL) -> PyEvent""" - newobj = _core.new_PyEvent(*args, **kwargs) + newobj = _core_.new_PyEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown self.SetSelf(self) - def __del__(self, destroy=_core.delete_PyEvent): + def __del__(self, destroy=_core_.delete_PyEvent): """__del__(self)""" try: if self.thisown: destroy(self) @@ -4400,11 +4400,11 @@ class PyEvent(Event): def SetSelf(*args, **kwargs): """SetSelf(self, PyObject self)""" - return _core.PyEvent_SetSelf(*args, **kwargs) + return _core_.PyEvent_SetSelf(*args, **kwargs) def GetSelf(*args, **kwargs): """GetSelf(self) -> PyObject""" - return _core.PyEvent_GetSelf(*args, **kwargs) + return _core_.PyEvent_GetSelf(*args, **kwargs) class PyEventPtr(PyEvent): @@ -4412,20 +4412,20 @@ class PyEventPtr(PyEvent): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = PyEvent -_core.PyEvent_swigregister(PyEventPtr) +_core_.PyEvent_swigregister(PyEventPtr) class PyCommandEvent(CommandEvent): def __repr__(self): return "<%s.%s; proxy of C++ wxPyCommandEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> PyCommandEvent""" - newobj = _core.new_PyCommandEvent(*args, **kwargs) + newobj = _core_.new_PyCommandEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown self.SetSelf(self) - def __del__(self, destroy=_core.delete_PyCommandEvent): + def __del__(self, destroy=_core_.delete_PyCommandEvent): """__del__(self)""" try: if self.thisown: destroy(self) @@ -4433,11 +4433,11 @@ class PyCommandEvent(CommandEvent): def SetSelf(*args, **kwargs): """SetSelf(self, PyObject self)""" - return _core.PyCommandEvent_SetSelf(*args, **kwargs) + return _core_.PyCommandEvent_SetSelf(*args, **kwargs) def GetSelf(*args, **kwargs): """GetSelf(self) -> PyObject""" - return _core.PyCommandEvent_GetSelf(*args, **kwargs) + return _core_.PyCommandEvent_GetSelf(*args, **kwargs) class PyCommandEventPtr(PyCommandEvent): @@ -4445,16 +4445,16 @@ class PyCommandEventPtr(PyCommandEvent): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = PyCommandEvent -_core.PyCommandEvent_swigregister(PyCommandEventPtr) +_core_.PyCommandEvent_swigregister(PyCommandEventPtr) #--------------------------------------------------------------------------- -PYAPP_ASSERT_SUPPRESS = _core.PYAPP_ASSERT_SUPPRESS -PYAPP_ASSERT_EXCEPTION = _core.PYAPP_ASSERT_EXCEPTION -PYAPP_ASSERT_DIALOG = _core.PYAPP_ASSERT_DIALOG -PYAPP_ASSERT_LOG = _core.PYAPP_ASSERT_LOG -PRINT_WINDOWS = _core.PRINT_WINDOWS -PRINT_POSTSCRIPT = _core.PRINT_POSTSCRIPT +PYAPP_ASSERT_SUPPRESS = _core_.PYAPP_ASSERT_SUPPRESS +PYAPP_ASSERT_EXCEPTION = _core_.PYAPP_ASSERT_EXCEPTION +PYAPP_ASSERT_DIALOG = _core_.PYAPP_ASSERT_DIALOG +PYAPP_ASSERT_LOG = _core_.PYAPP_ASSERT_LOG +PRINT_WINDOWS = _core_.PRINT_WINDOWS +PRINT_POSTSCRIPT = _core_.PRINT_POSTSCRIPT class PyApp(EvtHandler): def __repr__(self): return "<%s.%s; proxy of C++ wxPyApp instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) @@ -4464,14 +4464,14 @@ class PyApp(EvtHandler): Create a new application object, starting the bootstrap process. """ - newobj = _core.new_PyApp(*args, **kwargs) + newobj = _core_.new_PyApp(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown self._setCallbackInfo(self, PyApp) self._setOORInfo(self) - def __del__(self, destroy=_core.delete_PyApp): + def __del__(self, destroy=_core_.delete_PyApp): """__del__(self)""" try: if self.thisown: destroy(self) @@ -4479,7 +4479,7 @@ class PyApp(EvtHandler): def _setCallbackInfo(*args, **kwargs): """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _core.PyApp__setCallbackInfo(*args, **kwargs) + return _core_.PyApp__setCallbackInfo(*args, **kwargs) def GetAppName(*args, **kwargs): """ @@ -4487,7 +4487,7 @@ class PyApp(EvtHandler): Get the application name. """ - return _core.PyApp_GetAppName(*args, **kwargs) + return _core_.PyApp_GetAppName(*args, **kwargs) def SetAppName(*args, **kwargs): """ @@ -4496,7 +4496,7 @@ class PyApp(EvtHandler): Set the application name. This value may be used automatically by wx.Config and such. """ - return _core.PyApp_SetAppName(*args, **kwargs) + return _core_.PyApp_SetAppName(*args, **kwargs) def GetClassName(*args, **kwargs): """ @@ -4504,7 +4504,7 @@ class PyApp(EvtHandler): Get the application's class name. """ - return _core.PyApp_GetClassName(*args, **kwargs) + return _core_.PyApp_GetClassName(*args, **kwargs) def SetClassName(*args, **kwargs): """ @@ -4513,7 +4513,7 @@ class PyApp(EvtHandler): Set the application's class name. This value may be used for X-resources if applicable for the platform """ - return _core.PyApp_SetClassName(*args, **kwargs) + return _core_.PyApp_SetClassName(*args, **kwargs) def GetVendorName(*args, **kwargs): """ @@ -4521,7 +4521,7 @@ class PyApp(EvtHandler): Get the application's vendor name. """ - return _core.PyApp_GetVendorName(*args, **kwargs) + return _core_.PyApp_GetVendorName(*args, **kwargs) def SetVendorName(*args, **kwargs): """ @@ -4530,7 +4530,7 @@ class PyApp(EvtHandler): Set the application's vendor name. This value may be used automatically by wx.Config and such. """ - return _core.PyApp_SetVendorName(*args, **kwargs) + return _core_.PyApp_SetVendorName(*args, **kwargs) def GetTraits(*args, **kwargs): """ @@ -4542,7 +4542,7 @@ class PyApp(EvtHandler): which is GUI/console dependent as then wx.AppTraits allows us to abstract the differences behind the common facade """ - return _core.PyApp_GetTraits(*args, **kwargs) + return _core_.PyApp_GetTraits(*args, **kwargs) def ProcessPendingEvents(*args, **kwargs): """ @@ -4552,7 +4552,7 @@ class PyApp(EvtHandler): function to process posted events. This happens during each event loop iteration. """ - return _core.PyApp_ProcessPendingEvents(*args, **kwargs) + return _core_.PyApp_ProcessPendingEvents(*args, **kwargs) def Yield(*args, **kwargs): """ @@ -4568,7 +4568,7 @@ class PyApp(EvtHandler): with _extreme_ care or, better, don't use at all! """ - return _core.PyApp_Yield(*args, **kwargs) + return _core_.PyApp_Yield(*args, **kwargs) def WakeUpIdle(*args, **kwargs): """ @@ -4576,7 +4576,7 @@ class PyApp(EvtHandler): Make sure that idle events are sent again """ - return _core.PyApp_WakeUpIdle(*args, **kwargs) + return _core_.PyApp_WakeUpIdle(*args, **kwargs) def MainLoop(*args, **kwargs): """ @@ -4584,7 +4584,7 @@ class PyApp(EvtHandler): Execute the main GUI loop, the function returns when the loop ends. """ - return _core.PyApp_MainLoop(*args, **kwargs) + return _core_.PyApp_MainLoop(*args, **kwargs) def Exit(*args, **kwargs): """ @@ -4592,7 +4592,7 @@ class PyApp(EvtHandler): Exit the main loop thus terminating the application. """ - return _core.PyApp_Exit(*args, **kwargs) + return _core_.PyApp_Exit(*args, **kwargs) def ExitMainLoop(*args, **kwargs): """ @@ -4601,7 +4601,7 @@ class PyApp(EvtHandler): Exit the main GUI loop during the next iteration (i.e. it does not stop the program immediately!) """ - return _core.PyApp_ExitMainLoop(*args, **kwargs) + return _core_.PyApp_ExitMainLoop(*args, **kwargs) def Pending(*args, **kwargs): """ @@ -4609,7 +4609,7 @@ class PyApp(EvtHandler): Returns True if there are unprocessed events in the event queue. """ - return _core.PyApp_Pending(*args, **kwargs) + return _core_.PyApp_Pending(*args, **kwargs) def Dispatch(*args, **kwargs): """ @@ -4618,7 +4618,7 @@ class PyApp(EvtHandler): Process the first event in the event queue (blocks until an event appears if there are none currently) """ - return _core.PyApp_Dispatch(*args, **kwargs) + return _core_.PyApp_Dispatch(*args, **kwargs) def ProcessIdle(*args, **kwargs): """ @@ -4628,7 +4628,7 @@ class PyApp(EvtHandler): IdleEvent to all interested parties. Returns True is more idle events are needed, False if not. """ - return _core.PyApp_ProcessIdle(*args, **kwargs) + return _core_.PyApp_ProcessIdle(*args, **kwargs) def SendIdleEvents(*args, **kwargs): """ @@ -4637,7 +4637,7 @@ class PyApp(EvtHandler): Send idle event to window and all subwindows. Returns True if more idle time is requested. """ - return _core.PyApp_SendIdleEvents(*args, **kwargs) + return _core_.PyApp_SendIdleEvents(*args, **kwargs) def IsActive(*args, **kwargs): """ @@ -4645,7 +4645,7 @@ class PyApp(EvtHandler): Return True if our app has focus. """ - return _core.PyApp_IsActive(*args, **kwargs) + return _core_.PyApp_IsActive(*args, **kwargs) def SetTopWindow(*args, **kwargs): """ @@ -4653,7 +4653,7 @@ class PyApp(EvtHandler): Set the "main" top level window """ - return _core.PyApp_SetTopWindow(*args, **kwargs) + return _core_.PyApp_SetTopWindow(*args, **kwargs) def GetTopWindow(*args, **kwargs): """ @@ -4663,7 +4663,7 @@ class PyApp(EvtHandler): SetTopWindow(), will return just some top level window and, if there not any, will return None) """ - return _core.PyApp_GetTopWindow(*args, **kwargs) + return _core_.PyApp_GetTopWindow(*args, **kwargs) def SetExitOnFrameDelete(*args, **kwargs): """ @@ -4676,7 +4676,7 @@ class PyApp(EvtHandler): from somewhere. """ - return _core.PyApp_SetExitOnFrameDelete(*args, **kwargs) + return _core_.PyApp_SetExitOnFrameDelete(*args, **kwargs) def GetExitOnFrameDelete(*args, **kwargs): """ @@ -4684,7 +4684,7 @@ class PyApp(EvtHandler): Get the current exit behaviour setting. """ - return _core.PyApp_GetExitOnFrameDelete(*args, **kwargs) + return _core_.PyApp_GetExitOnFrameDelete(*args, **kwargs) def SetUseBestVisual(*args, **kwargs): """ @@ -4693,7 +4693,7 @@ class PyApp(EvtHandler): Set whether the app should try to use the best available visual on systems where more than one is available, (Sun, SGI, XFree86 4, etc.) """ - return _core.PyApp_SetUseBestVisual(*args, **kwargs) + return _core_.PyApp_SetUseBestVisual(*args, **kwargs) def GetUseBestVisual(*args, **kwargs): """ @@ -4701,15 +4701,15 @@ class PyApp(EvtHandler): Get current UseBestVisual setting. """ - return _core.PyApp_GetUseBestVisual(*args, **kwargs) + return _core_.PyApp_GetUseBestVisual(*args, **kwargs) def SetPrintMode(*args, **kwargs): """SetPrintMode(self, int mode)""" - return _core.PyApp_SetPrintMode(*args, **kwargs) + return _core_.PyApp_SetPrintMode(*args, **kwargs) def GetPrintMode(*args, **kwargs): """GetPrintMode(self) -> int""" - return _core.PyApp_GetPrintMode(*args, **kwargs) + return _core_.PyApp_GetPrintMode(*args, **kwargs) def SetAssertMode(*args, **kwargs): """ @@ -4724,7 +4724,7 @@ class PyApp(EvtHandler): wx.PYAPP_ASSERT_LOG Write the assertion info to the wx.Log """ - return _core.PyApp_SetAssertMode(*args, **kwargs) + return _core_.PyApp_SetAssertMode(*args, **kwargs) def GetAssertMode(*args, **kwargs): """ @@ -4732,56 +4732,56 @@ class PyApp(EvtHandler): Get the current OnAssert behaviour setting. """ - return _core.PyApp_GetAssertMode(*args, **kwargs) + return _core_.PyApp_GetAssertMode(*args, **kwargs) def GetMacSupportPCMenuShortcuts(*args, **kwargs): """PyApp.GetMacSupportPCMenuShortcuts() -> bool""" - return _core.PyApp_GetMacSupportPCMenuShortcuts(*args, **kwargs) + return _core_.PyApp_GetMacSupportPCMenuShortcuts(*args, **kwargs) GetMacSupportPCMenuShortcuts = staticmethod(GetMacSupportPCMenuShortcuts) def GetMacAboutMenuItemId(*args, **kwargs): """PyApp.GetMacAboutMenuItemId() -> long""" - return _core.PyApp_GetMacAboutMenuItemId(*args, **kwargs) + return _core_.PyApp_GetMacAboutMenuItemId(*args, **kwargs) GetMacAboutMenuItemId = staticmethod(GetMacAboutMenuItemId) def GetMacPreferencesMenuItemId(*args, **kwargs): """PyApp.GetMacPreferencesMenuItemId() -> long""" - return _core.PyApp_GetMacPreferencesMenuItemId(*args, **kwargs) + return _core_.PyApp_GetMacPreferencesMenuItemId(*args, **kwargs) GetMacPreferencesMenuItemId = staticmethod(GetMacPreferencesMenuItemId) def GetMacExitMenuItemId(*args, **kwargs): """PyApp.GetMacExitMenuItemId() -> long""" - return _core.PyApp_GetMacExitMenuItemId(*args, **kwargs) + return _core_.PyApp_GetMacExitMenuItemId(*args, **kwargs) GetMacExitMenuItemId = staticmethod(GetMacExitMenuItemId) def GetMacHelpMenuTitleName(*args, **kwargs): """PyApp.GetMacHelpMenuTitleName() -> String""" - return _core.PyApp_GetMacHelpMenuTitleName(*args, **kwargs) + return _core_.PyApp_GetMacHelpMenuTitleName(*args, **kwargs) GetMacHelpMenuTitleName = staticmethod(GetMacHelpMenuTitleName) def SetMacSupportPCMenuShortcuts(*args, **kwargs): """PyApp.SetMacSupportPCMenuShortcuts(bool val)""" - return _core.PyApp_SetMacSupportPCMenuShortcuts(*args, **kwargs) + return _core_.PyApp_SetMacSupportPCMenuShortcuts(*args, **kwargs) SetMacSupportPCMenuShortcuts = staticmethod(SetMacSupportPCMenuShortcuts) def SetMacAboutMenuItemId(*args, **kwargs): """PyApp.SetMacAboutMenuItemId(long val)""" - return _core.PyApp_SetMacAboutMenuItemId(*args, **kwargs) + return _core_.PyApp_SetMacAboutMenuItemId(*args, **kwargs) SetMacAboutMenuItemId = staticmethod(SetMacAboutMenuItemId) def SetMacPreferencesMenuItemId(*args, **kwargs): """PyApp.SetMacPreferencesMenuItemId(long val)""" - return _core.PyApp_SetMacPreferencesMenuItemId(*args, **kwargs) + return _core_.PyApp_SetMacPreferencesMenuItemId(*args, **kwargs) SetMacPreferencesMenuItemId = staticmethod(SetMacPreferencesMenuItemId) def SetMacExitMenuItemId(*args, **kwargs): """PyApp.SetMacExitMenuItemId(long val)""" - return _core.PyApp_SetMacExitMenuItemId(*args, **kwargs) + return _core_.PyApp_SetMacExitMenuItemId(*args, **kwargs) SetMacExitMenuItemId = staticmethod(SetMacExitMenuItemId) def SetMacHelpMenuTitleName(*args, **kwargs): """PyApp.SetMacHelpMenuTitleName(String val)""" - return _core.PyApp_SetMacHelpMenuTitleName(*args, **kwargs) + return _core_.PyApp_SetMacHelpMenuTitleName(*args, **kwargs) SetMacHelpMenuTitleName = staticmethod(SetMacHelpMenuTitleName) def _BootstrapApp(*args, **kwargs): @@ -4790,7 +4790,7 @@ class PyApp(EvtHandler): For internal use only """ - return _core.PyApp__BootstrapApp(*args, **kwargs) + return _core_.PyApp__BootstrapApp(*args, **kwargs) def GetComCtl32Version(*args, **kwargs): """ @@ -4800,7 +4800,7 @@ class PyApp(EvtHandler): 0 if it wasn't found at all. Raises an exception on non-Windows platforms. """ - return _core.PyApp_GetComCtl32Version(*args, **kwargs) + return _core_.PyApp_GetComCtl32Version(*args, **kwargs) GetComCtl32Version = staticmethod(GetComCtl32Version) @@ -4809,47 +4809,47 @@ class PyAppPtr(PyApp): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = PyApp -_core.PyApp_swigregister(PyAppPtr) +_core_.PyApp_swigregister(PyAppPtr) def PyApp_GetMacSupportPCMenuShortcuts(*args, **kwargs): """PyApp_GetMacSupportPCMenuShortcuts() -> bool""" - return _core.PyApp_GetMacSupportPCMenuShortcuts(*args, **kwargs) + return _core_.PyApp_GetMacSupportPCMenuShortcuts(*args, **kwargs) def PyApp_GetMacAboutMenuItemId(*args, **kwargs): """PyApp_GetMacAboutMenuItemId() -> long""" - return _core.PyApp_GetMacAboutMenuItemId(*args, **kwargs) + return _core_.PyApp_GetMacAboutMenuItemId(*args, **kwargs) def PyApp_GetMacPreferencesMenuItemId(*args, **kwargs): """PyApp_GetMacPreferencesMenuItemId() -> long""" - return _core.PyApp_GetMacPreferencesMenuItemId(*args, **kwargs) + return _core_.PyApp_GetMacPreferencesMenuItemId(*args, **kwargs) def PyApp_GetMacExitMenuItemId(*args, **kwargs): """PyApp_GetMacExitMenuItemId() -> long""" - return _core.PyApp_GetMacExitMenuItemId(*args, **kwargs) + return _core_.PyApp_GetMacExitMenuItemId(*args, **kwargs) def PyApp_GetMacHelpMenuTitleName(*args, **kwargs): """PyApp_GetMacHelpMenuTitleName() -> String""" - return _core.PyApp_GetMacHelpMenuTitleName(*args, **kwargs) + return _core_.PyApp_GetMacHelpMenuTitleName(*args, **kwargs) def PyApp_SetMacSupportPCMenuShortcuts(*args, **kwargs): """PyApp_SetMacSupportPCMenuShortcuts(bool val)""" - return _core.PyApp_SetMacSupportPCMenuShortcuts(*args, **kwargs) + return _core_.PyApp_SetMacSupportPCMenuShortcuts(*args, **kwargs) def PyApp_SetMacAboutMenuItemId(*args, **kwargs): """PyApp_SetMacAboutMenuItemId(long val)""" - return _core.PyApp_SetMacAboutMenuItemId(*args, **kwargs) + return _core_.PyApp_SetMacAboutMenuItemId(*args, **kwargs) def PyApp_SetMacPreferencesMenuItemId(*args, **kwargs): """PyApp_SetMacPreferencesMenuItemId(long val)""" - return _core.PyApp_SetMacPreferencesMenuItemId(*args, **kwargs) + return _core_.PyApp_SetMacPreferencesMenuItemId(*args, **kwargs) def PyApp_SetMacExitMenuItemId(*args, **kwargs): """PyApp_SetMacExitMenuItemId(long val)""" - return _core.PyApp_SetMacExitMenuItemId(*args, **kwargs) + return _core_.PyApp_SetMacExitMenuItemId(*args, **kwargs) def PyApp_SetMacHelpMenuTitleName(*args, **kwargs): """PyApp_SetMacHelpMenuTitleName(String val)""" - return _core.PyApp_SetMacHelpMenuTitleName(*args, **kwargs) + return _core_.PyApp_SetMacHelpMenuTitleName(*args, **kwargs) def PyApp_GetComCtl32Version(*args, **kwargs): """ @@ -4859,7 +4859,7 @@ def PyApp_GetComCtl32Version(*args, **kwargs): 0 if it wasn't found at all. Raises an exception on non-Windows platforms. """ - return _core.PyApp_GetComCtl32Version(*args, **kwargs) + return _core_.PyApp_GetComCtl32Version(*args, **kwargs) #--------------------------------------------------------------------------- @@ -4870,7 +4870,7 @@ def Exit(*args, **kwargs): Force an exit of the application. Convenience for wx.GetApp().Exit() """ - return _core.Exit(*args, **kwargs) + return _core_.Exit(*args, **kwargs) def Yield(*args, **kwargs): """ @@ -4878,7 +4878,7 @@ def Yield(*args, **kwargs): Yield to other apps/messages. Convenience for wx.GetApp().Yield() """ - return _core.Yield(*args, **kwargs) + return _core_.Yield(*args, **kwargs) def YieldIfNeeded(*args, **kwargs): """ @@ -4886,7 +4886,7 @@ def YieldIfNeeded(*args, **kwargs): Yield to other apps/messages. Convenience for wx.GetApp().Yield(True) """ - return _core.YieldIfNeeded(*args, **kwargs) + return _core_.YieldIfNeeded(*args, **kwargs) def SafeYield(*args, **kwargs): """ @@ -4899,7 +4899,7 @@ def SafeYield(*args, **kwargs): Returns the result of the call to wx.Yield. """ - return _core.SafeYield(*args, **kwargs) + return _core_.SafeYield(*args, **kwargs) def WakeUpIdle(*args, **kwargs): """ @@ -4907,7 +4907,7 @@ def WakeUpIdle(*args, **kwargs): Cause the message queue to become empty again, so idle events will be sent. """ - return _core.WakeUpIdle(*args, **kwargs) + return _core_.WakeUpIdle(*args, **kwargs) def PostEvent(*args, **kwargs): """ @@ -4915,7 +4915,7 @@ def PostEvent(*args, **kwargs): Send an event to a window or other wx.EvtHandler to be processed later. """ - return _core.PostEvent(*args, **kwargs) + return _core_.PostEvent(*args, **kwargs) def App_CleanUp(*args, **kwargs): """ @@ -4923,7 +4923,7 @@ def App_CleanUp(*args, **kwargs): For internal use only, it is used to cleanup after wxWindows when Python shuts down. """ - return _core.App_CleanUp(*args, **kwargs) + return _core_.App_CleanUp(*args, **kwargs) def GetApp(*args, **kwargs): """ @@ -4931,7 +4931,7 @@ def GetApp(*args, **kwargs): Return a reference to the current wx.App object. """ - return _core.GetApp(*args, **kwargs) + return _core_.GetApp(*args, **kwargs) #---------------------------------------------------------------------- class PyOnDemandOutputWindow: @@ -5081,17 +5081,17 @@ your Mac.""" # change from wxPyApp_ to wxApp_ -App_GetMacSupportPCMenuShortcuts = _core.PyApp_GetMacSupportPCMenuShortcuts -App_GetMacAboutMenuItemId = _core.PyApp_GetMacAboutMenuItemId -App_GetMacPreferencesMenuItemId = _core.PyApp_GetMacPreferencesMenuItemId -App_GetMacExitMenuItemId = _core.PyApp_GetMacExitMenuItemId -App_GetMacHelpMenuTitleName = _core.PyApp_GetMacHelpMenuTitleName -App_SetMacSupportPCMenuShortcuts = _core.PyApp_SetMacSupportPCMenuShortcuts -App_SetMacAboutMenuItemId = _core.PyApp_SetMacAboutMenuItemId -App_SetMacPreferencesMenuItemId = _core.PyApp_SetMacPreferencesMenuItemId -App_SetMacExitMenuItemId = _core.PyApp_SetMacExitMenuItemId -App_SetMacHelpMenuTitleName = _core.PyApp_SetMacHelpMenuTitleName -App_GetComCtl32Version = _core.PyApp_GetComCtl32Version +App_GetMacSupportPCMenuShortcuts = _core_.PyApp_GetMacSupportPCMenuShortcuts +App_GetMacAboutMenuItemId = _core_.PyApp_GetMacAboutMenuItemId +App_GetMacPreferencesMenuItemId = _core_.PyApp_GetMacPreferencesMenuItemId +App_GetMacExitMenuItemId = _core_.PyApp_GetMacExitMenuItemId +App_GetMacHelpMenuTitleName = _core_.PyApp_GetMacHelpMenuTitleName +App_SetMacSupportPCMenuShortcuts = _core_.PyApp_SetMacSupportPCMenuShortcuts +App_SetMacAboutMenuItemId = _core_.PyApp_SetMacAboutMenuItemId +App_SetMacPreferencesMenuItemId = _core_.PyApp_SetMacPreferencesMenuItemId +App_SetMacExitMenuItemId = _core_.PyApp_SetMacExitMenuItemId +App_SetMacHelpMenuTitleName = _core_.PyApp_SetMacHelpMenuTitleName +App_GetComCtl32Version = _core_.PyApp_GetComCtl32Version #---------------------------------------------------------------------------- @@ -5132,7 +5132,7 @@ class PyWidgetTester(wx.App): class __wxPyCleanup: def __init__(self): - self.cleanup = _core.App_CleanUp + self.cleanup = _core_.App_CleanUp def __del__(self): self.cleanup() @@ -5141,9 +5141,9 @@ _sys.__wxPythonCleanup = __wxPyCleanup() ## # another possible solution, but it gets called too early... ## if sys.version[0] == '2': ## import atexit -## atexit.register(_core.wxApp_CleanUp) +## atexit.register(_core_.wxApp_CleanUp) ## else: -## sys.exitfunc = _core.wxApp_CleanUp +## sys.exitfunc = _core_.wxApp_CleanUp #---------------------------------------------------------------------------- @@ -5155,11 +5155,11 @@ class AcceleratorEntry(object): return "<%s.%s; proxy of C++ wxAcceleratorEntry instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, int flags=0, int keyCode=0, int cmd=0, MenuItem item=None) -> AcceleratorEntry""" - newobj = _core.new_AcceleratorEntry(*args, **kwargs) + newobj = _core_.new_AcceleratorEntry(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_core.delete_AcceleratorEntry): + def __del__(self, destroy=_core_.delete_AcceleratorEntry): """__del__(self)""" try: if self.thisown: destroy(self) @@ -5167,27 +5167,27 @@ class AcceleratorEntry(object): def Set(*args, **kwargs): """Set(self, int flags, int keyCode, int cmd, MenuItem item=None)""" - return _core.AcceleratorEntry_Set(*args, **kwargs) + return _core_.AcceleratorEntry_Set(*args, **kwargs) def SetMenuItem(*args, **kwargs): """SetMenuItem(self, MenuItem item)""" - return _core.AcceleratorEntry_SetMenuItem(*args, **kwargs) + return _core_.AcceleratorEntry_SetMenuItem(*args, **kwargs) def GetMenuItem(*args, **kwargs): """GetMenuItem(self) -> MenuItem""" - return _core.AcceleratorEntry_GetMenuItem(*args, **kwargs) + return _core_.AcceleratorEntry_GetMenuItem(*args, **kwargs) def GetFlags(*args, **kwargs): """GetFlags(self) -> int""" - return _core.AcceleratorEntry_GetFlags(*args, **kwargs) + return _core_.AcceleratorEntry_GetFlags(*args, **kwargs) def GetKeyCode(*args, **kwargs): """GetKeyCode(self) -> int""" - return _core.AcceleratorEntry_GetKeyCode(*args, **kwargs) + return _core_.AcceleratorEntry_GetKeyCode(*args, **kwargs) def GetCommand(*args, **kwargs): """GetCommand(self) -> int""" - return _core.AcceleratorEntry_GetCommand(*args, **kwargs) + return _core_.AcceleratorEntry_GetCommand(*args, **kwargs) class AcceleratorEntryPtr(AcceleratorEntry): @@ -5195,7 +5195,7 @@ class AcceleratorEntryPtr(AcceleratorEntry): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = AcceleratorEntry -_core.AcceleratorEntry_swigregister(AcceleratorEntryPtr) +_core_.AcceleratorEntry_swigregister(AcceleratorEntryPtr) class AcceleratorTable(Object): def __repr__(self): @@ -5207,11 +5207,11 @@ class AcceleratorTable(Object): Construct an AcceleratorTable from a list of AcceleratorEntry items or 3-tuples (flags, keyCode, cmdID) """ - newobj = _core.new_AcceleratorTable(*args, **kwargs) + newobj = _core_.new_AcceleratorTable(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_core.delete_AcceleratorTable): + def __del__(self, destroy=_core_.delete_AcceleratorTable): """__del__(self)""" try: if self.thisown: destroy(self) @@ -5219,7 +5219,7 @@ class AcceleratorTable(Object): def Ok(*args, **kwargs): """Ok(self) -> bool""" - return _core.AcceleratorTable_Ok(*args, **kwargs) + return _core_.AcceleratorTable_Ok(*args, **kwargs) class AcceleratorTablePtr(AcceleratorTable): @@ -5227,12 +5227,12 @@ class AcceleratorTablePtr(AcceleratorTable): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = AcceleratorTable -_core.AcceleratorTable_swigregister(AcceleratorTablePtr) +_core_.AcceleratorTable_swigregister(AcceleratorTablePtr) def GetAccelFromString(*args, **kwargs): """GetAccelFromString(String label) -> AcceleratorEntry""" - return _core.GetAccelFromString(*args, **kwargs) + return _core_.GetAccelFromString(*args, **kwargs) #--------------------------------------------------------------------------- class VisualAttributes(object): @@ -5245,34 +5245,34 @@ class VisualAttributes(object): struct containing all the visual attributes of a control """ - newobj = _core.new_VisualAttributes(*args, **kwargs) + newobj = _core_.new_VisualAttributes(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_core.delete_VisualAttributes): + def __del__(self, destroy=_core_.delete_VisualAttributes): """__del__(self)""" try: if self.thisown: destroy(self) except: pass - font = property(_core.VisualAttributes_font_get, _core.VisualAttributes_font_set) - colFg = property(_core.VisualAttributes_colFg_get, _core.VisualAttributes_colFg_set) - colBg = property(_core.VisualAttributes_colBg_get, _core.VisualAttributes_colBg_set) + font = property(_core_.VisualAttributes_font_get, _core_.VisualAttributes_font_set) + colFg = property(_core_.VisualAttributes_colFg_get, _core_.VisualAttributes_colFg_set) + colBg = property(_core_.VisualAttributes_colBg_get, _core_.VisualAttributes_colBg_set) class VisualAttributesPtr(VisualAttributes): def __init__(self, this): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = VisualAttributes -_core.VisualAttributes_swigregister(VisualAttributesPtr) +_core_.VisualAttributes_swigregister(VisualAttributesPtr) NullAcceleratorTable = cvar.NullAcceleratorTable PanelNameStr = cvar.PanelNameStr -WINDOW_VARIANT_NORMAL = _core.WINDOW_VARIANT_NORMAL -WINDOW_VARIANT_SMALL = _core.WINDOW_VARIANT_SMALL -WINDOW_VARIANT_MINI = _core.WINDOW_VARIANT_MINI -WINDOW_VARIANT_LARGE = _core.WINDOW_VARIANT_LARGE -WINDOW_VARIANT_MAX = _core.WINDOW_VARIANT_MAX +WINDOW_VARIANT_NORMAL = _core_.WINDOW_VARIANT_NORMAL +WINDOW_VARIANT_SMALL = _core_.WINDOW_VARIANT_SMALL +WINDOW_VARIANT_MINI = _core_.WINDOW_VARIANT_MINI +WINDOW_VARIANT_LARGE = _core_.WINDOW_VARIANT_LARGE +WINDOW_VARIANT_MAX = _core_.WINDOW_VARIANT_MAX class Window(EvtHandler): """ wx.Window is the base class for all windows and represents any visible @@ -5290,7 +5290,7 @@ class Window(EvtHandler): Construct and show a generic Window. """ - newobj = _core.new_Window(*args, **kwargs) + newobj = _core_.new_Window(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -5303,7 +5303,7 @@ class Window(EvtHandler): Create the GUI part of the Window for 2-phase creation mode. """ - return _core.Window_Create(*args, **kwargs) + return _core_.Window_Create(*args, **kwargs) def Close(*args, **kwargs): """ @@ -5333,7 +5333,7 @@ class Window(EvtHandler): To guarantee that the window will be destroyed, call wx.Window.Destroy instead. """ - return _core.Window_Close(*args, **kwargs) + return _core_.Window_Close(*args, **kwargs) def Destroy(*args, **kwargs): """ @@ -5348,7 +5348,7 @@ class Window(EvtHandler): Returns True if the window has either been successfully deleted, or it has been added to the list of windows pending real deletion. """ - return _core.Window_Destroy(*args, **kwargs) + return _core_.Window_Destroy(*args, **kwargs) def DestroyChildren(*args, **kwargs): """ @@ -5356,7 +5356,7 @@ class Window(EvtHandler): Destroys all children of a window. Called automatically by the destructor. """ - return _core.Window_DestroyChildren(*args, **kwargs) + return _core_.Window_DestroyChildren(*args, **kwargs) def IsBeingDeleted(*args, **kwargs): """ @@ -5364,7 +5364,7 @@ class Window(EvtHandler): Is the window in the process of being deleted? """ - return _core.Window_IsBeingDeleted(*args, **kwargs) + return _core_.Window_IsBeingDeleted(*args, **kwargs) def SetTitle(*args, **kwargs): """ @@ -5372,7 +5372,7 @@ class Window(EvtHandler): Sets the window's title. Applicable only to frames and dialogs. """ - return _core.Window_SetTitle(*args, **kwargs) + return _core_.Window_SetTitle(*args, **kwargs) def GetTitle(*args, **kwargs): """ @@ -5380,7 +5380,7 @@ class Window(EvtHandler): Gets the window's title. Applicable only to frames and dialogs. """ - return _core.Window_GetTitle(*args, **kwargs) + return _core_.Window_GetTitle(*args, **kwargs) def SetLabel(*args, **kwargs): """ @@ -5388,7 +5388,7 @@ class Window(EvtHandler): Set the text which the window shows in its label if applicable. """ - return _core.Window_SetLabel(*args, **kwargs) + return _core_.Window_SetLabel(*args, **kwargs) def GetLabel(*args, **kwargs): """ @@ -5402,7 +5402,7 @@ class Window(EvtHandler): such as testing tools or special-needs access programs)which need to identify windows by name. """ - return _core.Window_GetLabel(*args, **kwargs) + return _core_.Window_GetLabel(*args, **kwargs) def SetName(*args, **kwargs): """ @@ -5411,7 +5411,7 @@ class Window(EvtHandler): Sets the window's name. The window name is used for ressource setting in X, it is not the same as the window title/label """ - return _core.Window_SetName(*args, **kwargs) + return _core_.Window_SetName(*args, **kwargs) def GetName(*args, **kwargs): """ @@ -5421,7 +5421,7 @@ class Window(EvtHandler): unique; it is up to the programmer to supply an appropriate name in the window constructor or via wx.Window.SetName. """ - return _core.Window_GetName(*args, **kwargs) + return _core_.Window_GetName(*args, **kwargs) def SetWindowVariant(*args, **kwargs): """ @@ -5436,11 +5436,11 @@ class Window(EvtHandler): wx.WINDOW_VARIANT_LARGE Large size (about 25 % larger than normal) """ - return _core.Window_SetWindowVariant(*args, **kwargs) + return _core_.Window_SetWindowVariant(*args, **kwargs) def GetWindowVariant(*args, **kwargs): """GetWindowVariant(self) -> int""" - return _core.Window_GetWindowVariant(*args, **kwargs) + return _core_.Window_GetWindowVariant(*args, **kwargs) def SetId(*args, **kwargs): """ @@ -5451,7 +5451,7 @@ class Window(EvtHandler): will be generated. Normally, the identifier should be provided on creation and should not be modified subsequently. """ - return _core.Window_SetId(*args, **kwargs) + return _core_.Window_SetId(*args, **kwargs) def GetId(*args, **kwargs): """ @@ -5462,7 +5462,7 @@ class Window(EvtHandler): -1 is used) then an unique identifier with a negative value will be generated. """ - return _core.Window_GetId(*args, **kwargs) + return _core_.Window_GetId(*args, **kwargs) def NewControlId(*args, **kwargs): """ @@ -5470,7 +5470,7 @@ class Window(EvtHandler): Generate a control id for the controls which were not given one. """ - return _core.Window_NewControlId(*args, **kwargs) + return _core_.Window_NewControlId(*args, **kwargs) NewControlId = staticmethod(NewControlId) def NextControlId(*args, **kwargs): @@ -5480,7 +5480,7 @@ class Window(EvtHandler): Get the id of the control following the one with the given (autogenerated) id """ - return _core.Window_NextControlId(*args, **kwargs) + return _core_.Window_NextControlId(*args, **kwargs) NextControlId = staticmethod(NextControlId) def PrevControlId(*args, **kwargs): @@ -5490,7 +5490,7 @@ class Window(EvtHandler): Get the id of the control preceding the one with the given (autogenerated) id """ - return _core.Window_PrevControlId(*args, **kwargs) + return _core_.Window_PrevControlId(*args, **kwargs) PrevControlId = staticmethod(PrevControlId) def SetSize(*args, **kwargs): @@ -5499,7 +5499,7 @@ class Window(EvtHandler): Sets the size of the window in pixels. """ - return _core.Window_SetSize(*args, **kwargs) + return _core_.Window_SetSize(*args, **kwargs) def SetDimensions(*args, **kwargs): """ @@ -5513,7 +5513,7 @@ class Window(EvtHandler): dimensions of -1 and less to be interpreted as real dimensions, not default values. """ - return _core.Window_SetDimensions(*args, **kwargs) + return _core_.Window_SetDimensions(*args, **kwargs) def SetRect(*args, **kwargs): """ @@ -5521,7 +5521,7 @@ class Window(EvtHandler): Sets the position and size of the window in pixels using a wx.Rect. """ - return _core.Window_SetRect(*args, **kwargs) + return _core_.Window_SetRect(*args, **kwargs) def SetSizeWH(*args, **kwargs): """ @@ -5529,7 +5529,7 @@ class Window(EvtHandler): Sets the size of the window in pixels. """ - return _core.Window_SetSizeWH(*args, **kwargs) + return _core_.Window_SetSizeWH(*args, **kwargs) def Move(*args, **kwargs): """ @@ -5537,7 +5537,7 @@ class Window(EvtHandler): Moves the window to the given position. """ - return _core.Window_Move(*args, **kwargs) + return _core_.Window_Move(*args, **kwargs) SetPosition = Move def MoveXY(*args, **kwargs): @@ -5546,7 +5546,7 @@ class Window(EvtHandler): Moves the window to the given position. """ - return _core.Window_MoveXY(*args, **kwargs) + return _core_.Window_MoveXY(*args, **kwargs) def Raise(*args, **kwargs): """ @@ -5555,7 +5555,7 @@ class Window(EvtHandler): Raises the window to the top of the window hierarchy if it is a managed window (dialog or frame). """ - return _core.Window_Raise(*args, **kwargs) + return _core_.Window_Raise(*args, **kwargs) def Lower(*args, **kwargs): """ @@ -5564,7 +5564,7 @@ class Window(EvtHandler): Lowers the window to the bottom of the window hierarchy if it is a managed window (dialog or frame). """ - return _core.Window_Lower(*args, **kwargs) + return _core_.Window_Lower(*args, **kwargs) def SetClientSize(*args, **kwargs): """ @@ -5576,7 +5576,7 @@ class Window(EvtHandler): dimensions the border or title bar have when trying to fit the window around panel items, for example. """ - return _core.Window_SetClientSize(*args, **kwargs) + return _core_.Window_SetClientSize(*args, **kwargs) def SetClientSizeWH(*args, **kwargs): """ @@ -5588,7 +5588,7 @@ class Window(EvtHandler): dimensions the border or title bar have when trying to fit the window around panel items, for example. """ - return _core.Window_SetClientSizeWH(*args, **kwargs) + return _core_.Window_SetClientSizeWH(*args, **kwargs) def SetClientRect(*args, **kwargs): """ @@ -5600,7 +5600,7 @@ class Window(EvtHandler): dimensions the border or title bar have when trying to fit the window around panel items, for example. """ - return _core.Window_SetClientRect(*args, **kwargs) + return _core_.Window_SetClientRect(*args, **kwargs) def GetPosition(*args, **kwargs): """ @@ -5608,7 +5608,7 @@ class Window(EvtHandler): Get the window's position. """ - return _core.Window_GetPosition(*args, **kwargs) + return _core_.Window_GetPosition(*args, **kwargs) def GetPositionTuple(*args, **kwargs): """ @@ -5616,7 +5616,7 @@ class Window(EvtHandler): Get the window's position. """ - return _core.Window_GetPositionTuple(*args, **kwargs) + return _core_.Window_GetPositionTuple(*args, **kwargs) def GetSize(*args, **kwargs): """ @@ -5624,7 +5624,7 @@ class Window(EvtHandler): Get the window size. """ - return _core.Window_GetSize(*args, **kwargs) + return _core_.Window_GetSize(*args, **kwargs) def GetSizeTuple(*args, **kwargs): """ @@ -5632,7 +5632,7 @@ class Window(EvtHandler): Get the window size. """ - return _core.Window_GetSizeTuple(*args, **kwargs) + return _core_.Window_GetSizeTuple(*args, **kwargs) def GetRect(*args, **kwargs): """ @@ -5640,7 +5640,7 @@ class Window(EvtHandler): Returns the size and position of the window as a wx.Rect object. """ - return _core.Window_GetRect(*args, **kwargs) + return _core_.Window_GetRect(*args, **kwargs) def GetClientSize(*args, **kwargs): """ @@ -5650,7 +5650,7 @@ class Window(EvtHandler): area is the area which may be drawn on by the programmer, excluding title bar, border, scrollbars, etc. """ - return _core.Window_GetClientSize(*args, **kwargs) + return _core_.Window_GetClientSize(*args, **kwargs) def GetClientSizeTuple(*args, **kwargs): """ @@ -5660,7 +5660,7 @@ class Window(EvtHandler): area is the area which may be drawn on by the programmer, excluding title bar, border, scrollbars, etc. """ - return _core.Window_GetClientSizeTuple(*args, **kwargs) + return _core_.Window_GetClientSizeTuple(*args, **kwargs) def GetClientAreaOrigin(*args, **kwargs): """ @@ -5670,7 +5670,7 @@ class Window(EvtHandler): window's top left corner (the client area may be shifted because of the borders, scrollbars, other decorations...) """ - return _core.Window_GetClientAreaOrigin(*args, **kwargs) + return _core_.Window_GetClientAreaOrigin(*args, **kwargs) def GetClientRect(*args, **kwargs): """ @@ -5678,7 +5678,7 @@ class Window(EvtHandler): Get the client area position and size as a wx.Rect object. """ - return _core.Window_GetClientRect(*args, **kwargs) + return _core_.Window_GetClientRect(*args, **kwargs) def GetBestSize(*args, **kwargs): """ @@ -5691,7 +5691,7 @@ class Window(EvtHandler): by this function will be the same as the size the window would have had after calling Fit. """ - return _core.Window_GetBestSize(*args, **kwargs) + return _core_.Window_GetBestSize(*args, **kwargs) def GetBestSizeTuple(*args, **kwargs): """ @@ -5704,7 +5704,7 @@ class Window(EvtHandler): by this function will be the same as the size the window would have had after calling Fit. """ - return _core.Window_GetBestSizeTuple(*args, **kwargs) + return _core_.Window_GetBestSizeTuple(*args, **kwargs) def GetAdjustedBestSize(*args, **kwargs): """ @@ -5717,7 +5717,7 @@ class Window(EvtHandler): should currently be drawn at, not the minimal size it can possibly tolerate. """ - return _core.Window_GetAdjustedBestSize(*args, **kwargs) + return _core_.Window_GetAdjustedBestSize(*args, **kwargs) def Center(*args, **kwargs): """ @@ -5730,7 +5730,7 @@ class Window(EvtHandler): top-level window and has no parent then it will always be centered relative to the screen. """ - return _core.Window_Center(*args, **kwargs) + return _core_.Window_Center(*args, **kwargs) Centre = Center def CenterOnScreen(*args, **kwargs): @@ -5739,7 +5739,7 @@ class Window(EvtHandler): Center on screen (only works for top level windows) """ - return _core.Window_CenterOnScreen(*args, **kwargs) + return _core_.Window_CenterOnScreen(*args, **kwargs) CentreOnScreen = CenterOnScreen def CenterOnParent(*args, **kwargs): @@ -5748,7 +5748,7 @@ class Window(EvtHandler): Center with respect to the the parent window """ - return _core.Window_CenterOnParent(*args, **kwargs) + return _core_.Window_CenterOnParent(*args, **kwargs) CentreOnParent = CenterOnParent def Fit(*args, **kwargs): @@ -5763,7 +5763,7 @@ class Window(EvtHandler): its calculations) to call window.SetClientSize(child.GetSize()) instead of calling Fit. """ - return _core.Window_Fit(*args, **kwargs) + return _core_.Window_Fit(*args, **kwargs) def FitInside(*args, **kwargs): """ @@ -5775,7 +5775,7 @@ class Window(EvtHandler): windows without an interior sizer. This function similarly won't do anything if there are no subwindows. """ - return _core.Window_FitInside(*args, **kwargs) + return _core_.Window_FitInside(*args, **kwargs) def SetSizeHints(*args): """ @@ -5789,7 +5789,7 @@ class Window(EvtHandler): will not be able to size the window outside the given bounds. The resizing increments are only significant under Motif or Xt. """ - return _core.Window_SetSizeHints(*args) + return _core_.Window_SetSizeHints(*args) def SetVirtualSizeHints(*args): """ @@ -5801,31 +5801,31 @@ class Window(EvtHandler): used. If this function is called, the user will not be able to size the virtual area of the window outside the given bounds. """ - return _core.Window_SetVirtualSizeHints(*args) + return _core_.Window_SetVirtualSizeHints(*args) def GetMinWidth(*args, **kwargs): """GetMinWidth(self) -> int""" - return _core.Window_GetMinWidth(*args, **kwargs) + return _core_.Window_GetMinWidth(*args, **kwargs) def GetMinHeight(*args, **kwargs): """GetMinHeight(self) -> int""" - return _core.Window_GetMinHeight(*args, **kwargs) + return _core_.Window_GetMinHeight(*args, **kwargs) def GetMaxWidth(*args, **kwargs): """GetMaxWidth(self) -> int""" - return _core.Window_GetMaxWidth(*args, **kwargs) + return _core_.Window_GetMaxWidth(*args, **kwargs) def GetMaxHeight(*args, **kwargs): """GetMaxHeight(self) -> int""" - return _core.Window_GetMaxHeight(*args, **kwargs) + return _core_.Window_GetMaxHeight(*args, **kwargs) def GetMaxSize(*args, **kwargs): """GetMaxSize(self) -> Size""" - return _core.Window_GetMaxSize(*args, **kwargs) + return _core_.Window_GetMaxSize(*args, **kwargs) def GetMinSize(*args, **kwargs): """GetMinSize(self) -> Size""" - return _core.Window_GetMinSize(*args, **kwargs) + return _core_.Window_GetMinSize(*args, **kwargs) def SetVirtualSize(*args, **kwargs): """ @@ -5835,7 +5835,7 @@ class Window(EvtHandler): is just the client area of the window, but for some like scrolled windows it is more or less independent of the screen window size. """ - return _core.Window_SetVirtualSize(*args, **kwargs) + return _core_.Window_SetVirtualSize(*args, **kwargs) def SetVirtualSizeWH(*args, **kwargs): """ @@ -5845,7 +5845,7 @@ class Window(EvtHandler): is just the client area of the window, but for some like scrolled windows it is more or less independent of the screen window size. """ - return _core.Window_SetVirtualSizeWH(*args, **kwargs) + return _core_.Window_SetVirtualSizeWH(*args, **kwargs) def GetVirtualSize(*args, **kwargs): """ @@ -5855,7 +5855,7 @@ class Window(EvtHandler): this is just the client area of the window, but for some like scrolled windows it is more or less independent of the screen window size. """ - return _core.Window_GetVirtualSize(*args, **kwargs) + return _core_.Window_GetVirtualSize(*args, **kwargs) def GetVirtualSizeTuple(*args, **kwargs): """ @@ -5865,7 +5865,7 @@ class Window(EvtHandler): this is just the client area of the window, but for some like scrolled windows it is more or less independent of the screen window size. """ - return _core.Window_GetVirtualSizeTuple(*args, **kwargs) + return _core_.Window_GetVirtualSizeTuple(*args, **kwargs) def GetBestVirtualSize(*args, **kwargs): """ @@ -5874,7 +5874,7 @@ class Window(EvtHandler): Return the largest of ClientSize and BestSize (as determined by a sizer, interior children, or other means) """ - return _core.Window_GetBestVirtualSize(*args, **kwargs) + return _core_.Window_GetBestVirtualSize(*args, **kwargs) def Show(*args, **kwargs): """ @@ -5886,7 +5886,7 @@ class Window(EvtHandler): the window has been shown or hidden or False if nothing was done because it already was in the requested state. """ - return _core.Window_Show(*args, **kwargs) + return _core_.Window_Show(*args, **kwargs) def Hide(*args, **kwargs): """ @@ -5894,7 +5894,7 @@ class Window(EvtHandler): Equivalent to calling Show(False). """ - return _core.Window_Hide(*args, **kwargs) + return _core_.Window_Hide(*args, **kwargs) def Enable(*args, **kwargs): """ @@ -5906,7 +5906,7 @@ class Window(EvtHandler): has been enabled or disabled, false if nothing was done, i.e. if the window had already been in the specified state. """ - return _core.Window_Enable(*args, **kwargs) + return _core_.Window_Enable(*args, **kwargs) def Disable(*args, **kwargs): """ @@ -5914,7 +5914,7 @@ class Window(EvtHandler): Disables the window, same as Enable(false). """ - return _core.Window_Disable(*args, **kwargs) + return _core_.Window_Disable(*args, **kwargs) def IsShown(*args, **kwargs): """ @@ -5922,7 +5922,7 @@ class Window(EvtHandler): Returns true if the window is shown, false if it has been hidden. """ - return _core.Window_IsShown(*args, **kwargs) + return _core_.Window_IsShown(*args, **kwargs) def IsEnabled(*args, **kwargs): """ @@ -5930,7 +5930,7 @@ class Window(EvtHandler): Returns true if the window is enabled for input, false otherwise. """ - return _core.Window_IsEnabled(*args, **kwargs) + return _core_.Window_IsEnabled(*args, **kwargs) def SetWindowStyleFlag(*args, **kwargs): """ @@ -5941,7 +5941,7 @@ class Window(EvtHandler): need to be called after changing the others for the change to take place immediately. """ - return _core.Window_SetWindowStyleFlag(*args, **kwargs) + return _core_.Window_SetWindowStyleFlag(*args, **kwargs) def GetWindowStyleFlag(*args, **kwargs): """ @@ -5950,7 +5950,7 @@ class Window(EvtHandler): Gets the window style that was passed to the constructor or Create method. """ - return _core.Window_GetWindowStyleFlag(*args, **kwargs) + return _core_.Window_GetWindowStyleFlag(*args, **kwargs) SetWindowStyle = SetWindowStyleFlag; GetWindowStyle = GetWindowStyleFlag def HasFlag(*args, **kwargs): @@ -5959,7 +5959,7 @@ class Window(EvtHandler): Test if the given style is set for this window. """ - return _core.Window_HasFlag(*args, **kwargs) + return _core_.Window_HasFlag(*args, **kwargs) def IsRetained(*args, **kwargs): """ @@ -5968,7 +5968,7 @@ class Window(EvtHandler): Returns true if the window is retained, false otherwise. Retained windows are only available on X platforms. """ - return _core.Window_IsRetained(*args, **kwargs) + return _core_.Window_IsRetained(*args, **kwargs) def SetExtraStyle(*args, **kwargs): """ @@ -5978,7 +5978,7 @@ class Window(EvtHandler): often used style bits which can't be set with the constructor or with SetWindowStyleFlag() """ - return _core.Window_SetExtraStyle(*args, **kwargs) + return _core_.Window_SetExtraStyle(*args, **kwargs) def GetExtraStyle(*args, **kwargs): """ @@ -5986,7 +5986,7 @@ class Window(EvtHandler): Returns the extra style bits for the window. """ - return _core.Window_GetExtraStyle(*args, **kwargs) + return _core_.Window_GetExtraStyle(*args, **kwargs) def MakeModal(*args, **kwargs): """ @@ -5996,7 +5996,7 @@ class Window(EvtHandler): only interact with this window. Passing False will reverse this effect. """ - return _core.Window_MakeModal(*args, **kwargs) + return _core_.Window_MakeModal(*args, **kwargs) def SetThemeEnabled(*args, **kwargs): """ @@ -6012,7 +6012,7 @@ class Window(EvtHandler): Dialogs, notebook pages and the status bar have this flag set to true by default so that the default look and feel is simulated best. """ - return _core.Window_SetThemeEnabled(*args, **kwargs) + return _core_.Window_SetThemeEnabled(*args, **kwargs) def GetThemeEnabled(*args, **kwargs): """ @@ -6020,7 +6020,7 @@ class Window(EvtHandler): Return the themeEnabled flag. """ - return _core.Window_GetThemeEnabled(*args, **kwargs) + return _core_.Window_GetThemeEnabled(*args, **kwargs) def SetFocus(*args, **kwargs): """ @@ -6028,7 +6028,7 @@ class Window(EvtHandler): Set's the focus to this window, allowing it to receive keyboard input. """ - return _core.Window_SetFocus(*args, **kwargs) + return _core_.Window_SetFocus(*args, **kwargs) def SetFocusFromKbd(*args, **kwargs): """ @@ -6037,7 +6037,7 @@ class Window(EvtHandler): Set focus to this window as the result of a keyboard action. Normally only called internally. """ - return _core.Window_SetFocusFromKbd(*args, **kwargs) + return _core_.Window_SetFocusFromKbd(*args, **kwargs) def FindFocus(*args, **kwargs): """ @@ -6046,7 +6046,7 @@ class Window(EvtHandler): Returns the window or control that currently has the keyboard focus, or None. """ - return _core.Window_FindFocus(*args, **kwargs) + return _core_.Window_FindFocus(*args, **kwargs) FindFocus = staticmethod(FindFocus) def AcceptsFocus(*args, **kwargs): @@ -6055,7 +6055,7 @@ class Window(EvtHandler): Can this window have focus? """ - return _core.Window_AcceptsFocus(*args, **kwargs) + return _core_.Window_AcceptsFocus(*args, **kwargs) def AcceptsFocusFromKeyboard(*args, **kwargs): """ @@ -6065,7 +6065,7 @@ class Window(EvtHandler): only way to give it focus (provided it accepts it at all) is to click it. """ - return _core.Window_AcceptsFocusFromKeyboard(*args, **kwargs) + return _core_.Window_AcceptsFocusFromKeyboard(*args, **kwargs) def GetDefaultItem(*args, **kwargs): """ @@ -6074,7 +6074,7 @@ class Window(EvtHandler): Get the default child of this parent, i.e. the one which is activated by pressing such as the OK button on a wx.Dialog. """ - return _core.Window_GetDefaultItem(*args, **kwargs) + return _core_.Window_GetDefaultItem(*args, **kwargs) def SetDefaultItem(*args, **kwargs): """ @@ -6082,7 +6082,7 @@ class Window(EvtHandler): Set this child as default, return the old default. """ - return _core.Window_SetDefaultItem(*args, **kwargs) + return _core_.Window_SetDefaultItem(*args, **kwargs) def SetTmpDefaultItem(*args, **kwargs): """ @@ -6090,7 +6090,7 @@ class Window(EvtHandler): Set this child as temporary default """ - return _core.Window_SetTmpDefaultItem(*args, **kwargs) + return _core_.Window_SetTmpDefaultItem(*args, **kwargs) def GetChildren(*args, **kwargs): """ @@ -6101,7 +6101,7 @@ class Window(EvtHandler): value of this function is only valid as long as the window's children do not change. """ - return _core.Window_GetChildren(*args, **kwargs) + return _core_.Window_GetChildren(*args, **kwargs) def GetParent(*args, **kwargs): """ @@ -6109,7 +6109,7 @@ class Window(EvtHandler): Returns the parent window of this window, or None if there isn't one. """ - return _core.Window_GetParent(*args, **kwargs) + return _core_.Window_GetParent(*args, **kwargs) def GetGrandParent(*args, **kwargs): """ @@ -6117,7 +6117,7 @@ class Window(EvtHandler): Returns the parent of the parent of this window, or None if there isn't one. """ - return _core.Window_GetGrandParent(*args, **kwargs) + return _core_.Window_GetGrandParent(*args, **kwargs) def IsTopLevel(*args, **kwargs): """ @@ -6127,7 +6127,7 @@ class Window(EvtHandler): frames and dialogs are always considered to be top-level windows (even if they have a parent window). """ - return _core.Window_IsTopLevel(*args, **kwargs) + return _core_.Window_IsTopLevel(*args, **kwargs) def Reparent(*args, **kwargs): """ @@ -6139,7 +6139,7 @@ class Window(EvtHandler): if the parent was changed, False otherwise (error or newParent == oldParent) """ - return _core.Window_Reparent(*args, **kwargs) + return _core_.Window_Reparent(*args, **kwargs) def AddChild(*args, **kwargs): """ @@ -6148,7 +6148,7 @@ class Window(EvtHandler): Adds a child window. This is called automatically by window creation functions so should not be required by the application programmer. """ - return _core.Window_AddChild(*args, **kwargs) + return _core_.Window_AddChild(*args, **kwargs) def RemoveChild(*args, **kwargs): """ @@ -6158,7 +6158,7 @@ class Window(EvtHandler): deletion functions so should not be required by the application programmer. """ - return _core.Window_RemoveChild(*args, **kwargs) + return _core_.Window_RemoveChild(*args, **kwargs) def FindWindowById(*args, **kwargs): """ @@ -6166,7 +6166,7 @@ class Window(EvtHandler): Find a chld of this window by window ID """ - return _core.Window_FindWindowById(*args, **kwargs) + return _core_.Window_FindWindowById(*args, **kwargs) def FindWindowByName(*args, **kwargs): """ @@ -6174,7 +6174,7 @@ class Window(EvtHandler): Find a child of this window by name """ - return _core.Window_FindWindowByName(*args, **kwargs) + return _core_.Window_FindWindowByName(*args, **kwargs) def GetEventHandler(*args, **kwargs): """ @@ -6183,7 +6183,7 @@ class Window(EvtHandler): Returns the event handler for this window. By default, the window is its own event handler. """ - return _core.Window_GetEventHandler(*args, **kwargs) + return _core_.Window_GetEventHandler(*args, **kwargs) def SetEventHandler(*args, **kwargs): """ @@ -6199,7 +6199,7 @@ class Window(EvtHandler): up a chain of event handlers, where an event not handled by one event handler is handed to the next one in the chain. """ - return _core.Window_SetEventHandler(*args, **kwargs) + return _core_.Window_SetEventHandler(*args, **kwargs) def PushEventHandler(*args, **kwargs): """ @@ -6217,7 +6217,7 @@ class Window(EvtHandler): handed to the next one in the chain. Use wx.Window.PopEventHandler to remove the event handler. """ - return _core.Window_PushEventHandler(*args, **kwargs) + return _core_.Window_PushEventHandler(*args, **kwargs) def PopEventHandler(*args, **kwargs): """ @@ -6227,7 +6227,7 @@ class Window(EvtHandler): stack. If deleteHandler is True then the wx.EvtHandler object will be destroyed after it is popped. """ - return _core.Window_PopEventHandler(*args, **kwargs) + return _core_.Window_PopEventHandler(*args, **kwargs) def RemoveEventHandler(*args, **kwargs): """ @@ -6239,7 +6239,7 @@ class Window(EvtHandler): this function should only be called when the handler is supposed to be there.) """ - return _core.Window_RemoveEventHandler(*args, **kwargs) + return _core_.Window_RemoveEventHandler(*args, **kwargs) def SetValidator(*args, **kwargs): """ @@ -6249,7 +6249,7 @@ class Window(EvtHandler): having called wx.Validator.Clone to create a new validator of this type. """ - return _core.Window_SetValidator(*args, **kwargs) + return _core_.Window_SetValidator(*args, **kwargs) def GetValidator(*args, **kwargs): """ @@ -6258,7 +6258,7 @@ class Window(EvtHandler): Returns a pointer to the current validator for the window, or None if there is none. """ - return _core.Window_GetValidator(*args, **kwargs) + return _core_.Window_GetValidator(*args, **kwargs) def Validate(*args, **kwargs): """ @@ -6269,7 +6269,7 @@ class Window(EvtHandler): extra style flag set, the method will also call Validate() of all child windows. Returns false if any of the validations failed. """ - return _core.Window_Validate(*args, **kwargs) + return _core_.Window_Validate(*args, **kwargs) def TransferDataToWindow(*args, **kwargs): """ @@ -6280,7 +6280,7 @@ class Window(EvtHandler): extra style flag set, the method will also call TransferDataToWindow() of all child windows. """ - return _core.Window_TransferDataToWindow(*args, **kwargs) + return _core_.Window_TransferDataToWindow(*args, **kwargs) def TransferDataFromWindow(*args, **kwargs): """ @@ -6292,7 +6292,7 @@ class Window(EvtHandler): method will also call TransferDataFromWindow() of all child windows. """ - return _core.Window_TransferDataFromWindow(*args, **kwargs) + return _core_.Window_TransferDataFromWindow(*args, **kwargs) def InitDialog(*args, **kwargs): """ @@ -6301,7 +6301,7 @@ class Window(EvtHandler): Sends an EVT_INIT_DIALOG event, whose handler usually transfers data to the dialog via validators. """ - return _core.Window_InitDialog(*args, **kwargs) + return _core_.Window_InitDialog(*args, **kwargs) def SetAcceleratorTable(*args, **kwargs): """ @@ -6309,7 +6309,7 @@ class Window(EvtHandler): Sets the accelerator table for this window. """ - return _core.Window_SetAcceleratorTable(*args, **kwargs) + return _core_.Window_SetAcceleratorTable(*args, **kwargs) def GetAcceleratorTable(*args, **kwargs): """ @@ -6317,7 +6317,7 @@ class Window(EvtHandler): Gets the accelerator table for this window. """ - return _core.Window_GetAcceleratorTable(*args, **kwargs) + return _core_.Window_GetAcceleratorTable(*args, **kwargs) def RegisterHotKey(*args, **kwargs): """ @@ -6331,7 +6331,7 @@ class Window(EvtHandler): use EVT_HOTKEY with an id equal to hotkeyId. Returns True if the hotkey was registered successfully. """ - return _core.Window_RegisterHotKey(*args, **kwargs) + return _core_.Window_RegisterHotKey(*args, **kwargs) def UnregisterHotKey(*args, **kwargs): """ @@ -6339,7 +6339,7 @@ class Window(EvtHandler): Unregisters a system wide hotkey. """ - return _core.Window_UnregisterHotKey(*args, **kwargs) + return _core_.Window_UnregisterHotKey(*args, **kwargs) def ConvertDialogPointToPixels(*args, **kwargs): """ @@ -6352,7 +6352,7 @@ class Window(EvtHandler): the dialog units are multiplied by the average character height and then divided by 8. """ - return _core.Window_ConvertDialogPointToPixels(*args, **kwargs) + return _core_.Window_ConvertDialogPointToPixels(*args, **kwargs) def ConvertDialogSizeToPixels(*args, **kwargs): """ @@ -6365,7 +6365,7 @@ class Window(EvtHandler): the dialog units are multiplied by the average character height and then divided by 8. """ - return _core.Window_ConvertDialogSizeToPixels(*args, **kwargs) + return _core_.Window_ConvertDialogSizeToPixels(*args, **kwargs) def DLG_PNT(*args, **kwargs): """ @@ -6378,7 +6378,7 @@ class Window(EvtHandler): the dialog units are multiplied by the average character height and then divided by 8. """ - return _core.Window_DLG_PNT(*args, **kwargs) + return _core_.Window_DLG_PNT(*args, **kwargs) def DLG_SZE(*args, **kwargs): """ @@ -6391,15 +6391,15 @@ class Window(EvtHandler): the dialog units are multiplied by the average character height and then divided by 8. """ - return _core.Window_DLG_SZE(*args, **kwargs) + return _core_.Window_DLG_SZE(*args, **kwargs) def ConvertPixelPointToDialog(*args, **kwargs): """ConvertPixelPointToDialog(self, Point pt) -> Point""" - return _core.Window_ConvertPixelPointToDialog(*args, **kwargs) + return _core_.Window_ConvertPixelPointToDialog(*args, **kwargs) def ConvertPixelSizeToDialog(*args, **kwargs): """ConvertPixelSizeToDialog(self, Size sz) -> Size""" - return _core.Window_ConvertPixelSizeToDialog(*args, **kwargs) + return _core_.Window_ConvertPixelSizeToDialog(*args, **kwargs) def WarpPointer(*args, **kwargs): """ @@ -6410,7 +6410,7 @@ class Window(EvtHandler): NOTE: This function is not supported under Mac because Apple Human Interface Guidelines forbid moving the mouse cursor programmatically. """ - return _core.Window_WarpPointer(*args, **kwargs) + return _core_.Window_WarpPointer(*args, **kwargs) def CaptureMouse(*args, **kwargs): """ @@ -6425,7 +6425,7 @@ class Window(EvtHandler): there were no previous window. In particular, this means that you must release the mouse as many times as you capture it. """ - return _core.Window_CaptureMouse(*args, **kwargs) + return _core_.Window_CaptureMouse(*args, **kwargs) def ReleaseMouse(*args, **kwargs): """ @@ -6433,7 +6433,7 @@ class Window(EvtHandler): Releases mouse input captured with wx.Window.CaptureMouse. """ - return _core.Window_ReleaseMouse(*args, **kwargs) + return _core_.Window_ReleaseMouse(*args, **kwargs) def GetCapture(*args, **kwargs): """ @@ -6441,7 +6441,7 @@ class Window(EvtHandler): Returns the window which currently captures the mouse or None """ - return _core.Window_GetCapture(*args, **kwargs) + return _core_.Window_GetCapture(*args, **kwargs) GetCapture = staticmethod(GetCapture) def HasCapture(*args, **kwargs): @@ -6450,7 +6450,7 @@ class Window(EvtHandler): Returns true if this window has the current mouse capture. """ - return _core.Window_HasCapture(*args, **kwargs) + return _core_.Window_HasCapture(*args, **kwargs) def Refresh(*args, **kwargs): """ @@ -6460,7 +6460,7 @@ class Window(EvtHandler): will be repainted. Causes an EVT_PAINT event to be generated and sent to the window. """ - return _core.Window_Refresh(*args, **kwargs) + return _core_.Window_Refresh(*args, **kwargs) def RefreshRect(*args, **kwargs): """ @@ -6469,7 +6469,7 @@ class Window(EvtHandler): Redraws the contents of the given rectangle: the area inside it will be repainted. This is the same as Refresh but has a nicer syntax. """ - return _core.Window_RefreshRect(*args, **kwargs) + return _core_.Window_RefreshRect(*args, **kwargs) def Update(*args, **kwargs): """ @@ -6483,7 +6483,7 @@ class Window(EvtHandler): first if you want to immediately redraw the window (or some portion of it) unconditionally. """ - return _core.Window_Update(*args, **kwargs) + return _core_.Window_Update(*args, **kwargs) def ClearBackground(*args, **kwargs): """ @@ -6492,7 +6492,7 @@ class Window(EvtHandler): Clears the window by filling it with the current background colour. Does not cause an erase background event to be generated. """ - return _core.Window_ClearBackground(*args, **kwargs) + return _core_.Window_ClearBackground(*args, **kwargs) def Freeze(*args, **kwargs): """ @@ -6509,7 +6509,7 @@ class Window(EvtHandler): for all controls so it is mostly just a hint to wxWindows and not a mandatory directive. """ - return _core.Window_Freeze(*args, **kwargs) + return _core_.Window_Freeze(*args, **kwargs) def Thaw(*args, **kwargs): """ @@ -6519,7 +6519,7 @@ class Window(EvtHandler): Freeze/Thaw may be nested, so Thaw must be called the same number of times that Freeze was before the window will be updated. """ - return _core.Window_Thaw(*args, **kwargs) + return _core_.Window_Thaw(*args, **kwargs) def PrepareDC(*args, **kwargs): """ @@ -6529,7 +6529,7 @@ class Window(EvtHandler): scrolled image. It sets the device origin according to the current scroll position. """ - return _core.Window_PrepareDC(*args, **kwargs) + return _core_.Window_PrepareDC(*args, **kwargs) def GetUpdateRegion(*args, **kwargs): """ @@ -6538,7 +6538,7 @@ class Window(EvtHandler): Returns the region specifying which parts of the window have been damaged. Should only be called within an EVT_PAINT handler. """ - return _core.Window_GetUpdateRegion(*args, **kwargs) + return _core_.Window_GetUpdateRegion(*args, **kwargs) def GetUpdateClientRect(*args, **kwargs): """ @@ -6546,7 +6546,7 @@ class Window(EvtHandler): Get the update rectangle region bounding box in client coords. """ - return _core.Window_GetUpdateClientRect(*args, **kwargs) + return _core_.Window_GetUpdateClientRect(*args, **kwargs) def IsExposed(*args, **kwargs): """ @@ -6557,7 +6557,7 @@ class Window(EvtHandler): optimize redrawing by only redrawing those areas, which have been exposed. """ - return _core.Window_IsExposed(*args, **kwargs) + return _core_.Window_IsExposed(*args, **kwargs) def IsExposedPoint(*args, **kwargs): """ @@ -6568,7 +6568,7 @@ class Window(EvtHandler): optimize redrawing by only redrawing those areas, which have been exposed. """ - return _core.Window_IsExposedPoint(*args, **kwargs) + return _core_.Window_IsExposedPoint(*args, **kwargs) def IsExposedRect(*args, **kwargs): """ @@ -6579,7 +6579,7 @@ class Window(EvtHandler): optimize redrawing by only redrawing those areas, which have been exposed. """ - return _core.Window_IsExposedRect(*args, **kwargs) + return _core_.Window_IsExposedRect(*args, **kwargs) def GetDefaultAttributes(*args, **kwargs): """ @@ -6592,7 +6592,7 @@ class Window(EvtHandler): completely out of place on the users system, especially if it uses themes. """ - return _core.Window_GetDefaultAttributes(*args, **kwargs) + return _core_.Window_GetDefaultAttributes(*args, **kwargs) def GetClassDefaultAttributes(*args, **kwargs): """ @@ -6608,7 +6608,7 @@ class Window(EvtHandler): ignore under other platforms. Under Mac, it will change the size of the returned font. See SetWindowVariant for more about this. """ - return _core.Window_GetClassDefaultAttributes(*args, **kwargs) + return _core_.Window_GetClassDefaultAttributes(*args, **kwargs) GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) def SetBackgroundColour(*args, **kwargs): @@ -6629,11 +6629,11 @@ class Window(EvtHandler): ability to change its look as the user wishes with run-time loadable modules. """ - return _core.Window_SetBackgroundColour(*args, **kwargs) + return _core_.Window_SetBackgroundColour(*args, **kwargs) def SetDefaultBackgroundColour(*args, **kwargs): """SetDefaultBackgroundColour(self, Colour colour)""" - return _core.Window_SetDefaultBackgroundColour(*args, **kwargs) + return _core_.Window_SetDefaultBackgroundColour(*args, **kwargs) def SetForegroundColour(*args, **kwargs): """ @@ -6644,11 +6644,11 @@ class Window(EvtHandler): the window class; it may be the text colour or other colour, or it may not be used at all. """ - return _core.Window_SetForegroundColour(*args, **kwargs) + return _core_.Window_SetForegroundColour(*args, **kwargs) def SetDefaultForegroundColour(*args, **kwargs): """SetDefaultForegroundColour(self, Colour colour)""" - return _core.Window_SetDefaultForegroundColour(*args, **kwargs) + return _core_.Window_SetDefaultForegroundColour(*args, **kwargs) def GetBackgroundColour(*args, **kwargs): """ @@ -6656,7 +6656,7 @@ class Window(EvtHandler): Returns the background colour of the window. """ - return _core.Window_GetBackgroundColour(*args, **kwargs) + return _core_.Window_GetBackgroundColour(*args, **kwargs) def GetForegroundColour(*args, **kwargs): """ @@ -6666,7 +6666,7 @@ class Window(EvtHandler): foreground colour is dependent on the window class; it may be the text colour or other colour, or it may not be used at all. """ - return _core.Window_GetForegroundColour(*args, **kwargs) + return _core_.Window_GetForegroundColour(*args, **kwargs) def SetCursor(*args, **kwargs): """ @@ -6678,7 +6678,7 @@ class Window(EvtHandler): The cursor may be wx.NullCursor in which case the window cursor will be reset back to default. """ - return _core.Window_SetCursor(*args, **kwargs) + return _core_.Window_SetCursor(*args, **kwargs) def GetCursor(*args, **kwargs): """ @@ -6686,7 +6686,7 @@ class Window(EvtHandler): Return the cursor associated with this window. """ - return _core.Window_GetCursor(*args, **kwargs) + return _core_.Window_GetCursor(*args, **kwargs) def SetFont(*args, **kwargs): """ @@ -6694,11 +6694,11 @@ class Window(EvtHandler): Sets the font for this window. """ - return _core.Window_SetFont(*args, **kwargs) + return _core_.Window_SetFont(*args, **kwargs) def SetDefaultFont(*args, **kwargs): """SetDefaultFont(self, Font font)""" - return _core.Window_SetDefaultFont(*args, **kwargs) + return _core_.Window_SetDefaultFont(*args, **kwargs) def GetFont(*args, **kwargs): """ @@ -6706,7 +6706,7 @@ class Window(EvtHandler): Returns the default font used for this window. """ - return _core.Window_GetFont(*args, **kwargs) + return _core_.Window_GetFont(*args, **kwargs) def SetCaret(*args, **kwargs): """ @@ -6714,7 +6714,7 @@ class Window(EvtHandler): Sets the caret associated with the window. """ - return _core.Window_SetCaret(*args, **kwargs) + return _core_.Window_SetCaret(*args, **kwargs) def GetCaret(*args, **kwargs): """ @@ -6722,7 +6722,7 @@ class Window(EvtHandler): Returns the caret associated with the window. """ - return _core.Window_GetCaret(*args, **kwargs) + return _core_.Window_GetCaret(*args, **kwargs) def GetCharHeight(*args, **kwargs): """ @@ -6730,7 +6730,7 @@ class Window(EvtHandler): Get the (average) character size for the current font. """ - return _core.Window_GetCharHeight(*args, **kwargs) + return _core_.Window_GetCharHeight(*args, **kwargs) def GetCharWidth(*args, **kwargs): """ @@ -6738,7 +6738,7 @@ class Window(EvtHandler): Get the (average) character size for the current font. """ - return _core.Window_GetCharWidth(*args, **kwargs) + return _core_.Window_GetCharWidth(*args, **kwargs) def GetTextExtent(*args, **kwargs): """ @@ -6746,7 +6746,7 @@ class Window(EvtHandler): Get the width and height of the text using the current font. """ - return _core.Window_GetTextExtent(*args, **kwargs) + return _core_.Window_GetTextExtent(*args, **kwargs) def GetFullTextExtent(*args, **kwargs): """ @@ -6756,7 +6756,7 @@ class Window(EvtHandler): Get the width, height, decent and leading of the text using the current or specified font. """ - return _core.Window_GetFullTextExtent(*args, **kwargs) + return _core_.Window_GetFullTextExtent(*args, **kwargs) def ClientToScreenXY(*args, **kwargs): """ @@ -6764,7 +6764,7 @@ class Window(EvtHandler): Converts to screen coordinates from coordinates relative to this window. """ - return _core.Window_ClientToScreenXY(*args, **kwargs) + return _core_.Window_ClientToScreenXY(*args, **kwargs) def ScreenToClientXY(*args, **kwargs): """ @@ -6772,7 +6772,7 @@ class Window(EvtHandler): Converts from screen to client window coordinates. """ - return _core.Window_ScreenToClientXY(*args, **kwargs) + return _core_.Window_ScreenToClientXY(*args, **kwargs) def ClientToScreen(*args, **kwargs): """ @@ -6780,7 +6780,7 @@ class Window(EvtHandler): Converts to screen coordinates from coordinates relative to this window. """ - return _core.Window_ClientToScreen(*args, **kwargs) + return _core_.Window_ClientToScreen(*args, **kwargs) def ScreenToClient(*args, **kwargs): """ @@ -6788,7 +6788,7 @@ class Window(EvtHandler): Converts from screen to client window coordinates. """ - return _core.Window_ScreenToClient(*args, **kwargs) + return _core_.Window_ScreenToClient(*args, **kwargs) def HitTestXY(*args, **kwargs): """ @@ -6796,7 +6796,7 @@ class Window(EvtHandler): Test where the given (in client coords) point lies """ - return _core.Window_HitTestXY(*args, **kwargs) + return _core_.Window_HitTestXY(*args, **kwargs) def HitTest(*args, **kwargs): """ @@ -6804,7 +6804,7 @@ class Window(EvtHandler): Test where the given (in client coords) point lies """ - return _core.Window_HitTest(*args, **kwargs) + return _core_.Window_HitTest(*args, **kwargs) def GetBorder(*args): """ @@ -6813,7 +6813,7 @@ class Window(EvtHandler): Get border for the flags of this window """ - return _core.Window_GetBorder(*args) + return _core_.Window_GetBorder(*args) def UpdateWindowUI(*args, **kwargs): """ @@ -6848,7 +6848,7 @@ class Window(EvtHandler): self.UpdateWindowUI(wx.UPDATE_UI_FROMIDLE); """ - return _core.Window_UpdateWindowUI(*args, **kwargs) + return _core_.Window_UpdateWindowUI(*args, **kwargs) def PopupMenuXY(*args, **kwargs): """ @@ -6859,7 +6859,7 @@ class Window(EvtHandler): menu item is selected, the corresponding menu event is generated and will be processed as usual. """ - return _core.Window_PopupMenuXY(*args, **kwargs) + return _core_.Window_PopupMenuXY(*args, **kwargs) def PopupMenu(*args, **kwargs): """ @@ -6870,7 +6870,7 @@ class Window(EvtHandler): menu item is selected, the corresponding menu event is generated and will be processed as usual. """ - return _core.Window_PopupMenu(*args, **kwargs) + return _core_.Window_PopupMenu(*args, **kwargs) def GetHandle(*args, **kwargs): """ @@ -6880,7 +6880,7 @@ class Window(EvtHandler): physical window. Currently on wxMac it returns the handle of the toplevel parent of the window. """ - return _core.Window_GetHandle(*args, **kwargs) + return _core_.Window_GetHandle(*args, **kwargs) def HasScrollbar(*args, **kwargs): """ @@ -6888,7 +6888,7 @@ class Window(EvtHandler): Does the window have the scrollbar for this orientation? """ - return _core.Window_HasScrollbar(*args, **kwargs) + return _core_.Window_HasScrollbar(*args, **kwargs) def SetScrollbar(*args, **kwargs): """ @@ -6909,7 +6909,7 @@ class Window(EvtHandler): refresh: True to redraw the scrollbar, false otherwise. """ - return _core.Window_SetScrollbar(*args, **kwargs) + return _core_.Window_SetScrollbar(*args, **kwargs) def SetScrollPos(*args, **kwargs): """ @@ -6917,7 +6917,7 @@ class Window(EvtHandler): Sets the position of one of the built-in scrollbars. """ - return _core.Window_SetScrollPos(*args, **kwargs) + return _core_.Window_SetScrollPos(*args, **kwargs) def GetScrollPos(*args, **kwargs): """ @@ -6925,7 +6925,7 @@ class Window(EvtHandler): Returns the built-in scrollbar position. """ - return _core.Window_GetScrollPos(*args, **kwargs) + return _core_.Window_GetScrollPos(*args, **kwargs) def GetScrollThumb(*args, **kwargs): """ @@ -6933,7 +6933,7 @@ class Window(EvtHandler): Returns the built-in scrollbar thumb size. """ - return _core.Window_GetScrollThumb(*args, **kwargs) + return _core_.Window_GetScrollThumb(*args, **kwargs) def GetScrollRange(*args, **kwargs): """ @@ -6941,7 +6941,7 @@ class Window(EvtHandler): Returns the built-in scrollbar range. """ - return _core.Window_GetScrollRange(*args, **kwargs) + return _core_.Window_GetScrollRange(*args, **kwargs) def ScrollWindow(*args, **kwargs): """ @@ -6962,7 +6962,7 @@ class Window(EvtHandler): handler can optimize painting by checking for the invalidated region. """ - return _core.Window_ScrollWindow(*args, **kwargs) + return _core_.Window_ScrollWindow(*args, **kwargs) def ScrollLines(*args, **kwargs): """ @@ -6973,7 +6973,7 @@ class Window(EvtHandler): is negative. Returns True if the window was scrolled, False if it was already on top/bottom and nothing was done. """ - return _core.Window_ScrollLines(*args, **kwargs) + return _core_.Window_ScrollLines(*args, **kwargs) def ScrollPages(*args, **kwargs): """ @@ -6984,7 +6984,7 @@ class Window(EvtHandler): is negative. Returns True if the window was scrolled, False if it was already on top/bottom and nothing was done. """ - return _core.Window_ScrollPages(*args, **kwargs) + return _core_.Window_ScrollPages(*args, **kwargs) def LineUp(*args, **kwargs): """ @@ -6992,7 +6992,7 @@ class Window(EvtHandler): This is just a wrapper for ScrollLines(-1). """ - return _core.Window_LineUp(*args, **kwargs) + return _core_.Window_LineUp(*args, **kwargs) def LineDown(*args, **kwargs): """ @@ -7000,7 +7000,7 @@ class Window(EvtHandler): This is just a wrapper for ScrollLines(1). """ - return _core.Window_LineDown(*args, **kwargs) + return _core_.Window_LineDown(*args, **kwargs) def PageUp(*args, **kwargs): """ @@ -7008,7 +7008,7 @@ class Window(EvtHandler): This is just a wrapper for ScrollPages(-1). """ - return _core.Window_PageUp(*args, **kwargs) + return _core_.Window_PageUp(*args, **kwargs) def PageDown(*args, **kwargs): """ @@ -7016,7 +7016,7 @@ class Window(EvtHandler): This is just a wrapper for ScrollPages(1). """ - return _core.Window_PageDown(*args, **kwargs) + return _core_.Window_PageDown(*args, **kwargs) def SetHelpText(*args, **kwargs): """ @@ -7026,7 +7026,7 @@ class Window(EvtHandler): window. Note that the text is actually stored by the current wxHelpProvider implementation, and not in the window object itself. """ - return _core.Window_SetHelpText(*args, **kwargs) + return _core_.Window_SetHelpText(*args, **kwargs) def SetHelpTextForId(*args, **kwargs): """ @@ -7035,7 +7035,7 @@ class Window(EvtHandler): Associate this help text with all windows with the same id as this one. """ - return _core.Window_SetHelpTextForId(*args, **kwargs) + return _core_.Window_SetHelpTextForId(*args, **kwargs) def GetHelpText(*args, **kwargs): """ @@ -7045,7 +7045,7 @@ class Window(EvtHandler): window. Note that the text is actually stored by the current wxHelpProvider implementation, and not in the window object itself. """ - return _core.Window_GetHelpText(*args, **kwargs) + return _core_.Window_GetHelpText(*args, **kwargs) def SetToolTipString(*args, **kwargs): """ @@ -7053,7 +7053,7 @@ class Window(EvtHandler): Attach a tooltip to the window. """ - return _core.Window_SetToolTipString(*args, **kwargs) + return _core_.Window_SetToolTipString(*args, **kwargs) def SetToolTip(*args, **kwargs): """ @@ -7061,7 +7061,7 @@ class Window(EvtHandler): Attach a tooltip to the window. """ - return _core.Window_SetToolTip(*args, **kwargs) + return _core_.Window_SetToolTip(*args, **kwargs) def GetToolTip(*args, **kwargs): """ @@ -7069,7 +7069,7 @@ class Window(EvtHandler): get the associated tooltip or None if none """ - return _core.Window_GetToolTip(*args, **kwargs) + return _core_.Window_GetToolTip(*args, **kwargs) def SetDropTarget(*args, **kwargs): """ @@ -7078,7 +7078,7 @@ class Window(EvtHandler): Associates a drop target with this window. If the window already has a drop target, it is deleted. """ - return _core.Window_SetDropTarget(*args, **kwargs) + return _core_.Window_SetDropTarget(*args, **kwargs) def GetDropTarget(*args, **kwargs): """ @@ -7086,7 +7086,7 @@ class Window(EvtHandler): Returns the associated drop target, which may be None. """ - return _core.Window_GetDropTarget(*args, **kwargs) + return _core_.Window_GetDropTarget(*args, **kwargs) def SetConstraints(*args, **kwargs): """ @@ -7103,7 +7103,7 @@ class Window(EvtHandler): both a wx.LayoutConstraints and a wx.Sizer, only the sizer will have effect. """ - return _core.Window_SetConstraints(*args, **kwargs) + return _core_.Window_SetConstraints(*args, **kwargs) def GetConstraints(*args, **kwargs): """ @@ -7112,7 +7112,7 @@ class Window(EvtHandler): Returns a pointer to the window's layout constraints, or None if there are none. """ - return _core.Window_GetConstraints(*args, **kwargs) + return _core_.Window_GetConstraints(*args, **kwargs) def SetAutoLayout(*args, **kwargs): """ @@ -7123,7 +7123,7 @@ class Window(EvtHandler): if you use SetConstraints you should call it manually or otherwise the window layout won't be correctly updated when its size changes. """ - return _core.Window_SetAutoLayout(*args, **kwargs) + return _core_.Window_SetAutoLayout(*args, **kwargs) def GetAutoLayout(*args, **kwargs): """ @@ -7131,7 +7131,7 @@ class Window(EvtHandler): Returns the current autoLayout setting """ - return _core.Window_GetAutoLayout(*args, **kwargs) + return _core_.Window_GetAutoLayout(*args, **kwargs) def Layout(*args, **kwargs): """ @@ -7142,7 +7142,7 @@ class Window(EvtHandler): this function gets called automatically by the default EVT_SIZE handler when the window is resized. """ - return _core.Window_Layout(*args, **kwargs) + return _core_.Window_Layout(*args, **kwargs) def SetSizer(*args, **kwargs): """ @@ -7155,7 +7155,7 @@ class Window(EvtHandler): call SetAutoLayout implicitly with a True parameter if the sizer is non-NoneL and False otherwise. """ - return _core.Window_SetSizer(*args, **kwargs) + return _core_.Window_SetSizer(*args, **kwargs) def SetSizerAndFit(*args, **kwargs): """ @@ -7164,7 +7164,7 @@ class Window(EvtHandler): The same as SetSizer, except it also sets the size hints for the window based on the sizer's minimum size. """ - return _core.Window_SetSizerAndFit(*args, **kwargs) + return _core_.Window_SetSizerAndFit(*args, **kwargs) def GetSizer(*args, **kwargs): """ @@ -7173,7 +7173,7 @@ class Window(EvtHandler): Return the sizer associated with the window by a previous call to SetSizer or None if there isn't one. """ - return _core.Window_GetSizer(*args, **kwargs) + return _core_.Window_GetSizer(*args, **kwargs) def SetContainingSizer(*args, **kwargs): """ @@ -7183,7 +7183,7 @@ class Window(EvtHandler): called internally when a window is added to a sizer, and is used so the window can remove itself from the sizer when it is destroyed. """ - return _core.Window_SetContainingSizer(*args, **kwargs) + return _core_.Window_SetContainingSizer(*args, **kwargs) def GetContainingSizer(*args, **kwargs): """ @@ -7191,7 +7191,7 @@ class Window(EvtHandler): Return the sizer that this window is a member of, if any, otherwise None. """ - return _core.Window_GetContainingSizer(*args, **kwargs) + return _core_.Window_GetContainingSizer(*args, **kwargs) def InheritAttributes(*args, **kwargs): """ @@ -7222,7 +7222,7 @@ class Window(EvtHandler): by just changing the font or colour of their common parent, hence in this case we do inherit the parents attributes. """ - return _core.Window_InheritAttributes(*args, **kwargs) + return _core_.Window_InheritAttributes(*args, **kwargs) def ShouldInheritColours(*args, **kwargs): """ @@ -7235,7 +7235,7 @@ class Window(EvtHandler): The base class version returns false, but this method is overridden in wxControl where it returns true. """ - return _core.Window_ShouldInheritColours(*args, **kwargs) + return _core_.Window_ShouldInheritColours(*args, **kwargs) def PostCreate(self, pre): """ @@ -7256,7 +7256,7 @@ class WindowPtr(Window): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = Window -_core.Window_swigregister(WindowPtr) +_core_.Window_swigregister(WindowPtr) def PreWindow(*args, **kwargs): """ @@ -7264,7 +7264,7 @@ def PreWindow(*args, **kwargs): Precreate a Window for 2-phase creation. """ - val = _core.new_PreWindow(*args, **kwargs) + val = _core_.new_PreWindow(*args, **kwargs) val.thisown = 1 return val @@ -7274,7 +7274,7 @@ def Window_NewControlId(*args, **kwargs): Generate a control id for the controls which were not given one. """ - return _core.Window_NewControlId(*args, **kwargs) + return _core_.Window_NewControlId(*args, **kwargs) def Window_NextControlId(*args, **kwargs): """ @@ -7283,7 +7283,7 @@ def Window_NextControlId(*args, **kwargs): Get the id of the control following the one with the given (autogenerated) id """ - return _core.Window_NextControlId(*args, **kwargs) + return _core_.Window_NextControlId(*args, **kwargs) def Window_PrevControlId(*args, **kwargs): """ @@ -7292,7 +7292,7 @@ def Window_PrevControlId(*args, **kwargs): Get the id of the control preceding the one with the given (autogenerated) id """ - return _core.Window_PrevControlId(*args, **kwargs) + return _core_.Window_PrevControlId(*args, **kwargs) def Window_FindFocus(*args, **kwargs): """ @@ -7301,7 +7301,7 @@ def Window_FindFocus(*args, **kwargs): Returns the window or control that currently has the keyboard focus, or None. """ - return _core.Window_FindFocus(*args, **kwargs) + return _core_.Window_FindFocus(*args, **kwargs) def Window_GetCapture(*args, **kwargs): """ @@ -7309,7 +7309,7 @@ def Window_GetCapture(*args, **kwargs): Returns the window which currently captures the mouse or None """ - return _core.Window_GetCapture(*args, **kwargs) + return _core_.Window_GetCapture(*args, **kwargs) def Window_GetClassDefaultAttributes(*args, **kwargs): """ @@ -7325,7 +7325,7 @@ def Window_GetClassDefaultAttributes(*args, **kwargs): ignore under other platforms. Under Mac, it will change the size of the returned font. See SetWindowVariant for more about this. """ - return _core.Window_GetClassDefaultAttributes(*args, **kwargs) + return _core_.Window_GetClassDefaultAttributes(*args, **kwargs) def DLG_PNT(win, point_or_x, y=None): """ @@ -7357,7 +7357,7 @@ def FindWindowById(*args, **kwargs): boxes; if non-None, the search will be limited to the given window hierarchy. The search is recursive in both cases. """ - return _core.FindWindowById(*args, **kwargs) + return _core_.FindWindowById(*args, **kwargs) def FindWindowByName(*args, **kwargs): """ @@ -7371,7 +7371,7 @@ def FindWindowByName(*args, **kwargs): If no window with such name is found, wx.FindWindowByLabel is called. """ - return _core.FindWindowByName(*args, **kwargs) + return _core_.FindWindowByName(*args, **kwargs) def FindWindowByLabel(*args, **kwargs): """ @@ -7383,11 +7383,11 @@ def FindWindowByLabel(*args, **kwargs): non-None, the search will be limited to the given window hierarchy. The search is recursive in both cases. """ - return _core.FindWindowByLabel(*args, **kwargs) + return _core_.FindWindowByLabel(*args, **kwargs) def Window_FromHWND(*args, **kwargs): """Window_FromHWND(Window parent, unsigned long _hWnd) -> Window""" - return _core.Window_FromHWND(*args, **kwargs) + return _core_.Window_FromHWND(*args, **kwargs) #--------------------------------------------------------------------------- class Validator(EvtHandler): @@ -7395,7 +7395,7 @@ class Validator(EvtHandler): return "<%s.%s; proxy of C++ wxValidator instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> Validator""" - newobj = _core.new_Validator(*args, **kwargs) + newobj = _core_.new_Validator(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -7403,36 +7403,36 @@ class Validator(EvtHandler): def Clone(*args, **kwargs): """Clone(self) -> Validator""" - return _core.Validator_Clone(*args, **kwargs) + return _core_.Validator_Clone(*args, **kwargs) def Validate(*args, **kwargs): """Validate(self, Window parent) -> bool""" - return _core.Validator_Validate(*args, **kwargs) + return _core_.Validator_Validate(*args, **kwargs) def TransferToWindow(*args, **kwargs): """TransferToWindow(self) -> bool""" - return _core.Validator_TransferToWindow(*args, **kwargs) + return _core_.Validator_TransferToWindow(*args, **kwargs) def TransferFromWindow(*args, **kwargs): """TransferFromWindow(self) -> bool""" - return _core.Validator_TransferFromWindow(*args, **kwargs) + return _core_.Validator_TransferFromWindow(*args, **kwargs) def GetWindow(*args, **kwargs): """GetWindow(self) -> Window""" - return _core.Validator_GetWindow(*args, **kwargs) + return _core_.Validator_GetWindow(*args, **kwargs) def SetWindow(*args, **kwargs): """SetWindow(self, Window window)""" - return _core.Validator_SetWindow(*args, **kwargs) + return _core_.Validator_SetWindow(*args, **kwargs) def IsSilent(*args, **kwargs): """Validator.IsSilent() -> bool""" - return _core.Validator_IsSilent(*args, **kwargs) + return _core_.Validator_IsSilent(*args, **kwargs) IsSilent = staticmethod(IsSilent) def SetBellOnError(*args, **kwargs): """Validator.SetBellOnError(int doIt=True)""" - return _core.Validator_SetBellOnError(*args, **kwargs) + return _core_.Validator_SetBellOnError(*args, **kwargs) SetBellOnError = staticmethod(SetBellOnError) @@ -7441,22 +7441,22 @@ class ValidatorPtr(Validator): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = Validator -_core.Validator_swigregister(ValidatorPtr) +_core_.Validator_swigregister(ValidatorPtr) def Validator_IsSilent(*args, **kwargs): """Validator_IsSilent() -> bool""" - return _core.Validator_IsSilent(*args, **kwargs) + return _core_.Validator_IsSilent(*args, **kwargs) def Validator_SetBellOnError(*args, **kwargs): """Validator_SetBellOnError(int doIt=True)""" - return _core.Validator_SetBellOnError(*args, **kwargs) + return _core_.Validator_SetBellOnError(*args, **kwargs) class PyValidator(Validator): def __repr__(self): return "<%s.%s; proxy of C++ wxPyValidator instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> PyValidator""" - newobj = _core.new_PyValidator(*args, **kwargs) + newobj = _core_.new_PyValidator(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -7466,7 +7466,7 @@ class PyValidator(Validator): def _setCallbackInfo(*args, **kwargs): """_setCallbackInfo(self, PyObject self, PyObject _class, int incref=True)""" - return _core.PyValidator__setCallbackInfo(*args, **kwargs) + return _core_.PyValidator__setCallbackInfo(*args, **kwargs) class PyValidatorPtr(PyValidator): @@ -7474,7 +7474,7 @@ class PyValidatorPtr(PyValidator): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = PyValidator -_core.PyValidator_swigregister(PyValidatorPtr) +_core_.PyValidator_swigregister(PyValidatorPtr) #--------------------------------------------------------------------------- @@ -7483,7 +7483,7 @@ class Menu(EvtHandler): return "<%s.%s; proxy of C++ wxMenu instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, String title=EmptyString, long style=0) -> Menu""" - newobj = _core.new_Menu(*args, **kwargs) + newobj = _core_.new_Menu(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -7491,98 +7491,98 @@ class Menu(EvtHandler): def Append(*args, **kwargs): """Append(self, int id, String text, String help=EmptyString, int kind=ITEM_NORMAL) -> MenuItem""" - return _core.Menu_Append(*args, **kwargs) + return _core_.Menu_Append(*args, **kwargs) def AppendSeparator(*args, **kwargs): """AppendSeparator(self) -> MenuItem""" - return _core.Menu_AppendSeparator(*args, **kwargs) + return _core_.Menu_AppendSeparator(*args, **kwargs) def AppendCheckItem(*args, **kwargs): """AppendCheckItem(self, int id, String text, String help=EmptyString) -> MenuItem""" - return _core.Menu_AppendCheckItem(*args, **kwargs) + return _core_.Menu_AppendCheckItem(*args, **kwargs) def AppendRadioItem(*args, **kwargs): """AppendRadioItem(self, int id, String text, String help=EmptyString) -> MenuItem""" - return _core.Menu_AppendRadioItem(*args, **kwargs) + return _core_.Menu_AppendRadioItem(*args, **kwargs) def AppendMenu(*args, **kwargs): """AppendMenu(self, int id, String text, Menu submenu, String help=EmptyString) -> MenuItem""" - return _core.Menu_AppendMenu(*args, **kwargs) + return _core_.Menu_AppendMenu(*args, **kwargs) def AppendItem(*args, **kwargs): """AppendItem(self, MenuItem item) -> MenuItem""" - return _core.Menu_AppendItem(*args, **kwargs) + return _core_.Menu_AppendItem(*args, **kwargs) def Break(*args, **kwargs): """Break(self)""" - return _core.Menu_Break(*args, **kwargs) + return _core_.Menu_Break(*args, **kwargs) def InsertItem(*args, **kwargs): """InsertItem(self, size_t pos, MenuItem item) -> MenuItem""" - return _core.Menu_InsertItem(*args, **kwargs) + return _core_.Menu_InsertItem(*args, **kwargs) def Insert(*args, **kwargs): """ Insert(self, size_t pos, int id, String text, String help=EmptyString, int kind=ITEM_NORMAL) -> MenuItem """ - return _core.Menu_Insert(*args, **kwargs) + return _core_.Menu_Insert(*args, **kwargs) def InsertSeparator(*args, **kwargs): """InsertSeparator(self, size_t pos) -> MenuItem""" - return _core.Menu_InsertSeparator(*args, **kwargs) + return _core_.Menu_InsertSeparator(*args, **kwargs) def InsertCheckItem(*args, **kwargs): """InsertCheckItem(self, size_t pos, int id, String text, String help=EmptyString) -> MenuItem""" - return _core.Menu_InsertCheckItem(*args, **kwargs) + return _core_.Menu_InsertCheckItem(*args, **kwargs) def InsertRadioItem(*args, **kwargs): """InsertRadioItem(self, size_t pos, int id, String text, String help=EmptyString) -> MenuItem""" - return _core.Menu_InsertRadioItem(*args, **kwargs) + return _core_.Menu_InsertRadioItem(*args, **kwargs) def InsertMenu(*args, **kwargs): """InsertMenu(self, size_t pos, int id, String text, Menu submenu, String help=EmptyString) -> MenuItem""" - return _core.Menu_InsertMenu(*args, **kwargs) + return _core_.Menu_InsertMenu(*args, **kwargs) def PrependItem(*args, **kwargs): """PrependItem(self, MenuItem item) -> MenuItem""" - return _core.Menu_PrependItem(*args, **kwargs) + return _core_.Menu_PrependItem(*args, **kwargs) def Prepend(*args, **kwargs): """Prepend(self, int id, String text, String help=EmptyString, int kind=ITEM_NORMAL) -> MenuItem""" - return _core.Menu_Prepend(*args, **kwargs) + return _core_.Menu_Prepend(*args, **kwargs) def PrependSeparator(*args, **kwargs): """PrependSeparator(self) -> MenuItem""" - return _core.Menu_PrependSeparator(*args, **kwargs) + return _core_.Menu_PrependSeparator(*args, **kwargs) def PrependCheckItem(*args, **kwargs): """PrependCheckItem(self, int id, String text, String help=EmptyString) -> MenuItem""" - return _core.Menu_PrependCheckItem(*args, **kwargs) + return _core_.Menu_PrependCheckItem(*args, **kwargs) def PrependRadioItem(*args, **kwargs): """PrependRadioItem(self, int id, String text, String help=EmptyString) -> MenuItem""" - return _core.Menu_PrependRadioItem(*args, **kwargs) + return _core_.Menu_PrependRadioItem(*args, **kwargs) def PrependMenu(*args, **kwargs): """PrependMenu(self, int id, String text, Menu submenu, String help=EmptyString) -> MenuItem""" - return _core.Menu_PrependMenu(*args, **kwargs) + return _core_.Menu_PrependMenu(*args, **kwargs) def Remove(*args, **kwargs): """Remove(self, int id) -> MenuItem""" - return _core.Menu_Remove(*args, **kwargs) + return _core_.Menu_Remove(*args, **kwargs) def RemoveItem(*args, **kwargs): """RemoveItem(self, MenuItem item) -> MenuItem""" - return _core.Menu_RemoveItem(*args, **kwargs) + return _core_.Menu_RemoveItem(*args, **kwargs) def Delete(*args, **kwargs): """Delete(self, int id) -> bool""" - return _core.Menu_Delete(*args, **kwargs) + return _core_.Menu_Delete(*args, **kwargs) def DeleteItem(*args, **kwargs): """DeleteItem(self, MenuItem item) -> bool""" - return _core.Menu_DeleteItem(*args, **kwargs) + return _core_.Menu_DeleteItem(*args, **kwargs) def Destroy(*args, **kwargs): """ @@ -7590,7 +7590,7 @@ class Menu(EvtHandler): Deletes the C++ object this Python object is a proxy for. """ - return _core.Menu_Destroy(*args, **kwargs) + return _core_.Menu_Destroy(*args, **kwargs) def DestroyId(*args, **kwargs): """ @@ -7598,7 +7598,7 @@ class Menu(EvtHandler): Deletes the C++ object this Python object is a proxy for. """ - return _core.Menu_DestroyId(*args, **kwargs) + return _core_.Menu_DestroyId(*args, **kwargs) def DestroyItem(*args, **kwargs): """ @@ -7606,115 +7606,115 @@ class Menu(EvtHandler): Deletes the C++ object this Python object is a proxy for. """ - return _core.Menu_DestroyItem(*args, **kwargs) + return _core_.Menu_DestroyItem(*args, **kwargs) def GetMenuItemCount(*args, **kwargs): """GetMenuItemCount(self) -> size_t""" - return _core.Menu_GetMenuItemCount(*args, **kwargs) + return _core_.Menu_GetMenuItemCount(*args, **kwargs) def GetMenuItems(*args, **kwargs): """GetMenuItems(self) -> PyObject""" - return _core.Menu_GetMenuItems(*args, **kwargs) + return _core_.Menu_GetMenuItems(*args, **kwargs) def FindItem(*args, **kwargs): """FindItem(self, String item) -> int""" - return _core.Menu_FindItem(*args, **kwargs) + return _core_.Menu_FindItem(*args, **kwargs) def FindItemById(*args, **kwargs): """FindItemById(self, int id) -> MenuItem""" - return _core.Menu_FindItemById(*args, **kwargs) + return _core_.Menu_FindItemById(*args, **kwargs) def FindItemByPosition(*args, **kwargs): """FindItemByPosition(self, size_t position) -> MenuItem""" - return _core.Menu_FindItemByPosition(*args, **kwargs) + return _core_.Menu_FindItemByPosition(*args, **kwargs) def Enable(*args, **kwargs): """Enable(self, int id, bool enable)""" - return _core.Menu_Enable(*args, **kwargs) + return _core_.Menu_Enable(*args, **kwargs) def IsEnabled(*args, **kwargs): """IsEnabled(self, int id) -> bool""" - return _core.Menu_IsEnabled(*args, **kwargs) + return _core_.Menu_IsEnabled(*args, **kwargs) def Check(*args, **kwargs): """Check(self, int id, bool check)""" - return _core.Menu_Check(*args, **kwargs) + return _core_.Menu_Check(*args, **kwargs) def IsChecked(*args, **kwargs): """IsChecked(self, int id) -> bool""" - return _core.Menu_IsChecked(*args, **kwargs) + return _core_.Menu_IsChecked(*args, **kwargs) def SetLabel(*args, **kwargs): """SetLabel(self, int id, String label)""" - return _core.Menu_SetLabel(*args, **kwargs) + return _core_.Menu_SetLabel(*args, **kwargs) def GetLabel(*args, **kwargs): """GetLabel(self, int id) -> String""" - return _core.Menu_GetLabel(*args, **kwargs) + return _core_.Menu_GetLabel(*args, **kwargs) def SetHelpString(*args, **kwargs): """SetHelpString(self, int id, String helpString)""" - return _core.Menu_SetHelpString(*args, **kwargs) + return _core_.Menu_SetHelpString(*args, **kwargs) def GetHelpString(*args, **kwargs): """GetHelpString(self, int id) -> String""" - return _core.Menu_GetHelpString(*args, **kwargs) + return _core_.Menu_GetHelpString(*args, **kwargs) def SetTitle(*args, **kwargs): """SetTitle(self, String title)""" - return _core.Menu_SetTitle(*args, **kwargs) + return _core_.Menu_SetTitle(*args, **kwargs) def GetTitle(*args, **kwargs): """GetTitle(self) -> String""" - return _core.Menu_GetTitle(*args, **kwargs) + return _core_.Menu_GetTitle(*args, **kwargs) def SetEventHandler(*args, **kwargs): """SetEventHandler(self, EvtHandler handler)""" - return _core.Menu_SetEventHandler(*args, **kwargs) + return _core_.Menu_SetEventHandler(*args, **kwargs) def GetEventHandler(*args, **kwargs): """GetEventHandler(self) -> EvtHandler""" - return _core.Menu_GetEventHandler(*args, **kwargs) + return _core_.Menu_GetEventHandler(*args, **kwargs) def SetInvokingWindow(*args, **kwargs): """SetInvokingWindow(self, Window win)""" - return _core.Menu_SetInvokingWindow(*args, **kwargs) + return _core_.Menu_SetInvokingWindow(*args, **kwargs) def GetInvokingWindow(*args, **kwargs): """GetInvokingWindow(self) -> Window""" - return _core.Menu_GetInvokingWindow(*args, **kwargs) + return _core_.Menu_GetInvokingWindow(*args, **kwargs) def GetStyle(*args, **kwargs): """GetStyle(self) -> long""" - return _core.Menu_GetStyle(*args, **kwargs) + return _core_.Menu_GetStyle(*args, **kwargs) def UpdateUI(*args, **kwargs): """UpdateUI(self, EvtHandler source=None)""" - return _core.Menu_UpdateUI(*args, **kwargs) + return _core_.Menu_UpdateUI(*args, **kwargs) def GetMenuBar(*args, **kwargs): """GetMenuBar(self) -> MenuBar""" - return _core.Menu_GetMenuBar(*args, **kwargs) + return _core_.Menu_GetMenuBar(*args, **kwargs) def Attach(*args, **kwargs): """Attach(self, wxMenuBarBase menubar)""" - return _core.Menu_Attach(*args, **kwargs) + return _core_.Menu_Attach(*args, **kwargs) def Detach(*args, **kwargs): """Detach(self)""" - return _core.Menu_Detach(*args, **kwargs) + return _core_.Menu_Detach(*args, **kwargs) def IsAttached(*args, **kwargs): """IsAttached(self) -> bool""" - return _core.Menu_IsAttached(*args, **kwargs) + return _core_.Menu_IsAttached(*args, **kwargs) def SetParent(*args, **kwargs): """SetParent(self, Menu parent)""" - return _core.Menu_SetParent(*args, **kwargs) + return _core_.Menu_SetParent(*args, **kwargs) def GetParent(*args, **kwargs): """GetParent(self) -> Menu""" - return _core.Menu_GetParent(*args, **kwargs) + return _core_.Menu_GetParent(*args, **kwargs) class MenuPtr(Menu): @@ -7722,7 +7722,7 @@ class MenuPtr(Menu): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = Menu -_core.Menu_swigregister(MenuPtr) +_core_.Menu_swigregister(MenuPtr) DefaultValidator = cvar.DefaultValidator #--------------------------------------------------------------------------- @@ -7732,7 +7732,7 @@ class MenuBar(Window): return "<%s.%s; proxy of C++ wxMenuBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, long style=0) -> MenuBar""" - newobj = _core.new_MenuBar(*args, **kwargs) + newobj = _core_.new_MenuBar(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -7740,103 +7740,103 @@ class MenuBar(Window): def Append(*args, **kwargs): """Append(self, Menu menu, String title) -> bool""" - return _core.MenuBar_Append(*args, **kwargs) + return _core_.MenuBar_Append(*args, **kwargs) def Insert(*args, **kwargs): """Insert(self, size_t pos, Menu menu, String title) -> bool""" - return _core.MenuBar_Insert(*args, **kwargs) + return _core_.MenuBar_Insert(*args, **kwargs) def GetMenuCount(*args, **kwargs): """GetMenuCount(self) -> size_t""" - return _core.MenuBar_GetMenuCount(*args, **kwargs) + return _core_.MenuBar_GetMenuCount(*args, **kwargs) def GetMenu(*args, **kwargs): """GetMenu(self, size_t pos) -> Menu""" - return _core.MenuBar_GetMenu(*args, **kwargs) + return _core_.MenuBar_GetMenu(*args, **kwargs) def Replace(*args, **kwargs): """Replace(self, size_t pos, Menu menu, String title) -> Menu""" - return _core.MenuBar_Replace(*args, **kwargs) + return _core_.MenuBar_Replace(*args, **kwargs) def Remove(*args, **kwargs): """Remove(self, size_t pos) -> Menu""" - return _core.MenuBar_Remove(*args, **kwargs) + return _core_.MenuBar_Remove(*args, **kwargs) def EnableTop(*args, **kwargs): """EnableTop(self, size_t pos, bool enable)""" - return _core.MenuBar_EnableTop(*args, **kwargs) + return _core_.MenuBar_EnableTop(*args, **kwargs) def IsEnabledTop(*args, **kwargs): """IsEnabledTop(self, size_t pos) -> bool""" - return _core.MenuBar_IsEnabledTop(*args, **kwargs) + return _core_.MenuBar_IsEnabledTop(*args, **kwargs) def SetLabelTop(*args, **kwargs): """SetLabelTop(self, size_t pos, String label)""" - return _core.MenuBar_SetLabelTop(*args, **kwargs) + return _core_.MenuBar_SetLabelTop(*args, **kwargs) def GetLabelTop(*args, **kwargs): """GetLabelTop(self, size_t pos) -> String""" - return _core.MenuBar_GetLabelTop(*args, **kwargs) + return _core_.MenuBar_GetLabelTop(*args, **kwargs) def FindMenuItem(*args, **kwargs): """FindMenuItem(self, String menu, String item) -> int""" - return _core.MenuBar_FindMenuItem(*args, **kwargs) + return _core_.MenuBar_FindMenuItem(*args, **kwargs) def FindItemById(*args, **kwargs): """FindItemById(self, int id) -> MenuItem""" - return _core.MenuBar_FindItemById(*args, **kwargs) + return _core_.MenuBar_FindItemById(*args, **kwargs) def FindMenu(*args, **kwargs): """FindMenu(self, String title) -> int""" - return _core.MenuBar_FindMenu(*args, **kwargs) + return _core_.MenuBar_FindMenu(*args, **kwargs) def Enable(*args, **kwargs): """Enable(self, int id, bool enable)""" - return _core.MenuBar_Enable(*args, **kwargs) + return _core_.MenuBar_Enable(*args, **kwargs) def Check(*args, **kwargs): """Check(self, int id, bool check)""" - return _core.MenuBar_Check(*args, **kwargs) + return _core_.MenuBar_Check(*args, **kwargs) def IsChecked(*args, **kwargs): """IsChecked(self, int id) -> bool""" - return _core.MenuBar_IsChecked(*args, **kwargs) + return _core_.MenuBar_IsChecked(*args, **kwargs) def IsEnabled(*args, **kwargs): """IsEnabled(self, int id) -> bool""" - return _core.MenuBar_IsEnabled(*args, **kwargs) + return _core_.MenuBar_IsEnabled(*args, **kwargs) def SetLabel(*args, **kwargs): """SetLabel(self, int id, String label)""" - return _core.MenuBar_SetLabel(*args, **kwargs) + return _core_.MenuBar_SetLabel(*args, **kwargs) def GetLabel(*args, **kwargs): """GetLabel(self, int id) -> String""" - return _core.MenuBar_GetLabel(*args, **kwargs) + return _core_.MenuBar_GetLabel(*args, **kwargs) def SetHelpString(*args, **kwargs): """SetHelpString(self, int id, String helpString)""" - return _core.MenuBar_SetHelpString(*args, **kwargs) + return _core_.MenuBar_SetHelpString(*args, **kwargs) def GetHelpString(*args, **kwargs): """GetHelpString(self, int id) -> String""" - return _core.MenuBar_GetHelpString(*args, **kwargs) + return _core_.MenuBar_GetHelpString(*args, **kwargs) def GetFrame(*args, **kwargs): """GetFrame(self) -> wxFrame""" - return _core.MenuBar_GetFrame(*args, **kwargs) + return _core_.MenuBar_GetFrame(*args, **kwargs) def IsAttached(*args, **kwargs): """IsAttached(self) -> bool""" - return _core.MenuBar_IsAttached(*args, **kwargs) + return _core_.MenuBar_IsAttached(*args, **kwargs) def Attach(*args, **kwargs): """Attach(self, wxFrame frame)""" - return _core.MenuBar_Attach(*args, **kwargs) + return _core_.MenuBar_Attach(*args, **kwargs) def Detach(*args, **kwargs): """Detach(self)""" - return _core.MenuBar_Detach(*args, **kwargs) + return _core_.MenuBar_Detach(*args, **kwargs) class MenuBarPtr(MenuBar): @@ -7844,7 +7844,7 @@ class MenuBarPtr(MenuBar): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = MenuBar -_core.MenuBar_swigregister(MenuBarPtr) +_core_.MenuBar_swigregister(MenuBarPtr) #--------------------------------------------------------------------------- @@ -7857,123 +7857,123 @@ class MenuItem(Object): String help=EmptyString, int kind=ITEM_NORMAL, Menu subMenu=None) -> MenuItem """ - newobj = _core.new_MenuItem(*args, **kwargs) + newobj = _core_.new_MenuItem(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def GetMenu(*args, **kwargs): """GetMenu(self) -> Menu""" - return _core.MenuItem_GetMenu(*args, **kwargs) + return _core_.MenuItem_GetMenu(*args, **kwargs) def SetMenu(*args, **kwargs): """SetMenu(self, Menu menu)""" - return _core.MenuItem_SetMenu(*args, **kwargs) + return _core_.MenuItem_SetMenu(*args, **kwargs) def SetId(*args, **kwargs): """SetId(self, int id)""" - return _core.MenuItem_SetId(*args, **kwargs) + return _core_.MenuItem_SetId(*args, **kwargs) def GetId(*args, **kwargs): """GetId(self) -> int""" - return _core.MenuItem_GetId(*args, **kwargs) + return _core_.MenuItem_GetId(*args, **kwargs) def IsSeparator(*args, **kwargs): """IsSeparator(self) -> bool""" - return _core.MenuItem_IsSeparator(*args, **kwargs) + return _core_.MenuItem_IsSeparator(*args, **kwargs) def SetText(*args, **kwargs): """SetText(self, String str)""" - return _core.MenuItem_SetText(*args, **kwargs) + return _core_.MenuItem_SetText(*args, **kwargs) def GetLabel(*args, **kwargs): """GetLabel(self) -> String""" - return _core.MenuItem_GetLabel(*args, **kwargs) + return _core_.MenuItem_GetLabel(*args, **kwargs) def GetText(*args, **kwargs): """GetText(self) -> String""" - return _core.MenuItem_GetText(*args, **kwargs) + return _core_.MenuItem_GetText(*args, **kwargs) def GetLabelFromText(*args, **kwargs): """MenuItem.GetLabelFromText(String text) -> String""" - return _core.MenuItem_GetLabelFromText(*args, **kwargs) + return _core_.MenuItem_GetLabelFromText(*args, **kwargs) GetLabelFromText = staticmethod(GetLabelFromText) def GetKind(*args, **kwargs): """GetKind(self) -> int""" - return _core.MenuItem_GetKind(*args, **kwargs) + return _core_.MenuItem_GetKind(*args, **kwargs) def SetKind(*args, **kwargs): """SetKind(self, int kind)""" - return _core.MenuItem_SetKind(*args, **kwargs) + return _core_.MenuItem_SetKind(*args, **kwargs) def SetCheckable(*args, **kwargs): """SetCheckable(self, bool checkable)""" - return _core.MenuItem_SetCheckable(*args, **kwargs) + return _core_.MenuItem_SetCheckable(*args, **kwargs) def IsCheckable(*args, **kwargs): """IsCheckable(self) -> bool""" - return _core.MenuItem_IsCheckable(*args, **kwargs) + return _core_.MenuItem_IsCheckable(*args, **kwargs) def IsSubMenu(*args, **kwargs): """IsSubMenu(self) -> bool""" - return _core.MenuItem_IsSubMenu(*args, **kwargs) + return _core_.MenuItem_IsSubMenu(*args, **kwargs) def SetSubMenu(*args, **kwargs): """SetSubMenu(self, Menu menu)""" - return _core.MenuItem_SetSubMenu(*args, **kwargs) + return _core_.MenuItem_SetSubMenu(*args, **kwargs) def GetSubMenu(*args, **kwargs): """GetSubMenu(self) -> Menu""" - return _core.MenuItem_GetSubMenu(*args, **kwargs) + return _core_.MenuItem_GetSubMenu(*args, **kwargs) def Enable(*args, **kwargs): """Enable(self, bool enable=True)""" - return _core.MenuItem_Enable(*args, **kwargs) + return _core_.MenuItem_Enable(*args, **kwargs) def IsEnabled(*args, **kwargs): """IsEnabled(self) -> bool""" - return _core.MenuItem_IsEnabled(*args, **kwargs) + return _core_.MenuItem_IsEnabled(*args, **kwargs) def Check(*args, **kwargs): """Check(self, bool check=True)""" - return _core.MenuItem_Check(*args, **kwargs) + return _core_.MenuItem_Check(*args, **kwargs) def IsChecked(*args, **kwargs): """IsChecked(self) -> bool""" - return _core.MenuItem_IsChecked(*args, **kwargs) + return _core_.MenuItem_IsChecked(*args, **kwargs) def Toggle(*args, **kwargs): """Toggle(self)""" - return _core.MenuItem_Toggle(*args, **kwargs) + return _core_.MenuItem_Toggle(*args, **kwargs) def SetHelp(*args, **kwargs): """SetHelp(self, String str)""" - return _core.MenuItem_SetHelp(*args, **kwargs) + return _core_.MenuItem_SetHelp(*args, **kwargs) def GetHelp(*args, **kwargs): """GetHelp(self) -> String""" - return _core.MenuItem_GetHelp(*args, **kwargs) + return _core_.MenuItem_GetHelp(*args, **kwargs) def GetAccel(*args, **kwargs): """GetAccel(self) -> AcceleratorEntry""" - return _core.MenuItem_GetAccel(*args, **kwargs) + return _core_.MenuItem_GetAccel(*args, **kwargs) def SetAccel(*args, **kwargs): """SetAccel(self, AcceleratorEntry accel)""" - return _core.MenuItem_SetAccel(*args, **kwargs) + return _core_.MenuItem_SetAccel(*args, **kwargs) def GetDefaultMarginWidth(*args, **kwargs): """MenuItem.GetDefaultMarginWidth() -> int""" - return _core.MenuItem_GetDefaultMarginWidth(*args, **kwargs) + return _core_.MenuItem_GetDefaultMarginWidth(*args, **kwargs) GetDefaultMarginWidth = staticmethod(GetDefaultMarginWidth) def SetBitmap(*args, **kwargs): """SetBitmap(self, Bitmap bitmap)""" - return _core.MenuItem_SetBitmap(*args, **kwargs) + return _core_.MenuItem_SetBitmap(*args, **kwargs) def GetBitmap(*args, **kwargs): """GetBitmap(self) -> Bitmap""" - return _core.MenuItem_GetBitmap(*args, **kwargs) + return _core_.MenuItem_GetBitmap(*args, **kwargs) class MenuItemPtr(MenuItem): @@ -7981,15 +7981,15 @@ class MenuItemPtr(MenuItem): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = MenuItem -_core.MenuItem_swigregister(MenuItemPtr) +_core_.MenuItem_swigregister(MenuItemPtr) def MenuItem_GetLabelFromText(*args, **kwargs): """MenuItem_GetLabelFromText(String text) -> String""" - return _core.MenuItem_GetLabelFromText(*args, **kwargs) + return _core_.MenuItem_GetLabelFromText(*args, **kwargs) def MenuItem_GetDefaultMarginWidth(*args, **kwargs): """MenuItem_GetDefaultMarginWidth() -> int""" - return _core.MenuItem_GetDefaultMarginWidth(*args, **kwargs) + return _core_.MenuItem_GetDefaultMarginWidth(*args, **kwargs) #--------------------------------------------------------------------------- @@ -8011,7 +8011,7 @@ class Control(Window): Create a Control. Normally you should only call this from a subclass' __init__ as a plain old wx.Control is not very useful. """ - newobj = _core.new_Control(*args, **kwargs) + newobj = _core_.new_Control(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -8025,7 +8025,7 @@ class Control(Window): Do the 2nd phase and create the GUI control. """ - return _core.Control_Create(*args, **kwargs) + return _core_.Control_Create(*args, **kwargs) def Command(*args, **kwargs): """ @@ -8034,7 +8034,7 @@ class Control(Window): Simulates the effect of the user issuing a command to the item. See wx.CommandEvent. """ - return _core.Control_Command(*args, **kwargs) + return _core_.Control_Command(*args, **kwargs) def GetLabel(*args, **kwargs): """ @@ -8042,7 +8042,7 @@ class Control(Window): Return a control's text. """ - return _core.Control_GetLabel(*args, **kwargs) + return _core_.Control_GetLabel(*args, **kwargs) def SetLabel(*args, **kwargs): """ @@ -8050,7 +8050,7 @@ class Control(Window): Sets the item's text. """ - return _core.Control_SetLabel(*args, **kwargs) + return _core_.Control_SetLabel(*args, **kwargs) def GetClassDefaultAttributes(*args, **kwargs): """ @@ -8066,7 +8066,7 @@ class Control(Window): ignore under other platforms. Under Mac, it will change the size of the returned font. See SetWindowVariant for more about this. """ - return _core.Control_GetClassDefaultAttributes(*args, **kwargs) + return _core_.Control_GetClassDefaultAttributes(*args, **kwargs) GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) @@ -8075,7 +8075,7 @@ class ControlPtr(Control): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = Control -_core.Control_swigregister(ControlPtr) +_core_.Control_swigregister(ControlPtr) ControlNameStr = cvar.ControlNameStr def PreControl(*args, **kwargs): @@ -8084,7 +8084,7 @@ def PreControl(*args, **kwargs): Precreate a Control control for 2-phase creation """ - val = _core.new_PreControl(*args, **kwargs) + val = _core_.new_PreControl(*args, **kwargs) val.thisown = 1 return val @@ -8102,7 +8102,7 @@ def Control_GetClassDefaultAttributes(*args, **kwargs): ignore under other platforms. Under Mac, it will change the size of the returned font. See SetWindowVariant for more about this. """ - return _core.Control_GetClassDefaultAttributes(*args, **kwargs) + return _core_.Control_GetClassDefaultAttributes(*args, **kwargs) #--------------------------------------------------------------------------- @@ -8134,7 +8134,7 @@ class ItemContainer(object): added item which may be different from the last one if the control is sorted (e.g. has wx.LB_SORT or wx.CB_SORT style). """ - return _core.ItemContainer_Append(*args, **kwargs) + return _core_.ItemContainer_Append(*args, **kwargs) def AppendItems(*args, **kwargs): """ @@ -8144,7 +8144,7 @@ class ItemContainer(object): this method may be much faster than appending the items one by one if you need to add a lot of items. """ - return _core.ItemContainer_AppendItems(*args, **kwargs) + return _core_.ItemContainer_AppendItems(*args, **kwargs) def Insert(*args, **kwargs): """ @@ -8153,7 +8153,7 @@ class ItemContainer(object): Insert an item into the control before the item at the pos index, optionally associating some data object with the item. """ - return _core.ItemContainer_Insert(*args, **kwargs) + return _core_.ItemContainer_Insert(*args, **kwargs) def Clear(*args, **kwargs): """ @@ -8161,7 +8161,7 @@ class ItemContainer(object): Removes all items from the control. """ - return _core.ItemContainer_Clear(*args, **kwargs) + return _core_.ItemContainer_Clear(*args, **kwargs) def Delete(*args, **kwargs): """ @@ -8172,7 +8172,7 @@ class ItemContainer(object): exception if enabled) to remove an item with the index negative or greater or equal than the number of items in the control. """ - return _core.ItemContainer_Delete(*args, **kwargs) + return _core_.ItemContainer_Delete(*args, **kwargs) def GetCount(*args, **kwargs): """ @@ -8180,7 +8180,7 @@ class ItemContainer(object): Returns the number of items in the control. """ - return _core.ItemContainer_GetCount(*args, **kwargs) + return _core_.ItemContainer_GetCount(*args, **kwargs) def IsEmpty(*args, **kwargs): """ @@ -8188,7 +8188,7 @@ class ItemContainer(object): Returns True if the control is empty or False if it has some items. """ - return _core.ItemContainer_IsEmpty(*args, **kwargs) + return _core_.ItemContainer_IsEmpty(*args, **kwargs) def GetString(*args, **kwargs): """ @@ -8196,11 +8196,11 @@ class ItemContainer(object): Returns the label of the item with the given index. """ - return _core.ItemContainer_GetString(*args, **kwargs) + return _core_.ItemContainer_GetString(*args, **kwargs) def GetStrings(*args, **kwargs): """GetStrings(self) -> wxArrayString""" - return _core.ItemContainer_GetStrings(*args, **kwargs) + return _core_.ItemContainer_GetStrings(*args, **kwargs) def SetString(*args, **kwargs): """ @@ -8208,7 +8208,7 @@ class ItemContainer(object): Sets the label for the given item. """ - return _core.ItemContainer_SetString(*args, **kwargs) + return _core_.ItemContainer_SetString(*args, **kwargs) def FindString(*args, **kwargs): """ @@ -8218,7 +8218,7 @@ class ItemContainer(object): zero-based position of the item, or wx.NOT_FOUND if the string was not found. """ - return _core.ItemContainer_FindString(*args, **kwargs) + return _core_.ItemContainer_FindString(*args, **kwargs) def Select(*args, **kwargs): """ @@ -8226,7 +8226,7 @@ class ItemContainer(object): Sets the item at index 'n' to be the selected item. """ - return _core.ItemContainer_Select(*args, **kwargs) + return _core_.ItemContainer_Select(*args, **kwargs) SetSelection = Select def GetSelection(*args, **kwargs): @@ -8235,7 +8235,7 @@ class ItemContainer(object): Returns the index of the selected item or wx.NOT_FOUND if no item is selected. """ - return _core.ItemContainer_GetSelection(*args, **kwargs) + return _core_.ItemContainer_GetSelection(*args, **kwargs) def GetStringSelection(*args, **kwargs): """ @@ -8243,7 +8243,7 @@ class ItemContainer(object): Returns the label of the selected item or an empty string if no item is selected. """ - return _core.ItemContainer_GetStringSelection(*args, **kwargs) + return _core_.ItemContainer_GetStringSelection(*args, **kwargs) def GetClientData(*args, **kwargs): """ @@ -8251,7 +8251,7 @@ class ItemContainer(object): Returns the client data associated with the given item, (if any.) """ - return _core.ItemContainer_GetClientData(*args, **kwargs) + return _core_.ItemContainer_GetClientData(*args, **kwargs) def SetClientData(*args, **kwargs): """ @@ -8259,7 +8259,7 @@ class ItemContainer(object): Associate the given client data with the item at position n. """ - return _core.ItemContainer_SetClientData(*args, **kwargs) + return _core_.ItemContainer_SetClientData(*args, **kwargs) class ItemContainerPtr(ItemContainer): @@ -8267,7 +8267,7 @@ class ItemContainerPtr(ItemContainer): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = ItemContainer -_core.ItemContainer_swigregister(ItemContainerPtr) +_core_.ItemContainer_swigregister(ItemContainerPtr) #--------------------------------------------------------------------------- @@ -8286,7 +8286,7 @@ class ControlWithItemsPtr(ControlWithItems): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = ControlWithItems -_core.ControlWithItems_swigregister(ControlWithItemsPtr) +_core_.ControlWithItems_swigregister(ControlWithItemsPtr) #--------------------------------------------------------------------------- @@ -8295,131 +8295,131 @@ class SizerItem(Object): return "<%s.%s; proxy of C++ wxSizerItem instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> SizerItem""" - newobj = _core.new_SizerItem(*args, **kwargs) + newobj = _core_.new_SizerItem(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def DeleteWindows(*args, **kwargs): """DeleteWindows(self)""" - return _core.SizerItem_DeleteWindows(*args, **kwargs) + return _core_.SizerItem_DeleteWindows(*args, **kwargs) def DetachSizer(*args, **kwargs): """DetachSizer(self)""" - return _core.SizerItem_DetachSizer(*args, **kwargs) + return _core_.SizerItem_DetachSizer(*args, **kwargs) def GetSize(*args, **kwargs): """GetSize(self) -> Size""" - return _core.SizerItem_GetSize(*args, **kwargs) + return _core_.SizerItem_GetSize(*args, **kwargs) def CalcMin(*args, **kwargs): """CalcMin(self) -> Size""" - return _core.SizerItem_CalcMin(*args, **kwargs) + return _core_.SizerItem_CalcMin(*args, **kwargs) def SetDimension(*args, **kwargs): """SetDimension(self, Point pos, Size size)""" - return _core.SizerItem_SetDimension(*args, **kwargs) + return _core_.SizerItem_SetDimension(*args, **kwargs) def GetMinSize(*args, **kwargs): """GetMinSize(self) -> Size""" - return _core.SizerItem_GetMinSize(*args, **kwargs) + return _core_.SizerItem_GetMinSize(*args, **kwargs) def SetInitSize(*args, **kwargs): """SetInitSize(self, int x, int y)""" - return _core.SizerItem_SetInitSize(*args, **kwargs) + return _core_.SizerItem_SetInitSize(*args, **kwargs) def SetRatioWH(*args, **kwargs): """SetRatioWH(self, int width, int height)""" - return _core.SizerItem_SetRatioWH(*args, **kwargs) + return _core_.SizerItem_SetRatioWH(*args, **kwargs) def SetRatioSize(*args, **kwargs): """SetRatioSize(self, Size size)""" - return _core.SizerItem_SetRatioSize(*args, **kwargs) + return _core_.SizerItem_SetRatioSize(*args, **kwargs) def SetRatio(*args, **kwargs): """SetRatio(self, float ratio)""" - return _core.SizerItem_SetRatio(*args, **kwargs) + return _core_.SizerItem_SetRatio(*args, **kwargs) def GetRatio(*args, **kwargs): """GetRatio(self) -> float""" - return _core.SizerItem_GetRatio(*args, **kwargs) + return _core_.SizerItem_GetRatio(*args, **kwargs) def IsWindow(*args, **kwargs): """IsWindow(self) -> bool""" - return _core.SizerItem_IsWindow(*args, **kwargs) + return _core_.SizerItem_IsWindow(*args, **kwargs) def IsSizer(*args, **kwargs): """IsSizer(self) -> bool""" - return _core.SizerItem_IsSizer(*args, **kwargs) + return _core_.SizerItem_IsSizer(*args, **kwargs) def IsSpacer(*args, **kwargs): """IsSpacer(self) -> bool""" - return _core.SizerItem_IsSpacer(*args, **kwargs) + return _core_.SizerItem_IsSpacer(*args, **kwargs) def SetProportion(*args, **kwargs): """SetProportion(self, int proportion)""" - return _core.SizerItem_SetProportion(*args, **kwargs) + return _core_.SizerItem_SetProportion(*args, **kwargs) def GetProportion(*args, **kwargs): """GetProportion(self) -> int""" - return _core.SizerItem_GetProportion(*args, **kwargs) + return _core_.SizerItem_GetProportion(*args, **kwargs) SetOption = SetProportion GetOption = GetProportion def SetFlag(*args, **kwargs): """SetFlag(self, int flag)""" - return _core.SizerItem_SetFlag(*args, **kwargs) + return _core_.SizerItem_SetFlag(*args, **kwargs) def GetFlag(*args, **kwargs): """GetFlag(self) -> int""" - return _core.SizerItem_GetFlag(*args, **kwargs) + return _core_.SizerItem_GetFlag(*args, **kwargs) def SetBorder(*args, **kwargs): """SetBorder(self, int border)""" - return _core.SizerItem_SetBorder(*args, **kwargs) + return _core_.SizerItem_SetBorder(*args, **kwargs) def GetBorder(*args, **kwargs): """GetBorder(self) -> int""" - return _core.SizerItem_GetBorder(*args, **kwargs) + return _core_.SizerItem_GetBorder(*args, **kwargs) def GetWindow(*args, **kwargs): """GetWindow(self) -> Window""" - return _core.SizerItem_GetWindow(*args, **kwargs) + return _core_.SizerItem_GetWindow(*args, **kwargs) def SetWindow(*args, **kwargs): """SetWindow(self, Window window)""" - return _core.SizerItem_SetWindow(*args, **kwargs) + return _core_.SizerItem_SetWindow(*args, **kwargs) def GetSizer(*args, **kwargs): """GetSizer(self) -> Sizer""" - return _core.SizerItem_GetSizer(*args, **kwargs) + return _core_.SizerItem_GetSizer(*args, **kwargs) def SetSizer(*args, **kwargs): """SetSizer(self, Sizer sizer)""" - return _core.SizerItem_SetSizer(*args, **kwargs) + return _core_.SizerItem_SetSizer(*args, **kwargs) def GetSpacer(*args, **kwargs): """GetSpacer(self) -> Size""" - return _core.SizerItem_GetSpacer(*args, **kwargs) + return _core_.SizerItem_GetSpacer(*args, **kwargs) def SetSpacer(*args, **kwargs): """SetSpacer(self, Size size)""" - return _core.SizerItem_SetSpacer(*args, **kwargs) + return _core_.SizerItem_SetSpacer(*args, **kwargs) def Show(*args, **kwargs): """Show(self, bool show)""" - return _core.SizerItem_Show(*args, **kwargs) + return _core_.SizerItem_Show(*args, **kwargs) def IsShown(*args, **kwargs): """IsShown(self) -> bool""" - return _core.SizerItem_IsShown(*args, **kwargs) + return _core_.SizerItem_IsShown(*args, **kwargs) def GetPosition(*args, **kwargs): """GetPosition(self) -> Point""" - return _core.SizerItem_GetPosition(*args, **kwargs) + return _core_.SizerItem_GetPosition(*args, **kwargs) def GetUserData(*args, **kwargs): """GetUserData(self) -> PyObject""" - return _core.SizerItem_GetUserData(*args, **kwargs) + return _core_.SizerItem_GetUserData(*args, **kwargs) class SizerItemPtr(SizerItem): @@ -8427,14 +8427,14 @@ class SizerItemPtr(SizerItem): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = SizerItem -_core.SizerItem_swigregister(SizerItemPtr) +_core_.SizerItem_swigregister(SizerItemPtr) def SizerItemSpacer(*args, **kwargs): """ SizerItemSpacer(int width, int height, int proportion, int flag, int border, Object userData) -> SizerItem """ - val = _core.new_SizerItemSpacer(*args, **kwargs) + val = _core_.new_SizerItemSpacer(*args, **kwargs) val.thisown = 1 return val @@ -8443,7 +8443,7 @@ def SizerItemWindow(*args, **kwargs): SizerItemWindow(Window window, int proportion, int flag, int border, Object userData) -> SizerItem """ - val = _core.new_SizerItemWindow(*args, **kwargs) + val = _core_.new_SizerItemWindow(*args, **kwargs) val.thisown = 1 return val @@ -8452,7 +8452,7 @@ def SizerItemSizer(*args, **kwargs): SizerItemSizer(Sizer sizer, int proportion, int flag, int border, Object userData) -> SizerItem """ - val = _core.new_SizerItemSizer(*args, **kwargs) + val = _core_.new_SizerItemSizer(*args, **kwargs) val.thisown = 1 return val @@ -8462,48 +8462,48 @@ class Sizer(Object): return "<%s.%s; proxy of C++ wxSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def _setOORInfo(*args, **kwargs): """_setOORInfo(self, PyObject _self)""" - return _core.Sizer__setOORInfo(*args, **kwargs) + return _core_.Sizer__setOORInfo(*args, **kwargs) def Add(*args, **kwargs): """ Add(self, PyObject item, int proportion=0, int flag=0, int border=0, PyObject userData=None) """ - return _core.Sizer_Add(*args, **kwargs) + return _core_.Sizer_Add(*args, **kwargs) def Insert(*args, **kwargs): """ Insert(self, int before, PyObject item, int proportion=0, int flag=0, int border=0, PyObject userData=None) """ - return _core.Sizer_Insert(*args, **kwargs) + return _core_.Sizer_Insert(*args, **kwargs) def Prepend(*args, **kwargs): """ Prepend(self, PyObject item, int proportion=0, int flag=0, int border=0, PyObject userData=None) """ - return _core.Sizer_Prepend(*args, **kwargs) + return _core_.Sizer_Prepend(*args, **kwargs) def Remove(*args, **kwargs): """Remove(self, PyObject item) -> bool""" - return _core.Sizer_Remove(*args, **kwargs) + return _core_.Sizer_Remove(*args, **kwargs) def _SetItemMinSize(*args, **kwargs): """_SetItemMinSize(self, PyObject item, Size size)""" - return _core.Sizer__SetItemMinSize(*args, **kwargs) + return _core_.Sizer__SetItemMinSize(*args, **kwargs) def AddItem(*args, **kwargs): """AddItem(self, SizerItem item)""" - return _core.Sizer_AddItem(*args, **kwargs) + return _core_.Sizer_AddItem(*args, **kwargs) def InsertItem(*args, **kwargs): """InsertItem(self, size_t index, SizerItem item)""" - return _core.Sizer_InsertItem(*args, **kwargs) + return _core_.Sizer_InsertItem(*args, **kwargs) def PrependItem(*args, **kwargs): """PrependItem(self, SizerItem item)""" - return _core.Sizer_PrependItem(*args, **kwargs) + return _core_.Sizer_PrependItem(*args, **kwargs) def AddMany(self, widgets): for childinfo in widgets: @@ -8526,23 +8526,23 @@ class Sizer(Object): def SetDimension(*args, **kwargs): """SetDimension(self, int x, int y, int width, int height)""" - return _core.Sizer_SetDimension(*args, **kwargs) + return _core_.Sizer_SetDimension(*args, **kwargs) def SetMinSize(*args, **kwargs): """SetMinSize(self, Size size)""" - return _core.Sizer_SetMinSize(*args, **kwargs) + return _core_.Sizer_SetMinSize(*args, **kwargs) def GetSize(*args, **kwargs): """GetSize(self) -> Size""" - return _core.Sizer_GetSize(*args, **kwargs) + return _core_.Sizer_GetSize(*args, **kwargs) def GetPosition(*args, **kwargs): """GetPosition(self) -> Point""" - return _core.Sizer_GetPosition(*args, **kwargs) + return _core_.Sizer_GetPosition(*args, **kwargs) def GetMinSize(*args, **kwargs): """GetMinSize(self) -> Size""" - return _core.Sizer_GetMinSize(*args, **kwargs) + return _core_.Sizer_GetMinSize(*args, **kwargs) def GetSizeTuple(self): return self.GetSize().asTuple() @@ -8553,59 +8553,59 @@ class Sizer(Object): def RecalcSizes(*args, **kwargs): """RecalcSizes(self)""" - return _core.Sizer_RecalcSizes(*args, **kwargs) + return _core_.Sizer_RecalcSizes(*args, **kwargs) def CalcMin(*args, **kwargs): """CalcMin(self) -> Size""" - return _core.Sizer_CalcMin(*args, **kwargs) + return _core_.Sizer_CalcMin(*args, **kwargs) def Layout(*args, **kwargs): """Layout(self)""" - return _core.Sizer_Layout(*args, **kwargs) + return _core_.Sizer_Layout(*args, **kwargs) def Fit(*args, **kwargs): """Fit(self, Window window) -> Size""" - return _core.Sizer_Fit(*args, **kwargs) + return _core_.Sizer_Fit(*args, **kwargs) def FitInside(*args, **kwargs): """FitInside(self, Window window)""" - return _core.Sizer_FitInside(*args, **kwargs) + return _core_.Sizer_FitInside(*args, **kwargs) def SetSizeHints(*args, **kwargs): """SetSizeHints(self, Window window)""" - return _core.Sizer_SetSizeHints(*args, **kwargs) + return _core_.Sizer_SetSizeHints(*args, **kwargs) def SetVirtualSizeHints(*args, **kwargs): """SetVirtualSizeHints(self, Window window)""" - return _core.Sizer_SetVirtualSizeHints(*args, **kwargs) + return _core_.Sizer_SetVirtualSizeHints(*args, **kwargs) def Clear(*args, **kwargs): """Clear(self, bool delete_windows=False)""" - return _core.Sizer_Clear(*args, **kwargs) + return _core_.Sizer_Clear(*args, **kwargs) def DeleteWindows(*args, **kwargs): """DeleteWindows(self)""" - return _core.Sizer_DeleteWindows(*args, **kwargs) + return _core_.Sizer_DeleteWindows(*args, **kwargs) def GetChildren(*args, **kwargs): """GetChildren(self) -> PyObject""" - return _core.Sizer_GetChildren(*args, **kwargs) + return _core_.Sizer_GetChildren(*args, **kwargs) def Show(*args, **kwargs): """Show(self, PyObject item, bool show=True)""" - return _core.Sizer_Show(*args, **kwargs) + return _core_.Sizer_Show(*args, **kwargs) def Hide(*args, **kwargs): """Hide(self, PyObject item)""" - return _core.Sizer_Hide(*args, **kwargs) + return _core_.Sizer_Hide(*args, **kwargs) def IsShown(*args, **kwargs): """IsShown(self, PyObject item) -> bool""" - return _core.Sizer_IsShown(*args, **kwargs) + return _core_.Sizer_IsShown(*args, **kwargs) def ShowItems(*args, **kwargs): """ShowItems(self, bool show)""" - return _core.Sizer_ShowItems(*args, **kwargs) + return _core_.Sizer_ShowItems(*args, **kwargs) class SizerPtr(Sizer): @@ -8613,14 +8613,14 @@ class SizerPtr(Sizer): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = Sizer -_core.Sizer_swigregister(SizerPtr) +_core_.Sizer_swigregister(SizerPtr) class PySizer(Sizer): def __repr__(self): return "<%s.%s; proxy of C++ wxPySizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> PySizer""" - newobj = _core.new_PySizer(*args, **kwargs) + newobj = _core_.new_PySizer(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -8628,7 +8628,7 @@ class PySizer(Sizer): def _setCallbackInfo(*args, **kwargs): """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _core.PySizer__setCallbackInfo(*args, **kwargs) + return _core_.PySizer__setCallbackInfo(*args, **kwargs) class PySizerPtr(PySizer): @@ -8636,7 +8636,7 @@ class PySizerPtr(PySizer): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = PySizer -_core.PySizer_swigregister(PySizerPtr) +_core_.PySizer_swigregister(PySizerPtr) #--------------------------------------------------------------------------- @@ -8645,7 +8645,7 @@ class BoxSizer(Sizer): return "<%s.%s; proxy of C++ wxBoxSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, int orient=HORIZONTAL) -> BoxSizer""" - newobj = _core.new_BoxSizer(*args, **kwargs) + newobj = _core_.new_BoxSizer(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -8653,19 +8653,19 @@ class BoxSizer(Sizer): def GetOrientation(*args, **kwargs): """GetOrientation(self) -> int""" - return _core.BoxSizer_GetOrientation(*args, **kwargs) + return _core_.BoxSizer_GetOrientation(*args, **kwargs) def SetOrientation(*args, **kwargs): """SetOrientation(self, int orient)""" - return _core.BoxSizer_SetOrientation(*args, **kwargs) + return _core_.BoxSizer_SetOrientation(*args, **kwargs) def RecalcSizes(*args, **kwargs): """RecalcSizes(self)""" - return _core.BoxSizer_RecalcSizes(*args, **kwargs) + return _core_.BoxSizer_RecalcSizes(*args, **kwargs) def CalcMin(*args, **kwargs): """CalcMin(self) -> Size""" - return _core.BoxSizer_CalcMin(*args, **kwargs) + return _core_.BoxSizer_CalcMin(*args, **kwargs) class BoxSizerPtr(BoxSizer): @@ -8673,7 +8673,7 @@ class BoxSizerPtr(BoxSizer): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = BoxSizer -_core.BoxSizer_swigregister(BoxSizerPtr) +_core_.BoxSizer_swigregister(BoxSizerPtr) #--------------------------------------------------------------------------- @@ -8682,7 +8682,7 @@ class StaticBoxSizer(BoxSizer): return "<%s.%s; proxy of C++ wxStaticBoxSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, wxStaticBox box, int orient=HORIZONTAL) -> StaticBoxSizer""" - newobj = _core.new_StaticBoxSizer(*args, **kwargs) + newobj = _core_.new_StaticBoxSizer(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -8690,15 +8690,15 @@ class StaticBoxSizer(BoxSizer): def GetStaticBox(*args, **kwargs): """GetStaticBox(self) -> wxStaticBox""" - return _core.StaticBoxSizer_GetStaticBox(*args, **kwargs) + return _core_.StaticBoxSizer_GetStaticBox(*args, **kwargs) def RecalcSizes(*args, **kwargs): """RecalcSizes(self)""" - return _core.StaticBoxSizer_RecalcSizes(*args, **kwargs) + return _core_.StaticBoxSizer_RecalcSizes(*args, **kwargs) def CalcMin(*args, **kwargs): """CalcMin(self) -> Size""" - return _core.StaticBoxSizer_CalcMin(*args, **kwargs) + return _core_.StaticBoxSizer_CalcMin(*args, **kwargs) class StaticBoxSizerPtr(StaticBoxSizer): @@ -8706,7 +8706,7 @@ class StaticBoxSizerPtr(StaticBoxSizer): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = StaticBoxSizer -_core.StaticBoxSizer_swigregister(StaticBoxSizerPtr) +_core_.StaticBoxSizer_swigregister(StaticBoxSizerPtr) #--------------------------------------------------------------------------- @@ -8715,7 +8715,7 @@ class GridSizer(Sizer): return "<%s.%s; proxy of C++ wxGridSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, int rows=1, int cols=0, int vgap=0, int hgap=0) -> GridSizer""" - newobj = _core.new_GridSizer(*args, **kwargs) + newobj = _core_.new_GridSizer(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -8723,43 +8723,43 @@ class GridSizer(Sizer): def RecalcSizes(*args, **kwargs): """RecalcSizes(self)""" - return _core.GridSizer_RecalcSizes(*args, **kwargs) + return _core_.GridSizer_RecalcSizes(*args, **kwargs) def CalcMin(*args, **kwargs): """CalcMin(self) -> Size""" - return _core.GridSizer_CalcMin(*args, **kwargs) + return _core_.GridSizer_CalcMin(*args, **kwargs) def SetCols(*args, **kwargs): """SetCols(self, int cols)""" - return _core.GridSizer_SetCols(*args, **kwargs) + return _core_.GridSizer_SetCols(*args, **kwargs) def SetRows(*args, **kwargs): """SetRows(self, int rows)""" - return _core.GridSizer_SetRows(*args, **kwargs) + return _core_.GridSizer_SetRows(*args, **kwargs) def SetVGap(*args, **kwargs): """SetVGap(self, int gap)""" - return _core.GridSizer_SetVGap(*args, **kwargs) + return _core_.GridSizer_SetVGap(*args, **kwargs) def SetHGap(*args, **kwargs): """SetHGap(self, int gap)""" - return _core.GridSizer_SetHGap(*args, **kwargs) + return _core_.GridSizer_SetHGap(*args, **kwargs) def GetCols(*args, **kwargs): """GetCols(self) -> int""" - return _core.GridSizer_GetCols(*args, **kwargs) + return _core_.GridSizer_GetCols(*args, **kwargs) def GetRows(*args, **kwargs): """GetRows(self) -> int""" - return _core.GridSizer_GetRows(*args, **kwargs) + return _core_.GridSizer_GetRows(*args, **kwargs) def GetVGap(*args, **kwargs): """GetVGap(self) -> int""" - return _core.GridSizer_GetVGap(*args, **kwargs) + return _core_.GridSizer_GetVGap(*args, **kwargs) def GetHGap(*args, **kwargs): """GetHGap(self) -> int""" - return _core.GridSizer_GetHGap(*args, **kwargs) + return _core_.GridSizer_GetHGap(*args, **kwargs) class GridSizerPtr(GridSizer): @@ -8767,19 +8767,19 @@ class GridSizerPtr(GridSizer): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = GridSizer -_core.GridSizer_swigregister(GridSizerPtr) +_core_.GridSizer_swigregister(GridSizerPtr) #--------------------------------------------------------------------------- -FLEX_GROWMODE_NONE = _core.FLEX_GROWMODE_NONE -FLEX_GROWMODE_SPECIFIED = _core.FLEX_GROWMODE_SPECIFIED -FLEX_GROWMODE_ALL = _core.FLEX_GROWMODE_ALL +FLEX_GROWMODE_NONE = _core_.FLEX_GROWMODE_NONE +FLEX_GROWMODE_SPECIFIED = _core_.FLEX_GROWMODE_SPECIFIED +FLEX_GROWMODE_ALL = _core_.FLEX_GROWMODE_ALL class FlexGridSizer(GridSizer): def __repr__(self): return "<%s.%s; proxy of C++ wxFlexGridSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, int rows=1, int cols=0, int vgap=0, int hgap=0) -> FlexGridSizer""" - newobj = _core.new_FlexGridSizer(*args, **kwargs) + newobj = _core_.new_FlexGridSizer(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -8787,51 +8787,51 @@ class FlexGridSizer(GridSizer): def RecalcSizes(*args, **kwargs): """RecalcSizes(self)""" - return _core.FlexGridSizer_RecalcSizes(*args, **kwargs) + return _core_.FlexGridSizer_RecalcSizes(*args, **kwargs) def CalcMin(*args, **kwargs): """CalcMin(self) -> Size""" - return _core.FlexGridSizer_CalcMin(*args, **kwargs) + return _core_.FlexGridSizer_CalcMin(*args, **kwargs) def AddGrowableRow(*args, **kwargs): """AddGrowableRow(self, size_t idx, int proportion=0)""" - return _core.FlexGridSizer_AddGrowableRow(*args, **kwargs) + return _core_.FlexGridSizer_AddGrowableRow(*args, **kwargs) def RemoveGrowableRow(*args, **kwargs): """RemoveGrowableRow(self, size_t idx)""" - return _core.FlexGridSizer_RemoveGrowableRow(*args, **kwargs) + return _core_.FlexGridSizer_RemoveGrowableRow(*args, **kwargs) def AddGrowableCol(*args, **kwargs): """AddGrowableCol(self, size_t idx, int proportion=0)""" - return _core.FlexGridSizer_AddGrowableCol(*args, **kwargs) + return _core_.FlexGridSizer_AddGrowableCol(*args, **kwargs) def RemoveGrowableCol(*args, **kwargs): """RemoveGrowableCol(self, size_t idx)""" - return _core.FlexGridSizer_RemoveGrowableCol(*args, **kwargs) + return _core_.FlexGridSizer_RemoveGrowableCol(*args, **kwargs) def SetFlexibleDirection(*args, **kwargs): """SetFlexibleDirection(self, int direction)""" - return _core.FlexGridSizer_SetFlexibleDirection(*args, **kwargs) + return _core_.FlexGridSizer_SetFlexibleDirection(*args, **kwargs) def GetFlexibleDirection(*args, **kwargs): """GetFlexibleDirection(self) -> int""" - return _core.FlexGridSizer_GetFlexibleDirection(*args, **kwargs) + return _core_.FlexGridSizer_GetFlexibleDirection(*args, **kwargs) def SetNonFlexibleGrowMode(*args, **kwargs): """SetNonFlexibleGrowMode(self, int mode)""" - return _core.FlexGridSizer_SetNonFlexibleGrowMode(*args, **kwargs) + return _core_.FlexGridSizer_SetNonFlexibleGrowMode(*args, **kwargs) def GetNonFlexibleGrowMode(*args, **kwargs): """GetNonFlexibleGrowMode(self) -> int""" - return _core.FlexGridSizer_GetNonFlexibleGrowMode(*args, **kwargs) + return _core_.FlexGridSizer_GetNonFlexibleGrowMode(*args, **kwargs) def GetRowHeights(*args, **kwargs): """GetRowHeights(self) -> wxArrayInt""" - return _core.FlexGridSizer_GetRowHeights(*args, **kwargs) + return _core_.FlexGridSizer_GetRowHeights(*args, **kwargs) def GetColWidths(*args, **kwargs): """GetColWidths(self) -> wxArrayInt""" - return _core.FlexGridSizer_GetColWidths(*args, **kwargs) + return _core_.FlexGridSizer_GetColWidths(*args, **kwargs) class FlexGridSizerPtr(FlexGridSizer): @@ -8839,7 +8839,7 @@ class FlexGridSizerPtr(FlexGridSizer): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = FlexGridSizer -_core.FlexGridSizer_swigregister(FlexGridSizerPtr) +_core_.FlexGridSizer_swigregister(FlexGridSizerPtr) #--------------------------------------------------------------------------- @@ -8848,41 +8848,41 @@ class GBPosition(object): return "<%s.%s; proxy of C++ wxGBPosition instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, int row=0, int col=0) -> GBPosition""" - newobj = _core.new_GBPosition(*args, **kwargs) + newobj = _core_.new_GBPosition(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def GetRow(*args, **kwargs): """GetRow(self) -> int""" - return _core.GBPosition_GetRow(*args, **kwargs) + return _core_.GBPosition_GetRow(*args, **kwargs) def GetCol(*args, **kwargs): """GetCol(self) -> int""" - return _core.GBPosition_GetCol(*args, **kwargs) + return _core_.GBPosition_GetCol(*args, **kwargs) def SetRow(*args, **kwargs): """SetRow(self, int row)""" - return _core.GBPosition_SetRow(*args, **kwargs) + return _core_.GBPosition_SetRow(*args, **kwargs) def SetCol(*args, **kwargs): """SetCol(self, int col)""" - return _core.GBPosition_SetCol(*args, **kwargs) + return _core_.GBPosition_SetCol(*args, **kwargs) def __eq__(*args, **kwargs): """__eq__(self, GBPosition other) -> bool""" - return _core.GBPosition___eq__(*args, **kwargs) + return _core_.GBPosition___eq__(*args, **kwargs) def __ne__(*args, **kwargs): """__ne__(self, GBPosition other) -> bool""" - return _core.GBPosition___ne__(*args, **kwargs) + return _core_.GBPosition___ne__(*args, **kwargs) def Set(*args, **kwargs): """Set(self, int row=0, int col=0)""" - return _core.GBPosition_Set(*args, **kwargs) + return _core_.GBPosition_Set(*args, **kwargs) def Get(*args, **kwargs): """Get(self) -> PyObject""" - return _core.GBPosition_Get(*args, **kwargs) + return _core_.GBPosition_Get(*args, **kwargs) asTuple = Get def __str__(self): return str(self.Get()) @@ -8906,48 +8906,48 @@ class GBPositionPtr(GBPosition): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = GBPosition -_core.GBPosition_swigregister(GBPositionPtr) +_core_.GBPosition_swigregister(GBPositionPtr) class GBSpan(object): def __repr__(self): return "<%s.%s; proxy of C++ wxGBSpan instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, int rowspan=1, int colspan=1) -> GBSpan""" - newobj = _core.new_GBSpan(*args, **kwargs) + newobj = _core_.new_GBSpan(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def GetRowspan(*args, **kwargs): """GetRowspan(self) -> int""" - return _core.GBSpan_GetRowspan(*args, **kwargs) + return _core_.GBSpan_GetRowspan(*args, **kwargs) def GetColspan(*args, **kwargs): """GetColspan(self) -> int""" - return _core.GBSpan_GetColspan(*args, **kwargs) + return _core_.GBSpan_GetColspan(*args, **kwargs) def SetRowspan(*args, **kwargs): """SetRowspan(self, int rowspan)""" - return _core.GBSpan_SetRowspan(*args, **kwargs) + return _core_.GBSpan_SetRowspan(*args, **kwargs) def SetColspan(*args, **kwargs): """SetColspan(self, int colspan)""" - return _core.GBSpan_SetColspan(*args, **kwargs) + return _core_.GBSpan_SetColspan(*args, **kwargs) def __eq__(*args, **kwargs): """__eq__(self, GBSpan other) -> bool""" - return _core.GBSpan___eq__(*args, **kwargs) + return _core_.GBSpan___eq__(*args, **kwargs) def __ne__(*args, **kwargs): """__ne__(self, GBSpan other) -> bool""" - return _core.GBSpan___ne__(*args, **kwargs) + return _core_.GBSpan___ne__(*args, **kwargs) def Set(*args, **kwargs): """Set(self, int rowspan=1, int colspan=1)""" - return _core.GBSpan_Set(*args, **kwargs) + return _core_.GBSpan_Set(*args, **kwargs) def Get(*args, **kwargs): """Get(self) -> PyObject""" - return _core.GBSpan_Get(*args, **kwargs) + return _core_.GBSpan_Get(*args, **kwargs) asTuple = Get def __str__(self): return str(self.Get()) @@ -8971,53 +8971,53 @@ class GBSpanPtr(GBSpan): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = GBSpan -_core.GBSpan_swigregister(GBSpanPtr) +_core_.GBSpan_swigregister(GBSpanPtr) class GBSizerItem(SizerItem): def __repr__(self): return "<%s.%s; proxy of C++ wxGBSizerItem instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> GBSizerItem""" - newobj = _core.new_GBSizerItem(*args, **kwargs) + newobj = _core_.new_GBSizerItem(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def GetPos(*args, **kwargs): """GetPos(self) -> GBPosition""" - return _core.GBSizerItem_GetPos(*args, **kwargs) + return _core_.GBSizerItem_GetPos(*args, **kwargs) def GetPosTuple(self): return self.GetPos().Get() def GetSpan(*args, **kwargs): """GetSpan(self) -> GBSpan""" - return _core.GBSizerItem_GetSpan(*args, **kwargs) + return _core_.GBSizerItem_GetSpan(*args, **kwargs) def GetSpanTuple(self): return self.GetSpan().Get() def SetPos(*args, **kwargs): """SetPos(self, GBPosition pos) -> bool""" - return _core.GBSizerItem_SetPos(*args, **kwargs) + return _core_.GBSizerItem_SetPos(*args, **kwargs) def SetSpan(*args, **kwargs): """SetSpan(self, GBSpan span) -> bool""" - return _core.GBSizerItem_SetSpan(*args, **kwargs) + return _core_.GBSizerItem_SetSpan(*args, **kwargs) def Intersects(*args): """ Intersects(self, GBSizerItem other) -> bool Intersects(self, GBPosition pos, GBSpan span) -> bool """ - return _core.GBSizerItem_Intersects(*args) + return _core_.GBSizerItem_Intersects(*args) def GetEndPos(*args, **kwargs): """GetEndPos(self, int row, int col)""" - return _core.GBSizerItem_GetEndPos(*args, **kwargs) + return _core_.GBSizerItem_GetEndPos(*args, **kwargs) def GetGBSizer(*args, **kwargs): """GetGBSizer(self) -> GridBagSizer""" - return _core.GBSizerItem_GetGBSizer(*args, **kwargs) + return _core_.GBSizerItem_GetGBSizer(*args, **kwargs) def SetGBSizer(*args, **kwargs): """SetGBSizer(self, GridBagSizer sizer)""" - return _core.GBSizerItem_SetGBSizer(*args, **kwargs) + return _core_.GBSizerItem_SetGBSizer(*args, **kwargs) class GBSizerItemPtr(GBSizerItem): @@ -9025,7 +9025,7 @@ class GBSizerItemPtr(GBSizerItem): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = GBSizerItem -_core.GBSizerItem_swigregister(GBSizerItemPtr) +_core_.GBSizerItem_swigregister(GBSizerItemPtr) DefaultSpan = cvar.DefaultSpan def GBSizerItemWindow(*args, **kwargs): @@ -9033,7 +9033,7 @@ def GBSizerItemWindow(*args, **kwargs): GBSizerItemWindow(Window window, GBPosition pos, GBSpan span, int flag, int border, Object userData) -> GBSizerItem """ - val = _core.new_GBSizerItemWindow(*args, **kwargs) + val = _core_.new_GBSizerItemWindow(*args, **kwargs) val.thisown = 1 return val @@ -9042,7 +9042,7 @@ def GBSizerItemSizer(*args, **kwargs): GBSizerItemSizer(Sizer sizer, GBPosition pos, GBSpan span, int flag, int border, Object userData) -> GBSizerItem """ - val = _core.new_GBSizerItemSizer(*args, **kwargs) + val = _core_.new_GBSizerItemSizer(*args, **kwargs) val.thisown = 1 return val @@ -9051,7 +9051,7 @@ def GBSizerItemSpacer(*args, **kwargs): GBSizerItemSpacer(int width, int height, GBPosition pos, GBSpan span, int flag, int border, Object userData) -> GBSizerItem """ - val = _core.new_GBSizerItemSpacer(*args, **kwargs) + val = _core_.new_GBSizerItemSpacer(*args, **kwargs) val.thisown = 1 return val @@ -9060,7 +9060,7 @@ class GridBagSizer(FlexGridSizer): return "<%s.%s; proxy of C++ wxGridBagSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, int vgap=0, int hgap=0) -> GridBagSizer""" - newobj = _core.new_GridBagSizer(*args, **kwargs) + newobj = _core_.new_GridBagSizer(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -9069,19 +9069,19 @@ class GridBagSizer(FlexGridSizer): Add(self, PyObject item, GBPosition pos, GBSpan span=DefaultSpan, int flag=0, int border=0, PyObject userData=None) -> bool """ - return _core.GridBagSizer_Add(*args, **kwargs) + return _core_.GridBagSizer_Add(*args, **kwargs) def AddItem(*args, **kwargs): """AddItem(self, GBSizerItem item) -> bool""" - return _core.GridBagSizer_AddItem(*args, **kwargs) + return _core_.GridBagSizer_AddItem(*args, **kwargs) def GetEmptyCellSize(*args, **kwargs): """GetEmptyCellSize(self) -> Size""" - return _core.GridBagSizer_GetEmptyCellSize(*args, **kwargs) + return _core_.GridBagSizer_GetEmptyCellSize(*args, **kwargs) def SetEmptyCellSize(*args, **kwargs): """SetEmptyCellSize(self, Size sz)""" - return _core.GridBagSizer_SetEmptyCellSize(*args, **kwargs) + return _core_.GridBagSizer_SetEmptyCellSize(*args, **kwargs) def GetItemPosition(*args): """ @@ -9089,7 +9089,7 @@ class GridBagSizer(FlexGridSizer): GetItemPosition(self, Sizer sizer) -> GBPosition GetItemPosition(self, size_t index) -> GBPosition """ - return _core.GridBagSizer_GetItemPosition(*args) + return _core_.GridBagSizer_GetItemPosition(*args) def SetItemPosition(*args): """ @@ -9097,7 +9097,7 @@ class GridBagSizer(FlexGridSizer): SetItemPosition(self, Sizer sizer, GBPosition pos) -> bool SetItemPosition(self, size_t index, GBPosition pos) -> bool """ - return _core.GridBagSizer_SetItemPosition(*args) + return _core_.GridBagSizer_SetItemPosition(*args) def GetItemSpan(*args): """ @@ -9105,7 +9105,7 @@ class GridBagSizer(FlexGridSizer): GetItemSpan(self, Sizer sizer) -> GBSpan GetItemSpan(self, size_t index) -> GBSpan """ - return _core.GridBagSizer_GetItemSpan(*args) + return _core_.GridBagSizer_GetItemSpan(*args) def SetItemSpan(*args): """ @@ -9113,41 +9113,41 @@ class GridBagSizer(FlexGridSizer): SetItemSpan(self, Sizer sizer, GBSpan span) -> bool SetItemSpan(self, size_t index, GBSpan span) -> bool """ - return _core.GridBagSizer_SetItemSpan(*args) + return _core_.GridBagSizer_SetItemSpan(*args) def FindItem(*args): """ FindItem(self, Window window) -> GBSizerItem FindItem(self, Sizer sizer) -> GBSizerItem """ - return _core.GridBagSizer_FindItem(*args) + return _core_.GridBagSizer_FindItem(*args) def FindItemAtPosition(*args, **kwargs): """FindItemAtPosition(self, GBPosition pos) -> GBSizerItem""" - return _core.GridBagSizer_FindItemAtPosition(*args, **kwargs) + return _core_.GridBagSizer_FindItemAtPosition(*args, **kwargs) def FindItemAtPoint(*args, **kwargs): """FindItemAtPoint(self, Point pt) -> GBSizerItem""" - return _core.GridBagSizer_FindItemAtPoint(*args, **kwargs) + return _core_.GridBagSizer_FindItemAtPoint(*args, **kwargs) def FindItemWithData(*args, **kwargs): """FindItemWithData(self, Object userData) -> GBSizerItem""" - return _core.GridBagSizer_FindItemWithData(*args, **kwargs) + return _core_.GridBagSizer_FindItemWithData(*args, **kwargs) def RecalcSizes(*args, **kwargs): """RecalcSizes(self)""" - return _core.GridBagSizer_RecalcSizes(*args, **kwargs) + return _core_.GridBagSizer_RecalcSizes(*args, **kwargs) def CalcMin(*args, **kwargs): """CalcMin(self) -> Size""" - return _core.GridBagSizer_CalcMin(*args, **kwargs) + return _core_.GridBagSizer_CalcMin(*args, **kwargs) def CheckForIntersection(*args): """ CheckForIntersection(self, GBSizerItem item, GBSizerItem excludeItem=None) -> bool CheckForIntersection(self, GBPosition pos, GBSpan span, GBSizerItem excludeItem=None) -> bool """ - return _core.GridBagSizer_CheckForIntersection(*args) + return _core_.GridBagSizer_CheckForIntersection(*args) class GridBagSizerPtr(GridBagSizer): @@ -9155,29 +9155,29 @@ class GridBagSizerPtr(GridBagSizer): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = GridBagSizer -_core.GridBagSizer_swigregister(GridBagSizerPtr) +_core_.GridBagSizer_swigregister(GridBagSizerPtr) #--------------------------------------------------------------------------- -Left = _core.Left -Top = _core.Top -Right = _core.Right -Bottom = _core.Bottom -Width = _core.Width -Height = _core.Height -Centre = _core.Centre -Center = _core.Center -CentreX = _core.CentreX -CentreY = _core.CentreY -Unconstrained = _core.Unconstrained -AsIs = _core.AsIs -PercentOf = _core.PercentOf -Above = _core.Above -Below = _core.Below -LeftOf = _core.LeftOf -RightOf = _core.RightOf -SameAs = _core.SameAs -Absolute = _core.Absolute +Left = _core_.Left +Top = _core_.Top +Right = _core_.Right +Bottom = _core_.Bottom +Width = _core_.Width +Height = _core_.Height +Centre = _core_.Centre +Center = _core_.Center +CentreX = _core_.CentreX +CentreY = _core_.CentreY +Unconstrained = _core_.Unconstrained +AsIs = _core_.AsIs +PercentOf = _core_.PercentOf +Above = _core_.Above +Below = _core_.Below +LeftOf = _core_.LeftOf +RightOf = _core_.RightOf +SameAs = _core_.SameAs +Absolute = _core_.Absolute class IndividualLayoutConstraint(Object): """ Objects of this class are stored in the wx.LayoutConstraint class as one of @@ -9229,7 +9229,7 @@ class IndividualLayoutConstraint(Object): return "<%s.%s; proxy of C++ wxIndividualLayoutConstraint instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def Set(*args, **kwargs): """Set(self, int rel, Window otherW, int otherE, int val=0, int marg=wxLAYOUT_DEFAULT_MARGIN)""" - return _core.IndividualLayoutConstraint_Set(*args, **kwargs) + return _core_.IndividualLayoutConstraint_Set(*args, **kwargs) def LeftOf(*args, **kwargs): """ @@ -9237,7 +9237,7 @@ class IndividualLayoutConstraint(Object): Sibling relationship """ - return _core.IndividualLayoutConstraint_LeftOf(*args, **kwargs) + return _core_.IndividualLayoutConstraint_LeftOf(*args, **kwargs) def RightOf(*args, **kwargs): """ @@ -9245,7 +9245,7 @@ class IndividualLayoutConstraint(Object): Sibling relationship """ - return _core.IndividualLayoutConstraint_RightOf(*args, **kwargs) + return _core_.IndividualLayoutConstraint_RightOf(*args, **kwargs) def Above(*args, **kwargs): """ @@ -9253,7 +9253,7 @@ class IndividualLayoutConstraint(Object): Sibling relationship """ - return _core.IndividualLayoutConstraint_Above(*args, **kwargs) + return _core_.IndividualLayoutConstraint_Above(*args, **kwargs) def Below(*args, **kwargs): """ @@ -9261,7 +9261,7 @@ class IndividualLayoutConstraint(Object): Sibling relationship """ - return _core.IndividualLayoutConstraint_Below(*args, **kwargs) + return _core_.IndividualLayoutConstraint_Below(*args, **kwargs) def SameAs(*args, **kwargs): """ @@ -9269,7 +9269,7 @@ class IndividualLayoutConstraint(Object): 'Same edge' alignment """ - return _core.IndividualLayoutConstraint_SameAs(*args, **kwargs) + return _core_.IndividualLayoutConstraint_SameAs(*args, **kwargs) def PercentOf(*args, **kwargs): """ @@ -9277,7 +9277,7 @@ class IndividualLayoutConstraint(Object): The edge is a percentage of the other window's edge """ - return _core.IndividualLayoutConstraint_PercentOf(*args, **kwargs) + return _core_.IndividualLayoutConstraint_PercentOf(*args, **kwargs) def Absolute(*args, **kwargs): """ @@ -9285,7 +9285,7 @@ class IndividualLayoutConstraint(Object): Edge has absolute value """ - return _core.IndividualLayoutConstraint_Absolute(*args, **kwargs) + return _core_.IndividualLayoutConstraint_Absolute(*args, **kwargs) def Unconstrained(*args, **kwargs): """ @@ -9293,7 +9293,7 @@ class IndividualLayoutConstraint(Object): Dimension is unconstrained """ - return _core.IndividualLayoutConstraint_Unconstrained(*args, **kwargs) + return _core_.IndividualLayoutConstraint_Unconstrained(*args, **kwargs) def AsIs(*args, **kwargs): """ @@ -9301,59 +9301,59 @@ class IndividualLayoutConstraint(Object): Dimension is 'as is' (use current size settings) """ - return _core.IndividualLayoutConstraint_AsIs(*args, **kwargs) + return _core_.IndividualLayoutConstraint_AsIs(*args, **kwargs) def GetOtherWindow(*args, **kwargs): """GetOtherWindow(self) -> Window""" - return _core.IndividualLayoutConstraint_GetOtherWindow(*args, **kwargs) + return _core_.IndividualLayoutConstraint_GetOtherWindow(*args, **kwargs) def GetMyEdge(*args, **kwargs): """GetMyEdge(self) -> int""" - return _core.IndividualLayoutConstraint_GetMyEdge(*args, **kwargs) + return _core_.IndividualLayoutConstraint_GetMyEdge(*args, **kwargs) def SetEdge(*args, **kwargs): """SetEdge(self, int which)""" - return _core.IndividualLayoutConstraint_SetEdge(*args, **kwargs) + return _core_.IndividualLayoutConstraint_SetEdge(*args, **kwargs) def SetValue(*args, **kwargs): """SetValue(self, int v)""" - return _core.IndividualLayoutConstraint_SetValue(*args, **kwargs) + return _core_.IndividualLayoutConstraint_SetValue(*args, **kwargs) def GetMargin(*args, **kwargs): """GetMargin(self) -> int""" - return _core.IndividualLayoutConstraint_GetMargin(*args, **kwargs) + return _core_.IndividualLayoutConstraint_GetMargin(*args, **kwargs) def SetMargin(*args, **kwargs): """SetMargin(self, int m)""" - return _core.IndividualLayoutConstraint_SetMargin(*args, **kwargs) + return _core_.IndividualLayoutConstraint_SetMargin(*args, **kwargs) def GetValue(*args, **kwargs): """GetValue(self) -> int""" - return _core.IndividualLayoutConstraint_GetValue(*args, **kwargs) + return _core_.IndividualLayoutConstraint_GetValue(*args, **kwargs) def GetPercent(*args, **kwargs): """GetPercent(self) -> int""" - return _core.IndividualLayoutConstraint_GetPercent(*args, **kwargs) + return _core_.IndividualLayoutConstraint_GetPercent(*args, **kwargs) def GetOtherEdge(*args, **kwargs): """GetOtherEdge(self) -> int""" - return _core.IndividualLayoutConstraint_GetOtherEdge(*args, **kwargs) + return _core_.IndividualLayoutConstraint_GetOtherEdge(*args, **kwargs) def GetDone(*args, **kwargs): """GetDone(self) -> bool""" - return _core.IndividualLayoutConstraint_GetDone(*args, **kwargs) + return _core_.IndividualLayoutConstraint_GetDone(*args, **kwargs) def SetDone(*args, **kwargs): """SetDone(self, bool d)""" - return _core.IndividualLayoutConstraint_SetDone(*args, **kwargs) + return _core_.IndividualLayoutConstraint_SetDone(*args, **kwargs) def GetRelationship(*args, **kwargs): """GetRelationship(self) -> int""" - return _core.IndividualLayoutConstraint_GetRelationship(*args, **kwargs) + return _core_.IndividualLayoutConstraint_GetRelationship(*args, **kwargs) def SetRelationship(*args, **kwargs): """SetRelationship(self, int r)""" - return _core.IndividualLayoutConstraint_SetRelationship(*args, **kwargs) + return _core_.IndividualLayoutConstraint_SetRelationship(*args, **kwargs) def ResetIfWin(*args, **kwargs): """ @@ -9361,7 +9361,7 @@ class IndividualLayoutConstraint(Object): Reset constraint if it mentions otherWin """ - return _core.IndividualLayoutConstraint_ResetIfWin(*args, **kwargs) + return _core_.IndividualLayoutConstraint_ResetIfWin(*args, **kwargs) def SatisfyConstraint(*args, **kwargs): """ @@ -9369,7 +9369,7 @@ class IndividualLayoutConstraint(Object): Try to satisfy constraint """ - return _core.IndividualLayoutConstraint_SatisfyConstraint(*args, **kwargs) + return _core_.IndividualLayoutConstraint_SatisfyConstraint(*args, **kwargs) def GetEdge(*args, **kwargs): """ @@ -9378,7 +9378,7 @@ class IndividualLayoutConstraint(Object): Get the value of this edge or dimension, or if this is not determinable, -1. """ - return _core.IndividualLayoutConstraint_GetEdge(*args, **kwargs) + return _core_.IndividualLayoutConstraint_GetEdge(*args, **kwargs) class IndividualLayoutConstraintPtr(IndividualLayoutConstraint): @@ -9386,7 +9386,7 @@ class IndividualLayoutConstraintPtr(IndividualLayoutConstraint): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = IndividualLayoutConstraint -_core.IndividualLayoutConstraint_swigregister(IndividualLayoutConstraintPtr) +_core_.IndividualLayoutConstraint_swigregister(IndividualLayoutConstraintPtr) class LayoutConstraints(Object): """ @@ -9418,27 +9418,27 @@ class LayoutConstraints(Object): """ def __repr__(self): return "<%s.%s; proxy of C++ wxLayoutConstraints instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - left = property(_core.LayoutConstraints_left_get) - top = property(_core.LayoutConstraints_top_get) - right = property(_core.LayoutConstraints_right_get) - bottom = property(_core.LayoutConstraints_bottom_get) - width = property(_core.LayoutConstraints_width_get) - height = property(_core.LayoutConstraints_height_get) - centreX = property(_core.LayoutConstraints_centreX_get) - centreY = property(_core.LayoutConstraints_centreY_get) + left = property(_core_.LayoutConstraints_left_get) + top = property(_core_.LayoutConstraints_top_get) + right = property(_core_.LayoutConstraints_right_get) + bottom = property(_core_.LayoutConstraints_bottom_get) + width = property(_core_.LayoutConstraints_width_get) + height = property(_core_.LayoutConstraints_height_get) + centreX = property(_core_.LayoutConstraints_centreX_get) + centreY = property(_core_.LayoutConstraints_centreY_get) def __init__(self, *args, **kwargs): """__init__(self) -> LayoutConstraints""" - newobj = _core.new_LayoutConstraints(*args, **kwargs) + newobj = _core_.new_LayoutConstraints(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def SatisfyConstraints(*args, **kwargs): """SatisfyConstraints(Window win) -> (areSatisfied, noChanges)""" - return _core.LayoutConstraints_SatisfyConstraints(*args, **kwargs) + return _core_.LayoutConstraints_SatisfyConstraints(*args, **kwargs) def AreSatisfied(*args, **kwargs): """AreSatisfied(self) -> bool""" - return _core.LayoutConstraints_AreSatisfied(*args, **kwargs) + return _core_.LayoutConstraints_AreSatisfied(*args, **kwargs) class LayoutConstraintsPtr(LayoutConstraints): @@ -9446,7 +9446,7 @@ class LayoutConstraintsPtr(LayoutConstraints): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = LayoutConstraints -_core.LayoutConstraints_swigregister(LayoutConstraintsPtr) +_core_.LayoutConstraints_swigregister(LayoutConstraintsPtr) #---------------------------------------------------------------------------- @@ -9474,9 +9474,9 @@ __wxPyPtrTypeMap['wxStatusBar95'] = 'wxStatusBar' from __version__ import * __version__ = VERSION_STRING -assert MAJOR_VERSION == _core.MAJOR_VERSION, "wxPython/wxWindows version mismatch" -assert MINOR_VERSION == _core.MINOR_VERSION, "wxPython/wxWindows version mismatch" -if RELEASE_VERSION != _core.RELEASE_VERSION: +assert MAJOR_VERSION == _core_.MAJOR_VERSION, "wxPython/wxWindows version mismatch" +assert MINOR_VERSION == _core_.MINOR_VERSION, "wxPython/wxWindows version mismatch" +if RELEASE_VERSION != _core_.RELEASE_VERSION: import warnings warnings.warn("wxPython/wxWindows release number mismatch") @@ -9514,7 +9514,7 @@ class PyUnbornObjectError(AttributeError): class _wxPyUnbornObject(object): """ - Some stock objects are created when the wx.core module is + Some stock objects are created when the wx._core module is imported, but their C++ instance is not created until the wx.App object is created and initialized. These object instances will temporarily have their __class__ changed to this class so an @@ -9686,15 +9686,15 @@ def __docfilter__(name): # Import other modules in this package that should show up in the # "core" wx namespace -from gdi import * -from windows import * -from controls import * -from misc import * +from _gdi import * +from _windows import * +from _controls import * +from _misc import * # Fixup the stock objects since they can't be used yet. (They will be # restored in wx.PyApp.OnInit.) -_core._wxPyFixStockObjects() +_core_._wxPyFixStockObjects() #---------------------------------------------------------------------------- #---------------------------------------------------------------------------- diff --git a/wxPython/src/mac/core_wrap.cpp b/wxPython/src/gtk/_core_wrap.cpp similarity index 99% rename from wxPython/src/mac/core_wrap.cpp rename to wxPython/src/gtk/_core_wrap.cpp index b9f74a2fb9..1d55aacaec 100644 --- a/wxPython/src/mac/core_wrap.cpp +++ b/wxPython/src/gtk/_core_wrap.cpp @@ -327,11 +327,11 @@ static swig_type_info *swig_types[116]; /*----------------------------------------------- - @(target):= _core.so + @(target):= _core_.so ------------------------------------------------*/ -#define SWIG_init init_core +#define SWIG_init init_core_ -#define SWIG_name "_core" +#define SWIG_name "_core_" /* Auxiliar swig macros */ diff --git a/wxPython/src/gtk/gdi.py b/wxPython/src/gtk/_gdi.py similarity index 65% rename from wxPython/src/gtk/gdi.py rename to wxPython/src/gtk/_gdi.py index fc1164ce52..eadfee83c0 100644 --- a/wxPython/src/gtk/gdi.py +++ b/wxPython/src/gtk/_gdi.py @@ -1,23 +1,23 @@ # This file was created automatically by SWIG. # Don't modify this file, modify the SWIG interface instead. -import _gdi +import _gdi_ -import core -wx = core +import _core +wx = _core __docfilter__ = wx.__docfilter__ #--------------------------------------------------------------------------- -class GDIObject(core.Object): +class GDIObject(_core.Object): def __repr__(self): return "<%s.%s; proxy of C++ wxGDIObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> GDIObject""" - newobj = _gdi.new_GDIObject(*args, **kwargs) + newobj = _gdi_.new_GDIObject(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_gdi.delete_GDIObject): + def __del__(self, destroy=_gdi_.delete_GDIObject): """__del__(self)""" try: if self.thisown: destroy(self) @@ -25,15 +25,15 @@ class GDIObject(core.Object): def GetVisible(*args, **kwargs): """GetVisible(self) -> bool""" - return _gdi.GDIObject_GetVisible(*args, **kwargs) + return _gdi_.GDIObject_GetVisible(*args, **kwargs) def SetVisible(*args, **kwargs): """SetVisible(self, bool visible)""" - return _gdi.GDIObject_SetVisible(*args, **kwargs) + return _gdi_.GDIObject_SetVisible(*args, **kwargs) def IsNull(*args, **kwargs): """IsNull(self) -> bool""" - return _gdi.GDIObject_IsNull(*args, **kwargs) + return _gdi_.GDIObject_IsNull(*args, **kwargs) class GDIObjectPtr(GDIObject): @@ -41,11 +41,11 @@ class GDIObjectPtr(GDIObject): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = GDIObject -_gdi.GDIObject_swigregister(GDIObjectPtr) +_gdi_.GDIObject_swigregister(GDIObjectPtr) #--------------------------------------------------------------------------- -class Colour(core.Object): +class Colour(_core.Object): """ A colour is an object representing a combination of Red, Green, and Blue (RGB) intensity values, and is used to determine drawing colours, window colours, @@ -71,11 +71,11 @@ class Colour(core.Object): Constructs a colour from red, green and blue values. """ - newobj = _gdi.new_Colour(*args, **kwargs) + newobj = _gdi_.new_Colour(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_gdi.delete_Colour): + def __del__(self, destroy=_gdi_.delete_Colour): """__del__(self)""" try: if self.thisown: destroy(self) @@ -87,7 +87,7 @@ class Colour(core.Object): Returns the red intensity. """ - return _gdi.Colour_Red(*args, **kwargs) + return _gdi_.Colour_Red(*args, **kwargs) def Green(*args, **kwargs): """ @@ -95,7 +95,7 @@ class Colour(core.Object): Returns the green intensity. """ - return _gdi.Colour_Green(*args, **kwargs) + return _gdi_.Colour_Green(*args, **kwargs) def Blue(*args, **kwargs): """ @@ -103,7 +103,7 @@ class Colour(core.Object): Returns the blue intensity. """ - return _gdi.Colour_Blue(*args, **kwargs) + return _gdi_.Colour_Blue(*args, **kwargs) def Ok(*args, **kwargs): """ @@ -112,7 +112,7 @@ class Colour(core.Object): Returns True if the colour object is valid (the colour has been initialised with RGB values). """ - return _gdi.Colour_Ok(*args, **kwargs) + return _gdi_.Colour_Ok(*args, **kwargs) def Set(*args, **kwargs): """ @@ -120,7 +120,7 @@ class Colour(core.Object): Sets the RGB intensity values. """ - return _gdi.Colour_Set(*args, **kwargs) + return _gdi_.Colour_Set(*args, **kwargs) def SetRGB(*args, **kwargs): """ @@ -128,7 +128,7 @@ class Colour(core.Object): Sets the RGB intensity values from a packed RGB value. """ - return _gdi.Colour_SetRGB(*args, **kwargs) + return _gdi_.Colour_SetRGB(*args, **kwargs) def SetFromName(*args, **kwargs): """ @@ -136,7 +136,7 @@ class Colour(core.Object): Sets the RGB intensity values using a colour name listed in wx.TheColourDatabase. """ - return _gdi.Colour_SetFromName(*args, **kwargs) + return _gdi_.Colour_SetFromName(*args, **kwargs) def GetPixel(*args, **kwargs): """ @@ -146,7 +146,7 @@ class Colour(core.Object): COLORREF is returned. On X, an allocated pixel value is returned. -1 is returned if the pixel is invalid (on X, unallocated). """ - return _gdi.Colour_GetPixel(*args, **kwargs) + return _gdi_.Colour_GetPixel(*args, **kwargs) def __eq__(*args, **kwargs): """ @@ -154,7 +154,7 @@ class Colour(core.Object): Compare colours for equality """ - return _gdi.Colour___eq__(*args, **kwargs) + return _gdi_.Colour___eq__(*args, **kwargs) def __ne__(*args, **kwargs): """ @@ -162,7 +162,7 @@ class Colour(core.Object): Compare colours for inequality """ - return _gdi.Colour___ne__(*args, **kwargs) + return _gdi_.Colour___ne__(*args, **kwargs) def Get(*args, **kwargs): """ @@ -170,7 +170,7 @@ class Colour(core.Object): Returns the RGB intensity values as a tuple. """ - return _gdi.Colour_Get(*args, **kwargs) + return _gdi_.Colour_Get(*args, **kwargs) def GetRGB(*args, **kwargs): """ @@ -178,7 +178,7 @@ class Colour(core.Object): Return the colour as a packed RGB value """ - return _gdi.Colour_GetRGB(*args, **kwargs) + return _gdi_.Colour_GetRGB(*args, **kwargs) asTuple = Get def __str__(self): return str(self.asTuple()) @@ -193,7 +193,7 @@ class ColourPtr(Colour): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = Colour -_gdi.Colour_swigregister(ColourPtr) +_gdi_.Colour_swigregister(ColourPtr) def NamedColour(*args, **kwargs): """ @@ -201,7 +201,7 @@ def NamedColour(*args, **kwargs): Constructs a colour object using a colour name listed in wx.TheColourDatabase. """ - val = _gdi.new_NamedColour(*args, **kwargs) + val = _gdi_.new_NamedColour(*args, **kwargs) val.thisown = 1 return val @@ -211,7 +211,7 @@ def ColourRGB(*args, **kwargs): Constructs a colour from a packed RGB value. """ - val = _gdi.new_ColourRGB(*args, **kwargs) + val = _gdi_.new_ColourRGB(*args, **kwargs) val.thisown = 1 return val @@ -224,11 +224,11 @@ class Palette(GDIObject): return "<%s.%s; proxy of C++ wxPalette instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, int n, unsigned char red, unsigned char green, unsigned char blue) -> Palette""" - newobj = _gdi.new_Palette(*args, **kwargs) + newobj = _gdi_.new_Palette(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_gdi.delete_Palette): + def __del__(self, destroy=_gdi_.delete_Palette): """__del__(self)""" try: if self.thisown: destroy(self) @@ -236,15 +236,15 @@ class Palette(GDIObject): def GetPixel(*args, **kwargs): """GetPixel(self, byte red, byte green, byte blue) -> int""" - return _gdi.Palette_GetPixel(*args, **kwargs) + return _gdi_.Palette_GetPixel(*args, **kwargs) def GetRGB(*args, **kwargs): """GetRGB(int pixel) -> (R,G,B)""" - return _gdi.Palette_GetRGB(*args, **kwargs) + return _gdi_.Palette_GetRGB(*args, **kwargs) def Ok(*args, **kwargs): """Ok(self) -> bool""" - return _gdi.Palette_Ok(*args, **kwargs) + return _gdi_.Palette_Ok(*args, **kwargs) def __nonzero__(self): return self.Ok() @@ -253,7 +253,7 @@ class PalettePtr(Palette): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = Palette -_gdi.Palette_swigregister(PalettePtr) +_gdi_.Palette_swigregister(PalettePtr) #--------------------------------------------------------------------------- @@ -262,11 +262,11 @@ class Pen(GDIObject): return "<%s.%s; proxy of C++ wxPen instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, Colour colour, int width=1, int style=SOLID) -> Pen""" - newobj = _gdi.new_Pen(*args, **kwargs) + newobj = _gdi_.new_Pen(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_gdi.delete_Pen): + def __del__(self, destroy=_gdi_.delete_Pen): """__del__(self)""" try: if self.thisown: destroy(self) @@ -274,67 +274,67 @@ class Pen(GDIObject): def GetCap(*args, **kwargs): """GetCap(self) -> int""" - return _gdi.Pen_GetCap(*args, **kwargs) + return _gdi_.Pen_GetCap(*args, **kwargs) def GetColour(*args, **kwargs): """GetColour(self) -> Colour""" - return _gdi.Pen_GetColour(*args, **kwargs) + return _gdi_.Pen_GetColour(*args, **kwargs) def GetJoin(*args, **kwargs): """GetJoin(self) -> int""" - return _gdi.Pen_GetJoin(*args, **kwargs) + return _gdi_.Pen_GetJoin(*args, **kwargs) def GetStyle(*args, **kwargs): """GetStyle(self) -> int""" - return _gdi.Pen_GetStyle(*args, **kwargs) + return _gdi_.Pen_GetStyle(*args, **kwargs) def GetWidth(*args, **kwargs): """GetWidth(self) -> int""" - return _gdi.Pen_GetWidth(*args, **kwargs) + return _gdi_.Pen_GetWidth(*args, **kwargs) def Ok(*args, **kwargs): """Ok(self) -> bool""" - return _gdi.Pen_Ok(*args, **kwargs) + return _gdi_.Pen_Ok(*args, **kwargs) def SetCap(*args, **kwargs): """SetCap(self, int cap_style)""" - return _gdi.Pen_SetCap(*args, **kwargs) + return _gdi_.Pen_SetCap(*args, **kwargs) def SetColour(*args, **kwargs): """SetColour(self, Colour colour)""" - return _gdi.Pen_SetColour(*args, **kwargs) + return _gdi_.Pen_SetColour(*args, **kwargs) def SetJoin(*args, **kwargs): """SetJoin(self, int join_style)""" - return _gdi.Pen_SetJoin(*args, **kwargs) + return _gdi_.Pen_SetJoin(*args, **kwargs) def SetStyle(*args, **kwargs): """SetStyle(self, int style)""" - return _gdi.Pen_SetStyle(*args, **kwargs) + return _gdi_.Pen_SetStyle(*args, **kwargs) def SetWidth(*args, **kwargs): """SetWidth(self, int width)""" - return _gdi.Pen_SetWidth(*args, **kwargs) + return _gdi_.Pen_SetWidth(*args, **kwargs) def SetDashes(*args, **kwargs): """SetDashes(self, int dashes, wxDash dashes_array)""" - return _gdi.Pen_SetDashes(*args, **kwargs) + return _gdi_.Pen_SetDashes(*args, **kwargs) def GetDashes(*args, **kwargs): """GetDashes(self) -> PyObject""" - return _gdi.Pen_GetDashes(*args, **kwargs) + return _gdi_.Pen_GetDashes(*args, **kwargs) def __eq__(*args, **kwargs): """__eq__(self, Pen other) -> bool""" - return _gdi.Pen___eq__(*args, **kwargs) + return _gdi_.Pen___eq__(*args, **kwargs) def __ne__(*args, **kwargs): """__ne__(self, Pen other) -> bool""" - return _gdi.Pen___ne__(*args, **kwargs) + return _gdi_.Pen___ne__(*args, **kwargs) def GetDashCount(*args, **kwargs): """GetDashCount(self) -> int""" - return _gdi.Pen_GetDashCount(*args, **kwargs) + return _gdi_.Pen_GetDashCount(*args, **kwargs) def __nonzero__(self): return self.Ok() @@ -343,18 +343,18 @@ class PenPtr(Pen): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = Pen -_gdi.Pen_swigregister(PenPtr) +_gdi_.Pen_swigregister(PenPtr) class PyPen(Pen): def __repr__(self): return "<%s.%s; proxy of C++ wxPyPen instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, Colour colour, int width=1, int style=SOLID) -> PyPen""" - newobj = _gdi.new_PyPen(*args, **kwargs) + newobj = _gdi_.new_PyPen(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_gdi.delete_PyPen): + def __del__(self, destroy=_gdi_.delete_PyPen): """__del__(self)""" try: if self.thisown: destroy(self) @@ -362,7 +362,7 @@ class PyPen(Pen): def SetDashes(*args, **kwargs): """SetDashes(self, int dashes, wxDash dashes_array)""" - return _gdi.PyPen_SetDashes(*args, **kwargs) + return _gdi_.PyPen_SetDashes(*args, **kwargs) class PyPenPtr(PyPen): @@ -370,7 +370,7 @@ class PyPenPtr(PyPen): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = PyPen -_gdi.PyPen_swigregister(PyPenPtr) +_gdi_.PyPen_swigregister(PyPenPtr) Pen = PyPen #--------------------------------------------------------------------------- @@ -388,11 +388,11 @@ class Brush(GDIObject): Constructs a brush from a colour object and style. """ - newobj = _gdi.new_Brush(*args, **kwargs) + newobj = _gdi_.new_Brush(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_gdi.delete_Brush): + def __del__(self, destroy=_gdi_.delete_Brush): """__del__(self)""" try: if self.thisown: destroy(self) @@ -400,31 +400,31 @@ class Brush(GDIObject): def SetColour(*args, **kwargs): """SetColour(self, Colour col)""" - return _gdi.Brush_SetColour(*args, **kwargs) + return _gdi_.Brush_SetColour(*args, **kwargs) def SetStyle(*args, **kwargs): """SetStyle(self, int style)""" - return _gdi.Brush_SetStyle(*args, **kwargs) + return _gdi_.Brush_SetStyle(*args, **kwargs) def SetStipple(*args, **kwargs): """SetStipple(self, Bitmap stipple)""" - return _gdi.Brush_SetStipple(*args, **kwargs) + return _gdi_.Brush_SetStipple(*args, **kwargs) def GetColour(*args, **kwargs): """GetColour(self) -> Colour""" - return _gdi.Brush_GetColour(*args, **kwargs) + return _gdi_.Brush_GetColour(*args, **kwargs) def GetStyle(*args, **kwargs): """GetStyle(self) -> int""" - return _gdi.Brush_GetStyle(*args, **kwargs) + return _gdi_.Brush_GetStyle(*args, **kwargs) def GetStipple(*args, **kwargs): """GetStipple(self) -> Bitmap""" - return _gdi.Brush_GetStipple(*args, **kwargs) + return _gdi_.Brush_GetStipple(*args, **kwargs) def Ok(*args, **kwargs): """Ok(self) -> bool""" - return _gdi.Brush_Ok(*args, **kwargs) + return _gdi_.Brush_Ok(*args, **kwargs) def __nonzero__(self): return self.Ok() @@ -433,7 +433,7 @@ class BrushPtr(Brush): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = Brush -_gdi.Brush_swigregister(BrushPtr) +_gdi_.Brush_swigregister(BrushPtr) class Bitmap(GDIObject): def __repr__(self): @@ -444,11 +444,11 @@ class Bitmap(GDIObject): Loads a bitmap from a file. """ - newobj = _gdi.new_Bitmap(*args, **kwargs) + newobj = _gdi_.new_Bitmap(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_gdi.delete_Bitmap): + def __del__(self, destroy=_gdi_.delete_Bitmap): """__del__(self)""" try: if self.thisown: destroy(self) @@ -456,7 +456,7 @@ class Bitmap(GDIObject): def Ok(*args, **kwargs): """Ok(self) -> bool""" - return _gdi.Bitmap_Ok(*args, **kwargs) + return _gdi_.Bitmap_Ok(*args, **kwargs) def GetWidth(*args, **kwargs): """ @@ -464,7 +464,7 @@ class Bitmap(GDIObject): Gets the width of the bitmap in pixels. """ - return _gdi.Bitmap_GetWidth(*args, **kwargs) + return _gdi_.Bitmap_GetWidth(*args, **kwargs) def GetHeight(*args, **kwargs): """ @@ -472,7 +472,7 @@ class Bitmap(GDIObject): Gets the height of the bitmap in pixels. """ - return _gdi.Bitmap_GetHeight(*args, **kwargs) + return _gdi_.Bitmap_GetHeight(*args, **kwargs) def GetDepth(*args, **kwargs): """ @@ -481,7 +481,7 @@ class Bitmap(GDIObject): Gets the colour depth of the bitmap. A value of 1 indicates a monochrome bitmap. """ - return _gdi.Bitmap_GetDepth(*args, **kwargs) + return _gdi_.Bitmap_GetDepth(*args, **kwargs) def GetSize(*args, **kwargs): """ @@ -489,7 +489,7 @@ class Bitmap(GDIObject): Get the size of the bitmap. """ - return _gdi.Bitmap_GetSize(*args, **kwargs) + return _gdi_.Bitmap_GetSize(*args, **kwargs) def ConvertToImage(*args, **kwargs): """ @@ -499,7 +499,7 @@ class Bitmap(GDIObject): preserves mask information so that bitmaps and images can be converted back and forth without loss in that respect. """ - return _gdi.Bitmap_ConvertToImage(*args, **kwargs) + return _gdi_.Bitmap_ConvertToImage(*args, **kwargs) def GetMask(*args, **kwargs): """ @@ -508,7 +508,7 @@ class Bitmap(GDIObject): Gets the associated mask (if any) which may have been loaded from a file or explpicitly set for the bitmap. """ - return _gdi.Bitmap_GetMask(*args, **kwargs) + return _gdi_.Bitmap_GetMask(*args, **kwargs) def SetMask(*args, **kwargs): """ @@ -516,7 +516,7 @@ class Bitmap(GDIObject): Sets the mask for this bitmap. """ - return _gdi.Bitmap_SetMask(*args, **kwargs) + return _gdi_.Bitmap_SetMask(*args, **kwargs) def SetMaskColour(*args, **kwargs): """ @@ -524,7 +524,7 @@ class Bitmap(GDIObject): Create a Mask based on a specified colour in the Bitmap. """ - return _gdi.Bitmap_SetMaskColour(*args, **kwargs) + return _gdi_.Bitmap_SetMaskColour(*args, **kwargs) def GetSubBitmap(*args, **kwargs): """ @@ -533,7 +533,7 @@ class Bitmap(GDIObject): Returns a sub bitmap of the current one as long as the rect belongs entirely to the bitmap. This function preserves bit depth and mask information. """ - return _gdi.Bitmap_GetSubBitmap(*args, **kwargs) + return _gdi_.Bitmap_GetSubBitmap(*args, **kwargs) def SaveFile(*args, **kwargs): """ @@ -541,7 +541,7 @@ class Bitmap(GDIObject): Saves a bitmap in the named file. """ - return _gdi.Bitmap_SaveFile(*args, **kwargs) + return _gdi_.Bitmap_SaveFile(*args, **kwargs) def LoadFile(*args, **kwargs): """ @@ -549,11 +549,11 @@ class Bitmap(GDIObject): Loads a bitmap from a file """ - return _gdi.Bitmap_LoadFile(*args, **kwargs) + return _gdi_.Bitmap_LoadFile(*args, **kwargs) def CopyFromIcon(*args, **kwargs): """CopyFromIcon(self, Icon icon) -> bool""" - return _gdi.Bitmap_CopyFromIcon(*args, **kwargs) + return _gdi_.Bitmap_CopyFromIcon(*args, **kwargs) def SetHeight(*args, **kwargs): """ @@ -561,7 +561,7 @@ class Bitmap(GDIObject): Set the height property (does not affect the bitmap data). """ - return _gdi.Bitmap_SetHeight(*args, **kwargs) + return _gdi_.Bitmap_SetHeight(*args, **kwargs) def SetWidth(*args, **kwargs): """ @@ -569,7 +569,7 @@ class Bitmap(GDIObject): Set the width property (does not affect the bitmap data). """ - return _gdi.Bitmap_SetWidth(*args, **kwargs) + return _gdi_.Bitmap_SetWidth(*args, **kwargs) def SetDepth(*args, **kwargs): """ @@ -577,7 +577,7 @@ class Bitmap(GDIObject): Set the depth property (does not affect the bitmap data). """ - return _gdi.Bitmap_SetDepth(*args, **kwargs) + return _gdi_.Bitmap_SetDepth(*args, **kwargs) def SetSize(*args, **kwargs): """ @@ -585,16 +585,16 @@ class Bitmap(GDIObject): Set the bitmap size """ - return _gdi.Bitmap_SetSize(*args, **kwargs) + return _gdi_.Bitmap_SetSize(*args, **kwargs) def __nonzero__(self): return self.Ok() def __eq__(*args, **kwargs): """__eq__(self, Bitmap other) -> bool""" - return _gdi.Bitmap___eq__(*args, **kwargs) + return _gdi_.Bitmap___eq__(*args, **kwargs) def __ne__(*args, **kwargs): """__ne__(self, Bitmap other) -> bool""" - return _gdi.Bitmap___ne__(*args, **kwargs) + return _gdi_.Bitmap___ne__(*args, **kwargs) class BitmapPtr(Bitmap): @@ -602,7 +602,7 @@ class BitmapPtr(Bitmap): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = Bitmap -_gdi.Bitmap_swigregister(BitmapPtr) +_gdi_.Bitmap_swigregister(BitmapPtr) def BitmapFromIcon(*args, **kwargs): """ @@ -610,7 +610,7 @@ def BitmapFromIcon(*args, **kwargs): Create a new bitmap from an Icon object. """ - val = _gdi.new_BitmapFromIcon(*args, **kwargs) + val = _gdi_.new_BitmapFromIcon(*args, **kwargs) val.thisown = 1 return val @@ -623,7 +623,7 @@ def BitmapFromImage(*args, **kwargs): bitmap will use the provided colour depth (or that of the current system if depth is -1) which entails that a colour reduction has to take place. """ - val = _gdi.new_BitmapFromImage(*args, **kwargs) + val = _gdi_.new_BitmapFromImage(*args, **kwargs) val.thisown = 1 return val @@ -633,7 +633,7 @@ def BitmapFromXPMData(*args, **kwargs): Construct a Bitmap from a list of strings formatted as XPM data. """ - val = _gdi.new_BitmapFromXPMData(*args, **kwargs) + val = _gdi_.new_BitmapFromXPMData(*args, **kwargs) val.thisown = 1 return val @@ -646,7 +646,7 @@ def BitmapFromBits(*args, **kwargs): parameter should contain an XBM image. For other bit depths, the behaviour is platform dependent. """ - val = _gdi.new_BitmapFromBits(*args, **kwargs) + val = _gdi_.new_BitmapFromBits(*args, **kwargs) val.thisown = 1 return val @@ -659,11 +659,11 @@ def EmptyBitmap(*args): the depth of the current screen or visual. Some platforms only support 1 for monochrome and -1 for the current colour setting. """ - val = _gdi.new_EmptyBitmap(*args) + val = _gdi_.new_EmptyBitmap(*args) val.thisown = 1 return val -class Mask(core.Object): +class Mask(_core.Object): """ This class encapsulates a monochrome mask bitmap, where the masked area is black and the unmasked area is white. When associated with a bitmap and drawn @@ -679,7 +679,7 @@ class Mask(core.Object): Constructs a mask from a bitmap and a colour in that bitmap that indicates the transparent portions of the mask, by default BLACK is used. """ - newobj = _gdi.new_Mask(*args, **kwargs) + newobj = _gdi_.new_Mask(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -689,7 +689,7 @@ class MaskPtr(Mask): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = Mask -_gdi.Mask_swigregister(MaskPtr) +_gdi_.Mask_swigregister(MaskPtr) MaskColour = Mask class Icon(GDIObject): @@ -697,11 +697,11 @@ class Icon(GDIObject): return "<%s.%s; proxy of C++ wxIcon instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, String name, int type, int desiredWidth=-1, int desiredHeight=-1) -> Icon""" - newobj = _gdi.new_Icon(*args, **kwargs) + newobj = _gdi_.new_Icon(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_gdi.delete_Icon): + def __del__(self, destroy=_gdi_.delete_Icon): """__del__(self)""" try: if self.thisown: destroy(self) @@ -709,39 +709,39 @@ class Icon(GDIObject): def LoadFile(*args, **kwargs): """LoadFile(self, String name, int type) -> bool""" - return _gdi.Icon_LoadFile(*args, **kwargs) + return _gdi_.Icon_LoadFile(*args, **kwargs) def Ok(*args, **kwargs): """Ok(self) -> bool""" - return _gdi.Icon_Ok(*args, **kwargs) + return _gdi_.Icon_Ok(*args, **kwargs) def GetWidth(*args, **kwargs): """GetWidth(self) -> int""" - return _gdi.Icon_GetWidth(*args, **kwargs) + return _gdi_.Icon_GetWidth(*args, **kwargs) def GetHeight(*args, **kwargs): """GetHeight(self) -> int""" - return _gdi.Icon_GetHeight(*args, **kwargs) + return _gdi_.Icon_GetHeight(*args, **kwargs) def GetDepth(*args, **kwargs): """GetDepth(self) -> int""" - return _gdi.Icon_GetDepth(*args, **kwargs) + return _gdi_.Icon_GetDepth(*args, **kwargs) def SetWidth(*args, **kwargs): """SetWidth(self, int w)""" - return _gdi.Icon_SetWidth(*args, **kwargs) + return _gdi_.Icon_SetWidth(*args, **kwargs) def SetHeight(*args, **kwargs): """SetHeight(self, int h)""" - return _gdi.Icon_SetHeight(*args, **kwargs) + return _gdi_.Icon_SetHeight(*args, **kwargs) def SetDepth(*args, **kwargs): """SetDepth(self, int d)""" - return _gdi.Icon_SetDepth(*args, **kwargs) + return _gdi_.Icon_SetDepth(*args, **kwargs) def CopyFromBitmap(*args, **kwargs): """CopyFromBitmap(self, Bitmap bmp)""" - return _gdi.Icon_CopyFromBitmap(*args, **kwargs) + return _gdi_.Icon_CopyFromBitmap(*args, **kwargs) def __nonzero__(self): return self.Ok() @@ -750,29 +750,29 @@ class IconPtr(Icon): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = Icon -_gdi.Icon_swigregister(IconPtr) +_gdi_.Icon_swigregister(IconPtr) def EmptyIcon(*args, **kwargs): """EmptyIcon() -> Icon""" - val = _gdi.new_EmptyIcon(*args, **kwargs) + val = _gdi_.new_EmptyIcon(*args, **kwargs) val.thisown = 1 return val def IconFromLocation(*args, **kwargs): """IconFromLocation(IconLocation loc) -> Icon""" - val = _gdi.new_IconFromLocation(*args, **kwargs) + val = _gdi_.new_IconFromLocation(*args, **kwargs) val.thisown = 1 return val def IconFromBitmap(*args, **kwargs): """IconFromBitmap(Bitmap bmp) -> Icon""" - val = _gdi.new_IconFromBitmap(*args, **kwargs) + val = _gdi_.new_IconFromBitmap(*args, **kwargs) val.thisown = 1 return val def IconFromXPMData(*args, **kwargs): """IconFromXPMData(PyObject listOfStrings) -> Icon""" - val = _gdi.new_IconFromXPMData(*args, **kwargs) + val = _gdi_.new_IconFromXPMData(*args, **kwargs) val.thisown = 1 return val @@ -781,11 +781,11 @@ class IconLocation(object): return "<%s.%s; proxy of C++ wxIconLocation instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, String filename=&wxPyEmptyString, int num=0) -> IconLocation""" - newobj = _gdi.new_IconLocation(*args, **kwargs) + newobj = _gdi_.new_IconLocation(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_gdi.delete_IconLocation): + def __del__(self, destroy=_gdi_.delete_IconLocation): """__del__(self)""" try: if self.thisown: destroy(self) @@ -793,24 +793,24 @@ class IconLocation(object): def IsOk(*args, **kwargs): """IsOk(self) -> bool""" - return _gdi.IconLocation_IsOk(*args, **kwargs) + return _gdi_.IconLocation_IsOk(*args, **kwargs) def __nonzero__(self): return self.Ok() def SetFileName(*args, **kwargs): """SetFileName(self, String filename)""" - return _gdi.IconLocation_SetFileName(*args, **kwargs) + return _gdi_.IconLocation_SetFileName(*args, **kwargs) def GetFileName(*args, **kwargs): """GetFileName(self) -> String""" - return _gdi.IconLocation_GetFileName(*args, **kwargs) + return _gdi_.IconLocation_GetFileName(*args, **kwargs) def SetIndex(*args, **kwargs): """SetIndex(self, int num)""" - return _gdi.IconLocation_SetIndex(*args, **kwargs) + return _gdi_.IconLocation_SetIndex(*args, **kwargs) def GetIndex(*args, **kwargs): """GetIndex(self) -> int""" - return _gdi.IconLocation_GetIndex(*args, **kwargs) + return _gdi_.IconLocation_GetIndex(*args, **kwargs) class IconLocationPtr(IconLocation): @@ -818,18 +818,18 @@ class IconLocationPtr(IconLocation): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = IconLocation -_gdi.IconLocation_swigregister(IconLocationPtr) +_gdi_.IconLocation_swigregister(IconLocationPtr) class IconBundle(object): def __repr__(self): return "<%s.%s; proxy of C++ wxIconBundle instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> IconBundle""" - newobj = _gdi.new_IconBundle(*args, **kwargs) + newobj = _gdi_.new_IconBundle(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_gdi.delete_IconBundle): + def __del__(self, destroy=_gdi_.delete_IconBundle): """__del__(self)""" try: if self.thisown: destroy(self) @@ -837,15 +837,15 @@ class IconBundle(object): def AddIcon(*args, **kwargs): """AddIcon(self, Icon icon)""" - return _gdi.IconBundle_AddIcon(*args, **kwargs) + return _gdi_.IconBundle_AddIcon(*args, **kwargs) def AddIconFromFile(*args, **kwargs): """AddIconFromFile(self, String file, long type)""" - return _gdi.IconBundle_AddIconFromFile(*args, **kwargs) + return _gdi_.IconBundle_AddIconFromFile(*args, **kwargs) def GetIcon(*args, **kwargs): """GetIcon(self, Size size) -> Icon""" - return _gdi.IconBundle_GetIcon(*args, **kwargs) + return _gdi_.IconBundle_GetIcon(*args, **kwargs) class IconBundlePtr(IconBundle): @@ -853,17 +853,17 @@ class IconBundlePtr(IconBundle): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = IconBundle -_gdi.IconBundle_swigregister(IconBundlePtr) +_gdi_.IconBundle_swigregister(IconBundlePtr) def IconBundleFromFile(*args, **kwargs): """IconBundleFromFile(String file, long type) -> IconBundle""" - val = _gdi.new_IconBundleFromFile(*args, **kwargs) + val = _gdi_.new_IconBundleFromFile(*args, **kwargs) val.thisown = 1 return val def IconBundleFromIcon(*args, **kwargs): """IconBundleFromIcon(Icon icon) -> IconBundle""" - val = _gdi.new_IconBundleFromIcon(*args, **kwargs) + val = _gdi_.new_IconBundleFromIcon(*args, **kwargs) val.thisown = 1 return val @@ -892,11 +892,11 @@ class Cursor(GDIObject): This cursor is not available on wxGTK, use wx.StockCursor, wx.CursorFromImage, or wx.CursorFromBits instead. """ - newobj = _gdi.new_Cursor(*args, **kwargs) + newobj = _gdi_.new_Cursor(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_gdi.delete_Cursor): + def __del__(self, destroy=_gdi_.delete_Cursor): """__del__(self)""" try: if self.thisown: destroy(self) @@ -904,7 +904,7 @@ class Cursor(GDIObject): def Ok(*args, **kwargs): """Ok(self) -> bool""" - return _gdi.Cursor_Ok(*args, **kwargs) + return _gdi_.Cursor_Ok(*args, **kwargs) def __nonzero__(self): return self.Ok() @@ -913,7 +913,7 @@ class CursorPtr(Cursor): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = Cursor -_gdi.Cursor_swigregister(CursorPtr) +_gdi_.Cursor_swigregister(CursorPtr) def StockCursor(*args, **kwargs): """ @@ -922,7 +922,7 @@ def StockCursor(*args, **kwargs): Create a cursor using one of the stock cursors. Note that not all cursors are available on all platforms. """ - val = _gdi.new_StockCursor(*args, **kwargs) + val = _gdi_.new_StockCursor(*args, **kwargs) val.thisown = 1 return val @@ -942,25 +942,25 @@ def CursorFromImage(*args, **kwargs): resized to 16x16 and currently only shown as black/white (mask respected). """ - val = _gdi.new_CursorFromImage(*args, **kwargs) + val = _gdi_.new_CursorFromImage(*args, **kwargs) val.thisown = 1 return val #--------------------------------------------------------------------------- -OutRegion = _gdi.OutRegion -PartRegion = _gdi.PartRegion -InRegion = _gdi.InRegion +OutRegion = _gdi_.OutRegion +PartRegion = _gdi_.PartRegion +InRegion = _gdi_.InRegion class Region(GDIObject): def __repr__(self): return "<%s.%s; proxy of C++ wxRegion instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, int x=0, int y=0, int width=0, int height=0) -> Region""" - newobj = _gdi.new_Region(*args, **kwargs) + newobj = _gdi_.new_Region(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_gdi.delete_Region): + def __del__(self, destroy=_gdi_.delete_Region): """__del__(self)""" try: if self.thisown: destroy(self) @@ -968,91 +968,91 @@ class Region(GDIObject): def Clear(*args, **kwargs): """Clear(self)""" - return _gdi.Region_Clear(*args, **kwargs) + return _gdi_.Region_Clear(*args, **kwargs) def Offset(*args, **kwargs): """Offset(self, int x, int y) -> bool""" - return _gdi.Region_Offset(*args, **kwargs) + return _gdi_.Region_Offset(*args, **kwargs) def Contains(*args, **kwargs): """Contains(self, int x, int y) -> int""" - return _gdi.Region_Contains(*args, **kwargs) + return _gdi_.Region_Contains(*args, **kwargs) def ContainsPoint(*args, **kwargs): """ContainsPoint(self, Point pt) -> int""" - return _gdi.Region_ContainsPoint(*args, **kwargs) + return _gdi_.Region_ContainsPoint(*args, **kwargs) def ContainsRect(*args, **kwargs): """ContainsRect(self, Rect rect) -> int""" - return _gdi.Region_ContainsRect(*args, **kwargs) + return _gdi_.Region_ContainsRect(*args, **kwargs) def ContainsRectDim(*args, **kwargs): """ContainsRectDim(self, int x, int y, int w, int h) -> int""" - return _gdi.Region_ContainsRectDim(*args, **kwargs) + return _gdi_.Region_ContainsRectDim(*args, **kwargs) def GetBox(*args, **kwargs): """GetBox(self) -> Rect""" - return _gdi.Region_GetBox(*args, **kwargs) + return _gdi_.Region_GetBox(*args, **kwargs) def Intersect(*args, **kwargs): """Intersect(self, int x, int y, int width, int height) -> bool""" - return _gdi.Region_Intersect(*args, **kwargs) + return _gdi_.Region_Intersect(*args, **kwargs) def IntersectRect(*args, **kwargs): """IntersectRect(self, Rect rect) -> bool""" - return _gdi.Region_IntersectRect(*args, **kwargs) + return _gdi_.Region_IntersectRect(*args, **kwargs) def IntersectRegion(*args, **kwargs): """IntersectRegion(self, Region region) -> bool""" - return _gdi.Region_IntersectRegion(*args, **kwargs) + return _gdi_.Region_IntersectRegion(*args, **kwargs) def IsEmpty(*args, **kwargs): """IsEmpty(self) -> bool""" - return _gdi.Region_IsEmpty(*args, **kwargs) + return _gdi_.Region_IsEmpty(*args, **kwargs) def Union(*args, **kwargs): """Union(self, int x, int y, int width, int height) -> bool""" - return _gdi.Region_Union(*args, **kwargs) + return _gdi_.Region_Union(*args, **kwargs) def UnionRect(*args, **kwargs): """UnionRect(self, Rect rect) -> bool""" - return _gdi.Region_UnionRect(*args, **kwargs) + return _gdi_.Region_UnionRect(*args, **kwargs) def UnionRegion(*args, **kwargs): """UnionRegion(self, Region region) -> bool""" - return _gdi.Region_UnionRegion(*args, **kwargs) + return _gdi_.Region_UnionRegion(*args, **kwargs) def Subtract(*args, **kwargs): """Subtract(self, int x, int y, int width, int height) -> bool""" - return _gdi.Region_Subtract(*args, **kwargs) + return _gdi_.Region_Subtract(*args, **kwargs) def SubtractRect(*args, **kwargs): """SubtractRect(self, Rect rect) -> bool""" - return _gdi.Region_SubtractRect(*args, **kwargs) + return _gdi_.Region_SubtractRect(*args, **kwargs) def SubtractRegion(*args, **kwargs): """SubtractRegion(self, Region region) -> bool""" - return _gdi.Region_SubtractRegion(*args, **kwargs) + return _gdi_.Region_SubtractRegion(*args, **kwargs) def Xor(*args, **kwargs): """Xor(self, int x, int y, int width, int height) -> bool""" - return _gdi.Region_Xor(*args, **kwargs) + return _gdi_.Region_Xor(*args, **kwargs) def XorRect(*args, **kwargs): """XorRect(self, Rect rect) -> bool""" - return _gdi.Region_XorRect(*args, **kwargs) + return _gdi_.Region_XorRect(*args, **kwargs) def XorRegion(*args, **kwargs): """XorRegion(self, Region region) -> bool""" - return _gdi.Region_XorRegion(*args, **kwargs) + return _gdi_.Region_XorRegion(*args, **kwargs) def ConvertToBitmap(*args, **kwargs): """ConvertToBitmap(self) -> Bitmap""" - return _gdi.Region_ConvertToBitmap(*args, **kwargs) + return _gdi_.Region_ConvertToBitmap(*args, **kwargs) def UnionBitmap(*args, **kwargs): """UnionBitmap(self, Bitmap bmp, Colour transColour=NullColour, int tolerance=0) -> bool""" - return _gdi.Region_UnionBitmap(*args, **kwargs) + return _gdi_.Region_UnionBitmap(*args, **kwargs) class RegionPtr(Region): @@ -1060,30 +1060,30 @@ class RegionPtr(Region): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = Region -_gdi.Region_swigregister(RegionPtr) +_gdi_.Region_swigregister(RegionPtr) def RegionFromBitmap(*args, **kwargs): """RegionFromBitmap(Bitmap bmp, Colour transColour=NullColour, int tolerance=0) -> Region""" - val = _gdi.new_RegionFromBitmap(*args, **kwargs) + val = _gdi_.new_RegionFromBitmap(*args, **kwargs) val.thisown = 1 return val def RegionFromPoints(*args, **kwargs): """RegionFromPoints(int points, Point points_array, int fillStyle=WINDING_RULE) -> Region""" - val = _gdi.new_RegionFromPoints(*args, **kwargs) + val = _gdi_.new_RegionFromPoints(*args, **kwargs) val.thisown = 1 return val -class RegionIterator(core.Object): +class RegionIterator(_core.Object): def __repr__(self): return "<%s.%s; proxy of C++ wxRegionIterator instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, Region region) -> RegionIterator""" - newobj = _gdi.new_RegionIterator(*args, **kwargs) + newobj = _gdi_.new_RegionIterator(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_gdi.delete_RegionIterator): + def __del__(self, destroy=_gdi_.delete_RegionIterator): """__del__(self)""" try: if self.thisown: destroy(self) @@ -1091,47 +1091,47 @@ class RegionIterator(core.Object): def GetX(*args, **kwargs): """GetX(self) -> int""" - return _gdi.RegionIterator_GetX(*args, **kwargs) + return _gdi_.RegionIterator_GetX(*args, **kwargs) def GetY(*args, **kwargs): """GetY(self) -> int""" - return _gdi.RegionIterator_GetY(*args, **kwargs) + return _gdi_.RegionIterator_GetY(*args, **kwargs) def GetW(*args, **kwargs): """GetW(self) -> int""" - return _gdi.RegionIterator_GetW(*args, **kwargs) + return _gdi_.RegionIterator_GetW(*args, **kwargs) def GetWidth(*args, **kwargs): """GetWidth(self) -> int""" - return _gdi.RegionIterator_GetWidth(*args, **kwargs) + return _gdi_.RegionIterator_GetWidth(*args, **kwargs) def GetH(*args, **kwargs): """GetH(self) -> int""" - return _gdi.RegionIterator_GetH(*args, **kwargs) + return _gdi_.RegionIterator_GetH(*args, **kwargs) def GetHeight(*args, **kwargs): """GetHeight(self) -> int""" - return _gdi.RegionIterator_GetHeight(*args, **kwargs) + return _gdi_.RegionIterator_GetHeight(*args, **kwargs) def GetRect(*args, **kwargs): """GetRect(self) -> Rect""" - return _gdi.RegionIterator_GetRect(*args, **kwargs) + return _gdi_.RegionIterator_GetRect(*args, **kwargs) def HaveRects(*args, **kwargs): """HaveRects(self) -> bool""" - return _gdi.RegionIterator_HaveRects(*args, **kwargs) + return _gdi_.RegionIterator_HaveRects(*args, **kwargs) def Reset(*args, **kwargs): """Reset(self)""" - return _gdi.RegionIterator_Reset(*args, **kwargs) + return _gdi_.RegionIterator_Reset(*args, **kwargs) def Next(*args, **kwargs): """Next(self)""" - return _gdi.RegionIterator_Next(*args, **kwargs) + return _gdi_.RegionIterator_Next(*args, **kwargs) def __nonzero__(*args, **kwargs): """__nonzero__(self) -> bool""" - return _gdi.RegionIterator___nonzero__(*args, **kwargs) + return _gdi_.RegionIterator___nonzero__(*args, **kwargs) class RegionIteratorPtr(RegionIterator): @@ -1139,134 +1139,134 @@ class RegionIteratorPtr(RegionIterator): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = RegionIterator -_gdi.RegionIterator_swigregister(RegionIteratorPtr) +_gdi_.RegionIterator_swigregister(RegionIteratorPtr) #--------------------------------------------------------------------------- -FONTFAMILY_DEFAULT = _gdi.FONTFAMILY_DEFAULT -FONTFAMILY_DECORATIVE = _gdi.FONTFAMILY_DECORATIVE -FONTFAMILY_ROMAN = _gdi.FONTFAMILY_ROMAN -FONTFAMILY_SCRIPT = _gdi.FONTFAMILY_SCRIPT -FONTFAMILY_SWISS = _gdi.FONTFAMILY_SWISS -FONTFAMILY_MODERN = _gdi.FONTFAMILY_MODERN -FONTFAMILY_TELETYPE = _gdi.FONTFAMILY_TELETYPE -FONTFAMILY_MAX = _gdi.FONTFAMILY_MAX -FONTFAMILY_UNKNOWN = _gdi.FONTFAMILY_UNKNOWN -FONTSTYLE_NORMAL = _gdi.FONTSTYLE_NORMAL -FONTSTYLE_ITALIC = _gdi.FONTSTYLE_ITALIC -FONTSTYLE_SLANT = _gdi.FONTSTYLE_SLANT -FONTSTYLE_MAX = _gdi.FONTSTYLE_MAX -FONTWEIGHT_NORMAL = _gdi.FONTWEIGHT_NORMAL -FONTWEIGHT_LIGHT = _gdi.FONTWEIGHT_LIGHT -FONTWEIGHT_BOLD = _gdi.FONTWEIGHT_BOLD -FONTWEIGHT_MAX = _gdi.FONTWEIGHT_MAX -FONTFLAG_DEFAULT = _gdi.FONTFLAG_DEFAULT -FONTFLAG_ITALIC = _gdi.FONTFLAG_ITALIC -FONTFLAG_SLANT = _gdi.FONTFLAG_SLANT -FONTFLAG_LIGHT = _gdi.FONTFLAG_LIGHT -FONTFLAG_BOLD = _gdi.FONTFLAG_BOLD -FONTFLAG_ANTIALIASED = _gdi.FONTFLAG_ANTIALIASED -FONTFLAG_NOT_ANTIALIASED = _gdi.FONTFLAG_NOT_ANTIALIASED -FONTFLAG_UNDERLINED = _gdi.FONTFLAG_UNDERLINED -FONTFLAG_STRIKETHROUGH = _gdi.FONTFLAG_STRIKETHROUGH -FONTFLAG_MASK = _gdi.FONTFLAG_MASK -FONTENCODING_SYSTEM = _gdi.FONTENCODING_SYSTEM -FONTENCODING_DEFAULT = _gdi.FONTENCODING_DEFAULT -FONTENCODING_ISO8859_1 = _gdi.FONTENCODING_ISO8859_1 -FONTENCODING_ISO8859_2 = _gdi.FONTENCODING_ISO8859_2 -FONTENCODING_ISO8859_3 = _gdi.FONTENCODING_ISO8859_3 -FONTENCODING_ISO8859_4 = _gdi.FONTENCODING_ISO8859_4 -FONTENCODING_ISO8859_5 = _gdi.FONTENCODING_ISO8859_5 -FONTENCODING_ISO8859_6 = _gdi.FONTENCODING_ISO8859_6 -FONTENCODING_ISO8859_7 = _gdi.FONTENCODING_ISO8859_7 -FONTENCODING_ISO8859_8 = _gdi.FONTENCODING_ISO8859_8 -FONTENCODING_ISO8859_9 = _gdi.FONTENCODING_ISO8859_9 -FONTENCODING_ISO8859_10 = _gdi.FONTENCODING_ISO8859_10 -FONTENCODING_ISO8859_11 = _gdi.FONTENCODING_ISO8859_11 -FONTENCODING_ISO8859_12 = _gdi.FONTENCODING_ISO8859_12 -FONTENCODING_ISO8859_13 = _gdi.FONTENCODING_ISO8859_13 -FONTENCODING_ISO8859_14 = _gdi.FONTENCODING_ISO8859_14 -FONTENCODING_ISO8859_15 = _gdi.FONTENCODING_ISO8859_15 -FONTENCODING_ISO8859_MAX = _gdi.FONTENCODING_ISO8859_MAX -FONTENCODING_KOI8 = _gdi.FONTENCODING_KOI8 -FONTENCODING_KOI8_U = _gdi.FONTENCODING_KOI8_U -FONTENCODING_ALTERNATIVE = _gdi.FONTENCODING_ALTERNATIVE -FONTENCODING_BULGARIAN = _gdi.FONTENCODING_BULGARIAN -FONTENCODING_CP437 = _gdi.FONTENCODING_CP437 -FONTENCODING_CP850 = _gdi.FONTENCODING_CP850 -FONTENCODING_CP852 = _gdi.FONTENCODING_CP852 -FONTENCODING_CP855 = _gdi.FONTENCODING_CP855 -FONTENCODING_CP866 = _gdi.FONTENCODING_CP866 -FONTENCODING_CP874 = _gdi.FONTENCODING_CP874 -FONTENCODING_CP932 = _gdi.FONTENCODING_CP932 -FONTENCODING_CP936 = _gdi.FONTENCODING_CP936 -FONTENCODING_CP949 = _gdi.FONTENCODING_CP949 -FONTENCODING_CP950 = _gdi.FONTENCODING_CP950 -FONTENCODING_CP1250 = _gdi.FONTENCODING_CP1250 -FONTENCODING_CP1251 = _gdi.FONTENCODING_CP1251 -FONTENCODING_CP1252 = _gdi.FONTENCODING_CP1252 -FONTENCODING_CP1253 = _gdi.FONTENCODING_CP1253 -FONTENCODING_CP1254 = _gdi.FONTENCODING_CP1254 -FONTENCODING_CP1255 = _gdi.FONTENCODING_CP1255 -FONTENCODING_CP1256 = _gdi.FONTENCODING_CP1256 -FONTENCODING_CP1257 = _gdi.FONTENCODING_CP1257 -FONTENCODING_CP12_MAX = _gdi.FONTENCODING_CP12_MAX -FONTENCODING_UTF7 = _gdi.FONTENCODING_UTF7 -FONTENCODING_UTF8 = _gdi.FONTENCODING_UTF8 -FONTENCODING_EUC_JP = _gdi.FONTENCODING_EUC_JP -FONTENCODING_UTF16BE = _gdi.FONTENCODING_UTF16BE -FONTENCODING_UTF16LE = _gdi.FONTENCODING_UTF16LE -FONTENCODING_UTF32BE = _gdi.FONTENCODING_UTF32BE -FONTENCODING_UTF32LE = _gdi.FONTENCODING_UTF32LE -FONTENCODING_MACROMAN = _gdi.FONTENCODING_MACROMAN -FONTENCODING_MACJAPANESE = _gdi.FONTENCODING_MACJAPANESE -FONTENCODING_MACCHINESETRAD = _gdi.FONTENCODING_MACCHINESETRAD -FONTENCODING_MACKOREAN = _gdi.FONTENCODING_MACKOREAN -FONTENCODING_MACARABIC = _gdi.FONTENCODING_MACARABIC -FONTENCODING_MACHEBREW = _gdi.FONTENCODING_MACHEBREW -FONTENCODING_MACGREEK = _gdi.FONTENCODING_MACGREEK -FONTENCODING_MACCYRILLIC = _gdi.FONTENCODING_MACCYRILLIC -FONTENCODING_MACDEVANAGARI = _gdi.FONTENCODING_MACDEVANAGARI -FONTENCODING_MACGURMUKHI = _gdi.FONTENCODING_MACGURMUKHI -FONTENCODING_MACGUJARATI = _gdi.FONTENCODING_MACGUJARATI -FONTENCODING_MACORIYA = _gdi.FONTENCODING_MACORIYA -FONTENCODING_MACBENGALI = _gdi.FONTENCODING_MACBENGALI -FONTENCODING_MACTAMIL = _gdi.FONTENCODING_MACTAMIL -FONTENCODING_MACTELUGU = _gdi.FONTENCODING_MACTELUGU -FONTENCODING_MACKANNADA = _gdi.FONTENCODING_MACKANNADA -FONTENCODING_MACMALAJALAM = _gdi.FONTENCODING_MACMALAJALAM -FONTENCODING_MACSINHALESE = _gdi.FONTENCODING_MACSINHALESE -FONTENCODING_MACBURMESE = _gdi.FONTENCODING_MACBURMESE -FONTENCODING_MACKHMER = _gdi.FONTENCODING_MACKHMER -FONTENCODING_MACTHAI = _gdi.FONTENCODING_MACTHAI -FONTENCODING_MACLAOTIAN = _gdi.FONTENCODING_MACLAOTIAN -FONTENCODING_MACGEORGIAN = _gdi.FONTENCODING_MACGEORGIAN -FONTENCODING_MACARMENIAN = _gdi.FONTENCODING_MACARMENIAN -FONTENCODING_MACCHINESESIMP = _gdi.FONTENCODING_MACCHINESESIMP -FONTENCODING_MACTIBETAN = _gdi.FONTENCODING_MACTIBETAN -FONTENCODING_MACMONGOLIAN = _gdi.FONTENCODING_MACMONGOLIAN -FONTENCODING_MACETHIOPIC = _gdi.FONTENCODING_MACETHIOPIC -FONTENCODING_MACCENTRALEUR = _gdi.FONTENCODING_MACCENTRALEUR -FONTENCODING_MACVIATNAMESE = _gdi.FONTENCODING_MACVIATNAMESE -FONTENCODING_MACARABICEXT = _gdi.FONTENCODING_MACARABICEXT -FONTENCODING_MACSYMBOL = _gdi.FONTENCODING_MACSYMBOL -FONTENCODING_MACDINGBATS = _gdi.FONTENCODING_MACDINGBATS -FONTENCODING_MACTURKISH = _gdi.FONTENCODING_MACTURKISH -FONTENCODING_MACCROATIAN = _gdi.FONTENCODING_MACCROATIAN -FONTENCODING_MACICELANDIC = _gdi.FONTENCODING_MACICELANDIC -FONTENCODING_MACROMANIAN = _gdi.FONTENCODING_MACROMANIAN -FONTENCODING_MACCELTIC = _gdi.FONTENCODING_MACCELTIC -FONTENCODING_MACGAELIC = _gdi.FONTENCODING_MACGAELIC -FONTENCODING_MACKEYBOARD = _gdi.FONTENCODING_MACKEYBOARD -FONTENCODING_MACMIN = _gdi.FONTENCODING_MACMIN -FONTENCODING_MACMAX = _gdi.FONTENCODING_MACMAX -FONTENCODING_MAX = _gdi.FONTENCODING_MAX -FONTENCODING_UTF16 = _gdi.FONTENCODING_UTF16 -FONTENCODING_UTF32 = _gdi.FONTENCODING_UTF32 -FONTENCODING_UNICODE = _gdi.FONTENCODING_UNICODE -FONTENCODING_GB2312 = _gdi.FONTENCODING_GB2312 -FONTENCODING_BIG5 = _gdi.FONTENCODING_BIG5 -FONTENCODING_SHIFT_JIS = _gdi.FONTENCODING_SHIFT_JIS +FONTFAMILY_DEFAULT = _gdi_.FONTFAMILY_DEFAULT +FONTFAMILY_DECORATIVE = _gdi_.FONTFAMILY_DECORATIVE +FONTFAMILY_ROMAN = _gdi_.FONTFAMILY_ROMAN +FONTFAMILY_SCRIPT = _gdi_.FONTFAMILY_SCRIPT +FONTFAMILY_SWISS = _gdi_.FONTFAMILY_SWISS +FONTFAMILY_MODERN = _gdi_.FONTFAMILY_MODERN +FONTFAMILY_TELETYPE = _gdi_.FONTFAMILY_TELETYPE +FONTFAMILY_MAX = _gdi_.FONTFAMILY_MAX +FONTFAMILY_UNKNOWN = _gdi_.FONTFAMILY_UNKNOWN +FONTSTYLE_NORMAL = _gdi_.FONTSTYLE_NORMAL +FONTSTYLE_ITALIC = _gdi_.FONTSTYLE_ITALIC +FONTSTYLE_SLANT = _gdi_.FONTSTYLE_SLANT +FONTSTYLE_MAX = _gdi_.FONTSTYLE_MAX +FONTWEIGHT_NORMAL = _gdi_.FONTWEIGHT_NORMAL +FONTWEIGHT_LIGHT = _gdi_.FONTWEIGHT_LIGHT +FONTWEIGHT_BOLD = _gdi_.FONTWEIGHT_BOLD +FONTWEIGHT_MAX = _gdi_.FONTWEIGHT_MAX +FONTFLAG_DEFAULT = _gdi_.FONTFLAG_DEFAULT +FONTFLAG_ITALIC = _gdi_.FONTFLAG_ITALIC +FONTFLAG_SLANT = _gdi_.FONTFLAG_SLANT +FONTFLAG_LIGHT = _gdi_.FONTFLAG_LIGHT +FONTFLAG_BOLD = _gdi_.FONTFLAG_BOLD +FONTFLAG_ANTIALIASED = _gdi_.FONTFLAG_ANTIALIASED +FONTFLAG_NOT_ANTIALIASED = _gdi_.FONTFLAG_NOT_ANTIALIASED +FONTFLAG_UNDERLINED = _gdi_.FONTFLAG_UNDERLINED +FONTFLAG_STRIKETHROUGH = _gdi_.FONTFLAG_STRIKETHROUGH +FONTFLAG_MASK = _gdi_.FONTFLAG_MASK +FONTENCODING_SYSTEM = _gdi_.FONTENCODING_SYSTEM +FONTENCODING_DEFAULT = _gdi_.FONTENCODING_DEFAULT +FONTENCODING_ISO8859_1 = _gdi_.FONTENCODING_ISO8859_1 +FONTENCODING_ISO8859_2 = _gdi_.FONTENCODING_ISO8859_2 +FONTENCODING_ISO8859_3 = _gdi_.FONTENCODING_ISO8859_3 +FONTENCODING_ISO8859_4 = _gdi_.FONTENCODING_ISO8859_4 +FONTENCODING_ISO8859_5 = _gdi_.FONTENCODING_ISO8859_5 +FONTENCODING_ISO8859_6 = _gdi_.FONTENCODING_ISO8859_6 +FONTENCODING_ISO8859_7 = _gdi_.FONTENCODING_ISO8859_7 +FONTENCODING_ISO8859_8 = _gdi_.FONTENCODING_ISO8859_8 +FONTENCODING_ISO8859_9 = _gdi_.FONTENCODING_ISO8859_9 +FONTENCODING_ISO8859_10 = _gdi_.FONTENCODING_ISO8859_10 +FONTENCODING_ISO8859_11 = _gdi_.FONTENCODING_ISO8859_11 +FONTENCODING_ISO8859_12 = _gdi_.FONTENCODING_ISO8859_12 +FONTENCODING_ISO8859_13 = _gdi_.FONTENCODING_ISO8859_13 +FONTENCODING_ISO8859_14 = _gdi_.FONTENCODING_ISO8859_14 +FONTENCODING_ISO8859_15 = _gdi_.FONTENCODING_ISO8859_15 +FONTENCODING_ISO8859_MAX = _gdi_.FONTENCODING_ISO8859_MAX +FONTENCODING_KOI8 = _gdi_.FONTENCODING_KOI8 +FONTENCODING_KOI8_U = _gdi_.FONTENCODING_KOI8_U +FONTENCODING_ALTERNATIVE = _gdi_.FONTENCODING_ALTERNATIVE +FONTENCODING_BULGARIAN = _gdi_.FONTENCODING_BULGARIAN +FONTENCODING_CP437 = _gdi_.FONTENCODING_CP437 +FONTENCODING_CP850 = _gdi_.FONTENCODING_CP850 +FONTENCODING_CP852 = _gdi_.FONTENCODING_CP852 +FONTENCODING_CP855 = _gdi_.FONTENCODING_CP855 +FONTENCODING_CP866 = _gdi_.FONTENCODING_CP866 +FONTENCODING_CP874 = _gdi_.FONTENCODING_CP874 +FONTENCODING_CP932 = _gdi_.FONTENCODING_CP932 +FONTENCODING_CP936 = _gdi_.FONTENCODING_CP936 +FONTENCODING_CP949 = _gdi_.FONTENCODING_CP949 +FONTENCODING_CP950 = _gdi_.FONTENCODING_CP950 +FONTENCODING_CP1250 = _gdi_.FONTENCODING_CP1250 +FONTENCODING_CP1251 = _gdi_.FONTENCODING_CP1251 +FONTENCODING_CP1252 = _gdi_.FONTENCODING_CP1252 +FONTENCODING_CP1253 = _gdi_.FONTENCODING_CP1253 +FONTENCODING_CP1254 = _gdi_.FONTENCODING_CP1254 +FONTENCODING_CP1255 = _gdi_.FONTENCODING_CP1255 +FONTENCODING_CP1256 = _gdi_.FONTENCODING_CP1256 +FONTENCODING_CP1257 = _gdi_.FONTENCODING_CP1257 +FONTENCODING_CP12_MAX = _gdi_.FONTENCODING_CP12_MAX +FONTENCODING_UTF7 = _gdi_.FONTENCODING_UTF7 +FONTENCODING_UTF8 = _gdi_.FONTENCODING_UTF8 +FONTENCODING_EUC_JP = _gdi_.FONTENCODING_EUC_JP +FONTENCODING_UTF16BE = _gdi_.FONTENCODING_UTF16BE +FONTENCODING_UTF16LE = _gdi_.FONTENCODING_UTF16LE +FONTENCODING_UTF32BE = _gdi_.FONTENCODING_UTF32BE +FONTENCODING_UTF32LE = _gdi_.FONTENCODING_UTF32LE +FONTENCODING_MACROMAN = _gdi_.FONTENCODING_MACROMAN +FONTENCODING_MACJAPANESE = _gdi_.FONTENCODING_MACJAPANESE +FONTENCODING_MACCHINESETRAD = _gdi_.FONTENCODING_MACCHINESETRAD +FONTENCODING_MACKOREAN = _gdi_.FONTENCODING_MACKOREAN +FONTENCODING_MACARABIC = _gdi_.FONTENCODING_MACARABIC +FONTENCODING_MACHEBREW = _gdi_.FONTENCODING_MACHEBREW +FONTENCODING_MACGREEK = _gdi_.FONTENCODING_MACGREEK +FONTENCODING_MACCYRILLIC = _gdi_.FONTENCODING_MACCYRILLIC +FONTENCODING_MACDEVANAGARI = _gdi_.FONTENCODING_MACDEVANAGARI +FONTENCODING_MACGURMUKHI = _gdi_.FONTENCODING_MACGURMUKHI +FONTENCODING_MACGUJARATI = _gdi_.FONTENCODING_MACGUJARATI +FONTENCODING_MACORIYA = _gdi_.FONTENCODING_MACORIYA +FONTENCODING_MACBENGALI = _gdi_.FONTENCODING_MACBENGALI +FONTENCODING_MACTAMIL = _gdi_.FONTENCODING_MACTAMIL +FONTENCODING_MACTELUGU = _gdi_.FONTENCODING_MACTELUGU +FONTENCODING_MACKANNADA = _gdi_.FONTENCODING_MACKANNADA +FONTENCODING_MACMALAJALAM = _gdi_.FONTENCODING_MACMALAJALAM +FONTENCODING_MACSINHALESE = _gdi_.FONTENCODING_MACSINHALESE +FONTENCODING_MACBURMESE = _gdi_.FONTENCODING_MACBURMESE +FONTENCODING_MACKHMER = _gdi_.FONTENCODING_MACKHMER +FONTENCODING_MACTHAI = _gdi_.FONTENCODING_MACTHAI +FONTENCODING_MACLAOTIAN = _gdi_.FONTENCODING_MACLAOTIAN +FONTENCODING_MACGEORGIAN = _gdi_.FONTENCODING_MACGEORGIAN +FONTENCODING_MACARMENIAN = _gdi_.FONTENCODING_MACARMENIAN +FONTENCODING_MACCHINESESIMP = _gdi_.FONTENCODING_MACCHINESESIMP +FONTENCODING_MACTIBETAN = _gdi_.FONTENCODING_MACTIBETAN +FONTENCODING_MACMONGOLIAN = _gdi_.FONTENCODING_MACMONGOLIAN +FONTENCODING_MACETHIOPIC = _gdi_.FONTENCODING_MACETHIOPIC +FONTENCODING_MACCENTRALEUR = _gdi_.FONTENCODING_MACCENTRALEUR +FONTENCODING_MACVIATNAMESE = _gdi_.FONTENCODING_MACVIATNAMESE +FONTENCODING_MACARABICEXT = _gdi_.FONTENCODING_MACARABICEXT +FONTENCODING_MACSYMBOL = _gdi_.FONTENCODING_MACSYMBOL +FONTENCODING_MACDINGBATS = _gdi_.FONTENCODING_MACDINGBATS +FONTENCODING_MACTURKISH = _gdi_.FONTENCODING_MACTURKISH +FONTENCODING_MACCROATIAN = _gdi_.FONTENCODING_MACCROATIAN +FONTENCODING_MACICELANDIC = _gdi_.FONTENCODING_MACICELANDIC +FONTENCODING_MACROMANIAN = _gdi_.FONTENCODING_MACROMANIAN +FONTENCODING_MACCELTIC = _gdi_.FONTENCODING_MACCELTIC +FONTENCODING_MACGAELIC = _gdi_.FONTENCODING_MACGAELIC +FONTENCODING_MACKEYBOARD = _gdi_.FONTENCODING_MACKEYBOARD +FONTENCODING_MACMIN = _gdi_.FONTENCODING_MACMIN +FONTENCODING_MACMAX = _gdi_.FONTENCODING_MACMAX +FONTENCODING_MAX = _gdi_.FONTENCODING_MAX +FONTENCODING_UTF16 = _gdi_.FONTENCODING_UTF16 +FONTENCODING_UTF32 = _gdi_.FONTENCODING_UTF32 +FONTENCODING_UNICODE = _gdi_.FONTENCODING_UNICODE +FONTENCODING_GB2312 = _gdi_.FONTENCODING_GB2312 +FONTENCODING_BIG5 = _gdi_.FONTENCODING_BIG5 +FONTENCODING_SHIFT_JIS = _gdi_.FONTENCODING_SHIFT_JIS #--------------------------------------------------------------------------- class NativeFontInfo(object): @@ -1274,11 +1274,11 @@ class NativeFontInfo(object): return "<%s.%s; proxy of C++ wxNativeFontInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> NativeFontInfo""" - newobj = _gdi.new_NativeFontInfo(*args, **kwargs) + newobj = _gdi_.new_NativeFontInfo(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_gdi.delete_NativeFontInfo): + def __del__(self, destroy=_gdi_.delete_NativeFontInfo): """__del__(self)""" try: if self.thisown: destroy(self) @@ -1286,87 +1286,87 @@ class NativeFontInfo(object): def Init(*args, **kwargs): """Init(self)""" - return _gdi.NativeFontInfo_Init(*args, **kwargs) + return _gdi_.NativeFontInfo_Init(*args, **kwargs) def InitFromFont(*args, **kwargs): """InitFromFont(self, Font font)""" - return _gdi.NativeFontInfo_InitFromFont(*args, **kwargs) + return _gdi_.NativeFontInfo_InitFromFont(*args, **kwargs) def GetPointSize(*args, **kwargs): """GetPointSize(self) -> int""" - return _gdi.NativeFontInfo_GetPointSize(*args, **kwargs) + return _gdi_.NativeFontInfo_GetPointSize(*args, **kwargs) def GetStyle(*args, **kwargs): """GetStyle(self) -> int""" - return _gdi.NativeFontInfo_GetStyle(*args, **kwargs) + return _gdi_.NativeFontInfo_GetStyle(*args, **kwargs) def GetWeight(*args, **kwargs): """GetWeight(self) -> int""" - return _gdi.NativeFontInfo_GetWeight(*args, **kwargs) + return _gdi_.NativeFontInfo_GetWeight(*args, **kwargs) def GetUnderlined(*args, **kwargs): """GetUnderlined(self) -> bool""" - return _gdi.NativeFontInfo_GetUnderlined(*args, **kwargs) + return _gdi_.NativeFontInfo_GetUnderlined(*args, **kwargs) def GetFaceName(*args, **kwargs): """GetFaceName(self) -> String""" - return _gdi.NativeFontInfo_GetFaceName(*args, **kwargs) + return _gdi_.NativeFontInfo_GetFaceName(*args, **kwargs) def GetFamily(*args, **kwargs): """GetFamily(self) -> int""" - return _gdi.NativeFontInfo_GetFamily(*args, **kwargs) + return _gdi_.NativeFontInfo_GetFamily(*args, **kwargs) def GetEncoding(*args, **kwargs): """GetEncoding(self) -> int""" - return _gdi.NativeFontInfo_GetEncoding(*args, **kwargs) + return _gdi_.NativeFontInfo_GetEncoding(*args, **kwargs) def SetPointSize(*args, **kwargs): """SetPointSize(self, int pointsize)""" - return _gdi.NativeFontInfo_SetPointSize(*args, **kwargs) + return _gdi_.NativeFontInfo_SetPointSize(*args, **kwargs) def SetStyle(*args, **kwargs): """SetStyle(self, int style)""" - return _gdi.NativeFontInfo_SetStyle(*args, **kwargs) + return _gdi_.NativeFontInfo_SetStyle(*args, **kwargs) def SetWeight(*args, **kwargs): """SetWeight(self, int weight)""" - return _gdi.NativeFontInfo_SetWeight(*args, **kwargs) + return _gdi_.NativeFontInfo_SetWeight(*args, **kwargs) def SetUnderlined(*args, **kwargs): """SetUnderlined(self, bool underlined)""" - return _gdi.NativeFontInfo_SetUnderlined(*args, **kwargs) + return _gdi_.NativeFontInfo_SetUnderlined(*args, **kwargs) def SetFaceName(*args, **kwargs): """SetFaceName(self, String facename)""" - return _gdi.NativeFontInfo_SetFaceName(*args, **kwargs) + return _gdi_.NativeFontInfo_SetFaceName(*args, **kwargs) def SetFamily(*args, **kwargs): """SetFamily(self, int family)""" - return _gdi.NativeFontInfo_SetFamily(*args, **kwargs) + return _gdi_.NativeFontInfo_SetFamily(*args, **kwargs) def SetEncoding(*args, **kwargs): """SetEncoding(self, int encoding)""" - return _gdi.NativeFontInfo_SetEncoding(*args, **kwargs) + return _gdi_.NativeFontInfo_SetEncoding(*args, **kwargs) def FromString(*args, **kwargs): """FromString(self, String s) -> bool""" - return _gdi.NativeFontInfo_FromString(*args, **kwargs) + return _gdi_.NativeFontInfo_FromString(*args, **kwargs) def ToString(*args, **kwargs): """ToString(self) -> String""" - return _gdi.NativeFontInfo_ToString(*args, **kwargs) + return _gdi_.NativeFontInfo_ToString(*args, **kwargs) def __str__(*args, **kwargs): """__str__(self) -> String""" - return _gdi.NativeFontInfo___str__(*args, **kwargs) + return _gdi_.NativeFontInfo___str__(*args, **kwargs) def FromUserString(*args, **kwargs): """FromUserString(self, String s) -> bool""" - return _gdi.NativeFontInfo_FromUserString(*args, **kwargs) + return _gdi_.NativeFontInfo_FromUserString(*args, **kwargs) def ToUserString(*args, **kwargs): """ToUserString(self) -> String""" - return _gdi.NativeFontInfo_ToUserString(*args, **kwargs) + return _gdi_.NativeFontInfo_ToUserString(*args, **kwargs) class NativeFontInfoPtr(NativeFontInfo): @@ -1374,20 +1374,20 @@ class NativeFontInfoPtr(NativeFontInfo): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = NativeFontInfo -_gdi.NativeFontInfo_swigregister(NativeFontInfoPtr) +_gdi_.NativeFontInfo_swigregister(NativeFontInfoPtr) class NativeEncodingInfo(object): def __repr__(self): return "<%s.%s; proxy of C++ wxNativeEncodingInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - facename = property(_gdi.NativeEncodingInfo_facename_get, _gdi.NativeEncodingInfo_facename_set) - encoding = property(_gdi.NativeEncodingInfo_encoding_get, _gdi.NativeEncodingInfo_encoding_set) + facename = property(_gdi_.NativeEncodingInfo_facename_get, _gdi_.NativeEncodingInfo_facename_set) + encoding = property(_gdi_.NativeEncodingInfo_encoding_get, _gdi_.NativeEncodingInfo_encoding_set) def __init__(self, *args, **kwargs): """__init__(self) -> NativeEncodingInfo""" - newobj = _gdi.new_NativeEncodingInfo(*args, **kwargs) + newobj = _gdi_.new_NativeEncodingInfo(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_gdi.delete_NativeEncodingInfo): + def __del__(self, destroy=_gdi_.delete_NativeEncodingInfo): """__del__(self)""" try: if self.thisown: destroy(self) @@ -1395,11 +1395,11 @@ class NativeEncodingInfo(object): def FromString(*args, **kwargs): """FromString(self, String s) -> bool""" - return _gdi.NativeEncodingInfo_FromString(*args, **kwargs) + return _gdi_.NativeEncodingInfo_FromString(*args, **kwargs) def ToString(*args, **kwargs): """ToString(self) -> String""" - return _gdi.NativeEncodingInfo_ToString(*args, **kwargs) + return _gdi_.NativeEncodingInfo_ToString(*args, **kwargs) class NativeEncodingInfoPtr(NativeEncodingInfo): @@ -1407,16 +1407,16 @@ class NativeEncodingInfoPtr(NativeEncodingInfo): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = NativeEncodingInfo -_gdi.NativeEncodingInfo_swigregister(NativeEncodingInfoPtr) +_gdi_.NativeEncodingInfo_swigregister(NativeEncodingInfoPtr) def GetNativeFontEncoding(*args, **kwargs): """GetNativeFontEncoding(int encoding) -> NativeEncodingInfo""" - return _gdi.GetNativeFontEncoding(*args, **kwargs) + return _gdi_.GetNativeFontEncoding(*args, **kwargs) def TestFontEncoding(*args, **kwargs): """TestFontEncoding(NativeEncodingInfo info) -> bool""" - return _gdi.TestFontEncoding(*args, **kwargs) + return _gdi_.TestFontEncoding(*args, **kwargs) #--------------------------------------------------------------------------- class FontMapper(object): @@ -1424,11 +1424,11 @@ class FontMapper(object): return "<%s.%s; proxy of C++ wxFontMapper instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> FontMapper""" - newobj = _gdi.new_FontMapper(*args, **kwargs) + newobj = _gdi_.new_FontMapper(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_gdi.delete_FontMapper): + def __del__(self, destroy=_gdi_.delete_FontMapper): """__del__(self)""" try: if self.thisown: destroy(self) @@ -1436,71 +1436,71 @@ class FontMapper(object): def Get(*args, **kwargs): """FontMapper.Get() -> FontMapper""" - return _gdi.FontMapper_Get(*args, **kwargs) + return _gdi_.FontMapper_Get(*args, **kwargs) Get = staticmethod(Get) def Set(*args, **kwargs): """FontMapper.Set(FontMapper mapper) -> FontMapper""" - return _gdi.FontMapper_Set(*args, **kwargs) + return _gdi_.FontMapper_Set(*args, **kwargs) Set = staticmethod(Set) def CharsetToEncoding(*args, **kwargs): """CharsetToEncoding(self, String charset, bool interactive=True) -> int""" - return _gdi.FontMapper_CharsetToEncoding(*args, **kwargs) + return _gdi_.FontMapper_CharsetToEncoding(*args, **kwargs) def GetSupportedEncodingsCount(*args, **kwargs): """FontMapper.GetSupportedEncodingsCount() -> size_t""" - return _gdi.FontMapper_GetSupportedEncodingsCount(*args, **kwargs) + return _gdi_.FontMapper_GetSupportedEncodingsCount(*args, **kwargs) GetSupportedEncodingsCount = staticmethod(GetSupportedEncodingsCount) def GetEncoding(*args, **kwargs): """FontMapper.GetEncoding(size_t n) -> int""" - return _gdi.FontMapper_GetEncoding(*args, **kwargs) + return _gdi_.FontMapper_GetEncoding(*args, **kwargs) GetEncoding = staticmethod(GetEncoding) def GetEncodingName(*args, **kwargs): """FontMapper.GetEncodingName(int encoding) -> String""" - return _gdi.FontMapper_GetEncodingName(*args, **kwargs) + return _gdi_.FontMapper_GetEncodingName(*args, **kwargs) GetEncodingName = staticmethod(GetEncodingName) def GetEncodingDescription(*args, **kwargs): """FontMapper.GetEncodingDescription(int encoding) -> String""" - return _gdi.FontMapper_GetEncodingDescription(*args, **kwargs) + return _gdi_.FontMapper_GetEncodingDescription(*args, **kwargs) GetEncodingDescription = staticmethod(GetEncodingDescription) def GetEncodingFromName(*args, **kwargs): """FontMapper.GetEncodingFromName(String name) -> int""" - return _gdi.FontMapper_GetEncodingFromName(*args, **kwargs) + return _gdi_.FontMapper_GetEncodingFromName(*args, **kwargs) GetEncodingFromName = staticmethod(GetEncodingFromName) def SetConfig(*args, **kwargs): """SetConfig(self, ConfigBase config)""" - return _gdi.FontMapper_SetConfig(*args, **kwargs) + return _gdi_.FontMapper_SetConfig(*args, **kwargs) def SetConfigPath(*args, **kwargs): """SetConfigPath(self, String prefix)""" - return _gdi.FontMapper_SetConfigPath(*args, **kwargs) + return _gdi_.FontMapper_SetConfigPath(*args, **kwargs) def GetDefaultConfigPath(*args, **kwargs): """FontMapper.GetDefaultConfigPath() -> String""" - return _gdi.FontMapper_GetDefaultConfigPath(*args, **kwargs) + return _gdi_.FontMapper_GetDefaultConfigPath(*args, **kwargs) GetDefaultConfigPath = staticmethod(GetDefaultConfigPath) def GetAltForEncoding(*args, **kwargs): """GetAltForEncoding(self, int encoding, String facename=EmptyString, bool interactive=True) -> PyObject""" - return _gdi.FontMapper_GetAltForEncoding(*args, **kwargs) + return _gdi_.FontMapper_GetAltForEncoding(*args, **kwargs) def IsEncodingAvailable(*args, **kwargs): """IsEncodingAvailable(self, int encoding, String facename=EmptyString) -> bool""" - return _gdi.FontMapper_IsEncodingAvailable(*args, **kwargs) + return _gdi_.FontMapper_IsEncodingAvailable(*args, **kwargs) def SetDialogParent(*args, **kwargs): """SetDialogParent(self, Window parent)""" - return _gdi.FontMapper_SetDialogParent(*args, **kwargs) + return _gdi_.FontMapper_SetDialogParent(*args, **kwargs) def SetDialogTitle(*args, **kwargs): """SetDialogTitle(self, String title)""" - return _gdi.FontMapper_SetDialogTitle(*args, **kwargs) + return _gdi_.FontMapper_SetDialogTitle(*args, **kwargs) class FontMapperPtr(FontMapper): @@ -1508,39 +1508,39 @@ class FontMapperPtr(FontMapper): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = FontMapper -_gdi.FontMapper_swigregister(FontMapperPtr) +_gdi_.FontMapper_swigregister(FontMapperPtr) def FontMapper_Get(*args, **kwargs): """FontMapper_Get() -> FontMapper""" - return _gdi.FontMapper_Get(*args, **kwargs) + return _gdi_.FontMapper_Get(*args, **kwargs) def FontMapper_Set(*args, **kwargs): """FontMapper_Set(FontMapper mapper) -> FontMapper""" - return _gdi.FontMapper_Set(*args, **kwargs) + return _gdi_.FontMapper_Set(*args, **kwargs) def FontMapper_GetSupportedEncodingsCount(*args, **kwargs): """FontMapper_GetSupportedEncodingsCount() -> size_t""" - return _gdi.FontMapper_GetSupportedEncodingsCount(*args, **kwargs) + return _gdi_.FontMapper_GetSupportedEncodingsCount(*args, **kwargs) def FontMapper_GetEncoding(*args, **kwargs): """FontMapper_GetEncoding(size_t n) -> int""" - return _gdi.FontMapper_GetEncoding(*args, **kwargs) + return _gdi_.FontMapper_GetEncoding(*args, **kwargs) def FontMapper_GetEncodingName(*args, **kwargs): """FontMapper_GetEncodingName(int encoding) -> String""" - return _gdi.FontMapper_GetEncodingName(*args, **kwargs) + return _gdi_.FontMapper_GetEncodingName(*args, **kwargs) def FontMapper_GetEncodingDescription(*args, **kwargs): """FontMapper_GetEncodingDescription(int encoding) -> String""" - return _gdi.FontMapper_GetEncodingDescription(*args, **kwargs) + return _gdi_.FontMapper_GetEncodingDescription(*args, **kwargs) def FontMapper_GetEncodingFromName(*args, **kwargs): """FontMapper_GetEncodingFromName(String name) -> int""" - return _gdi.FontMapper_GetEncodingFromName(*args, **kwargs) + return _gdi_.FontMapper_GetEncodingFromName(*args, **kwargs) def FontMapper_GetDefaultConfigPath(*args, **kwargs): """FontMapper_GetDefaultConfigPath() -> String""" - return _gdi.FontMapper_GetDefaultConfigPath(*args, **kwargs) + return _gdi_.FontMapper_GetDefaultConfigPath(*args, **kwargs) #--------------------------------------------------------------------------- @@ -1553,11 +1553,11 @@ class Font(GDIObject): String face=EmptyString, int encoding=FONTENCODING_DEFAULT) -> Font """ - newobj = _gdi.new_Font(*args, **kwargs) + newobj = _gdi_.new_Font(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_gdi.delete_Font): + def __del__(self, destroy=_gdi_.delete_Font): """__del__(self)""" try: if self.thisown: destroy(self) @@ -1565,129 +1565,129 @@ class Font(GDIObject): def Ok(*args, **kwargs): """Ok(self) -> bool""" - return _gdi.Font_Ok(*args, **kwargs) + return _gdi_.Font_Ok(*args, **kwargs) def __nonzero__(self): return self.Ok() def __eq__(*args, **kwargs): """__eq__(self, Font other) -> bool""" - return _gdi.Font___eq__(*args, **kwargs) + return _gdi_.Font___eq__(*args, **kwargs) def __ne__(*args, **kwargs): """__ne__(self, Font other) -> bool""" - return _gdi.Font___ne__(*args, **kwargs) + return _gdi_.Font___ne__(*args, **kwargs) def GetPointSize(*args, **kwargs): """GetPointSize(self) -> int""" - return _gdi.Font_GetPointSize(*args, **kwargs) + return _gdi_.Font_GetPointSize(*args, **kwargs) def GetFamily(*args, **kwargs): """GetFamily(self) -> int""" - return _gdi.Font_GetFamily(*args, **kwargs) + return _gdi_.Font_GetFamily(*args, **kwargs) def GetStyle(*args, **kwargs): """GetStyle(self) -> int""" - return _gdi.Font_GetStyle(*args, **kwargs) + return _gdi_.Font_GetStyle(*args, **kwargs) def GetWeight(*args, **kwargs): """GetWeight(self) -> int""" - return _gdi.Font_GetWeight(*args, **kwargs) + return _gdi_.Font_GetWeight(*args, **kwargs) def GetUnderlined(*args, **kwargs): """GetUnderlined(self) -> bool""" - return _gdi.Font_GetUnderlined(*args, **kwargs) + return _gdi_.Font_GetUnderlined(*args, **kwargs) def GetFaceName(*args, **kwargs): """GetFaceName(self) -> String""" - return _gdi.Font_GetFaceName(*args, **kwargs) + return _gdi_.Font_GetFaceName(*args, **kwargs) def GetEncoding(*args, **kwargs): """GetEncoding(self) -> int""" - return _gdi.Font_GetEncoding(*args, **kwargs) + return _gdi_.Font_GetEncoding(*args, **kwargs) def GetNativeFontInfo(*args, **kwargs): """GetNativeFontInfo(self) -> NativeFontInfo""" - return _gdi.Font_GetNativeFontInfo(*args, **kwargs) + return _gdi_.Font_GetNativeFontInfo(*args, **kwargs) def IsFixedWidth(*args, **kwargs): """IsFixedWidth(self) -> bool""" - return _gdi.Font_IsFixedWidth(*args, **kwargs) + return _gdi_.Font_IsFixedWidth(*args, **kwargs) def GetNativeFontInfoDesc(*args, **kwargs): """GetNativeFontInfoDesc(self) -> String""" - return _gdi.Font_GetNativeFontInfoDesc(*args, **kwargs) + return _gdi_.Font_GetNativeFontInfoDesc(*args, **kwargs) def GetNativeFontInfoUserDesc(*args, **kwargs): """GetNativeFontInfoUserDesc(self) -> String""" - return _gdi.Font_GetNativeFontInfoUserDesc(*args, **kwargs) + return _gdi_.Font_GetNativeFontInfoUserDesc(*args, **kwargs) def SetPointSize(*args, **kwargs): """SetPointSize(self, int pointSize)""" - return _gdi.Font_SetPointSize(*args, **kwargs) + return _gdi_.Font_SetPointSize(*args, **kwargs) def SetFamily(*args, **kwargs): """SetFamily(self, int family)""" - return _gdi.Font_SetFamily(*args, **kwargs) + return _gdi_.Font_SetFamily(*args, **kwargs) def SetStyle(*args, **kwargs): """SetStyle(self, int style)""" - return _gdi.Font_SetStyle(*args, **kwargs) + return _gdi_.Font_SetStyle(*args, **kwargs) def SetWeight(*args, **kwargs): """SetWeight(self, int weight)""" - return _gdi.Font_SetWeight(*args, **kwargs) + return _gdi_.Font_SetWeight(*args, **kwargs) def SetFaceName(*args, **kwargs): """SetFaceName(self, String faceName)""" - return _gdi.Font_SetFaceName(*args, **kwargs) + return _gdi_.Font_SetFaceName(*args, **kwargs) def SetUnderlined(*args, **kwargs): """SetUnderlined(self, bool underlined)""" - return _gdi.Font_SetUnderlined(*args, **kwargs) + return _gdi_.Font_SetUnderlined(*args, **kwargs) def SetEncoding(*args, **kwargs): """SetEncoding(self, int encoding)""" - return _gdi.Font_SetEncoding(*args, **kwargs) + return _gdi_.Font_SetEncoding(*args, **kwargs) def SetNativeFontInfo(*args, **kwargs): """SetNativeFontInfo(self, NativeFontInfo info)""" - return _gdi.Font_SetNativeFontInfo(*args, **kwargs) + return _gdi_.Font_SetNativeFontInfo(*args, **kwargs) def SetNativeFontInfoFromString(*args, **kwargs): """SetNativeFontInfoFromString(self, String info)""" - return _gdi.Font_SetNativeFontInfoFromString(*args, **kwargs) + return _gdi_.Font_SetNativeFontInfoFromString(*args, **kwargs) def SetNativeFontInfoUserDesc(*args, **kwargs): """SetNativeFontInfoUserDesc(self, String info)""" - return _gdi.Font_SetNativeFontInfoUserDesc(*args, **kwargs) + return _gdi_.Font_SetNativeFontInfoUserDesc(*args, **kwargs) def GetFamilyString(*args, **kwargs): """GetFamilyString(self) -> String""" - return _gdi.Font_GetFamilyString(*args, **kwargs) + return _gdi_.Font_GetFamilyString(*args, **kwargs) def GetStyleString(*args, **kwargs): """GetStyleString(self) -> String""" - return _gdi.Font_GetStyleString(*args, **kwargs) + return _gdi_.Font_GetStyleString(*args, **kwargs) def GetWeightString(*args, **kwargs): """GetWeightString(self) -> String""" - return _gdi.Font_GetWeightString(*args, **kwargs) + return _gdi_.Font_GetWeightString(*args, **kwargs) def SetNoAntiAliasing(*args, **kwargs): """SetNoAntiAliasing(self, bool no=True)""" - return _gdi.Font_SetNoAntiAliasing(*args, **kwargs) + return _gdi_.Font_SetNoAntiAliasing(*args, **kwargs) def GetNoAntiAliasing(*args, **kwargs): """GetNoAntiAliasing(self) -> bool""" - return _gdi.Font_GetNoAntiAliasing(*args, **kwargs) + return _gdi_.Font_GetNoAntiAliasing(*args, **kwargs) def GetDefaultEncoding(*args, **kwargs): """Font.GetDefaultEncoding() -> int""" - return _gdi.Font_GetDefaultEncoding(*args, **kwargs) + return _gdi_.Font_GetDefaultEncoding(*args, **kwargs) GetDefaultEncoding = staticmethod(GetDefaultEncoding) def SetDefaultEncoding(*args, **kwargs): """Font.SetDefaultEncoding(int encoding)""" - return _gdi.Font_SetDefaultEncoding(*args, **kwargs) + return _gdi_.Font_SetDefaultEncoding(*args, **kwargs) SetDefaultEncoding = staticmethod(SetDefaultEncoding) @@ -1696,17 +1696,17 @@ class FontPtr(Font): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = Font -_gdi.Font_swigregister(FontPtr) +_gdi_.Font_swigregister(FontPtr) def FontFromNativeInfo(*args, **kwargs): """FontFromNativeInfo(NativeFontInfo info) -> Font""" - val = _gdi.new_FontFromNativeInfo(*args, **kwargs) + val = _gdi_.new_FontFromNativeInfo(*args, **kwargs) val.thisown = 1 return val def FontFromNativeInfoString(*args, **kwargs): """FontFromNativeInfoString(String info) -> Font""" - val = _gdi.new_FontFromNativeInfoString(*args, **kwargs) + val = _gdi_.new_FontFromNativeInfoString(*args, **kwargs) val.thisown = 1 return val @@ -1715,17 +1715,17 @@ def Font2(*args, **kwargs): Font2(int pointSize, int family, int flags=FONTFLAG_DEFAULT, String face=EmptyString, int encoding=FONTENCODING_DEFAULT) -> Font """ - val = _gdi.new_Font2(*args, **kwargs) + val = _gdi_.new_Font2(*args, **kwargs) val.thisown = 1 return val def Font_GetDefaultEncoding(*args, **kwargs): """Font_GetDefaultEncoding() -> int""" - return _gdi.Font_GetDefaultEncoding(*args, **kwargs) + return _gdi_.Font_GetDefaultEncoding(*args, **kwargs) def Font_SetDefaultEncoding(*args, **kwargs): """Font_SetDefaultEncoding(int encoding)""" - return _gdi.Font_SetDefaultEncoding(*args, **kwargs) + return _gdi_.Font_SetDefaultEncoding(*args, **kwargs) #--------------------------------------------------------------------------- @@ -1734,13 +1734,13 @@ class FontEnumerator(object): return "<%s.%s; proxy of C++ wxPyFontEnumerator instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> FontEnumerator""" - newobj = _gdi.new_FontEnumerator(*args, **kwargs) + newobj = _gdi_.new_FontEnumerator(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown self._setCallbackInfo(self, FontEnumerator, 0) - def __del__(self, destroy=_gdi.delete_FontEnumerator): + def __del__(self, destroy=_gdi_.delete_FontEnumerator): """__del__(self)""" try: if self.thisown: destroy(self) @@ -1748,23 +1748,23 @@ class FontEnumerator(object): def _setCallbackInfo(*args, **kwargs): """_setCallbackInfo(self, PyObject self, PyObject _class, bool incref)""" - return _gdi.FontEnumerator__setCallbackInfo(*args, **kwargs) + return _gdi_.FontEnumerator__setCallbackInfo(*args, **kwargs) def EnumerateFacenames(*args, **kwargs): """EnumerateFacenames(self, int encoding=FONTENCODING_SYSTEM, bool fixedWidthOnly=False) -> bool""" - return _gdi.FontEnumerator_EnumerateFacenames(*args, **kwargs) + return _gdi_.FontEnumerator_EnumerateFacenames(*args, **kwargs) def EnumerateEncodings(*args, **kwargs): """EnumerateEncodings(self, String facename=EmptyString) -> bool""" - return _gdi.FontEnumerator_EnumerateEncodings(*args, **kwargs) + return _gdi_.FontEnumerator_EnumerateEncodings(*args, **kwargs) def GetEncodings(*args, **kwargs): """GetEncodings(self) -> PyObject""" - return _gdi.FontEnumerator_GetEncodings(*args, **kwargs) + return _gdi_.FontEnumerator_GetEncodings(*args, **kwargs) def GetFacenames(*args, **kwargs): """GetFacenames(self) -> PyObject""" - return _gdi.FontEnumerator_GetFacenames(*args, **kwargs) + return _gdi_.FontEnumerator_GetFacenames(*args, **kwargs) class FontEnumeratorPtr(FontEnumerator): @@ -1772,274 +1772,274 @@ class FontEnumeratorPtr(FontEnumerator): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = FontEnumerator -_gdi.FontEnumerator_swigregister(FontEnumeratorPtr) +_gdi_.FontEnumerator_swigregister(FontEnumeratorPtr) #--------------------------------------------------------------------------- -LANGUAGE_DEFAULT = _gdi.LANGUAGE_DEFAULT -LANGUAGE_UNKNOWN = _gdi.LANGUAGE_UNKNOWN -LANGUAGE_ABKHAZIAN = _gdi.LANGUAGE_ABKHAZIAN -LANGUAGE_AFAR = _gdi.LANGUAGE_AFAR -LANGUAGE_AFRIKAANS = _gdi.LANGUAGE_AFRIKAANS -LANGUAGE_ALBANIAN = _gdi.LANGUAGE_ALBANIAN -LANGUAGE_AMHARIC = _gdi.LANGUAGE_AMHARIC -LANGUAGE_ARABIC = _gdi.LANGUAGE_ARABIC -LANGUAGE_ARABIC_ALGERIA = _gdi.LANGUAGE_ARABIC_ALGERIA -LANGUAGE_ARABIC_BAHRAIN = _gdi.LANGUAGE_ARABIC_BAHRAIN -LANGUAGE_ARABIC_EGYPT = _gdi.LANGUAGE_ARABIC_EGYPT -LANGUAGE_ARABIC_IRAQ = _gdi.LANGUAGE_ARABIC_IRAQ -LANGUAGE_ARABIC_JORDAN = _gdi.LANGUAGE_ARABIC_JORDAN -LANGUAGE_ARABIC_KUWAIT = _gdi.LANGUAGE_ARABIC_KUWAIT -LANGUAGE_ARABIC_LEBANON = _gdi.LANGUAGE_ARABIC_LEBANON -LANGUAGE_ARABIC_LIBYA = _gdi.LANGUAGE_ARABIC_LIBYA -LANGUAGE_ARABIC_MOROCCO = _gdi.LANGUAGE_ARABIC_MOROCCO -LANGUAGE_ARABIC_OMAN = _gdi.LANGUAGE_ARABIC_OMAN -LANGUAGE_ARABIC_QATAR = _gdi.LANGUAGE_ARABIC_QATAR -LANGUAGE_ARABIC_SAUDI_ARABIA = _gdi.LANGUAGE_ARABIC_SAUDI_ARABIA -LANGUAGE_ARABIC_SUDAN = _gdi.LANGUAGE_ARABIC_SUDAN -LANGUAGE_ARABIC_SYRIA = _gdi.LANGUAGE_ARABIC_SYRIA -LANGUAGE_ARABIC_TUNISIA = _gdi.LANGUAGE_ARABIC_TUNISIA -LANGUAGE_ARABIC_UAE = _gdi.LANGUAGE_ARABIC_UAE -LANGUAGE_ARABIC_YEMEN = _gdi.LANGUAGE_ARABIC_YEMEN -LANGUAGE_ARMENIAN = _gdi.LANGUAGE_ARMENIAN -LANGUAGE_ASSAMESE = _gdi.LANGUAGE_ASSAMESE -LANGUAGE_AYMARA = _gdi.LANGUAGE_AYMARA -LANGUAGE_AZERI = _gdi.LANGUAGE_AZERI -LANGUAGE_AZERI_CYRILLIC = _gdi.LANGUAGE_AZERI_CYRILLIC -LANGUAGE_AZERI_LATIN = _gdi.LANGUAGE_AZERI_LATIN -LANGUAGE_BASHKIR = _gdi.LANGUAGE_BASHKIR -LANGUAGE_BASQUE = _gdi.LANGUAGE_BASQUE -LANGUAGE_BELARUSIAN = _gdi.LANGUAGE_BELARUSIAN -LANGUAGE_BENGALI = _gdi.LANGUAGE_BENGALI -LANGUAGE_BHUTANI = _gdi.LANGUAGE_BHUTANI -LANGUAGE_BIHARI = _gdi.LANGUAGE_BIHARI -LANGUAGE_BISLAMA = _gdi.LANGUAGE_BISLAMA -LANGUAGE_BRETON = _gdi.LANGUAGE_BRETON -LANGUAGE_BULGARIAN = _gdi.LANGUAGE_BULGARIAN -LANGUAGE_BURMESE = _gdi.LANGUAGE_BURMESE -LANGUAGE_CAMBODIAN = _gdi.LANGUAGE_CAMBODIAN -LANGUAGE_CATALAN = _gdi.LANGUAGE_CATALAN -LANGUAGE_CHINESE = _gdi.LANGUAGE_CHINESE -LANGUAGE_CHINESE_SIMPLIFIED = _gdi.LANGUAGE_CHINESE_SIMPLIFIED -LANGUAGE_CHINESE_TRADITIONAL = _gdi.LANGUAGE_CHINESE_TRADITIONAL -LANGUAGE_CHINESE_HONGKONG = _gdi.LANGUAGE_CHINESE_HONGKONG -LANGUAGE_CHINESE_MACAU = _gdi.LANGUAGE_CHINESE_MACAU -LANGUAGE_CHINESE_SINGAPORE = _gdi.LANGUAGE_CHINESE_SINGAPORE -LANGUAGE_CHINESE_TAIWAN = _gdi.LANGUAGE_CHINESE_TAIWAN -LANGUAGE_CORSICAN = _gdi.LANGUAGE_CORSICAN -LANGUAGE_CROATIAN = _gdi.LANGUAGE_CROATIAN -LANGUAGE_CZECH = _gdi.LANGUAGE_CZECH -LANGUAGE_DANISH = _gdi.LANGUAGE_DANISH -LANGUAGE_DUTCH = _gdi.LANGUAGE_DUTCH -LANGUAGE_DUTCH_BELGIAN = _gdi.LANGUAGE_DUTCH_BELGIAN -LANGUAGE_ENGLISH = _gdi.LANGUAGE_ENGLISH -LANGUAGE_ENGLISH_UK = _gdi.LANGUAGE_ENGLISH_UK -LANGUAGE_ENGLISH_US = _gdi.LANGUAGE_ENGLISH_US -LANGUAGE_ENGLISH_AUSTRALIA = _gdi.LANGUAGE_ENGLISH_AUSTRALIA -LANGUAGE_ENGLISH_BELIZE = _gdi.LANGUAGE_ENGLISH_BELIZE -LANGUAGE_ENGLISH_BOTSWANA = _gdi.LANGUAGE_ENGLISH_BOTSWANA -LANGUAGE_ENGLISH_CANADA = _gdi.LANGUAGE_ENGLISH_CANADA -LANGUAGE_ENGLISH_CARIBBEAN = _gdi.LANGUAGE_ENGLISH_CARIBBEAN -LANGUAGE_ENGLISH_DENMARK = _gdi.LANGUAGE_ENGLISH_DENMARK -LANGUAGE_ENGLISH_EIRE = _gdi.LANGUAGE_ENGLISH_EIRE -LANGUAGE_ENGLISH_JAMAICA = _gdi.LANGUAGE_ENGLISH_JAMAICA -LANGUAGE_ENGLISH_NEW_ZEALAND = _gdi.LANGUAGE_ENGLISH_NEW_ZEALAND -LANGUAGE_ENGLISH_PHILIPPINES = _gdi.LANGUAGE_ENGLISH_PHILIPPINES -LANGUAGE_ENGLISH_SOUTH_AFRICA = _gdi.LANGUAGE_ENGLISH_SOUTH_AFRICA -LANGUAGE_ENGLISH_TRINIDAD = _gdi.LANGUAGE_ENGLISH_TRINIDAD -LANGUAGE_ENGLISH_ZIMBABWE = _gdi.LANGUAGE_ENGLISH_ZIMBABWE -LANGUAGE_ESPERANTO = _gdi.LANGUAGE_ESPERANTO -LANGUAGE_ESTONIAN = _gdi.LANGUAGE_ESTONIAN -LANGUAGE_FAEROESE = _gdi.LANGUAGE_FAEROESE -LANGUAGE_FARSI = _gdi.LANGUAGE_FARSI -LANGUAGE_FIJI = _gdi.LANGUAGE_FIJI -LANGUAGE_FINNISH = _gdi.LANGUAGE_FINNISH -LANGUAGE_FRENCH = _gdi.LANGUAGE_FRENCH -LANGUAGE_FRENCH_BELGIAN = _gdi.LANGUAGE_FRENCH_BELGIAN -LANGUAGE_FRENCH_CANADIAN = _gdi.LANGUAGE_FRENCH_CANADIAN -LANGUAGE_FRENCH_LUXEMBOURG = _gdi.LANGUAGE_FRENCH_LUXEMBOURG -LANGUAGE_FRENCH_MONACO = _gdi.LANGUAGE_FRENCH_MONACO -LANGUAGE_FRENCH_SWISS = _gdi.LANGUAGE_FRENCH_SWISS -LANGUAGE_FRISIAN = _gdi.LANGUAGE_FRISIAN -LANGUAGE_GALICIAN = _gdi.LANGUAGE_GALICIAN -LANGUAGE_GEORGIAN = _gdi.LANGUAGE_GEORGIAN -LANGUAGE_GERMAN = _gdi.LANGUAGE_GERMAN -LANGUAGE_GERMAN_AUSTRIAN = _gdi.LANGUAGE_GERMAN_AUSTRIAN -LANGUAGE_GERMAN_BELGIUM = _gdi.LANGUAGE_GERMAN_BELGIUM -LANGUAGE_GERMAN_LIECHTENSTEIN = _gdi.LANGUAGE_GERMAN_LIECHTENSTEIN -LANGUAGE_GERMAN_LUXEMBOURG = _gdi.LANGUAGE_GERMAN_LUXEMBOURG -LANGUAGE_GERMAN_SWISS = _gdi.LANGUAGE_GERMAN_SWISS -LANGUAGE_GREEK = _gdi.LANGUAGE_GREEK -LANGUAGE_GREENLANDIC = _gdi.LANGUAGE_GREENLANDIC -LANGUAGE_GUARANI = _gdi.LANGUAGE_GUARANI -LANGUAGE_GUJARATI = _gdi.LANGUAGE_GUJARATI -LANGUAGE_HAUSA = _gdi.LANGUAGE_HAUSA -LANGUAGE_HEBREW = _gdi.LANGUAGE_HEBREW -LANGUAGE_HINDI = _gdi.LANGUAGE_HINDI -LANGUAGE_HUNGARIAN = _gdi.LANGUAGE_HUNGARIAN -LANGUAGE_ICELANDIC = _gdi.LANGUAGE_ICELANDIC -LANGUAGE_INDONESIAN = _gdi.LANGUAGE_INDONESIAN -LANGUAGE_INTERLINGUA = _gdi.LANGUAGE_INTERLINGUA -LANGUAGE_INTERLINGUE = _gdi.LANGUAGE_INTERLINGUE -LANGUAGE_INUKTITUT = _gdi.LANGUAGE_INUKTITUT -LANGUAGE_INUPIAK = _gdi.LANGUAGE_INUPIAK -LANGUAGE_IRISH = _gdi.LANGUAGE_IRISH -LANGUAGE_ITALIAN = _gdi.LANGUAGE_ITALIAN -LANGUAGE_ITALIAN_SWISS = _gdi.LANGUAGE_ITALIAN_SWISS -LANGUAGE_JAPANESE = _gdi.LANGUAGE_JAPANESE -LANGUAGE_JAVANESE = _gdi.LANGUAGE_JAVANESE -LANGUAGE_KANNADA = _gdi.LANGUAGE_KANNADA -LANGUAGE_KASHMIRI = _gdi.LANGUAGE_KASHMIRI -LANGUAGE_KASHMIRI_INDIA = _gdi.LANGUAGE_KASHMIRI_INDIA -LANGUAGE_KAZAKH = _gdi.LANGUAGE_KAZAKH -LANGUAGE_KERNEWEK = _gdi.LANGUAGE_KERNEWEK -LANGUAGE_KINYARWANDA = _gdi.LANGUAGE_KINYARWANDA -LANGUAGE_KIRGHIZ = _gdi.LANGUAGE_KIRGHIZ -LANGUAGE_KIRUNDI = _gdi.LANGUAGE_KIRUNDI -LANGUAGE_KONKANI = _gdi.LANGUAGE_KONKANI -LANGUAGE_KOREAN = _gdi.LANGUAGE_KOREAN -LANGUAGE_KURDISH = _gdi.LANGUAGE_KURDISH -LANGUAGE_LAOTHIAN = _gdi.LANGUAGE_LAOTHIAN -LANGUAGE_LATIN = _gdi.LANGUAGE_LATIN -LANGUAGE_LATVIAN = _gdi.LANGUAGE_LATVIAN -LANGUAGE_LINGALA = _gdi.LANGUAGE_LINGALA -LANGUAGE_LITHUANIAN = _gdi.LANGUAGE_LITHUANIAN -LANGUAGE_MACEDONIAN = _gdi.LANGUAGE_MACEDONIAN -LANGUAGE_MALAGASY = _gdi.LANGUAGE_MALAGASY -LANGUAGE_MALAY = _gdi.LANGUAGE_MALAY -LANGUAGE_MALAYALAM = _gdi.LANGUAGE_MALAYALAM -LANGUAGE_MALAY_BRUNEI_DARUSSALAM = _gdi.LANGUAGE_MALAY_BRUNEI_DARUSSALAM -LANGUAGE_MALAY_MALAYSIA = _gdi.LANGUAGE_MALAY_MALAYSIA -LANGUAGE_MALTESE = _gdi.LANGUAGE_MALTESE -LANGUAGE_MANIPURI = _gdi.LANGUAGE_MANIPURI -LANGUAGE_MAORI = _gdi.LANGUAGE_MAORI -LANGUAGE_MARATHI = _gdi.LANGUAGE_MARATHI -LANGUAGE_MOLDAVIAN = _gdi.LANGUAGE_MOLDAVIAN -LANGUAGE_MONGOLIAN = _gdi.LANGUAGE_MONGOLIAN -LANGUAGE_NAURU = _gdi.LANGUAGE_NAURU -LANGUAGE_NEPALI = _gdi.LANGUAGE_NEPALI -LANGUAGE_NEPALI_INDIA = _gdi.LANGUAGE_NEPALI_INDIA -LANGUAGE_NORWEGIAN_BOKMAL = _gdi.LANGUAGE_NORWEGIAN_BOKMAL -LANGUAGE_NORWEGIAN_NYNORSK = _gdi.LANGUAGE_NORWEGIAN_NYNORSK -LANGUAGE_OCCITAN = _gdi.LANGUAGE_OCCITAN -LANGUAGE_ORIYA = _gdi.LANGUAGE_ORIYA -LANGUAGE_OROMO = _gdi.LANGUAGE_OROMO -LANGUAGE_PASHTO = _gdi.LANGUAGE_PASHTO -LANGUAGE_POLISH = _gdi.LANGUAGE_POLISH -LANGUAGE_PORTUGUESE = _gdi.LANGUAGE_PORTUGUESE -LANGUAGE_PORTUGUESE_BRAZILIAN = _gdi.LANGUAGE_PORTUGUESE_BRAZILIAN -LANGUAGE_PUNJABI = _gdi.LANGUAGE_PUNJABI -LANGUAGE_QUECHUA = _gdi.LANGUAGE_QUECHUA -LANGUAGE_RHAETO_ROMANCE = _gdi.LANGUAGE_RHAETO_ROMANCE -LANGUAGE_ROMANIAN = _gdi.LANGUAGE_ROMANIAN -LANGUAGE_RUSSIAN = _gdi.LANGUAGE_RUSSIAN -LANGUAGE_RUSSIAN_UKRAINE = _gdi.LANGUAGE_RUSSIAN_UKRAINE -LANGUAGE_SAMOAN = _gdi.LANGUAGE_SAMOAN -LANGUAGE_SANGHO = _gdi.LANGUAGE_SANGHO -LANGUAGE_SANSKRIT = _gdi.LANGUAGE_SANSKRIT -LANGUAGE_SCOTS_GAELIC = _gdi.LANGUAGE_SCOTS_GAELIC -LANGUAGE_SERBIAN = _gdi.LANGUAGE_SERBIAN -LANGUAGE_SERBIAN_CYRILLIC = _gdi.LANGUAGE_SERBIAN_CYRILLIC -LANGUAGE_SERBIAN_LATIN = _gdi.LANGUAGE_SERBIAN_LATIN -LANGUAGE_SERBO_CROATIAN = _gdi.LANGUAGE_SERBO_CROATIAN -LANGUAGE_SESOTHO = _gdi.LANGUAGE_SESOTHO -LANGUAGE_SETSWANA = _gdi.LANGUAGE_SETSWANA -LANGUAGE_SHONA = _gdi.LANGUAGE_SHONA -LANGUAGE_SINDHI = _gdi.LANGUAGE_SINDHI -LANGUAGE_SINHALESE = _gdi.LANGUAGE_SINHALESE -LANGUAGE_SISWATI = _gdi.LANGUAGE_SISWATI -LANGUAGE_SLOVAK = _gdi.LANGUAGE_SLOVAK -LANGUAGE_SLOVENIAN = _gdi.LANGUAGE_SLOVENIAN -LANGUAGE_SOMALI = _gdi.LANGUAGE_SOMALI -LANGUAGE_SPANISH = _gdi.LANGUAGE_SPANISH -LANGUAGE_SPANISH_ARGENTINA = _gdi.LANGUAGE_SPANISH_ARGENTINA -LANGUAGE_SPANISH_BOLIVIA = _gdi.LANGUAGE_SPANISH_BOLIVIA -LANGUAGE_SPANISH_CHILE = _gdi.LANGUAGE_SPANISH_CHILE -LANGUAGE_SPANISH_COLOMBIA = _gdi.LANGUAGE_SPANISH_COLOMBIA -LANGUAGE_SPANISH_COSTA_RICA = _gdi.LANGUAGE_SPANISH_COSTA_RICA -LANGUAGE_SPANISH_DOMINICAN_REPUBLIC = _gdi.LANGUAGE_SPANISH_DOMINICAN_REPUBLIC -LANGUAGE_SPANISH_ECUADOR = _gdi.LANGUAGE_SPANISH_ECUADOR -LANGUAGE_SPANISH_EL_SALVADOR = _gdi.LANGUAGE_SPANISH_EL_SALVADOR -LANGUAGE_SPANISH_GUATEMALA = _gdi.LANGUAGE_SPANISH_GUATEMALA -LANGUAGE_SPANISH_HONDURAS = _gdi.LANGUAGE_SPANISH_HONDURAS -LANGUAGE_SPANISH_MEXICAN = _gdi.LANGUAGE_SPANISH_MEXICAN -LANGUAGE_SPANISH_MODERN = _gdi.LANGUAGE_SPANISH_MODERN -LANGUAGE_SPANISH_NICARAGUA = _gdi.LANGUAGE_SPANISH_NICARAGUA -LANGUAGE_SPANISH_PANAMA = _gdi.LANGUAGE_SPANISH_PANAMA -LANGUAGE_SPANISH_PARAGUAY = _gdi.LANGUAGE_SPANISH_PARAGUAY -LANGUAGE_SPANISH_PERU = _gdi.LANGUAGE_SPANISH_PERU -LANGUAGE_SPANISH_PUERTO_RICO = _gdi.LANGUAGE_SPANISH_PUERTO_RICO -LANGUAGE_SPANISH_URUGUAY = _gdi.LANGUAGE_SPANISH_URUGUAY -LANGUAGE_SPANISH_US = _gdi.LANGUAGE_SPANISH_US -LANGUAGE_SPANISH_VENEZUELA = _gdi.LANGUAGE_SPANISH_VENEZUELA -LANGUAGE_SUNDANESE = _gdi.LANGUAGE_SUNDANESE -LANGUAGE_SWAHILI = _gdi.LANGUAGE_SWAHILI -LANGUAGE_SWEDISH = _gdi.LANGUAGE_SWEDISH -LANGUAGE_SWEDISH_FINLAND = _gdi.LANGUAGE_SWEDISH_FINLAND -LANGUAGE_TAGALOG = _gdi.LANGUAGE_TAGALOG -LANGUAGE_TAJIK = _gdi.LANGUAGE_TAJIK -LANGUAGE_TAMIL = _gdi.LANGUAGE_TAMIL -LANGUAGE_TATAR = _gdi.LANGUAGE_TATAR -LANGUAGE_TELUGU = _gdi.LANGUAGE_TELUGU -LANGUAGE_THAI = _gdi.LANGUAGE_THAI -LANGUAGE_TIBETAN = _gdi.LANGUAGE_TIBETAN -LANGUAGE_TIGRINYA = _gdi.LANGUAGE_TIGRINYA -LANGUAGE_TONGA = _gdi.LANGUAGE_TONGA -LANGUAGE_TSONGA = _gdi.LANGUAGE_TSONGA -LANGUAGE_TURKISH = _gdi.LANGUAGE_TURKISH -LANGUAGE_TURKMEN = _gdi.LANGUAGE_TURKMEN -LANGUAGE_TWI = _gdi.LANGUAGE_TWI -LANGUAGE_UIGHUR = _gdi.LANGUAGE_UIGHUR -LANGUAGE_UKRAINIAN = _gdi.LANGUAGE_UKRAINIAN -LANGUAGE_URDU = _gdi.LANGUAGE_URDU -LANGUAGE_URDU_INDIA = _gdi.LANGUAGE_URDU_INDIA -LANGUAGE_URDU_PAKISTAN = _gdi.LANGUAGE_URDU_PAKISTAN -LANGUAGE_UZBEK = _gdi.LANGUAGE_UZBEK -LANGUAGE_UZBEK_CYRILLIC = _gdi.LANGUAGE_UZBEK_CYRILLIC -LANGUAGE_UZBEK_LATIN = _gdi.LANGUAGE_UZBEK_LATIN -LANGUAGE_VIETNAMESE = _gdi.LANGUAGE_VIETNAMESE -LANGUAGE_VOLAPUK = _gdi.LANGUAGE_VOLAPUK -LANGUAGE_WELSH = _gdi.LANGUAGE_WELSH -LANGUAGE_WOLOF = _gdi.LANGUAGE_WOLOF -LANGUAGE_XHOSA = _gdi.LANGUAGE_XHOSA -LANGUAGE_YIDDISH = _gdi.LANGUAGE_YIDDISH -LANGUAGE_YORUBA = _gdi.LANGUAGE_YORUBA -LANGUAGE_ZHUANG = _gdi.LANGUAGE_ZHUANG -LANGUAGE_ZULU = _gdi.LANGUAGE_ZULU -LANGUAGE_USER_DEFINED = _gdi.LANGUAGE_USER_DEFINED +LANGUAGE_DEFAULT = _gdi_.LANGUAGE_DEFAULT +LANGUAGE_UNKNOWN = _gdi_.LANGUAGE_UNKNOWN +LANGUAGE_ABKHAZIAN = _gdi_.LANGUAGE_ABKHAZIAN +LANGUAGE_AFAR = _gdi_.LANGUAGE_AFAR +LANGUAGE_AFRIKAANS = _gdi_.LANGUAGE_AFRIKAANS +LANGUAGE_ALBANIAN = _gdi_.LANGUAGE_ALBANIAN +LANGUAGE_AMHARIC = _gdi_.LANGUAGE_AMHARIC +LANGUAGE_ARABIC = _gdi_.LANGUAGE_ARABIC +LANGUAGE_ARABIC_ALGERIA = _gdi_.LANGUAGE_ARABIC_ALGERIA +LANGUAGE_ARABIC_BAHRAIN = _gdi_.LANGUAGE_ARABIC_BAHRAIN +LANGUAGE_ARABIC_EGYPT = _gdi_.LANGUAGE_ARABIC_EGYPT +LANGUAGE_ARABIC_IRAQ = _gdi_.LANGUAGE_ARABIC_IRAQ +LANGUAGE_ARABIC_JORDAN = _gdi_.LANGUAGE_ARABIC_JORDAN +LANGUAGE_ARABIC_KUWAIT = _gdi_.LANGUAGE_ARABIC_KUWAIT +LANGUAGE_ARABIC_LEBANON = _gdi_.LANGUAGE_ARABIC_LEBANON +LANGUAGE_ARABIC_LIBYA = _gdi_.LANGUAGE_ARABIC_LIBYA +LANGUAGE_ARABIC_MOROCCO = _gdi_.LANGUAGE_ARABIC_MOROCCO +LANGUAGE_ARABIC_OMAN = _gdi_.LANGUAGE_ARABIC_OMAN +LANGUAGE_ARABIC_QATAR = _gdi_.LANGUAGE_ARABIC_QATAR +LANGUAGE_ARABIC_SAUDI_ARABIA = _gdi_.LANGUAGE_ARABIC_SAUDI_ARABIA +LANGUAGE_ARABIC_SUDAN = _gdi_.LANGUAGE_ARABIC_SUDAN +LANGUAGE_ARABIC_SYRIA = _gdi_.LANGUAGE_ARABIC_SYRIA +LANGUAGE_ARABIC_TUNISIA = _gdi_.LANGUAGE_ARABIC_TUNISIA +LANGUAGE_ARABIC_UAE = _gdi_.LANGUAGE_ARABIC_UAE +LANGUAGE_ARABIC_YEMEN = _gdi_.LANGUAGE_ARABIC_YEMEN +LANGUAGE_ARMENIAN = _gdi_.LANGUAGE_ARMENIAN +LANGUAGE_ASSAMESE = _gdi_.LANGUAGE_ASSAMESE +LANGUAGE_AYMARA = _gdi_.LANGUAGE_AYMARA +LANGUAGE_AZERI = _gdi_.LANGUAGE_AZERI +LANGUAGE_AZERI_CYRILLIC = _gdi_.LANGUAGE_AZERI_CYRILLIC +LANGUAGE_AZERI_LATIN = _gdi_.LANGUAGE_AZERI_LATIN +LANGUAGE_BASHKIR = _gdi_.LANGUAGE_BASHKIR +LANGUAGE_BASQUE = _gdi_.LANGUAGE_BASQUE +LANGUAGE_BELARUSIAN = _gdi_.LANGUAGE_BELARUSIAN +LANGUAGE_BENGALI = _gdi_.LANGUAGE_BENGALI +LANGUAGE_BHUTANI = _gdi_.LANGUAGE_BHUTANI +LANGUAGE_BIHARI = _gdi_.LANGUAGE_BIHARI +LANGUAGE_BISLAMA = _gdi_.LANGUAGE_BISLAMA +LANGUAGE_BRETON = _gdi_.LANGUAGE_BRETON +LANGUAGE_BULGARIAN = _gdi_.LANGUAGE_BULGARIAN +LANGUAGE_BURMESE = _gdi_.LANGUAGE_BURMESE +LANGUAGE_CAMBODIAN = _gdi_.LANGUAGE_CAMBODIAN +LANGUAGE_CATALAN = _gdi_.LANGUAGE_CATALAN +LANGUAGE_CHINESE = _gdi_.LANGUAGE_CHINESE +LANGUAGE_CHINESE_SIMPLIFIED = _gdi_.LANGUAGE_CHINESE_SIMPLIFIED +LANGUAGE_CHINESE_TRADITIONAL = _gdi_.LANGUAGE_CHINESE_TRADITIONAL +LANGUAGE_CHINESE_HONGKONG = _gdi_.LANGUAGE_CHINESE_HONGKONG +LANGUAGE_CHINESE_MACAU = _gdi_.LANGUAGE_CHINESE_MACAU +LANGUAGE_CHINESE_SINGAPORE = _gdi_.LANGUAGE_CHINESE_SINGAPORE +LANGUAGE_CHINESE_TAIWAN = _gdi_.LANGUAGE_CHINESE_TAIWAN +LANGUAGE_CORSICAN = _gdi_.LANGUAGE_CORSICAN +LANGUAGE_CROATIAN = _gdi_.LANGUAGE_CROATIAN +LANGUAGE_CZECH = _gdi_.LANGUAGE_CZECH +LANGUAGE_DANISH = _gdi_.LANGUAGE_DANISH +LANGUAGE_DUTCH = _gdi_.LANGUAGE_DUTCH +LANGUAGE_DUTCH_BELGIAN = _gdi_.LANGUAGE_DUTCH_BELGIAN +LANGUAGE_ENGLISH = _gdi_.LANGUAGE_ENGLISH +LANGUAGE_ENGLISH_UK = _gdi_.LANGUAGE_ENGLISH_UK +LANGUAGE_ENGLISH_US = _gdi_.LANGUAGE_ENGLISH_US +LANGUAGE_ENGLISH_AUSTRALIA = _gdi_.LANGUAGE_ENGLISH_AUSTRALIA +LANGUAGE_ENGLISH_BELIZE = _gdi_.LANGUAGE_ENGLISH_BELIZE +LANGUAGE_ENGLISH_BOTSWANA = _gdi_.LANGUAGE_ENGLISH_BOTSWANA +LANGUAGE_ENGLISH_CANADA = _gdi_.LANGUAGE_ENGLISH_CANADA +LANGUAGE_ENGLISH_CARIBBEAN = _gdi_.LANGUAGE_ENGLISH_CARIBBEAN +LANGUAGE_ENGLISH_DENMARK = _gdi_.LANGUAGE_ENGLISH_DENMARK +LANGUAGE_ENGLISH_EIRE = _gdi_.LANGUAGE_ENGLISH_EIRE +LANGUAGE_ENGLISH_JAMAICA = _gdi_.LANGUAGE_ENGLISH_JAMAICA +LANGUAGE_ENGLISH_NEW_ZEALAND = _gdi_.LANGUAGE_ENGLISH_NEW_ZEALAND +LANGUAGE_ENGLISH_PHILIPPINES = _gdi_.LANGUAGE_ENGLISH_PHILIPPINES +LANGUAGE_ENGLISH_SOUTH_AFRICA = _gdi_.LANGUAGE_ENGLISH_SOUTH_AFRICA +LANGUAGE_ENGLISH_TRINIDAD = _gdi_.LANGUAGE_ENGLISH_TRINIDAD +LANGUAGE_ENGLISH_ZIMBABWE = _gdi_.LANGUAGE_ENGLISH_ZIMBABWE +LANGUAGE_ESPERANTO = _gdi_.LANGUAGE_ESPERANTO +LANGUAGE_ESTONIAN = _gdi_.LANGUAGE_ESTONIAN +LANGUAGE_FAEROESE = _gdi_.LANGUAGE_FAEROESE +LANGUAGE_FARSI = _gdi_.LANGUAGE_FARSI +LANGUAGE_FIJI = _gdi_.LANGUAGE_FIJI +LANGUAGE_FINNISH = _gdi_.LANGUAGE_FINNISH +LANGUAGE_FRENCH = _gdi_.LANGUAGE_FRENCH +LANGUAGE_FRENCH_BELGIAN = _gdi_.LANGUAGE_FRENCH_BELGIAN +LANGUAGE_FRENCH_CANADIAN = _gdi_.LANGUAGE_FRENCH_CANADIAN +LANGUAGE_FRENCH_LUXEMBOURG = _gdi_.LANGUAGE_FRENCH_LUXEMBOURG +LANGUAGE_FRENCH_MONACO = _gdi_.LANGUAGE_FRENCH_MONACO +LANGUAGE_FRENCH_SWISS = _gdi_.LANGUAGE_FRENCH_SWISS +LANGUAGE_FRISIAN = _gdi_.LANGUAGE_FRISIAN +LANGUAGE_GALICIAN = _gdi_.LANGUAGE_GALICIAN +LANGUAGE_GEORGIAN = _gdi_.LANGUAGE_GEORGIAN +LANGUAGE_GERMAN = _gdi_.LANGUAGE_GERMAN +LANGUAGE_GERMAN_AUSTRIAN = _gdi_.LANGUAGE_GERMAN_AUSTRIAN +LANGUAGE_GERMAN_BELGIUM = _gdi_.LANGUAGE_GERMAN_BELGIUM +LANGUAGE_GERMAN_LIECHTENSTEIN = _gdi_.LANGUAGE_GERMAN_LIECHTENSTEIN +LANGUAGE_GERMAN_LUXEMBOURG = _gdi_.LANGUAGE_GERMAN_LUXEMBOURG +LANGUAGE_GERMAN_SWISS = _gdi_.LANGUAGE_GERMAN_SWISS +LANGUAGE_GREEK = _gdi_.LANGUAGE_GREEK +LANGUAGE_GREENLANDIC = _gdi_.LANGUAGE_GREENLANDIC +LANGUAGE_GUARANI = _gdi_.LANGUAGE_GUARANI +LANGUAGE_GUJARATI = _gdi_.LANGUAGE_GUJARATI +LANGUAGE_HAUSA = _gdi_.LANGUAGE_HAUSA +LANGUAGE_HEBREW = _gdi_.LANGUAGE_HEBREW +LANGUAGE_HINDI = _gdi_.LANGUAGE_HINDI +LANGUAGE_HUNGARIAN = _gdi_.LANGUAGE_HUNGARIAN +LANGUAGE_ICELANDIC = _gdi_.LANGUAGE_ICELANDIC +LANGUAGE_INDONESIAN = _gdi_.LANGUAGE_INDONESIAN +LANGUAGE_INTERLINGUA = _gdi_.LANGUAGE_INTERLINGUA +LANGUAGE_INTERLINGUE = _gdi_.LANGUAGE_INTERLINGUE +LANGUAGE_INUKTITUT = _gdi_.LANGUAGE_INUKTITUT +LANGUAGE_INUPIAK = _gdi_.LANGUAGE_INUPIAK +LANGUAGE_IRISH = _gdi_.LANGUAGE_IRISH +LANGUAGE_ITALIAN = _gdi_.LANGUAGE_ITALIAN +LANGUAGE_ITALIAN_SWISS = _gdi_.LANGUAGE_ITALIAN_SWISS +LANGUAGE_JAPANESE = _gdi_.LANGUAGE_JAPANESE +LANGUAGE_JAVANESE = _gdi_.LANGUAGE_JAVANESE +LANGUAGE_KANNADA = _gdi_.LANGUAGE_KANNADA +LANGUAGE_KASHMIRI = _gdi_.LANGUAGE_KASHMIRI +LANGUAGE_KASHMIRI_INDIA = _gdi_.LANGUAGE_KASHMIRI_INDIA +LANGUAGE_KAZAKH = _gdi_.LANGUAGE_KAZAKH +LANGUAGE_KERNEWEK = _gdi_.LANGUAGE_KERNEWEK +LANGUAGE_KINYARWANDA = _gdi_.LANGUAGE_KINYARWANDA +LANGUAGE_KIRGHIZ = _gdi_.LANGUAGE_KIRGHIZ +LANGUAGE_KIRUNDI = _gdi_.LANGUAGE_KIRUNDI +LANGUAGE_KONKANI = _gdi_.LANGUAGE_KONKANI +LANGUAGE_KOREAN = _gdi_.LANGUAGE_KOREAN +LANGUAGE_KURDISH = _gdi_.LANGUAGE_KURDISH +LANGUAGE_LAOTHIAN = _gdi_.LANGUAGE_LAOTHIAN +LANGUAGE_LATIN = _gdi_.LANGUAGE_LATIN +LANGUAGE_LATVIAN = _gdi_.LANGUAGE_LATVIAN +LANGUAGE_LINGALA = _gdi_.LANGUAGE_LINGALA +LANGUAGE_LITHUANIAN = _gdi_.LANGUAGE_LITHUANIAN +LANGUAGE_MACEDONIAN = _gdi_.LANGUAGE_MACEDONIAN +LANGUAGE_MALAGASY = _gdi_.LANGUAGE_MALAGASY +LANGUAGE_MALAY = _gdi_.LANGUAGE_MALAY +LANGUAGE_MALAYALAM = _gdi_.LANGUAGE_MALAYALAM +LANGUAGE_MALAY_BRUNEI_DARUSSALAM = _gdi_.LANGUAGE_MALAY_BRUNEI_DARUSSALAM +LANGUAGE_MALAY_MALAYSIA = _gdi_.LANGUAGE_MALAY_MALAYSIA +LANGUAGE_MALTESE = _gdi_.LANGUAGE_MALTESE +LANGUAGE_MANIPURI = _gdi_.LANGUAGE_MANIPURI +LANGUAGE_MAORI = _gdi_.LANGUAGE_MAORI +LANGUAGE_MARATHI = _gdi_.LANGUAGE_MARATHI +LANGUAGE_MOLDAVIAN = _gdi_.LANGUAGE_MOLDAVIAN +LANGUAGE_MONGOLIAN = _gdi_.LANGUAGE_MONGOLIAN +LANGUAGE_NAURU = _gdi_.LANGUAGE_NAURU +LANGUAGE_NEPALI = _gdi_.LANGUAGE_NEPALI +LANGUAGE_NEPALI_INDIA = _gdi_.LANGUAGE_NEPALI_INDIA +LANGUAGE_NORWEGIAN_BOKMAL = _gdi_.LANGUAGE_NORWEGIAN_BOKMAL +LANGUAGE_NORWEGIAN_NYNORSK = _gdi_.LANGUAGE_NORWEGIAN_NYNORSK +LANGUAGE_OCCITAN = _gdi_.LANGUAGE_OCCITAN +LANGUAGE_ORIYA = _gdi_.LANGUAGE_ORIYA +LANGUAGE_OROMO = _gdi_.LANGUAGE_OROMO +LANGUAGE_PASHTO = _gdi_.LANGUAGE_PASHTO +LANGUAGE_POLISH = _gdi_.LANGUAGE_POLISH +LANGUAGE_PORTUGUESE = _gdi_.LANGUAGE_PORTUGUESE +LANGUAGE_PORTUGUESE_BRAZILIAN = _gdi_.LANGUAGE_PORTUGUESE_BRAZILIAN +LANGUAGE_PUNJABI = _gdi_.LANGUAGE_PUNJABI +LANGUAGE_QUECHUA = _gdi_.LANGUAGE_QUECHUA +LANGUAGE_RHAETO_ROMANCE = _gdi_.LANGUAGE_RHAETO_ROMANCE +LANGUAGE_ROMANIAN = _gdi_.LANGUAGE_ROMANIAN +LANGUAGE_RUSSIAN = _gdi_.LANGUAGE_RUSSIAN +LANGUAGE_RUSSIAN_UKRAINE = _gdi_.LANGUAGE_RUSSIAN_UKRAINE +LANGUAGE_SAMOAN = _gdi_.LANGUAGE_SAMOAN +LANGUAGE_SANGHO = _gdi_.LANGUAGE_SANGHO +LANGUAGE_SANSKRIT = _gdi_.LANGUAGE_SANSKRIT +LANGUAGE_SCOTS_GAELIC = _gdi_.LANGUAGE_SCOTS_GAELIC +LANGUAGE_SERBIAN = _gdi_.LANGUAGE_SERBIAN +LANGUAGE_SERBIAN_CYRILLIC = _gdi_.LANGUAGE_SERBIAN_CYRILLIC +LANGUAGE_SERBIAN_LATIN = _gdi_.LANGUAGE_SERBIAN_LATIN +LANGUAGE_SERBO_CROATIAN = _gdi_.LANGUAGE_SERBO_CROATIAN +LANGUAGE_SESOTHO = _gdi_.LANGUAGE_SESOTHO +LANGUAGE_SETSWANA = _gdi_.LANGUAGE_SETSWANA +LANGUAGE_SHONA = _gdi_.LANGUAGE_SHONA +LANGUAGE_SINDHI = _gdi_.LANGUAGE_SINDHI +LANGUAGE_SINHALESE = _gdi_.LANGUAGE_SINHALESE +LANGUAGE_SISWATI = _gdi_.LANGUAGE_SISWATI +LANGUAGE_SLOVAK = _gdi_.LANGUAGE_SLOVAK +LANGUAGE_SLOVENIAN = _gdi_.LANGUAGE_SLOVENIAN +LANGUAGE_SOMALI = _gdi_.LANGUAGE_SOMALI +LANGUAGE_SPANISH = _gdi_.LANGUAGE_SPANISH +LANGUAGE_SPANISH_ARGENTINA = _gdi_.LANGUAGE_SPANISH_ARGENTINA +LANGUAGE_SPANISH_BOLIVIA = _gdi_.LANGUAGE_SPANISH_BOLIVIA +LANGUAGE_SPANISH_CHILE = _gdi_.LANGUAGE_SPANISH_CHILE +LANGUAGE_SPANISH_COLOMBIA = _gdi_.LANGUAGE_SPANISH_COLOMBIA +LANGUAGE_SPANISH_COSTA_RICA = _gdi_.LANGUAGE_SPANISH_COSTA_RICA +LANGUAGE_SPANISH_DOMINICAN_REPUBLIC = _gdi_.LANGUAGE_SPANISH_DOMINICAN_REPUBLIC +LANGUAGE_SPANISH_ECUADOR = _gdi_.LANGUAGE_SPANISH_ECUADOR +LANGUAGE_SPANISH_EL_SALVADOR = _gdi_.LANGUAGE_SPANISH_EL_SALVADOR +LANGUAGE_SPANISH_GUATEMALA = _gdi_.LANGUAGE_SPANISH_GUATEMALA +LANGUAGE_SPANISH_HONDURAS = _gdi_.LANGUAGE_SPANISH_HONDURAS +LANGUAGE_SPANISH_MEXICAN = _gdi_.LANGUAGE_SPANISH_MEXICAN +LANGUAGE_SPANISH_MODERN = _gdi_.LANGUAGE_SPANISH_MODERN +LANGUAGE_SPANISH_NICARAGUA = _gdi_.LANGUAGE_SPANISH_NICARAGUA +LANGUAGE_SPANISH_PANAMA = _gdi_.LANGUAGE_SPANISH_PANAMA +LANGUAGE_SPANISH_PARAGUAY = _gdi_.LANGUAGE_SPANISH_PARAGUAY +LANGUAGE_SPANISH_PERU = _gdi_.LANGUAGE_SPANISH_PERU +LANGUAGE_SPANISH_PUERTO_RICO = _gdi_.LANGUAGE_SPANISH_PUERTO_RICO +LANGUAGE_SPANISH_URUGUAY = _gdi_.LANGUAGE_SPANISH_URUGUAY +LANGUAGE_SPANISH_US = _gdi_.LANGUAGE_SPANISH_US +LANGUAGE_SPANISH_VENEZUELA = _gdi_.LANGUAGE_SPANISH_VENEZUELA +LANGUAGE_SUNDANESE = _gdi_.LANGUAGE_SUNDANESE +LANGUAGE_SWAHILI = _gdi_.LANGUAGE_SWAHILI +LANGUAGE_SWEDISH = _gdi_.LANGUAGE_SWEDISH +LANGUAGE_SWEDISH_FINLAND = _gdi_.LANGUAGE_SWEDISH_FINLAND +LANGUAGE_TAGALOG = _gdi_.LANGUAGE_TAGALOG +LANGUAGE_TAJIK = _gdi_.LANGUAGE_TAJIK +LANGUAGE_TAMIL = _gdi_.LANGUAGE_TAMIL +LANGUAGE_TATAR = _gdi_.LANGUAGE_TATAR +LANGUAGE_TELUGU = _gdi_.LANGUAGE_TELUGU +LANGUAGE_THAI = _gdi_.LANGUAGE_THAI +LANGUAGE_TIBETAN = _gdi_.LANGUAGE_TIBETAN +LANGUAGE_TIGRINYA = _gdi_.LANGUAGE_TIGRINYA +LANGUAGE_TONGA = _gdi_.LANGUAGE_TONGA +LANGUAGE_TSONGA = _gdi_.LANGUAGE_TSONGA +LANGUAGE_TURKISH = _gdi_.LANGUAGE_TURKISH +LANGUAGE_TURKMEN = _gdi_.LANGUAGE_TURKMEN +LANGUAGE_TWI = _gdi_.LANGUAGE_TWI +LANGUAGE_UIGHUR = _gdi_.LANGUAGE_UIGHUR +LANGUAGE_UKRAINIAN = _gdi_.LANGUAGE_UKRAINIAN +LANGUAGE_URDU = _gdi_.LANGUAGE_URDU +LANGUAGE_URDU_INDIA = _gdi_.LANGUAGE_URDU_INDIA +LANGUAGE_URDU_PAKISTAN = _gdi_.LANGUAGE_URDU_PAKISTAN +LANGUAGE_UZBEK = _gdi_.LANGUAGE_UZBEK +LANGUAGE_UZBEK_CYRILLIC = _gdi_.LANGUAGE_UZBEK_CYRILLIC +LANGUAGE_UZBEK_LATIN = _gdi_.LANGUAGE_UZBEK_LATIN +LANGUAGE_VIETNAMESE = _gdi_.LANGUAGE_VIETNAMESE +LANGUAGE_VOLAPUK = _gdi_.LANGUAGE_VOLAPUK +LANGUAGE_WELSH = _gdi_.LANGUAGE_WELSH +LANGUAGE_WOLOF = _gdi_.LANGUAGE_WOLOF +LANGUAGE_XHOSA = _gdi_.LANGUAGE_XHOSA +LANGUAGE_YIDDISH = _gdi_.LANGUAGE_YIDDISH +LANGUAGE_YORUBA = _gdi_.LANGUAGE_YORUBA +LANGUAGE_ZHUANG = _gdi_.LANGUAGE_ZHUANG +LANGUAGE_ZULU = _gdi_.LANGUAGE_ZULU +LANGUAGE_USER_DEFINED = _gdi_.LANGUAGE_USER_DEFINED class LanguageInfo(object): def __init__(self): raise RuntimeError, "No constructor defined" def __repr__(self): return "<%s.%s; proxy of C++ wxLanguageInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - Language = property(_gdi.LanguageInfo_Language_get, _gdi.LanguageInfo_Language_set) - CanonicalName = property(_gdi.LanguageInfo_CanonicalName_get, _gdi.LanguageInfo_CanonicalName_set) - Description = property(_gdi.LanguageInfo_Description_get, _gdi.LanguageInfo_Description_set) + Language = property(_gdi_.LanguageInfo_Language_get, _gdi_.LanguageInfo_Language_set) + CanonicalName = property(_gdi_.LanguageInfo_CanonicalName_get, _gdi_.LanguageInfo_CanonicalName_set) + Description = property(_gdi_.LanguageInfo_Description_get, _gdi_.LanguageInfo_Description_set) class LanguageInfoPtr(LanguageInfo): def __init__(self, this): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = LanguageInfo -_gdi.LanguageInfo_swigregister(LanguageInfoPtr) - -LOCALE_CAT_NUMBER = _gdi.LOCALE_CAT_NUMBER -LOCALE_CAT_DATE = _gdi.LOCALE_CAT_DATE -LOCALE_CAT_MONEY = _gdi.LOCALE_CAT_MONEY -LOCALE_CAT_MAX = _gdi.LOCALE_CAT_MAX -LOCALE_THOUSANDS_SEP = _gdi.LOCALE_THOUSANDS_SEP -LOCALE_DECIMAL_POINT = _gdi.LOCALE_DECIMAL_POINT -LOCALE_LOAD_DEFAULT = _gdi.LOCALE_LOAD_DEFAULT -LOCALE_CONV_ENCODING = _gdi.LOCALE_CONV_ENCODING +_gdi_.LanguageInfo_swigregister(LanguageInfoPtr) + +LOCALE_CAT_NUMBER = _gdi_.LOCALE_CAT_NUMBER +LOCALE_CAT_DATE = _gdi_.LOCALE_CAT_DATE +LOCALE_CAT_MONEY = _gdi_.LOCALE_CAT_MONEY +LOCALE_CAT_MAX = _gdi_.LOCALE_CAT_MAX +LOCALE_THOUSANDS_SEP = _gdi_.LOCALE_THOUSANDS_SEP +LOCALE_DECIMAL_POINT = _gdi_.LOCALE_DECIMAL_POINT +LOCALE_LOAD_DEFAULT = _gdi_.LOCALE_LOAD_DEFAULT +LOCALE_CONV_ENCODING = _gdi_.LOCALE_CONV_ENCODING class Locale(object): def __repr__(self): return "<%s.%s; proxy of C++ wxLocale instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, int language=LANGUAGE_DEFAULT, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> Locale""" - newobj = _gdi.new_Locale(*args, **kwargs) + newobj = _gdi_.new_Locale(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_gdi.delete_Locale): + def __del__(self, destroy=_gdi_.delete_Locale): """__del__(self)""" try: if self.thisown: destroy(self) @@ -2051,11 +2051,11 @@ class Locale(object): bool bLoadDefault=True, bool bConvertEncoding=False) -> bool """ - return _gdi.Locale_Init1(*args, **kwargs) + return _gdi_.Locale_Init1(*args, **kwargs) def Init2(*args, **kwargs): """Init2(self, int language=LANGUAGE_DEFAULT, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> bool""" - return _gdi.Locale_Init2(*args, **kwargs) + return _gdi_.Locale_Init2(*args, **kwargs) def Init(self, *_args, **_kwargs): if type(_args[0]) in [type(''), type(u'')]: @@ -2066,80 +2066,80 @@ class Locale(object): def GetSystemLanguage(*args, **kwargs): """Locale.GetSystemLanguage() -> int""" - return _gdi.Locale_GetSystemLanguage(*args, **kwargs) + return _gdi_.Locale_GetSystemLanguage(*args, **kwargs) GetSystemLanguage = staticmethod(GetSystemLanguage) def GetSystemEncoding(*args, **kwargs): """Locale.GetSystemEncoding() -> int""" - return _gdi.Locale_GetSystemEncoding(*args, **kwargs) + return _gdi_.Locale_GetSystemEncoding(*args, **kwargs) GetSystemEncoding = staticmethod(GetSystemEncoding) def GetSystemEncodingName(*args, **kwargs): """Locale.GetSystemEncodingName() -> String""" - return _gdi.Locale_GetSystemEncodingName(*args, **kwargs) + return _gdi_.Locale_GetSystemEncodingName(*args, **kwargs) GetSystemEncodingName = staticmethod(GetSystemEncodingName) def IsOk(*args, **kwargs): """IsOk(self) -> bool""" - return _gdi.Locale_IsOk(*args, **kwargs) + return _gdi_.Locale_IsOk(*args, **kwargs) def __nonzero__(self): return self.IsOk() def GetLocale(*args, **kwargs): """GetLocale(self) -> String""" - return _gdi.Locale_GetLocale(*args, **kwargs) + return _gdi_.Locale_GetLocale(*args, **kwargs) def GetLanguage(*args, **kwargs): """GetLanguage(self) -> int""" - return _gdi.Locale_GetLanguage(*args, **kwargs) + return _gdi_.Locale_GetLanguage(*args, **kwargs) def GetSysName(*args, **kwargs): """GetSysName(self) -> String""" - return _gdi.Locale_GetSysName(*args, **kwargs) + return _gdi_.Locale_GetSysName(*args, **kwargs) def GetCanonicalName(*args, **kwargs): """GetCanonicalName(self) -> String""" - return _gdi.Locale_GetCanonicalName(*args, **kwargs) + return _gdi_.Locale_GetCanonicalName(*args, **kwargs) def AddCatalogLookupPathPrefix(*args, **kwargs): """Locale.AddCatalogLookupPathPrefix(String prefix)""" - return _gdi.Locale_AddCatalogLookupPathPrefix(*args, **kwargs) + return _gdi_.Locale_AddCatalogLookupPathPrefix(*args, **kwargs) AddCatalogLookupPathPrefix = staticmethod(AddCatalogLookupPathPrefix) def AddCatalog(*args, **kwargs): """AddCatalog(self, String szDomain) -> bool""" - return _gdi.Locale_AddCatalog(*args, **kwargs) + return _gdi_.Locale_AddCatalog(*args, **kwargs) def IsLoaded(*args, **kwargs): """IsLoaded(self, String szDomain) -> bool""" - return _gdi.Locale_IsLoaded(*args, **kwargs) + return _gdi_.Locale_IsLoaded(*args, **kwargs) def GetLanguageInfo(*args, **kwargs): """Locale.GetLanguageInfo(int lang) -> LanguageInfo""" - return _gdi.Locale_GetLanguageInfo(*args, **kwargs) + return _gdi_.Locale_GetLanguageInfo(*args, **kwargs) GetLanguageInfo = staticmethod(GetLanguageInfo) def GetLanguageName(*args, **kwargs): """Locale.GetLanguageName(int lang) -> String""" - return _gdi.Locale_GetLanguageName(*args, **kwargs) + return _gdi_.Locale_GetLanguageName(*args, **kwargs) GetLanguageName = staticmethod(GetLanguageName) def FindLanguageInfo(*args, **kwargs): """Locale.FindLanguageInfo(String locale) -> LanguageInfo""" - return _gdi.Locale_FindLanguageInfo(*args, **kwargs) + return _gdi_.Locale_FindLanguageInfo(*args, **kwargs) FindLanguageInfo = staticmethod(FindLanguageInfo) def AddLanguage(*args, **kwargs): """Locale.AddLanguage(LanguageInfo info)""" - return _gdi.Locale_AddLanguage(*args, **kwargs) + return _gdi_.Locale_AddLanguage(*args, **kwargs) AddLanguage = staticmethod(AddLanguage) def GetString(*args, **kwargs): """GetString(self, String szOrigString, String szDomain=EmptyString) -> String""" - return _gdi.Locale_GetString(*args, **kwargs) + return _gdi_.Locale_GetString(*args, **kwargs) def GetName(*args, **kwargs): """GetName(self) -> String""" - return _gdi.Locale_GetName(*args, **kwargs) + return _gdi_.Locale_GetName(*args, **kwargs) class LocalePtr(Locale): @@ -2147,63 +2147,63 @@ class LocalePtr(Locale): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = Locale -_gdi.Locale_swigregister(LocalePtr) +_gdi_.Locale_swigregister(LocalePtr) def Locale_GetSystemLanguage(*args, **kwargs): """Locale_GetSystemLanguage() -> int""" - return _gdi.Locale_GetSystemLanguage(*args, **kwargs) + return _gdi_.Locale_GetSystemLanguage(*args, **kwargs) def Locale_GetSystemEncoding(*args, **kwargs): """Locale_GetSystemEncoding() -> int""" - return _gdi.Locale_GetSystemEncoding(*args, **kwargs) + return _gdi_.Locale_GetSystemEncoding(*args, **kwargs) def Locale_GetSystemEncodingName(*args, **kwargs): """Locale_GetSystemEncodingName() -> String""" - return _gdi.Locale_GetSystemEncodingName(*args, **kwargs) + return _gdi_.Locale_GetSystemEncodingName(*args, **kwargs) def Locale_AddCatalogLookupPathPrefix(*args, **kwargs): """Locale_AddCatalogLookupPathPrefix(String prefix)""" - return _gdi.Locale_AddCatalogLookupPathPrefix(*args, **kwargs) + return _gdi_.Locale_AddCatalogLookupPathPrefix(*args, **kwargs) def Locale_GetLanguageInfo(*args, **kwargs): """Locale_GetLanguageInfo(int lang) -> LanguageInfo""" - return _gdi.Locale_GetLanguageInfo(*args, **kwargs) + return _gdi_.Locale_GetLanguageInfo(*args, **kwargs) def Locale_GetLanguageName(*args, **kwargs): """Locale_GetLanguageName(int lang) -> String""" - return _gdi.Locale_GetLanguageName(*args, **kwargs) + return _gdi_.Locale_GetLanguageName(*args, **kwargs) def Locale_FindLanguageInfo(*args, **kwargs): """Locale_FindLanguageInfo(String locale) -> LanguageInfo""" - return _gdi.Locale_FindLanguageInfo(*args, **kwargs) + return _gdi_.Locale_FindLanguageInfo(*args, **kwargs) def Locale_AddLanguage(*args, **kwargs): """Locale_AddLanguage(LanguageInfo info)""" - return _gdi.Locale_AddLanguage(*args, **kwargs) + return _gdi_.Locale_AddLanguage(*args, **kwargs) def GetLocale(*args, **kwargs): """GetLocale() -> Locale""" - return _gdi.GetLocale(*args, **kwargs) + return _gdi_.GetLocale(*args, **kwargs) #--------------------------------------------------------------------------- -CONVERT_STRICT = _gdi.CONVERT_STRICT -CONVERT_SUBSTITUTE = _gdi.CONVERT_SUBSTITUTE -PLATFORM_CURRENT = _gdi.PLATFORM_CURRENT -PLATFORM_UNIX = _gdi.PLATFORM_UNIX -PLATFORM_WINDOWS = _gdi.PLATFORM_WINDOWS -PLATFORM_OS2 = _gdi.PLATFORM_OS2 -PLATFORM_MAC = _gdi.PLATFORM_MAC -class EncodingConverter(core.Object): +CONVERT_STRICT = _gdi_.CONVERT_STRICT +CONVERT_SUBSTITUTE = _gdi_.CONVERT_SUBSTITUTE +PLATFORM_CURRENT = _gdi_.PLATFORM_CURRENT +PLATFORM_UNIX = _gdi_.PLATFORM_UNIX +PLATFORM_WINDOWS = _gdi_.PLATFORM_WINDOWS +PLATFORM_OS2 = _gdi_.PLATFORM_OS2 +PLATFORM_MAC = _gdi_.PLATFORM_MAC +class EncodingConverter(_core.Object): def __repr__(self): return "<%s.%s; proxy of C++ wxEncodingConverter instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> EncodingConverter""" - newobj = _gdi.new_EncodingConverter(*args, **kwargs) + newobj = _gdi_.new_EncodingConverter(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_gdi.delete_EncodingConverter): + def __del__(self, destroy=_gdi_.delete_EncodingConverter): """__del__(self)""" try: if self.thisown: destroy(self) @@ -2211,25 +2211,25 @@ class EncodingConverter(core.Object): def Init(*args, **kwargs): """Init(self, int input_enc, int output_enc, int method=CONVERT_STRICT) -> bool""" - return _gdi.EncodingConverter_Init(*args, **kwargs) + return _gdi_.EncodingConverter_Init(*args, **kwargs) def Convert(*args, **kwargs): """Convert(self, String input) -> String""" - return _gdi.EncodingConverter_Convert(*args, **kwargs) + return _gdi_.EncodingConverter_Convert(*args, **kwargs) def GetPlatformEquivalents(*args, **kwargs): """EncodingConverter.GetPlatformEquivalents(int enc, int platform=PLATFORM_CURRENT) -> wxFontEncodingArray""" - return _gdi.EncodingConverter_GetPlatformEquivalents(*args, **kwargs) + return _gdi_.EncodingConverter_GetPlatformEquivalents(*args, **kwargs) GetPlatformEquivalents = staticmethod(GetPlatformEquivalents) def GetAllEquivalents(*args, **kwargs): """EncodingConverter.GetAllEquivalents(int enc) -> wxFontEncodingArray""" - return _gdi.EncodingConverter_GetAllEquivalents(*args, **kwargs) + return _gdi_.EncodingConverter_GetAllEquivalents(*args, **kwargs) GetAllEquivalents = staticmethod(GetAllEquivalents) def CanConvert(*args, **kwargs): """EncodingConverter.CanConvert(int encIn, int encOut) -> bool""" - return _gdi.EncodingConverter_CanConvert(*args, **kwargs) + return _gdi_.EncodingConverter_CanConvert(*args, **kwargs) CanConvert = staticmethod(CanConvert) def __nonzero__(self): return self.IsOk() @@ -2239,26 +2239,26 @@ class EncodingConverterPtr(EncodingConverter): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = EncodingConverter -_gdi.EncodingConverter_swigregister(EncodingConverterPtr) +_gdi_.EncodingConverter_swigregister(EncodingConverterPtr) def GetTranslation(*args): """ GetTranslation(String str) -> String GetTranslation(String str, String strPlural, size_t n) -> String """ - return _gdi.GetTranslation(*args) + return _gdi_.GetTranslation(*args) def EncodingConverter_GetPlatformEquivalents(*args, **kwargs): """EncodingConverter_GetPlatformEquivalents(int enc, int platform=PLATFORM_CURRENT) -> wxFontEncodingArray""" - return _gdi.EncodingConverter_GetPlatformEquivalents(*args, **kwargs) + return _gdi_.EncodingConverter_GetPlatformEquivalents(*args, **kwargs) def EncodingConverter_GetAllEquivalents(*args, **kwargs): """EncodingConverter_GetAllEquivalents(int enc) -> wxFontEncodingArray""" - return _gdi.EncodingConverter_GetAllEquivalents(*args, **kwargs) + return _gdi_.EncodingConverter_GetAllEquivalents(*args, **kwargs) def EncodingConverter_CanConvert(*args, **kwargs): """EncodingConverter_CanConvert(int encIn, int encOut) -> bool""" - return _gdi.EncodingConverter_CanConvert(*args, **kwargs) + return _gdi_.EncodingConverter_CanConvert(*args, **kwargs) #---------------------------------------------------------------------------- # wxGTK sets the locale when initialized. Doing this at the Python @@ -2282,11 +2282,11 @@ if wx.Platform == "__WXMSW__": #--------------------------------------------------------------------------- -class DC(core.Object): +class DC(_core.Object): def __init__(self): raise RuntimeError, "No constructor defined" def __repr__(self): return "<%s.%s; proxy of C++ wxDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __del__(self, destroy=_gdi.delete_DC): + def __del__(self, destroy=_gdi_.delete_DC): """__del__(self)""" try: if self.thisown: destroy(self) @@ -2294,151 +2294,151 @@ class DC(core.Object): def BeginDrawing(*args, **kwargs): """BeginDrawing(self)""" - return _gdi.DC_BeginDrawing(*args, **kwargs) + return _gdi_.DC_BeginDrawing(*args, **kwargs) def EndDrawing(*args, **kwargs): """EndDrawing(self)""" - return _gdi.DC_EndDrawing(*args, **kwargs) + return _gdi_.DC_EndDrawing(*args, **kwargs) def FloodFillXY(*args, **kwargs): """FloodFillXY(self, int x, int y, Colour col, int style=FLOOD_SURFACE) -> bool""" - return _gdi.DC_FloodFillXY(*args, **kwargs) + return _gdi_.DC_FloodFillXY(*args, **kwargs) def FloodFill(*args, **kwargs): """FloodFill(self, Point pt, Colour col, int style=FLOOD_SURFACE) -> bool""" - return _gdi.DC_FloodFill(*args, **kwargs) + return _gdi_.DC_FloodFill(*args, **kwargs) def GetPixelXY(*args, **kwargs): """GetPixelXY(self, int x, int y) -> Colour""" - return _gdi.DC_GetPixelXY(*args, **kwargs) + return _gdi_.DC_GetPixelXY(*args, **kwargs) def GetPixel(*args, **kwargs): """GetPixel(self, Point pt) -> Colour""" - return _gdi.DC_GetPixel(*args, **kwargs) + return _gdi_.DC_GetPixel(*args, **kwargs) def DrawLineXY(*args, **kwargs): """DrawLineXY(self, int x1, int y1, int x2, int y2)""" - return _gdi.DC_DrawLineXY(*args, **kwargs) + return _gdi_.DC_DrawLineXY(*args, **kwargs) def DrawLine(*args, **kwargs): """DrawLine(self, Point pt1, Point pt2)""" - return _gdi.DC_DrawLine(*args, **kwargs) + return _gdi_.DC_DrawLine(*args, **kwargs) def CrossHairXY(*args, **kwargs): """CrossHairXY(self, int x, int y)""" - return _gdi.DC_CrossHairXY(*args, **kwargs) + return _gdi_.DC_CrossHairXY(*args, **kwargs) def CrossHair(*args, **kwargs): """CrossHair(self, Point pt)""" - return _gdi.DC_CrossHair(*args, **kwargs) + return _gdi_.DC_CrossHair(*args, **kwargs) def DrawArcXY(*args, **kwargs): """DrawArcXY(self, int x1, int y1, int x2, int y2, int xc, int yc)""" - return _gdi.DC_DrawArcXY(*args, **kwargs) + return _gdi_.DC_DrawArcXY(*args, **kwargs) def DrawArc(*args, **kwargs): """DrawArc(self, Point pt1, Point pt2, Point centre)""" - return _gdi.DC_DrawArc(*args, **kwargs) + return _gdi_.DC_DrawArc(*args, **kwargs) def DrawCheckMarkXY(*args, **kwargs): """DrawCheckMarkXY(self, int x, int y, int width, int height)""" - return _gdi.DC_DrawCheckMarkXY(*args, **kwargs) + return _gdi_.DC_DrawCheckMarkXY(*args, **kwargs) def DrawCheckMark(*args, **kwargs): """DrawCheckMark(self, Rect rect)""" - return _gdi.DC_DrawCheckMark(*args, **kwargs) + return _gdi_.DC_DrawCheckMark(*args, **kwargs) def DrawEllipticArcXY(*args, **kwargs): """DrawEllipticArcXY(self, int x, int y, int w, int h, double sa, double ea)""" - return _gdi.DC_DrawEllipticArcXY(*args, **kwargs) + return _gdi_.DC_DrawEllipticArcXY(*args, **kwargs) def DrawEllipticArc(*args, **kwargs): """DrawEllipticArc(self, Point pt, Size sz, double sa, double ea)""" - return _gdi.DC_DrawEllipticArc(*args, **kwargs) + return _gdi_.DC_DrawEllipticArc(*args, **kwargs) def DrawPointXY(*args, **kwargs): """DrawPointXY(self, int x, int y)""" - return _gdi.DC_DrawPointXY(*args, **kwargs) + return _gdi_.DC_DrawPointXY(*args, **kwargs) def DrawPoint(*args, **kwargs): """DrawPoint(self, Point pt)""" - return _gdi.DC_DrawPoint(*args, **kwargs) + return _gdi_.DC_DrawPoint(*args, **kwargs) def DrawRectangleXY(*args, **kwargs): """DrawRectangleXY(self, int x, int y, int width, int height)""" - return _gdi.DC_DrawRectangleXY(*args, **kwargs) + return _gdi_.DC_DrawRectangleXY(*args, **kwargs) def DrawRectangle(*args, **kwargs): """DrawRectangle(self, Point pt, Size sz)""" - return _gdi.DC_DrawRectangle(*args, **kwargs) + return _gdi_.DC_DrawRectangle(*args, **kwargs) def DrawRectangleRect(*args, **kwargs): """DrawRectangleRect(self, Rect rect)""" - return _gdi.DC_DrawRectangleRect(*args, **kwargs) + return _gdi_.DC_DrawRectangleRect(*args, **kwargs) def DrawRoundedRectangleXY(*args, **kwargs): """DrawRoundedRectangleXY(self, int x, int y, int width, int height, double radius)""" - return _gdi.DC_DrawRoundedRectangleXY(*args, **kwargs) + return _gdi_.DC_DrawRoundedRectangleXY(*args, **kwargs) def DrawRoundedRectangle(*args, **kwargs): """DrawRoundedRectangle(self, Point pt, Size sz, double radius)""" - return _gdi.DC_DrawRoundedRectangle(*args, **kwargs) + return _gdi_.DC_DrawRoundedRectangle(*args, **kwargs) def DrawRoundedRectangleRect(*args, **kwargs): """DrawRoundedRectangleRect(self, Rect r, double radius)""" - return _gdi.DC_DrawRoundedRectangleRect(*args, **kwargs) + return _gdi_.DC_DrawRoundedRectangleRect(*args, **kwargs) def DrawCircleXY(*args, **kwargs): """DrawCircleXY(self, int x, int y, int radius)""" - return _gdi.DC_DrawCircleXY(*args, **kwargs) + return _gdi_.DC_DrawCircleXY(*args, **kwargs) def DrawCircle(*args, **kwargs): """DrawCircle(self, Point pt, int radius)""" - return _gdi.DC_DrawCircle(*args, **kwargs) + return _gdi_.DC_DrawCircle(*args, **kwargs) def DrawEllipseXY(*args, **kwargs): """DrawEllipseXY(self, int x, int y, int width, int height)""" - return _gdi.DC_DrawEllipseXY(*args, **kwargs) + return _gdi_.DC_DrawEllipseXY(*args, **kwargs) def DrawEllipse(*args, **kwargs): """DrawEllipse(self, Point pt, Size sz)""" - return _gdi.DC_DrawEllipse(*args, **kwargs) + return _gdi_.DC_DrawEllipse(*args, **kwargs) def DrawEllipseRect(*args, **kwargs): """DrawEllipseRect(self, Rect rect)""" - return _gdi.DC_DrawEllipseRect(*args, **kwargs) + return _gdi_.DC_DrawEllipseRect(*args, **kwargs) def DrawIconXY(*args, **kwargs): """DrawIconXY(self, Icon icon, int x, int y)""" - return _gdi.DC_DrawIconXY(*args, **kwargs) + return _gdi_.DC_DrawIconXY(*args, **kwargs) def DrawIcon(*args, **kwargs): """DrawIcon(self, Icon icon, Point pt)""" - return _gdi.DC_DrawIcon(*args, **kwargs) + return _gdi_.DC_DrawIcon(*args, **kwargs) def DrawBitmapXY(*args, **kwargs): """DrawBitmapXY(self, Bitmap bmp, int x, int y, bool useMask=False)""" - return _gdi.DC_DrawBitmapXY(*args, **kwargs) + return _gdi_.DC_DrawBitmapXY(*args, **kwargs) def DrawBitmap(*args, **kwargs): """DrawBitmap(self, Bitmap bmp, Point pt, bool useMask=False)""" - return _gdi.DC_DrawBitmap(*args, **kwargs) + return _gdi_.DC_DrawBitmap(*args, **kwargs) def DrawTextXY(*args, **kwargs): """DrawTextXY(self, String text, int x, int y)""" - return _gdi.DC_DrawTextXY(*args, **kwargs) + return _gdi_.DC_DrawTextXY(*args, **kwargs) def DrawText(*args, **kwargs): """DrawText(self, String text, Point pt)""" - return _gdi.DC_DrawText(*args, **kwargs) + return _gdi_.DC_DrawText(*args, **kwargs) def DrawRotatedTextXY(*args, **kwargs): """DrawRotatedTextXY(self, String text, int x, int y, double angle)""" - return _gdi.DC_DrawRotatedTextXY(*args, **kwargs) + return _gdi_.DC_DrawRotatedTextXY(*args, **kwargs) def DrawRotatedText(*args, **kwargs): """DrawRotatedText(self, String text, Point pt, double angle)""" - return _gdi.DC_DrawRotatedText(*args, **kwargs) + return _gdi_.DC_DrawRotatedText(*args, **kwargs) def BlitXY(*args, **kwargs): """ @@ -2446,123 +2446,123 @@ class DC(core.Object): int xsrc, int ysrc, int rop=COPY, bool useMask=False, int xsrcMask=-1, int ysrcMask=-1) -> bool """ - return _gdi.DC_BlitXY(*args, **kwargs) + return _gdi_.DC_BlitXY(*args, **kwargs) def Blit(*args, **kwargs): """ Blit(self, Point destPt, Size sz, DC source, Point srcPt, int rop=COPY, bool useMask=False, Point srcPtMask=DefaultPosition) -> bool """ - return _gdi.DC_Blit(*args, **kwargs) + return _gdi_.DC_Blit(*args, **kwargs) def DrawLines(*args, **kwargs): """DrawLines(self, int points, Point points_array, int xoffset=0, int yoffset=0)""" - return _gdi.DC_DrawLines(*args, **kwargs) + return _gdi_.DC_DrawLines(*args, **kwargs) def DrawPolygon(*args, **kwargs): """ DrawPolygon(self, int points, Point points_array, int xoffset=0, int yoffset=0, int fillStyle=ODDEVEN_RULE) """ - return _gdi.DC_DrawPolygon(*args, **kwargs) + return _gdi_.DC_DrawPolygon(*args, **kwargs) def DrawLabel(*args, **kwargs): """ DrawLabel(self, String text, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP, int indexAccel=-1) """ - return _gdi.DC_DrawLabel(*args, **kwargs) + return _gdi_.DC_DrawLabel(*args, **kwargs) def DrawImageLabel(*args, **kwargs): """ DrawImageLabel(self, String text, Bitmap image, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP, int indexAccel=-1) -> Rect """ - return _gdi.DC_DrawImageLabel(*args, **kwargs) + return _gdi_.DC_DrawImageLabel(*args, **kwargs) def DrawSpline(*args, **kwargs): """DrawSpline(self, int points, Point points_array)""" - return _gdi.DC_DrawSpline(*args, **kwargs) + return _gdi_.DC_DrawSpline(*args, **kwargs) def Clear(*args, **kwargs): """Clear(self)""" - return _gdi.DC_Clear(*args, **kwargs) + return _gdi_.DC_Clear(*args, **kwargs) def StartDoc(*args, **kwargs): """StartDoc(self, String message) -> bool""" - return _gdi.DC_StartDoc(*args, **kwargs) + return _gdi_.DC_StartDoc(*args, **kwargs) def EndDoc(*args, **kwargs): """EndDoc(self)""" - return _gdi.DC_EndDoc(*args, **kwargs) + return _gdi_.DC_EndDoc(*args, **kwargs) def StartPage(*args, **kwargs): """StartPage(self)""" - return _gdi.DC_StartPage(*args, **kwargs) + return _gdi_.DC_StartPage(*args, **kwargs) def EndPage(*args, **kwargs): """EndPage(self)""" - return _gdi.DC_EndPage(*args, **kwargs) + return _gdi_.DC_EndPage(*args, **kwargs) def SetFont(*args, **kwargs): """SetFont(self, Font font)""" - return _gdi.DC_SetFont(*args, **kwargs) + return _gdi_.DC_SetFont(*args, **kwargs) def SetPen(*args, **kwargs): """SetPen(self, Pen pen)""" - return _gdi.DC_SetPen(*args, **kwargs) + return _gdi_.DC_SetPen(*args, **kwargs) def SetBrush(*args, **kwargs): """SetBrush(self, Brush brush)""" - return _gdi.DC_SetBrush(*args, **kwargs) + return _gdi_.DC_SetBrush(*args, **kwargs) def SetBackground(*args, **kwargs): """SetBackground(self, Brush brush)""" - return _gdi.DC_SetBackground(*args, **kwargs) + return _gdi_.DC_SetBackground(*args, **kwargs) def SetBackgroundMode(*args, **kwargs): """SetBackgroundMode(self, int mode)""" - return _gdi.DC_SetBackgroundMode(*args, **kwargs) + return _gdi_.DC_SetBackgroundMode(*args, **kwargs) def SetPalette(*args, **kwargs): """SetPalette(self, Palette palette)""" - return _gdi.DC_SetPalette(*args, **kwargs) + return _gdi_.DC_SetPalette(*args, **kwargs) def SetClippingRegionXY(*args, **kwargs): """SetClippingRegionXY(self, int x, int y, int width, int height)""" - return _gdi.DC_SetClippingRegionXY(*args, **kwargs) + return _gdi_.DC_SetClippingRegionXY(*args, **kwargs) def SetClippingRegion(*args, **kwargs): """SetClippingRegion(self, Point pt, Size sz)""" - return _gdi.DC_SetClippingRegion(*args, **kwargs) + return _gdi_.DC_SetClippingRegion(*args, **kwargs) def SetClippingRect(*args, **kwargs): """SetClippingRect(self, Rect rect)""" - return _gdi.DC_SetClippingRect(*args, **kwargs) + return _gdi_.DC_SetClippingRect(*args, **kwargs) def SetClippingRegionAsRegion(*args, **kwargs): """SetClippingRegionAsRegion(self, Region region)""" - return _gdi.DC_SetClippingRegionAsRegion(*args, **kwargs) + return _gdi_.DC_SetClippingRegionAsRegion(*args, **kwargs) def DestroyClippingRegion(*args, **kwargs): """DestroyClippingRegion(self)""" - return _gdi.DC_DestroyClippingRegion(*args, **kwargs) + return _gdi_.DC_DestroyClippingRegion(*args, **kwargs) def GetClippingBox(*args, **kwargs): """GetClippingBox() -> (x, y, width, height)""" - return _gdi.DC_GetClippingBox(*args, **kwargs) + return _gdi_.DC_GetClippingBox(*args, **kwargs) def GetClippingRect(*args, **kwargs): """GetClippingRect(self) -> Rect""" - return _gdi.DC_GetClippingRect(*args, **kwargs) + return _gdi_.DC_GetClippingRect(*args, **kwargs) def GetCharHeight(*args, **kwargs): """GetCharHeight(self) -> int""" - return _gdi.DC_GetCharHeight(*args, **kwargs) + return _gdi_.DC_GetCharHeight(*args, **kwargs) def GetCharWidth(*args, **kwargs): """GetCharWidth(self) -> int""" - return _gdi.DC_GetCharWidth(*args, **kwargs) + return _gdi_.DC_GetCharWidth(*args, **kwargs) def GetTextExtent(*args, **kwargs): """ @@ -2571,7 +2571,7 @@ class DC(core.Object): Get the width and height of the text using the current font. Only works for single line strings. """ - return _gdi.DC_GetTextExtent(*args, **kwargs) + return _gdi_.DC_GetTextExtent(*args, **kwargs) def GetFullTextExtent(*args, **kwargs): """ @@ -2581,7 +2581,7 @@ class DC(core.Object): Get the width, height, decent and leading of the text using the current or specified font. Only works for single line strings. """ - return _gdi.DC_GetFullTextExtent(*args, **kwargs) + return _gdi_.DC_GetFullTextExtent(*args, **kwargs) def GetMultiLineTextExtent(*args, **kwargs): """ @@ -2591,11 +2591,11 @@ class DC(core.Object): Get the width, height, decent and leading of the text using the current or specified font. Works for single as well as multi-line strings. """ - return _gdi.DC_GetMultiLineTextExtent(*args, **kwargs) + return _gdi_.DC_GetMultiLineTextExtent(*args, **kwargs) def GetPartialTextExtents(*args, **kwargs): """GetPartialTextExtents(self, String text) -> wxArrayInt""" - return _gdi.DC_GetPartialTextExtents(*args, **kwargs) + return _gdi_.DC_GetPartialTextExtents(*args, **kwargs) def GetSize(*args, **kwargs): """ @@ -2603,7 +2603,7 @@ class DC(core.Object): Get the DC size in device units. """ - return _gdi.DC_GetSize(*args, **kwargs) + return _gdi_.DC_GetSize(*args, **kwargs) def GetSizeTuple(*args, **kwargs): """ @@ -2611,7 +2611,7 @@ class DC(core.Object): Get the DC size in device units. """ - return _gdi.DC_GetSizeTuple(*args, **kwargs) + return _gdi_.DC_GetSizeTuple(*args, **kwargs) def GetSizeMM(*args, **kwargs): """ @@ -2619,7 +2619,7 @@ class DC(core.Object): Get the DC size in milimeters. """ - return _gdi.DC_GetSizeMM(*args, **kwargs) + return _gdi_.DC_GetSizeMM(*args, **kwargs) def GetSizeMMTuple(*args, **kwargs): """ @@ -2627,219 +2627,219 @@ class DC(core.Object): Get the DC size in milimeters. """ - return _gdi.DC_GetSizeMMTuple(*args, **kwargs) + return _gdi_.DC_GetSizeMMTuple(*args, **kwargs) def DeviceToLogicalX(*args, **kwargs): """DeviceToLogicalX(self, int x) -> int""" - return _gdi.DC_DeviceToLogicalX(*args, **kwargs) + return _gdi_.DC_DeviceToLogicalX(*args, **kwargs) def DeviceToLogicalY(*args, **kwargs): """DeviceToLogicalY(self, int y) -> int""" - return _gdi.DC_DeviceToLogicalY(*args, **kwargs) + return _gdi_.DC_DeviceToLogicalY(*args, **kwargs) def DeviceToLogicalXRel(*args, **kwargs): """DeviceToLogicalXRel(self, int x) -> int""" - return _gdi.DC_DeviceToLogicalXRel(*args, **kwargs) + return _gdi_.DC_DeviceToLogicalXRel(*args, **kwargs) def DeviceToLogicalYRel(*args, **kwargs): """DeviceToLogicalYRel(self, int y) -> int""" - return _gdi.DC_DeviceToLogicalYRel(*args, **kwargs) + return _gdi_.DC_DeviceToLogicalYRel(*args, **kwargs) def LogicalToDeviceX(*args, **kwargs): """LogicalToDeviceX(self, int x) -> int""" - return _gdi.DC_LogicalToDeviceX(*args, **kwargs) + return _gdi_.DC_LogicalToDeviceX(*args, **kwargs) def LogicalToDeviceY(*args, **kwargs): """LogicalToDeviceY(self, int y) -> int""" - return _gdi.DC_LogicalToDeviceY(*args, **kwargs) + return _gdi_.DC_LogicalToDeviceY(*args, **kwargs) def LogicalToDeviceXRel(*args, **kwargs): """LogicalToDeviceXRel(self, int x) -> int""" - return _gdi.DC_LogicalToDeviceXRel(*args, **kwargs) + return _gdi_.DC_LogicalToDeviceXRel(*args, **kwargs) def LogicalToDeviceYRel(*args, **kwargs): """LogicalToDeviceYRel(self, int y) -> int""" - return _gdi.DC_LogicalToDeviceYRel(*args, **kwargs) + return _gdi_.DC_LogicalToDeviceYRel(*args, **kwargs) def CanDrawBitmap(*args, **kwargs): """CanDrawBitmap(self) -> bool""" - return _gdi.DC_CanDrawBitmap(*args, **kwargs) + return _gdi_.DC_CanDrawBitmap(*args, **kwargs) def CanGetTextExtent(*args, **kwargs): """CanGetTextExtent(self) -> bool""" - return _gdi.DC_CanGetTextExtent(*args, **kwargs) + return _gdi_.DC_CanGetTextExtent(*args, **kwargs) def GetDepth(*args, **kwargs): """GetDepth(self) -> int""" - return _gdi.DC_GetDepth(*args, **kwargs) + return _gdi_.DC_GetDepth(*args, **kwargs) def GetPPI(*args, **kwargs): """GetPPI(self) -> Size""" - return _gdi.DC_GetPPI(*args, **kwargs) + return _gdi_.DC_GetPPI(*args, **kwargs) def Ok(*args, **kwargs): """Ok(self) -> bool""" - return _gdi.DC_Ok(*args, **kwargs) + return _gdi_.DC_Ok(*args, **kwargs) def GetBackgroundMode(*args, **kwargs): """GetBackgroundMode(self) -> int""" - return _gdi.DC_GetBackgroundMode(*args, **kwargs) + return _gdi_.DC_GetBackgroundMode(*args, **kwargs) def GetBackground(*args, **kwargs): """GetBackground(self) -> Brush""" - return _gdi.DC_GetBackground(*args, **kwargs) + return _gdi_.DC_GetBackground(*args, **kwargs) def GetBrush(*args, **kwargs): """GetBrush(self) -> Brush""" - return _gdi.DC_GetBrush(*args, **kwargs) + return _gdi_.DC_GetBrush(*args, **kwargs) def GetFont(*args, **kwargs): """GetFont(self) -> Font""" - return _gdi.DC_GetFont(*args, **kwargs) + return _gdi_.DC_GetFont(*args, **kwargs) def GetPen(*args, **kwargs): """GetPen(self) -> Pen""" - return _gdi.DC_GetPen(*args, **kwargs) + return _gdi_.DC_GetPen(*args, **kwargs) def GetTextBackground(*args, **kwargs): """GetTextBackground(self) -> Colour""" - return _gdi.DC_GetTextBackground(*args, **kwargs) + return _gdi_.DC_GetTextBackground(*args, **kwargs) def GetTextForeground(*args, **kwargs): """GetTextForeground(self) -> Colour""" - return _gdi.DC_GetTextForeground(*args, **kwargs) + return _gdi_.DC_GetTextForeground(*args, **kwargs) def SetTextForeground(*args, **kwargs): """SetTextForeground(self, Colour colour)""" - return _gdi.DC_SetTextForeground(*args, **kwargs) + return _gdi_.DC_SetTextForeground(*args, **kwargs) def SetTextBackground(*args, **kwargs): """SetTextBackground(self, Colour colour)""" - return _gdi.DC_SetTextBackground(*args, **kwargs) + return _gdi_.DC_SetTextBackground(*args, **kwargs) def GetMapMode(*args, **kwargs): """GetMapMode(self) -> int""" - return _gdi.DC_GetMapMode(*args, **kwargs) + return _gdi_.DC_GetMapMode(*args, **kwargs) def SetMapMode(*args, **kwargs): """SetMapMode(self, int mode)""" - return _gdi.DC_SetMapMode(*args, **kwargs) + return _gdi_.DC_SetMapMode(*args, **kwargs) def GetUserScale(*args, **kwargs): """GetUserScale() -> (xScale, yScale)""" - return _gdi.DC_GetUserScale(*args, **kwargs) + return _gdi_.DC_GetUserScale(*args, **kwargs) def SetUserScale(*args, **kwargs): """SetUserScale(self, double x, double y)""" - return _gdi.DC_SetUserScale(*args, **kwargs) + return _gdi_.DC_SetUserScale(*args, **kwargs) def GetLogicalScale(*args, **kwargs): """GetLogicalScale() -> (xScale, yScale)""" - return _gdi.DC_GetLogicalScale(*args, **kwargs) + return _gdi_.DC_GetLogicalScale(*args, **kwargs) def SetLogicalScale(*args, **kwargs): """SetLogicalScale(self, double x, double y)""" - return _gdi.DC_SetLogicalScale(*args, **kwargs) + return _gdi_.DC_SetLogicalScale(*args, **kwargs) def GetLogicalOrigin(*args, **kwargs): """GetLogicalOrigin(self) -> Point""" - return _gdi.DC_GetLogicalOrigin(*args, **kwargs) + return _gdi_.DC_GetLogicalOrigin(*args, **kwargs) def GetLogicalOriginTuple(*args, **kwargs): """GetLogicalOriginTuple() -> (x,y)""" - return _gdi.DC_GetLogicalOriginTuple(*args, **kwargs) + return _gdi_.DC_GetLogicalOriginTuple(*args, **kwargs) def SetLogicalOrigin(*args, **kwargs): """SetLogicalOrigin(self, int x, int y)""" - return _gdi.DC_SetLogicalOrigin(*args, **kwargs) + return _gdi_.DC_SetLogicalOrigin(*args, **kwargs) def GetDeviceOrigin(*args, **kwargs): """GetDeviceOrigin(self) -> Point""" - return _gdi.DC_GetDeviceOrigin(*args, **kwargs) + return _gdi_.DC_GetDeviceOrigin(*args, **kwargs) def GetDeviceOriginTuple(*args, **kwargs): """GetDeviceOriginTuple() -> (x,y)""" - return _gdi.DC_GetDeviceOriginTuple(*args, **kwargs) + return _gdi_.DC_GetDeviceOriginTuple(*args, **kwargs) def SetDeviceOrigin(*args, **kwargs): """SetDeviceOrigin(self, int x, int y)""" - return _gdi.DC_SetDeviceOrigin(*args, **kwargs) + return _gdi_.DC_SetDeviceOrigin(*args, **kwargs) def SetAxisOrientation(*args, **kwargs): """SetAxisOrientation(self, bool xLeftRight, bool yBottomUp)""" - return _gdi.DC_SetAxisOrientation(*args, **kwargs) + return _gdi_.DC_SetAxisOrientation(*args, **kwargs) def GetLogicalFunction(*args, **kwargs): """GetLogicalFunction(self) -> int""" - return _gdi.DC_GetLogicalFunction(*args, **kwargs) + return _gdi_.DC_GetLogicalFunction(*args, **kwargs) def SetLogicalFunction(*args, **kwargs): """SetLogicalFunction(self, int function)""" - return _gdi.DC_SetLogicalFunction(*args, **kwargs) + return _gdi_.DC_SetLogicalFunction(*args, **kwargs) def SetOptimization(*args, **kwargs): """SetOptimization(self, bool opt)""" - return _gdi.DC_SetOptimization(*args, **kwargs) + return _gdi_.DC_SetOptimization(*args, **kwargs) def GetOptimization(*args, **kwargs): """GetOptimization(self) -> bool""" - return _gdi.DC_GetOptimization(*args, **kwargs) + return _gdi_.DC_GetOptimization(*args, **kwargs) def CalcBoundingBox(*args, **kwargs): """CalcBoundingBox(self, int x, int y)""" - return _gdi.DC_CalcBoundingBox(*args, **kwargs) + return _gdi_.DC_CalcBoundingBox(*args, **kwargs) def ResetBoundingBox(*args, **kwargs): """ResetBoundingBox(self)""" - return _gdi.DC_ResetBoundingBox(*args, **kwargs) + return _gdi_.DC_ResetBoundingBox(*args, **kwargs) def MinX(*args, **kwargs): """MinX(self) -> int""" - return _gdi.DC_MinX(*args, **kwargs) + return _gdi_.DC_MinX(*args, **kwargs) def MaxX(*args, **kwargs): """MaxX(self) -> int""" - return _gdi.DC_MaxX(*args, **kwargs) + return _gdi_.DC_MaxX(*args, **kwargs) def MinY(*args, **kwargs): """MinY(self) -> int""" - return _gdi.DC_MinY(*args, **kwargs) + return _gdi_.DC_MinY(*args, **kwargs) def MaxY(*args, **kwargs): """MaxY(self) -> int""" - return _gdi.DC_MaxY(*args, **kwargs) + return _gdi_.DC_MaxY(*args, **kwargs) def GetBoundingBox(*args, **kwargs): """GetBoundingBox() -> (x1,y1, x2,y2)""" - return _gdi.DC_GetBoundingBox(*args, **kwargs) + return _gdi_.DC_GetBoundingBox(*args, **kwargs) def __nonzero__(self): return self.Ok() def _DrawPointList(*args, **kwargs): """_DrawPointList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject""" - return _gdi.DC__DrawPointList(*args, **kwargs) + return _gdi_.DC__DrawPointList(*args, **kwargs) def _DrawLineList(*args, **kwargs): """_DrawLineList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject""" - return _gdi.DC__DrawLineList(*args, **kwargs) + return _gdi_.DC__DrawLineList(*args, **kwargs) def _DrawRectangleList(*args, **kwargs): """_DrawRectangleList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject""" - return _gdi.DC__DrawRectangleList(*args, **kwargs) + return _gdi_.DC__DrawRectangleList(*args, **kwargs) def _DrawEllipseList(*args, **kwargs): """_DrawEllipseList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject""" - return _gdi.DC__DrawEllipseList(*args, **kwargs) + return _gdi_.DC__DrawEllipseList(*args, **kwargs) def _DrawPolygonList(*args, **kwargs): """_DrawPolygonList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject""" - return _gdi.DC__DrawPolygonList(*args, **kwargs) + return _gdi_.DC__DrawPolygonList(*args, **kwargs) def _DrawTextList(*args, **kwargs): """ _DrawTextList(self, PyObject textList, PyObject pyPoints, PyObject foregroundList, PyObject backgroundList) -> PyObject """ - return _gdi.DC__DrawTextList(*args, **kwargs) + return _gdi_.DC__DrawTextList(*args, **kwargs) def DrawPointList(self, points, pens=None): if pens is None: @@ -2939,7 +2939,7 @@ class DCPtr(DC): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = DC -_gdi.DC_swigregister(DCPtr) +_gdi_.DC_swigregister(DCPtr) #--------------------------------------------------------------------------- @@ -2948,13 +2948,13 @@ class MemoryDC(DC): return "<%s.%s; proxy of C++ wxMemoryDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> MemoryDC""" - newobj = _gdi.new_MemoryDC(*args, **kwargs) + newobj = _gdi_.new_MemoryDC(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def SelectObject(*args, **kwargs): """SelectObject(self, Bitmap bitmap)""" - return _gdi.MemoryDC_SelectObject(*args, **kwargs) + return _gdi_.MemoryDC_SelectObject(*args, **kwargs) class MemoryDCPtr(MemoryDC): @@ -2962,11 +2962,11 @@ class MemoryDCPtr(MemoryDC): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = MemoryDC -_gdi.MemoryDC_swigregister(MemoryDCPtr) +_gdi_.MemoryDC_swigregister(MemoryDCPtr) def MemoryDCFromDC(*args, **kwargs): """MemoryDCFromDC(DC oldDC) -> MemoryDC""" - val = _gdi.new_MemoryDCFromDC(*args, **kwargs) + val = _gdi_.new_MemoryDCFromDC(*args, **kwargs) val.thisown = 1 return val @@ -2980,13 +2980,13 @@ class BufferedDC(MemoryDC): __init__(self, DC dc, Bitmap buffer) -> BufferedDC __init__(self, DC dc, Size area) -> BufferedDC """ - newobj = _gdi.new_BufferedDC(*args) + newobj = _gdi_.new_BufferedDC(*args) self.this = newobj.this self.thisown = 1 del newobj.thisown self._dc = args[0] # save a ref so the other dc will not be deleted before self - def __del__(self, destroy=_gdi.delete_BufferedDC): + def __del__(self, destroy=_gdi_.delete_BufferedDC): """__del__(self)""" try: if self.thisown: destroy(self) @@ -2994,7 +2994,7 @@ class BufferedDC(MemoryDC): def UnMask(*args, **kwargs): """UnMask(self)""" - return _gdi.BufferedDC_UnMask(*args, **kwargs) + return _gdi_.BufferedDC_UnMask(*args, **kwargs) class BufferedDCPtr(BufferedDC): @@ -3002,11 +3002,11 @@ class BufferedDCPtr(BufferedDC): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = BufferedDC -_gdi.BufferedDC_swigregister(BufferedDCPtr) +_gdi_.BufferedDC_swigregister(BufferedDCPtr) def BufferedDCInternalBuffer(*args): """BufferedDCInternalBuffer(DC dc, Size area) -> BufferedDC""" - val = _gdi.new_BufferedDCInternalBuffer(*args) + val = _gdi_.new_BufferedDCInternalBuffer(*args) val.thisown = 1 val._dc = args[0] # save a ref so the other dc will not be deleted before self return val @@ -3016,7 +3016,7 @@ class BufferedPaintDC(BufferedDC): return "<%s.%s; proxy of C++ wxBufferedPaintDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, Window window, Bitmap buffer=NullBitmap) -> BufferedPaintDC""" - newobj = _gdi.new_BufferedPaintDC(*args, **kwargs) + newobj = _gdi_.new_BufferedPaintDC(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -3026,7 +3026,7 @@ class BufferedPaintDCPtr(BufferedPaintDC): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = BufferedPaintDC -_gdi.BufferedPaintDC_swigregister(BufferedPaintDCPtr) +_gdi_.BufferedPaintDC_swigregister(BufferedPaintDCPtr) #--------------------------------------------------------------------------- @@ -3035,21 +3035,21 @@ class ScreenDC(DC): return "<%s.%s; proxy of C++ wxScreenDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> ScreenDC""" - newobj = _gdi.new_ScreenDC(*args, **kwargs) + newobj = _gdi_.new_ScreenDC(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def StartDrawingOnTopWin(*args, **kwargs): """StartDrawingOnTopWin(self, Window window) -> bool""" - return _gdi.ScreenDC_StartDrawingOnTopWin(*args, **kwargs) + return _gdi_.ScreenDC_StartDrawingOnTopWin(*args, **kwargs) def StartDrawingOnTop(*args, **kwargs): """StartDrawingOnTop(self, Rect rect=None) -> bool""" - return _gdi.ScreenDC_StartDrawingOnTop(*args, **kwargs) + return _gdi_.ScreenDC_StartDrawingOnTop(*args, **kwargs) def EndDrawingOnTop(*args, **kwargs): """EndDrawingOnTop(self) -> bool""" - return _gdi.ScreenDC_EndDrawingOnTop(*args, **kwargs) + return _gdi_.ScreenDC_EndDrawingOnTop(*args, **kwargs) class ScreenDCPtr(ScreenDC): @@ -3057,7 +3057,7 @@ class ScreenDCPtr(ScreenDC): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = ScreenDC -_gdi.ScreenDC_swigregister(ScreenDCPtr) +_gdi_.ScreenDC_swigregister(ScreenDCPtr) #--------------------------------------------------------------------------- @@ -3066,7 +3066,7 @@ class ClientDC(DC): return "<%s.%s; proxy of C++ wxClientDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, Window win) -> ClientDC""" - newobj = _gdi.new_ClientDC(*args, **kwargs) + newobj = _gdi_.new_ClientDC(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -3076,7 +3076,7 @@ class ClientDCPtr(ClientDC): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = ClientDC -_gdi.ClientDC_swigregister(ClientDCPtr) +_gdi_.ClientDC_swigregister(ClientDCPtr) #--------------------------------------------------------------------------- @@ -3085,7 +3085,7 @@ class PaintDC(DC): return "<%s.%s; proxy of C++ wxPaintDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, Window win) -> PaintDC""" - newobj = _gdi.new_PaintDC(*args, **kwargs) + newobj = _gdi_.new_PaintDC(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -3095,7 +3095,7 @@ class PaintDCPtr(PaintDC): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = PaintDC -_gdi.PaintDC_swigregister(PaintDCPtr) +_gdi_.PaintDC_swigregister(PaintDCPtr) #--------------------------------------------------------------------------- @@ -3104,7 +3104,7 @@ class WindowDC(DC): return "<%s.%s; proxy of C++ wxWindowDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, Window win) -> WindowDC""" - newobj = _gdi.new_WindowDC(*args, **kwargs) + newobj = _gdi_.new_WindowDC(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -3114,7 +3114,7 @@ class WindowDCPtr(WindowDC): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = WindowDC -_gdi.WindowDC_swigregister(WindowDCPtr) +_gdi_.WindowDC_swigregister(WindowDCPtr) #--------------------------------------------------------------------------- @@ -3123,7 +3123,7 @@ class MirrorDC(DC): return "<%s.%s; proxy of C++ wxMirrorDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, DC dc, bool mirror) -> MirrorDC""" - newobj = _gdi.new_MirrorDC(*args, **kwargs) + newobj = _gdi_.new_MirrorDC(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -3133,7 +3133,7 @@ class MirrorDCPtr(MirrorDC): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = MirrorDC -_gdi.MirrorDC_swigregister(MirrorDCPtr) +_gdi_.MirrorDC_swigregister(MirrorDCPtr) #--------------------------------------------------------------------------- @@ -3142,26 +3142,26 @@ class PostScriptDC(DC): return "<%s.%s; proxy of C++ wxPostScriptDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, wxPrintData printData) -> PostScriptDC""" - newobj = _gdi.new_PostScriptDC(*args, **kwargs) + newobj = _gdi_.new_PostScriptDC(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def GetPrintData(*args, **kwargs): """GetPrintData(self) -> wxPrintData""" - return _gdi.PostScriptDC_GetPrintData(*args, **kwargs) + return _gdi_.PostScriptDC_GetPrintData(*args, **kwargs) def SetPrintData(*args, **kwargs): """SetPrintData(self, wxPrintData data)""" - return _gdi.PostScriptDC_SetPrintData(*args, **kwargs) + return _gdi_.PostScriptDC_SetPrintData(*args, **kwargs) def SetResolution(*args, **kwargs): """PostScriptDC.SetResolution(int ppi)""" - return _gdi.PostScriptDC_SetResolution(*args, **kwargs) + return _gdi_.PostScriptDC_SetResolution(*args, **kwargs) SetResolution = staticmethod(SetResolution) def GetResolution(*args, **kwargs): """PostScriptDC.GetResolution() -> int""" - return _gdi.PostScriptDC_GetResolution(*args, **kwargs) + return _gdi_.PostScriptDC_GetResolution(*args, **kwargs) GetResolution = staticmethod(GetResolution) @@ -3170,24 +3170,24 @@ class PostScriptDCPtr(PostScriptDC): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = PostScriptDC -_gdi.PostScriptDC_swigregister(PostScriptDCPtr) +_gdi_.PostScriptDC_swigregister(PostScriptDCPtr) def PostScriptDC_SetResolution(*args, **kwargs): """PostScriptDC_SetResolution(int ppi)""" - return _gdi.PostScriptDC_SetResolution(*args, **kwargs) + return _gdi_.PostScriptDC_SetResolution(*args, **kwargs) def PostScriptDC_GetResolution(*args, **kwargs): """PostScriptDC_GetResolution() -> int""" - return _gdi.PostScriptDC_GetResolution(*args, **kwargs) + return _gdi_.PostScriptDC_GetResolution(*args, **kwargs) #--------------------------------------------------------------------------- -class MetaFile(core.Object): +class MetaFile(_core.Object): def __repr__(self): return "<%s.%s; proxy of C++ wxMetaFile instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, String filename=EmptyString) -> MetaFile""" - newobj = _gdi.new_MetaFile(*args, **kwargs) + newobj = _gdi_.new_MetaFile(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -3197,7 +3197,7 @@ class MetaFilePtr(MetaFile): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = MetaFile -_gdi.MetaFile_swigregister(MetaFilePtr) +_gdi_.MetaFile_swigregister(MetaFilePtr) class MetaFileDC(DC): def __repr__(self): @@ -3207,7 +3207,7 @@ class MetaFileDC(DC): __init__(self, String filename=EmptyString, int width=0, int height=0, String description=EmptyString) -> MetaFileDC """ - newobj = _gdi.new_MetaFileDC(*args, **kwargs) + newobj = _gdi_.new_MetaFileDC(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -3217,14 +3217,14 @@ class MetaFileDCPtr(MetaFileDC): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = MetaFileDC -_gdi.MetaFileDC_swigregister(MetaFileDCPtr) +_gdi_.MetaFileDC_swigregister(MetaFileDCPtr) class PrinterDC(DC): def __repr__(self): return "<%s.%s; proxy of C++ wxPrinterDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, wxPrintData printData) -> PrinterDC""" - newobj = _gdi.new_PrinterDC(*args, **kwargs) + newobj = _gdi_.new_PrinterDC(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -3234,7 +3234,7 @@ class PrinterDCPtr(PrinterDC): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = PrinterDC -_gdi.PrinterDC_swigregister(PrinterDCPtr) +_gdi_.PrinterDC_swigregister(PrinterDCPtr) class DC_old(DC): """DC class that has methods with 2.4 compatible parameters.""" @@ -3478,23 +3478,23 @@ class PrinterDC_old(PrinterDC): #--------------------------------------------------------------------------- -IMAGELIST_DRAW_NORMAL = _gdi.IMAGELIST_DRAW_NORMAL -IMAGELIST_DRAW_TRANSPARENT = _gdi.IMAGELIST_DRAW_TRANSPARENT -IMAGELIST_DRAW_SELECTED = _gdi.IMAGELIST_DRAW_SELECTED -IMAGELIST_DRAW_FOCUSED = _gdi.IMAGELIST_DRAW_FOCUSED -IMAGE_LIST_NORMAL = _gdi.IMAGE_LIST_NORMAL -IMAGE_LIST_SMALL = _gdi.IMAGE_LIST_SMALL -IMAGE_LIST_STATE = _gdi.IMAGE_LIST_STATE -class ImageList(core.Object): +IMAGELIST_DRAW_NORMAL = _gdi_.IMAGELIST_DRAW_NORMAL +IMAGELIST_DRAW_TRANSPARENT = _gdi_.IMAGELIST_DRAW_TRANSPARENT +IMAGELIST_DRAW_SELECTED = _gdi_.IMAGELIST_DRAW_SELECTED +IMAGELIST_DRAW_FOCUSED = _gdi_.IMAGELIST_DRAW_FOCUSED +IMAGE_LIST_NORMAL = _gdi_.IMAGE_LIST_NORMAL +IMAGE_LIST_SMALL = _gdi_.IMAGE_LIST_SMALL +IMAGE_LIST_STATE = _gdi_.IMAGE_LIST_STATE +class ImageList(_core.Object): def __repr__(self): return "<%s.%s; proxy of C++ wxImageList instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, int width, int height, int mask=True, int initialCount=1) -> ImageList""" - newobj = _gdi.new_ImageList(*args, **kwargs) + newobj = _gdi_.new_ImageList(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_gdi.delete_ImageList): + def __del__(self, destroy=_gdi_.delete_ImageList): """__del__(self)""" try: if self.thisown: destroy(self) @@ -3502,42 +3502,42 @@ class ImageList(core.Object): def Add(*args, **kwargs): """Add(self, Bitmap bitmap, Bitmap mask=NullBitmap) -> int""" - return _gdi.ImageList_Add(*args, **kwargs) + return _gdi_.ImageList_Add(*args, **kwargs) def AddWithColourMask(*args, **kwargs): """AddWithColourMask(self, Bitmap bitmap, Colour maskColour) -> int""" - return _gdi.ImageList_AddWithColourMask(*args, **kwargs) + return _gdi_.ImageList_AddWithColourMask(*args, **kwargs) def AddIcon(*args, **kwargs): """AddIcon(self, Icon icon) -> int""" - return _gdi.ImageList_AddIcon(*args, **kwargs) + return _gdi_.ImageList_AddIcon(*args, **kwargs) def Replace(*args, **kwargs): """Replace(self, int index, Bitmap bitmap) -> bool""" - return _gdi.ImageList_Replace(*args, **kwargs) + return _gdi_.ImageList_Replace(*args, **kwargs) def Draw(*args, **kwargs): """ Draw(self, int index, DC dc, int x, int x, int flags=IMAGELIST_DRAW_NORMAL, bool solidBackground=False) -> bool """ - return _gdi.ImageList_Draw(*args, **kwargs) + return _gdi_.ImageList_Draw(*args, **kwargs) def GetImageCount(*args, **kwargs): """GetImageCount(self) -> int""" - return _gdi.ImageList_GetImageCount(*args, **kwargs) + return _gdi_.ImageList_GetImageCount(*args, **kwargs) def Remove(*args, **kwargs): """Remove(self, int index) -> bool""" - return _gdi.ImageList_Remove(*args, **kwargs) + return _gdi_.ImageList_Remove(*args, **kwargs) def RemoveAll(*args, **kwargs): """RemoveAll(self) -> bool""" - return _gdi.ImageList_RemoveAll(*args, **kwargs) + return _gdi_.ImageList_RemoveAll(*args, **kwargs) def GetSize(*args, **kwargs): """GetSize() -> (width,height)""" - return _gdi.ImageList_GetSize(*args, **kwargs) + return _gdi_.ImageList_GetSize(*args, **kwargs) class ImageListPtr(ImageList): @@ -3545,29 +3545,29 @@ class ImageListPtr(ImageList): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = ImageList -_gdi.ImageList_swigregister(ImageListPtr) +_gdi_.ImageList_swigregister(ImageListPtr) #--------------------------------------------------------------------------- -class PenList(core.Object): +class PenList(_core.Object): def __init__(self): raise RuntimeError, "No constructor defined" def __repr__(self): return "<%s.%s; proxy of C++ wxPenList instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def AddPen(*args, **kwargs): """AddPen(self, Pen pen)""" - return _gdi.PenList_AddPen(*args, **kwargs) + return _gdi_.PenList_AddPen(*args, **kwargs) def FindOrCreatePen(*args, **kwargs): """FindOrCreatePen(self, Colour colour, int width, int style) -> Pen""" - return _gdi.PenList_FindOrCreatePen(*args, **kwargs) + return _gdi_.PenList_FindOrCreatePen(*args, **kwargs) def RemovePen(*args, **kwargs): """RemovePen(self, Pen pen)""" - return _gdi.PenList_RemovePen(*args, **kwargs) + return _gdi_.PenList_RemovePen(*args, **kwargs) def GetCount(*args, **kwargs): """GetCount(self) -> int""" - return _gdi.PenList_GetCount(*args, **kwargs) + return _gdi_.PenList_GetCount(*args, **kwargs) class PenListPtr(PenList): @@ -3575,8 +3575,8 @@ class PenListPtr(PenList): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = PenList -_gdi.PenList_swigregister(PenListPtr) -cvar = _gdi.cvar +_gdi_.PenList_swigregister(PenListPtr) +cvar = _gdi_.cvar NORMAL_FONT = cvar.NORMAL_FONT SMALL_FONT = cvar.SMALL_FONT ITALIC_FONT = cvar.ITALIC_FONT @@ -3620,25 +3620,25 @@ NullPalette = cvar.NullPalette NullFont = cvar.NullFont NullColour = cvar.NullColour -class BrushList(core.Object): +class BrushList(_core.Object): def __init__(self): raise RuntimeError, "No constructor defined" def __repr__(self): return "<%s.%s; proxy of C++ wxBrushList instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def AddBrush(*args, **kwargs): """AddBrush(self, Brush brush)""" - return _gdi.BrushList_AddBrush(*args, **kwargs) + return _gdi_.BrushList_AddBrush(*args, **kwargs) def FindOrCreateBrush(*args, **kwargs): """FindOrCreateBrush(self, Colour colour, int style) -> Brush""" - return _gdi.BrushList_FindOrCreateBrush(*args, **kwargs) + return _gdi_.BrushList_FindOrCreateBrush(*args, **kwargs) def RemoveBrush(*args, **kwargs): """RemoveBrush(self, Brush brush)""" - return _gdi.BrushList_RemoveBrush(*args, **kwargs) + return _gdi_.BrushList_RemoveBrush(*args, **kwargs) def GetCount(*args, **kwargs): """GetCount(self) -> int""" - return _gdi.BrushList_GetCount(*args, **kwargs) + return _gdi_.BrushList_GetCount(*args, **kwargs) class BrushListPtr(BrushList): @@ -3646,18 +3646,18 @@ class BrushListPtr(BrushList): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = BrushList -_gdi.BrushList_swigregister(BrushListPtr) +_gdi_.BrushList_swigregister(BrushListPtr) -class ColourDatabase(core.Object): +class ColourDatabase(_core.Object): def __repr__(self): return "<%s.%s; proxy of C++ wxColourDatabase instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> ColourDatabase""" - newobj = _gdi.new_ColourDatabase(*args, **kwargs) + newobj = _gdi_.new_ColourDatabase(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_gdi.delete_ColourDatabase): + def __del__(self, destroy=_gdi_.delete_ColourDatabase): """__del__(self)""" try: if self.thisown: destroy(self) @@ -3665,20 +3665,20 @@ class ColourDatabase(core.Object): def Find(*args, **kwargs): """Find(self, String name) -> Colour""" - return _gdi.ColourDatabase_Find(*args, **kwargs) + return _gdi_.ColourDatabase_Find(*args, **kwargs) def FindName(*args, **kwargs): """FindName(self, Colour colour) -> String""" - return _gdi.ColourDatabase_FindName(*args, **kwargs) + return _gdi_.ColourDatabase_FindName(*args, **kwargs) FindColour = Find def AddColour(*args, **kwargs): """AddColour(self, String name, Colour colour)""" - return _gdi.ColourDatabase_AddColour(*args, **kwargs) + return _gdi_.ColourDatabase_AddColour(*args, **kwargs) def Append(*args, **kwargs): """Append(self, String name, int red, int green, int blue)""" - return _gdi.ColourDatabase_Append(*args, **kwargs) + return _gdi_.ColourDatabase_Append(*args, **kwargs) class ColourDatabasePtr(ColourDatabase): @@ -3686,15 +3686,15 @@ class ColourDatabasePtr(ColourDatabase): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = ColourDatabase -_gdi.ColourDatabase_swigregister(ColourDatabasePtr) +_gdi_.ColourDatabase_swigregister(ColourDatabasePtr) -class FontList(core.Object): +class FontList(_core.Object): def __init__(self): raise RuntimeError, "No constructor defined" def __repr__(self): return "<%s.%s; proxy of C++ wxFontList instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def AddFont(*args, **kwargs): """AddFont(self, Font font)""" - return _gdi.FontList_AddFont(*args, **kwargs) + return _gdi_.FontList_AddFont(*args, **kwargs) def FindOrCreateFont(*args, **kwargs): """ @@ -3702,15 +3702,15 @@ class FontList(core.Object): bool underline=False, String facename=EmptyString, int encoding=FONTENCODING_DEFAULT) -> Font """ - return _gdi.FontList_FindOrCreateFont(*args, **kwargs) + return _gdi_.FontList_FindOrCreateFont(*args, **kwargs) def RemoveFont(*args, **kwargs): """RemoveFont(self, Font font)""" - return _gdi.FontList_RemoveFont(*args, **kwargs) + return _gdi_.FontList_RemoveFont(*args, **kwargs) def GetCount(*args, **kwargs): """GetCount(self) -> int""" - return _gdi.FontList_GetCount(*args, **kwargs) + return _gdi_.FontList_GetCount(*args, **kwargs) class FontListPtr(FontList): @@ -3718,76 +3718,76 @@ class FontListPtr(FontList): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = FontList -_gdi.FontList_swigregister(FontListPtr) +_gdi_.FontList_swigregister(FontListPtr) #--------------------------------------------------------------------------- NullColor = NullColour #--------------------------------------------------------------------------- -class Effects(core.Object): +class Effects(_core.Object): def __repr__(self): return "<%s.%s; proxy of C++ wxEffects instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> Effects""" - newobj = _gdi.new_Effects(*args, **kwargs) + newobj = _gdi_.new_Effects(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def GetHighlightColour(*args, **kwargs): """GetHighlightColour(self) -> Colour""" - return _gdi.Effects_GetHighlightColour(*args, **kwargs) + return _gdi_.Effects_GetHighlightColour(*args, **kwargs) def GetLightShadow(*args, **kwargs): """GetLightShadow(self) -> Colour""" - return _gdi.Effects_GetLightShadow(*args, **kwargs) + return _gdi_.Effects_GetLightShadow(*args, **kwargs) def GetFaceColour(*args, **kwargs): """GetFaceColour(self) -> Colour""" - return _gdi.Effects_GetFaceColour(*args, **kwargs) + return _gdi_.Effects_GetFaceColour(*args, **kwargs) def GetMediumShadow(*args, **kwargs): """GetMediumShadow(self) -> Colour""" - return _gdi.Effects_GetMediumShadow(*args, **kwargs) + return _gdi_.Effects_GetMediumShadow(*args, **kwargs) def GetDarkShadow(*args, **kwargs): """GetDarkShadow(self) -> Colour""" - return _gdi.Effects_GetDarkShadow(*args, **kwargs) + return _gdi_.Effects_GetDarkShadow(*args, **kwargs) def SetHighlightColour(*args, **kwargs): """SetHighlightColour(self, Colour c)""" - return _gdi.Effects_SetHighlightColour(*args, **kwargs) + return _gdi_.Effects_SetHighlightColour(*args, **kwargs) def SetLightShadow(*args, **kwargs): """SetLightShadow(self, Colour c)""" - return _gdi.Effects_SetLightShadow(*args, **kwargs) + return _gdi_.Effects_SetLightShadow(*args, **kwargs) def SetFaceColour(*args, **kwargs): """SetFaceColour(self, Colour c)""" - return _gdi.Effects_SetFaceColour(*args, **kwargs) + return _gdi_.Effects_SetFaceColour(*args, **kwargs) def SetMediumShadow(*args, **kwargs): """SetMediumShadow(self, Colour c)""" - return _gdi.Effects_SetMediumShadow(*args, **kwargs) + return _gdi_.Effects_SetMediumShadow(*args, **kwargs) def SetDarkShadow(*args, **kwargs): """SetDarkShadow(self, Colour c)""" - return _gdi.Effects_SetDarkShadow(*args, **kwargs) + return _gdi_.Effects_SetDarkShadow(*args, **kwargs) def Set(*args, **kwargs): """ Set(self, Colour highlightColour, Colour lightShadow, Colour faceColour, Colour mediumShadow, Colour darkShadow) """ - return _gdi.Effects_Set(*args, **kwargs) + return _gdi_.Effects_Set(*args, **kwargs) def DrawSunkenEdge(*args, **kwargs): """DrawSunkenEdge(self, DC dc, Rect rect, int borderSize=1)""" - return _gdi.Effects_DrawSunkenEdge(*args, **kwargs) + return _gdi_.Effects_DrawSunkenEdge(*args, **kwargs) def TileBitmap(*args, **kwargs): """TileBitmap(self, Rect rect, DC dc, Bitmap bitmap) -> bool""" - return _gdi.Effects_TileBitmap(*args, **kwargs) + return _gdi_.Effects_TileBitmap(*args, **kwargs) class EffectsPtr(Effects): @@ -3795,7 +3795,7 @@ class EffectsPtr(Effects): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = Effects -_gdi.Effects_swigregister(EffectsPtr) +_gdi_.Effects_swigregister(EffectsPtr) TheFontList = cvar.TheFontList ThePenList = cvar.ThePenList TheBrushList = cvar.TheBrushList diff --git a/wxPython/src/gtk/gdi_wrap.cpp b/wxPython/src/gtk/_gdi_wrap.cpp similarity index 99% rename from wxPython/src/gtk/gdi_wrap.cpp rename to wxPython/src/gtk/_gdi_wrap.cpp index f069d81205..e3b7e76457 100644 --- a/wxPython/src/gtk/gdi_wrap.cpp +++ b/wxPython/src/gtk/_gdi_wrap.cpp @@ -268,11 +268,11 @@ static swig_type_info *swig_types[57]; /*----------------------------------------------- - @(target):= _gdi.so + @(target):= _gdi_.so ------------------------------------------------*/ -#define SWIG_init init_gdi +#define SWIG_init init_gdi_ -#define SWIG_name "_gdi" +#define SWIG_name "_gdi_" /* Auxiliar swig macros */ diff --git a/wxPython/src/gtk/misc.py b/wxPython/src/gtk/_misc.py similarity index 66% rename from wxPython/src/gtk/misc.py rename to wxPython/src/gtk/_misc.py index 6e97e1f124..e5a82708c7 100644 --- a/wxPython/src/gtk/misc.py +++ b/wxPython/src/gtk/_misc.py @@ -1,136 +1,136 @@ # This file was created automatically by SWIG. # Don't modify this file, modify the SWIG interface instead. -import _misc +import _misc_ -import core -wx = core +import _core +wx = _core __docfilter__ = wx.__docfilter__ #--------------------------------------------------------------------------- -SYS_OEM_FIXED_FONT = _misc.SYS_OEM_FIXED_FONT -SYS_ANSI_FIXED_FONT = _misc.SYS_ANSI_FIXED_FONT -SYS_ANSI_VAR_FONT = _misc.SYS_ANSI_VAR_FONT -SYS_SYSTEM_FONT = _misc.SYS_SYSTEM_FONT -SYS_DEVICE_DEFAULT_FONT = _misc.SYS_DEVICE_DEFAULT_FONT -SYS_DEFAULT_PALETTE = _misc.SYS_DEFAULT_PALETTE -SYS_SYSTEM_FIXED_FONT = _misc.SYS_SYSTEM_FIXED_FONT -SYS_DEFAULT_GUI_FONT = _misc.SYS_DEFAULT_GUI_FONT -SYS_ICONTITLE_FONT = _misc.SYS_ICONTITLE_FONT -SYS_COLOUR_SCROLLBAR = _misc.SYS_COLOUR_SCROLLBAR -SYS_COLOUR_BACKGROUND = _misc.SYS_COLOUR_BACKGROUND -SYS_COLOUR_DESKTOP = _misc.SYS_COLOUR_DESKTOP -SYS_COLOUR_ACTIVECAPTION = _misc.SYS_COLOUR_ACTIVECAPTION -SYS_COLOUR_INACTIVECAPTION = _misc.SYS_COLOUR_INACTIVECAPTION -SYS_COLOUR_MENU = _misc.SYS_COLOUR_MENU -SYS_COLOUR_WINDOW = _misc.SYS_COLOUR_WINDOW -SYS_COLOUR_WINDOWFRAME = _misc.SYS_COLOUR_WINDOWFRAME -SYS_COLOUR_MENUTEXT = _misc.SYS_COLOUR_MENUTEXT -SYS_COLOUR_WINDOWTEXT = _misc.SYS_COLOUR_WINDOWTEXT -SYS_COLOUR_CAPTIONTEXT = _misc.SYS_COLOUR_CAPTIONTEXT -SYS_COLOUR_ACTIVEBORDER = _misc.SYS_COLOUR_ACTIVEBORDER -SYS_COLOUR_INACTIVEBORDER = _misc.SYS_COLOUR_INACTIVEBORDER -SYS_COLOUR_APPWORKSPACE = _misc.SYS_COLOUR_APPWORKSPACE -SYS_COLOUR_HIGHLIGHT = _misc.SYS_COLOUR_HIGHLIGHT -SYS_COLOUR_HIGHLIGHTTEXT = _misc.SYS_COLOUR_HIGHLIGHTTEXT -SYS_COLOUR_BTNFACE = _misc.SYS_COLOUR_BTNFACE -SYS_COLOUR_3DFACE = _misc.SYS_COLOUR_3DFACE -SYS_COLOUR_BTNSHADOW = _misc.SYS_COLOUR_BTNSHADOW -SYS_COLOUR_3DSHADOW = _misc.SYS_COLOUR_3DSHADOW -SYS_COLOUR_GRAYTEXT = _misc.SYS_COLOUR_GRAYTEXT -SYS_COLOUR_BTNTEXT = _misc.SYS_COLOUR_BTNTEXT -SYS_COLOUR_INACTIVECAPTIONTEXT = _misc.SYS_COLOUR_INACTIVECAPTIONTEXT -SYS_COLOUR_BTNHIGHLIGHT = _misc.SYS_COLOUR_BTNHIGHLIGHT -SYS_COLOUR_BTNHILIGHT = _misc.SYS_COLOUR_BTNHILIGHT -SYS_COLOUR_3DHIGHLIGHT = _misc.SYS_COLOUR_3DHIGHLIGHT -SYS_COLOUR_3DHILIGHT = _misc.SYS_COLOUR_3DHILIGHT -SYS_COLOUR_3DDKSHADOW = _misc.SYS_COLOUR_3DDKSHADOW -SYS_COLOUR_3DLIGHT = _misc.SYS_COLOUR_3DLIGHT -SYS_COLOUR_INFOTEXT = _misc.SYS_COLOUR_INFOTEXT -SYS_COLOUR_INFOBK = _misc.SYS_COLOUR_INFOBK -SYS_COLOUR_LISTBOX = _misc.SYS_COLOUR_LISTBOX -SYS_COLOUR_HOTLIGHT = _misc.SYS_COLOUR_HOTLIGHT -SYS_COLOUR_GRADIENTACTIVECAPTION = _misc.SYS_COLOUR_GRADIENTACTIVECAPTION -SYS_COLOUR_GRADIENTINACTIVECAPTION = _misc.SYS_COLOUR_GRADIENTINACTIVECAPTION -SYS_COLOUR_MENUHILIGHT = _misc.SYS_COLOUR_MENUHILIGHT -SYS_COLOUR_MENUBAR = _misc.SYS_COLOUR_MENUBAR -SYS_COLOUR_MAX = _misc.SYS_COLOUR_MAX -SYS_MOUSE_BUTTONS = _misc.SYS_MOUSE_BUTTONS -SYS_BORDER_X = _misc.SYS_BORDER_X -SYS_BORDER_Y = _misc.SYS_BORDER_Y -SYS_CURSOR_X = _misc.SYS_CURSOR_X -SYS_CURSOR_Y = _misc.SYS_CURSOR_Y -SYS_DCLICK_X = _misc.SYS_DCLICK_X -SYS_DCLICK_Y = _misc.SYS_DCLICK_Y -SYS_DRAG_X = _misc.SYS_DRAG_X -SYS_DRAG_Y = _misc.SYS_DRAG_Y -SYS_EDGE_X = _misc.SYS_EDGE_X -SYS_EDGE_Y = _misc.SYS_EDGE_Y -SYS_HSCROLL_ARROW_X = _misc.SYS_HSCROLL_ARROW_X -SYS_HSCROLL_ARROW_Y = _misc.SYS_HSCROLL_ARROW_Y -SYS_HTHUMB_X = _misc.SYS_HTHUMB_X -SYS_ICON_X = _misc.SYS_ICON_X -SYS_ICON_Y = _misc.SYS_ICON_Y -SYS_ICONSPACING_X = _misc.SYS_ICONSPACING_X -SYS_ICONSPACING_Y = _misc.SYS_ICONSPACING_Y -SYS_WINDOWMIN_X = _misc.SYS_WINDOWMIN_X -SYS_WINDOWMIN_Y = _misc.SYS_WINDOWMIN_Y -SYS_SCREEN_X = _misc.SYS_SCREEN_X -SYS_SCREEN_Y = _misc.SYS_SCREEN_Y -SYS_FRAMESIZE_X = _misc.SYS_FRAMESIZE_X -SYS_FRAMESIZE_Y = _misc.SYS_FRAMESIZE_Y -SYS_SMALLICON_X = _misc.SYS_SMALLICON_X -SYS_SMALLICON_Y = _misc.SYS_SMALLICON_Y -SYS_HSCROLL_Y = _misc.SYS_HSCROLL_Y -SYS_VSCROLL_X = _misc.SYS_VSCROLL_X -SYS_VSCROLL_ARROW_X = _misc.SYS_VSCROLL_ARROW_X -SYS_VSCROLL_ARROW_Y = _misc.SYS_VSCROLL_ARROW_Y -SYS_VTHUMB_Y = _misc.SYS_VTHUMB_Y -SYS_CAPTION_Y = _misc.SYS_CAPTION_Y -SYS_MENU_Y = _misc.SYS_MENU_Y -SYS_NETWORK_PRESENT = _misc.SYS_NETWORK_PRESENT -SYS_PENWINDOWS_PRESENT = _misc.SYS_PENWINDOWS_PRESENT -SYS_SHOW_SOUNDS = _misc.SYS_SHOW_SOUNDS -SYS_SWAP_BUTTONS = _misc.SYS_SWAP_BUTTONS -SYS_CAN_DRAW_FRAME_DECORATIONS = _misc.SYS_CAN_DRAW_FRAME_DECORATIONS -SYS_CAN_ICONIZE_FRAME = _misc.SYS_CAN_ICONIZE_FRAME -SYS_SCREEN_NONE = _misc.SYS_SCREEN_NONE -SYS_SCREEN_TINY = _misc.SYS_SCREEN_TINY -SYS_SCREEN_PDA = _misc.SYS_SCREEN_PDA -SYS_SCREEN_SMALL = _misc.SYS_SCREEN_SMALL -SYS_SCREEN_DESKTOP = _misc.SYS_SCREEN_DESKTOP +SYS_OEM_FIXED_FONT = _misc_.SYS_OEM_FIXED_FONT +SYS_ANSI_FIXED_FONT = _misc_.SYS_ANSI_FIXED_FONT +SYS_ANSI_VAR_FONT = _misc_.SYS_ANSI_VAR_FONT +SYS_SYSTEM_FONT = _misc_.SYS_SYSTEM_FONT +SYS_DEVICE_DEFAULT_FONT = _misc_.SYS_DEVICE_DEFAULT_FONT +SYS_DEFAULT_PALETTE = _misc_.SYS_DEFAULT_PALETTE +SYS_SYSTEM_FIXED_FONT = _misc_.SYS_SYSTEM_FIXED_FONT +SYS_DEFAULT_GUI_FONT = _misc_.SYS_DEFAULT_GUI_FONT +SYS_ICONTITLE_FONT = _misc_.SYS_ICONTITLE_FONT +SYS_COLOUR_SCROLLBAR = _misc_.SYS_COLOUR_SCROLLBAR +SYS_COLOUR_BACKGROUND = _misc_.SYS_COLOUR_BACKGROUND +SYS_COLOUR_DESKTOP = _misc_.SYS_COLOUR_DESKTOP +SYS_COLOUR_ACTIVECAPTION = _misc_.SYS_COLOUR_ACTIVECAPTION +SYS_COLOUR_INACTIVECAPTION = _misc_.SYS_COLOUR_INACTIVECAPTION +SYS_COLOUR_MENU = _misc_.SYS_COLOUR_MENU +SYS_COLOUR_WINDOW = _misc_.SYS_COLOUR_WINDOW +SYS_COLOUR_WINDOWFRAME = _misc_.SYS_COLOUR_WINDOWFRAME +SYS_COLOUR_MENUTEXT = _misc_.SYS_COLOUR_MENUTEXT +SYS_COLOUR_WINDOWTEXT = _misc_.SYS_COLOUR_WINDOWTEXT +SYS_COLOUR_CAPTIONTEXT = _misc_.SYS_COLOUR_CAPTIONTEXT +SYS_COLOUR_ACTIVEBORDER = _misc_.SYS_COLOUR_ACTIVEBORDER +SYS_COLOUR_INACTIVEBORDER = _misc_.SYS_COLOUR_INACTIVEBORDER +SYS_COLOUR_APPWORKSPACE = _misc_.SYS_COLOUR_APPWORKSPACE +SYS_COLOUR_HIGHLIGHT = _misc_.SYS_COLOUR_HIGHLIGHT +SYS_COLOUR_HIGHLIGHTTEXT = _misc_.SYS_COLOUR_HIGHLIGHTTEXT +SYS_COLOUR_BTNFACE = _misc_.SYS_COLOUR_BTNFACE +SYS_COLOUR_3DFACE = _misc_.SYS_COLOUR_3DFACE +SYS_COLOUR_BTNSHADOW = _misc_.SYS_COLOUR_BTNSHADOW +SYS_COLOUR_3DSHADOW = _misc_.SYS_COLOUR_3DSHADOW +SYS_COLOUR_GRAYTEXT = _misc_.SYS_COLOUR_GRAYTEXT +SYS_COLOUR_BTNTEXT = _misc_.SYS_COLOUR_BTNTEXT +SYS_COLOUR_INACTIVECAPTIONTEXT = _misc_.SYS_COLOUR_INACTIVECAPTIONTEXT +SYS_COLOUR_BTNHIGHLIGHT = _misc_.SYS_COLOUR_BTNHIGHLIGHT +SYS_COLOUR_BTNHILIGHT = _misc_.SYS_COLOUR_BTNHILIGHT +SYS_COLOUR_3DHIGHLIGHT = _misc_.SYS_COLOUR_3DHIGHLIGHT +SYS_COLOUR_3DHILIGHT = _misc_.SYS_COLOUR_3DHILIGHT +SYS_COLOUR_3DDKSHADOW = _misc_.SYS_COLOUR_3DDKSHADOW +SYS_COLOUR_3DLIGHT = _misc_.SYS_COLOUR_3DLIGHT +SYS_COLOUR_INFOTEXT = _misc_.SYS_COLOUR_INFOTEXT +SYS_COLOUR_INFOBK = _misc_.SYS_COLOUR_INFOBK +SYS_COLOUR_LISTBOX = _misc_.SYS_COLOUR_LISTBOX +SYS_COLOUR_HOTLIGHT = _misc_.SYS_COLOUR_HOTLIGHT +SYS_COLOUR_GRADIENTACTIVECAPTION = _misc_.SYS_COLOUR_GRADIENTACTIVECAPTION +SYS_COLOUR_GRADIENTINACTIVECAPTION = _misc_.SYS_COLOUR_GRADIENTINACTIVECAPTION +SYS_COLOUR_MENUHILIGHT = _misc_.SYS_COLOUR_MENUHILIGHT +SYS_COLOUR_MENUBAR = _misc_.SYS_COLOUR_MENUBAR +SYS_COLOUR_MAX = _misc_.SYS_COLOUR_MAX +SYS_MOUSE_BUTTONS = _misc_.SYS_MOUSE_BUTTONS +SYS_BORDER_X = _misc_.SYS_BORDER_X +SYS_BORDER_Y = _misc_.SYS_BORDER_Y +SYS_CURSOR_X = _misc_.SYS_CURSOR_X +SYS_CURSOR_Y = _misc_.SYS_CURSOR_Y +SYS_DCLICK_X = _misc_.SYS_DCLICK_X +SYS_DCLICK_Y = _misc_.SYS_DCLICK_Y +SYS_DRAG_X = _misc_.SYS_DRAG_X +SYS_DRAG_Y = _misc_.SYS_DRAG_Y +SYS_EDGE_X = _misc_.SYS_EDGE_X +SYS_EDGE_Y = _misc_.SYS_EDGE_Y +SYS_HSCROLL_ARROW_X = _misc_.SYS_HSCROLL_ARROW_X +SYS_HSCROLL_ARROW_Y = _misc_.SYS_HSCROLL_ARROW_Y +SYS_HTHUMB_X = _misc_.SYS_HTHUMB_X +SYS_ICON_X = _misc_.SYS_ICON_X +SYS_ICON_Y = _misc_.SYS_ICON_Y +SYS_ICONSPACING_X = _misc_.SYS_ICONSPACING_X +SYS_ICONSPACING_Y = _misc_.SYS_ICONSPACING_Y +SYS_WINDOWMIN_X = _misc_.SYS_WINDOWMIN_X +SYS_WINDOWMIN_Y = _misc_.SYS_WINDOWMIN_Y +SYS_SCREEN_X = _misc_.SYS_SCREEN_X +SYS_SCREEN_Y = _misc_.SYS_SCREEN_Y +SYS_FRAMESIZE_X = _misc_.SYS_FRAMESIZE_X +SYS_FRAMESIZE_Y = _misc_.SYS_FRAMESIZE_Y +SYS_SMALLICON_X = _misc_.SYS_SMALLICON_X +SYS_SMALLICON_Y = _misc_.SYS_SMALLICON_Y +SYS_HSCROLL_Y = _misc_.SYS_HSCROLL_Y +SYS_VSCROLL_X = _misc_.SYS_VSCROLL_X +SYS_VSCROLL_ARROW_X = _misc_.SYS_VSCROLL_ARROW_X +SYS_VSCROLL_ARROW_Y = _misc_.SYS_VSCROLL_ARROW_Y +SYS_VTHUMB_Y = _misc_.SYS_VTHUMB_Y +SYS_CAPTION_Y = _misc_.SYS_CAPTION_Y +SYS_MENU_Y = _misc_.SYS_MENU_Y +SYS_NETWORK_PRESENT = _misc_.SYS_NETWORK_PRESENT +SYS_PENWINDOWS_PRESENT = _misc_.SYS_PENWINDOWS_PRESENT +SYS_SHOW_SOUNDS = _misc_.SYS_SHOW_SOUNDS +SYS_SWAP_BUTTONS = _misc_.SYS_SWAP_BUTTONS +SYS_CAN_DRAW_FRAME_DECORATIONS = _misc_.SYS_CAN_DRAW_FRAME_DECORATIONS +SYS_CAN_ICONIZE_FRAME = _misc_.SYS_CAN_ICONIZE_FRAME +SYS_SCREEN_NONE = _misc_.SYS_SCREEN_NONE +SYS_SCREEN_TINY = _misc_.SYS_SCREEN_TINY +SYS_SCREEN_PDA = _misc_.SYS_SCREEN_PDA +SYS_SCREEN_SMALL = _misc_.SYS_SCREEN_SMALL +SYS_SCREEN_DESKTOP = _misc_.SYS_SCREEN_DESKTOP class SystemSettings(object): def __init__(self): raise RuntimeError, "No constructor defined" def __repr__(self): return "<%s.%s; proxy of C++ wxSystemSettings instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def GetColour(*args, **kwargs): """SystemSettings.GetColour(int index) -> Colour""" - return _misc.SystemSettings_GetColour(*args, **kwargs) + return _misc_.SystemSettings_GetColour(*args, **kwargs) GetColour = staticmethod(GetColour) def GetFont(*args, **kwargs): """SystemSettings.GetFont(int index) -> Font""" - return _misc.SystemSettings_GetFont(*args, **kwargs) + return _misc_.SystemSettings_GetFont(*args, **kwargs) GetFont = staticmethod(GetFont) def GetMetric(*args, **kwargs): """SystemSettings.GetMetric(int index) -> int""" - return _misc.SystemSettings_GetMetric(*args, **kwargs) + return _misc_.SystemSettings_GetMetric(*args, **kwargs) GetMetric = staticmethod(GetMetric) def HasFeature(*args, **kwargs): """SystemSettings.HasFeature(int index) -> bool""" - return _misc.SystemSettings_HasFeature(*args, **kwargs) + return _misc_.SystemSettings_HasFeature(*args, **kwargs) HasFeature = staticmethod(HasFeature) def GetScreenType(*args, **kwargs): """SystemSettings.GetScreenType() -> int""" - return _misc.SystemSettings_GetScreenType(*args, **kwargs) + return _misc_.SystemSettings_GetScreenType(*args, **kwargs) GetScreenType = staticmethod(GetScreenType) def SetScreenType(*args, **kwargs): """SystemSettings.SetScreenType(int screen)""" - return _misc.SystemSettings_SetScreenType(*args, **kwargs) + return _misc_.SystemSettings_SetScreenType(*args, **kwargs) SetScreenType = staticmethod(SetScreenType) @@ -139,64 +139,64 @@ class SystemSettingsPtr(SystemSettings): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = SystemSettings -_misc.SystemSettings_swigregister(SystemSettingsPtr) +_misc_.SystemSettings_swigregister(SystemSettingsPtr) def SystemSettings_GetColour(*args, **kwargs): """SystemSettings_GetColour(int index) -> Colour""" - return _misc.SystemSettings_GetColour(*args, **kwargs) + return _misc_.SystemSettings_GetColour(*args, **kwargs) def SystemSettings_GetFont(*args, **kwargs): """SystemSettings_GetFont(int index) -> Font""" - return _misc.SystemSettings_GetFont(*args, **kwargs) + return _misc_.SystemSettings_GetFont(*args, **kwargs) def SystemSettings_GetMetric(*args, **kwargs): """SystemSettings_GetMetric(int index) -> int""" - return _misc.SystemSettings_GetMetric(*args, **kwargs) + return _misc_.SystemSettings_GetMetric(*args, **kwargs) def SystemSettings_HasFeature(*args, **kwargs): """SystemSettings_HasFeature(int index) -> bool""" - return _misc.SystemSettings_HasFeature(*args, **kwargs) + return _misc_.SystemSettings_HasFeature(*args, **kwargs) def SystemSettings_GetScreenType(*args, **kwargs): """SystemSettings_GetScreenType() -> int""" - return _misc.SystemSettings_GetScreenType(*args, **kwargs) + return _misc_.SystemSettings_GetScreenType(*args, **kwargs) def SystemSettings_SetScreenType(*args, **kwargs): """SystemSettings_SetScreenType(int screen)""" - return _misc.SystemSettings_SetScreenType(*args, **kwargs) + return _misc_.SystemSettings_SetScreenType(*args, **kwargs) -class SystemOptions(core.Object): +class SystemOptions(_core.Object): def __repr__(self): return "<%s.%s; proxy of C++ wxSystemOptions instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> SystemOptions""" - newobj = _misc.new_SystemOptions(*args, **kwargs) + newobj = _misc_.new_SystemOptions(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def SetOption(*args, **kwargs): """SystemOptions.SetOption(String name, String value)""" - return _misc.SystemOptions_SetOption(*args, **kwargs) + return _misc_.SystemOptions_SetOption(*args, **kwargs) SetOption = staticmethod(SetOption) def SetOptionInt(*args, **kwargs): """SystemOptions.SetOptionInt(String name, int value)""" - return _misc.SystemOptions_SetOptionInt(*args, **kwargs) + return _misc_.SystemOptions_SetOptionInt(*args, **kwargs) SetOptionInt = staticmethod(SetOptionInt) def GetOption(*args, **kwargs): """SystemOptions.GetOption(String name) -> String""" - return _misc.SystemOptions_GetOption(*args, **kwargs) + return _misc_.SystemOptions_GetOption(*args, **kwargs) GetOption = staticmethod(GetOption) def GetOptionInt(*args, **kwargs): """SystemOptions.GetOptionInt(String name) -> int""" - return _misc.SystemOptions_GetOptionInt(*args, **kwargs) + return _misc_.SystemOptions_GetOptionInt(*args, **kwargs) GetOptionInt = staticmethod(GetOptionInt) def HasOption(*args, **kwargs): """SystemOptions.HasOption(String name) -> bool""" - return _misc.SystemOptions_HasOption(*args, **kwargs) + return _misc_.SystemOptions_HasOption(*args, **kwargs) HasOption = staticmethod(HasOption) @@ -205,144 +205,144 @@ class SystemOptionsPtr(SystemOptions): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = SystemOptions -_misc.SystemOptions_swigregister(SystemOptionsPtr) +_misc_.SystemOptions_swigregister(SystemOptionsPtr) def SystemOptions_SetOption(*args, **kwargs): """SystemOptions_SetOption(String name, String value)""" - return _misc.SystemOptions_SetOption(*args, **kwargs) + return _misc_.SystemOptions_SetOption(*args, **kwargs) def SystemOptions_SetOptionInt(*args, **kwargs): """SystemOptions_SetOptionInt(String name, int value)""" - return _misc.SystemOptions_SetOptionInt(*args, **kwargs) + return _misc_.SystemOptions_SetOptionInt(*args, **kwargs) def SystemOptions_GetOption(*args, **kwargs): """SystemOptions_GetOption(String name) -> String""" - return _misc.SystemOptions_GetOption(*args, **kwargs) + return _misc_.SystemOptions_GetOption(*args, **kwargs) def SystemOptions_GetOptionInt(*args, **kwargs): """SystemOptions_GetOptionInt(String name) -> int""" - return _misc.SystemOptions_GetOptionInt(*args, **kwargs) + return _misc_.SystemOptions_GetOptionInt(*args, **kwargs) def SystemOptions_HasOption(*args, **kwargs): """SystemOptions_HasOption(String name) -> bool""" - return _misc.SystemOptions_HasOption(*args, **kwargs) + return _misc_.SystemOptions_HasOption(*args, **kwargs) #--------------------------------------------------------------------------- def NewId(*args, **kwargs): """NewId() -> long""" - return _misc.NewId(*args, **kwargs) + return _misc_.NewId(*args, **kwargs) def RegisterId(*args, **kwargs): """RegisterId(long id)""" - return _misc.RegisterId(*args, **kwargs) + return _misc_.RegisterId(*args, **kwargs) def GetCurrentId(*args, **kwargs): """GetCurrentId() -> long""" - return _misc.GetCurrentId(*args, **kwargs) + return _misc_.GetCurrentId(*args, **kwargs) def Bell(*args, **kwargs): """Bell()""" - return _misc.Bell(*args, **kwargs) + return _misc_.Bell(*args, **kwargs) def EndBusyCursor(*args, **kwargs): """EndBusyCursor()""" - return _misc.EndBusyCursor(*args, **kwargs) + return _misc_.EndBusyCursor(*args, **kwargs) def GetElapsedTime(*args, **kwargs): """GetElapsedTime(bool resetTimer=True) -> long""" - return _misc.GetElapsedTime(*args, **kwargs) + return _misc_.GetElapsedTime(*args, **kwargs) def GetMousePosition(*args, **kwargs): """GetMousePosition() -> (x,y)""" - return _misc.GetMousePosition(*args, **kwargs) + return _misc_.GetMousePosition(*args, **kwargs) def IsBusy(*args, **kwargs): """IsBusy() -> bool""" - return _misc.IsBusy(*args, **kwargs) + return _misc_.IsBusy(*args, **kwargs) def Now(*args, **kwargs): """Now() -> String""" - return _misc.Now(*args, **kwargs) + return _misc_.Now(*args, **kwargs) def Shell(*args, **kwargs): """Shell(String command=EmptyString) -> bool""" - return _misc.Shell(*args, **kwargs) + return _misc_.Shell(*args, **kwargs) def StartTimer(*args, **kwargs): """StartTimer()""" - return _misc.StartTimer(*args, **kwargs) + return _misc_.StartTimer(*args, **kwargs) def GetOsVersion(*args, **kwargs): """GetOsVersion() -> (platform, major, minor)""" - return _misc.GetOsVersion(*args, **kwargs) + return _misc_.GetOsVersion(*args, **kwargs) def GetOsDescription(*args, **kwargs): """GetOsDescription() -> String""" - return _misc.GetOsDescription(*args, **kwargs) + return _misc_.GetOsDescription(*args, **kwargs) def GetFreeMemory(*args, **kwargs): """GetFreeMemory() -> long""" - return _misc.GetFreeMemory(*args, **kwargs) -SHUTDOWN_POWEROFF = _misc.SHUTDOWN_POWEROFF -SHUTDOWN_REBOOT = _misc.SHUTDOWN_REBOOT + return _misc_.GetFreeMemory(*args, **kwargs) +SHUTDOWN_POWEROFF = _misc_.SHUTDOWN_POWEROFF +SHUTDOWN_REBOOT = _misc_.SHUTDOWN_REBOOT def Shutdown(*args, **kwargs): """Shutdown(int wFlags) -> bool""" - return _misc.Shutdown(*args, **kwargs) + return _misc_.Shutdown(*args, **kwargs) def Sleep(*args, **kwargs): """Sleep(int secs)""" - return _misc.Sleep(*args, **kwargs) + return _misc_.Sleep(*args, **kwargs) def Usleep(*args, **kwargs): """Usleep(unsigned long milliseconds)""" - return _misc.Usleep(*args, **kwargs) + return _misc_.Usleep(*args, **kwargs) def EnableTopLevelWindows(*args, **kwargs): """EnableTopLevelWindows(bool enable)""" - return _misc.EnableTopLevelWindows(*args, **kwargs) + return _misc_.EnableTopLevelWindows(*args, **kwargs) def StripMenuCodes(*args, **kwargs): """StripMenuCodes(String in) -> String""" - return _misc.StripMenuCodes(*args, **kwargs) + return _misc_.StripMenuCodes(*args, **kwargs) def GetEmailAddress(*args, **kwargs): """GetEmailAddress() -> String""" - return _misc.GetEmailAddress(*args, **kwargs) + return _misc_.GetEmailAddress(*args, **kwargs) def GetHostName(*args, **kwargs): """GetHostName() -> String""" - return _misc.GetHostName(*args, **kwargs) + return _misc_.GetHostName(*args, **kwargs) def GetFullHostName(*args, **kwargs): """GetFullHostName() -> String""" - return _misc.GetFullHostName(*args, **kwargs) + return _misc_.GetFullHostName(*args, **kwargs) def GetUserId(*args, **kwargs): """GetUserId() -> String""" - return _misc.GetUserId(*args, **kwargs) + return _misc_.GetUserId(*args, **kwargs) def GetUserName(*args, **kwargs): """GetUserName() -> String""" - return _misc.GetUserName(*args, **kwargs) + return _misc_.GetUserName(*args, **kwargs) def GetHomeDir(*args, **kwargs): """GetHomeDir() -> String""" - return _misc.GetHomeDir(*args, **kwargs) + return _misc_.GetHomeDir(*args, **kwargs) def GetUserHome(*args, **kwargs): """GetUserHome(String user=EmptyString) -> String""" - return _misc.GetUserHome(*args, **kwargs) + return _misc_.GetUserHome(*args, **kwargs) def GetProcessId(*args, **kwargs): """GetProcessId() -> unsigned long""" - return _misc.GetProcessId(*args, **kwargs) + return _misc_.GetProcessId(*args, **kwargs) def Trap(*args, **kwargs): """Trap()""" - return _misc.Trap(*args, **kwargs) + return _misc_.Trap(*args, **kwargs) def FileSelector(*args, **kwargs): """ @@ -353,21 +353,21 @@ def FileSelector(*args, **kwargs): int flags=0, Window parent=None, int x=-1, int y=-1) -> String """ - return _misc.FileSelector(*args, **kwargs) + return _misc_.FileSelector(*args, **kwargs) def LoadFileSelector(*args, **kwargs): """ LoadFileSelector(String what, String extension, String default_name=EmptyString, Window parent=None) -> String """ - return _misc.LoadFileSelector(*args, **kwargs) + return _misc_.LoadFileSelector(*args, **kwargs) def SaveFileSelector(*args, **kwargs): """ SaveFileSelector(String what, String extension, String default_name=EmptyString, Window parent=None) -> String """ - return _misc.SaveFileSelector(*args, **kwargs) + return _misc_.SaveFileSelector(*args, **kwargs) def DirSelector(*args, **kwargs): """ @@ -375,7 +375,7 @@ def DirSelector(*args, **kwargs): long style=DD_DEFAULT_STYLE, Point pos=DefaultPosition, Window parent=None) -> String """ - return _misc.DirSelector(*args, **kwargs) + return _misc_.DirSelector(*args, **kwargs) def GetTextFromUser(*args, **kwargs): """ @@ -383,14 +383,14 @@ def GetTextFromUser(*args, **kwargs): Window parent=None, int x=-1, int y=-1, bool centre=True) -> String """ - return _misc.GetTextFromUser(*args, **kwargs) + return _misc_.GetTextFromUser(*args, **kwargs) def GetPasswordFromUser(*args, **kwargs): """ GetPasswordFromUser(String message, String caption=EmptyString, String default_value=EmptyString, Window parent=None) -> String """ - return _misc.GetPasswordFromUser(*args, **kwargs) + return _misc_.GetPasswordFromUser(*args, **kwargs) def GetSingleChoice(*args, **kwargs): """ @@ -398,7 +398,7 @@ def GetSingleChoice(*args, **kwargs): Window parent=None, int x=-1, int y=-1, bool centre=True, int width=150, int height=200) -> String """ - return _misc.GetSingleChoice(*args, **kwargs) + return _misc_.GetSingleChoice(*args, **kwargs) def GetSingleChoiceIndex(*args, **kwargs): """ @@ -406,7 +406,7 @@ def GetSingleChoiceIndex(*args, **kwargs): Window parent=None, int x=-1, int y=-1, bool centre=True, int width=150, int height=200) -> int """ - return _misc.GetSingleChoiceIndex(*args, **kwargs) + return _misc_.GetSingleChoiceIndex(*args, **kwargs) def MessageBox(*args, **kwargs): """ @@ -414,7 +414,7 @@ def MessageBox(*args, **kwargs): Window parent=None, int x=-1, int y=-1) -> int """ - return _misc.MessageBox(*args, **kwargs) + return _misc_.MessageBox(*args, **kwargs) def GetNumberFromUser(*args, **kwargs): """ @@ -422,93 +422,93 @@ def GetNumberFromUser(*args, **kwargs): long min=0, long max=100, Window parent=None, Point pos=DefaultPosition) -> long """ - return _misc.GetNumberFromUser(*args, **kwargs) + return _misc_.GetNumberFromUser(*args, **kwargs) def ColourDisplay(*args, **kwargs): """ColourDisplay() -> bool""" - return _misc.ColourDisplay(*args, **kwargs) + return _misc_.ColourDisplay(*args, **kwargs) def DisplayDepth(*args, **kwargs): """DisplayDepth() -> int""" - return _misc.DisplayDepth(*args, **kwargs) + return _misc_.DisplayDepth(*args, **kwargs) def GetDisplayDepth(*args, **kwargs): """GetDisplayDepth() -> int""" - return _misc.GetDisplayDepth(*args, **kwargs) + return _misc_.GetDisplayDepth(*args, **kwargs) def DisplaySize(*args, **kwargs): """DisplaySize() -> (width, height)""" - return _misc.DisplaySize(*args, **kwargs) + return _misc_.DisplaySize(*args, **kwargs) def GetDisplaySize(*args, **kwargs): """GetDisplaySize() -> Size""" - return _misc.GetDisplaySize(*args, **kwargs) + return _misc_.GetDisplaySize(*args, **kwargs) def DisplaySizeMM(*args, **kwargs): """DisplaySizeMM() -> (width, height)""" - return _misc.DisplaySizeMM(*args, **kwargs) + return _misc_.DisplaySizeMM(*args, **kwargs) def GetDisplaySizeMM(*args, **kwargs): """GetDisplaySizeMM() -> Size""" - return _misc.GetDisplaySizeMM(*args, **kwargs) + return _misc_.GetDisplaySizeMM(*args, **kwargs) def ClientDisplayRect(*args, **kwargs): """ClientDisplayRect() -> (x, y, width, height)""" - return _misc.ClientDisplayRect(*args, **kwargs) + return _misc_.ClientDisplayRect(*args, **kwargs) def GetClientDisplayRect(*args, **kwargs): """GetClientDisplayRect() -> Rect""" - return _misc.GetClientDisplayRect(*args, **kwargs) + return _misc_.GetClientDisplayRect(*args, **kwargs) def SetCursor(*args, **kwargs): """SetCursor(Cursor cursor)""" - return _misc.SetCursor(*args, **kwargs) + return _misc_.SetCursor(*args, **kwargs) def BeginBusyCursor(*args, **kwargs): """BeginBusyCursor(Cursor cursor=wxHOURGLASS_CURSOR)""" - return _misc.BeginBusyCursor(*args, **kwargs) + return _misc_.BeginBusyCursor(*args, **kwargs) def GetActiveWindow(*args, **kwargs): """GetActiveWindow() -> Window""" - return _misc.GetActiveWindow(*args, **kwargs) + return _misc_.GetActiveWindow(*args, **kwargs) def GenericFindWindowAtPoint(*args, **kwargs): """GenericFindWindowAtPoint(Point pt) -> Window""" - return _misc.GenericFindWindowAtPoint(*args, **kwargs) + return _misc_.GenericFindWindowAtPoint(*args, **kwargs) def FindWindowAtPoint(*args, **kwargs): """FindWindowAtPoint(Point pt) -> Window""" - return _misc.FindWindowAtPoint(*args, **kwargs) + return _misc_.FindWindowAtPoint(*args, **kwargs) def GetTopLevelParent(*args, **kwargs): """GetTopLevelParent(Window win) -> Window""" - return _misc.GetTopLevelParent(*args, **kwargs) + return _misc_.GetTopLevelParent(*args, **kwargs) def GetKeyState(*args, **kwargs): """GetKeyState(int key) -> bool""" - return _misc.GetKeyState(*args, **kwargs) + return _misc_.GetKeyState(*args, **kwargs) def WakeUpMainThread(*args, **kwargs): """WakeUpMainThread()""" - return _misc.WakeUpMainThread(*args, **kwargs) + return _misc_.WakeUpMainThread(*args, **kwargs) def MutexGuiEnter(*args, **kwargs): """MutexGuiEnter()""" - return _misc.MutexGuiEnter(*args, **kwargs) + return _misc_.MutexGuiEnter(*args, **kwargs) def MutexGuiLeave(*args, **kwargs): """MutexGuiLeave()""" - return _misc.MutexGuiLeave(*args, **kwargs) + return _misc_.MutexGuiLeave(*args, **kwargs) class MutexGuiLocker(object): def __repr__(self): return "<%s.%s; proxy of C++ wxMutexGuiLocker instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> MutexGuiLocker""" - newobj = _misc.new_MutexGuiLocker(*args, **kwargs) + newobj = _misc_.new_MutexGuiLocker(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_misc.delete_MutexGuiLocker): + def __del__(self, destroy=_misc_.delete_MutexGuiLocker): """__del__(self)""" try: if self.thisown: destroy(self) @@ -520,8 +520,8 @@ class MutexGuiLockerPtr(MutexGuiLocker): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = MutexGuiLocker -_misc.MutexGuiLocker_swigregister(MutexGuiLockerPtr) -cvar = _misc.cvar +_misc_.MutexGuiLocker_swigregister(MutexGuiLockerPtr) +cvar = _misc_.cvar FileSelectorPromptStr = cvar.FileSelectorPromptStr FileSelectorDefaultWildcardStr = cvar.FileSelectorDefaultWildcardStr DirSelectorPromptStr = cvar.DirSelectorPromptStr @@ -529,38 +529,38 @@ DirSelectorPromptStr = cvar.DirSelectorPromptStr def Thread_IsMain(*args, **kwargs): """Thread_IsMain() -> bool""" - return _misc.Thread_IsMain(*args, **kwargs) + return _misc_.Thread_IsMain(*args, **kwargs) #--------------------------------------------------------------------------- -class ToolTip(core.Object): +class ToolTip(_core.Object): def __repr__(self): return "<%s.%s; proxy of C++ wxToolTip instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, String tip) -> ToolTip""" - newobj = _misc.new_ToolTip(*args, **kwargs) + newobj = _misc_.new_ToolTip(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def SetTip(*args, **kwargs): """SetTip(self, String tip)""" - return _misc.ToolTip_SetTip(*args, **kwargs) + return _misc_.ToolTip_SetTip(*args, **kwargs) def GetTip(*args, **kwargs): """GetTip(self) -> String""" - return _misc.ToolTip_GetTip(*args, **kwargs) + return _misc_.ToolTip_GetTip(*args, **kwargs) def GetWindow(*args, **kwargs): """GetWindow(self) -> Window""" - return _misc.ToolTip_GetWindow(*args, **kwargs) + return _misc_.ToolTip_GetWindow(*args, **kwargs) def Enable(*args, **kwargs): """ToolTip.Enable(bool flag)""" - return _misc.ToolTip_Enable(*args, **kwargs) + return _misc_.ToolTip_Enable(*args, **kwargs) Enable = staticmethod(Enable) def SetDelay(*args, **kwargs): """ToolTip.SetDelay(long milliseconds)""" - return _misc.ToolTip_SetDelay(*args, **kwargs) + return _misc_.ToolTip_SetDelay(*args, **kwargs) SetDelay = staticmethod(SetDelay) @@ -569,26 +569,26 @@ class ToolTipPtr(ToolTip): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = ToolTip -_misc.ToolTip_swigregister(ToolTipPtr) +_misc_.ToolTip_swigregister(ToolTipPtr) def ToolTip_Enable(*args, **kwargs): """ToolTip_Enable(bool flag)""" - return _misc.ToolTip_Enable(*args, **kwargs) + return _misc_.ToolTip_Enable(*args, **kwargs) def ToolTip_SetDelay(*args, **kwargs): """ToolTip_SetDelay(long milliseconds)""" - return _misc.ToolTip_SetDelay(*args, **kwargs) + return _misc_.ToolTip_SetDelay(*args, **kwargs) class Caret(object): def __repr__(self): return "<%s.%s; proxy of C++ wxCaret instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, Window window, Size size) -> Caret""" - newobj = _misc.new_Caret(*args, **kwargs) + newobj = _misc_.new_Caret(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_misc.delete_Caret): + def __del__(self, destroy=_misc_.delete_Caret): """__del__(self)""" try: if self.thisown: destroy(self) @@ -596,55 +596,55 @@ class Caret(object): def IsOk(*args, **kwargs): """IsOk(self) -> bool""" - return _misc.Caret_IsOk(*args, **kwargs) + return _misc_.Caret_IsOk(*args, **kwargs) def IsVisible(*args, **kwargs): """IsVisible(self) -> bool""" - return _misc.Caret_IsVisible(*args, **kwargs) + return _misc_.Caret_IsVisible(*args, **kwargs) def GetPosition(*args, **kwargs): """GetPosition(self) -> Point""" - return _misc.Caret_GetPosition(*args, **kwargs) + return _misc_.Caret_GetPosition(*args, **kwargs) def GetPositionTuple(*args, **kwargs): """GetPositionTuple() -> (x,y)""" - return _misc.Caret_GetPositionTuple(*args, **kwargs) + return _misc_.Caret_GetPositionTuple(*args, **kwargs) def GetSize(*args, **kwargs): """GetSize(self) -> Size""" - return _misc.Caret_GetSize(*args, **kwargs) + return _misc_.Caret_GetSize(*args, **kwargs) def GetSizeTuple(*args, **kwargs): """GetSizeTuple() -> (width, height)""" - return _misc.Caret_GetSizeTuple(*args, **kwargs) + return _misc_.Caret_GetSizeTuple(*args, **kwargs) def GetWindow(*args, **kwargs): """GetWindow(self) -> Window""" - return _misc.Caret_GetWindow(*args, **kwargs) + return _misc_.Caret_GetWindow(*args, **kwargs) def MoveXY(*args, **kwargs): """MoveXY(self, int x, int y)""" - return _misc.Caret_MoveXY(*args, **kwargs) + return _misc_.Caret_MoveXY(*args, **kwargs) def Move(*args, **kwargs): """Move(self, Point pt)""" - return _misc.Caret_Move(*args, **kwargs) + return _misc_.Caret_Move(*args, **kwargs) def SetSizeWH(*args, **kwargs): """SetSizeWH(self, int width, int height)""" - return _misc.Caret_SetSizeWH(*args, **kwargs) + return _misc_.Caret_SetSizeWH(*args, **kwargs) def SetSize(*args, **kwargs): """SetSize(self, Size size)""" - return _misc.Caret_SetSize(*args, **kwargs) + return _misc_.Caret_SetSize(*args, **kwargs) def Show(*args, **kwargs): """Show(self, int show=True)""" - return _misc.Caret_Show(*args, **kwargs) + return _misc_.Caret_Show(*args, **kwargs) def Hide(*args, **kwargs): """Hide(self)""" - return _misc.Caret_Hide(*args, **kwargs) + return _misc_.Caret_Hide(*args, **kwargs) def __nonzero__(self): return self.IsOk() @@ -653,26 +653,26 @@ class CaretPtr(Caret): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = Caret -_misc.Caret_swigregister(CaretPtr) +_misc_.Caret_swigregister(CaretPtr) def Caret_GetBlinkTime(*args, **kwargs): """Caret_GetBlinkTime() -> int""" - return _misc.Caret_GetBlinkTime(*args, **kwargs) + return _misc_.Caret_GetBlinkTime(*args, **kwargs) def Caret_SetBlinkTime(*args, **kwargs): """Caret_SetBlinkTime(int milliseconds)""" - return _misc.Caret_SetBlinkTime(*args, **kwargs) + return _misc_.Caret_SetBlinkTime(*args, **kwargs) class BusyCursor(object): def __repr__(self): return "<%s.%s; proxy of C++ wxBusyCursor instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, Cursor cursor=wxHOURGLASS_CURSOR) -> BusyCursor""" - newobj = _misc.new_BusyCursor(*args, **kwargs) + newobj = _misc_.new_BusyCursor(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_misc.delete_BusyCursor): + def __del__(self, destroy=_misc_.delete_BusyCursor): """__del__(self)""" try: if self.thisown: destroy(self) @@ -684,18 +684,18 @@ class BusyCursorPtr(BusyCursor): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = BusyCursor -_misc.BusyCursor_swigregister(BusyCursorPtr) +_misc_.BusyCursor_swigregister(BusyCursorPtr) class WindowDisabler(object): def __repr__(self): return "<%s.%s; proxy of C++ wxWindowDisabler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, Window winToSkip=None) -> WindowDisabler""" - newobj = _misc.new_WindowDisabler(*args, **kwargs) + newobj = _misc_.new_WindowDisabler(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_misc.delete_WindowDisabler): + def __del__(self, destroy=_misc_.delete_WindowDisabler): """__del__(self)""" try: if self.thisown: destroy(self) @@ -707,18 +707,18 @@ class WindowDisablerPtr(WindowDisabler): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = WindowDisabler -_misc.WindowDisabler_swigregister(WindowDisablerPtr) +_misc_.WindowDisabler_swigregister(WindowDisablerPtr) -class BusyInfo(core.Object): +class BusyInfo(_core.Object): def __repr__(self): return "<%s.%s; proxy of C++ wxBusyInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, String message) -> BusyInfo""" - newobj = _misc.new_BusyInfo(*args, **kwargs) + newobj = _misc_.new_BusyInfo(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_misc.delete_BusyInfo): + def __del__(self, destroy=_misc_.delete_BusyInfo): """__del__(self)""" try: if self.thisown: destroy(self) @@ -730,32 +730,32 @@ class BusyInfoPtr(BusyInfo): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = BusyInfo -_misc.BusyInfo_swigregister(BusyInfoPtr) +_misc_.BusyInfo_swigregister(BusyInfoPtr) class StopWatch(object): def __repr__(self): return "<%s.%s; proxy of C++ wxStopWatch instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> StopWatch""" - newobj = _misc.new_StopWatch(*args, **kwargs) + newobj = _misc_.new_StopWatch(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def Start(*args, **kwargs): """Start(self, long t0=0)""" - return _misc.StopWatch_Start(*args, **kwargs) + return _misc_.StopWatch_Start(*args, **kwargs) def Pause(*args, **kwargs): """Pause(self)""" - return _misc.StopWatch_Pause(*args, **kwargs) + return _misc_.StopWatch_Pause(*args, **kwargs) def Resume(*args, **kwargs): """Resume(self)""" - return _misc.StopWatch_Resume(*args, **kwargs) + return _misc_.StopWatch_Resume(*args, **kwargs) def Time(*args, **kwargs): """Time(self) -> long""" - return _misc.StopWatch_Time(*args, **kwargs) + return _misc_.StopWatch_Time(*args, **kwargs) class StopWatchPtr(StopWatch): @@ -763,18 +763,18 @@ class StopWatchPtr(StopWatch): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = StopWatch -_misc.StopWatch_swigregister(StopWatchPtr) +_misc_.StopWatch_swigregister(StopWatchPtr) -class FileHistory(core.Object): +class FileHistory(_core.Object): def __repr__(self): return "<%s.%s; proxy of C++ wxFileHistory instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, int maxFiles=9) -> FileHistory""" - newobj = _misc.new_FileHistory(*args, **kwargs) + newobj = _misc_.new_FileHistory(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_misc.delete_FileHistory): + def __del__(self, destroy=_misc_.delete_FileHistory): """__del__(self)""" try: if self.thisown: destroy(self) @@ -782,47 +782,47 @@ class FileHistory(core.Object): def AddFileToHistory(*args, **kwargs): """AddFileToHistory(self, String file)""" - return _misc.FileHistory_AddFileToHistory(*args, **kwargs) + return _misc_.FileHistory_AddFileToHistory(*args, **kwargs) def RemoveFileFromHistory(*args, **kwargs): """RemoveFileFromHistory(self, int i)""" - return _misc.FileHistory_RemoveFileFromHistory(*args, **kwargs) + return _misc_.FileHistory_RemoveFileFromHistory(*args, **kwargs) def GetMaxFiles(*args, **kwargs): """GetMaxFiles(self) -> int""" - return _misc.FileHistory_GetMaxFiles(*args, **kwargs) + return _misc_.FileHistory_GetMaxFiles(*args, **kwargs) def UseMenu(*args, **kwargs): """UseMenu(self, Menu menu)""" - return _misc.FileHistory_UseMenu(*args, **kwargs) + return _misc_.FileHistory_UseMenu(*args, **kwargs) def RemoveMenu(*args, **kwargs): """RemoveMenu(self, Menu menu)""" - return _misc.FileHistory_RemoveMenu(*args, **kwargs) + return _misc_.FileHistory_RemoveMenu(*args, **kwargs) def Load(*args, **kwargs): """Load(self, ConfigBase config)""" - return _misc.FileHistory_Load(*args, **kwargs) + return _misc_.FileHistory_Load(*args, **kwargs) def Save(*args, **kwargs): """Save(self, ConfigBase config)""" - return _misc.FileHistory_Save(*args, **kwargs) + return _misc_.FileHistory_Save(*args, **kwargs) def AddFilesToMenu(*args, **kwargs): """AddFilesToMenu(self)""" - return _misc.FileHistory_AddFilesToMenu(*args, **kwargs) + return _misc_.FileHistory_AddFilesToMenu(*args, **kwargs) def AddFilesToThisMenu(*args, **kwargs): """AddFilesToThisMenu(self, Menu menu)""" - return _misc.FileHistory_AddFilesToThisMenu(*args, **kwargs) + return _misc_.FileHistory_AddFilesToThisMenu(*args, **kwargs) def GetHistoryFile(*args, **kwargs): """GetHistoryFile(self, int i) -> String""" - return _misc.FileHistory_GetHistoryFile(*args, **kwargs) + return _misc_.FileHistory_GetHistoryFile(*args, **kwargs) def GetCount(*args, **kwargs): """GetCount(self) -> int""" - return _misc.FileHistory_GetCount(*args, **kwargs) + return _misc_.FileHistory_GetCount(*args, **kwargs) GetNoHistoryFiles = GetCount @@ -831,18 +831,18 @@ class FileHistoryPtr(FileHistory): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = FileHistory -_misc.FileHistory_swigregister(FileHistoryPtr) +_misc_.FileHistory_swigregister(FileHistoryPtr) class SingleInstanceChecker(object): def __repr__(self): return "<%s.%s; proxy of C++ wxSingleInstanceChecker instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, String name, String path=EmptyString) -> SingleInstanceChecker""" - newobj = _misc.new_SingleInstanceChecker(*args, **kwargs) + newobj = _misc_.new_SingleInstanceChecker(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_misc.delete_SingleInstanceChecker): + def __del__(self, destroy=_misc_.delete_SingleInstanceChecker): """__del__(self)""" try: if self.thisown: destroy(self) @@ -850,11 +850,11 @@ class SingleInstanceChecker(object): def Create(*args, **kwargs): """Create(self, String name, String path=EmptyString) -> bool""" - return _misc.SingleInstanceChecker_Create(*args, **kwargs) + return _misc_.SingleInstanceChecker_Create(*args, **kwargs) def IsAnotherRunning(*args, **kwargs): """IsAnotherRunning(self) -> bool""" - return _misc.SingleInstanceChecker_IsAnotherRunning(*args, **kwargs) + return _misc_.SingleInstanceChecker_IsAnotherRunning(*args, **kwargs) class SingleInstanceCheckerPtr(SingleInstanceChecker): @@ -862,25 +862,25 @@ class SingleInstanceCheckerPtr(SingleInstanceChecker): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = SingleInstanceChecker -_misc.SingleInstanceChecker_swigregister(SingleInstanceCheckerPtr) +_misc_.SingleInstanceChecker_swigregister(SingleInstanceCheckerPtr) def PreSingleInstanceChecker(*args, **kwargs): """PreSingleInstanceChecker() -> SingleInstanceChecker""" - val = _misc.new_PreSingleInstanceChecker(*args, **kwargs) + val = _misc_.new_PreSingleInstanceChecker(*args, **kwargs) val.thisown = 1 return val def DrawWindowOnDC(*args, **kwargs): """DrawWindowOnDC(Window window, DC dc, int method)""" - return _misc.DrawWindowOnDC(*args, **kwargs) + return _misc_.DrawWindowOnDC(*args, **kwargs) #--------------------------------------------------------------------------- class TipProvider(object): def __init__(self): raise RuntimeError, "No constructor defined" def __repr__(self): return "<%s.%s; proxy of C++ wxTipProvider instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __del__(self, destroy=_misc.delete_TipProvider): + def __del__(self, destroy=_misc_.delete_TipProvider): """__del__(self)""" try: if self.thisown: destroy(self) @@ -888,15 +888,15 @@ class TipProvider(object): def GetTip(*args, **kwargs): """GetTip(self) -> String""" - return _misc.TipProvider_GetTip(*args, **kwargs) + return _misc_.TipProvider_GetTip(*args, **kwargs) def GetCurrentTip(*args, **kwargs): """GetCurrentTip(self) -> size_t""" - return _misc.TipProvider_GetCurrentTip(*args, **kwargs) + return _misc_.TipProvider_GetCurrentTip(*args, **kwargs) def PreprocessTip(*args, **kwargs): """PreprocessTip(self, String tip) -> String""" - return _misc.TipProvider_PreprocessTip(*args, **kwargs) + return _misc_.TipProvider_PreprocessTip(*args, **kwargs) class TipProviderPtr(TipProvider): @@ -904,20 +904,20 @@ class TipProviderPtr(TipProvider): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = TipProvider -_misc.TipProvider_swigregister(TipProviderPtr) +_misc_.TipProvider_swigregister(TipProviderPtr) class PyTipProvider(TipProvider): def __repr__(self): return "<%s.%s; proxy of C++ wxPyTipProvider instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, size_t currentTip) -> PyTipProvider""" - newobj = _misc.new_PyTipProvider(*args, **kwargs) + newobj = _misc_.new_PyTipProvider(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def _setCallbackInfo(*args, **kwargs): """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _misc.PyTipProvider__setCallbackInfo(*args, **kwargs) + return _misc_.PyTipProvider__setCallbackInfo(*args, **kwargs) class PyTipProviderPtr(PyTipProvider): @@ -925,33 +925,33 @@ class PyTipProviderPtr(PyTipProvider): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = PyTipProvider -_misc.PyTipProvider_swigregister(PyTipProviderPtr) +_misc_.PyTipProvider_swigregister(PyTipProviderPtr) def ShowTip(*args, **kwargs): """ShowTip(Window parent, TipProvider tipProvider, bool showAtStartup=True) -> bool""" - return _misc.ShowTip(*args, **kwargs) + return _misc_.ShowTip(*args, **kwargs) def CreateFileTipProvider(*args, **kwargs): """CreateFileTipProvider(String filename, size_t currentTip) -> TipProvider""" - return _misc.CreateFileTipProvider(*args, **kwargs) + return _misc_.CreateFileTipProvider(*args, **kwargs) #--------------------------------------------------------------------------- -TIMER_CONTINUOUS = _misc.TIMER_CONTINUOUS -TIMER_ONE_SHOT = _misc.TIMER_ONE_SHOT -wxEVT_TIMER = _misc.wxEVT_TIMER -class Timer(core.EvtHandler): +TIMER_CONTINUOUS = _misc_.TIMER_CONTINUOUS +TIMER_ONE_SHOT = _misc_.TIMER_ONE_SHOT +wxEVT_TIMER = _misc_.wxEVT_TIMER +class Timer(_core.EvtHandler): def __repr__(self): return "<%s.%s; proxy of C++ wxPyTimer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, EvtHandler owner=None, int id=-1) -> Timer""" - newobj = _misc.new_Timer(*args, **kwargs) + newobj = _misc_.new_Timer(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown self._setCallbackInfo(self, Timer, 0) - def __del__(self, destroy=_misc.delete_Timer): + def __del__(self, destroy=_misc_.delete_Timer): """__del__(self)""" try: if self.thisown: destroy(self) @@ -959,35 +959,35 @@ class Timer(core.EvtHandler): def _setCallbackInfo(*args, **kwargs): """_setCallbackInfo(self, PyObject self, PyObject _class, int incref=1)""" - return _misc.Timer__setCallbackInfo(*args, **kwargs) + return _misc_.Timer__setCallbackInfo(*args, **kwargs) def SetOwner(*args, **kwargs): """SetOwner(self, EvtHandler owner, int id=-1)""" - return _misc.Timer_SetOwner(*args, **kwargs) + return _misc_.Timer_SetOwner(*args, **kwargs) def Start(*args, **kwargs): """Start(self, int milliseconds=-1, bool oneShot=False) -> bool""" - return _misc.Timer_Start(*args, **kwargs) + return _misc_.Timer_Start(*args, **kwargs) def Stop(*args, **kwargs): """Stop(self)""" - return _misc.Timer_Stop(*args, **kwargs) + return _misc_.Timer_Stop(*args, **kwargs) def IsRunning(*args, **kwargs): """IsRunning(self) -> bool""" - return _misc.Timer_IsRunning(*args, **kwargs) + return _misc_.Timer_IsRunning(*args, **kwargs) def GetInterval(*args, **kwargs): """GetInterval(self) -> int""" - return _misc.Timer_GetInterval(*args, **kwargs) + return _misc_.Timer_GetInterval(*args, **kwargs) def IsOneShot(*args, **kwargs): """IsOneShot(self) -> bool""" - return _misc.Timer_IsOneShot(*args, **kwargs) + return _misc_.Timer_IsOneShot(*args, **kwargs) def GetId(*args, **kwargs): """GetId(self) -> int""" - return _misc.Timer_GetId(*args, **kwargs) + return _misc_.Timer_GetId(*args, **kwargs) class TimerPtr(Timer): @@ -995,7 +995,7 @@ class TimerPtr(Timer): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = Timer -_misc.Timer_swigregister(TimerPtr) +_misc_.Timer_swigregister(TimerPtr) # For backwards compatibility with 2.4 class PyTimer(Timer): @@ -1011,18 +1011,18 @@ class PyTimer(Timer): EVT_TIMER = wx.PyEventBinder( wxEVT_TIMER, 1 ) -class TimerEvent(core.Event): +class TimerEvent(_core.Event): def __repr__(self): return "<%s.%s; proxy of C++ wxTimerEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, int timerid=0, int interval=0) -> TimerEvent""" - newobj = _misc.new_TimerEvent(*args, **kwargs) + newobj = _misc_.new_TimerEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def GetInterval(*args, **kwargs): """GetInterval(self) -> int""" - return _misc.TimerEvent_GetInterval(*args, **kwargs) + return _misc_.TimerEvent_GetInterval(*args, **kwargs) class TimerEventPtr(TimerEvent): @@ -1030,7 +1030,7 @@ class TimerEventPtr(TimerEvent): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = TimerEvent -_misc.TimerEvent_swigregister(TimerEventPtr) +_misc_.TimerEvent_swigregister(TimerEventPtr) class TimerRunner(object): def __repr__(self): @@ -1040,11 +1040,11 @@ class TimerRunner(object): __init__(self, wxTimer timer) -> TimerRunner __init__(self, wxTimer timer, int milli, bool oneShot=False) -> TimerRunner """ - newobj = _misc.new_TimerRunner(*args) + newobj = _misc_.new_TimerRunner(*args) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_misc.delete_TimerRunner): + def __del__(self, destroy=_misc_.delete_TimerRunner): """__del__(self)""" try: if self.thisown: destroy(self) @@ -1052,7 +1052,7 @@ class TimerRunner(object): def Start(*args, **kwargs): """Start(self, int milli, bool oneShot=False)""" - return _misc.TimerRunner_Start(*args, **kwargs) + return _misc_.TimerRunner_Start(*args, **kwargs) class TimerRunnerPtr(TimerRunner): @@ -1060,162 +1060,162 @@ class TimerRunnerPtr(TimerRunner): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = TimerRunner -_misc.TimerRunner_swigregister(TimerRunnerPtr) +_misc_.TimerRunner_swigregister(TimerRunnerPtr) #--------------------------------------------------------------------------- -LOG_FatalError = _misc.LOG_FatalError -LOG_Error = _misc.LOG_Error -LOG_Warning = _misc.LOG_Warning -LOG_Message = _misc.LOG_Message -LOG_Status = _misc.LOG_Status -LOG_Info = _misc.LOG_Info -LOG_Debug = _misc.LOG_Debug -LOG_Trace = _misc.LOG_Trace -LOG_Progress = _misc.LOG_Progress -LOG_User = _misc.LOG_User -LOG_Max = _misc.LOG_Max -TRACE_MemAlloc = _misc.TRACE_MemAlloc -TRACE_Messages = _misc.TRACE_Messages -TRACE_ResAlloc = _misc.TRACE_ResAlloc -TRACE_RefCount = _misc.TRACE_RefCount -TRACE_OleCalls = _misc.TRACE_OleCalls -TraceMemAlloc = _misc.TraceMemAlloc -TraceMessages = _misc.TraceMessages -TraceResAlloc = _misc.TraceResAlloc -TraceRefCount = _misc.TraceRefCount -TraceOleCalls = _misc.TraceOleCalls +LOG_FatalError = _misc_.LOG_FatalError +LOG_Error = _misc_.LOG_Error +LOG_Warning = _misc_.LOG_Warning +LOG_Message = _misc_.LOG_Message +LOG_Status = _misc_.LOG_Status +LOG_Info = _misc_.LOG_Info +LOG_Debug = _misc_.LOG_Debug +LOG_Trace = _misc_.LOG_Trace +LOG_Progress = _misc_.LOG_Progress +LOG_User = _misc_.LOG_User +LOG_Max = _misc_.LOG_Max +TRACE_MemAlloc = _misc_.TRACE_MemAlloc +TRACE_Messages = _misc_.TRACE_Messages +TRACE_ResAlloc = _misc_.TRACE_ResAlloc +TRACE_RefCount = _misc_.TRACE_RefCount +TRACE_OleCalls = _misc_.TRACE_OleCalls +TraceMemAlloc = _misc_.TraceMemAlloc +TraceMessages = _misc_.TraceMessages +TraceResAlloc = _misc_.TraceResAlloc +TraceRefCount = _misc_.TraceRefCount +TraceOleCalls = _misc_.TraceOleCalls class Log(object): def __repr__(self): return "<%s.%s; proxy of C++ wxLog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> Log""" - newobj = _misc.new_Log(*args, **kwargs) + newobj = _misc_.new_Log(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def IsEnabled(*args, **kwargs): """Log.IsEnabled() -> bool""" - return _misc.Log_IsEnabled(*args, **kwargs) + return _misc_.Log_IsEnabled(*args, **kwargs) IsEnabled = staticmethod(IsEnabled) def EnableLogging(*args, **kwargs): """Log.EnableLogging(bool doIt=True) -> bool""" - return _misc.Log_EnableLogging(*args, **kwargs) + return _misc_.Log_EnableLogging(*args, **kwargs) EnableLogging = staticmethod(EnableLogging) def OnLog(*args, **kwargs): """Log.OnLog(wxLogLevel level, wxChar szString, time_t t)""" - return _misc.Log_OnLog(*args, **kwargs) + return _misc_.Log_OnLog(*args, **kwargs) OnLog = staticmethod(OnLog) def Flush(*args, **kwargs): """Flush(self)""" - return _misc.Log_Flush(*args, **kwargs) + return _misc_.Log_Flush(*args, **kwargs) def FlushActive(*args, **kwargs): """Log.FlushActive()""" - return _misc.Log_FlushActive(*args, **kwargs) + return _misc_.Log_FlushActive(*args, **kwargs) FlushActive = staticmethod(FlushActive) def GetActiveTarget(*args, **kwargs): """Log.GetActiveTarget() -> Log""" - return _misc.Log_GetActiveTarget(*args, **kwargs) + return _misc_.Log_GetActiveTarget(*args, **kwargs) GetActiveTarget = staticmethod(GetActiveTarget) def SetActiveTarget(*args, **kwargs): """Log.SetActiveTarget(Log pLogger) -> Log""" - return _misc.Log_SetActiveTarget(*args, **kwargs) + return _misc_.Log_SetActiveTarget(*args, **kwargs) SetActiveTarget = staticmethod(SetActiveTarget) def Suspend(*args, **kwargs): """Log.Suspend()""" - return _misc.Log_Suspend(*args, **kwargs) + return _misc_.Log_Suspend(*args, **kwargs) Suspend = staticmethod(Suspend) def Resume(*args, **kwargs): """Log.Resume()""" - return _misc.Log_Resume(*args, **kwargs) + return _misc_.Log_Resume(*args, **kwargs) Resume = staticmethod(Resume) def SetVerbose(*args, **kwargs): """Log.SetVerbose(bool bVerbose=True)""" - return _misc.Log_SetVerbose(*args, **kwargs) + return _misc_.Log_SetVerbose(*args, **kwargs) SetVerbose = staticmethod(SetVerbose) def SetLogLevel(*args, **kwargs): """Log.SetLogLevel(wxLogLevel logLevel)""" - return _misc.Log_SetLogLevel(*args, **kwargs) + return _misc_.Log_SetLogLevel(*args, **kwargs) SetLogLevel = staticmethod(SetLogLevel) def DontCreateOnDemand(*args, **kwargs): """Log.DontCreateOnDemand()""" - return _misc.Log_DontCreateOnDemand(*args, **kwargs) + return _misc_.Log_DontCreateOnDemand(*args, **kwargs) DontCreateOnDemand = staticmethod(DontCreateOnDemand) def SetTraceMask(*args, **kwargs): """Log.SetTraceMask(wxTraceMask ulMask)""" - return _misc.Log_SetTraceMask(*args, **kwargs) + return _misc_.Log_SetTraceMask(*args, **kwargs) SetTraceMask = staticmethod(SetTraceMask) def AddTraceMask(*args, **kwargs): """Log.AddTraceMask(String str)""" - return _misc.Log_AddTraceMask(*args, **kwargs) + return _misc_.Log_AddTraceMask(*args, **kwargs) AddTraceMask = staticmethod(AddTraceMask) def RemoveTraceMask(*args, **kwargs): """Log.RemoveTraceMask(String str)""" - return _misc.Log_RemoveTraceMask(*args, **kwargs) + return _misc_.Log_RemoveTraceMask(*args, **kwargs) RemoveTraceMask = staticmethod(RemoveTraceMask) def ClearTraceMasks(*args, **kwargs): """Log.ClearTraceMasks()""" - return _misc.Log_ClearTraceMasks(*args, **kwargs) + return _misc_.Log_ClearTraceMasks(*args, **kwargs) ClearTraceMasks = staticmethod(ClearTraceMasks) def GetTraceMasks(*args, **kwargs): """Log.GetTraceMasks() -> wxArrayString""" - return _misc.Log_GetTraceMasks(*args, **kwargs) + return _misc_.Log_GetTraceMasks(*args, **kwargs) GetTraceMasks = staticmethod(GetTraceMasks) def SetTimestamp(*args, **kwargs): """Log.SetTimestamp(wxChar ts)""" - return _misc.Log_SetTimestamp(*args, **kwargs) + return _misc_.Log_SetTimestamp(*args, **kwargs) SetTimestamp = staticmethod(SetTimestamp) def GetVerbose(*args, **kwargs): """Log.GetVerbose() -> bool""" - return _misc.Log_GetVerbose(*args, **kwargs) + return _misc_.Log_GetVerbose(*args, **kwargs) GetVerbose = staticmethod(GetVerbose) def GetTraceMask(*args, **kwargs): """Log.GetTraceMask() -> wxTraceMask""" - return _misc.Log_GetTraceMask(*args, **kwargs) + return _misc_.Log_GetTraceMask(*args, **kwargs) GetTraceMask = staticmethod(GetTraceMask) def IsAllowedTraceMask(*args, **kwargs): """Log.IsAllowedTraceMask(wxChar mask) -> bool""" - return _misc.Log_IsAllowedTraceMask(*args, **kwargs) + return _misc_.Log_IsAllowedTraceMask(*args, **kwargs) IsAllowedTraceMask = staticmethod(IsAllowedTraceMask) def GetLogLevel(*args, **kwargs): """Log.GetLogLevel() -> wxLogLevel""" - return _misc.Log_GetLogLevel(*args, **kwargs) + return _misc_.Log_GetLogLevel(*args, **kwargs) GetLogLevel = staticmethod(GetLogLevel) def GetTimestamp(*args, **kwargs): """Log.GetTimestamp() -> wxChar""" - return _misc.Log_GetTimestamp(*args, **kwargs) + return _misc_.Log_GetTimestamp(*args, **kwargs) GetTimestamp = staticmethod(GetTimestamp) def TimeStamp(*args, **kwargs): """Log.TimeStamp() -> String""" - return _misc.Log_TimeStamp(*args, **kwargs) + return _misc_.Log_TimeStamp(*args, **kwargs) TimeStamp = staticmethod(TimeStamp) def Destroy(*args, **kwargs): """Destroy(self)""" - return _misc.Log_Destroy(*args, **kwargs) + return _misc_.Log_Destroy(*args, **kwargs) class LogPtr(Log): @@ -1223,106 +1223,106 @@ class LogPtr(Log): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = Log -_misc.Log_swigregister(LogPtr) +_misc_.Log_swigregister(LogPtr) def Log_IsEnabled(*args, **kwargs): """Log_IsEnabled() -> bool""" - return _misc.Log_IsEnabled(*args, **kwargs) + return _misc_.Log_IsEnabled(*args, **kwargs) def Log_EnableLogging(*args, **kwargs): """Log_EnableLogging(bool doIt=True) -> bool""" - return _misc.Log_EnableLogging(*args, **kwargs) + return _misc_.Log_EnableLogging(*args, **kwargs) def Log_OnLog(*args, **kwargs): """Log_OnLog(wxLogLevel level, wxChar szString, time_t t)""" - return _misc.Log_OnLog(*args, **kwargs) + return _misc_.Log_OnLog(*args, **kwargs) def Log_FlushActive(*args, **kwargs): """Log_FlushActive()""" - return _misc.Log_FlushActive(*args, **kwargs) + return _misc_.Log_FlushActive(*args, **kwargs) def Log_GetActiveTarget(*args, **kwargs): """Log_GetActiveTarget() -> Log""" - return _misc.Log_GetActiveTarget(*args, **kwargs) + return _misc_.Log_GetActiveTarget(*args, **kwargs) def Log_SetActiveTarget(*args, **kwargs): """Log_SetActiveTarget(Log pLogger) -> Log""" - return _misc.Log_SetActiveTarget(*args, **kwargs) + return _misc_.Log_SetActiveTarget(*args, **kwargs) def Log_Suspend(*args, **kwargs): """Log_Suspend()""" - return _misc.Log_Suspend(*args, **kwargs) + return _misc_.Log_Suspend(*args, **kwargs) def Log_Resume(*args, **kwargs): """Log_Resume()""" - return _misc.Log_Resume(*args, **kwargs) + return _misc_.Log_Resume(*args, **kwargs) def Log_SetVerbose(*args, **kwargs): """Log_SetVerbose(bool bVerbose=True)""" - return _misc.Log_SetVerbose(*args, **kwargs) + return _misc_.Log_SetVerbose(*args, **kwargs) def Log_SetLogLevel(*args, **kwargs): """Log_SetLogLevel(wxLogLevel logLevel)""" - return _misc.Log_SetLogLevel(*args, **kwargs) + return _misc_.Log_SetLogLevel(*args, **kwargs) def Log_DontCreateOnDemand(*args, **kwargs): """Log_DontCreateOnDemand()""" - return _misc.Log_DontCreateOnDemand(*args, **kwargs) + return _misc_.Log_DontCreateOnDemand(*args, **kwargs) def Log_SetTraceMask(*args, **kwargs): """Log_SetTraceMask(wxTraceMask ulMask)""" - return _misc.Log_SetTraceMask(*args, **kwargs) + return _misc_.Log_SetTraceMask(*args, **kwargs) def Log_AddTraceMask(*args, **kwargs): """Log_AddTraceMask(String str)""" - return _misc.Log_AddTraceMask(*args, **kwargs) + return _misc_.Log_AddTraceMask(*args, **kwargs) def Log_RemoveTraceMask(*args, **kwargs): """Log_RemoveTraceMask(String str)""" - return _misc.Log_RemoveTraceMask(*args, **kwargs) + return _misc_.Log_RemoveTraceMask(*args, **kwargs) def Log_ClearTraceMasks(*args, **kwargs): """Log_ClearTraceMasks()""" - return _misc.Log_ClearTraceMasks(*args, **kwargs) + return _misc_.Log_ClearTraceMasks(*args, **kwargs) def Log_GetTraceMasks(*args, **kwargs): """Log_GetTraceMasks() -> wxArrayString""" - return _misc.Log_GetTraceMasks(*args, **kwargs) + return _misc_.Log_GetTraceMasks(*args, **kwargs) def Log_SetTimestamp(*args, **kwargs): """Log_SetTimestamp(wxChar ts)""" - return _misc.Log_SetTimestamp(*args, **kwargs) + return _misc_.Log_SetTimestamp(*args, **kwargs) def Log_GetVerbose(*args, **kwargs): """Log_GetVerbose() -> bool""" - return _misc.Log_GetVerbose(*args, **kwargs) + return _misc_.Log_GetVerbose(*args, **kwargs) def Log_GetTraceMask(*args, **kwargs): """Log_GetTraceMask() -> wxTraceMask""" - return _misc.Log_GetTraceMask(*args, **kwargs) + return _misc_.Log_GetTraceMask(*args, **kwargs) def Log_IsAllowedTraceMask(*args, **kwargs): """Log_IsAllowedTraceMask(wxChar mask) -> bool""" - return _misc.Log_IsAllowedTraceMask(*args, **kwargs) + return _misc_.Log_IsAllowedTraceMask(*args, **kwargs) def Log_GetLogLevel(*args, **kwargs): """Log_GetLogLevel() -> wxLogLevel""" - return _misc.Log_GetLogLevel(*args, **kwargs) + return _misc_.Log_GetLogLevel(*args, **kwargs) def Log_GetTimestamp(*args, **kwargs): """Log_GetTimestamp() -> wxChar""" - return _misc.Log_GetTimestamp(*args, **kwargs) + return _misc_.Log_GetTimestamp(*args, **kwargs) def Log_TimeStamp(*args, **kwargs): """Log_TimeStamp() -> String""" - return _misc.Log_TimeStamp(*args, **kwargs) + return _misc_.Log_TimeStamp(*args, **kwargs) class LogStderr(Log): def __repr__(self): return "<%s.%s; proxy of C++ wxLogStderr instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> LogStderr""" - newobj = _misc.new_LogStderr(*args, **kwargs) + newobj = _misc_.new_LogStderr(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -1332,14 +1332,14 @@ class LogStderrPtr(LogStderr): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = LogStderr -_misc.LogStderr_swigregister(LogStderrPtr) +_misc_.LogStderr_swigregister(LogStderrPtr) class LogTextCtrl(Log): def __repr__(self): return "<%s.%s; proxy of C++ wxLogTextCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, wxTextCtrl pTextCtrl) -> LogTextCtrl""" - newobj = _misc.new_LogTextCtrl(*args, **kwargs) + newobj = _misc_.new_LogTextCtrl(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -1349,14 +1349,14 @@ class LogTextCtrlPtr(LogTextCtrl): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = LogTextCtrl -_misc.LogTextCtrl_swigregister(LogTextCtrlPtr) +_misc_.LogTextCtrl_swigregister(LogTextCtrlPtr) class LogGui(Log): def __repr__(self): return "<%s.%s; proxy of C++ wxLogGui instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> LogGui""" - newobj = _misc.new_LogGui(*args, **kwargs) + newobj = _misc_.new_LogGui(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -1366,36 +1366,36 @@ class LogGuiPtr(LogGui): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = LogGui -_misc.LogGui_swigregister(LogGuiPtr) +_misc_.LogGui_swigregister(LogGuiPtr) class LogWindow(Log): def __repr__(self): return "<%s.%s; proxy of C++ wxLogWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, wxFrame pParent, String szTitle, bool bShow=True, bool bPassToOld=True) -> LogWindow""" - newobj = _misc.new_LogWindow(*args, **kwargs) + newobj = _misc_.new_LogWindow(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def Show(*args, **kwargs): """Show(self, bool bShow=True)""" - return _misc.LogWindow_Show(*args, **kwargs) + return _misc_.LogWindow_Show(*args, **kwargs) def GetFrame(*args, **kwargs): """GetFrame(self) -> wxFrame""" - return _misc.LogWindow_GetFrame(*args, **kwargs) + return _misc_.LogWindow_GetFrame(*args, **kwargs) def GetOldLog(*args, **kwargs): """GetOldLog(self) -> Log""" - return _misc.LogWindow_GetOldLog(*args, **kwargs) + return _misc_.LogWindow_GetOldLog(*args, **kwargs) def IsPassingMessages(*args, **kwargs): """IsPassingMessages(self) -> bool""" - return _misc.LogWindow_IsPassingMessages(*args, **kwargs) + return _misc_.LogWindow_IsPassingMessages(*args, **kwargs) def PassMessages(*args, **kwargs): """PassMessages(self, bool bDoPass)""" - return _misc.LogWindow_PassMessages(*args, **kwargs) + return _misc_.LogWindow_PassMessages(*args, **kwargs) class LogWindowPtr(LogWindow): @@ -1403,32 +1403,32 @@ class LogWindowPtr(LogWindow): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = LogWindow -_misc.LogWindow_swigregister(LogWindowPtr) +_misc_.LogWindow_swigregister(LogWindowPtr) class LogChain(Log): def __repr__(self): return "<%s.%s; proxy of C++ wxLogChain instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, Log logger) -> LogChain""" - newobj = _misc.new_LogChain(*args, **kwargs) + newobj = _misc_.new_LogChain(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def SetLog(*args, **kwargs): """SetLog(self, Log logger)""" - return _misc.LogChain_SetLog(*args, **kwargs) + return _misc_.LogChain_SetLog(*args, **kwargs) def PassMessages(*args, **kwargs): """PassMessages(self, bool bDoPass)""" - return _misc.LogChain_PassMessages(*args, **kwargs) + return _misc_.LogChain_PassMessages(*args, **kwargs) def IsPassingMessages(*args, **kwargs): """IsPassingMessages(self) -> bool""" - return _misc.LogChain_IsPassingMessages(*args, **kwargs) + return _misc_.LogChain_IsPassingMessages(*args, **kwargs) def GetOldLog(*args, **kwargs): """GetOldLog(self) -> Log""" - return _misc.LogChain_GetOldLog(*args, **kwargs) + return _misc_.LogChain_GetOldLog(*args, **kwargs) class LogChainPtr(LogChain): @@ -1436,74 +1436,74 @@ class LogChainPtr(LogChain): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = LogChain -_misc.LogChain_swigregister(LogChainPtr) +_misc_.LogChain_swigregister(LogChainPtr) def SysErrorCode(*args, **kwargs): """SysErrorCode() -> unsigned long""" - return _misc.SysErrorCode(*args, **kwargs) + return _misc_.SysErrorCode(*args, **kwargs) def SysErrorMsg(*args, **kwargs): """SysErrorMsg(unsigned long nErrCode=0) -> String""" - return _misc.SysErrorMsg(*args, **kwargs) + return _misc_.SysErrorMsg(*args, **kwargs) def LogFatalError(*args, **kwargs): """LogFatalError(String msg)""" - return _misc.LogFatalError(*args, **kwargs) + return _misc_.LogFatalError(*args, **kwargs) def LogError(*args, **kwargs): """LogError(String msg)""" - return _misc.LogError(*args, **kwargs) + return _misc_.LogError(*args, **kwargs) def LogWarning(*args, **kwargs): """LogWarning(String msg)""" - return _misc.LogWarning(*args, **kwargs) + return _misc_.LogWarning(*args, **kwargs) def LogMessage(*args, **kwargs): """LogMessage(String msg)""" - return _misc.LogMessage(*args, **kwargs) + return _misc_.LogMessage(*args, **kwargs) def LogInfo(*args, **kwargs): """LogInfo(String msg)""" - return _misc.LogInfo(*args, **kwargs) + return _misc_.LogInfo(*args, **kwargs) def LogDebug(*args, **kwargs): """LogDebug(String msg)""" - return _misc.LogDebug(*args, **kwargs) + return _misc_.LogDebug(*args, **kwargs) def LogVerbose(*args, **kwargs): """LogVerbose(String msg)""" - return _misc.LogVerbose(*args, **kwargs) + return _misc_.LogVerbose(*args, **kwargs) def LogStatus(*args, **kwargs): """LogStatus(String msg)""" - return _misc.LogStatus(*args, **kwargs) + return _misc_.LogStatus(*args, **kwargs) def LogStatusFrame(*args, **kwargs): """LogStatusFrame(wxFrame pFrame, String msg)""" - return _misc.LogStatusFrame(*args, **kwargs) + return _misc_.LogStatusFrame(*args, **kwargs) def LogSysError(*args, **kwargs): """LogSysError(String msg)""" - return _misc.LogSysError(*args, **kwargs) + return _misc_.LogSysError(*args, **kwargs) def LogGeneric(*args, **kwargs): """LogGeneric(unsigned long level, String msg)""" - return _misc.LogGeneric(*args, **kwargs) + return _misc_.LogGeneric(*args, **kwargs) def SafeShowMessage(*args, **kwargs): """SafeShowMessage(String title, String text)""" - return _misc.SafeShowMessage(*args, **kwargs) + return _misc_.SafeShowMessage(*args, **kwargs) class LogNull(object): def __repr__(self): return "<%s.%s; proxy of C++ wxLogNull instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> LogNull""" - newobj = _misc.new_LogNull(*args, **kwargs) + newobj = _misc_.new_LogNull(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_misc.delete_LogNull): + def __del__(self, destroy=_misc_.delete_LogNull): """__del__(self)""" try: if self.thisown: destroy(self) @@ -1515,21 +1515,21 @@ class LogNullPtr(LogNull): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = LogNull -_misc.LogNull_swigregister(LogNullPtr) +_misc_.LogNull_swigregister(LogNullPtr) def LogTrace(*args): """ LogTrace(unsigned long mask, String msg) LogTrace(String mask, String msg) """ - return _misc.LogTrace(*args) + return _misc_.LogTrace(*args) class PyLog(Log): def __repr__(self): return "<%s.%s; proxy of C++ wxPyLog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> PyLog""" - newobj = _misc.new_PyLog(*args, **kwargs) + newobj = _misc_.new_PyLog(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -1537,7 +1537,7 @@ class PyLog(Log): def _setCallbackInfo(*args, **kwargs): """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _misc.PyLog__setCallbackInfo(*args, **kwargs) + return _misc_.PyLog__setCallbackInfo(*args, **kwargs) class PyLogPtr(PyLog): @@ -1545,55 +1545,55 @@ class PyLogPtr(PyLog): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = PyLog -_misc.PyLog_swigregister(PyLogPtr) +_misc_.PyLog_swigregister(PyLogPtr) #--------------------------------------------------------------------------- -PROCESS_DEFAULT = _misc.PROCESS_DEFAULT -PROCESS_REDIRECT = _misc.PROCESS_REDIRECT -KILL_OK = _misc.KILL_OK -KILL_BAD_SIGNAL = _misc.KILL_BAD_SIGNAL -KILL_ACCESS_DENIED = _misc.KILL_ACCESS_DENIED -KILL_NO_PROCESS = _misc.KILL_NO_PROCESS -KILL_ERROR = _misc.KILL_ERROR -SIGNONE = _misc.SIGNONE -SIGHUP = _misc.SIGHUP -SIGINT = _misc.SIGINT -SIGQUIT = _misc.SIGQUIT -SIGILL = _misc.SIGILL -SIGTRAP = _misc.SIGTRAP -SIGABRT = _misc.SIGABRT -SIGIOT = _misc.SIGIOT -SIGEMT = _misc.SIGEMT -SIGFPE = _misc.SIGFPE -SIGKILL = _misc.SIGKILL -SIGBUS = _misc.SIGBUS -SIGSEGV = _misc.SIGSEGV -SIGSYS = _misc.SIGSYS -SIGPIPE = _misc.SIGPIPE -SIGALRM = _misc.SIGALRM -SIGTERM = _misc.SIGTERM -class Process(core.EvtHandler): +PROCESS_DEFAULT = _misc_.PROCESS_DEFAULT +PROCESS_REDIRECT = _misc_.PROCESS_REDIRECT +KILL_OK = _misc_.KILL_OK +KILL_BAD_SIGNAL = _misc_.KILL_BAD_SIGNAL +KILL_ACCESS_DENIED = _misc_.KILL_ACCESS_DENIED +KILL_NO_PROCESS = _misc_.KILL_NO_PROCESS +KILL_ERROR = _misc_.KILL_ERROR +SIGNONE = _misc_.SIGNONE +SIGHUP = _misc_.SIGHUP +SIGINT = _misc_.SIGINT +SIGQUIT = _misc_.SIGQUIT +SIGILL = _misc_.SIGILL +SIGTRAP = _misc_.SIGTRAP +SIGABRT = _misc_.SIGABRT +SIGIOT = _misc_.SIGIOT +SIGEMT = _misc_.SIGEMT +SIGFPE = _misc_.SIGFPE +SIGKILL = _misc_.SIGKILL +SIGBUS = _misc_.SIGBUS +SIGSEGV = _misc_.SIGSEGV +SIGSYS = _misc_.SIGSYS +SIGPIPE = _misc_.SIGPIPE +SIGALRM = _misc_.SIGALRM +SIGTERM = _misc_.SIGTERM +class Process(_core.EvtHandler): def __repr__(self): return "<%s.%s; proxy of C++ wxPyProcess instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def Kill(*args, **kwargs): """Process.Kill(int pid, int sig=SIGTERM) -> int""" - return _misc.Process_Kill(*args, **kwargs) + return _misc_.Process_Kill(*args, **kwargs) Kill = staticmethod(Kill) def Exists(*args, **kwargs): """Process.Exists(int pid) -> bool""" - return _misc.Process_Exists(*args, **kwargs) + return _misc_.Process_Exists(*args, **kwargs) Exists = staticmethod(Exists) def Open(*args, **kwargs): """Process.Open(String cmd, int flags=EXEC_ASYNC) -> Process""" - return _misc.Process_Open(*args, **kwargs) + return _misc_.Process_Open(*args, **kwargs) Open = staticmethod(Open) def __init__(self, *args, **kwargs): """__init__(self, EvtHandler parent=None, int id=-1) -> Process""" - newobj = _misc.new_Process(*args, **kwargs) + newobj = _misc_.new_Process(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -1601,51 +1601,51 @@ class Process(core.EvtHandler): def _setCallbackInfo(*args, **kwargs): """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _misc.Process__setCallbackInfo(*args, **kwargs) + return _misc_.Process__setCallbackInfo(*args, **kwargs) def base_OnTerminate(*args, **kwargs): """base_OnTerminate(self, int pid, int status)""" - return _misc.Process_base_OnTerminate(*args, **kwargs) + return _misc_.Process_base_OnTerminate(*args, **kwargs) def Redirect(*args, **kwargs): """Redirect(self)""" - return _misc.Process_Redirect(*args, **kwargs) + return _misc_.Process_Redirect(*args, **kwargs) def IsRedirected(*args, **kwargs): """IsRedirected(self) -> bool""" - return _misc.Process_IsRedirected(*args, **kwargs) + return _misc_.Process_IsRedirected(*args, **kwargs) def Detach(*args, **kwargs): """Detach(self)""" - return _misc.Process_Detach(*args, **kwargs) + return _misc_.Process_Detach(*args, **kwargs) def GetInputStream(*args, **kwargs): """GetInputStream(self) -> InputStream""" - return _misc.Process_GetInputStream(*args, **kwargs) + return _misc_.Process_GetInputStream(*args, **kwargs) def GetErrorStream(*args, **kwargs): """GetErrorStream(self) -> InputStream""" - return _misc.Process_GetErrorStream(*args, **kwargs) + return _misc_.Process_GetErrorStream(*args, **kwargs) def GetOutputStream(*args, **kwargs): """GetOutputStream(self) -> OutputStream""" - return _misc.Process_GetOutputStream(*args, **kwargs) + return _misc_.Process_GetOutputStream(*args, **kwargs) def CloseOutput(*args, **kwargs): """CloseOutput(self)""" - return _misc.Process_CloseOutput(*args, **kwargs) + return _misc_.Process_CloseOutput(*args, **kwargs) def IsInputOpened(*args, **kwargs): """IsInputOpened(self) -> bool""" - return _misc.Process_IsInputOpened(*args, **kwargs) + return _misc_.Process_IsInputOpened(*args, **kwargs) def IsInputAvailable(*args, **kwargs): """IsInputAvailable(self) -> bool""" - return _misc.Process_IsInputAvailable(*args, **kwargs) + return _misc_.Process_IsInputAvailable(*args, **kwargs) def IsErrorAvailable(*args, **kwargs): """IsErrorAvailable(self) -> bool""" - return _misc.Process_IsErrorAvailable(*args, **kwargs) + return _misc_.Process_IsErrorAvailable(*args, **kwargs) class ProcessPtr(Process): @@ -1653,77 +1653,77 @@ class ProcessPtr(Process): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = Process -_misc.Process_swigregister(ProcessPtr) +_misc_.Process_swigregister(ProcessPtr) def Process_Kill(*args, **kwargs): """Process_Kill(int pid, int sig=SIGTERM) -> int""" - return _misc.Process_Kill(*args, **kwargs) + return _misc_.Process_Kill(*args, **kwargs) def Process_Exists(*args, **kwargs): """Process_Exists(int pid) -> bool""" - return _misc.Process_Exists(*args, **kwargs) + return _misc_.Process_Exists(*args, **kwargs) def Process_Open(*args, **kwargs): """Process_Open(String cmd, int flags=EXEC_ASYNC) -> Process""" - return _misc.Process_Open(*args, **kwargs) + return _misc_.Process_Open(*args, **kwargs) -class ProcessEvent(core.Event): +class ProcessEvent(_core.Event): def __repr__(self): return "<%s.%s; proxy of C++ wxProcessEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, int id=0, int pid=0, int exitcode=0) -> ProcessEvent""" - newobj = _misc.new_ProcessEvent(*args, **kwargs) + newobj = _misc_.new_ProcessEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def GetPid(*args, **kwargs): """GetPid(self) -> int""" - return _misc.ProcessEvent_GetPid(*args, **kwargs) + return _misc_.ProcessEvent_GetPid(*args, **kwargs) def GetExitCode(*args, **kwargs): """GetExitCode(self) -> int""" - return _misc.ProcessEvent_GetExitCode(*args, **kwargs) + return _misc_.ProcessEvent_GetExitCode(*args, **kwargs) - m_pid = property(_misc.ProcessEvent_m_pid_get, _misc.ProcessEvent_m_pid_set) - m_exitcode = property(_misc.ProcessEvent_m_exitcode_get, _misc.ProcessEvent_m_exitcode_set) + m_pid = property(_misc_.ProcessEvent_m_pid_get, _misc_.ProcessEvent_m_pid_set) + m_exitcode = property(_misc_.ProcessEvent_m_exitcode_get, _misc_.ProcessEvent_m_exitcode_set) class ProcessEventPtr(ProcessEvent): def __init__(self, this): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = ProcessEvent -_misc.ProcessEvent_swigregister(ProcessEventPtr) +_misc_.ProcessEvent_swigregister(ProcessEventPtr) -wxEVT_END_PROCESS = _misc.wxEVT_END_PROCESS +wxEVT_END_PROCESS = _misc_.wxEVT_END_PROCESS EVT_END_PROCESS = wx.PyEventBinder( wxEVT_END_PROCESS, 1 ) -EXEC_ASYNC = _misc.EXEC_ASYNC -EXEC_SYNC = _misc.EXEC_SYNC -EXEC_NOHIDE = _misc.EXEC_NOHIDE -EXEC_MAKE_GROUP_LEADER = _misc.EXEC_MAKE_GROUP_LEADER +EXEC_ASYNC = _misc_.EXEC_ASYNC +EXEC_SYNC = _misc_.EXEC_SYNC +EXEC_NOHIDE = _misc_.EXEC_NOHIDE +EXEC_MAKE_GROUP_LEADER = _misc_.EXEC_MAKE_GROUP_LEADER def Execute(*args, **kwargs): """Execute(String command, int flags=EXEC_ASYNC, Process process=None) -> long""" - return _misc.Execute(*args, **kwargs) + return _misc_.Execute(*args, **kwargs) #--------------------------------------------------------------------------- -JOYSTICK1 = _misc.JOYSTICK1 -JOYSTICK2 = _misc.JOYSTICK2 -JOY_BUTTON_ANY = _misc.JOY_BUTTON_ANY -JOY_BUTTON1 = _misc.JOY_BUTTON1 -JOY_BUTTON2 = _misc.JOY_BUTTON2 -JOY_BUTTON3 = _misc.JOY_BUTTON3 -JOY_BUTTON4 = _misc.JOY_BUTTON4 +JOYSTICK1 = _misc_.JOYSTICK1 +JOYSTICK2 = _misc_.JOYSTICK2 +JOY_BUTTON_ANY = _misc_.JOY_BUTTON_ANY +JOY_BUTTON1 = _misc_.JOY_BUTTON1 +JOY_BUTTON2 = _misc_.JOY_BUTTON2 +JOY_BUTTON3 = _misc_.JOY_BUTTON3 +JOY_BUTTON4 = _misc_.JOY_BUTTON4 class Joystick(object): def __repr__(self): return "<%s.%s; proxy of C++ wxJoystick instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, int joystick=JOYSTICK1) -> Joystick""" - newobj = _misc.new_Joystick(*args, **kwargs) + newobj = _misc_.new_Joystick(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_misc.delete_Joystick): + def __del__(self, destroy=_misc_.delete_Joystick): """__del__(self)""" try: if self.thisown: destroy(self) @@ -1731,171 +1731,171 @@ class Joystick(object): def GetPosition(*args, **kwargs): """GetPosition(self) -> Point""" - return _misc.Joystick_GetPosition(*args, **kwargs) + return _misc_.Joystick_GetPosition(*args, **kwargs) def GetZPosition(*args, **kwargs): """GetZPosition(self) -> int""" - return _misc.Joystick_GetZPosition(*args, **kwargs) + return _misc_.Joystick_GetZPosition(*args, **kwargs) def GetButtonState(*args, **kwargs): """GetButtonState(self) -> int""" - return _misc.Joystick_GetButtonState(*args, **kwargs) + return _misc_.Joystick_GetButtonState(*args, **kwargs) def GetPOVPosition(*args, **kwargs): """GetPOVPosition(self) -> int""" - return _misc.Joystick_GetPOVPosition(*args, **kwargs) + return _misc_.Joystick_GetPOVPosition(*args, **kwargs) def GetPOVCTSPosition(*args, **kwargs): """GetPOVCTSPosition(self) -> int""" - return _misc.Joystick_GetPOVCTSPosition(*args, **kwargs) + return _misc_.Joystick_GetPOVCTSPosition(*args, **kwargs) def GetRudderPosition(*args, **kwargs): """GetRudderPosition(self) -> int""" - return _misc.Joystick_GetRudderPosition(*args, **kwargs) + return _misc_.Joystick_GetRudderPosition(*args, **kwargs) def GetUPosition(*args, **kwargs): """GetUPosition(self) -> int""" - return _misc.Joystick_GetUPosition(*args, **kwargs) + return _misc_.Joystick_GetUPosition(*args, **kwargs) def GetVPosition(*args, **kwargs): """GetVPosition(self) -> int""" - return _misc.Joystick_GetVPosition(*args, **kwargs) + return _misc_.Joystick_GetVPosition(*args, **kwargs) def GetMovementThreshold(*args, **kwargs): """GetMovementThreshold(self) -> int""" - return _misc.Joystick_GetMovementThreshold(*args, **kwargs) + return _misc_.Joystick_GetMovementThreshold(*args, **kwargs) def SetMovementThreshold(*args, **kwargs): """SetMovementThreshold(self, int threshold)""" - return _misc.Joystick_SetMovementThreshold(*args, **kwargs) + return _misc_.Joystick_SetMovementThreshold(*args, **kwargs) def IsOk(*args, **kwargs): """IsOk(self) -> bool""" - return _misc.Joystick_IsOk(*args, **kwargs) + return _misc_.Joystick_IsOk(*args, **kwargs) def GetNumberJoysticks(*args, **kwargs): """GetNumberJoysticks(self) -> int""" - return _misc.Joystick_GetNumberJoysticks(*args, **kwargs) + return _misc_.Joystick_GetNumberJoysticks(*args, **kwargs) def GetManufacturerId(*args, **kwargs): """GetManufacturerId(self) -> int""" - return _misc.Joystick_GetManufacturerId(*args, **kwargs) + return _misc_.Joystick_GetManufacturerId(*args, **kwargs) def GetProductId(*args, **kwargs): """GetProductId(self) -> int""" - return _misc.Joystick_GetProductId(*args, **kwargs) + return _misc_.Joystick_GetProductId(*args, **kwargs) def GetProductName(*args, **kwargs): """GetProductName(self) -> String""" - return _misc.Joystick_GetProductName(*args, **kwargs) + return _misc_.Joystick_GetProductName(*args, **kwargs) def GetXMin(*args, **kwargs): """GetXMin(self) -> int""" - return _misc.Joystick_GetXMin(*args, **kwargs) + return _misc_.Joystick_GetXMin(*args, **kwargs) def GetYMin(*args, **kwargs): """GetYMin(self) -> int""" - return _misc.Joystick_GetYMin(*args, **kwargs) + return _misc_.Joystick_GetYMin(*args, **kwargs) def GetZMin(*args, **kwargs): """GetZMin(self) -> int""" - return _misc.Joystick_GetZMin(*args, **kwargs) + return _misc_.Joystick_GetZMin(*args, **kwargs) def GetXMax(*args, **kwargs): """GetXMax(self) -> int""" - return _misc.Joystick_GetXMax(*args, **kwargs) + return _misc_.Joystick_GetXMax(*args, **kwargs) def GetYMax(*args, **kwargs): """GetYMax(self) -> int""" - return _misc.Joystick_GetYMax(*args, **kwargs) + return _misc_.Joystick_GetYMax(*args, **kwargs) def GetZMax(*args, **kwargs): """GetZMax(self) -> int""" - return _misc.Joystick_GetZMax(*args, **kwargs) + return _misc_.Joystick_GetZMax(*args, **kwargs) def GetNumberButtons(*args, **kwargs): """GetNumberButtons(self) -> int""" - return _misc.Joystick_GetNumberButtons(*args, **kwargs) + return _misc_.Joystick_GetNumberButtons(*args, **kwargs) def GetNumberAxes(*args, **kwargs): """GetNumberAxes(self) -> int""" - return _misc.Joystick_GetNumberAxes(*args, **kwargs) + return _misc_.Joystick_GetNumberAxes(*args, **kwargs) def GetMaxButtons(*args, **kwargs): """GetMaxButtons(self) -> int""" - return _misc.Joystick_GetMaxButtons(*args, **kwargs) + return _misc_.Joystick_GetMaxButtons(*args, **kwargs) def GetMaxAxes(*args, **kwargs): """GetMaxAxes(self) -> int""" - return _misc.Joystick_GetMaxAxes(*args, **kwargs) + return _misc_.Joystick_GetMaxAxes(*args, **kwargs) def GetPollingMin(*args, **kwargs): """GetPollingMin(self) -> int""" - return _misc.Joystick_GetPollingMin(*args, **kwargs) + return _misc_.Joystick_GetPollingMin(*args, **kwargs) def GetPollingMax(*args, **kwargs): """GetPollingMax(self) -> int""" - return _misc.Joystick_GetPollingMax(*args, **kwargs) + return _misc_.Joystick_GetPollingMax(*args, **kwargs) def GetRudderMin(*args, **kwargs): """GetRudderMin(self) -> int""" - return _misc.Joystick_GetRudderMin(*args, **kwargs) + return _misc_.Joystick_GetRudderMin(*args, **kwargs) def GetRudderMax(*args, **kwargs): """GetRudderMax(self) -> int""" - return _misc.Joystick_GetRudderMax(*args, **kwargs) + return _misc_.Joystick_GetRudderMax(*args, **kwargs) def GetUMin(*args, **kwargs): """GetUMin(self) -> int""" - return _misc.Joystick_GetUMin(*args, **kwargs) + return _misc_.Joystick_GetUMin(*args, **kwargs) def GetUMax(*args, **kwargs): """GetUMax(self) -> int""" - return _misc.Joystick_GetUMax(*args, **kwargs) + return _misc_.Joystick_GetUMax(*args, **kwargs) def GetVMin(*args, **kwargs): """GetVMin(self) -> int""" - return _misc.Joystick_GetVMin(*args, **kwargs) + return _misc_.Joystick_GetVMin(*args, **kwargs) def GetVMax(*args, **kwargs): """GetVMax(self) -> int""" - return _misc.Joystick_GetVMax(*args, **kwargs) + return _misc_.Joystick_GetVMax(*args, **kwargs) def HasRudder(*args, **kwargs): """HasRudder(self) -> bool""" - return _misc.Joystick_HasRudder(*args, **kwargs) + return _misc_.Joystick_HasRudder(*args, **kwargs) def HasZ(*args, **kwargs): """HasZ(self) -> bool""" - return _misc.Joystick_HasZ(*args, **kwargs) + return _misc_.Joystick_HasZ(*args, **kwargs) def HasU(*args, **kwargs): """HasU(self) -> bool""" - return _misc.Joystick_HasU(*args, **kwargs) + return _misc_.Joystick_HasU(*args, **kwargs) def HasV(*args, **kwargs): """HasV(self) -> bool""" - return _misc.Joystick_HasV(*args, **kwargs) + return _misc_.Joystick_HasV(*args, **kwargs) def HasPOV(*args, **kwargs): """HasPOV(self) -> bool""" - return _misc.Joystick_HasPOV(*args, **kwargs) + return _misc_.Joystick_HasPOV(*args, **kwargs) def HasPOV4Dir(*args, **kwargs): """HasPOV4Dir(self) -> bool""" - return _misc.Joystick_HasPOV4Dir(*args, **kwargs) + return _misc_.Joystick_HasPOV4Dir(*args, **kwargs) def HasPOVCTS(*args, **kwargs): """HasPOVCTS(self) -> bool""" - return _misc.Joystick_HasPOVCTS(*args, **kwargs) + return _misc_.Joystick_HasPOVCTS(*args, **kwargs) def SetCapture(*args, **kwargs): """SetCapture(self, Window win, int pollingFreq=0) -> bool""" - return _misc.Joystick_SetCapture(*args, **kwargs) + return _misc_.Joystick_SetCapture(*args, **kwargs) def ReleaseCapture(*args, **kwargs): """ReleaseCapture(self) -> bool""" - return _misc.Joystick_ReleaseCapture(*args, **kwargs) + return _misc_.Joystick_ReleaseCapture(*args, **kwargs) def __nonzero__(self): return self.IsOk() @@ -1904,92 +1904,92 @@ class JoystickPtr(Joystick): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = Joystick -_misc.Joystick_swigregister(JoystickPtr) +_misc_.Joystick_swigregister(JoystickPtr) -wxEVT_JOY_BUTTON_DOWN = _misc.wxEVT_JOY_BUTTON_DOWN -wxEVT_JOY_BUTTON_UP = _misc.wxEVT_JOY_BUTTON_UP -wxEVT_JOY_MOVE = _misc.wxEVT_JOY_MOVE -wxEVT_JOY_ZMOVE = _misc.wxEVT_JOY_ZMOVE -class JoystickEvent(core.Event): +wxEVT_JOY_BUTTON_DOWN = _misc_.wxEVT_JOY_BUTTON_DOWN +wxEVT_JOY_BUTTON_UP = _misc_.wxEVT_JOY_BUTTON_UP +wxEVT_JOY_MOVE = _misc_.wxEVT_JOY_MOVE +wxEVT_JOY_ZMOVE = _misc_.wxEVT_JOY_ZMOVE +class JoystickEvent(_core.Event): def __repr__(self): return "<%s.%s; proxy of C++ wxJoystickEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - m_pos = property(_misc.JoystickEvent_m_pos_get, _misc.JoystickEvent_m_pos_set) - m_zPosition = property(_misc.JoystickEvent_m_zPosition_get, _misc.JoystickEvent_m_zPosition_set) - m_buttonChange = property(_misc.JoystickEvent_m_buttonChange_get, _misc.JoystickEvent_m_buttonChange_set) - m_buttonState = property(_misc.JoystickEvent_m_buttonState_get, _misc.JoystickEvent_m_buttonState_set) - m_joyStick = property(_misc.JoystickEvent_m_joyStick_get, _misc.JoystickEvent_m_joyStick_set) + m_pos = property(_misc_.JoystickEvent_m_pos_get, _misc_.JoystickEvent_m_pos_set) + m_zPosition = property(_misc_.JoystickEvent_m_zPosition_get, _misc_.JoystickEvent_m_zPosition_set) + m_buttonChange = property(_misc_.JoystickEvent_m_buttonChange_get, _misc_.JoystickEvent_m_buttonChange_set) + m_buttonState = property(_misc_.JoystickEvent_m_buttonState_get, _misc_.JoystickEvent_m_buttonState_set) + m_joyStick = property(_misc_.JoystickEvent_m_joyStick_get, _misc_.JoystickEvent_m_joyStick_set) def __init__(self, *args, **kwargs): """ __init__(self, wxEventType type=wxEVT_NULL, int state=0, int joystick=JOYSTICK1, int change=0) -> JoystickEvent """ - newobj = _misc.new_JoystickEvent(*args, **kwargs) + newobj = _misc_.new_JoystickEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def GetPosition(*args, **kwargs): """GetPosition(self) -> Point""" - return _misc.JoystickEvent_GetPosition(*args, **kwargs) + return _misc_.JoystickEvent_GetPosition(*args, **kwargs) def GetZPosition(*args, **kwargs): """GetZPosition(self) -> int""" - return _misc.JoystickEvent_GetZPosition(*args, **kwargs) + return _misc_.JoystickEvent_GetZPosition(*args, **kwargs) def GetButtonState(*args, **kwargs): """GetButtonState(self) -> int""" - return _misc.JoystickEvent_GetButtonState(*args, **kwargs) + return _misc_.JoystickEvent_GetButtonState(*args, **kwargs) def GetButtonChange(*args, **kwargs): """GetButtonChange(self) -> int""" - return _misc.JoystickEvent_GetButtonChange(*args, **kwargs) + return _misc_.JoystickEvent_GetButtonChange(*args, **kwargs) def GetJoystick(*args, **kwargs): """GetJoystick(self) -> int""" - return _misc.JoystickEvent_GetJoystick(*args, **kwargs) + return _misc_.JoystickEvent_GetJoystick(*args, **kwargs) def SetJoystick(*args, **kwargs): """SetJoystick(self, int stick)""" - return _misc.JoystickEvent_SetJoystick(*args, **kwargs) + return _misc_.JoystickEvent_SetJoystick(*args, **kwargs) def SetButtonState(*args, **kwargs): """SetButtonState(self, int state)""" - return _misc.JoystickEvent_SetButtonState(*args, **kwargs) + return _misc_.JoystickEvent_SetButtonState(*args, **kwargs) def SetButtonChange(*args, **kwargs): """SetButtonChange(self, int change)""" - return _misc.JoystickEvent_SetButtonChange(*args, **kwargs) + return _misc_.JoystickEvent_SetButtonChange(*args, **kwargs) def SetPosition(*args, **kwargs): """SetPosition(self, Point pos)""" - return _misc.JoystickEvent_SetPosition(*args, **kwargs) + return _misc_.JoystickEvent_SetPosition(*args, **kwargs) def SetZPosition(*args, **kwargs): """SetZPosition(self, int zPos)""" - return _misc.JoystickEvent_SetZPosition(*args, **kwargs) + return _misc_.JoystickEvent_SetZPosition(*args, **kwargs) def IsButton(*args, **kwargs): """IsButton(self) -> bool""" - return _misc.JoystickEvent_IsButton(*args, **kwargs) + return _misc_.JoystickEvent_IsButton(*args, **kwargs) def IsMove(*args, **kwargs): """IsMove(self) -> bool""" - return _misc.JoystickEvent_IsMove(*args, **kwargs) + return _misc_.JoystickEvent_IsMove(*args, **kwargs) def IsZMove(*args, **kwargs): """IsZMove(self) -> bool""" - return _misc.JoystickEvent_IsZMove(*args, **kwargs) + return _misc_.JoystickEvent_IsZMove(*args, **kwargs) def ButtonDown(*args, **kwargs): """ButtonDown(self, int but=JOY_BUTTON_ANY) -> bool""" - return _misc.JoystickEvent_ButtonDown(*args, **kwargs) + return _misc_.JoystickEvent_ButtonDown(*args, **kwargs) def ButtonUp(*args, **kwargs): """ButtonUp(self, int but=JOY_BUTTON_ANY) -> bool""" - return _misc.JoystickEvent_ButtonUp(*args, **kwargs) + return _misc_.JoystickEvent_ButtonUp(*args, **kwargs) def ButtonIsDown(*args, **kwargs): """ButtonIsDown(self, int but=JOY_BUTTON_ANY) -> bool""" - return _misc.JoystickEvent_ButtonIsDown(*args, **kwargs) + return _misc_.JoystickEvent_ButtonIsDown(*args, **kwargs) class JoystickEventPtr(JoystickEvent): @@ -1997,7 +1997,7 @@ class JoystickEventPtr(JoystickEvent): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = JoystickEvent -_misc.JoystickEvent_swigregister(JoystickEventPtr) +_misc_.JoystickEvent_swigregister(JoystickEventPtr) EVT_JOY_BUTTON_DOWN = wx.PyEventBinder( wxEVT_JOY_BUTTON_DOWN ) EVT_JOY_BUTTON_UP = wx.PyEventBinder( wxEVT_JOY_BUTTON_UP ) @@ -2013,9 +2013,9 @@ EVT_JOYSTICK_EVENTS = wx.PyEventBinder([ wxEVT_JOY_BUTTON_DOWN, #--------------------------------------------------------------------------- -SOUND_SYNC = _misc.SOUND_SYNC -SOUND_ASYNC = _misc.SOUND_ASYNC -SOUND_LOOP = _misc.SOUND_LOOP +SOUND_SYNC = _misc_.SOUND_SYNC +SOUND_ASYNC = _misc_.SOUND_ASYNC +SOUND_LOOP = _misc_.SOUND_LOOP class Sound(object): def __repr__(self): return "<%s.%s; proxy of C++ wxSound instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) @@ -2025,11 +2025,11 @@ class Sound(object): __init__(self, String fileName, bool isResource=false) -> Sound __init__(self, int size, wxByte data) -> Sound """ - newobj = _misc.new_Sound(*args) + newobj = _misc_.new_Sound(*args) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_misc.delete_Sound): + def __del__(self, destroy=_misc_.delete_Sound): """__del__(self)""" try: if self.thisown: destroy(self) @@ -2040,24 +2040,24 @@ class Sound(object): Create(self, String fileName, bool isResource=false) -> bool Create(self, int size, wxByte data) -> bool """ - return _misc.Sound_Create(*args) + return _misc_.Sound_Create(*args) def IsOk(*args, **kwargs): """IsOk(self) -> bool""" - return _misc.Sound_IsOk(*args, **kwargs) + return _misc_.Sound_IsOk(*args, **kwargs) def Play(*args): """Play(self, unsigned int flags=SOUND_ASYNC) -> bool""" - return _misc.Sound_Play(*args) + return _misc_.Sound_Play(*args) def PlaySound(*args): """Sound.PlaySound(String filename, unsigned int flags=SOUND_ASYNC) -> bool""" - return _misc.Sound_PlaySound(*args) + return _misc_.Sound_PlaySound(*args) PlaySound = staticmethod(PlaySound) def Stop(*args, **kwargs): """Sound.Stop()""" - return _misc.Sound_Stop(*args, **kwargs) + return _misc_.Sound_Stop(*args, **kwargs) Stop = staticmethod(Stop) def __nonzero__(self): return self.IsOk() @@ -2067,79 +2067,79 @@ class SoundPtr(Sound): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = Sound -_misc.Sound_swigregister(SoundPtr) +_misc_.Sound_swigregister(SoundPtr) def Sound_PlaySound(*args): """Sound_PlaySound(String filename, unsigned int flags=SOUND_ASYNC) -> bool""" - return _misc.Sound_PlaySound(*args) + return _misc_.Sound_PlaySound(*args) def Sound_Stop(*args, **kwargs): """Sound_Stop()""" - return _misc.Sound_Stop(*args, **kwargs) + return _misc_.Sound_Stop(*args, **kwargs) #--------------------------------------------------------------------------- -MAILCAP_STANDARD = _misc.MAILCAP_STANDARD -MAILCAP_NETSCAPE = _misc.MAILCAP_NETSCAPE -MAILCAP_KDE = _misc.MAILCAP_KDE -MAILCAP_GNOME = _misc.MAILCAP_GNOME -MAILCAP_ALL = _misc.MAILCAP_ALL +MAILCAP_STANDARD = _misc_.MAILCAP_STANDARD +MAILCAP_NETSCAPE = _misc_.MAILCAP_NETSCAPE +MAILCAP_KDE = _misc_.MAILCAP_KDE +MAILCAP_GNOME = _misc_.MAILCAP_GNOME +MAILCAP_ALL = _misc_.MAILCAP_ALL class FileTypeInfo(object): def __repr__(self): return "<%s.%s; proxy of C++ wxFileTypeInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, String mimeType, String openCmd, String printCmd, String desc) -> FileTypeInfo""" - newobj = _misc.new_FileTypeInfo(*args, **kwargs) + newobj = _misc_.new_FileTypeInfo(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def IsValid(*args, **kwargs): """IsValid(self) -> bool""" - return _misc.FileTypeInfo_IsValid(*args, **kwargs) + return _misc_.FileTypeInfo_IsValid(*args, **kwargs) def SetIcon(*args, **kwargs): """SetIcon(self, String iconFile, int iconIndex=0)""" - return _misc.FileTypeInfo_SetIcon(*args, **kwargs) + return _misc_.FileTypeInfo_SetIcon(*args, **kwargs) def SetShortDesc(*args, **kwargs): """SetShortDesc(self, String shortDesc)""" - return _misc.FileTypeInfo_SetShortDesc(*args, **kwargs) + return _misc_.FileTypeInfo_SetShortDesc(*args, **kwargs) def GetMimeType(*args, **kwargs): """GetMimeType(self) -> String""" - return _misc.FileTypeInfo_GetMimeType(*args, **kwargs) + return _misc_.FileTypeInfo_GetMimeType(*args, **kwargs) def GetOpenCommand(*args, **kwargs): """GetOpenCommand(self) -> String""" - return _misc.FileTypeInfo_GetOpenCommand(*args, **kwargs) + return _misc_.FileTypeInfo_GetOpenCommand(*args, **kwargs) def GetPrintCommand(*args, **kwargs): """GetPrintCommand(self) -> String""" - return _misc.FileTypeInfo_GetPrintCommand(*args, **kwargs) + return _misc_.FileTypeInfo_GetPrintCommand(*args, **kwargs) def GetShortDesc(*args, **kwargs): """GetShortDesc(self) -> String""" - return _misc.FileTypeInfo_GetShortDesc(*args, **kwargs) + return _misc_.FileTypeInfo_GetShortDesc(*args, **kwargs) def GetDescription(*args, **kwargs): """GetDescription(self) -> String""" - return _misc.FileTypeInfo_GetDescription(*args, **kwargs) + return _misc_.FileTypeInfo_GetDescription(*args, **kwargs) def GetExtensions(*args, **kwargs): """GetExtensions(self) -> wxArrayString""" - return _misc.FileTypeInfo_GetExtensions(*args, **kwargs) + return _misc_.FileTypeInfo_GetExtensions(*args, **kwargs) def GetExtensionsCount(*args, **kwargs): """GetExtensionsCount(self) -> int""" - return _misc.FileTypeInfo_GetExtensionsCount(*args, **kwargs) + return _misc_.FileTypeInfo_GetExtensionsCount(*args, **kwargs) def GetIconFile(*args, **kwargs): """GetIconFile(self) -> String""" - return _misc.FileTypeInfo_GetIconFile(*args, **kwargs) + return _misc_.FileTypeInfo_GetIconFile(*args, **kwargs) def GetIconIndex(*args, **kwargs): """GetIconIndex(self) -> int""" - return _misc.FileTypeInfo_GetIconIndex(*args, **kwargs) + return _misc_.FileTypeInfo_GetIconIndex(*args, **kwargs) class FileTypeInfoPtr(FileTypeInfo): @@ -2147,17 +2147,17 @@ class FileTypeInfoPtr(FileTypeInfo): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = FileTypeInfo -_misc.FileTypeInfo_swigregister(FileTypeInfoPtr) +_misc_.FileTypeInfo_swigregister(FileTypeInfoPtr) def FileTypeInfoSequence(*args, **kwargs): """FileTypeInfoSequence(wxArrayString sArray) -> FileTypeInfo""" - val = _misc.new_FileTypeInfoSequence(*args, **kwargs) + val = _misc_.new_FileTypeInfoSequence(*args, **kwargs) val.thisown = 1 return val def NullFileTypeInfo(*args, **kwargs): """NullFileTypeInfo() -> FileTypeInfo""" - val = _misc.new_NullFileTypeInfo(*args, **kwargs) + val = _misc_.new_NullFileTypeInfo(*args, **kwargs) val.thisown = 1 return val @@ -2166,11 +2166,11 @@ class FileType(object): return "<%s.%s; proxy of C++ wxFileType instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, FileTypeInfo ftInfo) -> FileType""" - newobj = _misc.new_FileType(*args, **kwargs) + newobj = _misc_.new_FileType(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_misc.delete_FileType): + def __del__(self, destroy=_misc_.delete_FileType): """__del__(self)""" try: if self.thisown: destroy(self) @@ -2178,55 +2178,55 @@ class FileType(object): def GetMimeType(*args, **kwargs): """GetMimeType(self) -> PyObject""" - return _misc.FileType_GetMimeType(*args, **kwargs) + return _misc_.FileType_GetMimeType(*args, **kwargs) def GetMimeTypes(*args, **kwargs): """GetMimeTypes(self) -> PyObject""" - return _misc.FileType_GetMimeTypes(*args, **kwargs) + return _misc_.FileType_GetMimeTypes(*args, **kwargs) def GetExtensions(*args, **kwargs): """GetExtensions(self) -> PyObject""" - return _misc.FileType_GetExtensions(*args, **kwargs) + return _misc_.FileType_GetExtensions(*args, **kwargs) def GetIcon(*args, **kwargs): """GetIcon(self) -> Icon""" - return _misc.FileType_GetIcon(*args, **kwargs) + return _misc_.FileType_GetIcon(*args, **kwargs) def GetIconInfo(*args, **kwargs): """GetIconInfo(self) -> PyObject""" - return _misc.FileType_GetIconInfo(*args, **kwargs) + return _misc_.FileType_GetIconInfo(*args, **kwargs) def GetDescription(*args, **kwargs): """GetDescription(self) -> PyObject""" - return _misc.FileType_GetDescription(*args, **kwargs) + return _misc_.FileType_GetDescription(*args, **kwargs) def GetOpenCommand(*args, **kwargs): """GetOpenCommand(self, String filename, String mimetype=EmptyString) -> PyObject""" - return _misc.FileType_GetOpenCommand(*args, **kwargs) + return _misc_.FileType_GetOpenCommand(*args, **kwargs) def GetPrintCommand(*args, **kwargs): """GetPrintCommand(self, String filename, String mimetype=EmptyString) -> PyObject""" - return _misc.FileType_GetPrintCommand(*args, **kwargs) + return _misc_.FileType_GetPrintCommand(*args, **kwargs) def GetAllCommands(*args, **kwargs): """GetAllCommands(self, String filename, String mimetype=EmptyString) -> PyObject""" - return _misc.FileType_GetAllCommands(*args, **kwargs) + return _misc_.FileType_GetAllCommands(*args, **kwargs) def SetCommand(*args, **kwargs): """SetCommand(self, String cmd, String verb, bool overwriteprompt=True) -> bool""" - return _misc.FileType_SetCommand(*args, **kwargs) + return _misc_.FileType_SetCommand(*args, **kwargs) def SetDefaultIcon(*args, **kwargs): """SetDefaultIcon(self, String cmd=EmptyString, int index=0) -> bool""" - return _misc.FileType_SetDefaultIcon(*args, **kwargs) + return _misc_.FileType_SetDefaultIcon(*args, **kwargs) def Unassociate(*args, **kwargs): """Unassociate(self) -> bool""" - return _misc.FileType_Unassociate(*args, **kwargs) + return _misc_.FileType_Unassociate(*args, **kwargs) def ExpandCommand(*args, **kwargs): """FileType.ExpandCommand(String command, String filename, String mimetype=EmptyString) -> String""" - return _misc.FileType_ExpandCommand(*args, **kwargs) + return _misc_.FileType_ExpandCommand(*args, **kwargs) ExpandCommand = staticmethod(ExpandCommand) @@ -2235,67 +2235,67 @@ class FileTypePtr(FileType): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = FileType -_misc.FileType_swigregister(FileTypePtr) +_misc_.FileType_swigregister(FileTypePtr) def FileType_ExpandCommand(*args, **kwargs): """FileType_ExpandCommand(String command, String filename, String mimetype=EmptyString) -> String""" - return _misc.FileType_ExpandCommand(*args, **kwargs) + return _misc_.FileType_ExpandCommand(*args, **kwargs) class MimeTypesManager(object): def __repr__(self): return "<%s.%s; proxy of C++ wxMimeTypesManager instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def IsOfType(*args, **kwargs): """MimeTypesManager.IsOfType(String mimeType, String wildcard) -> bool""" - return _misc.MimeTypesManager_IsOfType(*args, **kwargs) + return _misc_.MimeTypesManager_IsOfType(*args, **kwargs) IsOfType = staticmethod(IsOfType) def __init__(self, *args, **kwargs): """__init__(self) -> MimeTypesManager""" - newobj = _misc.new_MimeTypesManager(*args, **kwargs) + newobj = _misc_.new_MimeTypesManager(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def Initialize(*args, **kwargs): """Initialize(self, int mailcapStyle=MAILCAP_ALL, String extraDir=EmptyString)""" - return _misc.MimeTypesManager_Initialize(*args, **kwargs) + return _misc_.MimeTypesManager_Initialize(*args, **kwargs) def ClearData(*args, **kwargs): """ClearData(self)""" - return _misc.MimeTypesManager_ClearData(*args, **kwargs) + return _misc_.MimeTypesManager_ClearData(*args, **kwargs) def GetFileTypeFromExtension(*args, **kwargs): """GetFileTypeFromExtension(self, String ext) -> FileType""" - return _misc.MimeTypesManager_GetFileTypeFromExtension(*args, **kwargs) + return _misc_.MimeTypesManager_GetFileTypeFromExtension(*args, **kwargs) def GetFileTypeFromMimeType(*args, **kwargs): """GetFileTypeFromMimeType(self, String mimeType) -> FileType""" - return _misc.MimeTypesManager_GetFileTypeFromMimeType(*args, **kwargs) + return _misc_.MimeTypesManager_GetFileTypeFromMimeType(*args, **kwargs) def ReadMailcap(*args, **kwargs): """ReadMailcap(self, String filename, bool fallback=False) -> bool""" - return _misc.MimeTypesManager_ReadMailcap(*args, **kwargs) + return _misc_.MimeTypesManager_ReadMailcap(*args, **kwargs) def ReadMimeTypes(*args, **kwargs): """ReadMimeTypes(self, String filename) -> bool""" - return _misc.MimeTypesManager_ReadMimeTypes(*args, **kwargs) + return _misc_.MimeTypesManager_ReadMimeTypes(*args, **kwargs) def EnumAllFileTypes(*args, **kwargs): """EnumAllFileTypes(self) -> PyObject""" - return _misc.MimeTypesManager_EnumAllFileTypes(*args, **kwargs) + return _misc_.MimeTypesManager_EnumAllFileTypes(*args, **kwargs) def AddFallback(*args, **kwargs): """AddFallback(self, FileTypeInfo ft)""" - return _misc.MimeTypesManager_AddFallback(*args, **kwargs) + return _misc_.MimeTypesManager_AddFallback(*args, **kwargs) def Associate(*args, **kwargs): """Associate(self, FileTypeInfo ftInfo) -> FileType""" - return _misc.MimeTypesManager_Associate(*args, **kwargs) + return _misc_.MimeTypesManager_Associate(*args, **kwargs) def Unassociate(*args, **kwargs): """Unassociate(self, FileType ft) -> bool""" - return _misc.MimeTypesManager_Unassociate(*args, **kwargs) + return _misc_.MimeTypesManager_Unassociate(*args, **kwargs) - def __del__(self, destroy=_misc.delete_MimeTypesManager): + def __del__(self, destroy=_misc_.delete_MimeTypesManager): """__del__(self)""" try: if self.thisown: destroy(self) @@ -2307,12 +2307,12 @@ class MimeTypesManagerPtr(MimeTypesManager): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = MimeTypesManager -_misc.MimeTypesManager_swigregister(MimeTypesManagerPtr) +_misc_.MimeTypesManager_swigregister(MimeTypesManagerPtr) TheMimeTypesManager = cvar.TheMimeTypesManager def MimeTypesManager_IsOfType(*args, **kwargs): """MimeTypesManager_IsOfType(String mimeType, String wildcard) -> bool""" - return _misc.MimeTypesManager_IsOfType(*args, **kwargs) + return _misc_.MimeTypesManager_IsOfType(*args, **kwargs) #--------------------------------------------------------------------------- @@ -2321,7 +2321,7 @@ class ArtProvider(object): return "<%s.%s; proxy of C++ wxPyArtProvider instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> ArtProvider""" - newobj = _misc.new_ArtProvider(*args, **kwargs) + newobj = _misc_.new_ArtProvider(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -2329,7 +2329,7 @@ class ArtProvider(object): def _setCallbackInfo(*args, **kwargs): """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _misc.ArtProvider__setCallbackInfo(*args, **kwargs) + return _misc_.ArtProvider__setCallbackInfo(*args, **kwargs) def PushProvider(*args, **kwargs): """ @@ -2337,7 +2337,7 @@ class ArtProvider(object): Add new provider to the top of providers stack. """ - return _misc.ArtProvider_PushProvider(*args, **kwargs) + return _misc_.ArtProvider_PushProvider(*args, **kwargs) PushProvider = staticmethod(PushProvider) def PopProvider(*args, **kwargs): @@ -2346,7 +2346,7 @@ class ArtProvider(object): Remove latest added provider and delete it. """ - return _misc.ArtProvider_PopProvider(*args, **kwargs) + return _misc_.ArtProvider_PopProvider(*args, **kwargs) PopProvider = staticmethod(PopProvider) def RemoveProvider(*args, **kwargs): @@ -2356,7 +2356,7 @@ class ArtProvider(object): Remove provider. The provider must have been added previously! The provider is _not_ deleted. """ - return _misc.ArtProvider_RemoveProvider(*args, **kwargs) + return _misc_.ArtProvider_RemoveProvider(*args, **kwargs) RemoveProvider = staticmethod(RemoveProvider) def GetBitmap(*args, **kwargs): @@ -2366,7 +2366,7 @@ class ArtProvider(object): Query the providers for bitmap with given ID and return it. Return wx.NullBitmap if no provider provides it. """ - return _misc.ArtProvider_GetBitmap(*args, **kwargs) + return _misc_.ArtProvider_GetBitmap(*args, **kwargs) GetBitmap = staticmethod(GetBitmap) def GetIcon(*args, **kwargs): @@ -2376,12 +2376,12 @@ class ArtProvider(object): Query the providers for icon with given ID and return it. Return wx.NullIcon if no provider provides it. """ - return _misc.ArtProvider_GetIcon(*args, **kwargs) + return _misc_.ArtProvider_GetIcon(*args, **kwargs) GetIcon = staticmethod(GetIcon) def Destroy(*args, **kwargs): """Destroy(self)""" - return _misc.ArtProvider_Destroy(*args, **kwargs) + return _misc_.ArtProvider_Destroy(*args, **kwargs) class ArtProviderPtr(ArtProvider): @@ -2389,7 +2389,7 @@ class ArtProviderPtr(ArtProvider): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = ArtProvider -_misc.ArtProvider_swigregister(ArtProviderPtr) +_misc_.ArtProvider_swigregister(ArtProviderPtr) ART_TOOLBAR = cvar.ART_TOOLBAR ART_MENU = cvar.ART_MENU ART_FRAME_ICON = cvar.ART_FRAME_ICON @@ -2435,7 +2435,7 @@ def ArtProvider_PushProvider(*args, **kwargs): Add new provider to the top of providers stack. """ - return _misc.ArtProvider_PushProvider(*args, **kwargs) + return _misc_.ArtProvider_PushProvider(*args, **kwargs) def ArtProvider_PopProvider(*args, **kwargs): """ @@ -2443,7 +2443,7 @@ def ArtProvider_PopProvider(*args, **kwargs): Remove latest added provider and delete it. """ - return _misc.ArtProvider_PopProvider(*args, **kwargs) + return _misc_.ArtProvider_PopProvider(*args, **kwargs) def ArtProvider_RemoveProvider(*args, **kwargs): """ @@ -2452,7 +2452,7 @@ def ArtProvider_RemoveProvider(*args, **kwargs): Remove provider. The provider must have been added previously! The provider is _not_ deleted. """ - return _misc.ArtProvider_RemoveProvider(*args, **kwargs) + return _misc_.ArtProvider_RemoveProvider(*args, **kwargs) def ArtProvider_GetBitmap(*args, **kwargs): """ @@ -2461,7 +2461,7 @@ def ArtProvider_GetBitmap(*args, **kwargs): Query the providers for bitmap with given ID and return it. Return wx.NullBitmap if no provider provides it. """ - return _misc.ArtProvider_GetBitmap(*args, **kwargs) + return _misc_.ArtProvider_GetBitmap(*args, **kwargs) def ArtProvider_GetIcon(*args, **kwargs): """ @@ -2470,14 +2470,14 @@ def ArtProvider_GetIcon(*args, **kwargs): Query the providers for icon with given ID and return it. Return wx.NullIcon if no provider provides it. """ - return _misc.ArtProvider_GetIcon(*args, **kwargs) + return _misc_.ArtProvider_GetIcon(*args, **kwargs) #--------------------------------------------------------------------------- -CONFIG_USE_LOCAL_FILE = _misc.CONFIG_USE_LOCAL_FILE -CONFIG_USE_GLOBAL_FILE = _misc.CONFIG_USE_GLOBAL_FILE -CONFIG_USE_RELATIVE_PATH = _misc.CONFIG_USE_RELATIVE_PATH -CONFIG_USE_NO_ESCAPE_CHARACTERS = _misc.CONFIG_USE_NO_ESCAPE_CHARACTERS +CONFIG_USE_LOCAL_FILE = _misc_.CONFIG_USE_LOCAL_FILE +CONFIG_USE_GLOBAL_FILE = _misc_.CONFIG_USE_GLOBAL_FILE +CONFIG_USE_RELATIVE_PATH = _misc_.CONFIG_USE_RELATIVE_PATH +CONFIG_USE_NO_ESCAPE_CHARACTERS = _misc_.CONFIG_USE_NO_ESCAPE_CHARACTERS class ConfigBase(object): """ wx.ConfigBase class defines the basic interface of all config @@ -2503,17 +2503,17 @@ class ConfigBase(object): def __init__(self): raise RuntimeError, "No constructor defined" def __repr__(self): return "<%s.%s; proxy of C++ wxConfigBase instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __del__(self, destroy=_misc.delete_ConfigBase): + def __del__(self, destroy=_misc_.delete_ConfigBase): """__del__(self)""" try: if self.thisown: destroy(self) except: pass - Type_Unknown = _misc.ConfigBase_Type_Unknown - Type_String = _misc.ConfigBase_Type_String - Type_Boolean = _misc.ConfigBase_Type_Boolean - Type_Integer = _misc.ConfigBase_Type_Integer - Type_Float = _misc.ConfigBase_Type_Float + Type_Unknown = _misc_.ConfigBase_Type_Unknown + Type_String = _misc_.ConfigBase_Type_String + Type_Boolean = _misc_.ConfigBase_Type_Boolean + Type_Integer = _misc_.ConfigBase_Type_Integer + Type_Float = _misc_.ConfigBase_Type_Float def Set(*args, **kwargs): """ ConfigBase.Set(ConfigBase config) -> ConfigBase @@ -2521,7 +2521,7 @@ class ConfigBase(object): Sets the global config object (the one returned by Get) and returns a reference to the previous global config object. """ - return _misc.ConfigBase_Set(*args, **kwargs) + return _misc_.ConfigBase_Set(*args, **kwargs) Set = staticmethod(Set) def Get(*args, **kwargs): @@ -2530,7 +2530,7 @@ class ConfigBase(object): Returns the current global config object, creating one if neccessary. """ - return _misc.ConfigBase_Get(*args, **kwargs) + return _misc_.ConfigBase_Get(*args, **kwargs) Get = staticmethod(Get) def Create(*args, **kwargs): @@ -2541,7 +2541,7 @@ class ConfigBase(object): create the "best" implementation of wx.Config available for the current platform. """ - return _misc.ConfigBase_Create(*args, **kwargs) + return _misc_.ConfigBase_Create(*args, **kwargs) Create = staticmethod(Create) def DontCreateOnDemand(*args, **kwargs): @@ -2550,7 +2550,7 @@ class ConfigBase(object): Should Get() try to create a new log object if there isn't a current one? """ - return _misc.ConfigBase_DontCreateOnDemand(*args, **kwargs) + return _misc_.ConfigBase_DontCreateOnDemand(*args, **kwargs) DontCreateOnDemand = staticmethod(DontCreateOnDemand) def SetPath(*args, **kwargs): @@ -2561,7 +2561,7 @@ class ConfigBase(object): otherwise it's a relative path. '..' is supported. If the strPath doesn't exist it is created. """ - return _misc.ConfigBase_SetPath(*args, **kwargs) + return _misc_.ConfigBase_SetPath(*args, **kwargs) def GetPath(*args, **kwargs): """ @@ -2569,7 +2569,7 @@ class ConfigBase(object): Retrieve the current path (always as absolute path) """ - return _misc.ConfigBase_GetPath(*args, **kwargs) + return _misc_.ConfigBase_GetPath(*args, **kwargs) def GetFirstGroup(*args, **kwargs): """ @@ -2580,7 +2580,7 @@ class ConfigBase(object): name of the current item, and an index to pass to GetNextGroup to fetch the next item. """ - return _misc.ConfigBase_GetFirstGroup(*args, **kwargs) + return _misc_.ConfigBase_GetFirstGroup(*args, **kwargs) def GetNextGroup(*args, **kwargs): """ @@ -2591,7 +2591,7 @@ class ConfigBase(object): name of the current item, and an index to pass to GetNextGroup to fetch the next item. """ - return _misc.ConfigBase_GetNextGroup(*args, **kwargs) + return _misc_.ConfigBase_GetNextGroup(*args, **kwargs) def GetFirstEntry(*args, **kwargs): """ @@ -2602,7 +2602,7 @@ class ConfigBase(object): more items, the name of the current item, and an index to pass to GetNextGroup to fetch the next item. """ - return _misc.ConfigBase_GetFirstEntry(*args, **kwargs) + return _misc_.ConfigBase_GetFirstEntry(*args, **kwargs) def GetNextEntry(*args, **kwargs): """ @@ -2613,7 +2613,7 @@ class ConfigBase(object): more items, the name of the current item, and an index to pass to GetNextGroup to fetch the next item. """ - return _misc.ConfigBase_GetNextEntry(*args, **kwargs) + return _misc_.ConfigBase_GetNextEntry(*args, **kwargs) def GetNumberOfEntries(*args, **kwargs): """ @@ -2622,7 +2622,7 @@ class ConfigBase(object): Get the number of entries in the current group, with or without its subgroups. """ - return _misc.ConfigBase_GetNumberOfEntries(*args, **kwargs) + return _misc_.ConfigBase_GetNumberOfEntries(*args, **kwargs) def GetNumberOfGroups(*args, **kwargs): """ @@ -2631,7 +2631,7 @@ class ConfigBase(object): Get the number of subgroups in the current group, with or without its subgroups. """ - return _misc.ConfigBase_GetNumberOfGroups(*args, **kwargs) + return _misc_.ConfigBase_GetNumberOfGroups(*args, **kwargs) def HasGroup(*args, **kwargs): """ @@ -2639,7 +2639,7 @@ class ConfigBase(object): Returns True if the group by this name exists """ - return _misc.ConfigBase_HasGroup(*args, **kwargs) + return _misc_.ConfigBase_HasGroup(*args, **kwargs) def HasEntry(*args, **kwargs): """ @@ -2647,7 +2647,7 @@ class ConfigBase(object): Returns True if the entry by this name exists """ - return _misc.ConfigBase_HasEntry(*args, **kwargs) + return _misc_.ConfigBase_HasEntry(*args, **kwargs) def Exists(*args, **kwargs): """ @@ -2655,7 +2655,7 @@ class ConfigBase(object): Returns True if either a group or an entry with a given name exists """ - return _misc.ConfigBase_Exists(*args, **kwargs) + return _misc_.ConfigBase_Exists(*args, **kwargs) def GetEntryType(*args, **kwargs): """ @@ -2663,7 +2663,7 @@ class ConfigBase(object): Get the type of the entry. Returns one of the wx.Config.Type_XXX values. """ - return _misc.ConfigBase_GetEntryType(*args, **kwargs) + return _misc_.ConfigBase_GetEntryType(*args, **kwargs) def Read(*args, **kwargs): """ @@ -2671,7 +2671,7 @@ class ConfigBase(object): Returns the value of key if it exists, defaultVal otherwise. """ - return _misc.ConfigBase_Read(*args, **kwargs) + return _misc_.ConfigBase_Read(*args, **kwargs) def ReadInt(*args, **kwargs): """ @@ -2679,7 +2679,7 @@ class ConfigBase(object): Returns the value of key if it exists, defaultVal otherwise. """ - return _misc.ConfigBase_ReadInt(*args, **kwargs) + return _misc_.ConfigBase_ReadInt(*args, **kwargs) def ReadFloat(*args, **kwargs): """ @@ -2687,7 +2687,7 @@ class ConfigBase(object): Returns the value of key if it exists, defaultVal otherwise. """ - return _misc.ConfigBase_ReadFloat(*args, **kwargs) + return _misc_.ConfigBase_ReadFloat(*args, **kwargs) def ReadBool(*args, **kwargs): """ @@ -2695,7 +2695,7 @@ class ConfigBase(object): Returns the value of key if it exists, defaultVal otherwise. """ - return _misc.ConfigBase_ReadBool(*args, **kwargs) + return _misc_.ConfigBase_ReadBool(*args, **kwargs) def Write(*args, **kwargs): """ @@ -2703,7 +2703,7 @@ class ConfigBase(object): write the value (return True on success) """ - return _misc.ConfigBase_Write(*args, **kwargs) + return _misc_.ConfigBase_Write(*args, **kwargs) def WriteInt(*args, **kwargs): """ @@ -2711,7 +2711,7 @@ class ConfigBase(object): write the value (return True on success) """ - return _misc.ConfigBase_WriteInt(*args, **kwargs) + return _misc_.ConfigBase_WriteInt(*args, **kwargs) def WriteFloat(*args, **kwargs): """ @@ -2719,7 +2719,7 @@ class ConfigBase(object): write the value (return True on success) """ - return _misc.ConfigBase_WriteFloat(*args, **kwargs) + return _misc_.ConfigBase_WriteFloat(*args, **kwargs) def WriteBool(*args, **kwargs): """ @@ -2727,7 +2727,7 @@ class ConfigBase(object): write the value (return True on success) """ - return _misc.ConfigBase_WriteBool(*args, **kwargs) + return _misc_.ConfigBase_WriteBool(*args, **kwargs) def Flush(*args, **kwargs): """ @@ -2735,7 +2735,7 @@ class ConfigBase(object): permanently writes all changes """ - return _misc.ConfigBase_Flush(*args, **kwargs) + return _misc_.ConfigBase_Flush(*args, **kwargs) def RenameEntry(*args, **kwargs): """ @@ -2744,7 +2744,7 @@ class ConfigBase(object): Rename an entry. Returns False on failure (probably because the new name is already taken by an existing entry) """ - return _misc.ConfigBase_RenameEntry(*args, **kwargs) + return _misc_.ConfigBase_RenameEntry(*args, **kwargs) def RenameGroup(*args, **kwargs): """ @@ -2753,7 +2753,7 @@ class ConfigBase(object): Rename aa group. Returns False on failure (probably because the new name is already taken by an existing entry) """ - return _misc.ConfigBase_RenameGroup(*args, **kwargs) + return _misc_.ConfigBase_RenameGroup(*args, **kwargs) def DeleteEntry(*args, **kwargs): """ @@ -2762,7 +2762,7 @@ class ConfigBase(object): Deletes the specified entry and the group it belongs to if it was the last key in it and the second parameter is True """ - return _misc.ConfigBase_DeleteEntry(*args, **kwargs) + return _misc_.ConfigBase_DeleteEntry(*args, **kwargs) def DeleteGroup(*args, **kwargs): """ @@ -2770,7 +2770,7 @@ class ConfigBase(object): Delete the group (with all subgroups) """ - return _misc.ConfigBase_DeleteGroup(*args, **kwargs) + return _misc_.ConfigBase_DeleteGroup(*args, **kwargs) def DeleteAll(*args, **kwargs): """ @@ -2779,7 +2779,7 @@ class ConfigBase(object): Delete the whole underlying object (disk file, registry key, ...) primarly intended for use by desinstallation routine. """ - return _misc.ConfigBase_DeleteAll(*args, **kwargs) + return _misc_.ConfigBase_DeleteAll(*args, **kwargs) def SetExpandEnvVars(*args, **kwargs): """ @@ -2788,7 +2788,7 @@ class ConfigBase(object): We can automatically expand environment variables in the config entries (this option is on by default, you can turn it on/off at any time) """ - return _misc.ConfigBase_SetExpandEnvVars(*args, **kwargs) + return _misc_.ConfigBase_SetExpandEnvVars(*args, **kwargs) def IsExpandingEnvVars(*args, **kwargs): """ @@ -2796,7 +2796,7 @@ class ConfigBase(object): Are we currently expanding environment variables? """ - return _misc.ConfigBase_IsExpandingEnvVars(*args, **kwargs) + return _misc_.ConfigBase_IsExpandingEnvVars(*args, **kwargs) def SetRecordDefaults(*args, **kwargs): """ @@ -2804,7 +2804,7 @@ class ConfigBase(object): Set whether the config objec should record default values. """ - return _misc.ConfigBase_SetRecordDefaults(*args, **kwargs) + return _misc_.ConfigBase_SetRecordDefaults(*args, **kwargs) def IsRecordingDefaults(*args, **kwargs): """ @@ -2812,7 +2812,7 @@ class ConfigBase(object): Are we currently recording default values? """ - return _misc.ConfigBase_IsRecordingDefaults(*args, **kwargs) + return _misc_.ConfigBase_IsRecordingDefaults(*args, **kwargs) def ExpandEnvVars(*args, **kwargs): """ @@ -2820,31 +2820,31 @@ class ConfigBase(object): Expand any environment variables in str and return the result """ - return _misc.ConfigBase_ExpandEnvVars(*args, **kwargs) + return _misc_.ConfigBase_ExpandEnvVars(*args, **kwargs) def GetAppName(*args, **kwargs): """GetAppName(self) -> String""" - return _misc.ConfigBase_GetAppName(*args, **kwargs) + return _misc_.ConfigBase_GetAppName(*args, **kwargs) def GetVendorName(*args, **kwargs): """GetVendorName(self) -> String""" - return _misc.ConfigBase_GetVendorName(*args, **kwargs) + return _misc_.ConfigBase_GetVendorName(*args, **kwargs) def SetAppName(*args, **kwargs): """SetAppName(self, String appName)""" - return _misc.ConfigBase_SetAppName(*args, **kwargs) + return _misc_.ConfigBase_SetAppName(*args, **kwargs) def SetVendorName(*args, **kwargs): """SetVendorName(self, String vendorName)""" - return _misc.ConfigBase_SetVendorName(*args, **kwargs) + return _misc_.ConfigBase_SetVendorName(*args, **kwargs) def SetStyle(*args, **kwargs): """SetStyle(self, long style)""" - return _misc.ConfigBase_SetStyle(*args, **kwargs) + return _misc_.ConfigBase_SetStyle(*args, **kwargs) def GetStyle(*args, **kwargs): """GetStyle(self) -> long""" - return _misc.ConfigBase_GetStyle(*args, **kwargs) + return _misc_.ConfigBase_GetStyle(*args, **kwargs) class ConfigBasePtr(ConfigBase): @@ -2852,7 +2852,7 @@ class ConfigBasePtr(ConfigBase): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = ConfigBase -_misc.ConfigBase_swigregister(ConfigBasePtr) +_misc_.ConfigBase_swigregister(ConfigBasePtr) def ConfigBase_Set(*args, **kwargs): """ @@ -2861,7 +2861,7 @@ def ConfigBase_Set(*args, **kwargs): Sets the global config object (the one returned by Get) and returns a reference to the previous global config object. """ - return _misc.ConfigBase_Set(*args, **kwargs) + return _misc_.ConfigBase_Set(*args, **kwargs) def ConfigBase_Get(*args, **kwargs): """ @@ -2869,7 +2869,7 @@ def ConfigBase_Get(*args, **kwargs): Returns the current global config object, creating one if neccessary. """ - return _misc.ConfigBase_Get(*args, **kwargs) + return _misc_.ConfigBase_Get(*args, **kwargs) def ConfigBase_Create(*args, **kwargs): """ @@ -2879,7 +2879,7 @@ def ConfigBase_Create(*args, **kwargs): create the "best" implementation of wx.Config available for the current platform. """ - return _misc.ConfigBase_Create(*args, **kwargs) + return _misc_.ConfigBase_Create(*args, **kwargs) def ConfigBase_DontCreateOnDemand(*args, **kwargs): """ @@ -2887,7 +2887,7 @@ def ConfigBase_DontCreateOnDemand(*args, **kwargs): Should Get() try to create a new log object if there isn't a current one? """ - return _misc.ConfigBase_DontCreateOnDemand(*args, **kwargs) + return _misc_.ConfigBase_DontCreateOnDemand(*args, **kwargs) class Config(ConfigBase): """ @@ -2902,11 +2902,11 @@ class Config(ConfigBase): String localFilename=EmptyString, String globalFilename=EmptyString, long style=wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE) -> Config """ - newobj = _misc.new_Config(*args, **kwargs) + newobj = _misc_.new_Config(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_misc.delete_Config): + def __del__(self, destroy=_misc_.delete_Config): """__del__(self)""" try: if self.thisown: destroy(self) @@ -2918,7 +2918,7 @@ class ConfigPtr(Config): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = Config -_misc.Config_swigregister(ConfigPtr) +_misc_.Config_swigregister(ConfigPtr) class FileConfig(ConfigBase): """This config class will use a file for storage on all platforms.""" @@ -2930,11 +2930,11 @@ class FileConfig(ConfigBase): String localFilename=EmptyString, String globalFilename=EmptyString, long style=wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE) -> FileConfig """ - newobj = _misc.new_FileConfig(*args, **kwargs) + newobj = _misc_.new_FileConfig(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_misc.delete_FileConfig): + def __del__(self, destroy=_misc_.delete_FileConfig): """__del__(self)""" try: if self.thisown: destroy(self) @@ -2946,7 +2946,7 @@ class FileConfigPtr(FileConfig): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = FileConfig -_misc.FileConfig_swigregister(FileConfigPtr) +_misc_.FileConfig_swigregister(FileConfigPtr) class ConfigPathChanger(object): """ @@ -2959,11 +2959,11 @@ class ConfigPathChanger(object): return "<%s.%s; proxy of C++ wxConfigPathChanger instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, ConfigBase config, String entry) -> ConfigPathChanger""" - newobj = _misc.new_ConfigPathChanger(*args, **kwargs) + newobj = _misc_.new_ConfigPathChanger(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_misc.delete_ConfigPathChanger): + def __del__(self, destroy=_misc_.delete_ConfigPathChanger): """__del__(self)""" try: if self.thisown: destroy(self) @@ -2975,7 +2975,7 @@ class ConfigPathChanger(object): Get the key name """ - return _misc.ConfigPathChanger_Name(*args, **kwargs) + return _misc_.ConfigPathChanger_Name(*args, **kwargs) class ConfigPathChangerPtr(ConfigPathChanger): @@ -2983,7 +2983,7 @@ class ConfigPathChangerPtr(ConfigPathChanger): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = ConfigPathChanger -_misc.ConfigPathChanger_swigregister(ConfigPathChangerPtr) +_misc_.ConfigPathChanger_swigregister(ConfigPathChangerPtr) def ExpandEnvVars(*args, **kwargs): @@ -2995,225 +2995,225 @@ def ExpandEnvVars(*args, **kwargs): alphanumeric characters and '_' only. '$' must be escaped ('\$') in order to be taken literally. """ - return _misc.ExpandEnvVars(*args, **kwargs) + return _misc_.ExpandEnvVars(*args, **kwargs) #--------------------------------------------------------------------------- class DateTime(object): def __repr__(self): return "<%s.%s; proxy of C++ wxDateTime instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - Local = _misc.DateTime_Local - GMT_12 = _misc.DateTime_GMT_12 - GMT_11 = _misc.DateTime_GMT_11 - GMT_10 = _misc.DateTime_GMT_10 - GMT_9 = _misc.DateTime_GMT_9 - GMT_8 = _misc.DateTime_GMT_8 - GMT_7 = _misc.DateTime_GMT_7 - GMT_6 = _misc.DateTime_GMT_6 - GMT_5 = _misc.DateTime_GMT_5 - GMT_4 = _misc.DateTime_GMT_4 - GMT_3 = _misc.DateTime_GMT_3 - GMT_2 = _misc.DateTime_GMT_2 - GMT_1 = _misc.DateTime_GMT_1 - GMT0 = _misc.DateTime_GMT0 - GMT1 = _misc.DateTime_GMT1 - GMT2 = _misc.DateTime_GMT2 - GMT3 = _misc.DateTime_GMT3 - GMT4 = _misc.DateTime_GMT4 - GMT5 = _misc.DateTime_GMT5 - GMT6 = _misc.DateTime_GMT6 - GMT7 = _misc.DateTime_GMT7 - GMT8 = _misc.DateTime_GMT8 - GMT9 = _misc.DateTime_GMT9 - GMT10 = _misc.DateTime_GMT10 - GMT11 = _misc.DateTime_GMT11 - GMT12 = _misc.DateTime_GMT12 - WET = _misc.DateTime_WET - WEST = _misc.DateTime_WEST - CET = _misc.DateTime_CET - CEST = _misc.DateTime_CEST - EET = _misc.DateTime_EET - EEST = _misc.DateTime_EEST - MSK = _misc.DateTime_MSK - MSD = _misc.DateTime_MSD - AST = _misc.DateTime_AST - ADT = _misc.DateTime_ADT - EST = _misc.DateTime_EST - EDT = _misc.DateTime_EDT - CST = _misc.DateTime_CST - CDT = _misc.DateTime_CDT - MST = _misc.DateTime_MST - MDT = _misc.DateTime_MDT - PST = _misc.DateTime_PST - PDT = _misc.DateTime_PDT - HST = _misc.DateTime_HST - AKST = _misc.DateTime_AKST - AKDT = _misc.DateTime_AKDT - A_WST = _misc.DateTime_A_WST - A_CST = _misc.DateTime_A_CST - A_EST = _misc.DateTime_A_EST - A_ESST = _misc.DateTime_A_ESST - UTC = _misc.DateTime_UTC - Gregorian = _misc.DateTime_Gregorian - Julian = _misc.DateTime_Julian - Gr_Unknown = _misc.DateTime_Gr_Unknown - Gr_Standard = _misc.DateTime_Gr_Standard - Gr_Alaska = _misc.DateTime_Gr_Alaska - Gr_Albania = _misc.DateTime_Gr_Albania - Gr_Austria = _misc.DateTime_Gr_Austria - Gr_Austria_Brixen = _misc.DateTime_Gr_Austria_Brixen - Gr_Austria_Salzburg = _misc.DateTime_Gr_Austria_Salzburg - Gr_Austria_Tyrol = _misc.DateTime_Gr_Austria_Tyrol - Gr_Austria_Carinthia = _misc.DateTime_Gr_Austria_Carinthia - Gr_Austria_Styria = _misc.DateTime_Gr_Austria_Styria - Gr_Belgium = _misc.DateTime_Gr_Belgium - Gr_Bulgaria = _misc.DateTime_Gr_Bulgaria - Gr_Bulgaria_1 = _misc.DateTime_Gr_Bulgaria_1 - Gr_Bulgaria_2 = _misc.DateTime_Gr_Bulgaria_2 - Gr_Bulgaria_3 = _misc.DateTime_Gr_Bulgaria_3 - Gr_Canada = _misc.DateTime_Gr_Canada - Gr_China = _misc.DateTime_Gr_China - Gr_China_1 = _misc.DateTime_Gr_China_1 - Gr_China_2 = _misc.DateTime_Gr_China_2 - Gr_Czechoslovakia = _misc.DateTime_Gr_Czechoslovakia - Gr_Denmark = _misc.DateTime_Gr_Denmark - Gr_Egypt = _misc.DateTime_Gr_Egypt - Gr_Estonia = _misc.DateTime_Gr_Estonia - Gr_Finland = _misc.DateTime_Gr_Finland - Gr_France = _misc.DateTime_Gr_France - Gr_France_Alsace = _misc.DateTime_Gr_France_Alsace - Gr_France_Lorraine = _misc.DateTime_Gr_France_Lorraine - Gr_France_Strasbourg = _misc.DateTime_Gr_France_Strasbourg - Gr_Germany = _misc.DateTime_Gr_Germany - Gr_Germany_Catholic = _misc.DateTime_Gr_Germany_Catholic - Gr_Germany_Prussia = _misc.DateTime_Gr_Germany_Prussia - Gr_Germany_Protestant = _misc.DateTime_Gr_Germany_Protestant - Gr_GreatBritain = _misc.DateTime_Gr_GreatBritain - Gr_Greece = _misc.DateTime_Gr_Greece - Gr_Hungary = _misc.DateTime_Gr_Hungary - Gr_Ireland = _misc.DateTime_Gr_Ireland - Gr_Italy = _misc.DateTime_Gr_Italy - Gr_Japan = _misc.DateTime_Gr_Japan - Gr_Japan_1 = _misc.DateTime_Gr_Japan_1 - Gr_Japan_2 = _misc.DateTime_Gr_Japan_2 - Gr_Japan_3 = _misc.DateTime_Gr_Japan_3 - Gr_Latvia = _misc.DateTime_Gr_Latvia - Gr_Lithuania = _misc.DateTime_Gr_Lithuania - Gr_Luxemburg = _misc.DateTime_Gr_Luxemburg - Gr_Netherlands = _misc.DateTime_Gr_Netherlands - Gr_Netherlands_Groningen = _misc.DateTime_Gr_Netherlands_Groningen - Gr_Netherlands_Gelderland = _misc.DateTime_Gr_Netherlands_Gelderland - Gr_Netherlands_Utrecht = _misc.DateTime_Gr_Netherlands_Utrecht - Gr_Netherlands_Friesland = _misc.DateTime_Gr_Netherlands_Friesland - Gr_Norway = _misc.DateTime_Gr_Norway - Gr_Poland = _misc.DateTime_Gr_Poland - Gr_Portugal = _misc.DateTime_Gr_Portugal - Gr_Romania = _misc.DateTime_Gr_Romania - Gr_Russia = _misc.DateTime_Gr_Russia - Gr_Scotland = _misc.DateTime_Gr_Scotland - Gr_Spain = _misc.DateTime_Gr_Spain - Gr_Sweden = _misc.DateTime_Gr_Sweden - Gr_Switzerland = _misc.DateTime_Gr_Switzerland - Gr_Switzerland_Catholic = _misc.DateTime_Gr_Switzerland_Catholic - Gr_Switzerland_Protestant = _misc.DateTime_Gr_Switzerland_Protestant - Gr_Turkey = _misc.DateTime_Gr_Turkey - Gr_USA = _misc.DateTime_Gr_USA - Gr_Wales = _misc.DateTime_Gr_Wales - Gr_Yugoslavia = _misc.DateTime_Gr_Yugoslavia - Country_Unknown = _misc.DateTime_Country_Unknown - Country_Default = _misc.DateTime_Country_Default - Country_WesternEurope_Start = _misc.DateTime_Country_WesternEurope_Start - Country_EEC = _misc.DateTime_Country_EEC - France = _misc.DateTime_France - Germany = _misc.DateTime_Germany - UK = _misc.DateTime_UK - Country_WesternEurope_End = _misc.DateTime_Country_WesternEurope_End - Russia = _misc.DateTime_Russia - USA = _misc.DateTime_USA - Jan = _misc.DateTime_Jan - Feb = _misc.DateTime_Feb - Mar = _misc.DateTime_Mar - Apr = _misc.DateTime_Apr - May = _misc.DateTime_May - Jun = _misc.DateTime_Jun - Jul = _misc.DateTime_Jul - Aug = _misc.DateTime_Aug - Sep = _misc.DateTime_Sep - Oct = _misc.DateTime_Oct - Nov = _misc.DateTime_Nov - Dec = _misc.DateTime_Dec - Inv_Month = _misc.DateTime_Inv_Month - Sun = _misc.DateTime_Sun - Mon = _misc.DateTime_Mon - Tue = _misc.DateTime_Tue - Wed = _misc.DateTime_Wed - Thu = _misc.DateTime_Thu - Fri = _misc.DateTime_Fri - Sat = _misc.DateTime_Sat - Inv_WeekDay = _misc.DateTime_Inv_WeekDay - Inv_Year = _misc.DateTime_Inv_Year - Name_Full = _misc.DateTime_Name_Full - Name_Abbr = _misc.DateTime_Name_Abbr - Default_First = _misc.DateTime_Default_First - Monday_First = _misc.DateTime_Monday_First - Sunday_First = _misc.DateTime_Sunday_First + Local = _misc_.DateTime_Local + GMT_12 = _misc_.DateTime_GMT_12 + GMT_11 = _misc_.DateTime_GMT_11 + GMT_10 = _misc_.DateTime_GMT_10 + GMT_9 = _misc_.DateTime_GMT_9 + GMT_8 = _misc_.DateTime_GMT_8 + GMT_7 = _misc_.DateTime_GMT_7 + GMT_6 = _misc_.DateTime_GMT_6 + GMT_5 = _misc_.DateTime_GMT_5 + GMT_4 = _misc_.DateTime_GMT_4 + GMT_3 = _misc_.DateTime_GMT_3 + GMT_2 = _misc_.DateTime_GMT_2 + GMT_1 = _misc_.DateTime_GMT_1 + GMT0 = _misc_.DateTime_GMT0 + GMT1 = _misc_.DateTime_GMT1 + GMT2 = _misc_.DateTime_GMT2 + GMT3 = _misc_.DateTime_GMT3 + GMT4 = _misc_.DateTime_GMT4 + GMT5 = _misc_.DateTime_GMT5 + GMT6 = _misc_.DateTime_GMT6 + GMT7 = _misc_.DateTime_GMT7 + GMT8 = _misc_.DateTime_GMT8 + GMT9 = _misc_.DateTime_GMT9 + GMT10 = _misc_.DateTime_GMT10 + GMT11 = _misc_.DateTime_GMT11 + GMT12 = _misc_.DateTime_GMT12 + WET = _misc_.DateTime_WET + WEST = _misc_.DateTime_WEST + CET = _misc_.DateTime_CET + CEST = _misc_.DateTime_CEST + EET = _misc_.DateTime_EET + EEST = _misc_.DateTime_EEST + MSK = _misc_.DateTime_MSK + MSD = _misc_.DateTime_MSD + AST = _misc_.DateTime_AST + ADT = _misc_.DateTime_ADT + EST = _misc_.DateTime_EST + EDT = _misc_.DateTime_EDT + CST = _misc_.DateTime_CST + CDT = _misc_.DateTime_CDT + MST = _misc_.DateTime_MST + MDT = _misc_.DateTime_MDT + PST = _misc_.DateTime_PST + PDT = _misc_.DateTime_PDT + HST = _misc_.DateTime_HST + AKST = _misc_.DateTime_AKST + AKDT = _misc_.DateTime_AKDT + A_WST = _misc_.DateTime_A_WST + A_CST = _misc_.DateTime_A_CST + A_EST = _misc_.DateTime_A_EST + A_ESST = _misc_.DateTime_A_ESST + UTC = _misc_.DateTime_UTC + Gregorian = _misc_.DateTime_Gregorian + Julian = _misc_.DateTime_Julian + Gr_Unknown = _misc_.DateTime_Gr_Unknown + Gr_Standard = _misc_.DateTime_Gr_Standard + Gr_Alaska = _misc_.DateTime_Gr_Alaska + Gr_Albania = _misc_.DateTime_Gr_Albania + Gr_Austria = _misc_.DateTime_Gr_Austria + Gr_Austria_Brixen = _misc_.DateTime_Gr_Austria_Brixen + Gr_Austria_Salzburg = _misc_.DateTime_Gr_Austria_Salzburg + Gr_Austria_Tyrol = _misc_.DateTime_Gr_Austria_Tyrol + Gr_Austria_Carinthia = _misc_.DateTime_Gr_Austria_Carinthia + Gr_Austria_Styria = _misc_.DateTime_Gr_Austria_Styria + Gr_Belgium = _misc_.DateTime_Gr_Belgium + Gr_Bulgaria = _misc_.DateTime_Gr_Bulgaria + Gr_Bulgaria_1 = _misc_.DateTime_Gr_Bulgaria_1 + Gr_Bulgaria_2 = _misc_.DateTime_Gr_Bulgaria_2 + Gr_Bulgaria_3 = _misc_.DateTime_Gr_Bulgaria_3 + Gr_Canada = _misc_.DateTime_Gr_Canada + Gr_China = _misc_.DateTime_Gr_China + Gr_China_1 = _misc_.DateTime_Gr_China_1 + Gr_China_2 = _misc_.DateTime_Gr_China_2 + Gr_Czechoslovakia = _misc_.DateTime_Gr_Czechoslovakia + Gr_Denmark = _misc_.DateTime_Gr_Denmark + Gr_Egypt = _misc_.DateTime_Gr_Egypt + Gr_Estonia = _misc_.DateTime_Gr_Estonia + Gr_Finland = _misc_.DateTime_Gr_Finland + Gr_France = _misc_.DateTime_Gr_France + Gr_France_Alsace = _misc_.DateTime_Gr_France_Alsace + Gr_France_Lorraine = _misc_.DateTime_Gr_France_Lorraine + Gr_France_Strasbourg = _misc_.DateTime_Gr_France_Strasbourg + Gr_Germany = _misc_.DateTime_Gr_Germany + Gr_Germany_Catholic = _misc_.DateTime_Gr_Germany_Catholic + Gr_Germany_Prussia = _misc_.DateTime_Gr_Germany_Prussia + Gr_Germany_Protestant = _misc_.DateTime_Gr_Germany_Protestant + Gr_GreatBritain = _misc_.DateTime_Gr_GreatBritain + Gr_Greece = _misc_.DateTime_Gr_Greece + Gr_Hungary = _misc_.DateTime_Gr_Hungary + Gr_Ireland = _misc_.DateTime_Gr_Ireland + Gr_Italy = _misc_.DateTime_Gr_Italy + Gr_Japan = _misc_.DateTime_Gr_Japan + Gr_Japan_1 = _misc_.DateTime_Gr_Japan_1 + Gr_Japan_2 = _misc_.DateTime_Gr_Japan_2 + Gr_Japan_3 = _misc_.DateTime_Gr_Japan_3 + Gr_Latvia = _misc_.DateTime_Gr_Latvia + Gr_Lithuania = _misc_.DateTime_Gr_Lithuania + Gr_Luxemburg = _misc_.DateTime_Gr_Luxemburg + Gr_Netherlands = _misc_.DateTime_Gr_Netherlands + Gr_Netherlands_Groningen = _misc_.DateTime_Gr_Netherlands_Groningen + Gr_Netherlands_Gelderland = _misc_.DateTime_Gr_Netherlands_Gelderland + Gr_Netherlands_Utrecht = _misc_.DateTime_Gr_Netherlands_Utrecht + Gr_Netherlands_Friesland = _misc_.DateTime_Gr_Netherlands_Friesland + Gr_Norway = _misc_.DateTime_Gr_Norway + Gr_Poland = _misc_.DateTime_Gr_Poland + Gr_Portugal = _misc_.DateTime_Gr_Portugal + Gr_Romania = _misc_.DateTime_Gr_Romania + Gr_Russia = _misc_.DateTime_Gr_Russia + Gr_Scotland = _misc_.DateTime_Gr_Scotland + Gr_Spain = _misc_.DateTime_Gr_Spain + Gr_Sweden = _misc_.DateTime_Gr_Sweden + Gr_Switzerland = _misc_.DateTime_Gr_Switzerland + Gr_Switzerland_Catholic = _misc_.DateTime_Gr_Switzerland_Catholic + Gr_Switzerland_Protestant = _misc_.DateTime_Gr_Switzerland_Protestant + Gr_Turkey = _misc_.DateTime_Gr_Turkey + Gr_USA = _misc_.DateTime_Gr_USA + Gr_Wales = _misc_.DateTime_Gr_Wales + Gr_Yugoslavia = _misc_.DateTime_Gr_Yugoslavia + Country_Unknown = _misc_.DateTime_Country_Unknown + Country_Default = _misc_.DateTime_Country_Default + Country_WesternEurope_Start = _misc_.DateTime_Country_WesternEurope_Start + Country_EEC = _misc_.DateTime_Country_EEC + France = _misc_.DateTime_France + Germany = _misc_.DateTime_Germany + UK = _misc_.DateTime_UK + Country_WesternEurope_End = _misc_.DateTime_Country_WesternEurope_End + Russia = _misc_.DateTime_Russia + USA = _misc_.DateTime_USA + Jan = _misc_.DateTime_Jan + Feb = _misc_.DateTime_Feb + Mar = _misc_.DateTime_Mar + Apr = _misc_.DateTime_Apr + May = _misc_.DateTime_May + Jun = _misc_.DateTime_Jun + Jul = _misc_.DateTime_Jul + Aug = _misc_.DateTime_Aug + Sep = _misc_.DateTime_Sep + Oct = _misc_.DateTime_Oct + Nov = _misc_.DateTime_Nov + Dec = _misc_.DateTime_Dec + Inv_Month = _misc_.DateTime_Inv_Month + Sun = _misc_.DateTime_Sun + Mon = _misc_.DateTime_Mon + Tue = _misc_.DateTime_Tue + Wed = _misc_.DateTime_Wed + Thu = _misc_.DateTime_Thu + Fri = _misc_.DateTime_Fri + Sat = _misc_.DateTime_Sat + Inv_WeekDay = _misc_.DateTime_Inv_WeekDay + Inv_Year = _misc_.DateTime_Inv_Year + Name_Full = _misc_.DateTime_Name_Full + Name_Abbr = _misc_.DateTime_Name_Abbr + Default_First = _misc_.DateTime_Default_First + Monday_First = _misc_.DateTime_Monday_First + Sunday_First = _misc_.DateTime_Sunday_First def SetCountry(*args, **kwargs): """DateTime.SetCountry(int country)""" - return _misc.DateTime_SetCountry(*args, **kwargs) + return _misc_.DateTime_SetCountry(*args, **kwargs) SetCountry = staticmethod(SetCountry) def GetCountry(*args, **kwargs): """DateTime.GetCountry() -> int""" - return _misc.DateTime_GetCountry(*args, **kwargs) + return _misc_.DateTime_GetCountry(*args, **kwargs) GetCountry = staticmethod(GetCountry) def IsWestEuropeanCountry(*args, **kwargs): """DateTime.IsWestEuropeanCountry(int country=Country_Default) -> bool""" - return _misc.DateTime_IsWestEuropeanCountry(*args, **kwargs) + return _misc_.DateTime_IsWestEuropeanCountry(*args, **kwargs) IsWestEuropeanCountry = staticmethod(IsWestEuropeanCountry) def GetCurrentYear(*args, **kwargs): """DateTime.GetCurrentYear(int cal=Gregorian) -> int""" - return _misc.DateTime_GetCurrentYear(*args, **kwargs) + return _misc_.DateTime_GetCurrentYear(*args, **kwargs) GetCurrentYear = staticmethod(GetCurrentYear) def ConvertYearToBC(*args, **kwargs): """DateTime.ConvertYearToBC(int year) -> int""" - return _misc.DateTime_ConvertYearToBC(*args, **kwargs) + return _misc_.DateTime_ConvertYearToBC(*args, **kwargs) ConvertYearToBC = staticmethod(ConvertYearToBC) def GetCurrentMonth(*args, **kwargs): """DateTime.GetCurrentMonth(int cal=Gregorian) -> int""" - return _misc.DateTime_GetCurrentMonth(*args, **kwargs) + return _misc_.DateTime_GetCurrentMonth(*args, **kwargs) GetCurrentMonth = staticmethod(GetCurrentMonth) def IsLeapYear(*args, **kwargs): """DateTime.IsLeapYear(int year=Inv_Year, int cal=Gregorian) -> bool""" - return _misc.DateTime_IsLeapYear(*args, **kwargs) + return _misc_.DateTime_IsLeapYear(*args, **kwargs) IsLeapYear = staticmethod(IsLeapYear) def GetCentury(*args, **kwargs): """DateTime.GetCentury(int year=Inv_Year) -> int""" - return _misc.DateTime_GetCentury(*args, **kwargs) + return _misc_.DateTime_GetCentury(*args, **kwargs) GetCentury = staticmethod(GetCentury) def GetNumberOfDaysinYear(*args, **kwargs): """DateTime.GetNumberOfDaysinYear(int year, int cal=Gregorian) -> int""" - return _misc.DateTime_GetNumberOfDaysinYear(*args, **kwargs) + return _misc_.DateTime_GetNumberOfDaysinYear(*args, **kwargs) GetNumberOfDaysinYear = staticmethod(GetNumberOfDaysinYear) def GetNumberOfDaysInMonth(*args, **kwargs): """DateTime.GetNumberOfDaysInMonth(int month, int year=Inv_Year, int cal=Gregorian) -> int""" - return _misc.DateTime_GetNumberOfDaysInMonth(*args, **kwargs) + return _misc_.DateTime_GetNumberOfDaysInMonth(*args, **kwargs) GetNumberOfDaysInMonth = staticmethod(GetNumberOfDaysInMonth) def GetMonthName(*args, **kwargs): """DateTime.GetMonthName(int month, int flags=Name_Full) -> String""" - return _misc.DateTime_GetMonthName(*args, **kwargs) + return _misc_.DateTime_GetMonthName(*args, **kwargs) GetMonthName = staticmethod(GetMonthName) def GetWeekDayName(*args, **kwargs): """DateTime.GetWeekDayName(int weekday, int flags=Name_Full) -> String""" - return _misc.DateTime_GetWeekDayName(*args, **kwargs) + return _misc_.DateTime_GetWeekDayName(*args, **kwargs) GetWeekDayName = staticmethod(GetWeekDayName) def GetAmPmStrings(*args, **kwargs): @@ -3222,46 +3222,46 @@ class DateTime(object): Get the AM and PM strings in the current locale (may be empty) """ - return _misc.DateTime_GetAmPmStrings(*args, **kwargs) + return _misc_.DateTime_GetAmPmStrings(*args, **kwargs) GetAmPmStrings = staticmethod(GetAmPmStrings) def IsDSTApplicable(*args, **kwargs): """DateTime.IsDSTApplicable(int year=Inv_Year, int country=Country_Default) -> bool""" - return _misc.DateTime_IsDSTApplicable(*args, **kwargs) + return _misc_.DateTime_IsDSTApplicable(*args, **kwargs) IsDSTApplicable = staticmethod(IsDSTApplicable) def GetBeginDST(*args, **kwargs): """DateTime.GetBeginDST(int year=Inv_Year, int country=Country_Default) -> DateTime""" - return _misc.DateTime_GetBeginDST(*args, **kwargs) + return _misc_.DateTime_GetBeginDST(*args, **kwargs) GetBeginDST = staticmethod(GetBeginDST) def GetEndDST(*args, **kwargs): """DateTime.GetEndDST(int year=Inv_Year, int country=Country_Default) -> DateTime""" - return _misc.DateTime_GetEndDST(*args, **kwargs) + return _misc_.DateTime_GetEndDST(*args, **kwargs) GetEndDST = staticmethod(GetEndDST) def Now(*args, **kwargs): """DateTime.Now() -> DateTime""" - return _misc.DateTime_Now(*args, **kwargs) + return _misc_.DateTime_Now(*args, **kwargs) Now = staticmethod(Now) def UNow(*args, **kwargs): """DateTime.UNow() -> DateTime""" - return _misc.DateTime_UNow(*args, **kwargs) + return _misc_.DateTime_UNow(*args, **kwargs) UNow = staticmethod(UNow) def Today(*args, **kwargs): """DateTime.Today() -> DateTime""" - return _misc.DateTime_Today(*args, **kwargs) + return _misc_.DateTime_Today(*args, **kwargs) Today = staticmethod(Today) def __init__(self, *args, **kwargs): """__init__(self) -> DateTime""" - newobj = _misc.new_DateTime(*args, **kwargs) + newobj = _misc_.new_DateTime(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_misc.delete_DateTime): + def __del__(self, destroy=_misc_.delete_DateTime): """__del__(self)""" try: if self.thisown: destroy(self) @@ -3269,289 +3269,289 @@ class DateTime(object): def SetToCurrent(*args, **kwargs): """SetToCurrent(self) -> DateTime""" - return _misc.DateTime_SetToCurrent(*args, **kwargs) + return _misc_.DateTime_SetToCurrent(*args, **kwargs) def SetTimeT(*args, **kwargs): """SetTimeT(self, time_t timet) -> DateTime""" - return _misc.DateTime_SetTimeT(*args, **kwargs) + return _misc_.DateTime_SetTimeT(*args, **kwargs) def SetJDN(*args, **kwargs): """SetJDN(self, double jdn) -> DateTime""" - return _misc.DateTime_SetJDN(*args, **kwargs) + return _misc_.DateTime_SetJDN(*args, **kwargs) def SetHMS(*args, **kwargs): """SetHMS(self, int hour, int minute=0, int second=0, int millisec=0) -> DateTime""" - return _misc.DateTime_SetHMS(*args, **kwargs) + return _misc_.DateTime_SetHMS(*args, **kwargs) def Set(*args, **kwargs): """ Set(self, int day, int month=Inv_Month, int year=Inv_Year, int hour=0, int minute=0, int second=0, int millisec=0) -> DateTime """ - return _misc.DateTime_Set(*args, **kwargs) + return _misc_.DateTime_Set(*args, **kwargs) def ResetTime(*args, **kwargs): """ResetTime(self) -> DateTime""" - return _misc.DateTime_ResetTime(*args, **kwargs) + return _misc_.DateTime_ResetTime(*args, **kwargs) def SetYear(*args, **kwargs): """SetYear(self, int year) -> DateTime""" - return _misc.DateTime_SetYear(*args, **kwargs) + return _misc_.DateTime_SetYear(*args, **kwargs) def SetMonth(*args, **kwargs): """SetMonth(self, int month) -> DateTime""" - return _misc.DateTime_SetMonth(*args, **kwargs) + return _misc_.DateTime_SetMonth(*args, **kwargs) def SetDay(*args, **kwargs): """SetDay(self, int day) -> DateTime""" - return _misc.DateTime_SetDay(*args, **kwargs) + return _misc_.DateTime_SetDay(*args, **kwargs) def SetHour(*args, **kwargs): """SetHour(self, int hour) -> DateTime""" - return _misc.DateTime_SetHour(*args, **kwargs) + return _misc_.DateTime_SetHour(*args, **kwargs) def SetMinute(*args, **kwargs): """SetMinute(self, int minute) -> DateTime""" - return _misc.DateTime_SetMinute(*args, **kwargs) + return _misc_.DateTime_SetMinute(*args, **kwargs) def SetSecond(*args, **kwargs): """SetSecond(self, int second) -> DateTime""" - return _misc.DateTime_SetSecond(*args, **kwargs) + return _misc_.DateTime_SetSecond(*args, **kwargs) def SetMillisecond(*args, **kwargs): """SetMillisecond(self, int millisecond) -> DateTime""" - return _misc.DateTime_SetMillisecond(*args, **kwargs) + return _misc_.DateTime_SetMillisecond(*args, **kwargs) def SetToWeekDayInSameWeek(*args, **kwargs): """SetToWeekDayInSameWeek(self, int weekday, int flags=Monday_First) -> DateTime""" - return _misc.DateTime_SetToWeekDayInSameWeek(*args, **kwargs) + return _misc_.DateTime_SetToWeekDayInSameWeek(*args, **kwargs) def GetWeekDayInSameWeek(*args, **kwargs): """GetWeekDayInSameWeek(self, int weekday, int flags=Monday_First) -> DateTime""" - return _misc.DateTime_GetWeekDayInSameWeek(*args, **kwargs) + return _misc_.DateTime_GetWeekDayInSameWeek(*args, **kwargs) def SetToNextWeekDay(*args, **kwargs): """SetToNextWeekDay(self, int weekday) -> DateTime""" - return _misc.DateTime_SetToNextWeekDay(*args, **kwargs) + return _misc_.DateTime_SetToNextWeekDay(*args, **kwargs) def GetNextWeekDay(*args, **kwargs): """GetNextWeekDay(self, int weekday) -> DateTime""" - return _misc.DateTime_GetNextWeekDay(*args, **kwargs) + return _misc_.DateTime_GetNextWeekDay(*args, **kwargs) def SetToPrevWeekDay(*args, **kwargs): """SetToPrevWeekDay(self, int weekday) -> DateTime""" - return _misc.DateTime_SetToPrevWeekDay(*args, **kwargs) + return _misc_.DateTime_SetToPrevWeekDay(*args, **kwargs) def GetPrevWeekDay(*args, **kwargs): """GetPrevWeekDay(self, int weekday) -> DateTime""" - return _misc.DateTime_GetPrevWeekDay(*args, **kwargs) + return _misc_.DateTime_GetPrevWeekDay(*args, **kwargs) def SetToWeekDay(*args, **kwargs): """SetToWeekDay(self, int weekday, int n=1, int month=Inv_Month, int year=Inv_Year) -> bool""" - return _misc.DateTime_SetToWeekDay(*args, **kwargs) + return _misc_.DateTime_SetToWeekDay(*args, **kwargs) def SetToLastWeekDay(*args, **kwargs): """SetToLastWeekDay(self, int weekday, int month=Inv_Month, int year=Inv_Year) -> bool""" - return _misc.DateTime_SetToLastWeekDay(*args, **kwargs) + return _misc_.DateTime_SetToLastWeekDay(*args, **kwargs) def GetLastWeekDay(*args, **kwargs): """GetLastWeekDay(self, int weekday, int month=Inv_Month, int year=Inv_Year) -> DateTime""" - return _misc.DateTime_GetLastWeekDay(*args, **kwargs) + return _misc_.DateTime_GetLastWeekDay(*args, **kwargs) def SetToTheWeek(*args, **kwargs): """SetToTheWeek(self, int numWeek, int weekday=Mon, int flags=Monday_First) -> bool""" - return _misc.DateTime_SetToTheWeek(*args, **kwargs) + return _misc_.DateTime_SetToTheWeek(*args, **kwargs) def GetWeek(*args, **kwargs): """GetWeek(self, int numWeek, int weekday=Mon, int flags=Monday_First) -> DateTime""" - return _misc.DateTime_GetWeek(*args, **kwargs) + return _misc_.DateTime_GetWeek(*args, **kwargs) def SetToLastMonthDay(*args, **kwargs): """SetToLastMonthDay(self, int month=Inv_Month, int year=Inv_Year) -> DateTime""" - return _misc.DateTime_SetToLastMonthDay(*args, **kwargs) + return _misc_.DateTime_SetToLastMonthDay(*args, **kwargs) def GetLastMonthDay(*args, **kwargs): """GetLastMonthDay(self, int month=Inv_Month, int year=Inv_Year) -> DateTime""" - return _misc.DateTime_GetLastMonthDay(*args, **kwargs) + return _misc_.DateTime_GetLastMonthDay(*args, **kwargs) def SetToYearDay(*args, **kwargs): """SetToYearDay(self, int yday) -> DateTime""" - return _misc.DateTime_SetToYearDay(*args, **kwargs) + return _misc_.DateTime_SetToYearDay(*args, **kwargs) def GetYearDay(*args, **kwargs): """GetYearDay(self, int yday) -> DateTime""" - return _misc.DateTime_GetYearDay(*args, **kwargs) + return _misc_.DateTime_GetYearDay(*args, **kwargs) def GetJulianDayNumber(*args, **kwargs): """GetJulianDayNumber(self) -> double""" - return _misc.DateTime_GetJulianDayNumber(*args, **kwargs) + return _misc_.DateTime_GetJulianDayNumber(*args, **kwargs) def GetJDN(*args, **kwargs): """GetJDN(self) -> double""" - return _misc.DateTime_GetJDN(*args, **kwargs) + return _misc_.DateTime_GetJDN(*args, **kwargs) def GetModifiedJulianDayNumber(*args, **kwargs): """GetModifiedJulianDayNumber(self) -> double""" - return _misc.DateTime_GetModifiedJulianDayNumber(*args, **kwargs) + return _misc_.DateTime_GetModifiedJulianDayNumber(*args, **kwargs) def GetMJD(*args, **kwargs): """GetMJD(self) -> double""" - return _misc.DateTime_GetMJD(*args, **kwargs) + return _misc_.DateTime_GetMJD(*args, **kwargs) def GetRataDie(*args, **kwargs): """GetRataDie(self) -> double""" - return _misc.DateTime_GetRataDie(*args, **kwargs) + return _misc_.DateTime_GetRataDie(*args, **kwargs) def ToTimezone(*args, **kwargs): """ToTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime""" - return _misc.DateTime_ToTimezone(*args, **kwargs) + return _misc_.DateTime_ToTimezone(*args, **kwargs) def MakeTimezone(*args, **kwargs): """MakeTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime""" - return _misc.DateTime_MakeTimezone(*args, **kwargs) + return _misc_.DateTime_MakeTimezone(*args, **kwargs) def ToGMT(*args, **kwargs): """ToGMT(self, bool noDST=False) -> DateTime""" - return _misc.DateTime_ToGMT(*args, **kwargs) + return _misc_.DateTime_ToGMT(*args, **kwargs) def MakeGMT(*args, **kwargs): """MakeGMT(self, bool noDST=False) -> DateTime""" - return _misc.DateTime_MakeGMT(*args, **kwargs) + return _misc_.DateTime_MakeGMT(*args, **kwargs) def IsDST(*args, **kwargs): """IsDST(self, int country=Country_Default) -> int""" - return _misc.DateTime_IsDST(*args, **kwargs) + return _misc_.DateTime_IsDST(*args, **kwargs) def IsValid(*args, **kwargs): """IsValid(self) -> bool""" - return _misc.DateTime_IsValid(*args, **kwargs) + return _misc_.DateTime_IsValid(*args, **kwargs) Ok = IsValid def __nonzero__(self): return self.Ok() def GetTicks(*args, **kwargs): """GetTicks(self) -> time_t""" - return _misc.DateTime_GetTicks(*args, **kwargs) + return _misc_.DateTime_GetTicks(*args, **kwargs) def GetYear(*args, **kwargs): """GetYear(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" - return _misc.DateTime_GetYear(*args, **kwargs) + return _misc_.DateTime_GetYear(*args, **kwargs) def GetMonth(*args, **kwargs): """GetMonth(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" - return _misc.DateTime_GetMonth(*args, **kwargs) + return _misc_.DateTime_GetMonth(*args, **kwargs) def GetDay(*args, **kwargs): """GetDay(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" - return _misc.DateTime_GetDay(*args, **kwargs) + return _misc_.DateTime_GetDay(*args, **kwargs) def GetWeekDay(*args, **kwargs): """GetWeekDay(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" - return _misc.DateTime_GetWeekDay(*args, **kwargs) + return _misc_.DateTime_GetWeekDay(*args, **kwargs) def GetHour(*args, **kwargs): """GetHour(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" - return _misc.DateTime_GetHour(*args, **kwargs) + return _misc_.DateTime_GetHour(*args, **kwargs) def GetMinute(*args, **kwargs): """GetMinute(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" - return _misc.DateTime_GetMinute(*args, **kwargs) + return _misc_.DateTime_GetMinute(*args, **kwargs) def GetSecond(*args, **kwargs): """GetSecond(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" - return _misc.DateTime_GetSecond(*args, **kwargs) + return _misc_.DateTime_GetSecond(*args, **kwargs) def GetMillisecond(*args, **kwargs): """GetMillisecond(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" - return _misc.DateTime_GetMillisecond(*args, **kwargs) + return _misc_.DateTime_GetMillisecond(*args, **kwargs) def GetDayOfYear(*args, **kwargs): """GetDayOfYear(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" - return _misc.DateTime_GetDayOfYear(*args, **kwargs) + return _misc_.DateTime_GetDayOfYear(*args, **kwargs) def GetWeekOfYear(*args, **kwargs): """GetWeekOfYear(self, int flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" - return _misc.DateTime_GetWeekOfYear(*args, **kwargs) + return _misc_.DateTime_GetWeekOfYear(*args, **kwargs) def GetWeekOfMonth(*args, **kwargs): """GetWeekOfMonth(self, int flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" - return _misc.DateTime_GetWeekOfMonth(*args, **kwargs) + return _misc_.DateTime_GetWeekOfMonth(*args, **kwargs) def IsWorkDay(*args, **kwargs): """IsWorkDay(self, int country=Country_Default) -> bool""" - return _misc.DateTime_IsWorkDay(*args, **kwargs) + return _misc_.DateTime_IsWorkDay(*args, **kwargs) def IsEqualTo(*args, **kwargs): """IsEqualTo(self, DateTime datetime) -> bool""" - return _misc.DateTime_IsEqualTo(*args, **kwargs) + return _misc_.DateTime_IsEqualTo(*args, **kwargs) def IsEarlierThan(*args, **kwargs): """IsEarlierThan(self, DateTime datetime) -> bool""" - return _misc.DateTime_IsEarlierThan(*args, **kwargs) + return _misc_.DateTime_IsEarlierThan(*args, **kwargs) def IsLaterThan(*args, **kwargs): """IsLaterThan(self, DateTime datetime) -> bool""" - return _misc.DateTime_IsLaterThan(*args, **kwargs) + return _misc_.DateTime_IsLaterThan(*args, **kwargs) def IsStrictlyBetween(*args, **kwargs): """IsStrictlyBetween(self, DateTime t1, DateTime t2) -> bool""" - return _misc.DateTime_IsStrictlyBetween(*args, **kwargs) + return _misc_.DateTime_IsStrictlyBetween(*args, **kwargs) def IsBetween(*args, **kwargs): """IsBetween(self, DateTime t1, DateTime t2) -> bool""" - return _misc.DateTime_IsBetween(*args, **kwargs) + return _misc_.DateTime_IsBetween(*args, **kwargs) def IsSameDate(*args, **kwargs): """IsSameDate(self, DateTime dt) -> bool""" - return _misc.DateTime_IsSameDate(*args, **kwargs) + return _misc_.DateTime_IsSameDate(*args, **kwargs) def IsSameTime(*args, **kwargs): """IsSameTime(self, DateTime dt) -> bool""" - return _misc.DateTime_IsSameTime(*args, **kwargs) + return _misc_.DateTime_IsSameTime(*args, **kwargs) def IsEqualUpTo(*args, **kwargs): """IsEqualUpTo(self, DateTime dt, TimeSpan ts) -> bool""" - return _misc.DateTime_IsEqualUpTo(*args, **kwargs) + return _misc_.DateTime_IsEqualUpTo(*args, **kwargs) def AddTS(*args, **kwargs): """AddTS(self, TimeSpan diff) -> DateTime""" - return _misc.DateTime_AddTS(*args, **kwargs) + return _misc_.DateTime_AddTS(*args, **kwargs) def AddDS(*args, **kwargs): """AddDS(self, DateSpan diff) -> DateTime""" - return _misc.DateTime_AddDS(*args, **kwargs) + return _misc_.DateTime_AddDS(*args, **kwargs) def SubtractTS(*args, **kwargs): """SubtractTS(self, TimeSpan diff) -> DateTime""" - return _misc.DateTime_SubtractTS(*args, **kwargs) + return _misc_.DateTime_SubtractTS(*args, **kwargs) def SubtractDS(*args, **kwargs): """SubtractDS(self, DateSpan diff) -> DateTime""" - return _misc.DateTime_SubtractDS(*args, **kwargs) + return _misc_.DateTime_SubtractDS(*args, **kwargs) def Subtract(*args, **kwargs): """Subtract(self, DateTime dt) -> TimeSpan""" - return _misc.DateTime_Subtract(*args, **kwargs) + return _misc_.DateTime_Subtract(*args, **kwargs) def __iadd__(*args): """ __iadd__(self, TimeSpan diff) -> DateTime __iadd__(self, DateSpan diff) -> DateTime """ - return _misc.DateTime___iadd__(*args) + return _misc_.DateTime___iadd__(*args) def __isub__(*args): """ __isub__(self, TimeSpan diff) -> DateTime __isub__(self, DateSpan diff) -> DateTime """ - return _misc.DateTime___isub__(*args) + return _misc_.DateTime___isub__(*args) def __add__(*args): """ __add__(self, TimeSpan other) -> DateTime __add__(self, DateSpan other) -> DateTime """ - return _misc.DateTime___add__(*args) + return _misc_.DateTime___add__(*args) def __sub__(*args): """ @@ -3559,71 +3559,71 @@ class DateTime(object): __sub__(self, TimeSpan other) -> DateTime __sub__(self, DateSpan other) -> DateTime """ - return _misc.DateTime___sub__(*args) + return _misc_.DateTime___sub__(*args) def __lt__(*args): """__lt__(self, DateTime other) -> bool""" - return _misc.DateTime___lt__(*args) + return _misc_.DateTime___lt__(*args) def __le__(*args): """__le__(self, DateTime other) -> bool""" - return _misc.DateTime___le__(*args) + return _misc_.DateTime___le__(*args) def __gt__(*args): """__gt__(self, DateTime other) -> bool""" - return _misc.DateTime___gt__(*args) + return _misc_.DateTime___gt__(*args) def __ge__(*args): """__ge__(self, DateTime other) -> bool""" - return _misc.DateTime___ge__(*args) + return _misc_.DateTime___ge__(*args) def __eq__(*args): """__eq__(self, DateTime other) -> bool""" - return _misc.DateTime___eq__(*args) + return _misc_.DateTime___eq__(*args) def __ne__(*args): """__ne__(self, DateTime other) -> bool""" - return _misc.DateTime___ne__(*args) + return _misc_.DateTime___ne__(*args) def ParseRfc822Date(*args, **kwargs): """ParseRfc822Date(self, String date) -> int""" - return _misc.DateTime_ParseRfc822Date(*args, **kwargs) + return _misc_.DateTime_ParseRfc822Date(*args, **kwargs) def ParseFormat(*args, **kwargs): """ParseFormat(self, String date, String format=DateFormatStr, DateTime dateDef=DefaultDateTime) -> int""" - return _misc.DateTime_ParseFormat(*args, **kwargs) + return _misc_.DateTime_ParseFormat(*args, **kwargs) def ParseDateTime(*args, **kwargs): """ParseDateTime(self, String datetime) -> int""" - return _misc.DateTime_ParseDateTime(*args, **kwargs) + return _misc_.DateTime_ParseDateTime(*args, **kwargs) def ParseDate(*args, **kwargs): """ParseDate(self, String date) -> int""" - return _misc.DateTime_ParseDate(*args, **kwargs) + return _misc_.DateTime_ParseDate(*args, **kwargs) def ParseTime(*args, **kwargs): """ParseTime(self, String time) -> int""" - return _misc.DateTime_ParseTime(*args, **kwargs) + return _misc_.DateTime_ParseTime(*args, **kwargs) def Format(*args, **kwargs): """Format(self, String format=DateFormatStr, wxDateTime::TimeZone tz=LOCAL_TZ) -> String""" - return _misc.DateTime_Format(*args, **kwargs) + return _misc_.DateTime_Format(*args, **kwargs) def FormatDate(*args, **kwargs): """FormatDate(self) -> String""" - return _misc.DateTime_FormatDate(*args, **kwargs) + return _misc_.DateTime_FormatDate(*args, **kwargs) def FormatTime(*args, **kwargs): """FormatTime(self) -> String""" - return _misc.DateTime_FormatTime(*args, **kwargs) + return _misc_.DateTime_FormatTime(*args, **kwargs) def FormatISODate(*args, **kwargs): """FormatISODate(self) -> String""" - return _misc.DateTime_FormatISODate(*args, **kwargs) + return _misc_.DateTime_FormatISODate(*args, **kwargs) def FormatISOTime(*args, **kwargs): """FormatISOTime(self) -> String""" - return _misc.DateTime_FormatISOTime(*args, **kwargs) + return _misc_.DateTime_FormatISOTime(*args, **kwargs) def __repr__(self): if self.IsValid(): @@ -3642,57 +3642,57 @@ class DateTimePtr(DateTime): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = DateTime -_misc.DateTime_swigregister(DateTimePtr) +_misc_.DateTime_swigregister(DateTimePtr) DateFormatStr = cvar.DateFormatStr TimeSpanFormatStr = cvar.TimeSpanFormatStr def DateTime_SetCountry(*args, **kwargs): """DateTime_SetCountry(int country)""" - return _misc.DateTime_SetCountry(*args, **kwargs) + return _misc_.DateTime_SetCountry(*args, **kwargs) def DateTime_GetCountry(*args, **kwargs): """DateTime_GetCountry() -> int""" - return _misc.DateTime_GetCountry(*args, **kwargs) + return _misc_.DateTime_GetCountry(*args, **kwargs) def DateTime_IsWestEuropeanCountry(*args, **kwargs): """DateTime_IsWestEuropeanCountry(int country=Country_Default) -> bool""" - return _misc.DateTime_IsWestEuropeanCountry(*args, **kwargs) + return _misc_.DateTime_IsWestEuropeanCountry(*args, **kwargs) def DateTime_GetCurrentYear(*args, **kwargs): """DateTime_GetCurrentYear(int cal=Gregorian) -> int""" - return _misc.DateTime_GetCurrentYear(*args, **kwargs) + return _misc_.DateTime_GetCurrentYear(*args, **kwargs) def DateTime_ConvertYearToBC(*args, **kwargs): """DateTime_ConvertYearToBC(int year) -> int""" - return _misc.DateTime_ConvertYearToBC(*args, **kwargs) + return _misc_.DateTime_ConvertYearToBC(*args, **kwargs) def DateTime_GetCurrentMonth(*args, **kwargs): """DateTime_GetCurrentMonth(int cal=Gregorian) -> int""" - return _misc.DateTime_GetCurrentMonth(*args, **kwargs) + return _misc_.DateTime_GetCurrentMonth(*args, **kwargs) def DateTime_IsLeapYear(*args, **kwargs): """DateTime_IsLeapYear(int year=Inv_Year, int cal=Gregorian) -> bool""" - return _misc.DateTime_IsLeapYear(*args, **kwargs) + return _misc_.DateTime_IsLeapYear(*args, **kwargs) def DateTime_GetCentury(*args, **kwargs): """DateTime_GetCentury(int year=Inv_Year) -> int""" - return _misc.DateTime_GetCentury(*args, **kwargs) + return _misc_.DateTime_GetCentury(*args, **kwargs) def DateTime_GetNumberOfDaysinYear(*args, **kwargs): """DateTime_GetNumberOfDaysinYear(int year, int cal=Gregorian) -> int""" - return _misc.DateTime_GetNumberOfDaysinYear(*args, **kwargs) + return _misc_.DateTime_GetNumberOfDaysinYear(*args, **kwargs) def DateTime_GetNumberOfDaysInMonth(*args, **kwargs): """DateTime_GetNumberOfDaysInMonth(int month, int year=Inv_Year, int cal=Gregorian) -> int""" - return _misc.DateTime_GetNumberOfDaysInMonth(*args, **kwargs) + return _misc_.DateTime_GetNumberOfDaysInMonth(*args, **kwargs) def DateTime_GetMonthName(*args, **kwargs): """DateTime_GetMonthName(int month, int flags=Name_Full) -> String""" - return _misc.DateTime_GetMonthName(*args, **kwargs) + return _misc_.DateTime_GetMonthName(*args, **kwargs) def DateTime_GetWeekDayName(*args, **kwargs): """DateTime_GetWeekDayName(int weekday, int flags=Name_Full) -> String""" - return _misc.DateTime_GetWeekDayName(*args, **kwargs) + return _misc_.DateTime_GetWeekDayName(*args, **kwargs) def DateTime_GetAmPmStrings(*args, **kwargs): """ @@ -3700,47 +3700,47 @@ def DateTime_GetAmPmStrings(*args, **kwargs): Get the AM and PM strings in the current locale (may be empty) """ - return _misc.DateTime_GetAmPmStrings(*args, **kwargs) + return _misc_.DateTime_GetAmPmStrings(*args, **kwargs) def DateTime_IsDSTApplicable(*args, **kwargs): """DateTime_IsDSTApplicable(int year=Inv_Year, int country=Country_Default) -> bool""" - return _misc.DateTime_IsDSTApplicable(*args, **kwargs) + return _misc_.DateTime_IsDSTApplicable(*args, **kwargs) def DateTime_GetBeginDST(*args, **kwargs): """DateTime_GetBeginDST(int year=Inv_Year, int country=Country_Default) -> DateTime""" - return _misc.DateTime_GetBeginDST(*args, **kwargs) + return _misc_.DateTime_GetBeginDST(*args, **kwargs) def DateTime_GetEndDST(*args, **kwargs): """DateTime_GetEndDST(int year=Inv_Year, int country=Country_Default) -> DateTime""" - return _misc.DateTime_GetEndDST(*args, **kwargs) + return _misc_.DateTime_GetEndDST(*args, **kwargs) def DateTime_Now(*args, **kwargs): """DateTime_Now() -> DateTime""" - return _misc.DateTime_Now(*args, **kwargs) + return _misc_.DateTime_Now(*args, **kwargs) def DateTime_UNow(*args, **kwargs): """DateTime_UNow() -> DateTime""" - return _misc.DateTime_UNow(*args, **kwargs) + return _misc_.DateTime_UNow(*args, **kwargs) def DateTime_Today(*args, **kwargs): """DateTime_Today() -> DateTime""" - return _misc.DateTime_Today(*args, **kwargs) + return _misc_.DateTime_Today(*args, **kwargs) def DateTimeFromTimeT(*args, **kwargs): """DateTimeFromTimeT(time_t timet) -> DateTime""" - val = _misc.new_DateTimeFromTimeT(*args, **kwargs) + val = _misc_.new_DateTimeFromTimeT(*args, **kwargs) val.thisown = 1 return val def DateTimeFromJDN(*args, **kwargs): """DateTimeFromJDN(double jdn) -> DateTime""" - val = _misc.new_DateTimeFromJDN(*args, **kwargs) + val = _misc_.new_DateTimeFromJDN(*args, **kwargs) val.thisown = 1 return val def DateTimeFromHMS(*args, **kwargs): """DateTimeFromHMS(int hour, int minute=0, int second=0, int millisec=0) -> DateTime""" - val = _misc.new_DateTimeFromHMS(*args, **kwargs) + val = _misc_.new_DateTimeFromHMS(*args, **kwargs) val.thisown = 1 return val @@ -3749,7 +3749,7 @@ def DateTimeFromDMY(*args, **kwargs): DateTimeFromDMY(int day, int month=Inv_Month, int year=Inv_Year, int hour=0, int minute=0, int second=0, int millisec=0) -> DateTime """ - val = _misc.new_DateTimeFromDMY(*args, **kwargs) + val = _misc_.new_DateTimeFromDMY(*args, **kwargs) val.thisown = 1 return val @@ -3758,61 +3758,61 @@ class TimeSpan(object): return "<%s.%s; proxy of C++ wxTimeSpan instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def Seconds(*args, **kwargs): """TimeSpan.Seconds(long sec) -> TimeSpan""" - return _misc.TimeSpan_Seconds(*args, **kwargs) + return _misc_.TimeSpan_Seconds(*args, **kwargs) Seconds = staticmethod(Seconds) def Second(*args, **kwargs): """TimeSpan.Second() -> TimeSpan""" - return _misc.TimeSpan_Second(*args, **kwargs) + return _misc_.TimeSpan_Second(*args, **kwargs) Second = staticmethod(Second) def Minutes(*args, **kwargs): """TimeSpan.Minutes(long min) -> TimeSpan""" - return _misc.TimeSpan_Minutes(*args, **kwargs) + return _misc_.TimeSpan_Minutes(*args, **kwargs) Minutes = staticmethod(Minutes) def Minute(*args, **kwargs): """TimeSpan.Minute() -> TimeSpan""" - return _misc.TimeSpan_Minute(*args, **kwargs) + return _misc_.TimeSpan_Minute(*args, **kwargs) Minute = staticmethod(Minute) def Hours(*args, **kwargs): """TimeSpan.Hours(long hours) -> TimeSpan""" - return _misc.TimeSpan_Hours(*args, **kwargs) + return _misc_.TimeSpan_Hours(*args, **kwargs) Hours = staticmethod(Hours) def Hour(*args, **kwargs): """TimeSpan.Hour() -> TimeSpan""" - return _misc.TimeSpan_Hour(*args, **kwargs) + return _misc_.TimeSpan_Hour(*args, **kwargs) Hour = staticmethod(Hour) def Days(*args, **kwargs): """TimeSpan.Days(long days) -> TimeSpan""" - return _misc.TimeSpan_Days(*args, **kwargs) + return _misc_.TimeSpan_Days(*args, **kwargs) Days = staticmethod(Days) def Day(*args, **kwargs): """TimeSpan.Day() -> TimeSpan""" - return _misc.TimeSpan_Day(*args, **kwargs) + return _misc_.TimeSpan_Day(*args, **kwargs) Day = staticmethod(Day) def Weeks(*args, **kwargs): """TimeSpan.Weeks(long days) -> TimeSpan""" - return _misc.TimeSpan_Weeks(*args, **kwargs) + return _misc_.TimeSpan_Weeks(*args, **kwargs) Weeks = staticmethod(Weeks) def Week(*args, **kwargs): """TimeSpan.Week() -> TimeSpan""" - return _misc.TimeSpan_Week(*args, **kwargs) + return _misc_.TimeSpan_Week(*args, **kwargs) Week = staticmethod(Week) def __init__(self, *args, **kwargs): """__init__(self, long hours=0, long minutes=0, long seconds=0, long milliseconds=0) -> TimeSpan""" - newobj = _misc.new_TimeSpan(*args, **kwargs) + newobj = _misc_.new_TimeSpan(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_misc.delete_TimeSpan): + def __del__(self, destroy=_misc_.delete_TimeSpan): """__del__(self)""" try: if self.thisown: destroy(self) @@ -3820,131 +3820,131 @@ class TimeSpan(object): def Add(*args, **kwargs): """Add(self, TimeSpan diff) -> TimeSpan""" - return _misc.TimeSpan_Add(*args, **kwargs) + return _misc_.TimeSpan_Add(*args, **kwargs) def Subtract(*args, **kwargs): """Subtract(self, TimeSpan diff) -> TimeSpan""" - return _misc.TimeSpan_Subtract(*args, **kwargs) + return _misc_.TimeSpan_Subtract(*args, **kwargs) def Multiply(*args, **kwargs): """Multiply(self, int n) -> TimeSpan""" - return _misc.TimeSpan_Multiply(*args, **kwargs) + return _misc_.TimeSpan_Multiply(*args, **kwargs) def Neg(*args, **kwargs): """Neg(self) -> TimeSpan""" - return _misc.TimeSpan_Neg(*args, **kwargs) + return _misc_.TimeSpan_Neg(*args, **kwargs) def Abs(*args, **kwargs): """Abs(self) -> TimeSpan""" - return _misc.TimeSpan_Abs(*args, **kwargs) + return _misc_.TimeSpan_Abs(*args, **kwargs) def __iadd__(*args, **kwargs): """__iadd__(self, TimeSpan diff) -> TimeSpan""" - return _misc.TimeSpan___iadd__(*args, **kwargs) + return _misc_.TimeSpan___iadd__(*args, **kwargs) def __isub__(*args, **kwargs): """__isub__(self, TimeSpan diff) -> TimeSpan""" - return _misc.TimeSpan___isub__(*args, **kwargs) + return _misc_.TimeSpan___isub__(*args, **kwargs) def __imul__(*args, **kwargs): """__imul__(self, int n) -> TimeSpan""" - return _misc.TimeSpan___imul__(*args, **kwargs) + return _misc_.TimeSpan___imul__(*args, **kwargs) def __neg__(*args, **kwargs): """__neg__(self) -> TimeSpan""" - return _misc.TimeSpan___neg__(*args, **kwargs) + return _misc_.TimeSpan___neg__(*args, **kwargs) def __add__(*args, **kwargs): """__add__(self, TimeSpan other) -> TimeSpan""" - return _misc.TimeSpan___add__(*args, **kwargs) + return _misc_.TimeSpan___add__(*args, **kwargs) def __sub__(*args, **kwargs): """__sub__(self, TimeSpan other) -> TimeSpan""" - return _misc.TimeSpan___sub__(*args, **kwargs) + return _misc_.TimeSpan___sub__(*args, **kwargs) def __mul__(*args, **kwargs): """__mul__(self, int n) -> TimeSpan""" - return _misc.TimeSpan___mul__(*args, **kwargs) + return _misc_.TimeSpan___mul__(*args, **kwargs) def __rmul__(*args, **kwargs): """__rmul__(self, int n) -> TimeSpan""" - return _misc.TimeSpan___rmul__(*args, **kwargs) + return _misc_.TimeSpan___rmul__(*args, **kwargs) def __lt__(*args, **kwargs): """__lt__(self, TimeSpan other) -> bool""" - return _misc.TimeSpan___lt__(*args, **kwargs) + return _misc_.TimeSpan___lt__(*args, **kwargs) def __le__(*args, **kwargs): """__le__(self, TimeSpan other) -> bool""" - return _misc.TimeSpan___le__(*args, **kwargs) + return _misc_.TimeSpan___le__(*args, **kwargs) def __gt__(*args, **kwargs): """__gt__(self, TimeSpan other) -> bool""" - return _misc.TimeSpan___gt__(*args, **kwargs) + return _misc_.TimeSpan___gt__(*args, **kwargs) def __ge__(*args, **kwargs): """__ge__(self, TimeSpan other) -> bool""" - return _misc.TimeSpan___ge__(*args, **kwargs) + return _misc_.TimeSpan___ge__(*args, **kwargs) def __eq__(*args, **kwargs): """__eq__(self, TimeSpan other) -> bool""" - return _misc.TimeSpan___eq__(*args, **kwargs) + return _misc_.TimeSpan___eq__(*args, **kwargs) def __ne__(*args, **kwargs): """__ne__(self, TimeSpan other) -> bool""" - return _misc.TimeSpan___ne__(*args, **kwargs) + return _misc_.TimeSpan___ne__(*args, **kwargs) def IsNull(*args, **kwargs): """IsNull(self) -> bool""" - return _misc.TimeSpan_IsNull(*args, **kwargs) + return _misc_.TimeSpan_IsNull(*args, **kwargs) def IsPositive(*args, **kwargs): """IsPositive(self) -> bool""" - return _misc.TimeSpan_IsPositive(*args, **kwargs) + return _misc_.TimeSpan_IsPositive(*args, **kwargs) def IsNegative(*args, **kwargs): """IsNegative(self) -> bool""" - return _misc.TimeSpan_IsNegative(*args, **kwargs) + return _misc_.TimeSpan_IsNegative(*args, **kwargs) def IsEqualTo(*args, **kwargs): """IsEqualTo(self, TimeSpan ts) -> bool""" - return _misc.TimeSpan_IsEqualTo(*args, **kwargs) + return _misc_.TimeSpan_IsEqualTo(*args, **kwargs) def IsLongerThan(*args, **kwargs): """IsLongerThan(self, TimeSpan ts) -> bool""" - return _misc.TimeSpan_IsLongerThan(*args, **kwargs) + return _misc_.TimeSpan_IsLongerThan(*args, **kwargs) def IsShorterThan(*args, **kwargs): """IsShorterThan(self, TimeSpan t) -> bool""" - return _misc.TimeSpan_IsShorterThan(*args, **kwargs) + return _misc_.TimeSpan_IsShorterThan(*args, **kwargs) def GetWeeks(*args, **kwargs): """GetWeeks(self) -> int""" - return _misc.TimeSpan_GetWeeks(*args, **kwargs) + return _misc_.TimeSpan_GetWeeks(*args, **kwargs) def GetDays(*args, **kwargs): """GetDays(self) -> int""" - return _misc.TimeSpan_GetDays(*args, **kwargs) + return _misc_.TimeSpan_GetDays(*args, **kwargs) def GetHours(*args, **kwargs): """GetHours(self) -> int""" - return _misc.TimeSpan_GetHours(*args, **kwargs) + return _misc_.TimeSpan_GetHours(*args, **kwargs) def GetMinutes(*args, **kwargs): """GetMinutes(self) -> int""" - return _misc.TimeSpan_GetMinutes(*args, **kwargs) + return _misc_.TimeSpan_GetMinutes(*args, **kwargs) def GetSeconds(*args, **kwargs): """GetSeconds(self) -> wxLongLong""" - return _misc.TimeSpan_GetSeconds(*args, **kwargs) + return _misc_.TimeSpan_GetSeconds(*args, **kwargs) def GetMilliseconds(*args, **kwargs): """GetMilliseconds(self) -> wxLongLong""" - return _misc.TimeSpan_GetMilliseconds(*args, **kwargs) + return _misc_.TimeSpan_GetMilliseconds(*args, **kwargs) def Format(*args, **kwargs): """Format(self, String format=TimeSpanFormatStr) -> String""" - return _misc.TimeSpan_Format(*args, **kwargs) + return _misc_.TimeSpan_Format(*args, **kwargs) def __repr__(self): return '' % ( self.Format(), self.this) @@ -3957,58 +3957,58 @@ class TimeSpanPtr(TimeSpan): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = TimeSpan -_misc.TimeSpan_swigregister(TimeSpanPtr) +_misc_.TimeSpan_swigregister(TimeSpanPtr) def TimeSpan_Seconds(*args, **kwargs): """TimeSpan_Seconds(long sec) -> TimeSpan""" - return _misc.TimeSpan_Seconds(*args, **kwargs) + return _misc_.TimeSpan_Seconds(*args, **kwargs) def TimeSpan_Second(*args, **kwargs): """TimeSpan_Second() -> TimeSpan""" - return _misc.TimeSpan_Second(*args, **kwargs) + return _misc_.TimeSpan_Second(*args, **kwargs) def TimeSpan_Minutes(*args, **kwargs): """TimeSpan_Minutes(long min) -> TimeSpan""" - return _misc.TimeSpan_Minutes(*args, **kwargs) + return _misc_.TimeSpan_Minutes(*args, **kwargs) def TimeSpan_Minute(*args, **kwargs): """TimeSpan_Minute() -> TimeSpan""" - return _misc.TimeSpan_Minute(*args, **kwargs) + return _misc_.TimeSpan_Minute(*args, **kwargs) def TimeSpan_Hours(*args, **kwargs): """TimeSpan_Hours(long hours) -> TimeSpan""" - return _misc.TimeSpan_Hours(*args, **kwargs) + return _misc_.TimeSpan_Hours(*args, **kwargs) def TimeSpan_Hour(*args, **kwargs): """TimeSpan_Hour() -> TimeSpan""" - return _misc.TimeSpan_Hour(*args, **kwargs) + return _misc_.TimeSpan_Hour(*args, **kwargs) def TimeSpan_Days(*args, **kwargs): """TimeSpan_Days(long days) -> TimeSpan""" - return _misc.TimeSpan_Days(*args, **kwargs) + return _misc_.TimeSpan_Days(*args, **kwargs) def TimeSpan_Day(*args, **kwargs): """TimeSpan_Day() -> TimeSpan""" - return _misc.TimeSpan_Day(*args, **kwargs) + return _misc_.TimeSpan_Day(*args, **kwargs) def TimeSpan_Weeks(*args, **kwargs): """TimeSpan_Weeks(long days) -> TimeSpan""" - return _misc.TimeSpan_Weeks(*args, **kwargs) + return _misc_.TimeSpan_Weeks(*args, **kwargs) def TimeSpan_Week(*args, **kwargs): """TimeSpan_Week() -> TimeSpan""" - return _misc.TimeSpan_Week(*args, **kwargs) + return _misc_.TimeSpan_Week(*args, **kwargs) class DateSpan(object): def __repr__(self): return "<%s.%s; proxy of C++ wxDateSpan instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, int years=0, int months=0, int weeks=0, int days=0) -> DateSpan""" - newobj = _misc.new_DateSpan(*args, **kwargs) + newobj = _misc_.new_DateSpan(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_misc.delete_DateSpan): + def __del__(self, destroy=_misc_.delete_DateSpan): """__del__(self)""" try: if self.thisown: destroy(self) @@ -4016,135 +4016,135 @@ class DateSpan(object): def Days(*args, **kwargs): """DateSpan.Days(int days) -> DateSpan""" - return _misc.DateSpan_Days(*args, **kwargs) + return _misc_.DateSpan_Days(*args, **kwargs) Days = staticmethod(Days) def Day(*args, **kwargs): """DateSpan.Day() -> DateSpan""" - return _misc.DateSpan_Day(*args, **kwargs) + return _misc_.DateSpan_Day(*args, **kwargs) Day = staticmethod(Day) def Weeks(*args, **kwargs): """DateSpan.Weeks(int weeks) -> DateSpan""" - return _misc.DateSpan_Weeks(*args, **kwargs) + return _misc_.DateSpan_Weeks(*args, **kwargs) Weeks = staticmethod(Weeks) def Week(*args, **kwargs): """DateSpan.Week() -> DateSpan""" - return _misc.DateSpan_Week(*args, **kwargs) + return _misc_.DateSpan_Week(*args, **kwargs) Week = staticmethod(Week) def Months(*args, **kwargs): """DateSpan.Months(int mon) -> DateSpan""" - return _misc.DateSpan_Months(*args, **kwargs) + return _misc_.DateSpan_Months(*args, **kwargs) Months = staticmethod(Months) def Month(*args, **kwargs): """DateSpan.Month() -> DateSpan""" - return _misc.DateSpan_Month(*args, **kwargs) + return _misc_.DateSpan_Month(*args, **kwargs) Month = staticmethod(Month) def Years(*args, **kwargs): """DateSpan.Years(int years) -> DateSpan""" - return _misc.DateSpan_Years(*args, **kwargs) + return _misc_.DateSpan_Years(*args, **kwargs) Years = staticmethod(Years) def Year(*args, **kwargs): """DateSpan.Year() -> DateSpan""" - return _misc.DateSpan_Year(*args, **kwargs) + return _misc_.DateSpan_Year(*args, **kwargs) Year = staticmethod(Year) def SetYears(*args, **kwargs): """SetYears(self, int n) -> DateSpan""" - return _misc.DateSpan_SetYears(*args, **kwargs) + return _misc_.DateSpan_SetYears(*args, **kwargs) def SetMonths(*args, **kwargs): """SetMonths(self, int n) -> DateSpan""" - return _misc.DateSpan_SetMonths(*args, **kwargs) + return _misc_.DateSpan_SetMonths(*args, **kwargs) def SetWeeks(*args, **kwargs): """SetWeeks(self, int n) -> DateSpan""" - return _misc.DateSpan_SetWeeks(*args, **kwargs) + return _misc_.DateSpan_SetWeeks(*args, **kwargs) def SetDays(*args, **kwargs): """SetDays(self, int n) -> DateSpan""" - return _misc.DateSpan_SetDays(*args, **kwargs) + return _misc_.DateSpan_SetDays(*args, **kwargs) def GetYears(*args, **kwargs): """GetYears(self) -> int""" - return _misc.DateSpan_GetYears(*args, **kwargs) + return _misc_.DateSpan_GetYears(*args, **kwargs) def GetMonths(*args, **kwargs): """GetMonths(self) -> int""" - return _misc.DateSpan_GetMonths(*args, **kwargs) + return _misc_.DateSpan_GetMonths(*args, **kwargs) def GetWeeks(*args, **kwargs): """GetWeeks(self) -> int""" - return _misc.DateSpan_GetWeeks(*args, **kwargs) + return _misc_.DateSpan_GetWeeks(*args, **kwargs) def GetDays(*args, **kwargs): """GetDays(self) -> int""" - return _misc.DateSpan_GetDays(*args, **kwargs) + return _misc_.DateSpan_GetDays(*args, **kwargs) def GetTotalDays(*args, **kwargs): """GetTotalDays(self) -> int""" - return _misc.DateSpan_GetTotalDays(*args, **kwargs) + return _misc_.DateSpan_GetTotalDays(*args, **kwargs) def Add(*args, **kwargs): """Add(self, DateSpan other) -> DateSpan""" - return _misc.DateSpan_Add(*args, **kwargs) + return _misc_.DateSpan_Add(*args, **kwargs) def Subtract(*args, **kwargs): """Subtract(self, DateSpan other) -> DateSpan""" - return _misc.DateSpan_Subtract(*args, **kwargs) + return _misc_.DateSpan_Subtract(*args, **kwargs) def Neg(*args, **kwargs): """Neg(self) -> DateSpan""" - return _misc.DateSpan_Neg(*args, **kwargs) + return _misc_.DateSpan_Neg(*args, **kwargs) def Multiply(*args, **kwargs): """Multiply(self, int factor) -> DateSpan""" - return _misc.DateSpan_Multiply(*args, **kwargs) + return _misc_.DateSpan_Multiply(*args, **kwargs) def __iadd__(*args, **kwargs): """__iadd__(self, DateSpan other) -> DateSpan""" - return _misc.DateSpan___iadd__(*args, **kwargs) + return _misc_.DateSpan___iadd__(*args, **kwargs) def __isub__(*args, **kwargs): """__isub__(self, DateSpan other) -> DateSpan""" - return _misc.DateSpan___isub__(*args, **kwargs) + return _misc_.DateSpan___isub__(*args, **kwargs) def __neg__(*args, **kwargs): """__neg__(self) -> DateSpan""" - return _misc.DateSpan___neg__(*args, **kwargs) + return _misc_.DateSpan___neg__(*args, **kwargs) def __imul__(*args, **kwargs): """__imul__(self, int factor) -> DateSpan""" - return _misc.DateSpan___imul__(*args, **kwargs) + return _misc_.DateSpan___imul__(*args, **kwargs) def __add__(*args, **kwargs): """__add__(self, DateSpan other) -> DateSpan""" - return _misc.DateSpan___add__(*args, **kwargs) + return _misc_.DateSpan___add__(*args, **kwargs) def __sub__(*args, **kwargs): """__sub__(self, DateSpan other) -> DateSpan""" - return _misc.DateSpan___sub__(*args, **kwargs) + return _misc_.DateSpan___sub__(*args, **kwargs) def __mul__(*args, **kwargs): """__mul__(self, int n) -> DateSpan""" - return _misc.DateSpan___mul__(*args, **kwargs) + return _misc_.DateSpan___mul__(*args, **kwargs) def __rmul__(*args, **kwargs): """__rmul__(self, int n) -> DateSpan""" - return _misc.DateSpan___rmul__(*args, **kwargs) + return _misc_.DateSpan___rmul__(*args, **kwargs) def __eq__(*args, **kwargs): """__eq__(self, DateSpan other) -> bool""" - return _misc.DateSpan___eq__(*args, **kwargs) + return _misc_.DateSpan___eq__(*args, **kwargs) def __ne__(*args, **kwargs): """__ne__(self, DateSpan other) -> bool""" - return _misc.DateSpan___ne__(*args, **kwargs) + return _misc_.DateSpan___ne__(*args, **kwargs) class DateSpanPtr(DateSpan): @@ -4152,78 +4152,78 @@ class DateSpanPtr(DateSpan): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = DateSpan -_misc.DateSpan_swigregister(DateSpanPtr) +_misc_.DateSpan_swigregister(DateSpanPtr) def DateSpan_Days(*args, **kwargs): """DateSpan_Days(int days) -> DateSpan""" - return _misc.DateSpan_Days(*args, **kwargs) + return _misc_.DateSpan_Days(*args, **kwargs) def DateSpan_Day(*args, **kwargs): """DateSpan_Day() -> DateSpan""" - return _misc.DateSpan_Day(*args, **kwargs) + return _misc_.DateSpan_Day(*args, **kwargs) def DateSpan_Weeks(*args, **kwargs): """DateSpan_Weeks(int weeks) -> DateSpan""" - return _misc.DateSpan_Weeks(*args, **kwargs) + return _misc_.DateSpan_Weeks(*args, **kwargs) def DateSpan_Week(*args, **kwargs): """DateSpan_Week() -> DateSpan""" - return _misc.DateSpan_Week(*args, **kwargs) + return _misc_.DateSpan_Week(*args, **kwargs) def DateSpan_Months(*args, **kwargs): """DateSpan_Months(int mon) -> DateSpan""" - return _misc.DateSpan_Months(*args, **kwargs) + return _misc_.DateSpan_Months(*args, **kwargs) def DateSpan_Month(*args, **kwargs): """DateSpan_Month() -> DateSpan""" - return _misc.DateSpan_Month(*args, **kwargs) + return _misc_.DateSpan_Month(*args, **kwargs) def DateSpan_Years(*args, **kwargs): """DateSpan_Years(int years) -> DateSpan""" - return _misc.DateSpan_Years(*args, **kwargs) + return _misc_.DateSpan_Years(*args, **kwargs) def DateSpan_Year(*args, **kwargs): """DateSpan_Year() -> DateSpan""" - return _misc.DateSpan_Year(*args, **kwargs) + return _misc_.DateSpan_Year(*args, **kwargs) def GetLocalTime(*args, **kwargs): """GetLocalTime() -> long""" - return _misc.GetLocalTime(*args, **kwargs) + return _misc_.GetLocalTime(*args, **kwargs) def GetUTCTime(*args, **kwargs): """GetUTCTime() -> long""" - return _misc.GetUTCTime(*args, **kwargs) + return _misc_.GetUTCTime(*args, **kwargs) def GetCurrentTime(*args, **kwargs): """GetCurrentTime() -> long""" - return _misc.GetCurrentTime(*args, **kwargs) + return _misc_.GetCurrentTime(*args, **kwargs) def GetLocalTimeMillis(*args, **kwargs): """GetLocalTimeMillis() -> wxLongLong""" - return _misc.GetLocalTimeMillis(*args, **kwargs) + return _misc_.GetLocalTimeMillis(*args, **kwargs) #--------------------------------------------------------------------------- -DF_INVALID = _misc.DF_INVALID -DF_TEXT = _misc.DF_TEXT -DF_BITMAP = _misc.DF_BITMAP -DF_METAFILE = _misc.DF_METAFILE -DF_SYLK = _misc.DF_SYLK -DF_DIF = _misc.DF_DIF -DF_TIFF = _misc.DF_TIFF -DF_OEMTEXT = _misc.DF_OEMTEXT -DF_DIB = _misc.DF_DIB -DF_PALETTE = _misc.DF_PALETTE -DF_PENDATA = _misc.DF_PENDATA -DF_RIFF = _misc.DF_RIFF -DF_WAVE = _misc.DF_WAVE -DF_UNICODETEXT = _misc.DF_UNICODETEXT -DF_ENHMETAFILE = _misc.DF_ENHMETAFILE -DF_FILENAME = _misc.DF_FILENAME -DF_LOCALE = _misc.DF_LOCALE -DF_PRIVATE = _misc.DF_PRIVATE -DF_HTML = _misc.DF_HTML -DF_MAX = _misc.DF_MAX +DF_INVALID = _misc_.DF_INVALID +DF_TEXT = _misc_.DF_TEXT +DF_BITMAP = _misc_.DF_BITMAP +DF_METAFILE = _misc_.DF_METAFILE +DF_SYLK = _misc_.DF_SYLK +DF_DIF = _misc_.DF_DIF +DF_TIFF = _misc_.DF_TIFF +DF_OEMTEXT = _misc_.DF_OEMTEXT +DF_DIB = _misc_.DF_DIB +DF_PALETTE = _misc_.DF_PALETTE +DF_PENDATA = _misc_.DF_PENDATA +DF_RIFF = _misc_.DF_RIFF +DF_WAVE = _misc_.DF_WAVE +DF_UNICODETEXT = _misc_.DF_UNICODETEXT +DF_ENHMETAFILE = _misc_.DF_ENHMETAFILE +DF_FILENAME = _misc_.DF_FILENAME +DF_LOCALE = _misc_.DF_LOCALE +DF_PRIVATE = _misc_.DF_PRIVATE +DF_HTML = _misc_.DF_HTML +DF_MAX = _misc_.DF_MAX class DataFormat(object): """ A wx.DataFormat is an encapsulation of a platform-specific format @@ -4246,11 +4246,11 @@ class DataFormat(object): formats or an empty data object (use SetType or SetId later in this case) """ - newobj = _misc.new_DataFormat(*args, **kwargs) + newobj = _misc_.new_DataFormat(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_misc.delete_DataFormat): + def __del__(self, destroy=_misc_.delete_DataFormat): """__del__(self)""" try: if self.thisown: destroy(self) @@ -4261,14 +4261,14 @@ class DataFormat(object): __eq__(self, int format) -> bool __eq__(self, DataFormat format) -> bool """ - return _misc.DataFormat___eq__(*args) + return _misc_.DataFormat___eq__(*args) def __ne__(*args): """ __ne__(self, int format) -> bool __ne__(self, DataFormat format) -> bool """ - return _misc.DataFormat___ne__(*args) + return _misc_.DataFormat___ne__(*args) def SetType(*args, **kwargs): """ @@ -4276,7 +4276,7 @@ class DataFormat(object): Sets the format to the given value, which should be one of wx.DF_XXX constants. """ - return _misc.DataFormat_SetType(*args, **kwargs) + return _misc_.DataFormat_SetType(*args, **kwargs) def GetType(*args, **kwargs): """ @@ -4284,7 +4284,7 @@ class DataFormat(object): Returns the platform-specific number identifying the format. """ - return _misc.DataFormat_GetType(*args, **kwargs) + return _misc_.DataFormat_GetType(*args, **kwargs) def GetId(*args, **kwargs): """ @@ -4292,7 +4292,7 @@ class DataFormat(object): Returns the name of a custom format (this function will fail for a standard format). """ - return _misc.DataFormat_GetId(*args, **kwargs) + return _misc_.DataFormat_GetId(*args, **kwargs) def SetId(*args, **kwargs): """ @@ -4300,7 +4300,7 @@ class DataFormat(object): Sets the format to be the custom format identified by the given name. """ - return _misc.DataFormat_SetId(*args, **kwargs) + return _misc_.DataFormat_SetId(*args, **kwargs) class DataFormatPtr(DataFormat): @@ -4308,7 +4308,7 @@ class DataFormatPtr(DataFormat): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = DataFormat -_misc.DataFormat_swigregister(DataFormatPtr) +_misc_.DataFormat_swigregister(DataFormatPtr) DefaultDateTime = cvar.DefaultDateTime def CustomDataFormat(*args, **kwargs): @@ -4317,7 +4317,7 @@ def CustomDataFormat(*args, **kwargs): Constructs a data format object for a custom format identified by its name. """ - val = _misc.new_CustomDataFormat(*args, **kwargs) + val = _misc_.new_CustomDataFormat(*args, **kwargs) val.thisown = 1 return val @@ -4325,10 +4325,10 @@ class DataObject(object): def __init__(self): raise RuntimeError, "No constructor defined" def __repr__(self): return "<%s.%s; proxy of C++ wxDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - Get = _misc.DataObject_Get - Set = _misc.DataObject_Set - Both = _misc.DataObject_Both - def __del__(self, destroy=_misc.delete_DataObject): + Get = _misc_.DataObject_Get + Set = _misc_.DataObject_Set + Both = _misc_.DataObject_Both + def __del__(self, destroy=_misc_.delete_DataObject): """__del__(self)""" try: if self.thisown: destroy(self) @@ -4336,31 +4336,31 @@ class DataObject(object): def GetPreferredFormat(*args, **kwargs): """GetPreferredFormat(self, int dir=Get) -> DataFormat""" - return _misc.DataObject_GetPreferredFormat(*args, **kwargs) + return _misc_.DataObject_GetPreferredFormat(*args, **kwargs) def GetFormatCount(*args, **kwargs): """GetFormatCount(self, int dir=Get) -> size_t""" - return _misc.DataObject_GetFormatCount(*args, **kwargs) + return _misc_.DataObject_GetFormatCount(*args, **kwargs) def IsSupported(*args, **kwargs): """IsSupported(self, DataFormat format, int dir=Get) -> bool""" - return _misc.DataObject_IsSupported(*args, **kwargs) + return _misc_.DataObject_IsSupported(*args, **kwargs) def GetDataSize(*args, **kwargs): """GetDataSize(self, DataFormat format) -> size_t""" - return _misc.DataObject_GetDataSize(*args, **kwargs) + return _misc_.DataObject_GetDataSize(*args, **kwargs) def GetAllFormats(*args, **kwargs): """GetAllFormats(self, DataFormat formats, int dir=Get)""" - return _misc.DataObject_GetAllFormats(*args, **kwargs) + return _misc_.DataObject_GetAllFormats(*args, **kwargs) def GetDataHere(*args, **kwargs): """GetDataHere(self, DataFormat format, void buf) -> bool""" - return _misc.DataObject_GetDataHere(*args, **kwargs) + return _misc_.DataObject_GetDataHere(*args, **kwargs) def SetData(*args, **kwargs): """SetData(self, DataFormat format, size_t len, void buf) -> bool""" - return _misc.DataObject_SetData(*args, **kwargs) + return _misc_.DataObject_SetData(*args, **kwargs) class DataObjectPtr(DataObject): @@ -4368,7 +4368,7 @@ class DataObjectPtr(DataObject): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = DataObject -_misc.DataObject_swigregister(DataObjectPtr) +_misc_.DataObject_swigregister(DataObjectPtr) FormatInvalid = cvar.FormatInvalid class DataObjectSimple(DataObject): @@ -4376,17 +4376,17 @@ class DataObjectSimple(DataObject): return "<%s.%s; proxy of C++ wxDataObjectSimple instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, DataFormat format=FormatInvalid) -> DataObjectSimple""" - newobj = _misc.new_DataObjectSimple(*args, **kwargs) + newobj = _misc_.new_DataObjectSimple(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def GetFormat(*args, **kwargs): """GetFormat(self) -> DataFormat""" - return _misc.DataObjectSimple_GetFormat(*args, **kwargs) + return _misc_.DataObjectSimple_GetFormat(*args, **kwargs) def SetFormat(*args, **kwargs): """SetFormat(self, DataFormat format)""" - return _misc.DataObjectSimple_SetFormat(*args, **kwargs) + return _misc_.DataObjectSimple_SetFormat(*args, **kwargs) class DataObjectSimplePtr(DataObjectSimple): @@ -4394,14 +4394,14 @@ class DataObjectSimplePtr(DataObjectSimple): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = DataObjectSimple -_misc.DataObjectSimple_swigregister(DataObjectSimplePtr) +_misc_.DataObjectSimple_swigregister(DataObjectSimplePtr) class PyDataObjectSimple(DataObjectSimple): def __repr__(self): return "<%s.%s; proxy of C++ wxPyDataObjectSimple instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, DataFormat format=FormatInvalid) -> PyDataObjectSimple""" - newobj = _misc.new_PyDataObjectSimple(*args, **kwargs) + newobj = _misc_.new_PyDataObjectSimple(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -4409,7 +4409,7 @@ class PyDataObjectSimple(DataObjectSimple): def _setCallbackInfo(*args, **kwargs): """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _misc.PyDataObjectSimple__setCallbackInfo(*args, **kwargs) + return _misc_.PyDataObjectSimple__setCallbackInfo(*args, **kwargs) class PyDataObjectSimplePtr(PyDataObjectSimple): @@ -4417,20 +4417,20 @@ class PyDataObjectSimplePtr(PyDataObjectSimple): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = PyDataObjectSimple -_misc.PyDataObjectSimple_swigregister(PyDataObjectSimplePtr) +_misc_.PyDataObjectSimple_swigregister(PyDataObjectSimplePtr) class DataObjectComposite(DataObject): def __repr__(self): return "<%s.%s; proxy of C++ wxDataObjectComposite instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> DataObjectComposite""" - newobj = _misc.new_DataObjectComposite(*args, **kwargs) + newobj = _misc_.new_DataObjectComposite(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def Add(*args, **kwargs): """Add(self, DataObjectSimple dataObject, int preferred=False)""" - return _misc.DataObjectComposite_Add(*args, **kwargs) + return _misc_.DataObjectComposite_Add(*args, **kwargs) class DataObjectCompositePtr(DataObjectComposite): @@ -4438,28 +4438,28 @@ class DataObjectCompositePtr(DataObjectComposite): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = DataObjectComposite -_misc.DataObjectComposite_swigregister(DataObjectCompositePtr) +_misc_.DataObjectComposite_swigregister(DataObjectCompositePtr) class TextDataObject(DataObjectSimple): def __repr__(self): return "<%s.%s; proxy of C++ wxTextDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, String text=EmptyString) -> TextDataObject""" - newobj = _misc.new_TextDataObject(*args, **kwargs) + newobj = _misc_.new_TextDataObject(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def GetTextLength(*args, **kwargs): """GetTextLength(self) -> size_t""" - return _misc.TextDataObject_GetTextLength(*args, **kwargs) + return _misc_.TextDataObject_GetTextLength(*args, **kwargs) def GetText(*args, **kwargs): """GetText(self) -> String""" - return _misc.TextDataObject_GetText(*args, **kwargs) + return _misc_.TextDataObject_GetText(*args, **kwargs) def SetText(*args, **kwargs): """SetText(self, String text)""" - return _misc.TextDataObject_SetText(*args, **kwargs) + return _misc_.TextDataObject_SetText(*args, **kwargs) class TextDataObjectPtr(TextDataObject): @@ -4467,14 +4467,14 @@ class TextDataObjectPtr(TextDataObject): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = TextDataObject -_misc.TextDataObject_swigregister(TextDataObjectPtr) +_misc_.TextDataObject_swigregister(TextDataObjectPtr) class PyTextDataObject(TextDataObject): def __repr__(self): return "<%s.%s; proxy of C++ wxPyTextDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, String text=EmptyString) -> PyTextDataObject""" - newobj = _misc.new_PyTextDataObject(*args, **kwargs) + newobj = _misc_.new_PyTextDataObject(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -4482,7 +4482,7 @@ class PyTextDataObject(TextDataObject): def _setCallbackInfo(*args, **kwargs): """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _misc.PyTextDataObject__setCallbackInfo(*args, **kwargs) + return _misc_.PyTextDataObject__setCallbackInfo(*args, **kwargs) class PyTextDataObjectPtr(PyTextDataObject): @@ -4490,24 +4490,24 @@ class PyTextDataObjectPtr(PyTextDataObject): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = PyTextDataObject -_misc.PyTextDataObject_swigregister(PyTextDataObjectPtr) +_misc_.PyTextDataObject_swigregister(PyTextDataObjectPtr) class BitmapDataObject(DataObjectSimple): def __repr__(self): return "<%s.%s; proxy of C++ wxBitmapDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, Bitmap bitmap=wxNullBitmap) -> BitmapDataObject""" - newobj = _misc.new_BitmapDataObject(*args, **kwargs) + newobj = _misc_.new_BitmapDataObject(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def GetBitmap(*args, **kwargs): """GetBitmap(self) -> Bitmap""" - return _misc.BitmapDataObject_GetBitmap(*args, **kwargs) + return _misc_.BitmapDataObject_GetBitmap(*args, **kwargs) def SetBitmap(*args, **kwargs): """SetBitmap(self, Bitmap bitmap)""" - return _misc.BitmapDataObject_SetBitmap(*args, **kwargs) + return _misc_.BitmapDataObject_SetBitmap(*args, **kwargs) class BitmapDataObjectPtr(BitmapDataObject): @@ -4515,14 +4515,14 @@ class BitmapDataObjectPtr(BitmapDataObject): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = BitmapDataObject -_misc.BitmapDataObject_swigregister(BitmapDataObjectPtr) +_misc_.BitmapDataObject_swigregister(BitmapDataObjectPtr) class PyBitmapDataObject(BitmapDataObject): def __repr__(self): return "<%s.%s; proxy of C++ wxPyBitmapDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, Bitmap bitmap=wxNullBitmap) -> PyBitmapDataObject""" - newobj = _misc.new_PyBitmapDataObject(*args, **kwargs) + newobj = _misc_.new_PyBitmapDataObject(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -4530,7 +4530,7 @@ class PyBitmapDataObject(BitmapDataObject): def _setCallbackInfo(*args, **kwargs): """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _misc.PyBitmapDataObject__setCallbackInfo(*args, **kwargs) + return _misc_.PyBitmapDataObject__setCallbackInfo(*args, **kwargs) class PyBitmapDataObjectPtr(PyBitmapDataObject): @@ -4538,24 +4538,24 @@ class PyBitmapDataObjectPtr(PyBitmapDataObject): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = PyBitmapDataObject -_misc.PyBitmapDataObject_swigregister(PyBitmapDataObjectPtr) +_misc_.PyBitmapDataObject_swigregister(PyBitmapDataObjectPtr) class FileDataObject(DataObjectSimple): def __repr__(self): return "<%s.%s; proxy of C++ wxFileDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> FileDataObject""" - newobj = _misc.new_FileDataObject(*args, **kwargs) + newobj = _misc_.new_FileDataObject(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def GetFilenames(*args, **kwargs): """GetFilenames(self) -> wxArrayString""" - return _misc.FileDataObject_GetFilenames(*args, **kwargs) + return _misc_.FileDataObject_GetFilenames(*args, **kwargs) def AddFile(*args, **kwargs): """AddFile(self, String filename)""" - return _misc.FileDataObject_AddFile(*args, **kwargs) + return _misc_.FileDataObject_AddFile(*args, **kwargs) class FileDataObjectPtr(FileDataObject): @@ -4563,32 +4563,32 @@ class FileDataObjectPtr(FileDataObject): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = FileDataObject -_misc.FileDataObject_swigregister(FileDataObjectPtr) +_misc_.FileDataObject_swigregister(FileDataObjectPtr) class CustomDataObject(DataObjectSimple): def __repr__(self): return "<%s.%s; proxy of C++ wxCustomDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, DataFormat format=FormatInvalid) -> CustomDataObject""" - newobj = _misc.new_CustomDataObject(*args, **kwargs) + newobj = _misc_.new_CustomDataObject(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def TakeData(*args, **kwargs): """TakeData(self, PyObject data)""" - return _misc.CustomDataObject_TakeData(*args, **kwargs) + return _misc_.CustomDataObject_TakeData(*args, **kwargs) def SetData(*args, **kwargs): """SetData(self, PyObject data) -> bool""" - return _misc.CustomDataObject_SetData(*args, **kwargs) + return _misc_.CustomDataObject_SetData(*args, **kwargs) def GetSize(*args, **kwargs): """GetSize(self) -> size_t""" - return _misc.CustomDataObject_GetSize(*args, **kwargs) + return _misc_.CustomDataObject_GetSize(*args, **kwargs) def GetData(*args, **kwargs): """GetData(self) -> PyObject""" - return _misc.CustomDataObject_GetData(*args, **kwargs) + return _misc_.CustomDataObject_GetData(*args, **kwargs) class CustomDataObjectPtr(CustomDataObject): @@ -4596,24 +4596,24 @@ class CustomDataObjectPtr(CustomDataObject): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = CustomDataObject -_misc.CustomDataObject_swigregister(CustomDataObjectPtr) +_misc_.CustomDataObject_swigregister(CustomDataObjectPtr) class URLDataObject(DataObjectComposite): def __repr__(self): return "<%s.%s; proxy of C++ wxURLDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> URLDataObject""" - newobj = _misc.new_URLDataObject(*args, **kwargs) + newobj = _misc_.new_URLDataObject(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def GetURL(*args, **kwargs): """GetURL(self) -> String""" - return _misc.URLDataObject_GetURL(*args, **kwargs) + return _misc_.URLDataObject_GetURL(*args, **kwargs) def SetURL(*args, **kwargs): """SetURL(self, String url)""" - return _misc.URLDataObject_SetURL(*args, **kwargs) + return _misc_.URLDataObject_SetURL(*args, **kwargs) class URLDataObjectPtr(URLDataObject): @@ -4621,14 +4621,14 @@ class URLDataObjectPtr(URLDataObject): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = URLDataObject -_misc.URLDataObject_swigregister(URLDataObjectPtr) +_misc_.URLDataObject_swigregister(URLDataObjectPtr) class MetafileDataObject(DataObjectSimple): def __repr__(self): return "<%s.%s; proxy of C++ wxMetafileDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> MetafileDataObject""" - newobj = _misc.new_MetafileDataObject(*args, **kwargs) + newobj = _misc_.new_MetafileDataObject(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -4638,23 +4638,23 @@ class MetafileDataObjectPtr(MetafileDataObject): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = MetafileDataObject -_misc.MetafileDataObject_swigregister(MetafileDataObjectPtr) +_misc_.MetafileDataObject_swigregister(MetafileDataObjectPtr) #--------------------------------------------------------------------------- -Drag_CopyOnly = _misc.Drag_CopyOnly -Drag_AllowMove = _misc.Drag_AllowMove -Drag_DefaultMove = _misc.Drag_DefaultMove -DragError = _misc.DragError -DragNone = _misc.DragNone -DragCopy = _misc.DragCopy -DragMove = _misc.DragMove -DragLink = _misc.DragLink -DragCancel = _misc.DragCancel +Drag_CopyOnly = _misc_.Drag_CopyOnly +Drag_AllowMove = _misc_.Drag_AllowMove +Drag_DefaultMove = _misc_.Drag_DefaultMove +DragError = _misc_.DragError +DragNone = _misc_.DragNone +DragCopy = _misc_.DragCopy +DragMove = _misc_.DragMove +DragLink = _misc_.DragLink +DragCancel = _misc_.DragCancel def IsDragResultOk(*args, **kwargs): """IsDragResultOk(int res) -> bool""" - return _misc.IsDragResultOk(*args, **kwargs) + return _misc_.IsDragResultOk(*args, **kwargs) class DropSource(object): def __repr__(self): return "<%s.%s; proxy of C++ wxPyDropSource instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) @@ -4663,15 +4663,15 @@ class DropSource(object): __init__(self, Window win, Icon copy=wxNullIcon, Icon move=wxNullIcon, Icon none=wxNullIcon) -> DropSource """ - newobj = _misc.new_DropSource(*args, **kwargs) + newobj = _misc_.new_DropSource(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def _setCallbackInfo(*args, **kwargs): """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)""" - return _misc.DropSource__setCallbackInfo(*args, **kwargs) + return _misc_.DropSource__setCallbackInfo(*args, **kwargs) - def __del__(self, destroy=_misc.delete_DropSource): + def __del__(self, destroy=_misc_.delete_DropSource): """__del__(self)""" try: if self.thisown: destroy(self) @@ -4679,23 +4679,23 @@ class DropSource(object): def SetData(*args, **kwargs): """SetData(self, DataObject data)""" - return _misc.DropSource_SetData(*args, **kwargs) + return _misc_.DropSource_SetData(*args, **kwargs) def GetDataObject(*args, **kwargs): """GetDataObject(self) -> DataObject""" - return _misc.DropSource_GetDataObject(*args, **kwargs) + return _misc_.DropSource_GetDataObject(*args, **kwargs) def SetCursor(*args, **kwargs): """SetCursor(self, int res, Cursor cursor)""" - return _misc.DropSource_SetCursor(*args, **kwargs) + return _misc_.DropSource_SetCursor(*args, **kwargs) def DoDragDrop(*args, **kwargs): """DoDragDrop(self, int flags=Drag_CopyOnly) -> int""" - return _misc.DropSource_DoDragDrop(*args, **kwargs) + return _misc_.DropSource_DoDragDrop(*args, **kwargs) def base_GiveFeedback(*args, **kwargs): """base_GiveFeedback(self, int effect) -> bool""" - return _misc.DropSource_base_GiveFeedback(*args, **kwargs) + return _misc_.DropSource_base_GiveFeedback(*args, **kwargs) class DropSourcePtr(DropSource): @@ -4703,14 +4703,14 @@ class DropSourcePtr(DropSource): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = DropSource -_misc.DropSource_swigregister(DropSourcePtr) +_misc_.DropSource_swigregister(DropSourcePtr) class DropTarget(object): def __repr__(self): return "<%s.%s; proxy of C++ wxPyDropTarget instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, DataObject dataObject=None) -> DropTarget""" - newobj = _misc.new_DropTarget(*args, **kwargs) + newobj = _misc_.new_DropTarget(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -4718,9 +4718,9 @@ class DropTarget(object): def _setCallbackInfo(*args, **kwargs): """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _misc.DropTarget__setCallbackInfo(*args, **kwargs) + return _misc_.DropTarget__setCallbackInfo(*args, **kwargs) - def __del__(self, destroy=_misc.delete_DropTarget): + def __del__(self, destroy=_misc_.delete_DropTarget): """__del__(self)""" try: if self.thisown: destroy(self) @@ -4728,31 +4728,31 @@ class DropTarget(object): def GetDataObject(*args, **kwargs): """GetDataObject(self) -> DataObject""" - return _misc.DropTarget_GetDataObject(*args, **kwargs) + return _misc_.DropTarget_GetDataObject(*args, **kwargs) def SetDataObject(*args, **kwargs): """SetDataObject(self, DataObject dataObject)""" - return _misc.DropTarget_SetDataObject(*args, **kwargs) + return _misc_.DropTarget_SetDataObject(*args, **kwargs) def base_OnEnter(*args, **kwargs): """base_OnEnter(self, int x, int y, int def) -> int""" - return _misc.DropTarget_base_OnEnter(*args, **kwargs) + return _misc_.DropTarget_base_OnEnter(*args, **kwargs) def base_OnDragOver(*args, **kwargs): """base_OnDragOver(self, int x, int y, int def) -> int""" - return _misc.DropTarget_base_OnDragOver(*args, **kwargs) + return _misc_.DropTarget_base_OnDragOver(*args, **kwargs) def base_OnLeave(*args, **kwargs): """base_OnLeave(self)""" - return _misc.DropTarget_base_OnLeave(*args, **kwargs) + return _misc_.DropTarget_base_OnLeave(*args, **kwargs) def base_OnDrop(*args, **kwargs): """base_OnDrop(self, int x, int y) -> bool""" - return _misc.DropTarget_base_OnDrop(*args, **kwargs) + return _misc_.DropTarget_base_OnDrop(*args, **kwargs) def GetData(*args, **kwargs): """GetData(self) -> bool""" - return _misc.DropTarget_GetData(*args, **kwargs) + return _misc_.DropTarget_GetData(*args, **kwargs) class DropTargetPtr(DropTarget): @@ -4760,7 +4760,7 @@ class DropTargetPtr(DropTarget): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = DropTarget -_misc.DropTarget_swigregister(DropTargetPtr) +_misc_.DropTarget_swigregister(DropTargetPtr) PyDropTarget = DropTarget class TextDropTarget(DropTarget): @@ -4768,7 +4768,7 @@ class TextDropTarget(DropTarget): return "<%s.%s; proxy of C++ wxPyTextDropTarget instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> TextDropTarget""" - newobj = _misc.new_TextDropTarget(*args, **kwargs) + newobj = _misc_.new_TextDropTarget(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -4776,27 +4776,27 @@ class TextDropTarget(DropTarget): def _setCallbackInfo(*args, **kwargs): """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _misc.TextDropTarget__setCallbackInfo(*args, **kwargs) + return _misc_.TextDropTarget__setCallbackInfo(*args, **kwargs) def base_OnEnter(*args, **kwargs): """base_OnEnter(self, int x, int y, int def) -> int""" - return _misc.TextDropTarget_base_OnEnter(*args, **kwargs) + return _misc_.TextDropTarget_base_OnEnter(*args, **kwargs) def base_OnDragOver(*args, **kwargs): """base_OnDragOver(self, int x, int y, int def) -> int""" - return _misc.TextDropTarget_base_OnDragOver(*args, **kwargs) + return _misc_.TextDropTarget_base_OnDragOver(*args, **kwargs) def base_OnLeave(*args, **kwargs): """base_OnLeave(self)""" - return _misc.TextDropTarget_base_OnLeave(*args, **kwargs) + return _misc_.TextDropTarget_base_OnLeave(*args, **kwargs) def base_OnDrop(*args, **kwargs): """base_OnDrop(self, int x, int y) -> bool""" - return _misc.TextDropTarget_base_OnDrop(*args, **kwargs) + return _misc_.TextDropTarget_base_OnDrop(*args, **kwargs) def base_OnData(*args, **kwargs): """base_OnData(self, int x, int y, int def) -> int""" - return _misc.TextDropTarget_base_OnData(*args, **kwargs) + return _misc_.TextDropTarget_base_OnData(*args, **kwargs) class TextDropTargetPtr(TextDropTarget): @@ -4804,14 +4804,14 @@ class TextDropTargetPtr(TextDropTarget): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = TextDropTarget -_misc.TextDropTarget_swigregister(TextDropTargetPtr) +_misc_.TextDropTarget_swigregister(TextDropTargetPtr) class FileDropTarget(DropTarget): def __repr__(self): return "<%s.%s; proxy of C++ wxPyFileDropTarget instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> FileDropTarget""" - newobj = _misc.new_FileDropTarget(*args, **kwargs) + newobj = _misc_.new_FileDropTarget(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -4819,27 +4819,27 @@ class FileDropTarget(DropTarget): def _setCallbackInfo(*args, **kwargs): """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _misc.FileDropTarget__setCallbackInfo(*args, **kwargs) + return _misc_.FileDropTarget__setCallbackInfo(*args, **kwargs) def base_OnEnter(*args, **kwargs): """base_OnEnter(self, int x, int y, int def) -> int""" - return _misc.FileDropTarget_base_OnEnter(*args, **kwargs) + return _misc_.FileDropTarget_base_OnEnter(*args, **kwargs) def base_OnDragOver(*args, **kwargs): """base_OnDragOver(self, int x, int y, int def) -> int""" - return _misc.FileDropTarget_base_OnDragOver(*args, **kwargs) + return _misc_.FileDropTarget_base_OnDragOver(*args, **kwargs) def base_OnLeave(*args, **kwargs): """base_OnLeave(self)""" - return _misc.FileDropTarget_base_OnLeave(*args, **kwargs) + return _misc_.FileDropTarget_base_OnLeave(*args, **kwargs) def base_OnDrop(*args, **kwargs): """base_OnDrop(self, int x, int y) -> bool""" - return _misc.FileDropTarget_base_OnDrop(*args, **kwargs) + return _misc_.FileDropTarget_base_OnDrop(*args, **kwargs) def base_OnData(*args, **kwargs): """base_OnData(self, int x, int y, int def) -> int""" - return _misc.FileDropTarget_base_OnData(*args, **kwargs) + return _misc_.FileDropTarget_base_OnData(*args, **kwargs) class FileDropTargetPtr(FileDropTarget): @@ -4847,11 +4847,11 @@ class FileDropTargetPtr(FileDropTarget): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = FileDropTarget -_misc.FileDropTarget_swigregister(FileDropTargetPtr) +_misc_.FileDropTarget_swigregister(FileDropTargetPtr) #--------------------------------------------------------------------------- -class Clipboard(core.Object): +class Clipboard(_core.Object): """ wx.Clipboard represents the system clipboard and provides methods to copy data to or paste data from it. Normally, you should only use wx.TheClipboard which @@ -4868,11 +4868,11 @@ class Clipboard(core.Object): return "<%s.%s; proxy of C++ wxClipboard instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> Clipboard""" - newobj = _misc.new_Clipboard(*args, **kwargs) + newobj = _misc_.new_Clipboard(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_misc.delete_Clipboard): + def __del__(self, destroy=_misc_.delete_Clipboard): """__del__(self)""" try: if self.thisown: destroy(self) @@ -4887,7 +4887,7 @@ class Clipboard(core.Object): You should keep the clipboard open for only a very short time. Returns true on success. """ - return _misc.Clipboard_Open(*args, **kwargs) + return _misc_.Clipboard_Open(*args, **kwargs) def Close(*args, **kwargs): """ @@ -4895,7 +4895,7 @@ class Clipboard(core.Object): Closes the clipboard. """ - return _misc.Clipboard_Close(*args, **kwargs) + return _misc_.Clipboard_Close(*args, **kwargs) def IsOpened(*args, **kwargs): """ @@ -4903,7 +4903,7 @@ class Clipboard(core.Object): Query whether the clipboard is opened """ - return _misc.Clipboard_IsOpened(*args, **kwargs) + return _misc_.Clipboard_IsOpened(*args, **kwargs) def AddData(*args, **kwargs): """ @@ -4914,7 +4914,7 @@ class Clipboard(core.Object): After this function has been called, the clipboard owns the data, so do not delete the data explicitly. """ - return _misc.Clipboard_AddData(*args, **kwargs) + return _misc_.Clipboard_AddData(*args, **kwargs) def SetData(*args, **kwargs): """ @@ -4922,7 +4922,7 @@ class Clipboard(core.Object): Set the clipboard data, this is the same as Clear followed by AddData. """ - return _misc.Clipboard_SetData(*args, **kwargs) + return _misc_.Clipboard_SetData(*args, **kwargs) def IsSupported(*args, **kwargs): """ @@ -4931,7 +4931,7 @@ class Clipboard(core.Object): Returns True if the given format is available in the data object(s) on the clipboard. """ - return _misc.Clipboard_IsSupported(*args, **kwargs) + return _misc_.Clipboard_IsSupported(*args, **kwargs) def GetData(*args, **kwargs): """ @@ -4940,7 +4940,7 @@ class Clipboard(core.Object): Call this function to fill data with data on the clipboard, if available in the required format. Returns true on success. """ - return _misc.Clipboard_GetData(*args, **kwargs) + return _misc_.Clipboard_GetData(*args, **kwargs) def Clear(*args, **kwargs): """ @@ -4949,7 +4949,7 @@ class Clipboard(core.Object): Clears data from the clipboard object and also the system's clipboard if possible. """ - return _misc.Clipboard_Clear(*args, **kwargs) + return _misc_.Clipboard_Clear(*args, **kwargs) def Flush(*args, **kwargs): """ @@ -4960,7 +4960,7 @@ class Clipboard(core.Object): eating memory), otherwise the clipboard will be emptied on exit. Returns False if the operation is unsuccesful for any reason. """ - return _misc.Clipboard_Flush(*args, **kwargs) + return _misc_.Clipboard_Flush(*args, **kwargs) def UsePrimarySelection(*args, **kwargs): """ @@ -4970,7 +4970,7 @@ class Clipboard(core.Object): called PRIMARY SELECTION as the clipboard as opposed to the normal clipboard, if primary is True. """ - return _misc.Clipboard_UsePrimarySelection(*args, **kwargs) + return _misc_.Clipboard_UsePrimarySelection(*args, **kwargs) class ClipboardPtr(Clipboard): @@ -4978,7 +4978,7 @@ class ClipboardPtr(Clipboard): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = Clipboard -_misc.Clipboard_swigregister(ClipboardPtr) +_misc_.Clipboard_swigregister(ClipboardPtr) class ClipboardLocker(object): """ @@ -4994,11 +4994,11 @@ class ClipboardLocker(object): A helpful class for opening the clipboard and automatically closing it when the locker is destroyed. """ - newobj = _misc.new_ClipboardLocker(*args, **kwargs) + newobj = _misc_.new_ClipboardLocker(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_misc.delete_ClipboardLocker): + def __del__(self, destroy=_misc_.delete_ClipboardLocker): """__del__(self)""" try: if self.thisown: destroy(self) @@ -5011,7 +5011,7 @@ class ClipboardLocker(object): A ClipboardLocker instance evaluates to True if the clipboard was successfully opened. """ - return _misc.ClipboardLocker___nonzero__(*args, **kwargs) + return _misc_.ClipboardLocker___nonzero__(*args, **kwargs) class ClipboardLockerPtr(ClipboardLocker): @@ -5019,7 +5019,7 @@ class ClipboardLockerPtr(ClipboardLocker): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = ClipboardLocker -_misc.ClipboardLocker_swigregister(ClipboardLockerPtr) +_misc_.ClipboardLocker_swigregister(ClipboardLockerPtr) TheClipboard = cvar.TheClipboard #--------------------------------------------------------------------------- @@ -5034,11 +5034,11 @@ class VideoMode(object): A simple struct containing video mode parameters for a display """ - newobj = _misc.new_VideoMode(*args, **kwargs) + newobj = _misc_.new_VideoMode(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_misc.delete_VideoMode): + def __del__(self, destroy=_misc_.delete_VideoMode): """__del__(self)""" try: if self.thisown: destroy(self) @@ -5052,7 +5052,7 @@ class VideoMode(object): all non zero fields of the other mode have the same value in this one (except for refresh which is allowed to have a greater value) """ - return _misc.VideoMode_Matches(*args, **kwargs) + return _misc_.VideoMode_Matches(*args, **kwargs) def GetWidth(*args, **kwargs): """ @@ -5061,7 +5061,7 @@ class VideoMode(object): Returns the screen width in pixels (e.g. 640*480), 0 means unspecified """ - return _misc.VideoMode_GetWidth(*args, **kwargs) + return _misc_.VideoMode_GetWidth(*args, **kwargs) def GetHeight(*args, **kwargs): """ @@ -5070,7 +5070,7 @@ class VideoMode(object): Returns the screen width in pixels (e.g. 640*480), 0 means unspecified """ - return _misc.VideoMode_GetHeight(*args, **kwargs) + return _misc_.VideoMode_GetHeight(*args, **kwargs) def GetDepth(*args, **kwargs): """ @@ -5079,7 +5079,7 @@ class VideoMode(object): Returns the screen's bits per pixel (e.g. 32), 1 is monochrome and 0 means unspecified/known """ - return _misc.VideoMode_GetDepth(*args, **kwargs) + return _misc_.VideoMode_GetDepth(*args, **kwargs) def IsOk(*args, **kwargs): """ @@ -5087,28 +5087,28 @@ class VideoMode(object): returns true if the object has been initialized """ - return _misc.VideoMode_IsOk(*args, **kwargs) + return _misc_.VideoMode_IsOk(*args, **kwargs) def __nonzero__(self): return self.IsOk() def __eq__(*args, **kwargs): """__eq__(self, VideoMode other) -> bool""" - return _misc.VideoMode___eq__(*args, **kwargs) + return _misc_.VideoMode___eq__(*args, **kwargs) def __ne__(*args, **kwargs): """__ne__(self, VideoMode other) -> bool""" - return _misc.VideoMode___ne__(*args, **kwargs) + return _misc_.VideoMode___ne__(*args, **kwargs) - w = property(_misc.VideoMode_w_get, _misc.VideoMode_w_set) - h = property(_misc.VideoMode_h_get, _misc.VideoMode_h_set) - bpp = property(_misc.VideoMode_bpp_get, _misc.VideoMode_bpp_set) - refresh = property(_misc.VideoMode_refresh_get, _misc.VideoMode_refresh_set) + w = property(_misc_.VideoMode_w_get, _misc_.VideoMode_w_set) + h = property(_misc_.VideoMode_h_get, _misc_.VideoMode_h_set) + bpp = property(_misc_.VideoMode_bpp_get, _misc_.VideoMode_bpp_set) + refresh = property(_misc_.VideoMode_refresh_get, _misc_.VideoMode_refresh_set) class VideoModePtr(VideoMode): def __init__(self, this): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = VideoMode -_misc.VideoMode_swigregister(VideoModePtr) +_misc_.VideoMode_swigregister(VideoModePtr) class Display(object): """Represents a display/monitor attached to the system""" @@ -5122,11 +5122,11 @@ class Display(object): displays are numbered from 0 to GetCount() - 1, 0 is always the primary display and the only one which is always supported """ - newobj = _misc.new_Display(*args, **kwargs) + newobj = _misc_.new_Display(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_misc.delete_Display): + def __del__(self, destroy=_misc_.delete_Display): """__del__(self)""" try: if self.thisown: destroy(self) @@ -5138,7 +5138,7 @@ class Display(object): Return the number of available displays. """ - return _misc.Display_GetCount(*args, **kwargs) + return _misc_.Display_GetCount(*args, **kwargs) GetCount = staticmethod(GetCount) def GetFromPoint(*args, **kwargs): @@ -5148,7 +5148,7 @@ class Display(object): Find the display where the given point lies, return wx.NOT_FOUND if it doesn't belong to any display """ - return _misc.Display_GetFromPoint(*args, **kwargs) + return _misc_.Display_GetFromPoint(*args, **kwargs) GetFromPoint = staticmethod(GetFromPoint) def GetFromWindow(*args, **kwargs): @@ -5158,7 +5158,7 @@ class Display(object): Find the display where the given window lies, return wx.NOT_FOUND if it is not shown at all. """ - return _misc.Display_GetFromWindow(*args, **kwargs) + return _misc_.Display_GetFromWindow(*args, **kwargs) GetFromWindow = staticmethod(GetFromWindow) def IsOk(*args, **kwargs): @@ -5167,7 +5167,7 @@ class Display(object): Return true if the object was initialized successfully """ - return _misc.Display_IsOk(*args, **kwargs) + return _misc_.Display_IsOk(*args, **kwargs) def __nonzero__(self): return self.IsOk() def GetGeometry(*args, **kwargs): @@ -5177,7 +5177,7 @@ class Display(object): Returns the bounding rectangle of the display whose index was passed to the constructor. """ - return _misc.Display_GetGeometry(*args, **kwargs) + return _misc_.Display_GetGeometry(*args, **kwargs) def GetName(*args, **kwargs): """ @@ -5185,7 +5185,7 @@ class Display(object): Returns the display's name. A name is not available on all platforms. """ - return _misc.Display_GetName(*args, **kwargs) + return _misc_.Display_GetName(*args, **kwargs) def IsPrimary(*args, **kwargs): """ @@ -5194,7 +5194,7 @@ class Display(object): Returns true if the display is the primary display. The primary display is the one whose index is 0. """ - return _misc.Display_IsPrimary(*args, **kwargs) + return _misc_.Display_IsPrimary(*args, **kwargs) def GetModes(*args, **kwargs): """ @@ -5209,7 +5209,7 @@ class Display(object): argument if this function is not supported at all on this platform. """ - return _misc.Display_GetModes(*args, **kwargs) + return _misc_.Display_GetModes(*args, **kwargs) def GetCurrentMode(*args, **kwargs): """ @@ -5217,7 +5217,7 @@ class Display(object): Get the current video mode. """ - return _misc.Display_GetCurrentMode(*args, **kwargs) + return _misc_.Display_GetCurrentMode(*args, **kwargs) def ChangeMode(*args, **kwargs): """ @@ -5225,7 +5225,7 @@ class Display(object): Change current mode, return true if succeeded, false otherwise """ - return _misc.Display_ChangeMode(*args, **kwargs) + return _misc_.Display_ChangeMode(*args, **kwargs) def ResetMode(*args, **kwargs): """ @@ -5233,7 +5233,7 @@ class Display(object): Restore the default video mode (just a more readable synonym) """ - return _misc.Display_ResetMode(*args, **kwargs) + return _misc_.Display_ResetMode(*args, **kwargs) class DisplayPtr(Display): @@ -5241,7 +5241,7 @@ class DisplayPtr(Display): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = Display -_misc.Display_swigregister(DisplayPtr) +_misc_.Display_swigregister(DisplayPtr) DefaultVideoMode = cvar.DefaultVideoMode def Display_GetCount(*args, **kwargs): @@ -5250,7 +5250,7 @@ def Display_GetCount(*args, **kwargs): Return the number of available displays. """ - return _misc.Display_GetCount(*args, **kwargs) + return _misc_.Display_GetCount(*args, **kwargs) def Display_GetFromPoint(*args, **kwargs): """ @@ -5259,7 +5259,7 @@ def Display_GetFromPoint(*args, **kwargs): Find the display where the given point lies, return wx.NOT_FOUND if it doesn't belong to any display """ - return _misc.Display_GetFromPoint(*args, **kwargs) + return _misc_.Display_GetFromPoint(*args, **kwargs) def Display_GetFromWindow(*args, **kwargs): """ @@ -5268,6 +5268,6 @@ def Display_GetFromWindow(*args, **kwargs): Find the display where the given window lies, return wx.NOT_FOUND if it is not shown at all. """ - return _misc.Display_GetFromWindow(*args, **kwargs) + return _misc_.Display_GetFromWindow(*args, **kwargs) diff --git a/wxPython/src/gtk/misc_wrap.cpp b/wxPython/src/gtk/_misc_wrap.cpp similarity index 99% rename from wxPython/src/gtk/misc_wrap.cpp rename to wxPython/src/gtk/_misc_wrap.cpp index aed213da5e..8332ea7723 100644 --- a/wxPython/src/gtk/misc_wrap.cpp +++ b/wxPython/src/gtk/_misc_wrap.cpp @@ -298,11 +298,11 @@ static swig_type_info *swig_types[87]; /*----------------------------------------------- - @(target):= _misc.so + @(target):= _misc_.so ------------------------------------------------*/ -#define SWIG_init init_misc +#define SWIG_init init_misc_ -#define SWIG_name "_misc" +#define SWIG_name "_misc_" /* Auxiliar swig macros */ diff --git a/wxPython/src/gtk/windows.py b/wxPython/src/gtk/_windows.py similarity index 70% rename from wxPython/src/gtk/windows.py rename to wxPython/src/gtk/_windows.py index 3d2a606319..36c9400e5b 100644 --- a/wxPython/src/gtk/windows.py +++ b/wxPython/src/gtk/_windows.py @@ -1,14 +1,14 @@ # This file was created automatically by SWIG. # Don't modify this file, modify the SWIG interface instead. -import _windows +import _windows_ -import core -wx = core +import _core +wx = _core __docfilter__ = wx.__docfilter__ #--------------------------------------------------------------------------- -class Panel(core.Window): +class Panel(_core.Window): def __repr__(self): return "<%s.%s; proxy of C++ wxPanel instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -17,7 +17,7 @@ class Panel(core.Window): Size size=DefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, String name=PanelNameStr) -> Panel """ - newobj = _windows.new_Panel(*args, **kwargs) + newobj = _windows_.new_Panel(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -31,7 +31,7 @@ class Panel(core.Window): Create the GUI part of the Window for 2-phase creation mode. """ - return _windows.Panel_Create(*args, **kwargs) + return _windows_.Panel_Create(*args, **kwargs) def InitDialog(*args, **kwargs): """ @@ -40,7 +40,7 @@ class Panel(core.Window): Sends an EVT_INIT_DIALOG event, whose handler usually transfers data to the dialog via validators. """ - return _windows.Panel_InitDialog(*args, **kwargs) + return _windows_.Panel_InitDialog(*args, **kwargs) class PanelPtr(Panel): @@ -48,11 +48,11 @@ class PanelPtr(Panel): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = Panel -_windows.Panel_swigregister(PanelPtr) +_windows_.Panel_swigregister(PanelPtr) def PrePanel(*args, **kwargs): """PrePanel() -> Panel""" - val = _windows.new_PrePanel(*args, **kwargs) + val = _windows_.new_PrePanel(*args, **kwargs) val.thisown = 1 return val @@ -67,7 +67,7 @@ class ScrolledWindow(Panel): Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL, String name=PanelNameStr) -> ScrolledWindow """ - newobj = _windows.new_ScrolledWindow(*args, **kwargs) + newobj = _windows_.new_ScrolledWindow(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -81,30 +81,30 @@ class ScrolledWindow(Panel): Create the GUI part of the Window for 2-phase creation mode. """ - return _windows.ScrolledWindow_Create(*args, **kwargs) + return _windows_.ScrolledWindow_Create(*args, **kwargs) def SetScrollbars(*args, **kwargs): """ SetScrollbars(self, int pixelsPerUnitX, int pixelsPerUnitY, int noUnitsX, int noUnitsY, int xPos=0, int yPos=0, bool noRefresh=False) """ - return _windows.ScrolledWindow_SetScrollbars(*args, **kwargs) + return _windows_.ScrolledWindow_SetScrollbars(*args, **kwargs) def Scroll(*args, **kwargs): """Scroll(self, int x, int y)""" - return _windows.ScrolledWindow_Scroll(*args, **kwargs) + return _windows_.ScrolledWindow_Scroll(*args, **kwargs) def GetScrollPageSize(*args, **kwargs): """GetScrollPageSize(self, int orient) -> int""" - return _windows.ScrolledWindow_GetScrollPageSize(*args, **kwargs) + return _windows_.ScrolledWindow_GetScrollPageSize(*args, **kwargs) def SetScrollPageSize(*args, **kwargs): """SetScrollPageSize(self, int orient, int pageSize)""" - return _windows.ScrolledWindow_SetScrollPageSize(*args, **kwargs) + return _windows_.ScrolledWindow_SetScrollPageSize(*args, **kwargs) def SetScrollRate(*args, **kwargs): """SetScrollRate(self, int xstep, int ystep)""" - return _windows.ScrolledWindow_SetScrollRate(*args, **kwargs) + return _windows_.ScrolledWindow_SetScrollRate(*args, **kwargs) def GetScrollPixelsPerUnit(*args, **kwargs): """ @@ -112,11 +112,11 @@ class ScrolledWindow(Panel): Get the size of one logical unit in physical units. """ - return _windows.ScrolledWindow_GetScrollPixelsPerUnit(*args, **kwargs) + return _windows_.ScrolledWindow_GetScrollPixelsPerUnit(*args, **kwargs) def EnableScrolling(*args, **kwargs): """EnableScrolling(self, bool x_scrolling, bool y_scrolling)""" - return _windows.ScrolledWindow_EnableScrolling(*args, **kwargs) + return _windows_.ScrolledWindow_EnableScrolling(*args, **kwargs) def GetViewStart(*args, **kwargs): """ @@ -124,19 +124,19 @@ class ScrolledWindow(Panel): Get the view start """ - return _windows.ScrolledWindow_GetViewStart(*args, **kwargs) + return _windows_.ScrolledWindow_GetViewStart(*args, **kwargs) def SetScale(*args, **kwargs): """SetScale(self, double xs, double ys)""" - return _windows.ScrolledWindow_SetScale(*args, **kwargs) + return _windows_.ScrolledWindow_SetScale(*args, **kwargs) def GetScaleX(*args, **kwargs): """GetScaleX(self) -> double""" - return _windows.ScrolledWindow_GetScaleX(*args, **kwargs) + return _windows_.ScrolledWindow_GetScaleX(*args, **kwargs) def GetScaleY(*args, **kwargs): """GetScaleY(self) -> double""" - return _windows.ScrolledWindow_GetScaleY(*args, **kwargs) + return _windows_.ScrolledWindow_GetScaleY(*args, **kwargs) def CalcScrolledPosition(*args): """ @@ -145,7 +145,7 @@ class ScrolledWindow(Panel): Translate between scrolled and unscrolled coordinates. """ - return _windows.ScrolledWindow_CalcScrolledPosition(*args) + return _windows_.ScrolledWindow_CalcScrolledPosition(*args) def CalcUnscrolledPosition(*args): """ @@ -154,23 +154,23 @@ class ScrolledWindow(Panel): Translate between scrolled and unscrolled coordinates. """ - return _windows.ScrolledWindow_CalcUnscrolledPosition(*args) + return _windows_.ScrolledWindow_CalcUnscrolledPosition(*args) def AdjustScrollbars(*args, **kwargs): """AdjustScrollbars(self)""" - return _windows.ScrolledWindow_AdjustScrollbars(*args, **kwargs) + return _windows_.ScrolledWindow_AdjustScrollbars(*args, **kwargs) def CalcScrollInc(*args, **kwargs): """CalcScrollInc(self, ScrollWinEvent event) -> int""" - return _windows.ScrolledWindow_CalcScrollInc(*args, **kwargs) + return _windows_.ScrolledWindow_CalcScrollInc(*args, **kwargs) def SetTargetWindow(*args, **kwargs): """SetTargetWindow(self, Window target)""" - return _windows.ScrolledWindow_SetTargetWindow(*args, **kwargs) + return _windows_.ScrolledWindow_SetTargetWindow(*args, **kwargs) def GetTargetWindow(*args, **kwargs): """GetTargetWindow(self) -> Window""" - return _windows.ScrolledWindow_GetTargetWindow(*args, **kwargs) + return _windows_.ScrolledWindow_GetTargetWindow(*args, **kwargs) class ScrolledWindowPtr(ScrolledWindow): @@ -178,91 +178,91 @@ class ScrolledWindowPtr(ScrolledWindow): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = ScrolledWindow -_windows.ScrolledWindow_swigregister(ScrolledWindowPtr) +_windows_.ScrolledWindow_swigregister(ScrolledWindowPtr) def PreScrolledWindow(*args, **kwargs): """PreScrolledWindow() -> ScrolledWindow""" - val = _windows.new_PreScrolledWindow(*args, **kwargs) + val = _windows_.new_PreScrolledWindow(*args, **kwargs) val.thisown = 1 return val #--------------------------------------------------------------------------- -STAY_ON_TOP = _windows.STAY_ON_TOP -ICONIZE = _windows.ICONIZE -MINIMIZE = _windows.MINIMIZE -MAXIMIZE = _windows.MAXIMIZE -CLOSE_BOX = _windows.CLOSE_BOX -THICK_FRAME = _windows.THICK_FRAME -SYSTEM_MENU = _windows.SYSTEM_MENU -MINIMIZE_BOX = _windows.MINIMIZE_BOX -MAXIMIZE_BOX = _windows.MAXIMIZE_BOX -TINY_CAPTION_HORIZ = _windows.TINY_CAPTION_HORIZ -TINY_CAPTION_VERT = _windows.TINY_CAPTION_VERT -RESIZE_BOX = _windows.RESIZE_BOX -RESIZE_BORDER = _windows.RESIZE_BORDER -DIALOG_NO_PARENT = _windows.DIALOG_NO_PARENT -DEFAULT_FRAME_STYLE = _windows.DEFAULT_FRAME_STYLE -DEFAULT_DIALOG_STYLE = _windows.DEFAULT_DIALOG_STYLE -FRAME_TOOL_WINDOW = _windows.FRAME_TOOL_WINDOW -FRAME_FLOAT_ON_PARENT = _windows.FRAME_FLOAT_ON_PARENT -FRAME_NO_WINDOW_MENU = _windows.FRAME_NO_WINDOW_MENU -FRAME_NO_TASKBAR = _windows.FRAME_NO_TASKBAR -FRAME_SHAPED = _windows.FRAME_SHAPED -DIALOG_MODAL = _windows.DIALOG_MODAL -DIALOG_MODELESS = _windows.DIALOG_MODELESS -USER_COLOURS = _windows.USER_COLOURS -NO_3D = _windows.NO_3D -FULLSCREEN_NOMENUBAR = _windows.FULLSCREEN_NOMENUBAR -FULLSCREEN_NOTOOLBAR = _windows.FULLSCREEN_NOTOOLBAR -FULLSCREEN_NOSTATUSBAR = _windows.FULLSCREEN_NOSTATUSBAR -FULLSCREEN_NOBORDER = _windows.FULLSCREEN_NOBORDER -FULLSCREEN_NOCAPTION = _windows.FULLSCREEN_NOCAPTION -FULLSCREEN_ALL = _windows.FULLSCREEN_ALL -TOPLEVEL_EX_DIALOG = _windows.TOPLEVEL_EX_DIALOG -class TopLevelWindow(core.Window): +STAY_ON_TOP = _windows_.STAY_ON_TOP +ICONIZE = _windows_.ICONIZE +MINIMIZE = _windows_.MINIMIZE +MAXIMIZE = _windows_.MAXIMIZE +CLOSE_BOX = _windows_.CLOSE_BOX +THICK_FRAME = _windows_.THICK_FRAME +SYSTEM_MENU = _windows_.SYSTEM_MENU +MINIMIZE_BOX = _windows_.MINIMIZE_BOX +MAXIMIZE_BOX = _windows_.MAXIMIZE_BOX +TINY_CAPTION_HORIZ = _windows_.TINY_CAPTION_HORIZ +TINY_CAPTION_VERT = _windows_.TINY_CAPTION_VERT +RESIZE_BOX = _windows_.RESIZE_BOX +RESIZE_BORDER = _windows_.RESIZE_BORDER +DIALOG_NO_PARENT = _windows_.DIALOG_NO_PARENT +DEFAULT_FRAME_STYLE = _windows_.DEFAULT_FRAME_STYLE +DEFAULT_DIALOG_STYLE = _windows_.DEFAULT_DIALOG_STYLE +FRAME_TOOL_WINDOW = _windows_.FRAME_TOOL_WINDOW +FRAME_FLOAT_ON_PARENT = _windows_.FRAME_FLOAT_ON_PARENT +FRAME_NO_WINDOW_MENU = _windows_.FRAME_NO_WINDOW_MENU +FRAME_NO_TASKBAR = _windows_.FRAME_NO_TASKBAR +FRAME_SHAPED = _windows_.FRAME_SHAPED +DIALOG_MODAL = _windows_.DIALOG_MODAL +DIALOG_MODELESS = _windows_.DIALOG_MODELESS +USER_COLOURS = _windows_.USER_COLOURS +NO_3D = _windows_.NO_3D +FULLSCREEN_NOMENUBAR = _windows_.FULLSCREEN_NOMENUBAR +FULLSCREEN_NOTOOLBAR = _windows_.FULLSCREEN_NOTOOLBAR +FULLSCREEN_NOSTATUSBAR = _windows_.FULLSCREEN_NOSTATUSBAR +FULLSCREEN_NOBORDER = _windows_.FULLSCREEN_NOBORDER +FULLSCREEN_NOCAPTION = _windows_.FULLSCREEN_NOCAPTION +FULLSCREEN_ALL = _windows_.FULLSCREEN_ALL +TOPLEVEL_EX_DIALOG = _windows_.TOPLEVEL_EX_DIALOG +class TopLevelWindow(_core.Window): def __init__(self): raise RuntimeError, "No constructor defined" def __repr__(self): return "<%s.%s; proxy of C++ wxTopLevelWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def Maximize(*args, **kwargs): """Maximize(self, bool maximize=True)""" - return _windows.TopLevelWindow_Maximize(*args, **kwargs) + return _windows_.TopLevelWindow_Maximize(*args, **kwargs) def Restore(*args, **kwargs): """Restore(self)""" - return _windows.TopLevelWindow_Restore(*args, **kwargs) + return _windows_.TopLevelWindow_Restore(*args, **kwargs) def Iconize(*args, **kwargs): """Iconize(self, bool iconize=True)""" - return _windows.TopLevelWindow_Iconize(*args, **kwargs) + return _windows_.TopLevelWindow_Iconize(*args, **kwargs) def IsMaximized(*args, **kwargs): """IsMaximized(self) -> bool""" - return _windows.TopLevelWindow_IsMaximized(*args, **kwargs) + return _windows_.TopLevelWindow_IsMaximized(*args, **kwargs) def IsIconized(*args, **kwargs): """IsIconized(self) -> bool""" - return _windows.TopLevelWindow_IsIconized(*args, **kwargs) + return _windows_.TopLevelWindow_IsIconized(*args, **kwargs) def GetIcon(*args, **kwargs): """GetIcon(self) -> Icon""" - return _windows.TopLevelWindow_GetIcon(*args, **kwargs) + return _windows_.TopLevelWindow_GetIcon(*args, **kwargs) def SetIcon(*args, **kwargs): """SetIcon(self, Icon icon)""" - return _windows.TopLevelWindow_SetIcon(*args, **kwargs) + return _windows_.TopLevelWindow_SetIcon(*args, **kwargs) def SetIcons(*args, **kwargs): """SetIcons(self, wxIconBundle icons)""" - return _windows.TopLevelWindow_SetIcons(*args, **kwargs) + return _windows_.TopLevelWindow_SetIcons(*args, **kwargs) def ShowFullScreen(*args, **kwargs): """ShowFullScreen(self, bool show, long style=FULLSCREEN_ALL) -> bool""" - return _windows.TopLevelWindow_ShowFullScreen(*args, **kwargs) + return _windows_.TopLevelWindow_ShowFullScreen(*args, **kwargs) def IsFullScreen(*args, **kwargs): """IsFullScreen(self) -> bool""" - return _windows.TopLevelWindow_IsFullScreen(*args, **kwargs) + return _windows_.TopLevelWindow_IsFullScreen(*args, **kwargs) def SetTitle(*args, **kwargs): """ @@ -270,7 +270,7 @@ class TopLevelWindow(core.Window): Sets the window's title. Applicable only to frames and dialogs. """ - return _windows.TopLevelWindow_SetTitle(*args, **kwargs) + return _windows_.TopLevelWindow_SetTitle(*args, **kwargs) def GetTitle(*args, **kwargs): """ @@ -278,11 +278,11 @@ class TopLevelWindow(core.Window): Gets the window's title. Applicable only to frames and dialogs. """ - return _windows.TopLevelWindow_GetTitle(*args, **kwargs) + return _windows_.TopLevelWindow_GetTitle(*args, **kwargs) def SetShape(*args, **kwargs): """SetShape(self, Region region) -> bool""" - return _windows.TopLevelWindow_SetShape(*args, **kwargs) + return _windows_.TopLevelWindow_SetShape(*args, **kwargs) class TopLevelWindowPtr(TopLevelWindow): @@ -290,8 +290,8 @@ class TopLevelWindowPtr(TopLevelWindow): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = TopLevelWindow -_windows.TopLevelWindow_swigregister(TopLevelWindowPtr) -cvar = _windows.cvar +_windows_.TopLevelWindow_swigregister(TopLevelWindowPtr) +cvar = _windows_.cvar FrameNameStr = cvar.FrameNameStr DialogNameStr = cvar.DialogNameStr StatusLineNameStr = cvar.StatusLineNameStr @@ -308,7 +308,7 @@ class Frame(TopLevelWindow): Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> Frame """ - newobj = _windows.new_Frame(*args, **kwargs) + newobj = _windows_.new_Frame(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -320,7 +320,7 @@ class Frame(TopLevelWindow): Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool """ - return _windows.Frame_Create(*args, **kwargs) + return _windows_.Frame_Create(*args, **kwargs) def GetClientAreaOrigin(*args, **kwargs): """ @@ -330,23 +330,23 @@ class Frame(TopLevelWindow): window's top left corner (the client area may be shifted because of the borders, scrollbars, other decorations...) """ - return _windows.Frame_GetClientAreaOrigin(*args, **kwargs) + return _windows_.Frame_GetClientAreaOrigin(*args, **kwargs) def SendSizeEvent(*args, **kwargs): """SendSizeEvent(self)""" - return _windows.Frame_SendSizeEvent(*args, **kwargs) + return _windows_.Frame_SendSizeEvent(*args, **kwargs) def SetMenuBar(*args, **kwargs): """SetMenuBar(self, MenuBar menubar)""" - return _windows.Frame_SetMenuBar(*args, **kwargs) + return _windows_.Frame_SetMenuBar(*args, **kwargs) def GetMenuBar(*args, **kwargs): """GetMenuBar(self) -> MenuBar""" - return _windows.Frame_GetMenuBar(*args, **kwargs) + return _windows_.Frame_GetMenuBar(*args, **kwargs) def ProcessCommand(*args, **kwargs): """ProcessCommand(self, int winid) -> bool""" - return _windows.Frame_ProcessCommand(*args, **kwargs) + return _windows_.Frame_ProcessCommand(*args, **kwargs) Command = ProcessCommand def CreateStatusBar(*args, **kwargs): @@ -354,59 +354,59 @@ class Frame(TopLevelWindow): CreateStatusBar(self, int number=1, long style=wxST_SIZEGRIP|wxFULL_REPAINT_ON_RESIZE, int winid=0, String name=StatusLineNameStr) -> StatusBar """ - return _windows.Frame_CreateStatusBar(*args, **kwargs) + return _windows_.Frame_CreateStatusBar(*args, **kwargs) def GetStatusBar(*args, **kwargs): """GetStatusBar(self) -> StatusBar""" - return _windows.Frame_GetStatusBar(*args, **kwargs) + return _windows_.Frame_GetStatusBar(*args, **kwargs) def SetStatusBar(*args, **kwargs): """SetStatusBar(self, StatusBar statBar)""" - return _windows.Frame_SetStatusBar(*args, **kwargs) + return _windows_.Frame_SetStatusBar(*args, **kwargs) def SetStatusText(*args, **kwargs): """SetStatusText(self, String text, int number=0)""" - return _windows.Frame_SetStatusText(*args, **kwargs) + return _windows_.Frame_SetStatusText(*args, **kwargs) def SetStatusWidths(*args, **kwargs): """SetStatusWidths(self, int widths, int widths_field)""" - return _windows.Frame_SetStatusWidths(*args, **kwargs) + return _windows_.Frame_SetStatusWidths(*args, **kwargs) def PushStatusText(*args, **kwargs): """PushStatusText(self, String text, int number=0)""" - return _windows.Frame_PushStatusText(*args, **kwargs) + return _windows_.Frame_PushStatusText(*args, **kwargs) def PopStatusText(*args, **kwargs): """PopStatusText(self, int number=0)""" - return _windows.Frame_PopStatusText(*args, **kwargs) + return _windows_.Frame_PopStatusText(*args, **kwargs) def SetStatusBarPane(*args, **kwargs): """SetStatusBarPane(self, int n)""" - return _windows.Frame_SetStatusBarPane(*args, **kwargs) + return _windows_.Frame_SetStatusBarPane(*args, **kwargs) def GetStatusBarPane(*args, **kwargs): """GetStatusBarPane(self) -> int""" - return _windows.Frame_GetStatusBarPane(*args, **kwargs) + return _windows_.Frame_GetStatusBarPane(*args, **kwargs) def CreateToolBar(*args, **kwargs): """CreateToolBar(self, long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar""" - return _windows.Frame_CreateToolBar(*args, **kwargs) + return _windows_.Frame_CreateToolBar(*args, **kwargs) def GetToolBar(*args, **kwargs): """GetToolBar(self) -> wxToolBar""" - return _windows.Frame_GetToolBar(*args, **kwargs) + return _windows_.Frame_GetToolBar(*args, **kwargs) def SetToolBar(*args, **kwargs): """SetToolBar(self, wxToolBar toolbar)""" - return _windows.Frame_SetToolBar(*args, **kwargs) + return _windows_.Frame_SetToolBar(*args, **kwargs) def DoGiveHelp(*args, **kwargs): """DoGiveHelp(self, String text, bool show)""" - return _windows.Frame_DoGiveHelp(*args, **kwargs) + return _windows_.Frame_DoGiveHelp(*args, **kwargs) def DoMenuUpdates(*args, **kwargs): """DoMenuUpdates(self, Menu menu=None)""" - return _windows.Frame_DoMenuUpdates(*args, **kwargs) + return _windows_.Frame_DoMenuUpdates(*args, **kwargs) class FramePtr(Frame): @@ -414,11 +414,11 @@ class FramePtr(Frame): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = Frame -_windows.Frame_swigregister(FramePtr) +_windows_.Frame_swigregister(FramePtr) def PreFrame(*args, **kwargs): """PreFrame() -> Frame""" - val = _windows.new_PreFrame(*args, **kwargs) + val = _windows_.new_PreFrame(*args, **kwargs) val.thisown = 1 return val @@ -433,7 +433,7 @@ class Dialog(TopLevelWindow): Size size=DefaultSize, long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> Dialog """ - newobj = _windows.new_Dialog(*args, **kwargs) + newobj = _windows_.new_Dialog(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -445,35 +445,35 @@ class Dialog(TopLevelWindow): Size size=DefaultSize, long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> bool """ - return _windows.Dialog_Create(*args, **kwargs) + return _windows_.Dialog_Create(*args, **kwargs) def SetReturnCode(*args, **kwargs): """SetReturnCode(self, int returnCode)""" - return _windows.Dialog_SetReturnCode(*args, **kwargs) + return _windows_.Dialog_SetReturnCode(*args, **kwargs) def GetReturnCode(*args, **kwargs): """GetReturnCode(self) -> int""" - return _windows.Dialog_GetReturnCode(*args, **kwargs) + return _windows_.Dialog_GetReturnCode(*args, **kwargs) def CreateTextSizer(*args, **kwargs): """CreateTextSizer(self, String message) -> Sizer""" - return _windows.Dialog_CreateTextSizer(*args, **kwargs) + return _windows_.Dialog_CreateTextSizer(*args, **kwargs) def CreateButtonSizer(*args, **kwargs): """CreateButtonSizer(self, long flags) -> Sizer""" - return _windows.Dialog_CreateButtonSizer(*args, **kwargs) + return _windows_.Dialog_CreateButtonSizer(*args, **kwargs) def IsModal(*args, **kwargs): """IsModal(self) -> bool""" - return _windows.Dialog_IsModal(*args, **kwargs) + return _windows_.Dialog_IsModal(*args, **kwargs) def ShowModal(*args, **kwargs): """ShowModal(self) -> int""" - return _windows.Dialog_ShowModal(*args, **kwargs) + return _windows_.Dialog_ShowModal(*args, **kwargs) def EndModal(*args, **kwargs): """EndModal(self, int retCode)""" - return _windows.Dialog_EndModal(*args, **kwargs) + return _windows_.Dialog_EndModal(*args, **kwargs) class DialogPtr(Dialog): @@ -481,11 +481,11 @@ class DialogPtr(Dialog): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = Dialog -_windows.Dialog_swigregister(DialogPtr) +_windows_.Dialog_swigregister(DialogPtr) def PreDialog(*args, **kwargs): """PreDialog() -> Dialog""" - val = _windows.new_PreDialog(*args, **kwargs) + val = _windows_.new_PreDialog(*args, **kwargs) val.thisown = 1 return val @@ -500,7 +500,7 @@ class MiniFrame(Frame): Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> MiniFrame """ - newobj = _windows.new_MiniFrame(*args, **kwargs) + newobj = _windows_.new_MiniFrame(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -512,7 +512,7 @@ class MiniFrame(Frame): Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool """ - return _windows.MiniFrame_Create(*args, **kwargs) + return _windows_.MiniFrame_Create(*args, **kwargs) class MiniFramePtr(MiniFrame): @@ -520,22 +520,22 @@ class MiniFramePtr(MiniFrame): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = MiniFrame -_windows.MiniFrame_swigregister(MiniFramePtr) +_windows_.MiniFrame_swigregister(MiniFramePtr) def PreMiniFrame(*args, **kwargs): """PreMiniFrame() -> MiniFrame""" - val = _windows.new_PreMiniFrame(*args, **kwargs) + val = _windows_.new_PreMiniFrame(*args, **kwargs) val.thisown = 1 return val #--------------------------------------------------------------------------- -SPLASH_CENTRE_ON_PARENT = _windows.SPLASH_CENTRE_ON_PARENT -SPLASH_CENTRE_ON_SCREEN = _windows.SPLASH_CENTRE_ON_SCREEN -SPLASH_NO_CENTRE = _windows.SPLASH_NO_CENTRE -SPLASH_TIMEOUT = _windows.SPLASH_TIMEOUT -SPLASH_NO_TIMEOUT = _windows.SPLASH_NO_TIMEOUT -class SplashScreenWindow(core.Window): +SPLASH_CENTRE_ON_PARENT = _windows_.SPLASH_CENTRE_ON_PARENT +SPLASH_CENTRE_ON_SCREEN = _windows_.SPLASH_CENTRE_ON_SCREEN +SPLASH_NO_CENTRE = _windows_.SPLASH_NO_CENTRE +SPLASH_TIMEOUT = _windows_.SPLASH_TIMEOUT +SPLASH_NO_TIMEOUT = _windows_.SPLASH_NO_TIMEOUT +class SplashScreenWindow(_core.Window): def __repr__(self): return "<%s.%s; proxy of C++ wxSplashScreenWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -543,7 +543,7 @@ class SplashScreenWindow(core.Window): __init__(self, Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow """ - newobj = _windows.new_SplashScreenWindow(*args, **kwargs) + newobj = _windows_.new_SplashScreenWindow(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -551,11 +551,11 @@ class SplashScreenWindow(core.Window): def SetBitmap(*args, **kwargs): """SetBitmap(self, Bitmap bitmap)""" - return _windows.SplashScreenWindow_SetBitmap(*args, **kwargs) + return _windows_.SplashScreenWindow_SetBitmap(*args, **kwargs) def GetBitmap(*args, **kwargs): """GetBitmap(self) -> Bitmap""" - return _windows.SplashScreenWindow_GetBitmap(*args, **kwargs) + return _windows_.SplashScreenWindow_GetBitmap(*args, **kwargs) class SplashScreenWindowPtr(SplashScreenWindow): @@ -563,7 +563,7 @@ class SplashScreenWindowPtr(SplashScreenWindow): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = SplashScreenWindow -_windows.SplashScreenWindow_swigregister(SplashScreenWindowPtr) +_windows_.SplashScreenWindow_swigregister(SplashScreenWindowPtr) class SplashScreen(Frame): def __repr__(self): @@ -574,7 +574,7 @@ class SplashScreen(Frame): Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen """ - newobj = _windows.new_SplashScreen(*args, **kwargs) + newobj = _windows_.new_SplashScreen(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -582,15 +582,15 @@ class SplashScreen(Frame): def GetSplashStyle(*args, **kwargs): """GetSplashStyle(self) -> long""" - return _windows.SplashScreen_GetSplashStyle(*args, **kwargs) + return _windows_.SplashScreen_GetSplashStyle(*args, **kwargs) def GetSplashWindow(*args, **kwargs): """GetSplashWindow(self) -> SplashScreenWindow""" - return _windows.SplashScreen_GetSplashWindow(*args, **kwargs) + return _windows_.SplashScreen_GetSplashWindow(*args, **kwargs) def GetTimeout(*args, **kwargs): """GetTimeout(self) -> int""" - return _windows.SplashScreen_GetTimeout(*args, **kwargs) + return _windows_.SplashScreen_GetTimeout(*args, **kwargs) class SplashScreenPtr(SplashScreen): @@ -598,11 +598,11 @@ class SplashScreenPtr(SplashScreen): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = SplashScreen -_windows.SplashScreen_swigregister(SplashScreenPtr) +_windows_.SplashScreen_swigregister(SplashScreenPtr) #--------------------------------------------------------------------------- -class StatusBar(core.Window): +class StatusBar(_core.Window): def __repr__(self): return "<%s.%s; proxy of C++ wxStatusBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -610,7 +610,7 @@ class StatusBar(core.Window): __init__(self, Window parent, int id=-1, long style=wxST_SIZEGRIP|wxFULL_REPAINT_ON_RESIZE, String name=StatusLineNameStr) -> StatusBar """ - newobj = _windows.new_StatusBar(*args, **kwargs) + newobj = _windows_.new_StatusBar(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -618,51 +618,51 @@ class StatusBar(core.Window): def Create(*args, **kwargs): """Create(self, Window parent, int id, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool""" - return _windows.StatusBar_Create(*args, **kwargs) + return _windows_.StatusBar_Create(*args, **kwargs) def SetFieldsCount(*args, **kwargs): """SetFieldsCount(self, int number=1)""" - return _windows.StatusBar_SetFieldsCount(*args, **kwargs) + return _windows_.StatusBar_SetFieldsCount(*args, **kwargs) def GetFieldsCount(*args, **kwargs): """GetFieldsCount(self) -> int""" - return _windows.StatusBar_GetFieldsCount(*args, **kwargs) + return _windows_.StatusBar_GetFieldsCount(*args, **kwargs) def SetStatusText(*args, **kwargs): """SetStatusText(self, String text, int number=0)""" - return _windows.StatusBar_SetStatusText(*args, **kwargs) + return _windows_.StatusBar_SetStatusText(*args, **kwargs) def GetStatusText(*args, **kwargs): """GetStatusText(self, int number=0) -> String""" - return _windows.StatusBar_GetStatusText(*args, **kwargs) + return _windows_.StatusBar_GetStatusText(*args, **kwargs) def PushStatusText(*args, **kwargs): """PushStatusText(self, String text, int number=0)""" - return _windows.StatusBar_PushStatusText(*args, **kwargs) + return _windows_.StatusBar_PushStatusText(*args, **kwargs) def PopStatusText(*args, **kwargs): """PopStatusText(self, int number=0)""" - return _windows.StatusBar_PopStatusText(*args, **kwargs) + return _windows_.StatusBar_PopStatusText(*args, **kwargs) def SetStatusWidths(*args, **kwargs): """SetStatusWidths(self, int widths, int widths_field)""" - return _windows.StatusBar_SetStatusWidths(*args, **kwargs) + return _windows_.StatusBar_SetStatusWidths(*args, **kwargs) def GetFieldRect(*args, **kwargs): """GetFieldRect(self, int i) -> Rect""" - return _windows.StatusBar_GetFieldRect(*args, **kwargs) + return _windows_.StatusBar_GetFieldRect(*args, **kwargs) def SetMinHeight(*args, **kwargs): """SetMinHeight(self, int height)""" - return _windows.StatusBar_SetMinHeight(*args, **kwargs) + return _windows_.StatusBar_SetMinHeight(*args, **kwargs) def GetBorderX(*args, **kwargs): """GetBorderX(self) -> int""" - return _windows.StatusBar_GetBorderX(*args, **kwargs) + return _windows_.StatusBar_GetBorderX(*args, **kwargs) def GetBorderY(*args, **kwargs): """GetBorderY(self) -> int""" - return _windows.StatusBar_GetBorderY(*args, **kwargs) + return _windows_.StatusBar_GetBorderY(*args, **kwargs) class StatusBarPtr(StatusBar): @@ -670,31 +670,31 @@ class StatusBarPtr(StatusBar): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = StatusBar -_windows.StatusBar_swigregister(StatusBarPtr) +_windows_.StatusBar_swigregister(StatusBarPtr) def PreStatusBar(*args, **kwargs): """PreStatusBar() -> StatusBar""" - val = _windows.new_PreStatusBar(*args, **kwargs) + val = _windows_.new_PreStatusBar(*args, **kwargs) val.thisown = 1 return val #--------------------------------------------------------------------------- -SP_NOBORDER = _windows.SP_NOBORDER -SP_NOSASH = _windows.SP_NOSASH -SP_PERMIT_UNSPLIT = _windows.SP_PERMIT_UNSPLIT -SP_LIVE_UPDATE = _windows.SP_LIVE_UPDATE -SP_3DSASH = _windows.SP_3DSASH -SP_3DBORDER = _windows.SP_3DBORDER -SP_NO_XP_THEME = _windows.SP_NO_XP_THEME -SP_BORDER = _windows.SP_BORDER -SP_3D = _windows.SP_3D -SPLIT_HORIZONTAL = _windows.SPLIT_HORIZONTAL -SPLIT_VERTICAL = _windows.SPLIT_VERTICAL -SPLIT_DRAG_NONE = _windows.SPLIT_DRAG_NONE -SPLIT_DRAG_DRAGGING = _windows.SPLIT_DRAG_DRAGGING -SPLIT_DRAG_LEFT_DOWN = _windows.SPLIT_DRAG_LEFT_DOWN -class SplitterWindow(core.Window): +SP_NOBORDER = _windows_.SP_NOBORDER +SP_NOSASH = _windows_.SP_NOSASH +SP_PERMIT_UNSPLIT = _windows_.SP_PERMIT_UNSPLIT +SP_LIVE_UPDATE = _windows_.SP_LIVE_UPDATE +SP_3DSASH = _windows_.SP_3DSASH +SP_3DBORDER = _windows_.SP_3DBORDER +SP_NO_XP_THEME = _windows_.SP_NO_XP_THEME +SP_BORDER = _windows_.SP_BORDER +SP_3D = _windows_.SP_3D +SPLIT_HORIZONTAL = _windows_.SPLIT_HORIZONTAL +SPLIT_VERTICAL = _windows_.SPLIT_VERTICAL +SPLIT_DRAG_NONE = _windows_.SPLIT_DRAG_NONE +SPLIT_DRAG_DRAGGING = _windows_.SPLIT_DRAG_DRAGGING +SPLIT_DRAG_LEFT_DOWN = _windows_.SPLIT_DRAG_LEFT_DOWN +class SplitterWindow(_core.Window): """ wx.SplitterWindow manages up to two subwindows or panes, with an optional vertical or horizontal split which can be @@ -711,7 +711,7 @@ class SplitterWindow(core.Window): Constructor. Creates and shows a SplitterWindow. """ if kwargs.has_key('point'): kwargs['pos'] = kwargs['point'];del kwargs['point'] - newobj = _windows.new_SplitterWindow(*args, **kwargs) + newobj = _windows_.new_SplitterWindow(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -724,7 +724,7 @@ class SplitterWindow(core.Window): Create the GUI part of the SplitterWindow for the 2-phase create. """ - return _windows.SplitterWindow_Create(*args, **kwargs) + return _windows_.SplitterWindow_Create(*args, **kwargs) def GetWindow1(*args, **kwargs): """ @@ -732,7 +732,7 @@ class SplitterWindow(core.Window): Gets the only or left/top pane. """ - return _windows.SplitterWindow_GetWindow1(*args, **kwargs) + return _windows_.SplitterWindow_GetWindow1(*args, **kwargs) def GetWindow2(*args, **kwargs): """ @@ -740,7 +740,7 @@ class SplitterWindow(core.Window): Gets the right/bottom pane. """ - return _windows.SplitterWindow_GetWindow2(*args, **kwargs) + return _windows_.SplitterWindow_GetWindow2(*args, **kwargs) def SetSplitMode(*args, **kwargs): """ @@ -750,7 +750,7 @@ class SplitterWindow(core.Window): wx.SPLIT_HORIZONTAL. This only sets the internal variable; does not update the display. """ - return _windows.SplitterWindow_SetSplitMode(*args, **kwargs) + return _windows_.SplitterWindow_SetSplitMode(*args, **kwargs) def GetSplitMode(*args, **kwargs): """ @@ -758,7 +758,7 @@ class SplitterWindow(core.Window): Gets the split mode """ - return _windows.SplitterWindow_GetSplitMode(*args, **kwargs) + return _windows_.SplitterWindow_GetSplitMode(*args, **kwargs) def Initialize(*args, **kwargs): """ @@ -768,7 +768,7 @@ class SplitterWindow(core.Window): should be called if you wish to initially view only a single pane in the splitter window. """ - return _windows.SplitterWindow_Initialize(*args, **kwargs) + return _windows_.SplitterWindow_Initialize(*args, **kwargs) def SplitVertically(*args, **kwargs): """ @@ -794,7 +794,7 @@ class SplitterWindow(core.Window): time, but the application should check that the window is not currently split using IsSplit. """ - return _windows.SplitterWindow_SplitVertically(*args, **kwargs) + return _windows_.SplitterWindow_SplitVertically(*args, **kwargs) def SplitHorizontally(*args, **kwargs): """ @@ -820,7 +820,7 @@ class SplitterWindow(core.Window): time, but the application should check that the window is not currently split using IsSplit. """ - return _windows.SplitterWindow_SplitHorizontally(*args, **kwargs) + return _windows_.SplitterWindow_SplitHorizontally(*args, **kwargs) def Unsplit(*args, **kwargs): """ @@ -835,7 +835,7 @@ class SplitterWindow(core.Window): for the desired behaviour. By default, the pane being removed is only hidden. """ - return _windows.SplitterWindow_Unsplit(*args, **kwargs) + return _windows_.SplitterWindow_Unsplit(*args, **kwargs) def ReplaceWindow(*args, **kwargs): """ @@ -855,7 +855,7 @@ class SplitterWindow(core.Window): but please notice that it will not Destroy the replaced window and you may wish to do it yourself. """ - return _windows.SplitterWindow_ReplaceWindow(*args, **kwargs) + return _windows_.SplitterWindow_ReplaceWindow(*args, **kwargs) def UpdateSize(*args, **kwargs): """ @@ -872,7 +872,7 @@ class SplitterWindow(core.Window): parent window), and then call this function, before showing the top-level window. """ - return _windows.SplitterWindow_UpdateSize(*args, **kwargs) + return _windows_.SplitterWindow_UpdateSize(*args, **kwargs) def IsSplit(*args, **kwargs): """ @@ -880,7 +880,7 @@ class SplitterWindow(core.Window): Is the window split? """ - return _windows.SplitterWindow_IsSplit(*args, **kwargs) + return _windows_.SplitterWindow_IsSplit(*args, **kwargs) def SetSashSize(*args, **kwargs): """ @@ -888,7 +888,7 @@ class SplitterWindow(core.Window): Sets the sash size """ - return _windows.SplitterWindow_SetSashSize(*args, **kwargs) + return _windows_.SplitterWindow_SetSashSize(*args, **kwargs) def SetBorderSize(*args, **kwargs): """ @@ -896,7 +896,7 @@ class SplitterWindow(core.Window): Sets the border size """ - return _windows.SplitterWindow_SetBorderSize(*args, **kwargs) + return _windows_.SplitterWindow_SetBorderSize(*args, **kwargs) def GetSashSize(*args, **kwargs): """ @@ -904,7 +904,7 @@ class SplitterWindow(core.Window): Gets the sash size """ - return _windows.SplitterWindow_GetSashSize(*args, **kwargs) + return _windows_.SplitterWindow_GetSashSize(*args, **kwargs) def GetBorderSize(*args, **kwargs): """ @@ -912,7 +912,7 @@ class SplitterWindow(core.Window): Gets the border size """ - return _windows.SplitterWindow_GetBorderSize(*args, **kwargs) + return _windows_.SplitterWindow_GetBorderSize(*args, **kwargs) def SetSashPosition(*args, **kwargs): """ @@ -921,7 +921,7 @@ class SplitterWindow(core.Window): Sets the sash position, in pixels. If redraw is Ttrue then the panes are resized and the sash and border are redrawn. """ - return _windows.SplitterWindow_SetSashPosition(*args, **kwargs) + return _windows_.SplitterWindow_SetSashPosition(*args, **kwargs) def GetSashPosition(*args, **kwargs): """ @@ -929,7 +929,7 @@ class SplitterWindow(core.Window): Returns the surrent sash position. """ - return _windows.SplitterWindow_GetSashPosition(*args, **kwargs) + return _windows_.SplitterWindow_GetSashPosition(*args, **kwargs) def SetMinimumPaneSize(*args, **kwargs): """ @@ -945,7 +945,7 @@ class SplitterWindow(core.Window): used when a splitter window is created, the window may be unsplit even if minimum size is non-zero. """ - return _windows.SplitterWindow_SetMinimumPaneSize(*args, **kwargs) + return _windows_.SplitterWindow_SetMinimumPaneSize(*args, **kwargs) def GetMinimumPaneSize(*args, **kwargs): """ @@ -953,7 +953,7 @@ class SplitterWindow(core.Window): Gets the minimum pane size in pixels. """ - return _windows.SplitterWindow_GetMinimumPaneSize(*args, **kwargs) + return _windows_.SplitterWindow_GetMinimumPaneSize(*args, **kwargs) def SashHitTest(*args, **kwargs): """ @@ -961,7 +961,7 @@ class SplitterWindow(core.Window): Tests for x, y over the sash """ - return _windows.SplitterWindow_SashHitTest(*args, **kwargs) + return _windows_.SplitterWindow_SashHitTest(*args, **kwargs) def SizeWindows(*args, **kwargs): """ @@ -969,15 +969,15 @@ class SplitterWindow(core.Window): Resizes subwindows """ - return _windows.SplitterWindow_SizeWindows(*args, **kwargs) + return _windows_.SplitterWindow_SizeWindows(*args, **kwargs) def SetNeedUpdating(*args, **kwargs): """SetNeedUpdating(self, bool needUpdating)""" - return _windows.SplitterWindow_SetNeedUpdating(*args, **kwargs) + return _windows_.SplitterWindow_SetNeedUpdating(*args, **kwargs) def GetNeedUpdating(*args, **kwargs): """GetNeedUpdating(self) -> bool""" - return _windows.SplitterWindow_GetNeedUpdating(*args, **kwargs) + return _windows_.SplitterWindow_GetNeedUpdating(*args, **kwargs) class SplitterWindowPtr(SplitterWindow): @@ -985,7 +985,7 @@ class SplitterWindowPtr(SplitterWindow): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = SplitterWindow -_windows.SplitterWindow_swigregister(SplitterWindowPtr) +_windows_.SplitterWindow_swigregister(SplitterWindowPtr) SplitterNameStr = cvar.SplitterNameStr def PreSplitterWindow(*args, **kwargs): @@ -994,11 +994,11 @@ def PreSplitterWindow(*args, **kwargs): Precreate a SplitterWindow for 2-phase creation. """ - val = _windows.new_PreSplitterWindow(*args, **kwargs) + val = _windows_.new_PreSplitterWindow(*args, **kwargs) val.thisown = 1 return val -class SplitterEvent(core.NotifyEvent): +class SplitterEvent(_core.NotifyEvent): """This class represents the events generated by a splitter control.""" def __repr__(self): return "<%s.%s; proxy of C++ wxSplitterEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) @@ -1008,7 +1008,7 @@ class SplitterEvent(core.NotifyEvent): This class represents the events generated by a splitter control. """ - newobj = _windows.new_SplitterEvent(*args, **kwargs) + newobj = _windows_.new_SplitterEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -1025,7 +1025,7 @@ class SplitterEvent(core.NotifyEvent): that will actually take place. Set to -1 from the event handler code to prevent repositioning. """ - return _windows.SplitterEvent_SetSashPosition(*args, **kwargs) + return _windows_.SplitterEvent_SetSashPosition(*args, **kwargs) def GetSashPosition(*args, **kwargs): """ @@ -1035,7 +1035,7 @@ class SplitterEvent(core.NotifyEvent): EVT_SPLITTER_SASH_POS_CHANGING and EVT_SPLITTER_SASH_POS_CHANGED events. """ - return _windows.SplitterEvent_GetSashPosition(*args, **kwargs) + return _windows_.SplitterEvent_GetSashPosition(*args, **kwargs) def GetWindowBeingRemoved(*args, **kwargs): """ @@ -1044,7 +1044,7 @@ class SplitterEvent(core.NotifyEvent): Returns a pointer to the window being removed when a splitter window is unsplit. """ - return _windows.SplitterEvent_GetWindowBeingRemoved(*args, **kwargs) + return _windows_.SplitterEvent_GetWindowBeingRemoved(*args, **kwargs) def GetX(*args, **kwargs): """ @@ -1053,7 +1053,7 @@ class SplitterEvent(core.NotifyEvent): Returns the x coordinate of the double-click point in a EVT_SPLITTER_DCLICK event. """ - return _windows.SplitterEvent_GetX(*args, **kwargs) + return _windows_.SplitterEvent_GetX(*args, **kwargs) def GetY(*args, **kwargs): """ @@ -1062,7 +1062,7 @@ class SplitterEvent(core.NotifyEvent): Returns the y coordinate of the double-click point in a EVT_SPLITTER_DCLICK event. """ - return _windows.SplitterEvent_GetY(*args, **kwargs) + return _windows_.SplitterEvent_GetY(*args, **kwargs) class SplitterEventPtr(SplitterEvent): @@ -1070,12 +1070,12 @@ class SplitterEventPtr(SplitterEvent): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = SplitterEvent -_windows.SplitterEvent_swigregister(SplitterEventPtr) +_windows_.SplitterEvent_swigregister(SplitterEventPtr) -wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED = _windows.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED -wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING = _windows.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING -wxEVT_COMMAND_SPLITTER_DOUBLECLICKED = _windows.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED -wxEVT_COMMAND_SPLITTER_UNSPLIT = _windows.wxEVT_COMMAND_SPLITTER_UNSPLIT +wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED = _windows_.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED +wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING = _windows_.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING +wxEVT_COMMAND_SPLITTER_DOUBLECLICKED = _windows_.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED +wxEVT_COMMAND_SPLITTER_UNSPLIT = _windows_.wxEVT_COMMAND_SPLITTER_UNSPLIT EVT_SPLITTER_SASH_POS_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED, 1 ) EVT_SPLITTER_SASH_POS_CHANGING = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING, 1 ) EVT_SPLITTER_DOUBLECLICKED = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED, 1 ) @@ -1084,20 +1084,20 @@ EVT_SPLITTER_DCLICK = EVT_SPLITTER_DOUBLECLICKED #--------------------------------------------------------------------------- -SASH_DRAG_NONE = _windows.SASH_DRAG_NONE -SASH_DRAG_DRAGGING = _windows.SASH_DRAG_DRAGGING -SASH_DRAG_LEFT_DOWN = _windows.SASH_DRAG_LEFT_DOWN -SW_NOBORDER = _windows.SW_NOBORDER -SW_BORDER = _windows.SW_BORDER -SW_3DSASH = _windows.SW_3DSASH -SW_3DBORDER = _windows.SW_3DBORDER -SW_3D = _windows.SW_3D -SASH_TOP = _windows.SASH_TOP -SASH_RIGHT = _windows.SASH_RIGHT -SASH_BOTTOM = _windows.SASH_BOTTOM -SASH_LEFT = _windows.SASH_LEFT -SASH_NONE = _windows.SASH_NONE -class SashWindow(core.Window): +SASH_DRAG_NONE = _windows_.SASH_DRAG_NONE +SASH_DRAG_DRAGGING = _windows_.SASH_DRAG_DRAGGING +SASH_DRAG_LEFT_DOWN = _windows_.SASH_DRAG_LEFT_DOWN +SW_NOBORDER = _windows_.SW_NOBORDER +SW_BORDER = _windows_.SW_BORDER +SW_3DSASH = _windows_.SW_3DSASH +SW_3DBORDER = _windows_.SW_3DBORDER +SW_3D = _windows_.SW_3D +SASH_TOP = _windows_.SASH_TOP +SASH_RIGHT = _windows_.SASH_RIGHT +SASH_BOTTOM = _windows_.SASH_BOTTOM +SASH_LEFT = _windows_.SASH_LEFT +SASH_NONE = _windows_.SASH_NONE +class SashWindow(_core.Window): def __repr__(self): return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -1106,7 +1106,7 @@ class SashWindow(core.Window): long style=wxCLIP_CHILDREN|wxSW_3D, String name=SashNameStr) -> SashWindow """ - newobj = _windows.new_SashWindow(*args, **kwargs) + newobj = _windows_.new_SashWindow(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -1118,83 +1118,83 @@ class SashWindow(core.Window): long style=wxCLIP_CHILDREN|wxSW_3D, String name=SashNameStr) -> bool """ - return _windows.SashWindow_Create(*args, **kwargs) + return _windows_.SashWindow_Create(*args, **kwargs) def SetSashVisible(*args, **kwargs): """SetSashVisible(self, int edge, bool sash)""" - return _windows.SashWindow_SetSashVisible(*args, **kwargs) + return _windows_.SashWindow_SetSashVisible(*args, **kwargs) def GetSashVisible(*args, **kwargs): """GetSashVisible(self, int edge) -> bool""" - return _windows.SashWindow_GetSashVisible(*args, **kwargs) + return _windows_.SashWindow_GetSashVisible(*args, **kwargs) def SetSashBorder(*args, **kwargs): """SetSashBorder(self, int edge, bool border)""" - return _windows.SashWindow_SetSashBorder(*args, **kwargs) + return _windows_.SashWindow_SetSashBorder(*args, **kwargs) def HasBorder(*args, **kwargs): """HasBorder(self, int edge) -> bool""" - return _windows.SashWindow_HasBorder(*args, **kwargs) + return _windows_.SashWindow_HasBorder(*args, **kwargs) def GetEdgeMargin(*args, **kwargs): """GetEdgeMargin(self, int edge) -> int""" - return _windows.SashWindow_GetEdgeMargin(*args, **kwargs) + return _windows_.SashWindow_GetEdgeMargin(*args, **kwargs) def SetDefaultBorderSize(*args, **kwargs): """SetDefaultBorderSize(self, int width)""" - return _windows.SashWindow_SetDefaultBorderSize(*args, **kwargs) + return _windows_.SashWindow_SetDefaultBorderSize(*args, **kwargs) def GetDefaultBorderSize(*args, **kwargs): """GetDefaultBorderSize(self) -> int""" - return _windows.SashWindow_GetDefaultBorderSize(*args, **kwargs) + return _windows_.SashWindow_GetDefaultBorderSize(*args, **kwargs) def SetExtraBorderSize(*args, **kwargs): """SetExtraBorderSize(self, int width)""" - return _windows.SashWindow_SetExtraBorderSize(*args, **kwargs) + return _windows_.SashWindow_SetExtraBorderSize(*args, **kwargs) def GetExtraBorderSize(*args, **kwargs): """GetExtraBorderSize(self) -> int""" - return _windows.SashWindow_GetExtraBorderSize(*args, **kwargs) + return _windows_.SashWindow_GetExtraBorderSize(*args, **kwargs) def SetMinimumSizeX(*args, **kwargs): """SetMinimumSizeX(self, int min)""" - return _windows.SashWindow_SetMinimumSizeX(*args, **kwargs) + return _windows_.SashWindow_SetMinimumSizeX(*args, **kwargs) def SetMinimumSizeY(*args, **kwargs): """SetMinimumSizeY(self, int min)""" - return _windows.SashWindow_SetMinimumSizeY(*args, **kwargs) + return _windows_.SashWindow_SetMinimumSizeY(*args, **kwargs) def GetMinimumSizeX(*args, **kwargs): """GetMinimumSizeX(self) -> int""" - return _windows.SashWindow_GetMinimumSizeX(*args, **kwargs) + return _windows_.SashWindow_GetMinimumSizeX(*args, **kwargs) def GetMinimumSizeY(*args, **kwargs): """GetMinimumSizeY(self) -> int""" - return _windows.SashWindow_GetMinimumSizeY(*args, **kwargs) + return _windows_.SashWindow_GetMinimumSizeY(*args, **kwargs) def SetMaximumSizeX(*args, **kwargs): """SetMaximumSizeX(self, int max)""" - return _windows.SashWindow_SetMaximumSizeX(*args, **kwargs) + return _windows_.SashWindow_SetMaximumSizeX(*args, **kwargs) def SetMaximumSizeY(*args, **kwargs): """SetMaximumSizeY(self, int max)""" - return _windows.SashWindow_SetMaximumSizeY(*args, **kwargs) + return _windows_.SashWindow_SetMaximumSizeY(*args, **kwargs) def GetMaximumSizeX(*args, **kwargs): """GetMaximumSizeX(self) -> int""" - return _windows.SashWindow_GetMaximumSizeX(*args, **kwargs) + return _windows_.SashWindow_GetMaximumSizeX(*args, **kwargs) def GetMaximumSizeY(*args, **kwargs): """GetMaximumSizeY(self) -> int""" - return _windows.SashWindow_GetMaximumSizeY(*args, **kwargs) + return _windows_.SashWindow_GetMaximumSizeY(*args, **kwargs) def SashHitTest(*args, **kwargs): """SashHitTest(self, int x, int y, int tolerance=2) -> int""" - return _windows.SashWindow_SashHitTest(*args, **kwargs) + return _windows_.SashWindow_SashHitTest(*args, **kwargs) def SizeWindows(*args, **kwargs): """SizeWindows(self)""" - return _windows.SashWindow_SizeWindows(*args, **kwargs) + return _windows_.SashWindow_SizeWindows(*args, **kwargs) class SashWindowPtr(SashWindow): @@ -1202,50 +1202,50 @@ class SashWindowPtr(SashWindow): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = SashWindow -_windows.SashWindow_swigregister(SashWindowPtr) +_windows_.SashWindow_swigregister(SashWindowPtr) SashNameStr = cvar.SashNameStr SashLayoutNameStr = cvar.SashLayoutNameStr def PreSashWindow(*args, **kwargs): """PreSashWindow() -> SashWindow""" - val = _windows.new_PreSashWindow(*args, **kwargs) + val = _windows_.new_PreSashWindow(*args, **kwargs) val.thisown = 1 return val -SASH_STATUS_OK = _windows.SASH_STATUS_OK -SASH_STATUS_OUT_OF_RANGE = _windows.SASH_STATUS_OUT_OF_RANGE -class SashEvent(core.CommandEvent): +SASH_STATUS_OK = _windows_.SASH_STATUS_OK +SASH_STATUS_OUT_OF_RANGE = _windows_.SASH_STATUS_OUT_OF_RANGE +class SashEvent(_core.CommandEvent): def __repr__(self): return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, int id=0, int edge=SASH_NONE) -> SashEvent""" - newobj = _windows.new_SashEvent(*args, **kwargs) + newobj = _windows_.new_SashEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def SetEdge(*args, **kwargs): """SetEdge(self, int edge)""" - return _windows.SashEvent_SetEdge(*args, **kwargs) + return _windows_.SashEvent_SetEdge(*args, **kwargs) def GetEdge(*args, **kwargs): """GetEdge(self) -> int""" - return _windows.SashEvent_GetEdge(*args, **kwargs) + return _windows_.SashEvent_GetEdge(*args, **kwargs) def SetDragRect(*args, **kwargs): """SetDragRect(self, Rect rect)""" - return _windows.SashEvent_SetDragRect(*args, **kwargs) + return _windows_.SashEvent_SetDragRect(*args, **kwargs) def GetDragRect(*args, **kwargs): """GetDragRect(self) -> Rect""" - return _windows.SashEvent_GetDragRect(*args, **kwargs) + return _windows_.SashEvent_GetDragRect(*args, **kwargs) def SetDragStatus(*args, **kwargs): """SetDragStatus(self, int status)""" - return _windows.SashEvent_SetDragStatus(*args, **kwargs) + return _windows_.SashEvent_SetDragStatus(*args, **kwargs) def GetDragStatus(*args, **kwargs): """GetDragStatus(self) -> int""" - return _windows.SashEvent_GetDragStatus(*args, **kwargs) + return _windows_.SashEvent_GetDragStatus(*args, **kwargs) class SashEventPtr(SashEvent): @@ -1253,75 +1253,75 @@ class SashEventPtr(SashEvent): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = SashEvent -_windows.SashEvent_swigregister(SashEventPtr) +_windows_.SashEvent_swigregister(SashEventPtr) -wxEVT_SASH_DRAGGED = _windows.wxEVT_SASH_DRAGGED +wxEVT_SASH_DRAGGED = _windows_.wxEVT_SASH_DRAGGED EVT_SASH_DRAGGED = wx.PyEventBinder( wxEVT_SASH_DRAGGED, 1 ) EVT_SASH_DRAGGED_RANGE = wx.PyEventBinder( wxEVT_SASH_DRAGGED, 2 ) #--------------------------------------------------------------------------- -LAYOUT_HORIZONTAL = _windows.LAYOUT_HORIZONTAL -LAYOUT_VERTICAL = _windows.LAYOUT_VERTICAL -LAYOUT_NONE = _windows.LAYOUT_NONE -LAYOUT_TOP = _windows.LAYOUT_TOP -LAYOUT_LEFT = _windows.LAYOUT_LEFT -LAYOUT_RIGHT = _windows.LAYOUT_RIGHT -LAYOUT_BOTTOM = _windows.LAYOUT_BOTTOM -LAYOUT_LENGTH_Y = _windows.LAYOUT_LENGTH_Y -LAYOUT_LENGTH_X = _windows.LAYOUT_LENGTH_X -LAYOUT_MRU_LENGTH = _windows.LAYOUT_MRU_LENGTH -LAYOUT_QUERY = _windows.LAYOUT_QUERY -wxEVT_QUERY_LAYOUT_INFO = _windows.wxEVT_QUERY_LAYOUT_INFO -wxEVT_CALCULATE_LAYOUT = _windows.wxEVT_CALCULATE_LAYOUT -class QueryLayoutInfoEvent(core.Event): +LAYOUT_HORIZONTAL = _windows_.LAYOUT_HORIZONTAL +LAYOUT_VERTICAL = _windows_.LAYOUT_VERTICAL +LAYOUT_NONE = _windows_.LAYOUT_NONE +LAYOUT_TOP = _windows_.LAYOUT_TOP +LAYOUT_LEFT = _windows_.LAYOUT_LEFT +LAYOUT_RIGHT = _windows_.LAYOUT_RIGHT +LAYOUT_BOTTOM = _windows_.LAYOUT_BOTTOM +LAYOUT_LENGTH_Y = _windows_.LAYOUT_LENGTH_Y +LAYOUT_LENGTH_X = _windows_.LAYOUT_LENGTH_X +LAYOUT_MRU_LENGTH = _windows_.LAYOUT_MRU_LENGTH +LAYOUT_QUERY = _windows_.LAYOUT_QUERY +wxEVT_QUERY_LAYOUT_INFO = _windows_.wxEVT_QUERY_LAYOUT_INFO +wxEVT_CALCULATE_LAYOUT = _windows_.wxEVT_CALCULATE_LAYOUT +class QueryLayoutInfoEvent(_core.Event): def __repr__(self): return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, int id=0) -> QueryLayoutInfoEvent""" - newobj = _windows.new_QueryLayoutInfoEvent(*args, **kwargs) + newobj = _windows_.new_QueryLayoutInfoEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def SetRequestedLength(*args, **kwargs): """SetRequestedLength(self, int length)""" - return _windows.QueryLayoutInfoEvent_SetRequestedLength(*args, **kwargs) + return _windows_.QueryLayoutInfoEvent_SetRequestedLength(*args, **kwargs) def GetRequestedLength(*args, **kwargs): """GetRequestedLength(self) -> int""" - return _windows.QueryLayoutInfoEvent_GetRequestedLength(*args, **kwargs) + return _windows_.QueryLayoutInfoEvent_GetRequestedLength(*args, **kwargs) def SetFlags(*args, **kwargs): """SetFlags(self, int flags)""" - return _windows.QueryLayoutInfoEvent_SetFlags(*args, **kwargs) + return _windows_.QueryLayoutInfoEvent_SetFlags(*args, **kwargs) def GetFlags(*args, **kwargs): """GetFlags(self) -> int""" - return _windows.QueryLayoutInfoEvent_GetFlags(*args, **kwargs) + return _windows_.QueryLayoutInfoEvent_GetFlags(*args, **kwargs) def SetSize(*args, **kwargs): """SetSize(self, Size size)""" - return _windows.QueryLayoutInfoEvent_SetSize(*args, **kwargs) + return _windows_.QueryLayoutInfoEvent_SetSize(*args, **kwargs) def GetSize(*args, **kwargs): """GetSize(self) -> Size""" - return _windows.QueryLayoutInfoEvent_GetSize(*args, **kwargs) + return _windows_.QueryLayoutInfoEvent_GetSize(*args, **kwargs) def SetOrientation(*args, **kwargs): """SetOrientation(self, int orient)""" - return _windows.QueryLayoutInfoEvent_SetOrientation(*args, **kwargs) + return _windows_.QueryLayoutInfoEvent_SetOrientation(*args, **kwargs) def GetOrientation(*args, **kwargs): """GetOrientation(self) -> int""" - return _windows.QueryLayoutInfoEvent_GetOrientation(*args, **kwargs) + return _windows_.QueryLayoutInfoEvent_GetOrientation(*args, **kwargs) def SetAlignment(*args, **kwargs): """SetAlignment(self, int align)""" - return _windows.QueryLayoutInfoEvent_SetAlignment(*args, **kwargs) + return _windows_.QueryLayoutInfoEvent_SetAlignment(*args, **kwargs) def GetAlignment(*args, **kwargs): """GetAlignment(self) -> int""" - return _windows.QueryLayoutInfoEvent_GetAlignment(*args, **kwargs) + return _windows_.QueryLayoutInfoEvent_GetAlignment(*args, **kwargs) class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent): @@ -1329,32 +1329,32 @@ class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = QueryLayoutInfoEvent -_windows.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr) +_windows_.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr) -class CalculateLayoutEvent(core.Event): +class CalculateLayoutEvent(_core.Event): def __repr__(self): return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, int id=0) -> CalculateLayoutEvent""" - newobj = _windows.new_CalculateLayoutEvent(*args, **kwargs) + newobj = _windows_.new_CalculateLayoutEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def SetFlags(*args, **kwargs): """SetFlags(self, int flags)""" - return _windows.CalculateLayoutEvent_SetFlags(*args, **kwargs) + return _windows_.CalculateLayoutEvent_SetFlags(*args, **kwargs) def GetFlags(*args, **kwargs): """GetFlags(self) -> int""" - return _windows.CalculateLayoutEvent_GetFlags(*args, **kwargs) + return _windows_.CalculateLayoutEvent_GetFlags(*args, **kwargs) def SetRect(*args, **kwargs): """SetRect(self, Rect rect)""" - return _windows.CalculateLayoutEvent_SetRect(*args, **kwargs) + return _windows_.CalculateLayoutEvent_SetRect(*args, **kwargs) def GetRect(*args, **kwargs): """GetRect(self) -> Rect""" - return _windows.CalculateLayoutEvent_GetRect(*args, **kwargs) + return _windows_.CalculateLayoutEvent_GetRect(*args, **kwargs) class CalculateLayoutEventPtr(CalculateLayoutEvent): @@ -1362,7 +1362,7 @@ class CalculateLayoutEventPtr(CalculateLayoutEvent): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = CalculateLayoutEvent -_windows.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr) +_windows_.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr) EVT_QUERY_LAYOUT_INFO = wx.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO ) EVT_CALCULATE_LAYOUT = wx.PyEventBinder( wxEVT_CALCULATE_LAYOUT ) @@ -1376,7 +1376,7 @@ class SashLayoutWindow(SashWindow): long style=wxCLIP_CHILDREN|wxSW_3D, String name=SashLayoutNameStr) -> SashLayoutWindow """ - newobj = _windows.new_SashLayoutWindow(*args, **kwargs) + newobj = _windows_.new_SashLayoutWindow(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -1388,27 +1388,27 @@ class SashLayoutWindow(SashWindow): long style=wxCLIP_CHILDREN|wxSW_3D, String name=SashLayoutNameStr) -> bool """ - return _windows.SashLayoutWindow_Create(*args, **kwargs) + return _windows_.SashLayoutWindow_Create(*args, **kwargs) def GetAlignment(*args, **kwargs): """GetAlignment(self) -> int""" - return _windows.SashLayoutWindow_GetAlignment(*args, **kwargs) + return _windows_.SashLayoutWindow_GetAlignment(*args, **kwargs) def GetOrientation(*args, **kwargs): """GetOrientation(self) -> int""" - return _windows.SashLayoutWindow_GetOrientation(*args, **kwargs) + return _windows_.SashLayoutWindow_GetOrientation(*args, **kwargs) def SetAlignment(*args, **kwargs): """SetAlignment(self, int alignment)""" - return _windows.SashLayoutWindow_SetAlignment(*args, **kwargs) + return _windows_.SashLayoutWindow_SetAlignment(*args, **kwargs) def SetDefaultSize(*args, **kwargs): """SetDefaultSize(self, Size size)""" - return _windows.SashLayoutWindow_SetDefaultSize(*args, **kwargs) + return _windows_.SashLayoutWindow_SetDefaultSize(*args, **kwargs) def SetOrientation(*args, **kwargs): """SetOrientation(self, int orientation)""" - return _windows.SashLayoutWindow_SetOrientation(*args, **kwargs) + return _windows_.SashLayoutWindow_SetOrientation(*args, **kwargs) class SashLayoutWindowPtr(SashLayoutWindow): @@ -1416,24 +1416,24 @@ class SashLayoutWindowPtr(SashLayoutWindow): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = SashLayoutWindow -_windows.SashLayoutWindow_swigregister(SashLayoutWindowPtr) +_windows_.SashLayoutWindow_swigregister(SashLayoutWindowPtr) def PreSashLayoutWindow(*args, **kwargs): """PreSashLayoutWindow() -> SashLayoutWindow""" - val = _windows.new_PreSashLayoutWindow(*args, **kwargs) + val = _windows_.new_PreSashLayoutWindow(*args, **kwargs) val.thisown = 1 return val -class LayoutAlgorithm(core.Object): +class LayoutAlgorithm(_core.Object): def __repr__(self): return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> LayoutAlgorithm""" - newobj = _windows.new_LayoutAlgorithm(*args, **kwargs) + newobj = _windows_.new_LayoutAlgorithm(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_windows.delete_LayoutAlgorithm): + def __del__(self, destroy=_windows_.delete_LayoutAlgorithm): """__del__(self)""" try: if self.thisown: destroy(self) @@ -1441,15 +1441,15 @@ class LayoutAlgorithm(core.Object): def LayoutMDIFrame(*args, **kwargs): """LayoutMDIFrame(self, MDIParentFrame frame, Rect rect=None) -> bool""" - return _windows.LayoutAlgorithm_LayoutMDIFrame(*args, **kwargs) + return _windows_.LayoutAlgorithm_LayoutMDIFrame(*args, **kwargs) def LayoutFrame(*args, **kwargs): """LayoutFrame(self, Frame frame, Window mainWindow=None) -> bool""" - return _windows.LayoutAlgorithm_LayoutFrame(*args, **kwargs) + return _windows_.LayoutAlgorithm_LayoutFrame(*args, **kwargs) def LayoutWindow(*args, **kwargs): """LayoutWindow(self, Window parent, Window mainWindow=None) -> bool""" - return _windows.LayoutAlgorithm_LayoutWindow(*args, **kwargs) + return _windows_.LayoutAlgorithm_LayoutWindow(*args, **kwargs) class LayoutAlgorithmPtr(LayoutAlgorithm): @@ -1457,16 +1457,16 @@ class LayoutAlgorithmPtr(LayoutAlgorithm): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = LayoutAlgorithm -_windows.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr) +_windows_.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr) #--------------------------------------------------------------------------- -class PopupWindow(core.Window): +class PopupWindow(_core.Window): def __repr__(self): return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, Window parent, int flags=BORDER_NONE) -> PopupWindow""" - newobj = _windows.new_PopupWindow(*args, **kwargs) + newobj = _windows_.new_PopupWindow(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -1474,11 +1474,11 @@ class PopupWindow(core.Window): def Create(*args, **kwargs): """Create(self, Window parent, int flags=BORDER_NONE) -> bool""" - return _windows.PopupWindow_Create(*args, **kwargs) + return _windows_.PopupWindow_Create(*args, **kwargs) def Position(*args, **kwargs): """Position(self, Point ptOrigin, Size size)""" - return _windows.PopupWindow_Position(*args, **kwargs) + return _windows_.PopupWindow_Position(*args, **kwargs) class PopupWindowPtr(PopupWindow): @@ -1486,11 +1486,11 @@ class PopupWindowPtr(PopupWindow): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = PopupWindow -_windows.PopupWindow_swigregister(PopupWindowPtr) +_windows_.PopupWindow_swigregister(PopupWindowPtr) def PrePopupWindow(*args, **kwargs): """PrePopupWindow() -> PopupWindow""" - val = _windows.new_PrePopupWindow(*args, **kwargs) + val = _windows_.new_PrePopupWindow(*args, **kwargs) val.thisown = 1 return val @@ -1501,7 +1501,7 @@ class PopupTransientWindow(PopupWindow): return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow""" - newobj = _windows.new_PopupTransientWindow(*args, **kwargs) + newobj = _windows_.new_PopupTransientWindow(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -1509,15 +1509,15 @@ class PopupTransientWindow(PopupWindow): def _setCallbackInfo(*args, **kwargs): """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _windows.PopupTransientWindow__setCallbackInfo(*args, **kwargs) + return _windows_.PopupTransientWindow__setCallbackInfo(*args, **kwargs) def Popup(*args, **kwargs): """Popup(self, Window focus=None)""" - return _windows.PopupTransientWindow_Popup(*args, **kwargs) + return _windows_.PopupTransientWindow_Popup(*args, **kwargs) def Dismiss(*args, **kwargs): """Dismiss(self)""" - return _windows.PopupTransientWindow_Dismiss(*args, **kwargs) + return _windows_.PopupTransientWindow_Dismiss(*args, **kwargs) class PopupTransientWindowPtr(PopupTransientWindow): @@ -1525,11 +1525,11 @@ class PopupTransientWindowPtr(PopupTransientWindow): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = PopupTransientWindow -_windows.PopupTransientWindow_swigregister(PopupTransientWindowPtr) +_windows_.PopupTransientWindow_swigregister(PopupTransientWindowPtr) def PrePopupTransientWindow(*args, **kwargs): """PrePopupTransientWindow() -> PopupTransientWindow""" - val = _windows.new_PrePopupTransientWindow(*args, **kwargs) + val = _windows_.new_PrePopupTransientWindow(*args, **kwargs) val.thisown = 1 return val @@ -1540,7 +1540,7 @@ class TipWindow(PopupTransientWindow): return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow""" - newobj = _windows.new_TipWindow(*args, **kwargs) + newobj = _windows_.new_TipWindow(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -1548,11 +1548,11 @@ class TipWindow(PopupTransientWindow): def SetBoundingRect(*args, **kwargs): """SetBoundingRect(self, Rect rectBound)""" - return _windows.TipWindow_SetBoundingRect(*args, **kwargs) + return _windows_.TipWindow_SetBoundingRect(*args, **kwargs) def Close(*args, **kwargs): """Close(self)""" - return _windows.TipWindow_Close(*args, **kwargs) + return _windows_.TipWindow_Close(*args, **kwargs) class TipWindowPtr(TipWindow): @@ -1560,7 +1560,7 @@ class TipWindowPtr(TipWindow): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = TipWindow -_windows.TipWindow_swigregister(TipWindowPtr) +_windows_.TipWindow_swigregister(TipWindowPtr) #--------------------------------------------------------------------------- @@ -1572,7 +1572,7 @@ class VScrolledWindow(Panel): __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow """ - newobj = _windows.new_VScrolledWindow(*args, **kwargs) + newobj = _windows_.new_VScrolledWindow(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -1580,22 +1580,22 @@ class VScrolledWindow(Panel): def _setCallbackInfo(*args, **kwargs): """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _windows.VScrolledWindow__setCallbackInfo(*args, **kwargs) + return _windows_.VScrolledWindow__setCallbackInfo(*args, **kwargs) def Create(*args, **kwargs): """ Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool """ - return _windows.VScrolledWindow_Create(*args, **kwargs) + return _windows_.VScrolledWindow_Create(*args, **kwargs) def SetLineCount(*args, **kwargs): """SetLineCount(self, size_t count)""" - return _windows.VScrolledWindow_SetLineCount(*args, **kwargs) + return _windows_.VScrolledWindow_SetLineCount(*args, **kwargs) def ScrollToLine(*args, **kwargs): """ScrollToLine(self, size_t line) -> bool""" - return _windows.VScrolledWindow_ScrollToLine(*args, **kwargs) + return _windows_.VScrolledWindow_ScrollToLine(*args, **kwargs) def ScrollLines(*args, **kwargs): """ @@ -1606,7 +1606,7 @@ class VScrolledWindow(Panel): is negative. Returns True if the window was scrolled, False if it was already on top/bottom and nothing was done. """ - return _windows.VScrolledWindow_ScrollLines(*args, **kwargs) + return _windows_.VScrolledWindow_ScrollLines(*args, **kwargs) def ScrollPages(*args, **kwargs): """ @@ -1617,15 +1617,15 @@ class VScrolledWindow(Panel): is negative. Returns True if the window was scrolled, False if it was already on top/bottom and nothing was done. """ - return _windows.VScrolledWindow_ScrollPages(*args, **kwargs) + return _windows_.VScrolledWindow_ScrollPages(*args, **kwargs) def RefreshLine(*args, **kwargs): """RefreshLine(self, size_t line)""" - return _windows.VScrolledWindow_RefreshLine(*args, **kwargs) + return _windows_.VScrolledWindow_RefreshLine(*args, **kwargs) def RefreshLines(*args, **kwargs): """RefreshLines(self, size_t from, size_t to)""" - return _windows.VScrolledWindow_RefreshLines(*args, **kwargs) + return _windows_.VScrolledWindow_RefreshLines(*args, **kwargs) def HitTestXT(*args, **kwargs): """ @@ -1633,7 +1633,7 @@ class VScrolledWindow(Panel): Test where the given (in client coords) point lies """ - return _windows.VScrolledWindow_HitTestXT(*args, **kwargs) + return _windows_.VScrolledWindow_HitTestXT(*args, **kwargs) def HitTest(*args, **kwargs): """ @@ -1641,27 +1641,27 @@ class VScrolledWindow(Panel): Test where the given (in client coords) point lies """ - return _windows.VScrolledWindow_HitTest(*args, **kwargs) + return _windows_.VScrolledWindow_HitTest(*args, **kwargs) def RefreshAll(*args, **kwargs): """RefreshAll(self)""" - return _windows.VScrolledWindow_RefreshAll(*args, **kwargs) + return _windows_.VScrolledWindow_RefreshAll(*args, **kwargs) def GetLineCount(*args, **kwargs): """GetLineCount(self) -> size_t""" - return _windows.VScrolledWindow_GetLineCount(*args, **kwargs) + return _windows_.VScrolledWindow_GetLineCount(*args, **kwargs) def GetFirstVisibleLine(*args, **kwargs): """GetFirstVisibleLine(self) -> size_t""" - return _windows.VScrolledWindow_GetFirstVisibleLine(*args, **kwargs) + return _windows_.VScrolledWindow_GetFirstVisibleLine(*args, **kwargs) def GetLastVisibleLine(*args, **kwargs): """GetLastVisibleLine(self) -> size_t""" - return _windows.VScrolledWindow_GetLastVisibleLine(*args, **kwargs) + return _windows_.VScrolledWindow_GetLastVisibleLine(*args, **kwargs) def IsVisible(*args, **kwargs): """IsVisible(self, size_t line) -> bool""" - return _windows.VScrolledWindow_IsVisible(*args, **kwargs) + return _windows_.VScrolledWindow_IsVisible(*args, **kwargs) class VScrolledWindowPtr(VScrolledWindow): @@ -1669,11 +1669,11 @@ class VScrolledWindowPtr(VScrolledWindow): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = VScrolledWindow -_windows.VScrolledWindow_swigregister(VScrolledWindowPtr) +_windows_.VScrolledWindow_swigregister(VScrolledWindowPtr) def PreVScrolledWindow(*args, **kwargs): """PreVScrolledWindow() -> VScrolledWindow""" - val = _windows.new_PreVScrolledWindow(*args, **kwargs) + val = _windows_.new_PreVScrolledWindow(*args, **kwargs) val.thisown = 1 return val @@ -1685,7 +1685,7 @@ class VListBox(VScrolledWindow): __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox """ - newobj = _windows.new_VListBox(*args, **kwargs) + newobj = _windows_.new_VListBox(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -1693,98 +1693,98 @@ class VListBox(VScrolledWindow): def _setCallbackInfo(*args, **kwargs): """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _windows.VListBox__setCallbackInfo(*args, **kwargs) + return _windows_.VListBox__setCallbackInfo(*args, **kwargs) def Create(*args, **kwargs): """ Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool """ - return _windows.VListBox_Create(*args, **kwargs) + return _windows_.VListBox_Create(*args, **kwargs) def GetItemCount(*args, **kwargs): """GetItemCount(self) -> size_t""" - return _windows.VListBox_GetItemCount(*args, **kwargs) + return _windows_.VListBox_GetItemCount(*args, **kwargs) def HasMultipleSelection(*args, **kwargs): """HasMultipleSelection(self) -> bool""" - return _windows.VListBox_HasMultipleSelection(*args, **kwargs) + return _windows_.VListBox_HasMultipleSelection(*args, **kwargs) def GetSelection(*args, **kwargs): """GetSelection(self) -> int""" - return _windows.VListBox_GetSelection(*args, **kwargs) + return _windows_.VListBox_GetSelection(*args, **kwargs) def IsCurrent(*args, **kwargs): """IsCurrent(self, size_t item) -> bool""" - return _windows.VListBox_IsCurrent(*args, **kwargs) + return _windows_.VListBox_IsCurrent(*args, **kwargs) def IsSelected(*args, **kwargs): """IsSelected(self, size_t item) -> bool""" - return _windows.VListBox_IsSelected(*args, **kwargs) + return _windows_.VListBox_IsSelected(*args, **kwargs) def GetSelectedCount(*args, **kwargs): """GetSelectedCount(self) -> size_t""" - return _windows.VListBox_GetSelectedCount(*args, **kwargs) + return _windows_.VListBox_GetSelectedCount(*args, **kwargs) def GetFirstSelected(*args, **kwargs): """GetFirstSelected(self, unsigned long cookie) -> int""" - return _windows.VListBox_GetFirstSelected(*args, **kwargs) + return _windows_.VListBox_GetFirstSelected(*args, **kwargs) def GetNextSelected(*args, **kwargs): """GetNextSelected(self, unsigned long cookie) -> int""" - return _windows.VListBox_GetNextSelected(*args, **kwargs) + return _windows_.VListBox_GetNextSelected(*args, **kwargs) def GetMargins(*args, **kwargs): """GetMargins(self) -> Point""" - return _windows.VListBox_GetMargins(*args, **kwargs) + return _windows_.VListBox_GetMargins(*args, **kwargs) def GetSelectionBackground(*args, **kwargs): """GetSelectionBackground(self) -> Colour""" - return _windows.VListBox_GetSelectionBackground(*args, **kwargs) + return _windows_.VListBox_GetSelectionBackground(*args, **kwargs) def SetItemCount(*args, **kwargs): """SetItemCount(self, size_t count)""" - return _windows.VListBox_SetItemCount(*args, **kwargs) + return _windows_.VListBox_SetItemCount(*args, **kwargs) def Clear(*args, **kwargs): """Clear(self)""" - return _windows.VListBox_Clear(*args, **kwargs) + return _windows_.VListBox_Clear(*args, **kwargs) def SetSelection(*args, **kwargs): """SetSelection(self, int selection)""" - return _windows.VListBox_SetSelection(*args, **kwargs) + return _windows_.VListBox_SetSelection(*args, **kwargs) def Select(*args, **kwargs): """Select(self, size_t item, bool select=True) -> bool""" - return _windows.VListBox_Select(*args, **kwargs) + return _windows_.VListBox_Select(*args, **kwargs) def SelectRange(*args, **kwargs): """SelectRange(self, size_t from, size_t to) -> bool""" - return _windows.VListBox_SelectRange(*args, **kwargs) + return _windows_.VListBox_SelectRange(*args, **kwargs) def Toggle(*args, **kwargs): """Toggle(self, size_t item)""" - return _windows.VListBox_Toggle(*args, **kwargs) + return _windows_.VListBox_Toggle(*args, **kwargs) def SelectAll(*args, **kwargs): """SelectAll(self) -> bool""" - return _windows.VListBox_SelectAll(*args, **kwargs) + return _windows_.VListBox_SelectAll(*args, **kwargs) def DeselectAll(*args, **kwargs): """DeselectAll(self) -> bool""" - return _windows.VListBox_DeselectAll(*args, **kwargs) + return _windows_.VListBox_DeselectAll(*args, **kwargs) def SetMargins(*args, **kwargs): """SetMargins(self, Point pt)""" - return _windows.VListBox_SetMargins(*args, **kwargs) + return _windows_.VListBox_SetMargins(*args, **kwargs) def SetMarginsXY(*args, **kwargs): """SetMarginsXY(self, int x, int y)""" - return _windows.VListBox_SetMarginsXY(*args, **kwargs) + return _windows_.VListBox_SetMarginsXY(*args, **kwargs) def SetSelectionBackground(*args, **kwargs): """SetSelectionBackground(self, Colour col)""" - return _windows.VListBox_SetSelectionBackground(*args, **kwargs) + return _windows_.VListBox_SetSelectionBackground(*args, **kwargs) class VListBoxPtr(VListBox): @@ -1792,12 +1792,12 @@ class VListBoxPtr(VListBox): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = VListBox -_windows.VListBox_swigregister(VListBoxPtr) +_windows_.VListBox_swigregister(VListBoxPtr) VListBoxNameStr = cvar.VListBoxNameStr def PreVListBox(*args, **kwargs): """PreVListBox() -> VListBox""" - val = _windows.new_PreVListBox(*args, **kwargs) + val = _windows_.new_PreVListBox(*args, **kwargs) val.thisown = 1 return val @@ -1809,7 +1809,7 @@ class HtmlListBox(VListBox): __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox """ - newobj = _windows.new_HtmlListBox(*args, **kwargs) + newobj = _windows_.new_HtmlListBox(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -1817,22 +1817,22 @@ class HtmlListBox(VListBox): def _setCallbackInfo(*args, **kwargs): """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _windows.HtmlListBox__setCallbackInfo(*args, **kwargs) + return _windows_.HtmlListBox__setCallbackInfo(*args, **kwargs) def Create(*args, **kwargs): """ Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool """ - return _windows.HtmlListBox_Create(*args, **kwargs) + return _windows_.HtmlListBox_Create(*args, **kwargs) def RefreshAll(*args, **kwargs): """RefreshAll(self)""" - return _windows.HtmlListBox_RefreshAll(*args, **kwargs) + return _windows_.HtmlListBox_RefreshAll(*args, **kwargs) def SetItemCount(*args, **kwargs): """SetItemCount(self, size_t count)""" - return _windows.HtmlListBox_SetItemCount(*args, **kwargs) + return _windows_.HtmlListBox_SetItemCount(*args, **kwargs) class HtmlListBoxPtr(HtmlListBox): @@ -1840,26 +1840,26 @@ class HtmlListBoxPtr(HtmlListBox): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = HtmlListBox -_windows.HtmlListBox_swigregister(HtmlListBoxPtr) +_windows_.HtmlListBox_swigregister(HtmlListBoxPtr) def PreHtmlListBox(*args, **kwargs): """PreHtmlListBox() -> HtmlListBox""" - val = _windows.new_PreHtmlListBox(*args, **kwargs) + val = _windows_.new_PreHtmlListBox(*args, **kwargs) val.thisown = 1 return val #--------------------------------------------------------------------------- -class TaskBarIcon(core.EvtHandler): +class TaskBarIcon(_core.EvtHandler): def __repr__(self): return "<%s.%s; proxy of C++ wxTaskBarIcon instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> TaskBarIcon""" - newobj = _windows.new_TaskBarIcon(*args, **kwargs) + newobj = _windows_.new_TaskBarIcon(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_windows.delete_TaskBarIcon): + def __del__(self, destroy=_windows_.delete_TaskBarIcon): """__del__(self)""" try: if self.thisown: destroy(self) @@ -1871,28 +1871,28 @@ class TaskBarIcon(core.EvtHandler): Deletes the C++ object this Python object is a proxy for. """ - return _windows.TaskBarIcon_Destroy(*args, **kwargs) + return _windows_.TaskBarIcon_Destroy(*args, **kwargs) def IsOk(*args, **kwargs): """IsOk(self) -> bool""" - return _windows.TaskBarIcon_IsOk(*args, **kwargs) + return _windows_.TaskBarIcon_IsOk(*args, **kwargs) def __nonzero__(self): return self.IsOk() def IsIconInstalled(*args, **kwargs): """IsIconInstalled(self) -> bool""" - return _windows.TaskBarIcon_IsIconInstalled(*args, **kwargs) + return _windows_.TaskBarIcon_IsIconInstalled(*args, **kwargs) def SetIcon(*args, **kwargs): """SetIcon(self, Icon icon, String tooltip=EmptyString) -> bool""" - return _windows.TaskBarIcon_SetIcon(*args, **kwargs) + return _windows_.TaskBarIcon_SetIcon(*args, **kwargs) def RemoveIcon(*args, **kwargs): """RemoveIcon(self) -> bool""" - return _windows.TaskBarIcon_RemoveIcon(*args, **kwargs) + return _windows_.TaskBarIcon_RemoveIcon(*args, **kwargs) def PopupMenu(*args, **kwargs): """PopupMenu(self, Menu menu) -> bool""" - return _windows.TaskBarIcon_PopupMenu(*args, **kwargs) + return _windows_.TaskBarIcon_PopupMenu(*args, **kwargs) class TaskBarIconPtr(TaskBarIcon): @@ -1900,14 +1900,14 @@ class TaskBarIconPtr(TaskBarIcon): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = TaskBarIcon -_windows.TaskBarIcon_swigregister(TaskBarIconPtr) +_windows_.TaskBarIcon_swigregister(TaskBarIconPtr) -class TaskBarIconEvent(core.Event): +class TaskBarIconEvent(_core.Event): def __repr__(self): return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, wxEventType evtType, TaskBarIcon tbIcon) -> TaskBarIconEvent""" - newobj = _windows.new_TaskBarIconEvent(*args, **kwargs) + newobj = _windows_.new_TaskBarIconEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -1917,15 +1917,15 @@ class TaskBarIconEventPtr(TaskBarIconEvent): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = TaskBarIconEvent -_windows.TaskBarIconEvent_swigregister(TaskBarIconEventPtr) - -wxEVT_TASKBAR_MOVE = _windows.wxEVT_TASKBAR_MOVE -wxEVT_TASKBAR_LEFT_DOWN = _windows.wxEVT_TASKBAR_LEFT_DOWN -wxEVT_TASKBAR_LEFT_UP = _windows.wxEVT_TASKBAR_LEFT_UP -wxEVT_TASKBAR_RIGHT_DOWN = _windows.wxEVT_TASKBAR_RIGHT_DOWN -wxEVT_TASKBAR_RIGHT_UP = _windows.wxEVT_TASKBAR_RIGHT_UP -wxEVT_TASKBAR_LEFT_DCLICK = _windows.wxEVT_TASKBAR_LEFT_DCLICK -wxEVT_TASKBAR_RIGHT_DCLICK = _windows.wxEVT_TASKBAR_RIGHT_DCLICK +_windows_.TaskBarIconEvent_swigregister(TaskBarIconEventPtr) + +wxEVT_TASKBAR_MOVE = _windows_.wxEVT_TASKBAR_MOVE +wxEVT_TASKBAR_LEFT_DOWN = _windows_.wxEVT_TASKBAR_LEFT_DOWN +wxEVT_TASKBAR_LEFT_UP = _windows_.wxEVT_TASKBAR_LEFT_UP +wxEVT_TASKBAR_RIGHT_DOWN = _windows_.wxEVT_TASKBAR_RIGHT_DOWN +wxEVT_TASKBAR_RIGHT_UP = _windows_.wxEVT_TASKBAR_RIGHT_UP +wxEVT_TASKBAR_LEFT_DCLICK = _windows_.wxEVT_TASKBAR_LEFT_DCLICK +wxEVT_TASKBAR_RIGHT_DCLICK = _windows_.wxEVT_TASKBAR_RIGHT_DCLICK EVT_TASKBAR_MOVE = wx.PyEventBinder ( wxEVT_TASKBAR_MOVE ) EVT_TASKBAR_LEFT_DOWN = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN ) EVT_TASKBAR_LEFT_UP = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP ) @@ -1936,7 +1936,7 @@ EVT_TASKBAR_RIGHT_DCLICK = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK ) #--------------------------------------------------------------------------- -class ColourData(core.Object): +class ColourData(_core.Object): """This class holds a variety of information related to colour dialogs.""" def __repr__(self): return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) @@ -1946,11 +1946,11 @@ class ColourData(core.Object): Constructor, sets default values. """ - newobj = _windows.new_ColourData(*args, **kwargs) + newobj = _windows_.new_ColourData(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_windows.delete_ColourData): + def __del__(self, destroy=_windows_.delete_ColourData): """__del__(self)""" try: if self.thisown: destroy(self) @@ -1964,7 +1964,7 @@ class ColourData(core.Object): the full dialog with custom colour selection controls. Has no meaning under other platforms. The default value is true. """ - return _windows.ColourData_GetChooseFull(*args, **kwargs) + return _windows_.ColourData_GetChooseFull(*args, **kwargs) def GetColour(*args, **kwargs): """ @@ -1972,7 +1972,7 @@ class ColourData(core.Object): Gets the colour (pre)selected by the dialog. """ - return _windows.ColourData_GetColour(*args, **kwargs) + return _windows_.ColourData_GetColour(*args, **kwargs) def GetCustomColour(*args, **kwargs): """ @@ -1981,7 +1981,7 @@ class ColourData(core.Object): Gets the i'th custom colour associated with the colour dialog. i should be an integer between 0 and 15. The default custom colours are all white. """ - return _windows.ColourData_GetCustomColour(*args, **kwargs) + return _windows_.ColourData_GetCustomColour(*args, **kwargs) def SetChooseFull(*args, **kwargs): """ @@ -1991,7 +1991,7 @@ class ColourData(core.Object): with custom colour selection controls. Under other platforms, has no effect. The default value is true. """ - return _windows.ColourData_SetChooseFull(*args, **kwargs) + return _windows_.ColourData_SetChooseFull(*args, **kwargs) def SetColour(*args, **kwargs): """ @@ -1999,7 +1999,7 @@ class ColourData(core.Object): Sets the default colour for the colour dialog. The default colour is black. """ - return _windows.ColourData_SetColour(*args, **kwargs) + return _windows_.ColourData_SetColour(*args, **kwargs) def SetCustomColour(*args, **kwargs): """ @@ -2008,7 +2008,7 @@ class ColourData(core.Object): Sets the i'th custom colour for the colour dialog. i should be an integer between 0 and 15. The default custom colours are all white. """ - return _windows.ColourData_SetCustomColour(*args, **kwargs) + return _windows_.ColourData_SetCustomColour(*args, **kwargs) class ColourDataPtr(ColourData): @@ -2016,7 +2016,7 @@ class ColourDataPtr(ColourData): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = ColourData -_windows.ColourData_swigregister(ColourDataPtr) +_windows_.ColourData_swigregister(ColourDataPtr) FileSelectorPromptStr = cvar.FileSelectorPromptStr DirSelectorPromptStr = cvar.DirSelectorPromptStr DirDialogNameStr = cvar.DirDialogNameStr @@ -2035,7 +2035,7 @@ class ColourDialog(Dialog): Constructor. Pass a parent window, and optionally a ColourData, which will be copied to the colour dialog's internal ColourData instance. """ - newobj = _windows.new_ColourDialog(*args, **kwargs) + newobj = _windows_.new_ColourDialog(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -2047,7 +2047,7 @@ class ColourDialog(Dialog): Returns a reference to the ColourData used by the dialog. """ - return _windows.ColourDialog_GetColourData(*args, **kwargs) + return _windows_.ColourDialog_GetColourData(*args, **kwargs) class ColourDialogPtr(ColourDialog): @@ -2055,7 +2055,7 @@ class ColourDialogPtr(ColourDialog): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = ColourDialog -_windows.ColourDialog_swigregister(ColourDialogPtr) +_windows_.ColourDialog_swigregister(ColourDialogPtr) class DirDialog(Dialog): """This class represents the directory chooser dialog.""" @@ -2070,7 +2070,7 @@ class DirDialog(Dialog): Constructor. Use ShowModal method to show the dialog. """ - newobj = _windows.new_DirDialog(*args, **kwargs) + newobj = _windows_.new_DirDialog(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -2082,7 +2082,7 @@ class DirDialog(Dialog): Returns the default or user-selected path. """ - return _windows.DirDialog_GetPath(*args, **kwargs) + return _windows_.DirDialog_GetPath(*args, **kwargs) def GetMessage(*args, **kwargs): """ @@ -2090,7 +2090,7 @@ class DirDialog(Dialog): Returns the message that will be displayed on the dialog. """ - return _windows.DirDialog_GetMessage(*args, **kwargs) + return _windows_.DirDialog_GetMessage(*args, **kwargs) def GetStyle(*args, **kwargs): """ @@ -2098,7 +2098,7 @@ class DirDialog(Dialog): Returns the dialog style. """ - return _windows.DirDialog_GetStyle(*args, **kwargs) + return _windows_.DirDialog_GetStyle(*args, **kwargs) def SetMessage(*args, **kwargs): """ @@ -2106,7 +2106,7 @@ class DirDialog(Dialog): Sets the message that will be displayed on the dialog. """ - return _windows.DirDialog_SetMessage(*args, **kwargs) + return _windows_.DirDialog_SetMessage(*args, **kwargs) def SetPath(*args, **kwargs): """ @@ -2114,7 +2114,7 @@ class DirDialog(Dialog): Sets the default path. """ - return _windows.DirDialog_SetPath(*args, **kwargs) + return _windows_.DirDialog_SetPath(*args, **kwargs) class DirDialogPtr(DirDialog): @@ -2122,7 +2122,7 @@ class DirDialogPtr(DirDialog): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = DirDialog -_windows.DirDialog_swigregister(DirDialogPtr) +_windows_.DirDialog_swigregister(DirDialogPtr) class FileDialog(Dialog): """This class represents the file chooser dialog.""" @@ -2137,7 +2137,7 @@ class FileDialog(Dialog): Constructor. Use ShowModal method to show the dialog. """ - newobj = _windows.new_FileDialog(*args, **kwargs) + newobj = _windows_.new_FileDialog(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -2149,7 +2149,7 @@ class FileDialog(Dialog): Sets the message that will be displayed on the dialog. """ - return _windows.FileDialog_SetMessage(*args, **kwargs) + return _windows_.FileDialog_SetMessage(*args, **kwargs) def SetPath(*args, **kwargs): """ @@ -2158,7 +2158,7 @@ class FileDialog(Dialog): Sets the path (the combined directory and filename that will be returned when the dialog is dismissed). """ - return _windows.FileDialog_SetPath(*args, **kwargs) + return _windows_.FileDialog_SetPath(*args, **kwargs) def SetDirectory(*args, **kwargs): """ @@ -2166,7 +2166,7 @@ class FileDialog(Dialog): Sets the default directory. """ - return _windows.FileDialog_SetDirectory(*args, **kwargs) + return _windows_.FileDialog_SetDirectory(*args, **kwargs) def SetFilename(*args, **kwargs): """ @@ -2174,7 +2174,7 @@ class FileDialog(Dialog): Sets the default filename. """ - return _windows.FileDialog_SetFilename(*args, **kwargs) + return _windows_.FileDialog_SetFilename(*args, **kwargs) def SetWildcard(*args, **kwargs): """ @@ -2183,7 +2183,7 @@ class FileDialog(Dialog): Sets the wildcard, which can contain multiple file types, for example: "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif" """ - return _windows.FileDialog_SetWildcard(*args, **kwargs) + return _windows_.FileDialog_SetWildcard(*args, **kwargs) def SetStyle(*args, **kwargs): """ @@ -2191,7 +2191,7 @@ class FileDialog(Dialog): Sets the dialog style. """ - return _windows.FileDialog_SetStyle(*args, **kwargs) + return _windows_.FileDialog_SetStyle(*args, **kwargs) def SetFilterIndex(*args, **kwargs): """ @@ -2199,7 +2199,7 @@ class FileDialog(Dialog): Sets the default filter index, starting from zero. """ - return _windows.FileDialog_SetFilterIndex(*args, **kwargs) + return _windows_.FileDialog_SetFilterIndex(*args, **kwargs) def GetMessage(*args, **kwargs): """ @@ -2207,7 +2207,7 @@ class FileDialog(Dialog): Returns the message that will be displayed on the dialog. """ - return _windows.FileDialog_GetMessage(*args, **kwargs) + return _windows_.FileDialog_GetMessage(*args, **kwargs) def GetPath(*args, **kwargs): """ @@ -2215,7 +2215,7 @@ class FileDialog(Dialog): Returns the full path (directory and filename) of the selected file. """ - return _windows.FileDialog_GetPath(*args, **kwargs) + return _windows_.FileDialog_GetPath(*args, **kwargs) def GetDirectory(*args, **kwargs): """ @@ -2223,7 +2223,7 @@ class FileDialog(Dialog): Returns the default directory. """ - return _windows.FileDialog_GetDirectory(*args, **kwargs) + return _windows_.FileDialog_GetDirectory(*args, **kwargs) def GetFilename(*args, **kwargs): """ @@ -2231,7 +2231,7 @@ class FileDialog(Dialog): Returns the default filename. """ - return _windows.FileDialog_GetFilename(*args, **kwargs) + return _windows_.FileDialog_GetFilename(*args, **kwargs) def GetWildcard(*args, **kwargs): """ @@ -2239,7 +2239,7 @@ class FileDialog(Dialog): Returns the file dialog wildcard. """ - return _windows.FileDialog_GetWildcard(*args, **kwargs) + return _windows_.FileDialog_GetWildcard(*args, **kwargs) def GetStyle(*args, **kwargs): """ @@ -2247,7 +2247,7 @@ class FileDialog(Dialog): Returns the dialog style. """ - return _windows.FileDialog_GetStyle(*args, **kwargs) + return _windows_.FileDialog_GetStyle(*args, **kwargs) def GetFilterIndex(*args, **kwargs): """ @@ -2258,7 +2258,7 @@ class FileDialog(Dialog): which will be used when the dialog is first displayed. After the dialog is shown, this is the index selected by the user. """ - return _windows.FileDialog_GetFilterIndex(*args, **kwargs) + return _windows_.FileDialog_GetFilterIndex(*args, **kwargs) def GetFilenames(*args, **kwargs): """ @@ -2268,7 +2268,7 @@ class FileDialog(Dialog): only be used with the dialogs which have wx.MULTIPLE style, use GetFilename for the others. """ - return _windows.FileDialog_GetFilenames(*args, **kwargs) + return _windows_.FileDialog_GetFilenames(*args, **kwargs) def GetPaths(*args, **kwargs): """ @@ -2278,7 +2278,7 @@ class FileDialog(Dialog): function should only be used with the dialogs which have wx.MULTIPLE style, use GetPath for the others. """ - return _windows.FileDialog_GetPaths(*args, **kwargs) + return _windows_.FileDialog_GetPaths(*args, **kwargs) class FileDialogPtr(FileDialog): @@ -2286,9 +2286,9 @@ class FileDialogPtr(FileDialog): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = FileDialog -_windows.FileDialog_swigregister(FileDialogPtr) +_windows_.FileDialog_swigregister(FileDialogPtr) -CHOICEDLG_STYLE = _windows.CHOICEDLG_STYLE +CHOICEDLG_STYLE = _windows_.CHOICEDLG_STYLE class MultiChoiceDialog(Dialog): """A simple dialog with a multi selection listbox.""" def __repr__(self): @@ -2301,7 +2301,7 @@ class MultiChoiceDialog(Dialog): Constructor. Use ShowModal method to show the dialog. """ - newobj = _windows.new_MultiChoiceDialog(*args, **kwargs) + newobj = _windows_.new_MultiChoiceDialog(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -2313,7 +2313,7 @@ class MultiChoiceDialog(Dialog): Specify the items in the list that shoudl be selected, using a list of integers. """ - return _windows.MultiChoiceDialog_SetSelections(*args, **kwargs) + return _windows_.MultiChoiceDialog_SetSelections(*args, **kwargs) def GetSelections(*args, **kwargs): """ @@ -2321,7 +2321,7 @@ class MultiChoiceDialog(Dialog): Returns a list of integers representing the items that are selected. """ - return _windows.MultiChoiceDialog_GetSelections(*args, **kwargs) + return _windows_.MultiChoiceDialog_GetSelections(*args, **kwargs) class MultiChoiceDialogPtr(MultiChoiceDialog): @@ -2329,7 +2329,7 @@ class MultiChoiceDialogPtr(MultiChoiceDialog): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = MultiChoiceDialog -_windows.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr) +_windows_.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr) class SingleChoiceDialog(Dialog): """A simple dialog with a single selection listbox.""" @@ -2343,7 +2343,7 @@ class SingleChoiceDialog(Dialog): Constructor. Use ShowModal method to show the dialog. """ - newobj = _windows.new_SingleChoiceDialog(*args, **kwargs) + newobj = _windows_.new_SingleChoiceDialog(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -2355,7 +2355,7 @@ class SingleChoiceDialog(Dialog): Get the index of teh currently selected item. """ - return _windows.SingleChoiceDialog_GetSelection(*args, **kwargs) + return _windows_.SingleChoiceDialog_GetSelection(*args, **kwargs) def GetStringSelection(*args, **kwargs): """ @@ -2363,7 +2363,7 @@ class SingleChoiceDialog(Dialog): Returns the string value of the currently selected item """ - return _windows.SingleChoiceDialog_GetStringSelection(*args, **kwargs) + return _windows_.SingleChoiceDialog_GetStringSelection(*args, **kwargs) def SetSelection(*args, **kwargs): """ @@ -2371,7 +2371,7 @@ class SingleChoiceDialog(Dialog): Set the current selected item to sel """ - return _windows.SingleChoiceDialog_SetSelection(*args, **kwargs) + return _windows_.SingleChoiceDialog_SetSelection(*args, **kwargs) class SingleChoiceDialogPtr(SingleChoiceDialog): @@ -2379,7 +2379,7 @@ class SingleChoiceDialogPtr(SingleChoiceDialog): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = SingleChoiceDialog -_windows.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr) +_windows_.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr) class TextEntryDialog(Dialog): """A dialog with text control, [ok] and [cancel] buttons""" @@ -2393,7 +2393,7 @@ class TextEntryDialog(Dialog): Constructor. Use ShowModal method to show the dialog. """ - newobj = _windows.new_TextEntryDialog(*args, **kwargs) + newobj = _windows_.new_TextEntryDialog(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -2406,7 +2406,7 @@ class TextEntryDialog(Dialog): Returns the text that the user has entered if the user has pressed OK, or the original value if the user has pressed Cancel. """ - return _windows.TextEntryDialog_GetValue(*args, **kwargs) + return _windows_.TextEntryDialog_GetValue(*args, **kwargs) def SetValue(*args, **kwargs): """ @@ -2414,7 +2414,7 @@ class TextEntryDialog(Dialog): Sets the default text value. """ - return _windows.TextEntryDialog_SetValue(*args, **kwargs) + return _windows_.TextEntryDialog_SetValue(*args, **kwargs) class TextEntryDialogPtr(TextEntryDialog): @@ -2422,9 +2422,9 @@ class TextEntryDialogPtr(TextEntryDialog): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = TextEntryDialog -_windows.TextEntryDialog_swigregister(TextEntryDialogPtr) +_windows_.TextEntryDialog_swigregister(TextEntryDialogPtr) -class FontData(core.Object): +class FontData(_core.Object): """This class holds a variety of information related to font dialogs.""" def __repr__(self): return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) @@ -2434,11 +2434,11 @@ class FontData(core.Object): This class holds a variety of information related to font dialogs. """ - newobj = _windows.new_FontData(*args, **kwargs) + newobj = _windows_.new_FontData(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_windows.delete_FontData): + def __del__(self, destroy=_windows_.delete_FontData): """__del__(self)""" try: if self.thisown: destroy(self) @@ -2452,7 +2452,7 @@ class FontData(core.Object): to the controls for manipulating colour, strikeout and underline properties. The default value is true. """ - return _windows.FontData_EnableEffects(*args, **kwargs) + return _windows_.FontData_EnableEffects(*args, **kwargs) def GetAllowSymbols(*args, **kwargs): """ @@ -2461,7 +2461,7 @@ class FontData(core.Object): Under MS Windows, returns a flag determining whether symbol fonts can be selected. Has no effect on other platforms. The default value is true. """ - return _windows.FontData_GetAllowSymbols(*args, **kwargs) + return _windows_.FontData_GetAllowSymbols(*args, **kwargs) def GetColour(*args, **kwargs): """ @@ -2469,7 +2469,7 @@ class FontData(core.Object): Gets the colour associated with the font dialog. The default value is black. """ - return _windows.FontData_GetColour(*args, **kwargs) + return _windows_.FontData_GetColour(*args, **kwargs) def GetChosenFont(*args, **kwargs): """ @@ -2477,7 +2477,7 @@ class FontData(core.Object): Gets the font chosen by the user. """ - return _windows.FontData_GetChosenFont(*args, **kwargs) + return _windows_.FontData_GetChosenFont(*args, **kwargs) def GetEnableEffects(*args, **kwargs): """ @@ -2485,7 +2485,7 @@ class FontData(core.Object): Determines whether 'effects' are enabled under Windows. """ - return _windows.FontData_GetEnableEffects(*args, **kwargs) + return _windows_.FontData_GetEnableEffects(*args, **kwargs) def GetInitialFont(*args, **kwargs): """ @@ -2494,7 +2494,7 @@ class FontData(core.Object): Gets the font that will be initially used by the font dialog. This should have previously been set by the application. """ - return _windows.FontData_GetInitialFont(*args, **kwargs) + return _windows_.FontData_GetInitialFont(*args, **kwargs) def GetShowHelp(*args, **kwargs): """ @@ -2503,7 +2503,7 @@ class FontData(core.Object): Returns true if the Help button will be shown (Windows only). The default value is false. """ - return _windows.FontData_GetShowHelp(*args, **kwargs) + return _windows_.FontData_GetShowHelp(*args, **kwargs) def SetAllowSymbols(*args, **kwargs): """ @@ -2512,7 +2512,7 @@ class FontData(core.Object): Under MS Windows, determines whether symbol fonts can be selected. Has no effect on other platforms. The default value is true. """ - return _windows.FontData_SetAllowSymbols(*args, **kwargs) + return _windows_.FontData_SetAllowSymbols(*args, **kwargs) def SetChosenFont(*args, **kwargs): """ @@ -2520,7 +2520,7 @@ class FontData(core.Object): Sets the font that will be returned to the user (for internal use only). """ - return _windows.FontData_SetChosenFont(*args, **kwargs) + return _windows_.FontData_SetChosenFont(*args, **kwargs) def SetColour(*args, **kwargs): """ @@ -2529,7 +2529,7 @@ class FontData(core.Object): Sets the colour that will be used for the font foreground colour. The default colour is black. """ - return _windows.FontData_SetColour(*args, **kwargs) + return _windows_.FontData_SetColour(*args, **kwargs) def SetInitialFont(*args, **kwargs): """ @@ -2537,7 +2537,7 @@ class FontData(core.Object): Sets the font that will be initially used by the font dialog. """ - return _windows.FontData_SetInitialFont(*args, **kwargs) + return _windows_.FontData_SetInitialFont(*args, **kwargs) def SetRange(*args, **kwargs): """ @@ -2546,7 +2546,7 @@ class FontData(core.Object): Sets the valid range for the font point size (Windows only). The default is 0, 0 (unrestricted range). """ - return _windows.FontData_SetRange(*args, **kwargs) + return _windows_.FontData_SetRange(*args, **kwargs) def SetShowHelp(*args, **kwargs): """ @@ -2555,7 +2555,7 @@ class FontData(core.Object): Determines whether the Help button will be displayed in the font dialog (Windows only). The default value is false. """ - return _windows.FontData_SetShowHelp(*args, **kwargs) + return _windows_.FontData_SetShowHelp(*args, **kwargs) class FontDataPtr(FontData): @@ -2563,7 +2563,7 @@ class FontDataPtr(FontData): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = FontData -_windows.FontData_swigregister(FontDataPtr) +_windows_.FontData_swigregister(FontDataPtr) class FontDialog(Dialog): """This class represents the font chooser dialog.""" @@ -2576,7 +2576,7 @@ class FontDialog(Dialog): Constructor. Pass a parent window and the FontData object to be used to initialize the dialog controls. """ - newobj = _windows.new_FontDialog(*args, **kwargs) + newobj = _windows_.new_FontDialog(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -2588,7 +2588,7 @@ class FontDialog(Dialog): Returns a reference to the internal FontData used by the FontDialog. """ - return _windows.FontDialog_GetFontData(*args, **kwargs) + return _windows_.FontDialog_GetFontData(*args, **kwargs) class FontDialogPtr(FontDialog): @@ -2596,7 +2596,7 @@ class FontDialogPtr(FontDialog): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = FontDialog -_windows.FontDialog_swigregister(FontDialogPtr) +_windows_.FontDialog_swigregister(FontDialogPtr) class MessageDialog(Dialog): """ @@ -2614,7 +2614,7 @@ class MessageDialog(Dialog): This class provides a dialog that shows a single or multi-line message, with a choice of OK, Yes, No and Cancel buttons. """ - newobj = _windows.new_MessageDialog(*args, **kwargs) + newobj = _windows_.new_MessageDialog(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -2626,7 +2626,7 @@ class MessageDialogPtr(MessageDialog): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = MessageDialog -_windows.MessageDialog_swigregister(MessageDialogPtr) +_windows_.MessageDialog_swigregister(MessageDialogPtr) class ProgressDialog(Frame): """ @@ -2643,7 +2643,7 @@ class ProgressDialog(Frame): Constructor. Creates the dialog, displays it and disables user input for other windows, or, if wxPD_APP_MODAL flag is not given, for its parent window only. """ - newobj = _windows.new_ProgressDialog(*args, **kwargs) + newobj = _windows_.new_ProgressDialog(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -2661,7 +2661,7 @@ class ProgressDialog(Frame): dialog or ask the user for the confirmation and if the abort is not confirmed the dialog may be resumed with Resume function. """ - return _windows.ProgressDialog_Update(*args, **kwargs) + return _windows_.ProgressDialog_Update(*args, **kwargs) def Resume(*args, **kwargs): """ @@ -2669,7 +2669,7 @@ class ProgressDialog(Frame): Can be used to continue with the dialog, after the user had chosen to abort. """ - return _windows.ProgressDialog_Resume(*args, **kwargs) + return _windows_.ProgressDialog_Resume(*args, **kwargs) class ProgressDialogPtr(ProgressDialog): @@ -2677,20 +2677,20 @@ class ProgressDialogPtr(ProgressDialog): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = ProgressDialog -_windows.ProgressDialog_swigregister(ProgressDialogPtr) - -FR_DOWN = _windows.FR_DOWN -FR_WHOLEWORD = _windows.FR_WHOLEWORD -FR_MATCHCASE = _windows.FR_MATCHCASE -FR_REPLACEDIALOG = _windows.FR_REPLACEDIALOG -FR_NOUPDOWN = _windows.FR_NOUPDOWN -FR_NOMATCHCASE = _windows.FR_NOMATCHCASE -FR_NOWHOLEWORD = _windows.FR_NOWHOLEWORD -wxEVT_COMMAND_FIND = _windows.wxEVT_COMMAND_FIND -wxEVT_COMMAND_FIND_NEXT = _windows.wxEVT_COMMAND_FIND_NEXT -wxEVT_COMMAND_FIND_REPLACE = _windows.wxEVT_COMMAND_FIND_REPLACE -wxEVT_COMMAND_FIND_REPLACE_ALL = _windows.wxEVT_COMMAND_FIND_REPLACE_ALL -wxEVT_COMMAND_FIND_CLOSE = _windows.wxEVT_COMMAND_FIND_CLOSE +_windows_.ProgressDialog_swigregister(ProgressDialogPtr) + +FR_DOWN = _windows_.FR_DOWN +FR_WHOLEWORD = _windows_.FR_WHOLEWORD +FR_MATCHCASE = _windows_.FR_MATCHCASE +FR_REPLACEDIALOG = _windows_.FR_REPLACEDIALOG +FR_NOUPDOWN = _windows_.FR_NOUPDOWN +FR_NOMATCHCASE = _windows_.FR_NOMATCHCASE +FR_NOWHOLEWORD = _windows_.FR_NOWHOLEWORD +wxEVT_COMMAND_FIND = _windows_.wxEVT_COMMAND_FIND +wxEVT_COMMAND_FIND_NEXT = _windows_.wxEVT_COMMAND_FIND_NEXT +wxEVT_COMMAND_FIND_REPLACE = _windows_.wxEVT_COMMAND_FIND_REPLACE +wxEVT_COMMAND_FIND_REPLACE_ALL = _windows_.wxEVT_COMMAND_FIND_REPLACE_ALL +wxEVT_COMMAND_FIND_CLOSE = _windows_.wxEVT_COMMAND_FIND_CLOSE EVT_FIND = wx.PyEventBinder( wxEVT_COMMAND_FIND, 1 ) EVT_FIND_NEXT = wx.PyEventBinder( wxEVT_COMMAND_FIND_NEXT, 1 ) EVT_FIND_REPLACE = wx.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE, 1 ) @@ -2704,7 +2704,7 @@ EVT_COMMAND_FIND_REPLACE = EVT_FIND_REPLACE EVT_COMMAND_FIND_REPLACE_ALL = EVT_FIND_REPLACE_ALL EVT_COMMAND_FIND_CLOSE = EVT_FIND_CLOSE -class FindDialogEvent(core.CommandEvent): +class FindDialogEvent(_core.CommandEvent): """Events for the FindReplaceDialog""" def __repr__(self): return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) @@ -2714,7 +2714,7 @@ class FindDialogEvent(core.CommandEvent): Events for the FindReplaceDialog """ - newobj = _windows.new_FindDialogEvent(*args, **kwargs) + newobj = _windows_.new_FindDialogEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -2725,7 +2725,7 @@ class FindDialogEvent(core.CommandEvent): Get the currently selected flags: this is the combination of wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags. """ - return _windows.FindDialogEvent_GetFlags(*args, **kwargs) + return _windows_.FindDialogEvent_GetFlags(*args, **kwargs) def GetFindString(*args, **kwargs): """ @@ -2733,7 +2733,7 @@ class FindDialogEvent(core.CommandEvent): Return the string to find (never empty). """ - return _windows.FindDialogEvent_GetFindString(*args, **kwargs) + return _windows_.FindDialogEvent_GetFindString(*args, **kwargs) def GetReplaceString(*args, **kwargs): """ @@ -2742,7 +2742,7 @@ class FindDialogEvent(core.CommandEvent): Return the string to replace the search string with (only for replace and replace all events). """ - return _windows.FindDialogEvent_GetReplaceString(*args, **kwargs) + return _windows_.FindDialogEvent_GetReplaceString(*args, **kwargs) def GetDialog(*args, **kwargs): """ @@ -2750,19 +2750,19 @@ class FindDialogEvent(core.CommandEvent): Return the pointer to the dialog which generated this event. """ - return _windows.FindDialogEvent_GetDialog(*args, **kwargs) + return _windows_.FindDialogEvent_GetDialog(*args, **kwargs) def SetFlags(*args, **kwargs): """SetFlags(self, int flags)""" - return _windows.FindDialogEvent_SetFlags(*args, **kwargs) + return _windows_.FindDialogEvent_SetFlags(*args, **kwargs) def SetFindString(*args, **kwargs): """SetFindString(self, String str)""" - return _windows.FindDialogEvent_SetFindString(*args, **kwargs) + return _windows_.FindDialogEvent_SetFindString(*args, **kwargs) def SetReplaceString(*args, **kwargs): """SetReplaceString(self, String str)""" - return _windows.FindDialogEvent_SetReplaceString(*args, **kwargs) + return _windows_.FindDialogEvent_SetReplaceString(*args, **kwargs) class FindDialogEventPtr(FindDialogEvent): @@ -2770,9 +2770,9 @@ class FindDialogEventPtr(FindDialogEvent): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = FindDialogEvent -_windows.FindDialogEvent_swigregister(FindDialogEventPtr) +_windows_.FindDialogEvent_swigregister(FindDialogEventPtr) -class FindReplaceData(core.Object): +class FindReplaceData(_core.Object): """ FindReplaceData holds the data for FindReplaceDialog. It is used to initialize the dialog with the default values and will keep the last values from the @@ -2800,11 +2800,11 @@ class FindReplaceData(core.Object): Constuctor initializes the flags to default value (0). """ - newobj = _windows.new_FindReplaceData(*args, **kwargs) + newobj = _windows_.new_FindReplaceData(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_windows.delete_FindReplaceData): + def __del__(self, destroy=_windows_.delete_FindReplaceData): """__del__(self)""" try: if self.thisown: destroy(self) @@ -2816,7 +2816,7 @@ class FindReplaceData(core.Object): Get the string to find. """ - return _windows.FindReplaceData_GetFindString(*args, **kwargs) + return _windows_.FindReplaceData_GetFindString(*args, **kwargs) def GetReplaceString(*args, **kwargs): """ @@ -2824,7 +2824,7 @@ class FindReplaceData(core.Object): Get the replacement string. """ - return _windows.FindReplaceData_GetReplaceString(*args, **kwargs) + return _windows_.FindReplaceData_GetReplaceString(*args, **kwargs) def GetFlags(*args, **kwargs): """ @@ -2832,7 +2832,7 @@ class FindReplaceData(core.Object): Get the combination of flag values. """ - return _windows.FindReplaceData_GetFlags(*args, **kwargs) + return _windows_.FindReplaceData_GetFlags(*args, **kwargs) def SetFlags(*args, **kwargs): """ @@ -2840,7 +2840,7 @@ class FindReplaceData(core.Object): Set the flags to use to initialize the controls of the dialog. """ - return _windows.FindReplaceData_SetFlags(*args, **kwargs) + return _windows_.FindReplaceData_SetFlags(*args, **kwargs) def SetFindString(*args, **kwargs): """ @@ -2848,7 +2848,7 @@ class FindReplaceData(core.Object): Set the string to find (used as initial value by the dialog). """ - return _windows.FindReplaceData_SetFindString(*args, **kwargs) + return _windows_.FindReplaceData_SetFindString(*args, **kwargs) def SetReplaceString(*args, **kwargs): """ @@ -2856,7 +2856,7 @@ class FindReplaceData(core.Object): Set the replacement string (used as initial value by the dialog). """ - return _windows.FindReplaceData_SetReplaceString(*args, **kwargs) + return _windows_.FindReplaceData_SetReplaceString(*args, **kwargs) class FindReplaceDataPtr(FindReplaceData): @@ -2864,7 +2864,7 @@ class FindReplaceDataPtr(FindReplaceData): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = FindReplaceData -_windows.FindReplaceData_swigregister(FindReplaceDataPtr) +_windows_.FindReplaceData_swigregister(FindReplaceDataPtr) class FindReplaceDialog(Dialog): """ @@ -2886,7 +2886,7 @@ class FindReplaceDialog(Dialog): Create a FindReplaceDialog. The parent and data parameters must be non-None. Use Show to display the dialog. """ - newobj = _windows.new_FindReplaceDialog(*args, **kwargs) + newobj = _windows_.new_FindReplaceDialog(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -2899,7 +2899,7 @@ class FindReplaceDialog(Dialog): Create the dialog, for 2-phase create. """ - return _windows.FindReplaceDialog_Create(*args, **kwargs) + return _windows_.FindReplaceDialog_Create(*args, **kwargs) def GetData(*args, **kwargs): """ @@ -2907,7 +2907,7 @@ class FindReplaceDialog(Dialog): Get the FindReplaceData object used by this dialog. """ - return _windows.FindReplaceDialog_GetData(*args, **kwargs) + return _windows_.FindReplaceDialog_GetData(*args, **kwargs) def SetData(*args, **kwargs): """ @@ -2915,7 +2915,7 @@ class FindReplaceDialog(Dialog): Set the FindReplaceData object used by this dialog. """ - return _windows.FindReplaceDialog_SetData(*args, **kwargs) + return _windows_.FindReplaceDialog_SetData(*args, **kwargs) class FindReplaceDialogPtr(FindReplaceDialog): @@ -2923,7 +2923,7 @@ class FindReplaceDialogPtr(FindReplaceDialog): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = FindReplaceDialog -_windows.FindReplaceDialog_swigregister(FindReplaceDialogPtr) +_windows_.FindReplaceDialog_swigregister(FindReplaceDialogPtr) def PreFindReplaceDialog(*args, **kwargs): """ @@ -2931,20 +2931,20 @@ def PreFindReplaceDialog(*args, **kwargs): Precreate a FindReplaceDialog for 2-phase creation """ - val = _windows.new_PreFindReplaceDialog(*args, **kwargs) + val = _windows_.new_PreFindReplaceDialog(*args, **kwargs) val.thisown = 1 return val #--------------------------------------------------------------------------- -IDM_WINDOWTILE = _windows.IDM_WINDOWTILE -IDM_WINDOWTILEHOR = _windows.IDM_WINDOWTILEHOR -IDM_WINDOWCASCADE = _windows.IDM_WINDOWCASCADE -IDM_WINDOWICONS = _windows.IDM_WINDOWICONS -IDM_WINDOWNEXT = _windows.IDM_WINDOWNEXT -IDM_WINDOWTILEVERT = _windows.IDM_WINDOWTILEVERT -FIRST_MDI_CHILD = _windows.FIRST_MDI_CHILD -LAST_MDI_CHILD = _windows.LAST_MDI_CHILD +IDM_WINDOWTILE = _windows_.IDM_WINDOWTILE +IDM_WINDOWTILEHOR = _windows_.IDM_WINDOWTILEHOR +IDM_WINDOWCASCADE = _windows_.IDM_WINDOWCASCADE +IDM_WINDOWICONS = _windows_.IDM_WINDOWICONS +IDM_WINDOWNEXT = _windows_.IDM_WINDOWNEXT +IDM_WINDOWTILEVERT = _windows_.IDM_WINDOWTILEVERT +FIRST_MDI_CHILD = _windows_.FIRST_MDI_CHILD +LAST_MDI_CHILD = _windows_.LAST_MDI_CHILD class MDIParentFrame(Frame): def __repr__(self): return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) @@ -2954,7 +2954,7 @@ class MDIParentFrame(Frame): Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL, String name=FrameNameStr) -> MDIParentFrame """ - newobj = _windows.new_MDIParentFrame(*args, **kwargs) + newobj = _windows_.new_MDIParentFrame(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -2966,39 +2966,39 @@ class MDIParentFrame(Frame): Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL, String name=FrameNameStr) -> bool """ - return _windows.MDIParentFrame_Create(*args, **kwargs) + return _windows_.MDIParentFrame_Create(*args, **kwargs) def ActivateNext(*args, **kwargs): """ActivateNext(self)""" - return _windows.MDIParentFrame_ActivateNext(*args, **kwargs) + return _windows_.MDIParentFrame_ActivateNext(*args, **kwargs) def ActivatePrevious(*args, **kwargs): """ActivatePrevious(self)""" - return _windows.MDIParentFrame_ActivatePrevious(*args, **kwargs) + return _windows_.MDIParentFrame_ActivatePrevious(*args, **kwargs) def ArrangeIcons(*args, **kwargs): """ArrangeIcons(self)""" - return _windows.MDIParentFrame_ArrangeIcons(*args, **kwargs) + return _windows_.MDIParentFrame_ArrangeIcons(*args, **kwargs) def Cascade(*args, **kwargs): """Cascade(self)""" - return _windows.MDIParentFrame_Cascade(*args, **kwargs) + return _windows_.MDIParentFrame_Cascade(*args, **kwargs) def GetActiveChild(*args, **kwargs): """GetActiveChild(self) -> MDIChildFrame""" - return _windows.MDIParentFrame_GetActiveChild(*args, **kwargs) + return _windows_.MDIParentFrame_GetActiveChild(*args, **kwargs) def GetClientWindow(*args, **kwargs): """GetClientWindow(self) -> MDIClientWindow""" - return _windows.MDIParentFrame_GetClientWindow(*args, **kwargs) + return _windows_.MDIParentFrame_GetClientWindow(*args, **kwargs) def GetToolBar(*args, **kwargs): """GetToolBar(self) -> Window""" - return _windows.MDIParentFrame_GetToolBar(*args, **kwargs) + return _windows_.MDIParentFrame_GetToolBar(*args, **kwargs) def Tile(*args, **kwargs): """Tile(self)""" - return _windows.MDIParentFrame_Tile(*args, **kwargs) + return _windows_.MDIParentFrame_Tile(*args, **kwargs) class MDIParentFramePtr(MDIParentFrame): @@ -3006,11 +3006,11 @@ class MDIParentFramePtr(MDIParentFrame): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = MDIParentFrame -_windows.MDIParentFrame_swigregister(MDIParentFramePtr) +_windows_.MDIParentFrame_swigregister(MDIParentFramePtr) def PreMDIParentFrame(*args, **kwargs): """PreMDIParentFrame() -> MDIParentFrame""" - val = _windows.new_PreMDIParentFrame(*args, **kwargs) + val = _windows_.new_PreMDIParentFrame(*args, **kwargs) val.thisown = 1 return val @@ -3023,7 +3023,7 @@ class MDIChildFrame(Frame): Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> MDIChildFrame """ - newobj = _windows.new_MDIChildFrame(*args, **kwargs) + newobj = _windows_.new_MDIChildFrame(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -3035,19 +3035,19 @@ class MDIChildFrame(Frame): Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool """ - return _windows.MDIChildFrame_Create(*args, **kwargs) + return _windows_.MDIChildFrame_Create(*args, **kwargs) def Activate(*args, **kwargs): """Activate(self)""" - return _windows.MDIChildFrame_Activate(*args, **kwargs) + return _windows_.MDIChildFrame_Activate(*args, **kwargs) def Maximize(*args, **kwargs): """Maximize(self, bool maximize)""" - return _windows.MDIChildFrame_Maximize(*args, **kwargs) + return _windows_.MDIChildFrame_Maximize(*args, **kwargs) def Restore(*args, **kwargs): """Restore(self)""" - return _windows.MDIChildFrame_Restore(*args, **kwargs) + return _windows_.MDIChildFrame_Restore(*args, **kwargs) class MDIChildFramePtr(MDIChildFrame): @@ -3055,20 +3055,20 @@ class MDIChildFramePtr(MDIChildFrame): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = MDIChildFrame -_windows.MDIChildFrame_swigregister(MDIChildFramePtr) +_windows_.MDIChildFrame_swigregister(MDIChildFramePtr) def PreMDIChildFrame(*args, **kwargs): """PreMDIChildFrame() -> MDIChildFrame""" - val = _windows.new_PreMDIChildFrame(*args, **kwargs) + val = _windows_.new_PreMDIChildFrame(*args, **kwargs) val.thisown = 1 return val -class MDIClientWindow(core.Window): +class MDIClientWindow(_core.Window): def __repr__(self): return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, MDIParentFrame parent, long style=0) -> MDIClientWindow""" - newobj = _windows.new_MDIClientWindow(*args, **kwargs) + newobj = _windows_.new_MDIClientWindow(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -3076,7 +3076,7 @@ class MDIClientWindow(core.Window): def Create(*args, **kwargs): """Create(self, MDIParentFrame parent, long style=0) -> bool""" - return _windows.MDIClientWindow_Create(*args, **kwargs) + return _windows_.MDIClientWindow_Create(*args, **kwargs) class MDIClientWindowPtr(MDIClientWindow): @@ -3084,17 +3084,17 @@ class MDIClientWindowPtr(MDIClientWindow): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = MDIClientWindow -_windows.MDIClientWindow_swigregister(MDIClientWindowPtr) +_windows_.MDIClientWindow_swigregister(MDIClientWindowPtr) def PreMDIClientWindow(*args, **kwargs): """PreMDIClientWindow() -> MDIClientWindow""" - val = _windows.new_PreMDIClientWindow(*args, **kwargs) + val = _windows_.new_PreMDIClientWindow(*args, **kwargs) val.thisown = 1 return val #--------------------------------------------------------------------------- -class PyWindow(core.Window): +class PyWindow(_core.Window): def __repr__(self): return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -3102,7 +3102,7 @@ class PyWindow(core.Window): __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyWindow """ - newobj = _windows.new_PyWindow(*args, **kwargs) + newobj = _windows_.new_PyWindow(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -3110,87 +3110,87 @@ class PyWindow(core.Window): def _setCallbackInfo(*args, **kwargs): """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _windows.PyWindow__setCallbackInfo(*args, **kwargs) + return _windows_.PyWindow__setCallbackInfo(*args, **kwargs) def base_DoMoveWindow(*args, **kwargs): """base_DoMoveWindow(self, int x, int y, int width, int height)""" - return _windows.PyWindow_base_DoMoveWindow(*args, **kwargs) + return _windows_.PyWindow_base_DoMoveWindow(*args, **kwargs) def base_DoSetSize(*args, **kwargs): """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)""" - return _windows.PyWindow_base_DoSetSize(*args, **kwargs) + return _windows_.PyWindow_base_DoSetSize(*args, **kwargs) def base_DoSetClientSize(*args, **kwargs): """base_DoSetClientSize(self, int width, int height)""" - return _windows.PyWindow_base_DoSetClientSize(*args, **kwargs) + return _windows_.PyWindow_base_DoSetClientSize(*args, **kwargs) def base_DoSetVirtualSize(*args, **kwargs): """base_DoSetVirtualSize(self, int x, int y)""" - return _windows.PyWindow_base_DoSetVirtualSize(*args, **kwargs) + return _windows_.PyWindow_base_DoSetVirtualSize(*args, **kwargs) def base_DoGetSize(*args, **kwargs): """base_DoGetSize() -> (width, height)""" - return _windows.PyWindow_base_DoGetSize(*args, **kwargs) + return _windows_.PyWindow_base_DoGetSize(*args, **kwargs) def base_DoGetClientSize(*args, **kwargs): """base_DoGetClientSize() -> (width, height)""" - return _windows.PyWindow_base_DoGetClientSize(*args, **kwargs) + return _windows_.PyWindow_base_DoGetClientSize(*args, **kwargs) def base_DoGetPosition(*args, **kwargs): """base_DoGetPosition() -> (x,y)""" - return _windows.PyWindow_base_DoGetPosition(*args, **kwargs) + return _windows_.PyWindow_base_DoGetPosition(*args, **kwargs) def base_DoGetVirtualSize(*args, **kwargs): """base_DoGetVirtualSize(self) -> Size""" - return _windows.PyWindow_base_DoGetVirtualSize(*args, **kwargs) + return _windows_.PyWindow_base_DoGetVirtualSize(*args, **kwargs) def base_DoGetBestSize(*args, **kwargs): """base_DoGetBestSize(self) -> Size""" - return _windows.PyWindow_base_DoGetBestSize(*args, **kwargs) + return _windows_.PyWindow_base_DoGetBestSize(*args, **kwargs) def base_InitDialog(*args, **kwargs): """base_InitDialog(self)""" - return _windows.PyWindow_base_InitDialog(*args, **kwargs) + return _windows_.PyWindow_base_InitDialog(*args, **kwargs) def base_TransferDataToWindow(*args, **kwargs): """base_TransferDataToWindow(self) -> bool""" - return _windows.PyWindow_base_TransferDataToWindow(*args, **kwargs) + return _windows_.PyWindow_base_TransferDataToWindow(*args, **kwargs) def base_TransferDataFromWindow(*args, **kwargs): """base_TransferDataFromWindow(self) -> bool""" - return _windows.PyWindow_base_TransferDataFromWindow(*args, **kwargs) + return _windows_.PyWindow_base_TransferDataFromWindow(*args, **kwargs) def base_Validate(*args, **kwargs): """base_Validate(self) -> bool""" - return _windows.PyWindow_base_Validate(*args, **kwargs) + return _windows_.PyWindow_base_Validate(*args, **kwargs) def base_AcceptsFocus(*args, **kwargs): """base_AcceptsFocus(self) -> bool""" - return _windows.PyWindow_base_AcceptsFocus(*args, **kwargs) + return _windows_.PyWindow_base_AcceptsFocus(*args, **kwargs) def base_AcceptsFocusFromKeyboard(*args, **kwargs): """base_AcceptsFocusFromKeyboard(self) -> bool""" - return _windows.PyWindow_base_AcceptsFocusFromKeyboard(*args, **kwargs) + return _windows_.PyWindow_base_AcceptsFocusFromKeyboard(*args, **kwargs) def base_GetMaxSize(*args, **kwargs): """base_GetMaxSize(self) -> Size""" - return _windows.PyWindow_base_GetMaxSize(*args, **kwargs) + return _windows_.PyWindow_base_GetMaxSize(*args, **kwargs) def base_AddChild(*args, **kwargs): """base_AddChild(self, Window child)""" - return _windows.PyWindow_base_AddChild(*args, **kwargs) + return _windows_.PyWindow_base_AddChild(*args, **kwargs) def base_RemoveChild(*args, **kwargs): """base_RemoveChild(self, Window child)""" - return _windows.PyWindow_base_RemoveChild(*args, **kwargs) + return _windows_.PyWindow_base_RemoveChild(*args, **kwargs) def base_ShouldInheritColours(*args, **kwargs): """base_ShouldInheritColours(self) -> bool""" - return _windows.PyWindow_base_ShouldInheritColours(*args, **kwargs) + return _windows_.PyWindow_base_ShouldInheritColours(*args, **kwargs) def base_ApplyParentThemeBackground(*args, **kwargs): """base_ApplyParentThemeBackground(self, Colour c)""" - return _windows.PyWindow_base_ApplyParentThemeBackground(*args, **kwargs) + return _windows_.PyWindow_base_ApplyParentThemeBackground(*args, **kwargs) class PyWindowPtr(PyWindow): @@ -3198,11 +3198,11 @@ class PyWindowPtr(PyWindow): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = PyWindow -_windows.PyWindow_swigregister(PyWindowPtr) +_windows_.PyWindow_swigregister(PyWindowPtr) def PrePyWindow(*args, **kwargs): """PrePyWindow() -> PyWindow""" - val = _windows.new_PrePyWindow(*args, **kwargs) + val = _windows_.new_PrePyWindow(*args, **kwargs) val.thisown = 1 return val @@ -3214,7 +3214,7 @@ class PyPanel(Panel): __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyPanel """ - newobj = _windows.new_PyPanel(*args, **kwargs) + newobj = _windows_.new_PyPanel(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -3222,87 +3222,87 @@ class PyPanel(Panel): def _setCallbackInfo(*args, **kwargs): """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _windows.PyPanel__setCallbackInfo(*args, **kwargs) + return _windows_.PyPanel__setCallbackInfo(*args, **kwargs) def base_DoMoveWindow(*args, **kwargs): """base_DoMoveWindow(self, int x, int y, int width, int height)""" - return _windows.PyPanel_base_DoMoveWindow(*args, **kwargs) + return _windows_.PyPanel_base_DoMoveWindow(*args, **kwargs) def base_DoSetSize(*args, **kwargs): """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)""" - return _windows.PyPanel_base_DoSetSize(*args, **kwargs) + return _windows_.PyPanel_base_DoSetSize(*args, **kwargs) def base_DoSetClientSize(*args, **kwargs): """base_DoSetClientSize(self, int width, int height)""" - return _windows.PyPanel_base_DoSetClientSize(*args, **kwargs) + return _windows_.PyPanel_base_DoSetClientSize(*args, **kwargs) def base_DoSetVirtualSize(*args, **kwargs): """base_DoSetVirtualSize(self, int x, int y)""" - return _windows.PyPanel_base_DoSetVirtualSize(*args, **kwargs) + return _windows_.PyPanel_base_DoSetVirtualSize(*args, **kwargs) def base_DoGetSize(*args, **kwargs): """base_DoGetSize() -> (width, height)""" - return _windows.PyPanel_base_DoGetSize(*args, **kwargs) + return _windows_.PyPanel_base_DoGetSize(*args, **kwargs) def base_DoGetClientSize(*args, **kwargs): """base_DoGetClientSize() -> (width, height)""" - return _windows.PyPanel_base_DoGetClientSize(*args, **kwargs) + return _windows_.PyPanel_base_DoGetClientSize(*args, **kwargs) def base_DoGetPosition(*args, **kwargs): """base_DoGetPosition() -> (x,y)""" - return _windows.PyPanel_base_DoGetPosition(*args, **kwargs) + return _windows_.PyPanel_base_DoGetPosition(*args, **kwargs) def base_DoGetVirtualSize(*args, **kwargs): """base_DoGetVirtualSize(self) -> Size""" - return _windows.PyPanel_base_DoGetVirtualSize(*args, **kwargs) + return _windows_.PyPanel_base_DoGetVirtualSize(*args, **kwargs) def base_DoGetBestSize(*args, **kwargs): """base_DoGetBestSize(self) -> Size""" - return _windows.PyPanel_base_DoGetBestSize(*args, **kwargs) + return _windows_.PyPanel_base_DoGetBestSize(*args, **kwargs) def base_InitDialog(*args, **kwargs): """base_InitDialog(self)""" - return _windows.PyPanel_base_InitDialog(*args, **kwargs) + return _windows_.PyPanel_base_InitDialog(*args, **kwargs) def base_TransferDataToWindow(*args, **kwargs): """base_TransferDataToWindow(self) -> bool""" - return _windows.PyPanel_base_TransferDataToWindow(*args, **kwargs) + return _windows_.PyPanel_base_TransferDataToWindow(*args, **kwargs) def base_TransferDataFromWindow(*args, **kwargs): """base_TransferDataFromWindow(self) -> bool""" - return _windows.PyPanel_base_TransferDataFromWindow(*args, **kwargs) + return _windows_.PyPanel_base_TransferDataFromWindow(*args, **kwargs) def base_Validate(*args, **kwargs): """base_Validate(self) -> bool""" - return _windows.PyPanel_base_Validate(*args, **kwargs) + return _windows_.PyPanel_base_Validate(*args, **kwargs) def base_AcceptsFocus(*args, **kwargs): """base_AcceptsFocus(self) -> bool""" - return _windows.PyPanel_base_AcceptsFocus(*args, **kwargs) + return _windows_.PyPanel_base_AcceptsFocus(*args, **kwargs) def base_AcceptsFocusFromKeyboard(*args, **kwargs): """base_AcceptsFocusFromKeyboard(self) -> bool""" - return _windows.PyPanel_base_AcceptsFocusFromKeyboard(*args, **kwargs) + return _windows_.PyPanel_base_AcceptsFocusFromKeyboard(*args, **kwargs) def base_GetMaxSize(*args, **kwargs): """base_GetMaxSize(self) -> Size""" - return _windows.PyPanel_base_GetMaxSize(*args, **kwargs) + return _windows_.PyPanel_base_GetMaxSize(*args, **kwargs) def base_AddChild(*args, **kwargs): """base_AddChild(self, Window child)""" - return _windows.PyPanel_base_AddChild(*args, **kwargs) + return _windows_.PyPanel_base_AddChild(*args, **kwargs) def base_RemoveChild(*args, **kwargs): """base_RemoveChild(self, Window child)""" - return _windows.PyPanel_base_RemoveChild(*args, **kwargs) + return _windows_.PyPanel_base_RemoveChild(*args, **kwargs) def base_ShouldInheritColours(*args, **kwargs): """base_ShouldInheritColours(self) -> bool""" - return _windows.PyPanel_base_ShouldInheritColours(*args, **kwargs) + return _windows_.PyPanel_base_ShouldInheritColours(*args, **kwargs) def base_ApplyParentThemeBackground(*args, **kwargs): """base_ApplyParentThemeBackground(self, Colour c)""" - return _windows.PyPanel_base_ApplyParentThemeBackground(*args, **kwargs) + return _windows_.PyPanel_base_ApplyParentThemeBackground(*args, **kwargs) class PyPanelPtr(PyPanel): @@ -3310,11 +3310,11 @@ class PyPanelPtr(PyPanel): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = PyPanel -_windows.PyPanel_swigregister(PyPanelPtr) +_windows_.PyPanel_swigregister(PyPanelPtr) def PrePyPanel(*args, **kwargs): """PrePyPanel() -> PyPanel""" - val = _windows.new_PrePyPanel(*args, **kwargs) + val = _windows_.new_PrePyPanel(*args, **kwargs) val.thisown = 1 return val @@ -3326,7 +3326,7 @@ class PyScrolledWindow(ScrolledWindow): __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyScrolledWindow """ - newobj = _windows.new_PyScrolledWindow(*args, **kwargs) + newobj = _windows_.new_PyScrolledWindow(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -3334,87 +3334,87 @@ class PyScrolledWindow(ScrolledWindow): def _setCallbackInfo(*args, **kwargs): """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _windows.PyScrolledWindow__setCallbackInfo(*args, **kwargs) + return _windows_.PyScrolledWindow__setCallbackInfo(*args, **kwargs) def base_DoMoveWindow(*args, **kwargs): """base_DoMoveWindow(self, int x, int y, int width, int height)""" - return _windows.PyScrolledWindow_base_DoMoveWindow(*args, **kwargs) + return _windows_.PyScrolledWindow_base_DoMoveWindow(*args, **kwargs) def base_DoSetSize(*args, **kwargs): """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)""" - return _windows.PyScrolledWindow_base_DoSetSize(*args, **kwargs) + return _windows_.PyScrolledWindow_base_DoSetSize(*args, **kwargs) def base_DoSetClientSize(*args, **kwargs): """base_DoSetClientSize(self, int width, int height)""" - return _windows.PyScrolledWindow_base_DoSetClientSize(*args, **kwargs) + return _windows_.PyScrolledWindow_base_DoSetClientSize(*args, **kwargs) def base_DoSetVirtualSize(*args, **kwargs): """base_DoSetVirtualSize(self, int x, int y)""" - return _windows.PyScrolledWindow_base_DoSetVirtualSize(*args, **kwargs) + return _windows_.PyScrolledWindow_base_DoSetVirtualSize(*args, **kwargs) def base_DoGetSize(*args, **kwargs): """base_DoGetSize() -> (width, height)""" - return _windows.PyScrolledWindow_base_DoGetSize(*args, **kwargs) + return _windows_.PyScrolledWindow_base_DoGetSize(*args, **kwargs) def base_DoGetClientSize(*args, **kwargs): """base_DoGetClientSize() -> (width, height)""" - return _windows.PyScrolledWindow_base_DoGetClientSize(*args, **kwargs) + return _windows_.PyScrolledWindow_base_DoGetClientSize(*args, **kwargs) def base_DoGetPosition(*args, **kwargs): """base_DoGetPosition() -> (x,y)""" - return _windows.PyScrolledWindow_base_DoGetPosition(*args, **kwargs) + return _windows_.PyScrolledWindow_base_DoGetPosition(*args, **kwargs) def base_DoGetVirtualSize(*args, **kwargs): """base_DoGetVirtualSize(self) -> Size""" - return _windows.PyScrolledWindow_base_DoGetVirtualSize(*args, **kwargs) + return _windows_.PyScrolledWindow_base_DoGetVirtualSize(*args, **kwargs) def base_DoGetBestSize(*args, **kwargs): """base_DoGetBestSize(self) -> Size""" - return _windows.PyScrolledWindow_base_DoGetBestSize(*args, **kwargs) + return _windows_.PyScrolledWindow_base_DoGetBestSize(*args, **kwargs) def base_InitDialog(*args, **kwargs): """base_InitDialog(self)""" - return _windows.PyScrolledWindow_base_InitDialog(*args, **kwargs) + return _windows_.PyScrolledWindow_base_InitDialog(*args, **kwargs) def base_TransferDataToWindow(*args, **kwargs): """base_TransferDataToWindow(self) -> bool""" - return _windows.PyScrolledWindow_base_TransferDataToWindow(*args, **kwargs) + return _windows_.PyScrolledWindow_base_TransferDataToWindow(*args, **kwargs) def base_TransferDataFromWindow(*args, **kwargs): """base_TransferDataFromWindow(self) -> bool""" - return _windows.PyScrolledWindow_base_TransferDataFromWindow(*args, **kwargs) + return _windows_.PyScrolledWindow_base_TransferDataFromWindow(*args, **kwargs) def base_Validate(*args, **kwargs): """base_Validate(self) -> bool""" - return _windows.PyScrolledWindow_base_Validate(*args, **kwargs) + return _windows_.PyScrolledWindow_base_Validate(*args, **kwargs) def base_AcceptsFocus(*args, **kwargs): """base_AcceptsFocus(self) -> bool""" - return _windows.PyScrolledWindow_base_AcceptsFocus(*args, **kwargs) + return _windows_.PyScrolledWindow_base_AcceptsFocus(*args, **kwargs) def base_AcceptsFocusFromKeyboard(*args, **kwargs): """base_AcceptsFocusFromKeyboard(self) -> bool""" - return _windows.PyScrolledWindow_base_AcceptsFocusFromKeyboard(*args, **kwargs) + return _windows_.PyScrolledWindow_base_AcceptsFocusFromKeyboard(*args, **kwargs) def base_GetMaxSize(*args, **kwargs): """base_GetMaxSize(self) -> Size""" - return _windows.PyScrolledWindow_base_GetMaxSize(*args, **kwargs) + return _windows_.PyScrolledWindow_base_GetMaxSize(*args, **kwargs) def base_AddChild(*args, **kwargs): """base_AddChild(self, Window child)""" - return _windows.PyScrolledWindow_base_AddChild(*args, **kwargs) + return _windows_.PyScrolledWindow_base_AddChild(*args, **kwargs) def base_RemoveChild(*args, **kwargs): """base_RemoveChild(self, Window child)""" - return _windows.PyScrolledWindow_base_RemoveChild(*args, **kwargs) + return _windows_.PyScrolledWindow_base_RemoveChild(*args, **kwargs) def base_ShouldInheritColours(*args, **kwargs): """base_ShouldInheritColours(self) -> bool""" - return _windows.PyScrolledWindow_base_ShouldInheritColours(*args, **kwargs) + return _windows_.PyScrolledWindow_base_ShouldInheritColours(*args, **kwargs) def base_ApplyParentThemeBackground(*args, **kwargs): """base_ApplyParentThemeBackground(self, Colour c)""" - return _windows.PyScrolledWindow_base_ApplyParentThemeBackground(*args, **kwargs) + return _windows_.PyScrolledWindow_base_ApplyParentThemeBackground(*args, **kwargs) class PyScrolledWindowPtr(PyScrolledWindow): @@ -3422,31 +3422,31 @@ class PyScrolledWindowPtr(PyScrolledWindow): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = PyScrolledWindow -_windows.PyScrolledWindow_swigregister(PyScrolledWindowPtr) +_windows_.PyScrolledWindow_swigregister(PyScrolledWindowPtr) def PrePyScrolledWindow(*args, **kwargs): """PrePyScrolledWindow() -> PyScrolledWindow""" - val = _windows.new_PrePyScrolledWindow(*args, **kwargs) + val = _windows_.new_PrePyScrolledWindow(*args, **kwargs) val.thisown = 1 return val #--------------------------------------------------------------------------- -PRINT_MODE_NONE = _windows.PRINT_MODE_NONE -PRINT_MODE_PREVIEW = _windows.PRINT_MODE_PREVIEW -PRINT_MODE_FILE = _windows.PRINT_MODE_FILE -PRINT_MODE_PRINTER = _windows.PRINT_MODE_PRINTER -PRINT_MODE_STREAM = _windows.PRINT_MODE_STREAM -class PrintData(core.Object): +PRINT_MODE_NONE = _windows_.PRINT_MODE_NONE +PRINT_MODE_PREVIEW = _windows_.PRINT_MODE_PREVIEW +PRINT_MODE_FILE = _windows_.PRINT_MODE_FILE +PRINT_MODE_PRINTER = _windows_.PRINT_MODE_PRINTER +PRINT_MODE_STREAM = _windows_.PRINT_MODE_STREAM +class PrintData(_core.Object): def __repr__(self): return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> PrintData""" - newobj = _windows.new_PrintData(*args, **kwargs) + newobj = _windows_.new_PrintData(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_windows.delete_PrintData): + def __del__(self, destroy=_windows_.delete_PrintData): """__del__(self)""" try: if self.thisown: destroy(self) @@ -3454,175 +3454,175 @@ class PrintData(core.Object): def GetNoCopies(*args, **kwargs): """GetNoCopies(self) -> int""" - return _windows.PrintData_GetNoCopies(*args, **kwargs) + return _windows_.PrintData_GetNoCopies(*args, **kwargs) def GetCollate(*args, **kwargs): """GetCollate(self) -> bool""" - return _windows.PrintData_GetCollate(*args, **kwargs) + return _windows_.PrintData_GetCollate(*args, **kwargs) def GetOrientation(*args, **kwargs): """GetOrientation(self) -> int""" - return _windows.PrintData_GetOrientation(*args, **kwargs) + return _windows_.PrintData_GetOrientation(*args, **kwargs) def Ok(*args, **kwargs): """Ok(self) -> bool""" - return _windows.PrintData_Ok(*args, **kwargs) + return _windows_.PrintData_Ok(*args, **kwargs) def GetPrinterName(*args, **kwargs): """GetPrinterName(self) -> String""" - return _windows.PrintData_GetPrinterName(*args, **kwargs) + return _windows_.PrintData_GetPrinterName(*args, **kwargs) def GetColour(*args, **kwargs): """GetColour(self) -> bool""" - return _windows.PrintData_GetColour(*args, **kwargs) + return _windows_.PrintData_GetColour(*args, **kwargs) def GetDuplex(*args, **kwargs): """GetDuplex(self) -> int""" - return _windows.PrintData_GetDuplex(*args, **kwargs) + return _windows_.PrintData_GetDuplex(*args, **kwargs) def GetPaperId(*args, **kwargs): """GetPaperId(self) -> int""" - return _windows.PrintData_GetPaperId(*args, **kwargs) + return _windows_.PrintData_GetPaperId(*args, **kwargs) def GetPaperSize(*args, **kwargs): """GetPaperSize(self) -> Size""" - return _windows.PrintData_GetPaperSize(*args, **kwargs) + return _windows_.PrintData_GetPaperSize(*args, **kwargs) def GetQuality(*args, **kwargs): """GetQuality(self) -> int""" - return _windows.PrintData_GetQuality(*args, **kwargs) + return _windows_.PrintData_GetQuality(*args, **kwargs) def SetNoCopies(*args, **kwargs): """SetNoCopies(self, int v)""" - return _windows.PrintData_SetNoCopies(*args, **kwargs) + return _windows_.PrintData_SetNoCopies(*args, **kwargs) def SetCollate(*args, **kwargs): """SetCollate(self, bool flag)""" - return _windows.PrintData_SetCollate(*args, **kwargs) + return _windows_.PrintData_SetCollate(*args, **kwargs) def SetOrientation(*args, **kwargs): """SetOrientation(self, int orient)""" - return _windows.PrintData_SetOrientation(*args, **kwargs) + return _windows_.PrintData_SetOrientation(*args, **kwargs) def SetPrinterName(*args, **kwargs): """SetPrinterName(self, String name)""" - return _windows.PrintData_SetPrinterName(*args, **kwargs) + return _windows_.PrintData_SetPrinterName(*args, **kwargs) def SetColour(*args, **kwargs): """SetColour(self, bool colour)""" - return _windows.PrintData_SetColour(*args, **kwargs) + return _windows_.PrintData_SetColour(*args, **kwargs) def SetDuplex(*args, **kwargs): """SetDuplex(self, int duplex)""" - return _windows.PrintData_SetDuplex(*args, **kwargs) + return _windows_.PrintData_SetDuplex(*args, **kwargs) def SetPaperId(*args, **kwargs): """SetPaperId(self, int sizeId)""" - return _windows.PrintData_SetPaperId(*args, **kwargs) + return _windows_.PrintData_SetPaperId(*args, **kwargs) def SetPaperSize(*args, **kwargs): """SetPaperSize(self, Size sz)""" - return _windows.PrintData_SetPaperSize(*args, **kwargs) + return _windows_.PrintData_SetPaperSize(*args, **kwargs) def SetQuality(*args, **kwargs): """SetQuality(self, int quality)""" - return _windows.PrintData_SetQuality(*args, **kwargs) + return _windows_.PrintData_SetQuality(*args, **kwargs) def GetPrinterCommand(*args, **kwargs): """GetPrinterCommand(self) -> String""" - return _windows.PrintData_GetPrinterCommand(*args, **kwargs) + return _windows_.PrintData_GetPrinterCommand(*args, **kwargs) def GetPrinterOptions(*args, **kwargs): """GetPrinterOptions(self) -> String""" - return _windows.PrintData_GetPrinterOptions(*args, **kwargs) + return _windows_.PrintData_GetPrinterOptions(*args, **kwargs) def GetPreviewCommand(*args, **kwargs): """GetPreviewCommand(self) -> String""" - return _windows.PrintData_GetPreviewCommand(*args, **kwargs) + return _windows_.PrintData_GetPreviewCommand(*args, **kwargs) def GetFilename(*args, **kwargs): """GetFilename(self) -> String""" - return _windows.PrintData_GetFilename(*args, **kwargs) + return _windows_.PrintData_GetFilename(*args, **kwargs) def GetFontMetricPath(*args, **kwargs): """GetFontMetricPath(self) -> String""" - return _windows.PrintData_GetFontMetricPath(*args, **kwargs) + return _windows_.PrintData_GetFontMetricPath(*args, **kwargs) def GetPrinterScaleX(*args, **kwargs): """GetPrinterScaleX(self) -> double""" - return _windows.PrintData_GetPrinterScaleX(*args, **kwargs) + return _windows_.PrintData_GetPrinterScaleX(*args, **kwargs) def GetPrinterScaleY(*args, **kwargs): """GetPrinterScaleY(self) -> double""" - return _windows.PrintData_GetPrinterScaleY(*args, **kwargs) + return _windows_.PrintData_GetPrinterScaleY(*args, **kwargs) def GetPrinterTranslateX(*args, **kwargs): """GetPrinterTranslateX(self) -> long""" - return _windows.PrintData_GetPrinterTranslateX(*args, **kwargs) + return _windows_.PrintData_GetPrinterTranslateX(*args, **kwargs) def GetPrinterTranslateY(*args, **kwargs): """GetPrinterTranslateY(self) -> long""" - return _windows.PrintData_GetPrinterTranslateY(*args, **kwargs) + return _windows_.PrintData_GetPrinterTranslateY(*args, **kwargs) def GetPrintMode(*args, **kwargs): """GetPrintMode(self) -> int""" - return _windows.PrintData_GetPrintMode(*args, **kwargs) + return _windows_.PrintData_GetPrintMode(*args, **kwargs) def SetPrinterCommand(*args, **kwargs): """SetPrinterCommand(self, String command)""" - return _windows.PrintData_SetPrinterCommand(*args, **kwargs) + return _windows_.PrintData_SetPrinterCommand(*args, **kwargs) def SetPrinterOptions(*args, **kwargs): """SetPrinterOptions(self, String options)""" - return _windows.PrintData_SetPrinterOptions(*args, **kwargs) + return _windows_.PrintData_SetPrinterOptions(*args, **kwargs) def SetPreviewCommand(*args, **kwargs): """SetPreviewCommand(self, String command)""" - return _windows.PrintData_SetPreviewCommand(*args, **kwargs) + return _windows_.PrintData_SetPreviewCommand(*args, **kwargs) def SetFilename(*args, **kwargs): """SetFilename(self, String filename)""" - return _windows.PrintData_SetFilename(*args, **kwargs) + return _windows_.PrintData_SetFilename(*args, **kwargs) def SetFontMetricPath(*args, **kwargs): """SetFontMetricPath(self, String path)""" - return _windows.PrintData_SetFontMetricPath(*args, **kwargs) + return _windows_.PrintData_SetFontMetricPath(*args, **kwargs) def SetPrinterScaleX(*args, **kwargs): """SetPrinterScaleX(self, double x)""" - return _windows.PrintData_SetPrinterScaleX(*args, **kwargs) + return _windows_.PrintData_SetPrinterScaleX(*args, **kwargs) def SetPrinterScaleY(*args, **kwargs): """SetPrinterScaleY(self, double y)""" - return _windows.PrintData_SetPrinterScaleY(*args, **kwargs) + return _windows_.PrintData_SetPrinterScaleY(*args, **kwargs) def SetPrinterScaling(*args, **kwargs): """SetPrinterScaling(self, double x, double y)""" - return _windows.PrintData_SetPrinterScaling(*args, **kwargs) + return _windows_.PrintData_SetPrinterScaling(*args, **kwargs) def SetPrinterTranslateX(*args, **kwargs): """SetPrinterTranslateX(self, long x)""" - return _windows.PrintData_SetPrinterTranslateX(*args, **kwargs) + return _windows_.PrintData_SetPrinterTranslateX(*args, **kwargs) def SetPrinterTranslateY(*args, **kwargs): """SetPrinterTranslateY(self, long y)""" - return _windows.PrintData_SetPrinterTranslateY(*args, **kwargs) + return _windows_.PrintData_SetPrinterTranslateY(*args, **kwargs) def SetPrinterTranslation(*args, **kwargs): """SetPrinterTranslation(self, long x, long y)""" - return _windows.PrintData_SetPrinterTranslation(*args, **kwargs) + return _windows_.PrintData_SetPrinterTranslation(*args, **kwargs) def SetPrintMode(*args, **kwargs): """SetPrintMode(self, int printMode)""" - return _windows.PrintData_SetPrintMode(*args, **kwargs) + return _windows_.PrintData_SetPrintMode(*args, **kwargs) def GetOutputStream(*args, **kwargs): """GetOutputStream(self) -> OutputStream""" - return _windows.PrintData_GetOutputStream(*args, **kwargs) + return _windows_.PrintData_GetOutputStream(*args, **kwargs) def SetOutputStream(*args, **kwargs): """SetOutputStream(self, OutputStream outputstream)""" - return _windows.PrintData_SetOutputStream(*args, **kwargs) + return _windows_.PrintData_SetOutputStream(*args, **kwargs) def __nonzero__(self): return self.Ok() @@ -3631,20 +3631,20 @@ class PrintDataPtr(PrintData): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = PrintData -_windows.PrintData_swigregister(PrintDataPtr) +_windows_.PrintData_swigregister(PrintDataPtr) PrintoutTitleStr = cvar.PrintoutTitleStr PreviewCanvasNameStr = cvar.PreviewCanvasNameStr -class PageSetupDialogData(core.Object): +class PageSetupDialogData(_core.Object): def __repr__(self): return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self) -> PageSetupDialogData""" - newobj = _windows.new_PageSetupDialogData(*args, **kwargs) + newobj = _windows_.new_PageSetupDialogData(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_windows.delete_PageSetupDialogData): + def __del__(self, destroy=_windows_.delete_PageSetupDialogData): """__del__(self)""" try: if self.thisown: destroy(self) @@ -3652,119 +3652,119 @@ class PageSetupDialogData(core.Object): def EnableHelp(*args, **kwargs): """EnableHelp(self, bool flag)""" - return _windows.PageSetupDialogData_EnableHelp(*args, **kwargs) + return _windows_.PageSetupDialogData_EnableHelp(*args, **kwargs) def EnableMargins(*args, **kwargs): """EnableMargins(self, bool flag)""" - return _windows.PageSetupDialogData_EnableMargins(*args, **kwargs) + return _windows_.PageSetupDialogData_EnableMargins(*args, **kwargs) def EnableOrientation(*args, **kwargs): """EnableOrientation(self, bool flag)""" - return _windows.PageSetupDialogData_EnableOrientation(*args, **kwargs) + return _windows_.PageSetupDialogData_EnableOrientation(*args, **kwargs) def EnablePaper(*args, **kwargs): """EnablePaper(self, bool flag)""" - return _windows.PageSetupDialogData_EnablePaper(*args, **kwargs) + return _windows_.PageSetupDialogData_EnablePaper(*args, **kwargs) def EnablePrinter(*args, **kwargs): """EnablePrinter(self, bool flag)""" - return _windows.PageSetupDialogData_EnablePrinter(*args, **kwargs) + return _windows_.PageSetupDialogData_EnablePrinter(*args, **kwargs) def GetDefaultMinMargins(*args, **kwargs): """GetDefaultMinMargins(self) -> bool""" - return _windows.PageSetupDialogData_GetDefaultMinMargins(*args, **kwargs) + return _windows_.PageSetupDialogData_GetDefaultMinMargins(*args, **kwargs) def GetEnableMargins(*args, **kwargs): """GetEnableMargins(self) -> bool""" - return _windows.PageSetupDialogData_GetEnableMargins(*args, **kwargs) + return _windows_.PageSetupDialogData_GetEnableMargins(*args, **kwargs) def GetEnableOrientation(*args, **kwargs): """GetEnableOrientation(self) -> bool""" - return _windows.PageSetupDialogData_GetEnableOrientation(*args, **kwargs) + return _windows_.PageSetupDialogData_GetEnableOrientation(*args, **kwargs) def GetEnablePaper(*args, **kwargs): """GetEnablePaper(self) -> bool""" - return _windows.PageSetupDialogData_GetEnablePaper(*args, **kwargs) + return _windows_.PageSetupDialogData_GetEnablePaper(*args, **kwargs) def GetEnablePrinter(*args, **kwargs): """GetEnablePrinter(self) -> bool""" - return _windows.PageSetupDialogData_GetEnablePrinter(*args, **kwargs) + return _windows_.PageSetupDialogData_GetEnablePrinter(*args, **kwargs) def GetEnableHelp(*args, **kwargs): """GetEnableHelp(self) -> bool""" - return _windows.PageSetupDialogData_GetEnableHelp(*args, **kwargs) + return _windows_.PageSetupDialogData_GetEnableHelp(*args, **kwargs) def GetDefaultInfo(*args, **kwargs): """GetDefaultInfo(self) -> bool""" - return _windows.PageSetupDialogData_GetDefaultInfo(*args, **kwargs) + return _windows_.PageSetupDialogData_GetDefaultInfo(*args, **kwargs) def GetMarginTopLeft(*args, **kwargs): """GetMarginTopLeft(self) -> Point""" - return _windows.PageSetupDialogData_GetMarginTopLeft(*args, **kwargs) + return _windows_.PageSetupDialogData_GetMarginTopLeft(*args, **kwargs) def GetMarginBottomRight(*args, **kwargs): """GetMarginBottomRight(self) -> Point""" - return _windows.PageSetupDialogData_GetMarginBottomRight(*args, **kwargs) + return _windows_.PageSetupDialogData_GetMarginBottomRight(*args, **kwargs) def GetMinMarginTopLeft(*args, **kwargs): """GetMinMarginTopLeft(self) -> Point""" - return _windows.PageSetupDialogData_GetMinMarginTopLeft(*args, **kwargs) + return _windows_.PageSetupDialogData_GetMinMarginTopLeft(*args, **kwargs) def GetMinMarginBottomRight(*args, **kwargs): """GetMinMarginBottomRight(self) -> Point""" - return _windows.PageSetupDialogData_GetMinMarginBottomRight(*args, **kwargs) + return _windows_.PageSetupDialogData_GetMinMarginBottomRight(*args, **kwargs) def GetPaperId(*args, **kwargs): """GetPaperId(self) -> int""" - return _windows.PageSetupDialogData_GetPaperId(*args, **kwargs) + return _windows_.PageSetupDialogData_GetPaperId(*args, **kwargs) def GetPaperSize(*args, **kwargs): """GetPaperSize(self) -> Size""" - return _windows.PageSetupDialogData_GetPaperSize(*args, **kwargs) + return _windows_.PageSetupDialogData_GetPaperSize(*args, **kwargs) def GetPrintData(*args, **kwargs): """GetPrintData(self) -> PrintData""" - return _windows.PageSetupDialogData_GetPrintData(*args, **kwargs) + return _windows_.PageSetupDialogData_GetPrintData(*args, **kwargs) def Ok(*args, **kwargs): """Ok(self) -> bool""" - return _windows.PageSetupDialogData_Ok(*args, **kwargs) + return _windows_.PageSetupDialogData_Ok(*args, **kwargs) def SetDefaultInfo(*args, **kwargs): """SetDefaultInfo(self, bool flag)""" - return _windows.PageSetupDialogData_SetDefaultInfo(*args, **kwargs) + return _windows_.PageSetupDialogData_SetDefaultInfo(*args, **kwargs) def SetDefaultMinMargins(*args, **kwargs): """SetDefaultMinMargins(self, bool flag)""" - return _windows.PageSetupDialogData_SetDefaultMinMargins(*args, **kwargs) + return _windows_.PageSetupDialogData_SetDefaultMinMargins(*args, **kwargs) def SetMarginTopLeft(*args, **kwargs): """SetMarginTopLeft(self, Point pt)""" - return _windows.PageSetupDialogData_SetMarginTopLeft(*args, **kwargs) + return _windows_.PageSetupDialogData_SetMarginTopLeft(*args, **kwargs) def SetMarginBottomRight(*args, **kwargs): """SetMarginBottomRight(self, Point pt)""" - return _windows.PageSetupDialogData_SetMarginBottomRight(*args, **kwargs) + return _windows_.PageSetupDialogData_SetMarginBottomRight(*args, **kwargs) def SetMinMarginTopLeft(*args, **kwargs): """SetMinMarginTopLeft(self, Point pt)""" - return _windows.PageSetupDialogData_SetMinMarginTopLeft(*args, **kwargs) + return _windows_.PageSetupDialogData_SetMinMarginTopLeft(*args, **kwargs) def SetMinMarginBottomRight(*args, **kwargs): """SetMinMarginBottomRight(self, Point pt)""" - return _windows.PageSetupDialogData_SetMinMarginBottomRight(*args, **kwargs) + return _windows_.PageSetupDialogData_SetMinMarginBottomRight(*args, **kwargs) def SetPaperId(*args, **kwargs): """SetPaperId(self, int id)""" - return _windows.PageSetupDialogData_SetPaperId(*args, **kwargs) + return _windows_.PageSetupDialogData_SetPaperId(*args, **kwargs) def SetPaperSize(*args, **kwargs): """SetPaperSize(self, Size size)""" - return _windows.PageSetupDialogData_SetPaperSize(*args, **kwargs) + return _windows_.PageSetupDialogData_SetPaperSize(*args, **kwargs) def SetPrintData(*args, **kwargs): """SetPrintData(self, PrintData printData)""" - return _windows.PageSetupDialogData_SetPrintData(*args, **kwargs) + return _windows_.PageSetupDialogData_SetPrintData(*args, **kwargs) def __nonzero__(self): return self.Ok() @@ -3773,14 +3773,14 @@ class PageSetupDialogDataPtr(PageSetupDialogData): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = PageSetupDialogData -_windows.PageSetupDialogData_swigregister(PageSetupDialogDataPtr) +_windows_.PageSetupDialogData_swigregister(PageSetupDialogDataPtr) class PageSetupDialog(Dialog): def __repr__(self): return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog""" - newobj = _windows.new_PageSetupDialog(*args, **kwargs) + newobj = _windows_.new_PageSetupDialog(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -3788,11 +3788,11 @@ class PageSetupDialog(Dialog): def GetPageSetupData(*args, **kwargs): """GetPageSetupData(self) -> PageSetupDialogData""" - return _windows.PageSetupDialog_GetPageSetupData(*args, **kwargs) + return _windows_.PageSetupDialog_GetPageSetupData(*args, **kwargs) def ShowModal(*args, **kwargs): """ShowModal(self) -> int""" - return _windows.PageSetupDialog_ShowModal(*args, **kwargs) + return _windows_.PageSetupDialog_ShowModal(*args, **kwargs) class PageSetupDialogPtr(PageSetupDialog): @@ -3800,9 +3800,9 @@ class PageSetupDialogPtr(PageSetupDialog): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = PageSetupDialog -_windows.PageSetupDialog_swigregister(PageSetupDialogPtr) +_windows_.PageSetupDialog_swigregister(PageSetupDialogPtr) -class PrintDialogData(core.Object): +class PrintDialogData(_core.Object): def __repr__(self): return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args): @@ -3810,11 +3810,11 @@ class PrintDialogData(core.Object): __init__(self) -> PrintDialogData __init__(self, PrintData printData) -> PrintDialogData """ - newobj = _windows.new_PrintDialogData(*args) + newobj = _windows_.new_PrintDialogData(*args) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_windows.delete_PrintDialogData): + def __del__(self, destroy=_windows_.delete_PrintDialogData): """__del__(self)""" try: if self.thisown: destroy(self) @@ -3822,127 +3822,127 @@ class PrintDialogData(core.Object): def GetFromPage(*args, **kwargs): """GetFromPage(self) -> int""" - return _windows.PrintDialogData_GetFromPage(*args, **kwargs) + return _windows_.PrintDialogData_GetFromPage(*args, **kwargs) def GetToPage(*args, **kwargs): """GetToPage(self) -> int""" - return _windows.PrintDialogData_GetToPage(*args, **kwargs) + return _windows_.PrintDialogData_GetToPage(*args, **kwargs) def GetMinPage(*args, **kwargs): """GetMinPage(self) -> int""" - return _windows.PrintDialogData_GetMinPage(*args, **kwargs) + return _windows_.PrintDialogData_GetMinPage(*args, **kwargs) def GetMaxPage(*args, **kwargs): """GetMaxPage(self) -> int""" - return _windows.PrintDialogData_GetMaxPage(*args, **kwargs) + return _windows_.PrintDialogData_GetMaxPage(*args, **kwargs) def GetNoCopies(*args, **kwargs): """GetNoCopies(self) -> int""" - return _windows.PrintDialogData_GetNoCopies(*args, **kwargs) + return _windows_.PrintDialogData_GetNoCopies(*args, **kwargs) def GetAllPages(*args, **kwargs): """GetAllPages(self) -> bool""" - return _windows.PrintDialogData_GetAllPages(*args, **kwargs) + return _windows_.PrintDialogData_GetAllPages(*args, **kwargs) def GetSelection(*args, **kwargs): """GetSelection(self) -> bool""" - return _windows.PrintDialogData_GetSelection(*args, **kwargs) + return _windows_.PrintDialogData_GetSelection(*args, **kwargs) def GetCollate(*args, **kwargs): """GetCollate(self) -> bool""" - return _windows.PrintDialogData_GetCollate(*args, **kwargs) + return _windows_.PrintDialogData_GetCollate(*args, **kwargs) def GetPrintToFile(*args, **kwargs): """GetPrintToFile(self) -> bool""" - return _windows.PrintDialogData_GetPrintToFile(*args, **kwargs) + return _windows_.PrintDialogData_GetPrintToFile(*args, **kwargs) def GetSetupDialog(*args, **kwargs): """GetSetupDialog(self) -> bool""" - return _windows.PrintDialogData_GetSetupDialog(*args, **kwargs) + return _windows_.PrintDialogData_GetSetupDialog(*args, **kwargs) def SetFromPage(*args, **kwargs): """SetFromPage(self, int v)""" - return _windows.PrintDialogData_SetFromPage(*args, **kwargs) + return _windows_.PrintDialogData_SetFromPage(*args, **kwargs) def SetToPage(*args, **kwargs): """SetToPage(self, int v)""" - return _windows.PrintDialogData_SetToPage(*args, **kwargs) + return _windows_.PrintDialogData_SetToPage(*args, **kwargs) def SetMinPage(*args, **kwargs): """SetMinPage(self, int v)""" - return _windows.PrintDialogData_SetMinPage(*args, **kwargs) + return _windows_.PrintDialogData_SetMinPage(*args, **kwargs) def SetMaxPage(*args, **kwargs): """SetMaxPage(self, int v)""" - return _windows.PrintDialogData_SetMaxPage(*args, **kwargs) + return _windows_.PrintDialogData_SetMaxPage(*args, **kwargs) def SetNoCopies(*args, **kwargs): """SetNoCopies(self, int v)""" - return _windows.PrintDialogData_SetNoCopies(*args, **kwargs) + return _windows_.PrintDialogData_SetNoCopies(*args, **kwargs) def SetAllPages(*args, **kwargs): """SetAllPages(self, bool flag)""" - return _windows.PrintDialogData_SetAllPages(*args, **kwargs) + return _windows_.PrintDialogData_SetAllPages(*args, **kwargs) def SetSelection(*args, **kwargs): """SetSelection(self, bool flag)""" - return _windows.PrintDialogData_SetSelection(*args, **kwargs) + return _windows_.PrintDialogData_SetSelection(*args, **kwargs) def SetCollate(*args, **kwargs): """SetCollate(self, bool flag)""" - return _windows.PrintDialogData_SetCollate(*args, **kwargs) + return _windows_.PrintDialogData_SetCollate(*args, **kwargs) def SetPrintToFile(*args, **kwargs): """SetPrintToFile(self, bool flag)""" - return _windows.PrintDialogData_SetPrintToFile(*args, **kwargs) + return _windows_.PrintDialogData_SetPrintToFile(*args, **kwargs) def SetSetupDialog(*args, **kwargs): """SetSetupDialog(self, bool flag)""" - return _windows.PrintDialogData_SetSetupDialog(*args, **kwargs) + return _windows_.PrintDialogData_SetSetupDialog(*args, **kwargs) def EnablePrintToFile(*args, **kwargs): """EnablePrintToFile(self, bool flag)""" - return _windows.PrintDialogData_EnablePrintToFile(*args, **kwargs) + return _windows_.PrintDialogData_EnablePrintToFile(*args, **kwargs) def EnableSelection(*args, **kwargs): """EnableSelection(self, bool flag)""" - return _windows.PrintDialogData_EnableSelection(*args, **kwargs) + return _windows_.PrintDialogData_EnableSelection(*args, **kwargs) def EnablePageNumbers(*args, **kwargs): """EnablePageNumbers(self, bool flag)""" - return _windows.PrintDialogData_EnablePageNumbers(*args, **kwargs) + return _windows_.PrintDialogData_EnablePageNumbers(*args, **kwargs) def EnableHelp(*args, **kwargs): """EnableHelp(self, bool flag)""" - return _windows.PrintDialogData_EnableHelp(*args, **kwargs) + return _windows_.PrintDialogData_EnableHelp(*args, **kwargs) def GetEnablePrintToFile(*args, **kwargs): """GetEnablePrintToFile(self) -> bool""" - return _windows.PrintDialogData_GetEnablePrintToFile(*args, **kwargs) + return _windows_.PrintDialogData_GetEnablePrintToFile(*args, **kwargs) def GetEnableSelection(*args, **kwargs): """GetEnableSelection(self) -> bool""" - return _windows.PrintDialogData_GetEnableSelection(*args, **kwargs) + return _windows_.PrintDialogData_GetEnableSelection(*args, **kwargs) def GetEnablePageNumbers(*args, **kwargs): """GetEnablePageNumbers(self) -> bool""" - return _windows.PrintDialogData_GetEnablePageNumbers(*args, **kwargs) + return _windows_.PrintDialogData_GetEnablePageNumbers(*args, **kwargs) def GetEnableHelp(*args, **kwargs): """GetEnableHelp(self) -> bool""" - return _windows.PrintDialogData_GetEnableHelp(*args, **kwargs) + return _windows_.PrintDialogData_GetEnableHelp(*args, **kwargs) def Ok(*args, **kwargs): """Ok(self) -> bool""" - return _windows.PrintDialogData_Ok(*args, **kwargs) + return _windows_.PrintDialogData_Ok(*args, **kwargs) def GetPrintData(*args, **kwargs): """GetPrintData(self) -> PrintData""" - return _windows.PrintDialogData_GetPrintData(*args, **kwargs) + return _windows_.PrintDialogData_GetPrintData(*args, **kwargs) def SetPrintData(*args, **kwargs): """SetPrintData(self, PrintData printData)""" - return _windows.PrintDialogData_SetPrintData(*args, **kwargs) + return _windows_.PrintDialogData_SetPrintData(*args, **kwargs) def __nonzero__(self): return self.Ok() @@ -3951,14 +3951,14 @@ class PrintDialogDataPtr(PrintDialogData): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = PrintDialogData -_windows.PrintDialogData_swigregister(PrintDialogDataPtr) +_windows_.PrintDialogData_swigregister(PrintDialogDataPtr) class PrintDialog(Dialog): def __repr__(self): return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog""" - newobj = _windows.new_PrintDialog(*args, **kwargs) + newobj = _windows_.new_PrintDialog(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -3966,15 +3966,15 @@ class PrintDialog(Dialog): def GetPrintDialogData(*args, **kwargs): """GetPrintDialogData(self) -> PrintDialogData""" - return _windows.PrintDialog_GetPrintDialogData(*args, **kwargs) + return _windows_.PrintDialog_GetPrintDialogData(*args, **kwargs) def GetPrintDC(*args, **kwargs): """GetPrintDC(self) -> DC""" - return _windows.PrintDialog_GetPrintDC(*args, **kwargs) + return _windows_.PrintDialog_GetPrintDC(*args, **kwargs) def ShowModal(*args, **kwargs): """ShowModal(self) -> int""" - return _windows.PrintDialog_ShowModal(*args, **kwargs) + return _windows_.PrintDialog_ShowModal(*args, **kwargs) class PrintDialogPtr(PrintDialog): @@ -3982,21 +3982,21 @@ class PrintDialogPtr(PrintDialog): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = PrintDialog -_windows.PrintDialog_swigregister(PrintDialogPtr) +_windows_.PrintDialog_swigregister(PrintDialogPtr) -PRINTER_NO_ERROR = _windows.PRINTER_NO_ERROR -PRINTER_CANCELLED = _windows.PRINTER_CANCELLED -PRINTER_ERROR = _windows.PRINTER_ERROR -class Printer(core.Object): +PRINTER_NO_ERROR = _windows_.PRINTER_NO_ERROR +PRINTER_CANCELLED = _windows_.PRINTER_CANCELLED +PRINTER_ERROR = _windows_.PRINTER_ERROR +class Printer(_core.Object): def __repr__(self): return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, PrintDialogData data=None) -> Printer""" - newobj = _windows.new_Printer(*args, **kwargs) + newobj = _windows_.new_Printer(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def __del__(self, destroy=_windows.delete_Printer): + def __del__(self, destroy=_windows_.delete_Printer): """__del__(self)""" try: if self.thisown: destroy(self) @@ -4004,35 +4004,35 @@ class Printer(core.Object): def CreateAbortWindow(*args, **kwargs): """CreateAbortWindow(self, Window parent, Printout printout)""" - return _windows.Printer_CreateAbortWindow(*args, **kwargs) + return _windows_.Printer_CreateAbortWindow(*args, **kwargs) def GetPrintDialogData(*args, **kwargs): """GetPrintDialogData(self) -> PrintDialogData""" - return _windows.Printer_GetPrintDialogData(*args, **kwargs) + return _windows_.Printer_GetPrintDialogData(*args, **kwargs) def Print(*args, **kwargs): """Print(self, Window parent, Printout printout, int prompt=True) -> bool""" - return _windows.Printer_Print(*args, **kwargs) + return _windows_.Printer_Print(*args, **kwargs) def PrintDialog(*args, **kwargs): """PrintDialog(self, Window parent) -> DC""" - return _windows.Printer_PrintDialog(*args, **kwargs) + return _windows_.Printer_PrintDialog(*args, **kwargs) def ReportError(*args, **kwargs): """ReportError(self, Window parent, Printout printout, String message)""" - return _windows.Printer_ReportError(*args, **kwargs) + return _windows_.Printer_ReportError(*args, **kwargs) def Setup(*args, **kwargs): """Setup(self, Window parent) -> bool""" - return _windows.Printer_Setup(*args, **kwargs) + return _windows_.Printer_Setup(*args, **kwargs) def GetAbort(*args, **kwargs): """GetAbort(self) -> bool""" - return _windows.Printer_GetAbort(*args, **kwargs) + return _windows_.Printer_GetAbort(*args, **kwargs) def GetLastError(*args, **kwargs): """Printer.GetLastError() -> int""" - return _windows.Printer_GetLastError(*args, **kwargs) + return _windows_.Printer_GetLastError(*args, **kwargs) GetLastError = staticmethod(GetLastError) @@ -4041,18 +4041,18 @@ class PrinterPtr(Printer): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = Printer -_windows.Printer_swigregister(PrinterPtr) +_windows_.Printer_swigregister(PrinterPtr) def Printer_GetLastError(*args, **kwargs): """Printer_GetLastError() -> int""" - return _windows.Printer_GetLastError(*args, **kwargs) + return _windows_.Printer_GetLastError(*args, **kwargs) -class Printout(core.Object): +class Printout(_core.Object): def __repr__(self): return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): """__init__(self, String title=PrintoutTitleStr) -> Printout""" - newobj = _windows.new_Printout(*args, **kwargs) + newobj = _windows_.new_Printout(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -4060,87 +4060,87 @@ class Printout(core.Object): def _setCallbackInfo(*args, **kwargs): """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _windows.Printout__setCallbackInfo(*args, **kwargs) + return _windows_.Printout__setCallbackInfo(*args, **kwargs) def GetTitle(*args, **kwargs): """GetTitle(self) -> String""" - return _windows.Printout_GetTitle(*args, **kwargs) + return _windows_.Printout_GetTitle(*args, **kwargs) def GetDC(*args, **kwargs): """GetDC(self) -> DC""" - return _windows.Printout_GetDC(*args, **kwargs) + return _windows_.Printout_GetDC(*args, **kwargs) def SetDC(*args, **kwargs): """SetDC(self, DC dc)""" - return _windows.Printout_SetDC(*args, **kwargs) + return _windows_.Printout_SetDC(*args, **kwargs) def SetPageSizePixels(*args, **kwargs): """SetPageSizePixels(self, int w, int h)""" - return _windows.Printout_SetPageSizePixels(*args, **kwargs) + return _windows_.Printout_SetPageSizePixels(*args, **kwargs) def GetPageSizePixels(*args, **kwargs): """GetPageSizePixels() -> (w, h)""" - return _windows.Printout_GetPageSizePixels(*args, **kwargs) + return _windows_.Printout_GetPageSizePixels(*args, **kwargs) def SetPageSizeMM(*args, **kwargs): """SetPageSizeMM(self, int w, int h)""" - return _windows.Printout_SetPageSizeMM(*args, **kwargs) + return _windows_.Printout_SetPageSizeMM(*args, **kwargs) def GetPageSizeMM(*args, **kwargs): """GetPageSizeMM() -> (w, h)""" - return _windows.Printout_GetPageSizeMM(*args, **kwargs) + return _windows_.Printout_GetPageSizeMM(*args, **kwargs) def SetPPIScreen(*args, **kwargs): """SetPPIScreen(self, int x, int y)""" - return _windows.Printout_SetPPIScreen(*args, **kwargs) + return _windows_.Printout_SetPPIScreen(*args, **kwargs) def GetPPIScreen(*args, **kwargs): """GetPPIScreen() -> (x,y)""" - return _windows.Printout_GetPPIScreen(*args, **kwargs) + return _windows_.Printout_GetPPIScreen(*args, **kwargs) def SetPPIPrinter(*args, **kwargs): """SetPPIPrinter(self, int x, int y)""" - return _windows.Printout_SetPPIPrinter(*args, **kwargs) + return _windows_.Printout_SetPPIPrinter(*args, **kwargs) def GetPPIPrinter(*args, **kwargs): """GetPPIPrinter() -> (x,y)""" - return _windows.Printout_GetPPIPrinter(*args, **kwargs) + return _windows_.Printout_GetPPIPrinter(*args, **kwargs) def IsPreview(*args, **kwargs): """IsPreview(self) -> bool""" - return _windows.Printout_IsPreview(*args, **kwargs) + return _windows_.Printout_IsPreview(*args, **kwargs) def SetIsPreview(*args, **kwargs): """SetIsPreview(self, bool p)""" - return _windows.Printout_SetIsPreview(*args, **kwargs) + return _windows_.Printout_SetIsPreview(*args, **kwargs) def base_OnBeginDocument(*args, **kwargs): """base_OnBeginDocument(self, int startPage, int endPage) -> bool""" - return _windows.Printout_base_OnBeginDocument(*args, **kwargs) + return _windows_.Printout_base_OnBeginDocument(*args, **kwargs) def base_OnEndDocument(*args, **kwargs): """base_OnEndDocument(self)""" - return _windows.Printout_base_OnEndDocument(*args, **kwargs) + return _windows_.Printout_base_OnEndDocument(*args, **kwargs) def base_OnBeginPrinting(*args, **kwargs): """base_OnBeginPrinting(self)""" - return _windows.Printout_base_OnBeginPrinting(*args, **kwargs) + return _windows_.Printout_base_OnBeginPrinting(*args, **kwargs) def base_OnEndPrinting(*args, **kwargs): """base_OnEndPrinting(self)""" - return _windows.Printout_base_OnEndPrinting(*args, **kwargs) + return _windows_.Printout_base_OnEndPrinting(*args, **kwargs) def base_OnPreparePrinting(*args, **kwargs): """base_OnPreparePrinting(self)""" - return _windows.Printout_base_OnPreparePrinting(*args, **kwargs) + return _windows_.Printout_base_OnPreparePrinting(*args, **kwargs) def base_HasPage(*args, **kwargs): """base_HasPage(self, int page) -> bool""" - return _windows.Printout_base_HasPage(*args, **kwargs) + return _windows_.Printout_base_HasPage(*args, **kwargs) def base_GetPageInfo(*args, **kwargs): """base_GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)""" - return _windows.Printout_base_GetPageInfo(*args, **kwargs) + return _windows_.Printout_base_GetPageInfo(*args, **kwargs) class PrintoutPtr(Printout): @@ -4148,7 +4148,7 @@ class PrintoutPtr(Printout): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = Printout -_windows.Printout_swigregister(PrintoutPtr) +_windows_.Printout_swigregister(PrintoutPtr) class PreviewCanvas(ScrolledWindow): def __repr__(self): @@ -4159,7 +4159,7 @@ class PreviewCanvas(ScrolledWindow): Size size=DefaultSize, long style=0, String name=PreviewCanvasNameStr) -> PreviewCanvas """ - newobj = _windows.new_PreviewCanvas(*args, **kwargs) + newobj = _windows_.new_PreviewCanvas(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -4171,7 +4171,7 @@ class PreviewCanvasPtr(PreviewCanvas): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = PreviewCanvas -_windows.PreviewCanvas_swigregister(PreviewCanvasPtr) +_windows_.PreviewCanvas_swigregister(PreviewCanvasPtr) class PreviewFrame(Frame): def __repr__(self): @@ -4182,7 +4182,7 @@ class PreviewFrame(Frame): Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame """ - newobj = _windows.new_PreviewFrame(*args, **kwargs) + newobj = _windows_.new_PreviewFrame(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -4190,19 +4190,19 @@ class PreviewFrame(Frame): def Initialize(*args, **kwargs): """Initialize(self)""" - return _windows.PreviewFrame_Initialize(*args, **kwargs) + return _windows_.PreviewFrame_Initialize(*args, **kwargs) def CreateControlBar(*args, **kwargs): """CreateControlBar(self)""" - return _windows.PreviewFrame_CreateControlBar(*args, **kwargs) + return _windows_.PreviewFrame_CreateControlBar(*args, **kwargs) def CreateCanvas(*args, **kwargs): """CreateCanvas(self)""" - return _windows.PreviewFrame_CreateCanvas(*args, **kwargs) + return _windows_.PreviewFrame_CreateCanvas(*args, **kwargs) def GetControlBar(*args, **kwargs): """GetControlBar(self) -> PreviewControlBar""" - return _windows.PreviewFrame_GetControlBar(*args, **kwargs) + return _windows_.PreviewFrame_GetControlBar(*args, **kwargs) class PreviewFramePtr(PreviewFrame): @@ -4210,24 +4210,24 @@ class PreviewFramePtr(PreviewFrame): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = PreviewFrame -_windows.PreviewFrame_swigregister(PreviewFramePtr) - -PREVIEW_PRINT = _windows.PREVIEW_PRINT -PREVIEW_PREVIOUS = _windows.PREVIEW_PREVIOUS -PREVIEW_NEXT = _windows.PREVIEW_NEXT -PREVIEW_ZOOM = _windows.PREVIEW_ZOOM -PREVIEW_FIRST = _windows.PREVIEW_FIRST -PREVIEW_LAST = _windows.PREVIEW_LAST -PREVIEW_GOTO = _windows.PREVIEW_GOTO -PREVIEW_DEFAULT = _windows.PREVIEW_DEFAULT -ID_PREVIEW_CLOSE = _windows.ID_PREVIEW_CLOSE -ID_PREVIEW_NEXT = _windows.ID_PREVIEW_NEXT -ID_PREVIEW_PREVIOUS = _windows.ID_PREVIEW_PREVIOUS -ID_PREVIEW_PRINT = _windows.ID_PREVIEW_PRINT -ID_PREVIEW_ZOOM = _windows.ID_PREVIEW_ZOOM -ID_PREVIEW_FIRST = _windows.ID_PREVIEW_FIRST -ID_PREVIEW_LAST = _windows.ID_PREVIEW_LAST -ID_PREVIEW_GOTO = _windows.ID_PREVIEW_GOTO +_windows_.PreviewFrame_swigregister(PreviewFramePtr) + +PREVIEW_PRINT = _windows_.PREVIEW_PRINT +PREVIEW_PREVIOUS = _windows_.PREVIEW_PREVIOUS +PREVIEW_NEXT = _windows_.PREVIEW_NEXT +PREVIEW_ZOOM = _windows_.PREVIEW_ZOOM +PREVIEW_FIRST = _windows_.PREVIEW_FIRST +PREVIEW_LAST = _windows_.PREVIEW_LAST +PREVIEW_GOTO = _windows_.PREVIEW_GOTO +PREVIEW_DEFAULT = _windows_.PREVIEW_DEFAULT +ID_PREVIEW_CLOSE = _windows_.ID_PREVIEW_CLOSE +ID_PREVIEW_NEXT = _windows_.ID_PREVIEW_NEXT +ID_PREVIEW_PREVIOUS = _windows_.ID_PREVIEW_PREVIOUS +ID_PREVIEW_PRINT = _windows_.ID_PREVIEW_PRINT +ID_PREVIEW_ZOOM = _windows_.ID_PREVIEW_ZOOM +ID_PREVIEW_FIRST = _windows_.ID_PREVIEW_FIRST +ID_PREVIEW_LAST = _windows_.ID_PREVIEW_LAST +ID_PREVIEW_GOTO = _windows_.ID_PREVIEW_GOTO class PreviewControlBar(Panel): def __repr__(self): return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) @@ -4237,7 +4237,7 @@ class PreviewControlBar(Panel): Point pos=DefaultPosition, Size size=DefaultSize, long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar """ - newobj = _windows.new_PreviewControlBar(*args, **kwargs) + newobj = _windows_.new_PreviewControlBar(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -4245,35 +4245,35 @@ class PreviewControlBar(Panel): def GetZoomControl(*args, **kwargs): """GetZoomControl(self) -> int""" - return _windows.PreviewControlBar_GetZoomControl(*args, **kwargs) + return _windows_.PreviewControlBar_GetZoomControl(*args, **kwargs) def SetZoomControl(*args, **kwargs): """SetZoomControl(self, int zoom)""" - return _windows.PreviewControlBar_SetZoomControl(*args, **kwargs) + return _windows_.PreviewControlBar_SetZoomControl(*args, **kwargs) def GetPrintPreview(*args, **kwargs): """GetPrintPreview(self) -> PrintPreview""" - return _windows.PreviewControlBar_GetPrintPreview(*args, **kwargs) + return _windows_.PreviewControlBar_GetPrintPreview(*args, **kwargs) def OnNext(*args, **kwargs): """OnNext(self)""" - return _windows.PreviewControlBar_OnNext(*args, **kwargs) + return _windows_.PreviewControlBar_OnNext(*args, **kwargs) def OnPrevious(*args, **kwargs): """OnPrevious(self)""" - return _windows.PreviewControlBar_OnPrevious(*args, **kwargs) + return _windows_.PreviewControlBar_OnPrevious(*args, **kwargs) def OnFirst(*args, **kwargs): """OnFirst(self)""" - return _windows.PreviewControlBar_OnFirst(*args, **kwargs) + return _windows_.PreviewControlBar_OnFirst(*args, **kwargs) def OnLast(*args, **kwargs): """OnLast(self)""" - return _windows.PreviewControlBar_OnLast(*args, **kwargs) + return _windows_.PreviewControlBar_OnLast(*args, **kwargs) def OnGoto(*args, **kwargs): """OnGoto(self)""" - return _windows.PreviewControlBar_OnGoto(*args, **kwargs) + return _windows_.PreviewControlBar_OnGoto(*args, **kwargs) class PreviewControlBarPtr(PreviewControlBar): @@ -4281,9 +4281,9 @@ class PreviewControlBarPtr(PreviewControlBar): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = PreviewControlBar -_windows.PreviewControlBar_swigregister(PreviewControlBarPtr) +_windows_.PreviewControlBar_swigregister(PreviewControlBarPtr) -class PrintPreview(core.Object): +class PrintPreview(_core.Object): def __repr__(self): return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args): @@ -4291,97 +4291,97 @@ class PrintPreview(core.Object): __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview """ - newobj = _windows.new_PrintPreview(*args) + newobj = _windows_.new_PrintPreview(*args) self.this = newobj.this self.thisown = 1 del newobj.thisown def SetCurrentPage(*args, **kwargs): """SetCurrentPage(self, int pageNum) -> bool""" - return _windows.PrintPreview_SetCurrentPage(*args, **kwargs) + return _windows_.PrintPreview_SetCurrentPage(*args, **kwargs) def GetCurrentPage(*args, **kwargs): """GetCurrentPage(self) -> int""" - return _windows.PrintPreview_GetCurrentPage(*args, **kwargs) + return _windows_.PrintPreview_GetCurrentPage(*args, **kwargs) def SetPrintout(*args, **kwargs): """SetPrintout(self, Printout printout)""" - return _windows.PrintPreview_SetPrintout(*args, **kwargs) + return _windows_.PrintPreview_SetPrintout(*args, **kwargs) def GetPrintout(*args, **kwargs): """GetPrintout(self) -> Printout""" - return _windows.PrintPreview_GetPrintout(*args, **kwargs) + return _windows_.PrintPreview_GetPrintout(*args, **kwargs) def GetPrintoutForPrinting(*args, **kwargs): """GetPrintoutForPrinting(self) -> Printout""" - return _windows.PrintPreview_GetPrintoutForPrinting(*args, **kwargs) + return _windows_.PrintPreview_GetPrintoutForPrinting(*args, **kwargs) def SetFrame(*args, **kwargs): """SetFrame(self, Frame frame)""" - return _windows.PrintPreview_SetFrame(*args, **kwargs) + return _windows_.PrintPreview_SetFrame(*args, **kwargs) def SetCanvas(*args, **kwargs): """SetCanvas(self, PreviewCanvas canvas)""" - return _windows.PrintPreview_SetCanvas(*args, **kwargs) + return _windows_.PrintPreview_SetCanvas(*args, **kwargs) def GetFrame(*args, **kwargs): """GetFrame(self) -> Frame""" - return _windows.PrintPreview_GetFrame(*args, **kwargs) + return _windows_.PrintPreview_GetFrame(*args, **kwargs) def GetCanvas(*args, **kwargs): """GetCanvas(self) -> PreviewCanvas""" - return _windows.PrintPreview_GetCanvas(*args, **kwargs) + return _windows_.PrintPreview_GetCanvas(*args, **kwargs) def PaintPage(*args, **kwargs): """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool""" - return _windows.PrintPreview_PaintPage(*args, **kwargs) + return _windows_.PrintPreview_PaintPage(*args, **kwargs) def DrawBlankPage(*args, **kwargs): """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool""" - return _windows.PrintPreview_DrawBlankPage(*args, **kwargs) + return _windows_.PrintPreview_DrawBlankPage(*args, **kwargs) def RenderPage(*args, **kwargs): """RenderPage(self, int pageNum) -> bool""" - return _windows.PrintPreview_RenderPage(*args, **kwargs) + return _windows_.PrintPreview_RenderPage(*args, **kwargs) def AdjustScrollbars(*args, **kwargs): """AdjustScrollbars(self, PreviewCanvas canvas)""" - return _windows.PrintPreview_AdjustScrollbars(*args, **kwargs) + return _windows_.PrintPreview_AdjustScrollbars(*args, **kwargs) def GetPrintDialogData(*args, **kwargs): """GetPrintDialogData(self) -> PrintDialogData""" - return _windows.PrintPreview_GetPrintDialogData(*args, **kwargs) + return _windows_.PrintPreview_GetPrintDialogData(*args, **kwargs) def SetZoom(*args, **kwargs): """SetZoom(self, int percent)""" - return _windows.PrintPreview_SetZoom(*args, **kwargs) + return _windows_.PrintPreview_SetZoom(*args, **kwargs) def GetZoom(*args, **kwargs): """GetZoom(self) -> int""" - return _windows.PrintPreview_GetZoom(*args, **kwargs) + return _windows_.PrintPreview_GetZoom(*args, **kwargs) def GetMaxPage(*args, **kwargs): """GetMaxPage(self) -> int""" - return _windows.PrintPreview_GetMaxPage(*args, **kwargs) + return _windows_.PrintPreview_GetMaxPage(*args, **kwargs) def GetMinPage(*args, **kwargs): """GetMinPage(self) -> int""" - return _windows.PrintPreview_GetMinPage(*args, **kwargs) + return _windows_.PrintPreview_GetMinPage(*args, **kwargs) def Ok(*args, **kwargs): """Ok(self) -> bool""" - return _windows.PrintPreview_Ok(*args, **kwargs) + return _windows_.PrintPreview_Ok(*args, **kwargs) def SetOk(*args, **kwargs): """SetOk(self, bool ok)""" - return _windows.PrintPreview_SetOk(*args, **kwargs) + return _windows_.PrintPreview_SetOk(*args, **kwargs) def Print(*args, **kwargs): """Print(self, bool interactive) -> bool""" - return _windows.PrintPreview_Print(*args, **kwargs) + return _windows_.PrintPreview_Print(*args, **kwargs) def DetermineScaling(*args, **kwargs): """DetermineScaling(self)""" - return _windows.PrintPreview_DetermineScaling(*args, **kwargs) + return _windows_.PrintPreview_DetermineScaling(*args, **kwargs) def __nonzero__(self): return self.Ok() @@ -4390,7 +4390,7 @@ class PrintPreviewPtr(PrintPreview): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = PrintPreview -_windows.PrintPreview_swigregister(PrintPreviewPtr) +_windows_.PrintPreview_swigregister(PrintPreviewPtr) class PyPrintPreview(PrintPreview): def __repr__(self): @@ -4400,7 +4400,7 @@ class PyPrintPreview(PrintPreview): __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview """ - newobj = _windows.new_PyPrintPreview(*args) + newobj = _windows_.new_PyPrintPreview(*args) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -4408,35 +4408,35 @@ class PyPrintPreview(PrintPreview): def _setCallbackInfo(*args, **kwargs): """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _windows.PyPrintPreview__setCallbackInfo(*args, **kwargs) + return _windows_.PyPrintPreview__setCallbackInfo(*args, **kwargs) def base_SetCurrentPage(*args, **kwargs): """base_SetCurrentPage(self, int pageNum) -> bool""" - return _windows.PyPrintPreview_base_SetCurrentPage(*args, **kwargs) + return _windows_.PyPrintPreview_base_SetCurrentPage(*args, **kwargs) def base_PaintPage(*args, **kwargs): """base_PaintPage(self, PreviewCanvas canvas, DC dc) -> bool""" - return _windows.PyPrintPreview_base_PaintPage(*args, **kwargs) + return _windows_.PyPrintPreview_base_PaintPage(*args, **kwargs) def base_DrawBlankPage(*args, **kwargs): """base_DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool""" - return _windows.PyPrintPreview_base_DrawBlankPage(*args, **kwargs) + return _windows_.PyPrintPreview_base_DrawBlankPage(*args, **kwargs) def base_RenderPage(*args, **kwargs): """base_RenderPage(self, int pageNum) -> bool""" - return _windows.PyPrintPreview_base_RenderPage(*args, **kwargs) + return _windows_.PyPrintPreview_base_RenderPage(*args, **kwargs) def base_SetZoom(*args, **kwargs): """base_SetZoom(self, int percent)""" - return _windows.PyPrintPreview_base_SetZoom(*args, **kwargs) + return _windows_.PyPrintPreview_base_SetZoom(*args, **kwargs) def base_Print(*args, **kwargs): """base_Print(self, bool interactive) -> bool""" - return _windows.PyPrintPreview_base_Print(*args, **kwargs) + return _windows_.PyPrintPreview_base_Print(*args, **kwargs) def base_DetermineScaling(*args, **kwargs): """base_DetermineScaling(self)""" - return _windows.PyPrintPreview_base_DetermineScaling(*args, **kwargs) + return _windows_.PyPrintPreview_base_DetermineScaling(*args, **kwargs) class PyPrintPreviewPtr(PyPrintPreview): @@ -4444,7 +4444,7 @@ class PyPrintPreviewPtr(PyPrintPreview): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = PyPrintPreview -_windows.PyPrintPreview_swigregister(PyPrintPreviewPtr) +_windows_.PyPrintPreview_swigregister(PyPrintPreviewPtr) class PyPreviewFrame(PreviewFrame): def __repr__(self): @@ -4455,7 +4455,7 @@ class PyPreviewFrame(PreviewFrame): Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame """ - newobj = _windows.new_PyPreviewFrame(*args, **kwargs) + newobj = _windows_.new_PyPreviewFrame(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -4463,27 +4463,27 @@ class PyPreviewFrame(PreviewFrame): def _setCallbackInfo(*args, **kwargs): """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _windows.PyPreviewFrame__setCallbackInfo(*args, **kwargs) + return _windows_.PyPreviewFrame__setCallbackInfo(*args, **kwargs) def SetPreviewCanvas(*args, **kwargs): """SetPreviewCanvas(self, PreviewCanvas canvas)""" - return _windows.PyPreviewFrame_SetPreviewCanvas(*args, **kwargs) + return _windows_.PyPreviewFrame_SetPreviewCanvas(*args, **kwargs) def SetControlBar(*args, **kwargs): """SetControlBar(self, PreviewControlBar bar)""" - return _windows.PyPreviewFrame_SetControlBar(*args, **kwargs) + return _windows_.PyPreviewFrame_SetControlBar(*args, **kwargs) def base_Initialize(*args, **kwargs): """base_Initialize(self)""" - return _windows.PyPreviewFrame_base_Initialize(*args, **kwargs) + return _windows_.PyPreviewFrame_base_Initialize(*args, **kwargs) def base_CreateCanvas(*args, **kwargs): """base_CreateCanvas(self)""" - return _windows.PyPreviewFrame_base_CreateCanvas(*args, **kwargs) + return _windows_.PyPreviewFrame_base_CreateCanvas(*args, **kwargs) def base_CreateControlBar(*args, **kwargs): """base_CreateControlBar(self)""" - return _windows.PyPreviewFrame_base_CreateControlBar(*args, **kwargs) + return _windows_.PyPreviewFrame_base_CreateControlBar(*args, **kwargs) class PyPreviewFramePtr(PyPreviewFrame): @@ -4491,7 +4491,7 @@ class PyPreviewFramePtr(PyPreviewFrame): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = PyPreviewFrame -_windows.PyPreviewFrame_swigregister(PyPreviewFramePtr) +_windows_.PyPreviewFrame_swigregister(PyPreviewFramePtr) class PyPreviewControlBar(PreviewControlBar): def __repr__(self): @@ -4502,7 +4502,7 @@ class PyPreviewControlBar(PreviewControlBar): Point pos=DefaultPosition, Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyPreviewControlBar """ - newobj = _windows.new_PyPreviewControlBar(*args, **kwargs) + newobj = _windows_.new_PyPreviewControlBar(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown @@ -4510,19 +4510,19 @@ class PyPreviewControlBar(PreviewControlBar): def _setCallbackInfo(*args, **kwargs): """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _windows.PyPreviewControlBar__setCallbackInfo(*args, **kwargs) + return _windows_.PyPreviewControlBar__setCallbackInfo(*args, **kwargs) def SetPrintPreview(*args, **kwargs): """SetPrintPreview(self, PrintPreview preview)""" - return _windows.PyPreviewControlBar_SetPrintPreview(*args, **kwargs) + return _windows_.PyPreviewControlBar_SetPrintPreview(*args, **kwargs) def base_CreateButtons(*args, **kwargs): """base_CreateButtons(self)""" - return _windows.PyPreviewControlBar_base_CreateButtons(*args, **kwargs) + return _windows_.PyPreviewControlBar_base_CreateButtons(*args, **kwargs) def base_SetZoomControl(*args, **kwargs): """base_SetZoomControl(self, int zoom)""" - return _windows.PyPreviewControlBar_base_SetZoomControl(*args, **kwargs) + return _windows_.PyPreviewControlBar_base_SetZoomControl(*args, **kwargs) class PyPreviewControlBarPtr(PyPreviewControlBar): @@ -4530,6 +4530,6 @@ class PyPreviewControlBarPtr(PyPreviewControlBar): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = PyPreviewControlBar -_windows.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr) +_windows_.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr) diff --git a/wxPython/src/gtk/windows_wrap.cpp b/wxPython/src/gtk/_windows_wrap.cpp similarity index 99% rename from wxPython/src/gtk/windows_wrap.cpp rename to wxPython/src/gtk/_windows_wrap.cpp index 532022f407..426c6cef35 100644 --- a/wxPython/src/gtk/windows_wrap.cpp +++ b/wxPython/src/gtk/_windows_wrap.cpp @@ -297,11 +297,11 @@ static swig_type_info *swig_types[86]; /*----------------------------------------------- - @(target):= _windows.so + @(target):= _windows_.so ------------------------------------------------*/ -#define SWIG_init init_windows +#define SWIG_init init_windows_ -#define SWIG_name "_windows" +#define SWIG_name "_windows_" /* Auxiliar swig macros */ diff --git a/wxPython/src/gtk/calendar.py b/wxPython/src/gtk/calendar.py index 6496686b8e..ec9e4a42a5 100644 --- a/wxPython/src/gtk/calendar.py +++ b/wxPython/src/gtk/calendar.py @@ -3,9 +3,9 @@ import _calendar -import misc -import core -wx = core +import _misc +import _core +wx = _core __docfilter__ = wx.__docfilter__ CAL_SUNDAY_FIRST = _calendar.CAL_SUNDAY_FIRST CAL_MONDAY_FIRST = _calendar.CAL_MONDAY_FIRST @@ -118,7 +118,7 @@ class CalendarDateAttrPtr(CalendarDateAttr): self.__class__ = CalendarDateAttr _calendar.CalendarDateAttr_swigregister(CalendarDateAttrPtr) -class CalendarEvent(core.CommandEvent): +class CalendarEvent(_core.CommandEvent): def __repr__(self): return "<%s.%s; proxy of C++ wxCalendarEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -164,7 +164,7 @@ EVT_CALENDAR_MONTH = wx.PyEventBinder( wxEVT_CALENDAR_MONTH_CHANGED, 1 EVT_CALENDAR_YEAR = wx.PyEventBinder( wxEVT_CALENDAR_YEAR_CHANGED, 1) EVT_CALENDAR_WEEKDAY_CLICKED = wx.PyEventBinder( wxEVT_CALENDAR_WEEKDAY_CLICKED, 1) -class CalendarCtrl(core.Control): +class CalendarCtrl(_core.Control): """The calendar control allows the user to pick a date interactively.""" def __repr__(self): return "<%s.%s; proxy of C++ wxCalendarCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) diff --git a/wxPython/src/gtk/core_wrap.cpp b/wxPython/src/gtk/core_wrap.cpp deleted file mode 100644 index b9f74a2fb9..0000000000 --- a/wxPython/src/gtk/core_wrap.cpp +++ /dev/null @@ -1,43049 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.22 - * - * This file is not intended to be easily readable and contains a number of - * coding conventions designed to improve portability and efficiency. Do not make - * changes to this file unless you know what you are doing--modify the SWIG - * interface file instead. - * ----------------------------------------------------------------------------- */ - -#define SWIGPYTHON -#define SWIG_NOINCLUDE - -#ifdef __cplusplus -template class SwigValueWrapper { - T *tt; -public: - SwigValueWrapper() : tt(0) { } - SwigValueWrapper(const SwigValueWrapper& rhs) : tt(new T(*rhs.tt)) { } - SwigValueWrapper(const T& t) : tt(new T(t)) { } - ~SwigValueWrapper() { delete tt; } - SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } - operator T&() const { return *tt; } - T *operator&() { return tt; } -private: - SwigValueWrapper& operator=(const SwigValueWrapper& rhs); -}; -#endif - - -#include "Python.h" - -/*************************************************************** -*- c -*- - * python/precommon.swg - * - * Rename all exported symbols from common.swg, to avoid symbol - * clashes if multiple interpreters are included - * - ************************************************************************/ - -#define SWIG_TypeRegister SWIG_Python_TypeRegister -#define SWIG_TypeCheck SWIG_Python_TypeCheck -#define SWIG_TypeCast SWIG_Python_TypeCast -#define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast -#define SWIG_TypeName SWIG_Python_TypeName -#define SWIG_TypeQuery SWIG_Python_TypeQuery -#define SWIG_TypeClientData SWIG_Python_TypeClientData -#define SWIG_PackData SWIG_Python_PackData -#define SWIG_UnpackData SWIG_Python_UnpackData - - -/*********************************************************************** - * common.swg for wxPython - * - * Include only the function prototypes and such from SWIG's common.swg, - * but not the runtime functions themselves. This helps keep the - * wrapper files clean of unnecessary stuff that is in the libpy.c file - * anyway. - * - ************************************************************************/ - -#include - -#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) -# if defined(_MSC_VER) || defined(__GNUC__) -# if defined(STATIC_LINKED) -# define SWIGEXPORT(a) a -# define SWIGIMPORT(a) extern a -# else -# define SWIGEXPORT(a) __declspec(dllexport) a -# define SWIGIMPORT(a) extern a -# endif -# else -# if defined(__BORLANDC__) -# define SWIGEXPORT(a) a _export -# define SWIGIMPORT(a) a _export -# else -# define SWIGEXPORT(a) a -# define SWIGIMPORT(a) a -# endif -# endif -#else -# define SWIGEXPORT(a) a -# define SWIGIMPORT(a) a -#endif - -#ifdef SWIG_GLOBAL -# define SWIGRUNTIME(a) SWIGEXPORT(a) -#else -# define SWIGRUNTIME(a) static a -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -typedef void *(*swig_converter_func)(void *); -typedef struct swig_type_info *(*swig_dycast_func)(void **); - -typedef struct swig_type_info { - const char *name; - swig_converter_func converter; - const char *str; - void *clientdata; - swig_dycast_func dcast; - struct swig_type_info *next; - struct swig_type_info *prev; -} swig_type_info; - - -SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); -SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); -SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); -SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); -SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); -SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); -SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); -SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); -SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); - - -#ifdef __cplusplus -} -#endif - -/*********************************************************************** - * pyrun.swg for wxPython - * - * Include only the function prototypes and such from SWIG's pyrun.swg, - * but not the runtime functions themselves. This helps keep the - * wrapper files clean of unnecessary stuff that is in the libpy.c file - * anyway. - * - ************************************************************************/ - -#include "Python.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define SWIG_PY_INT 1 -#define SWIG_PY_FLOAT 2 -#define SWIG_PY_STRING 3 -#define SWIG_PY_POINTER 4 -#define SWIG_PY_BINARY 5 - -/* Flags for pointer conversion */ - -#define SWIG_POINTER_EXCEPTION 0x1 -#define SWIG_POINTER_DISOWN 0x2 - -/* Exception handling in wrappers */ -#define SWIG_fail goto fail - -/* Constant information structure */ -typedef struct swig_const_info { - int type; - char *name; - long lvalue; - double dvalue; - void *pvalue; - swig_type_info **ptype; -} swig_const_info; - -/* Common SWIG API */ -#define SWIG_ConvertPtr(obj, pp, type, flags) \ - SWIG_Python_ConvertPtr(obj, pp, type, flags) -#define SWIG_NewPointerObj(p, type, flags) \ - SWIG_Python_NewPointerObj(p, type, flags) -#define SWIG_MustGetPtr(p, type, argnum, flags) \ - SWIG_Python_MustGetPtr(p, type, argnum, flags) - -/* Python-specific SWIG API */ -#define SWIG_newvarlink() \ - SWIG_Python_newvarlink() -#define SWIG_addvarlink(p, name, get_attr, set_attr) \ - SWIG_Python_addvarlink(p, name, get_attr, set_attr) -#define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ - SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) -#define SWIG_NewPackedObj(ptr, sz, type) \ - SWIG_Python_NewPackedObj(ptr, sz, type) -#define SWIG_InstallConstants(d, constants) \ - SWIG_Python_InstallConstants(d, constants) - -typedef double (*py_objasdbl_conv)(PyObject *obj); - -SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); -SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); -SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); -SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); -SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); -SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); -SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); -SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); - - -/* Contract support */ - -#define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else - -#ifdef __cplusplus -} -#endif - - -/* -------- TYPES TABLE (BEGIN) -------- */ - -#define SWIGTYPE_p_wxLayoutConstraints swig_types[0] -#define SWIGTYPE_p_wxRealPoint swig_types[1] -#define SWIGTYPE_p_wxSizerItem swig_types[2] -#define SWIGTYPE_p_wxGBSizerItem swig_types[3] -#define SWIGTYPE_p_wxScrollEvent swig_types[4] -#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[5] -#define SWIGTYPE_p_wxSizer swig_types[6] -#define SWIGTYPE_p_wxBoxSizer swig_types[7] -#define SWIGTYPE_p_wxStaticBoxSizer swig_types[8] -#define SWIGTYPE_p_wxGridBagSizer swig_types[9] -#define SWIGTYPE_p_wxAcceleratorEntry swig_types[10] -#define SWIGTYPE_p_wxUpdateUIEvent swig_types[11] -#define SWIGTYPE_p_wxMenu swig_types[12] -#define SWIGTYPE_p_wxEvent swig_types[13] -#define SWIGTYPE_p_wxGridSizer swig_types[14] -#define SWIGTYPE_p_wxFlexGridSizer swig_types[15] -#define SWIGTYPE_p_wxInitDialogEvent swig_types[16] -#define SWIGTYPE_p_wxItemContainer swig_types[17] -#define SWIGTYPE_p_wxNcPaintEvent swig_types[18] -#define SWIGTYPE_p_wxPaintEvent swig_types[19] -#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[20] -#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[21] -#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[22] -#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[23] -#define SWIGTYPE_p_wxControl swig_types[24] -#define SWIGTYPE_p_wxFont swig_types[25] -#define SWIGTYPE_p_wxMenuBarBase swig_types[26] -#define SWIGTYPE_p_wxSetCursorEvent swig_types[27] -#define SWIGTYPE_p_wxFSFile swig_types[28] -#define SWIGTYPE_p_wxCaret swig_types[29] -#define SWIGTYPE_p_wxRegion swig_types[30] -#define SWIGTYPE_p_wxPoint2D swig_types[31] -#define SWIGTYPE_p_int swig_types[32] -#define SWIGTYPE_p_wxSize swig_types[33] -#define SWIGTYPE_p_wxDC swig_types[34] -#define SWIGTYPE_p_wxPySizer swig_types[35] -#define SWIGTYPE_p_wxVisualAttributes swig_types[36] -#define SWIGTYPE_p_wxNotifyEvent swig_types[37] -#define SWIGTYPE_p_wxPyEvent swig_types[38] -#define SWIGTYPE_p_wxPropagationDisabler swig_types[39] -#define SWIGTYPE_p_wxAppTraits swig_types[40] -#define SWIGTYPE_p_wxArrayString swig_types[41] -#define SWIGTYPE_p_wxShowEvent swig_types[42] -#define SWIGTYPE_p_wxToolTip swig_types[43] -#define SWIGTYPE_p_wxMaximizeEvent swig_types[44] -#define SWIGTYPE_p_wxIconizeEvent swig_types[45] -#define SWIGTYPE_p_wxActivateEvent swig_types[46] -#define SWIGTYPE_p_wxMoveEvent swig_types[47] -#define SWIGTYPE_p_wxSizeEvent swig_types[48] -#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[49] -#define SWIGTYPE_p_wxWindowCreateEvent swig_types[50] -#define SWIGTYPE_p_wxIdleEvent swig_types[51] -#define SWIGTYPE_p_wxMenuItem swig_types[52] -#define SWIGTYPE_p_wxStaticBox swig_types[53] -#define SWIGTYPE_p_long swig_types[54] -#define SWIGTYPE_p_wxTIFFHandler swig_types[55] -#define SWIGTYPE_p_wxXPMHandler swig_types[56] -#define SWIGTYPE_p_wxPNMHandler swig_types[57] -#define SWIGTYPE_p_wxJPEGHandler swig_types[58] -#define SWIGTYPE_p_wxPCXHandler swig_types[59] -#define SWIGTYPE_p_wxGIFHandler swig_types[60] -#define SWIGTYPE_p_wxPNGHandler swig_types[61] -#define SWIGTYPE_p_wxANIHandler swig_types[62] -#define SWIGTYPE_p_wxMemoryFSHandler swig_types[63] -#define SWIGTYPE_p_wxEvtHandler swig_types[64] -#define SWIGTYPE_p_wxCURHandler swig_types[65] -#define SWIGTYPE_p_wxICOHandler swig_types[66] -#define SWIGTYPE_p_wxBMPHandler swig_types[67] -#define SWIGTYPE_p_wxImageHandler swig_types[68] -#define SWIGTYPE_p_wxFileSystemHandler swig_types[69] -#define SWIGTYPE_p_wxPyFileSystemHandler swig_types[70] -#define SWIGTYPE_p_wxInternetFSHandler swig_types[71] -#define SWIGTYPE_p_wxZipFSHandler swig_types[72] -#define SWIGTYPE_p_wxRect swig_types[73] -#define SWIGTYPE_p_wxGBSpan swig_types[74] -#define SWIGTYPE_p_wxPropagateOnce swig_types[75] -#define SWIGTYPE_p_wxAcceleratorTable swig_types[76] -#define SWIGTYPE_p_char swig_types[77] -#define SWIGTYPE_p_wxGBPosition swig_types[78] -#define SWIGTYPE_p_wxImage swig_types[79] -#define SWIGTYPE_p_wxFrame swig_types[80] -#define SWIGTYPE_p_wxScrollWinEvent swig_types[81] -#define SWIGTYPE_p_wxImageHistogram swig_types[82] -#define SWIGTYPE_p_byte swig_types[83] -#define SWIGTYPE_p_wxPoint swig_types[84] -#define SWIGTYPE_p_wxCursor swig_types[85] -#define SWIGTYPE_p_wxObject swig_types[86] -#define SWIGTYPE_p_wxPyInputStream swig_types[87] -#define SWIGTYPE_p_wxOutputStream swig_types[88] -#define SWIGTYPE_p_wxInputStream swig_types[89] -#define SWIGTYPE_p_wxDateTime swig_types[90] -#define SWIGTYPE_p_wxKeyEvent swig_types[91] -#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[92] -#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[93] -#define SWIGTYPE_p_wxWindow swig_types[94] -#define SWIGTYPE_p_wxMenuBar swig_types[95] -#define SWIGTYPE_p_wxFileSystem swig_types[96] -#define SWIGTYPE_p_wxBitmap swig_types[97] -#define SWIGTYPE_p_wxMenuEvent swig_types[98] -#define SWIGTYPE_p_wxContextMenuEvent swig_types[99] -#define SWIGTYPE_p_unsigned_char swig_types[100] -#define SWIGTYPE_p_wxCloseEvent swig_types[101] -#define SWIGTYPE_p_wxEraseEvent swig_types[102] -#define SWIGTYPE_p_wxMouseEvent swig_types[103] -#define SWIGTYPE_p_wxPyApp swig_types[104] -#define SWIGTYPE_p_wxCommandEvent swig_types[105] -#define SWIGTYPE_p_wxPyCommandEvent swig_types[106] -#define SWIGTYPE_p_wxPyDropTarget swig_types[107] -#define SWIGTYPE_p_wxChildFocusEvent swig_types[108] -#define SWIGTYPE_p_wxFocusEvent swig_types[109] -#define SWIGTYPE_p_wxDropFilesEvent swig_types[110] -#define SWIGTYPE_p_wxControlWithItems swig_types[111] -#define SWIGTYPE_p_wxColour swig_types[112] -#define SWIGTYPE_p_wxValidator swig_types[113] -#define SWIGTYPE_p_wxPyValidator swig_types[114] -static swig_type_info *swig_types[116]; - -/* -------- TYPES TABLE (END) -------- */ - - -/*----------------------------------------------- - @(target):= _core.so - ------------------------------------------------*/ -#define SWIG_init init_core - -#define SWIG_name "_core" - -/* Auxiliar swig macros */ - -#ifdef __cplusplus -#define SWIGSTATICINLINE(a) static inline a -#define SWIGSTATIC(a) static a -#define swig_new_array(type, size) (new type[(size)]) -#define swig_delete_array(cptr) delete[] cptr -#define swig_const_cast(type,a) const_cast(a) -#define swig_static_cast(type,a) static_cast(a) -#define swig_reinterpret_cast(type,a) reinterpret_cast(a) - -#ifdef HAVE_NUMERIC_CAST -#define swig_numeric_cast(type,a) numeric_cast(a) -#else -#define swig_numeric_cast(type,a) static_cast(a) -#endif - -#else /* C case */ - -#define SWIGSTATICINLINE(a) static a -#define SWIGSTATIC(a) static a -#define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type))) -#define swig_delete_array(cptr) free((char*)cptr) -#define swig_const_cast(type,a) (type)(a) -#define swig_static_cast(type,a) (type)(a) -#define swig_reinterpret_cast(type,a) (type)(a) -#define swig_numeric_cast(type,a) (type)(a) - -#endif /* __cplusplus */ - - -#define SWIG_FromSignedChar PyInt_FromLong -#define SWIG_FromUnsignedChar PyInt_FromLong -#define SWIG_FromShort PyInt_FromLong -#define SWIG_FromUnsignedShort PyInt_FromLong -#define SWIG_FromInt PyInt_FromLong -#define SWIG_FromLong PyInt_FromLong -#define SWIG_FromFloat PyFloat_FromDouble -#define SWIG_FromDouble PyFloat_FromDouble -#define SWIG_FromFloat PyFloat_FromDouble -#define SWIG_FromDouble PyFloat_FromDouble - - -#include "wx/wxPython/wxPython_int.h" -#include "wx/wxPython/pyclasses.h" - - -#ifndef wxPyUSE_EXPORT -// Helper functions for dealing with SWIG objects and such. These are -// located here so they know about the SWIG types and functions declared -// in the wrapper code. - -#include -WX_DECLARE_STRING_HASH_MAP( swig_type_info*, wxPyTypeInfoHashMap ); - - -// Maintains a hashmap of className to swig_type_info pointers. Given the -// name of a class either looks up the type info in the cache, or scans the -// SWIG tables for it. -extern PyObject* wxPyPtrTypeMap; -static -swig_type_info* wxPyFindSwigType(const wxChar* className) { - - static wxPyTypeInfoHashMap* typeInfoCache = NULL; - - if (typeInfoCache == NULL) - typeInfoCache = new wxPyTypeInfoHashMap; - - wxString name(className); - swig_type_info* swigType = (*typeInfoCache)[name]; - - if (! swigType) { - // it wasn't in the cache, so look it up from SWIG - name.Append(wxT(" *")); - swigType = SWIG_Python_TypeQuery(name.mb_str()); - - // if it still wasn't found, try looking for a mapped name - if (!swigType) { - PyObject* item; - name = className; - - if ((item = PyDict_GetItemString(wxPyPtrTypeMap, - (char*)(const char*)name.mbc_str())) != NULL) { - name = wxString(PyString_AsString(item), *wxConvCurrent); - name.Append(wxT(" *")); - swigType = SWIG_Python_TypeQuery(name.mb_str()); - } - } - if (swigType) { - // and add it to the map if found - (*typeInfoCache)[className] = swigType; - } - } - return swigType; -} - - -// Check if a class name is a type known to SWIG -bool wxPyCheckSwigType(const wxChar* className) { - - swig_type_info* swigType = wxPyFindSwigType(className); - return swigType != NULL; -} - - -// Given a pointer to a C++ object and a class name, construct a Python proxy -// object for it. -PyObject* wxPyConstructObject(void* ptr, - const wxChar* className, - int setThisOwn) { - - swig_type_info* swigType = wxPyFindSwigType(className); - wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConstructObject")); - - return SWIG_Python_NewPointerObj(ptr, swigType, setThisOwn); -} - - -// Extract a pointer to the wrapped C++ object from a Python proxy object. -// Ensures that the proxy object is of the specified (or derived) type. If -// not able to perform the conversion then a Python exception is set and the -// error should be handled properly in the caller. Returns True on success. -bool wxPyConvertSwigPtr(PyObject* obj, void **ptr, - const wxChar* className) { - - swig_type_info* swigType = wxPyFindSwigType(className); - wxCHECK_MSG(swigType != NULL, False, wxT("Unknown type in wxPyConvertSwigPtr")); - - return SWIG_Python_ConvertPtr(obj, ptr, swigType, SWIG_POINTER_EXCEPTION) != -1; -} - - -// Make a SWIGified pointer object suitable for a .this attribute -PyObject* wxPyMakeSwigPtr(void* ptr, const wxChar* className) { - - PyObject* robj = NULL; - - swig_type_info* swigType = wxPyFindSwigType(className); - wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConvertSwigPtr")); - -#ifdef SWIG_COBJECT_TYPES - robj = PyCObject_FromVoidPtrAndDesc((void *) ptr, (char *) swigType->name, NULL); -#else - { - char result[1024]; - char *r = result; - *(r++) = '_'; - r = SWIG_Python_PackData(r, &ptr, sizeof(void *)); - strcpy(r, swigType->name); - robj = PyString_FromString(result); - } -#endif - - return robj; -} - - - - -// Export a C API in a struct. Other modules will be able to load this from -// the wx.core module and will then have safe access to these functions, even if -// they are located in another shared library. -static wxPyCoreAPI API = { - - (p_SWIG_Python_TypeRegister_t)SWIG_Python_TypeRegister, - (p_SWIG_Python_TypeCheck_t)SWIG_Python_TypeCheck, - (p_SWIG_Python_TypeCast_t)SWIG_Python_TypeCast, - (p_SWIG_Python_TypeDynamicCast_t)SWIG_Python_TypeDynamicCast, - (p_SWIG_Python_TypeName_t)SWIG_Python_TypeName, - (p_SWIG_Python_TypeQuery_t)SWIG_Python_TypeQuery, - (p_SWIG_Python_TypeClientData_t)SWIG_Python_TypeClientData, - (p_SWIG_Python_newvarlink_t)SWIG_Python_newvarlink, - (p_SWIG_Python_addvarlink_t)SWIG_Python_addvarlink, - (p_SWIG_Python_ConvertPtr_t)SWIG_Python_ConvertPtr, - (p_SWIG_Python_ConvertPacked_t)SWIG_Python_ConvertPacked, - (p_SWIG_Python_PackData_t)SWIG_Python_PackData, - (p_SWIG_Python_UnpackData_t)SWIG_Python_UnpackData, - (p_SWIG_Python_NewPointerObj_t)SWIG_Python_NewPointerObj, - (p_SWIG_Python_NewPackedObj_t)SWIG_Python_NewPackedObj, - (p_SWIG_Python_InstallConstants_t)SWIG_Python_InstallConstants, - (p_SWIG_Python_MustGetPtr_t)SWIG_Python_MustGetPtr, - - wxPyCheckSwigType, - wxPyConstructObject, - wxPyConvertSwigPtr, - wxPyMakeSwigPtr, - - wxPyBeginAllowThreads, - wxPyEndAllowThreads, - wxPyBeginBlockThreads, - wxPyEndBlockThreads, - - wxPy_ConvertList, - - wxString_in_helper, - Py2wxString, - wx2PyString, - - byte_LIST_helper, - int_LIST_helper, - long_LIST_helper, - string_LIST_helper, - wxPoint_LIST_helper, - wxBitmap_LIST_helper, - wxString_LIST_helper, - wxAcceleratorEntry_LIST_helper, - - wxSize_helper, - wxPoint_helper, - wxRealPoint_helper, - wxRect_helper, - wxColour_helper, - wxPoint2D_helper, - - wxPySimple_typecheck, - wxColour_typecheck, - - wxPyCBH_setCallbackInfo, - wxPyCBH_findCallback, - wxPyCBH_callCallback, - wxPyCBH_callCallbackObj, - wxPyCBH_delete, - - wxPyMake_wxObject, - wxPyMake_wxSizer, - wxPyPtrTypeMap_Add, - wxPy2int_seq_helper, - wxPy4int_seq_helper, - wxArrayString2PyList_helper, - wxArrayInt2PyList_helper, - - wxPyClientData_dtor, - wxPyUserData_dtor, - wxPyOORClientData_dtor, - - wxPyCBInputStream_create, - - wxPyInstance_Check, - wxPySwigInstance_Check - -}; - -#endif - - -#if ! wxUSE_HOTKEY -enum wxHotkeyModifier -{ - wxMOD_NONE = 0, - wxMOD_ALT = 1, - wxMOD_CONTROL = 2, - wxMOD_SHIFT = 4, - wxMOD_WIN = 8 -}; -#define wxEVT_HOTKEY 9999 -#endif - - static const wxString wxPyEmptyString(wxEmptyString); -wxString wxObject_GetClassName(wxObject *self){ - return self->GetClassInfo()->GetClassName(); - } -void wxObject_Destroy(wxObject *self){ - delete self; - } - -#ifndef __WXMAC__ -#define wxCURSOR_COPY_ARROW wxCURSOR_ARROW -#endif - - -#include - - -SWIGSTATICINLINE(long) -SWIG_CheckLongInRange(long value, const char* type, - long min_value, long max_value) -{ - if (!PyErr_Occurred()) { - if (value < min_value) { - PyObject *err = - PyString_FromFormat("value %ld is less than '%s' minimum %ld", - value, type, min_value); - - PyErr_SetObject(PyExc_OverflowError, err); - Py_DECREF(err); - } else if (value > max_value) { - PyObject *err = - PyString_FromFormat("value %ld is greater than '%s' maximum %ld", - value, type, max_value); - PyErr_SetObject(PyExc_OverflowError, err); - Py_DECREF(err); - } - } - return value; -} - - -SWIGSTATICINLINE(long) -SWIG_AsLong(PyObject * obj) -{ - if (PyNumber_Check(obj)) - return PyInt_AsLong(obj); - else { - PyObject* errmsg = PyString_FromFormat("Expected number, got %s", - obj->ob_type->tp_name); - PyErr_SetObject(PyExc_TypeError, errmsg); - Py_DECREF(errmsg); - return 0; - } -} - - -#if INT_MAX != LONG_MAX -SWIGSTATICINLINE(int) -SWIG_AsInt(PyObject *obj) -{ - return swig_numeric_cast(int, - SWIG_CheckLongInRange(SWIG_AsLong(obj), - "int", INT_MIN, INT_MAX)); -} -#else -#define SWIG_AsInt SWIG_AsLong -#endif - - -SWIGSTATICINLINE(int) -SWIG_CheckInt(PyObject* obj) -{ - SWIG_AsInt(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - -PyObject *wxSize_Get(wxSize *self){ - bool blocked = wxPyBeginBlockThreads(); - PyObject* tup = PyTuple_New(2); - PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); - PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); - wxPyEndBlockThreads(blocked); - return tup; - } - -SWIGSTATICINLINE(double) -SWIG_AsDouble(PyObject *obj) -{ - if (PyNumber_Check(obj)) - return PyFloat_AsDouble(obj); - else { - PyObject* errmsg = PyString_FromFormat("Expected number, got %s", - obj->ob_type->tp_name); - PyErr_SetObject(PyExc_TypeError, errmsg); - Py_DECREF(errmsg); - return 0; - } -} - - -SWIGSTATICINLINE(int) -SWIG_CheckDouble(PyObject* obj) -{ - SWIG_AsDouble(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - -void wxRealPoint_Set(wxRealPoint *self,double x,double y){ - self->x = x; - self->y = y; - } -PyObject *wxRealPoint_Get(wxRealPoint *self){ - bool blocked = wxPyBeginBlockThreads(); - PyObject* tup = PyTuple_New(2); - PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->x)); - PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->y)); - wxPyEndBlockThreads(blocked); - return tup; - } - -SWIGSTATICINLINE(int) -SWIG_CheckLong(PyObject* obj) -{ - SWIG_AsLong(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - -void wxPoint_Set(wxPoint *self,long x,long y){ - self->x = x; - self->y = y; - } -PyObject *wxPoint_Get(wxPoint *self){ - bool blocked = wxPyBeginBlockThreads(); - PyObject* tup = PyTuple_New(2); - PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); - PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); - wxPyEndBlockThreads(blocked); - return tup; - } -void wxRect_Set(wxRect *self,int x,int y,int width,int height){ - self->x = x; - self->y = y; - self->width = width; - self->height = height; - } -PyObject *wxRect_Get(wxRect *self){ - bool blocked = wxPyBeginBlockThreads(); - PyObject* tup = PyTuple_New(4); - PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); - PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); - PyTuple_SET_ITEM(tup, 2, PyInt_FromLong(self->width)); - PyTuple_SET_ITEM(tup, 3, PyInt_FromLong(self->height)); - wxPyEndBlockThreads(blocked); - return tup; - } - - PyObject* wxIntersectRect(wxRect* r1, wxRect* r2) { - wxRegion reg1(*r1); - wxRegion reg2(*r2); - wxRect dest(0,0,0,0); - PyObject* obj; - - reg1.Intersect(reg2); - dest = reg1.GetBox(); - - if (dest != wxRect(0,0,0,0)) { - bool blocked = wxPyBeginBlockThreads(); - wxRect* newRect = new wxRect(dest); - obj = wxPyConstructObject((void*)newRect, wxT("wxRect"), True); - wxPyEndBlockThreads(blocked); - return obj; - } - Py_INCREF(Py_None); - return Py_None; - } - - -static PyObject* t_output_helper(PyObject* target, PyObject* o) { - PyObject* o2; - PyObject* o3; - - if (!target) { - target = o; - } else if (target == Py_None) { - Py_DECREF(Py_None); - target = o; - } else { - if (!PyTuple_Check(target)) { - o2 = target; - target = PyTuple_New(1); - PyTuple_SetItem(target, 0, o2); - } - o3 = PyTuple_New(1); - PyTuple_SetItem(o3, 0, o); - - o2 = target; - target = PySequence_Concat(o2, o3); - Py_DECREF(o2); - Py_DECREF(o3); - } - return target; -} - -void wxPoint2D_Set(wxPoint2D *self,double x,double y){ - self->m_x = x; - self->m_y = y; - } -PyObject *wxPoint2D_Get(wxPoint2D *self){ - bool blocked = wxPyBeginBlockThreads(); - PyObject* tup = PyTuple_New(2); - PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->m_x)); - PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->m_y)); - wxPyEndBlockThreads(blocked); - return tup; - } - -#include "wx/wxPython/pyistream.h" - -wxPyInputStream *new_wxPyInputStream(PyObject *p){ - wxInputStream* wxis = wxPyCBInputStream::create(p); - if (wxis) - return new wxPyInputStream(wxis); - else - return NULL; - } - -SWIGSTATICINLINE(PyObject*) -SWIG_FromChar(char c) -{ - return PyString_FromStringAndSize(&c,1); -} - - -SWIGSTATICINLINE(PyObject* ) -SWIG_FromUnsignedLong(unsigned long value) -{ - return (value > LONG_MAX) ? - PyLong_FromUnsignedLong(value) - : PyInt_FromLong(swig_numeric_cast(long,value)); -} - - -/* returns '1' if the input is a raw char*, '0' if is a PyString */ -SWIGSTATIC(int) -SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* size) -{ - static swig_type_info* pchar_info = 0; - int psize = 0; - if (!pchar_info) pchar_info = SWIG_TypeQuery("char *"); - - if (SWIG_ConvertPtr(obj, swig_reinterpret_cast(void **,cptr), pchar_info, 0) == -1) { - PyErr_Clear(); - PyString_AsStringAndSize(obj, cptr, &psize); - if (PyErr_Occurred()) { - PyErr_Clear(); - PyErr_SetString(PyExc_TypeError,"a string is expected"); - } - if (size) *size = psize; - return 0; - } else { - if (size) *size = (*cptr) ? (strlen(*cptr) + 1) : 0; - return 1; - } -} - - -SWIGSTATIC(void) -SWIG_AsCharArray(PyObject *obj, char* carray, size_t size) -{ - char* cptr; size_t csize; - SWIG_AsCharPtrAndSize(obj, &cptr, &csize); - if (PyErr_Occurred()) { - PyErr_Clear(); - PyObject *err = - PyString_FromFormat("a char array of size %d is expected", size); - PyErr_SetObject(PyExc_TypeError, err); - Py_DECREF(err); - } else { - /* in C (but not in C++) you can do: - - char x[5] = "hello"; - - ie, assing the array using an extra '0' char. - */ -#ifndef __cplusplus - if ((csize == size + 1) && !(cptr[csize-1])) --csize; -#endif - if (csize > size) { - PyObject *err = - PyString_FromFormat("a char array of maximum size %d is expected", - size); - PyErr_SetObject(PyExc_TypeError, err); - Py_DECREF(err); - } else { - if (csize) memcpy(carray, cptr, csize); - if (csize < size) memset(carray + csize, 0, size - csize); - } - } -} - - -SWIGSTATICINLINE(char) -SWIG_AsChar(PyObject *obj) -{ - char c = 0; - if (PyInt_Check(obj) || PyLong_Check(obj)) { - c = swig_numeric_cast(char, - SWIG_CheckLongInRange(SWIG_AsLong(obj), - "char", CHAR_MIN, CHAR_MAX)); - } else { - SWIG_AsCharArray(obj, &c, 1); - if (PyErr_Occurred()) { - PyErr_Clear(); - PyErr_SetString(PyExc_TypeError, "a char is expected"); - } - } - return c; -} - - -SWIGSTATICINLINE(int) -SWIG_CheckChar(PyObject* obj) -{ - SWIG_AsChar(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - -void wxOutputStream_write(wxOutputStream *self,PyObject *obj){ - // We use only strings for the streams, not unicode - PyObject* str = PyObject_Str(obj); - if (! str) { - PyErr_SetString(PyExc_TypeError, "Unable to convert to string"); - return; - } - self->Write(PyString_AS_STRING(str), - PyString_GET_SIZE(str)); - Py_DECREF(str); - } - -#include "wx/wxPython/pyistream.h" - - -class wxPyFileSystemHandler : public wxFileSystemHandler -{ -public: - wxPyFileSystemHandler() : wxFileSystemHandler() {} - - DEC_PYCALLBACK_BOOL_STRING_pure(CanOpen); - DEC_PYCALLBACK_FSF_FSSTRING_pure(OpenFile); - DEC_PYCALLBACK_STRING_STRINGINT_pure(FindFirst); - DEC_PYCALLBACK_STRING__pure(FindNext); - - wxString GetProtocol(const wxString& location) { - return wxFileSystemHandler::GetProtocol(location); - } - - wxString GetLeftLocation(const wxString& location) { - return wxFileSystemHandler::GetLeftLocation(location); - } - - wxString GetAnchor(const wxString& location) { - return wxFileSystemHandler::GetAnchor(location); - } - - wxString GetRightLocation(const wxString& location) { - return wxFileSystemHandler::GetRightLocation(location); - } - - wxString GetMimeTypeFromExt(const wxString& location) { - return wxFileSystemHandler::GetMimeTypeFromExt(location); - } - - PYPRIVATE; -}; - - -IMP_PYCALLBACK_BOOL_STRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, CanOpen); -IMP_PYCALLBACK_FSF_FSSTRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, OpenFile); -IMP_PYCALLBACK_STRING_STRINGINT_pure(wxPyFileSystemHandler, wxFileSystemHandler, FindFirst); -IMP_PYCALLBACK_STRING__pure(wxPyFileSystemHandler, wxFileSystemHandler, FindNext); - - -SWIGSTATICINLINE(bool) -SWIG_AsBool(PyObject *obj) -{ - return PyObject_IsTrue(obj) ? true : false; -} - - -SWIGSTATICINLINE(int) -SWIG_CheckBool(PyObject* obj) -{ - SWIG_AsBool(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - - - wxString wxFileSystem_URLToFileName(const wxString& url) { - wxFileName fname = wxFileSystem::URLToFileName(url); - return fname.GetFullPath(); - } - - - void __wxMemoryFSHandler_AddFile_wxImage(const wxString& filename, - wxImage& image, - long type) { - wxMemoryFSHandler::AddFile(filename, image, type); - } - - void __wxMemoryFSHandler_AddFile_wxBitmap(const wxString& filename, - const wxBitmap& bitmap, - long type) { - wxMemoryFSHandler::AddFile(filename, bitmap, type); - } - - void __wxMemoryFSHandler_AddFile_Data(const wxString& filename, - PyObject* data) { - wxMemoryFSHandler::AddFile(filename, - // TODO: Verify data type - (void*)PyString_AsString(data), - (size_t)PyString_Size(data)); - } - - -#include "wx/wxPython/pyistream.h" - - -SWIGSTATICINLINE(unsigned long) -SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type, - unsigned long max_value) -{ - if (!PyErr_Occurred()) { - if (value > max_value) { - PyObject *err = - PyString_FromFormat("value %ld is greater than '%s' minimum %ld", - value, type, max_value); - PyErr_SetObject(PyExc_OverflowError, err); - Py_DECREF(err); - } - } - return value; -} - - -SWIGSTATICINLINE(unsigned long) -SWIG_AsUnsignedLong(PyObject * obj) -{ - if (PyLong_Check(obj)) { - return PyLong_AsUnsignedLong(obj); - } else { - long i = SWIG_AsLong(obj); - if ( !PyErr_Occurred() && (i < 0)) { - PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); - } - return i; - } -} - - -SWIGSTATICINLINE(unsigned char) -SWIG_AsUnsignedChar(PyObject *obj) -{ - return swig_numeric_cast(unsigned char, - SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), - "unsigned char", UCHAR_MAX)); -} - - -SWIGSTATICINLINE(int) -SWIG_CheckUnsignedChar(PyObject* obj) -{ - SWIG_AsUnsignedChar(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - -wxImage *new_wxImage__SWIG_0(int width,int height,bool clear){ - if (width > 0 && height > 0) - return new wxImage(width, height, clear); - else - return new wxImage; - } -wxImage *new_wxImage__SWIG_1(wxSize const &size,bool clear){ - return new wxImage(size.x, size.y, clear); - } -wxImage *new_wxImage(wxBitmap const &bitmap){ - return new wxImage(bitmap.ConvertToImage()); - } -wxImage *new_wxImage(int width,int height,unsigned char *data){ - // Copy the source data so the wxImage can clean it up later - unsigned char* copy = (unsigned char*)malloc(width*height*3); - if (copy == NULL) { - PyErr_NoMemory(); - return NULL; - } - memcpy(copy, data, width*height*3); - return new wxImage(width, height, copy, False); - } -wxSize wxImage_GetSize(wxImage *self){ - wxSize size(self->GetWidth(), self->GetHeight()); - return size; - } -PyObject *wxImage_GetData(wxImage *self){ - unsigned char* data = self->GetData(); - int len = self->GetWidth() * self->GetHeight() * 3; - PyObject* rv; - wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len)); - return rv; - } -void wxImage_SetData(wxImage *self,PyObject *data){ - unsigned char* dataPtr; - - if (! PyString_Check(data)) { - PyErr_SetString(PyExc_TypeError, "Expected string object"); - return /* NULL */ ; - } - - size_t len = self->GetWidth() * self->GetHeight() * 3; - dataPtr = (unsigned char*) malloc(len); - wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); - self->SetData(dataPtr); - // wxImage takes ownership of dataPtr... - } -PyObject *wxImage_GetDataBuffer(wxImage *self){ - unsigned char* data = self->GetData(); - int len = self->GetWidth() * self->GetHeight() * 3; - PyObject* rv; - wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); - return rv; - } -void wxImage_SetDataBuffer(wxImage *self,PyObject *data){ - unsigned char* buffer; - int size; - - bool blocked = wxPyBeginBlockThreads(); - if (!PyArg_Parse(data, "t#", &buffer, &size)) - goto done; - - if (size != self->GetWidth() * self->GetHeight() * 3) { - PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); - goto done; - } - self->SetData(buffer); - done: - wxPyEndBlockThreads(blocked); - } -PyObject *wxImage_GetAlphaData(wxImage *self){ - unsigned char* data = self->GetAlpha(); - if (! data) { - RETURN_NONE(); - } else { - int len = self->GetWidth() * self->GetHeight(); - PyObject* rv; - wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len) ); - return rv; - } - } -void wxImage_SetAlphaData(wxImage *self,PyObject *data){ - unsigned char* dataPtr; - - if (! PyString_Check(data)) { - PyErr_SetString(PyExc_TypeError, "Expected string object"); - return /* NULL */ ; - } - - size_t len = self->GetWidth() * self->GetHeight(); - dataPtr = (unsigned char*) malloc(len); - wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); - self->SetAlpha(dataPtr); - // wxImage takes ownership of dataPtr... - } -PyObject *wxImage_GetAlphaBuffer(wxImage *self){ - unsigned char* data = self->GetAlpha(); - int len = self->GetWidth() * self->GetHeight(); - PyObject* rv; - wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); - return rv; - } -void wxImage_SetAlphaBuffer(wxImage *self,PyObject *data){ - unsigned char* buffer; - int size; - - bool blocked = wxPyBeginBlockThreads(); - if (!PyArg_Parse(data, "t#", &buffer, &size)) - goto done; - - if (size != self->GetWidth() * self->GetHeight()) { - PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); - goto done; - } - self->SetAlpha(buffer); - done: - wxPyEndBlockThreads(blocked); - } - -SWIGSTATICINLINE(int) -SWIG_CheckUnsignedLong(PyObject* obj) -{ - SWIG_AsUnsignedLong(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - -wxBitmap wxImage_ConvertToBitmap(wxImage *self){ - wxBitmap bitmap(*self); - return bitmap; - } -wxBitmap wxImage_ConvertToMonoBitmap(wxImage *self,unsigned char red,unsigned char green,unsigned char blue){ - wxImage mono = self->ConvertToMono( red, green, blue ); - wxBitmap bitmap( mono, 1 ); - return bitmap; - } - static const wxString wxPyIMAGE_OPTION_BMP_FORMAT(wxIMAGE_OPTION_BMP_FORMAT); - static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_X(wxIMAGE_OPTION_CUR_HOTSPOT_X); - static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_Y(wxIMAGE_OPTION_CUR_HOTSPOT_Y); - static const wxString wxPyIMAGE_OPTION_RESOLUTION(wxIMAGE_OPTION_RESOLUTION); - static const wxString wxPyIMAGE_OPTION_RESOLUTIONUNIT(wxIMAGE_OPTION_RESOLUTIONUNIT); -void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject *func){ - if (PyCallable_Check(func)) { - self->Connect(id, lastId, eventType, - (wxObjectEventFunction) &wxPyCallback::EventThunker, - new wxPyCallback(func)); - } - else if (func == Py_None) { - self->Disconnect(id, lastId, eventType, - (wxObjectEventFunction) - &wxPyCallback::EventThunker); - } - else { - wxPyBLOCK_THREADS( - PyErr_SetString(PyExc_TypeError, "Expected callable object or None.")); - } - } -bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType){ - return self->Disconnect(id, lastId, eventType, - (wxObjectEventFunction) - &wxPyCallback::EventThunker); - } -void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject *_self){ - if (_self && _self != Py_None) { - self->SetClientObject(new wxPyOORClientData(_self)); - } - else { - wxPyOORClientData* data = (wxPyOORClientData*)self->GetClientObject(); - if (data) { - self->SetClientObject(NULL); // This will delete it too - } - } - } -int wxKeyEvent_GetUniChar(wxKeyEvent *self){ - #if wxUSE_UNICODE - return self->m_uniChar; - #else - return 0; - #endif - } - -#if UINT_MAX < LONG_MAX -#define SWIG_FromUnsignedInt SWIG_FromLong -#else -#define SWIG_FromUnsignedInt SWIG_FromUnsignedLong -#endif - - -#if UINT_MAX != ULONG_MAX -SWIGSTATICINLINE(unsigned int) -SWIG_AsUnsignedInt(PyObject *obj) -{ - return swig_numeric_cast(unsigned int, - SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), - "unsigned int", UINT_MAX)); -} -#else -#define SWIG_AsUnsignedInt SWIG_AsUnsignedLong -#endif - - -SWIGSTATICINLINE(int) -SWIG_CheckUnsignedInt(PyObject* obj) -{ - SWIG_AsUnsignedInt(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - -void wxSizeEvent_SetSize(wxSizeEvent *self,wxSize size){ - self->m_size = size; - } -void wxMoveEvent_SetPosition(wxMoveEvent *self,wxPoint pos){ - self->m_pos = pos; - } -PyObject *wxDropFilesEvent_GetFiles(wxDropFilesEvent *self){ - int count = self->GetNumberOfFiles(); - wxString* files = self->GetFiles(); - PyObject* list = PyList_New(count); - - if (!list) { - PyErr_SetString(PyExc_MemoryError, "Can't allocate list of files!"); - return NULL; - } - - for (int i=0; iGetChildren(); - return wxPy_ConvertList(&list); - } -bool wxWindow_RegisterHotKey(wxWindow *self,int hotkeyId,int modifiers,int keycode){ - #if wxUSE_HOTKEY - return self->RegisterHotKey(hotkeyId, modifiers, keycode); - #else - return False; - #endif - } -bool wxWindow_UnregisterHotKey(wxWindow *self,int hotkeyId){ - - - - return False; - - } -long wxWindow_GetHandle(wxWindow *self){ - return wxPyGetWinHandle(self); - } - -wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) { - return wxWindow::FindWindowById(id, parent); -} - -wxWindow* wxFindWindowByName( const wxString& name, - const wxWindow *parent = NULL ) { - return wxWindow::FindWindowByName(name, parent); -} - -wxWindow* wxFindWindowByLabel( const wxString& label, - const wxWindow *parent = NULL ) { - return wxWindow::FindWindowByLabel(label, parent); -} - - -#ifdef __WXMSW__ -#include // to get wxGetWindowId -#endif - - - wxWindow* wxWindow_FromHWND(wxWindow* parent, unsigned long _hWnd) { -#ifdef __WXMSW__ - WXHWND hWnd = (WXHWND)_hWnd; - long id = wxGetWindowId(hWnd); - wxWindow* win = new wxWindow; - parent->AddChild(win); - win->SetEventHandler(win); - win->SetHWND(hWnd); - win->SetId(id); - win->SubclassWin(hWnd); - win->AdoptAttributesFromHWND(); - win->SetupColours(); - return win; -#else - wxPyRaiseNotImplemented(); - return NULL; -#endif - } - - -IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); -IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); -IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); - -IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); - -void wxMenu_Destroy(wxMenu *self){ delete self; } -PyObject *wxMenu_GetMenuItems(wxMenu *self){ - wxMenuItemList& list = self->GetMenuItems(); - return wxPy_ConvertList(&list); - } -int MenuItem_GetDefaultMarginWidth(){ return 0; } - static const wxString wxPyControlNameStr(wxControlNameStr); -int wxItemContainer_Append(wxItemContainer *self,wxString const &item,PyObject *clientData){ - if (clientData) { - wxPyClientData* data = new wxPyClientData(clientData); - return self->Append(item, data); - } else - return self->Append(item); - } -int wxItemContainer_Insert(wxItemContainer *self,wxString const &item,int pos,PyObject *clientData){ - if (clientData) { - wxPyClientData* data = new wxPyClientData(clientData); - return self->Insert(item, pos, data); - } else - return self->Insert(item, pos); - } -PyObject *wxItemContainer_GetClientData(wxItemContainer *self,int n){ - wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n); - if (data) { - Py_INCREF(data->m_obj); - return data->m_obj; - } else { - Py_INCREF(Py_None); - return Py_None; - } - } -void wxItemContainer_SetClientData(wxItemContainer *self,int n,PyObject *clientData){ - wxPyClientData* data = new wxPyClientData(clientData); - self->SetClientObject(n, data); - } - - - -#include - -SWIGSTATIC(float) -SWIG_FloatCast(double value) -{ - float f = 0; - if (!PyErr_Occurred()) { - if (value < FLT_MIN) { - PyObject *err = - PyString_FromFormat("value %g is less than float minimum %g", - value, FLT_MIN); - PyErr_SetObject(PyExc_OverflowError, err); - Py_DECREF(err); - } else if (value > FLT_MAX) { - PyObject *err = - PyString_FromFormat("value %g is greater than float maximum %g", - value, FLT_MAX); - PyErr_SetObject(PyExc_OverflowError, err); - Py_DECREF(err); - } else { - f = swig_numeric_cast(float, value); - } - } - return f; -} - - -SWIGSTATICINLINE(float) -SWIG_AsFloat(PyObject *obj) -{ - return SWIG_FloatCast(SWIG_AsDouble(obj)); -} - - -SWIGSTATICINLINE(int) -SWIG_CheckFloat(PyObject* obj) -{ - SWIG_AsFloat(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - -PyObject *wxSizerItem_GetUserData(wxSizerItem *self){ - wxPyUserData* data = (wxPyUserData*)self->GetUserData(); - if (data) { - Py_INCREF(data->m_obj); - return data->m_obj; - } else { - Py_INCREF(Py_None); - return Py_None; - } - } - -// Figure out the type of the sizer item - -struct wxPySizerItemInfo { - wxPySizerItemInfo() - : window(NULL), sizer(NULL), gotSize(False), - size(wxDefaultSize), gotPos(False), pos(-1) - {} - - wxWindow* window; - wxSizer* sizer; - bool gotSize; - wxSize size; - bool gotPos; - int pos; -}; - -static wxPySizerItemInfo wxPySizerItemTypeHelper(PyObject* item, bool checkSize, bool checkIdx ) { - - wxPySizerItemInfo info; - wxSize size; - wxSize* sizePtr = &size; - - // Find out what the type of the item is - // try wxWindow - if ( ! wxPyConvertSwigPtr(item, (void**)&info.window, wxT("wxWindow")) ) { - PyErr_Clear(); - info.window = NULL; - - // try wxSizer - if ( ! wxPyConvertSwigPtr(item, (void**)&info.sizer, wxT("wxSizer")) ) { - PyErr_Clear(); - info.sizer = NULL; - - // try wxSize or (w,h) - if ( checkSize && wxSize_helper(item, &sizePtr)) { - info.size = *sizePtr; - info.gotSize = True; - } - - // or a single int - if (checkIdx && PyInt_Check(item)) { - info.pos = PyInt_AsLong(item); - info.gotPos = True; - } - } - } - - if ( !(info.window || info.sizer || (checkSize && info.gotSize) || (checkIdx && info.gotPos)) ) { - // no expected type, figure out what kind of error message to generate - if ( !checkSize && !checkIdx ) - PyErr_SetString(PyExc_TypeError, "wxWindow or wxSizer expected for item"); - else if ( checkSize && !checkIdx ) - PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) expected for item"); - else if ( !checkSize && checkIdx) - PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer or int (position) expected for item"); - else - // can this one happen? - PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) or int (position) expected for item"); - } - - return info; -} - -void wxSizer__setOORInfo(wxSizer *self,PyObject *_self){ - self->SetClientObject(new wxPyOORClientData(_self)); - } -void wxSizer_Add(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ - - wxPyUserData* data = NULL; - bool blocked = wxPyBeginBlockThreads(); - wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); - if ( userData && (info.window || info.sizer || info.gotSize) ) - data = new wxPyUserData(userData); - wxPyEndBlockThreads(blocked); - - // Now call the real Add method if a valid item type was found - if ( info.window ) - self->Add(info.window, proportion, flag, border, data); - else if ( info.sizer ) - self->Add(info.sizer, proportion, flag, border, data); - else if (info.gotSize) - self->Add(info.size.GetWidth(), info.size.GetHeight(), - proportion, flag, border, data); - } -void wxSizer_Insert(wxSizer *self,int before,PyObject *item,int proportion,int flag,int border,PyObject *userData){ - - wxPyUserData* data = NULL; - bool blocked = wxPyBeginBlockThreads(); - wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); - if ( userData && (info.window || info.sizer || info.gotSize) ) - data = new wxPyUserData(userData); - wxPyEndBlockThreads(blocked); - - // Now call the real Insert method if a valid item type was found - if ( info.window ) - self->Insert(before, info.window, proportion, flag, border, data); - else if ( info.sizer ) - self->Insert(before, info.sizer, proportion, flag, border, data); - else if (info.gotSize) - self->Insert(before, info.size.GetWidth(), info.size.GetHeight(), - proportion, flag, border, data); - } -void wxSizer_Prepend(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ - - wxPyUserData* data = NULL; - bool blocked = wxPyBeginBlockThreads(); - wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); - if ( userData && (info.window || info.sizer || info.gotSize) ) - data = new wxPyUserData(userData); - wxPyEndBlockThreads(blocked); - - // Now call the real Prepend method if a valid item type was found - if ( info.window ) - self->Prepend(info.window, proportion, flag, border, data); - else if ( info.sizer ) - self->Prepend(info.sizer, proportion, flag, border, data); - else if (info.gotSize) - self->Prepend(info.size.GetWidth(), info.size.GetHeight(), - proportion, flag, border, data); - } -bool wxSizer_Remove(wxSizer *self,PyObject *item){ - bool blocked = wxPyBeginBlockThreads(); - wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True); - wxPyEndBlockThreads(blocked); - if ( info.window ) - return self->Remove(info.window); - else if ( info.sizer ) - return self->Remove(info.sizer); - else if ( info.gotPos ) - return self->Remove(info.pos); - else - return False; - } -void wxSizer__SetItemMinSize(wxSizer *self,PyObject *item,wxSize const &size){ - bool blocked = wxPyBeginBlockThreads(); - wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True); - wxPyEndBlockThreads(blocked); - if ( info.window ) - self->SetItemMinSize(info.window, size); - else if ( info.sizer ) - self->SetItemMinSize(info.sizer, size); - else if ( info.gotPos ) - self->SetItemMinSize(info.pos, size); - } -PyObject *wxSizer_GetChildren(wxSizer *self){ - wxSizerItemList& list = self->GetChildren(); - return wxPy_ConvertList(&list); - } -void wxSizer_Show(wxSizer *self,PyObject *item,bool show){ - wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); - if ( info.window ) - self->Show(info.window, show); - else if ( info.sizer ) - self->Show(info.sizer, show); - } -void wxSizer_Hide(wxSizer *self,PyObject *item){ - wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); - if ( info.window ) - self->Hide(info.window); - else if ( info.sizer ) - self->Hide(info.sizer); - } -bool wxSizer_IsShown(wxSizer *self,PyObject *item){ - wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); - if ( info.window ) - return self->IsShown(info.window); - else if ( info.sizer ) - return self->IsShown(info.sizer); - else - return False; - } - -// See pyclasses.h -IMP_PYCALLBACK___pure(wxPySizer, wxSizer, RecalcSizes); -IMP_PYCALLBACK_wxSize__pure(wxPySizer, wxSizer, CalcMin); -IMPLEMENT_DYNAMIC_CLASS(wxPySizer, wxSizer); - - - - -bool wxGBPosition_helper(PyObject* source, wxGBPosition** obj) -{ - if (source == Py_None) { - **obj = wxGBPosition(-1,-1); - return True; - } - return wxPyTwoIntItem_helper(source, obj, wxT("wxGBPosition")); -} - -bool wxGBSpan_helper(PyObject* source, wxGBSpan** obj) -{ - if (source == Py_None) { - **obj = wxGBSpan(-1,-1); - return True; - } - return wxPyTwoIntItem_helper(source, obj, wxT("wxGBSpan")); -} - - -void wxGBPosition_Set(wxGBPosition *self,int row,int col){ - self->SetRow(row); - self->SetCol(col); - } -PyObject *wxGBPosition_Get(wxGBPosition *self){ - bool blocked = wxPyBeginBlockThreads(); - PyObject* tup = PyTuple_New(2); - PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow())); - PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol())); - wxPyEndBlockThreads(blocked); - return tup; - } -void wxGBSpan_Set(wxGBSpan *self,int rowspan,int colspan){ - self->SetRowspan(rowspan); - self->SetColspan(colspan); - } -PyObject *wxGBSpan_Get(wxGBSpan *self){ - bool blocked = wxPyBeginBlockThreads(); - PyObject* tup = PyTuple_New(2); - PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRowspan())); - PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetColspan())); - wxPyEndBlockThreads(blocked); - return tup; - } -bool wxGridBagSizer_Add(wxGridBagSizer *self,PyObject *item,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ - - wxPyUserData* data = NULL; - bool blocked = wxPyBeginBlockThreads(); - wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); - if ( userData && (info.window || info.sizer || info.gotSize) ) - data = new wxPyUserData(userData); - wxPyEndBlockThreads(blocked); - - // Now call the real Add method if a valid item type was found - if ( info.window ) - return self->Add(info.window, pos, span, flag, border, data); - else if ( info.sizer ) - return self->Add(info.sizer, pos, span, flag, border, data); - else if (info.gotSize) - return self->Add(info.size.GetWidth(), info.size.GetHeight(), - pos, span, flag, border, data); - return False; - } - - -#ifdef __cplusplus -extern "C" { -#endif -static int _wrap_EmptyString_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable EmptyString is read-only."); - return 1; -} - - -static PyObject *_wrap_EmptyString_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_Object_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxObject *arg1 = (wxObject *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_GetClassName",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxObject_GetClassName(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 - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Object_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxObject *arg1 = (wxObject *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_Destroy",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxObject_Destroy(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * Object_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxObject, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_Size_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSize *arg1 = (wxSize *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_width_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->x = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Size_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSize *arg1 = (wxSize *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_width_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->x); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Size_height_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSize *arg1 = (wxSize *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_height_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->y = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Size_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSize *arg1 = (wxSize *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_height_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->y); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_Size(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - int arg2 = (int) 0 ; - wxSize *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "w",(char *) "h", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Size",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSize *)new wxSize(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_Size(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSize *arg1 = (wxSize *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Size",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Size___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSize *arg1 = (wxSize *) 0 ; - wxSize *arg2 = 0 ; - bool result; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___eq__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->operator ==((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Size___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSize *arg1 = (wxSize *) 0 ; - wxSize *arg2 = 0 ; - bool result; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___ne__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->operator !=((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Size___add__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSize *arg1 = (wxSize *) 0 ; - wxSize *arg2 = 0 ; - wxSize result; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___add__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->operator +((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Size___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSize *arg1 = (wxSize *) 0 ; - wxSize *arg2 = 0 ; - wxSize result; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___sub__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->operator -((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Size_IncTo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSize *arg1 = (wxSize *) 0 ; - wxSize *arg2 = 0 ; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_IncTo",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->IncTo((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Size_DecTo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSize *arg1 = (wxSize *) 0 ; - wxSize *arg2 = 0 ; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_DecTo",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DecTo((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Size_Set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSize *arg1 = (wxSize *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "w",(char *) "h", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Size_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Set(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Size_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSize *arg1 = (wxSize *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "w", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetWidth",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetWidth(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Size_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSize *arg1 = (wxSize *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "h", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetHeight",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetHeight(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Size_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSize *arg1 = (wxSize *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetWidth",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSize const *)arg1)->GetWidth(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Size_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSize *arg1 = (wxSize *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetHeight",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSize const *)arg1)->GetHeight(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Size_IsFullySpecified(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSize *arg1 = (wxSize *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_IsFullySpecified",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxSize const *)arg1)->IsFullySpecified(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Size_SetDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSize *arg1 = (wxSize *) 0 ; - wxSize *arg2 = 0 ; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetDefaults",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDefaults((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Size_Get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSize *arg1 = (wxSize *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_Get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxSize_Get(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject * Size_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxSize, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_RealPoint_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRealPoint *arg1 = (wxRealPoint *) 0 ; - double arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_x_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (double) SWIG_AsDouble(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->x = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RealPoint_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRealPoint *arg1 = (wxRealPoint *) 0 ; - double result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_x_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (double) ((arg1)->x); - - resultobj = SWIG_FromDouble((double)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RealPoint_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRealPoint *arg1 = (wxRealPoint *) 0 ; - double arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_y_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (double) SWIG_AsDouble(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->y = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RealPoint_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRealPoint *arg1 = (wxRealPoint *) 0 ; - double result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_y_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (double) ((arg1)->y); - - resultobj = SWIG_FromDouble((double)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - double arg1 = (double) 0.0 ; - double arg2 = (double) 0.0 ; - wxRealPoint *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RealPoint",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (double) SWIG_AsDouble(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (double) SWIG_AsDouble(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxRealPoint *)new wxRealPoint(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRealPoint, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRealPoint *arg1 = (wxRealPoint *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RealPoint",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RealPoint___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRealPoint *arg1 = (wxRealPoint *) 0 ; - wxRealPoint *arg2 = 0 ; - bool result; - wxRealPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___eq__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->operator ==((wxRealPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RealPoint___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRealPoint *arg1 = (wxRealPoint *) 0 ; - wxRealPoint *arg2 = 0 ; - bool result; - wxRealPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___ne__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->operator !=((wxRealPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RealPoint___add__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRealPoint *arg1 = (wxRealPoint *) 0 ; - wxRealPoint *arg2 = 0 ; - wxRealPoint result; - wxRealPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___add__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->operator +((wxRealPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxRealPoint * resultptr; - resultptr = new wxRealPoint((wxRealPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RealPoint___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRealPoint *arg1 = (wxRealPoint *) 0 ; - wxRealPoint *arg2 = 0 ; - wxRealPoint result; - wxRealPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___sub__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->operator -((wxRealPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxRealPoint * resultptr; - resultptr = new wxRealPoint((wxRealPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RealPoint_Set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRealPoint *arg1 = (wxRealPoint *) 0 ; - double arg2 ; - double arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RealPoint_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (double) SWIG_AsDouble(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (double) SWIG_AsDouble(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxRealPoint_Set(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RealPoint_Get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRealPoint *arg1 = (wxRealPoint *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_Get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxRealPoint_Get(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject * RealPoint_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxRealPoint, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_Point_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint *arg1 = (wxPoint *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_x_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->x = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint *arg1 = (wxPoint *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_x_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->x); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint *arg1 = (wxPoint *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_y_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->y = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint *arg1 = (wxPoint *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_y_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->y); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_Point(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - int arg2 = (int) 0 ; - wxPoint *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPoint *)new wxPoint(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_Point(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint *arg1 = (wxPoint *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Point",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint *arg1 = (wxPoint *) 0 ; - wxPoint *arg2 = 0 ; - bool result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___eq__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->operator ==((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint *arg1 = (wxPoint *) 0 ; - wxPoint *arg2 = 0 ; - bool result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___ne__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->operator !=((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point___add__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint *arg1 = (wxPoint *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___add__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->operator +((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint *arg1 = (wxPoint *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___sub__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->operator -((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint *arg1 = (wxPoint *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint *result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___iadd__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxPoint &_result_ref = (arg1)->operator +=((wxPoint const &)*arg2); - result = (wxPoint *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint *arg1 = (wxPoint *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint *result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___isub__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxPoint &_result_ref = (arg1)->operator -=((wxPoint const &)*arg2); - result = (wxPoint *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point_Set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint *arg1 = (wxPoint *) 0 ; - long arg2 ; - long arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Point_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxPoint_Set(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point_Get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint *arg1 = (wxPoint *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_Get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxPoint_Get(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject * Point_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPoint, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Rect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - int arg2 = (int) 0 ; - int arg3 = (int) 0 ; - int arg4 = (int) 0 ; - wxRect *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Rect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxRect *)new wxRect(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_RectPP(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint *arg1 = 0 ; - wxPoint *arg2 = 0 ; - wxRect *result; - wxPoint temp1 ; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "topLeft",(char *) "bottomRight", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPP",kwnames,&obj0,&obj1)) goto fail; - { - arg1 = &temp1; - if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; - } - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_RectPS(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint *arg1 = 0 ; - wxSize *arg2 = 0 ; - wxRect *result; - wxPoint temp1 ; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "pos",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPS",kwnames,&obj0,&obj1)) goto fail; - { - arg1 = &temp1; - if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; - } - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_Rect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Rect",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetX",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxRect const *)arg1)->GetX(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_SetX(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetX",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetX(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetY",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetY(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_SetY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetY",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetY(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetWidth",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxRect const *)arg1)->GetWidth(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "w", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetWidth",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetWidth(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetHeight",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxRect const *)arg1)->GetHeight(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "h", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetHeight",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetHeight(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxRect const *)arg1)->GetPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "p", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetPosition",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPosition((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxRect const *)arg1)->GetSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - wxSize *arg2 = 0 ; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "s", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSize((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_GetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTopLeft",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxRect const *)arg1)->GetTopLeft(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_SetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "p", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTopLeft",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetTopLeft((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_GetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottomRight",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxRect const *)arg1)->GetBottomRight(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_SetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "p", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottomRight",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetBottomRight((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_GetLeft(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetLeft",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxRect const *)arg1)->GetLeft(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_GetTop(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTop",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxRect const *)arg1)->GetTop(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_GetBottom(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottom",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxRect const *)arg1)->GetBottom(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_GetRight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetRight",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxRect const *)arg1)->GetRight(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_SetLeft(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "left", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetLeft",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetLeft(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_SetRight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "right", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetRight",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetRight(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_SetTop(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "top", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTop",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetTop(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_SetBottom(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bottom", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottom",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetBottom(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_Inflate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int arg2 ; - int arg3 ; - wxRect *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "dx",(char *) "dy", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Inflate",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxRect &_result_ref = (arg1)->Inflate(arg2,arg3); - result = (wxRect *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_Deflate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int arg2 ; - int arg3 ; - wxRect *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "dx",(char *) "dy", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Deflate",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxRect &_result_ref = (arg1)->Deflate(arg2,arg3); - result = (wxRect *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_OffsetXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "dx",(char *) "dy", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_OffsetXY",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Offset(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_Offset(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Offset",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Offset((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - wxRect *arg2 = 0 ; - wxRect *result; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersect",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxRect &_result_ref = (arg1)->Intersect((wxRect const &)*arg2); - result = (wxRect *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect___add__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - wxRect *arg2 = 0 ; - wxRect result; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___add__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxRect const *)arg1)->operator +((wxRect const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxRect * resultptr; - resultptr = new wxRect((wxRect &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - wxRect *arg2 = 0 ; - wxRect *result; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___iadd__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxRect &_result_ref = (arg1)->operator +=((wxRect const &)*arg2); - result = (wxRect *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - wxRect *arg2 = 0 ; - bool result; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___eq__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxRect const *)arg1)->operator ==((wxRect const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - wxRect *arg2 = 0 ; - bool result; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___ne__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxRect const *)arg1)->operator !=((wxRect const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_InsideXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int arg2 ; - int arg3 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_InsideXY",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxRect const *)arg1)->Inside(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_Inside(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - wxPoint *arg2 = 0 ; - bool result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Inside",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxRect const *)arg1)->Inside((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_Intersects(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - wxRect *arg2 = 0 ; - bool result; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersects",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxRect const *)arg1)->Intersects((wxRect const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_x_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->x = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_x_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->x); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_y_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->y = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_y_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->y); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "width", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_width_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->width = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_width_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->width); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_height_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_height_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->height = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_height_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->height); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_Set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int arg2 = (int) 0 ; - int arg3 = (int) 0 ; - int arg4 = (int) 0 ; - int arg5 = (int) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Rect_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxRect_Set(arg1,arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_Get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_Get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxRect_Get(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject * Rect_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxRect, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - wxRect *arg2 = (wxRect *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "r1",(char *) "r2", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IntersectRect",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxIntersectRect(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_Point2D(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - double arg1 = (double) 0.0 ; - double arg2 = (double) 0.0 ; - wxPoint2D *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point2D",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (double) SWIG_AsDouble(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (double) SWIG_AsDouble(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPoint2D *)new wxPoint2D(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_Point2DCopy(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint2D *arg1 = 0 ; - wxPoint2D *result; - wxPoint2D temp1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DCopy",kwnames,&obj0)) goto fail; - { - arg1 = &temp1; - if ( ! wxPoint2D_helper(obj0, &arg1)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPoint2D *)new wxPoint2D((wxPoint2D const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_Point2DFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint *arg1 = 0 ; - wxPoint2D *result; - wxPoint temp1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DFromPoint",kwnames,&obj0)) goto fail; - { - arg1 = &temp1; - if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPoint2D *)new wxPoint2D((wxPoint const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point2D_GetFloor(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint2D *arg1 = (wxPoint2D *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetFloor",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxPoint2D const *)arg1)->GetFloor(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point2D_GetRounded(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint2D *arg1 = (wxPoint2D *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetRounded",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxPoint2D const *)arg1)->GetRounded(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point2D_GetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint2D *arg1 = (wxPoint2D *) 0 ; - double result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorLength",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (double)((wxPoint2D const *)arg1)->GetVectorLength(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromDouble((double)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point2D_GetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint2D *arg1 = (wxPoint2D *) 0 ; - double result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorAngle",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (double)((wxPoint2D const *)arg1)->GetVectorAngle(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromDouble((double)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point2D_SetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint2D *arg1 = (wxPoint2D *) 0 ; - double arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "length", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorLength",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (double) SWIG_AsDouble(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetVectorLength(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point2D_SetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint2D *arg1 = (wxPoint2D *) 0 ; - double arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "degrees", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorAngle",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (double) SWIG_AsDouble(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetVectorAngle(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point2D_GetDistance(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint2D *arg1 = (wxPoint2D *) 0 ; - wxPoint2D *arg2 = 0 ; - double result; - wxPoint2D temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistance",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (double)((wxPoint2D const *)arg1)->GetDistance((wxPoint2D const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromDouble((double)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point2D_GetDistanceSquare(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint2D *arg1 = (wxPoint2D *) 0 ; - wxPoint2D *arg2 = 0 ; - double result; - wxPoint2D temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistanceSquare",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (double)((wxPoint2D const *)arg1)->GetDistanceSquare((wxPoint2D const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromDouble((double)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point2D_GetDotProduct(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint2D *arg1 = (wxPoint2D *) 0 ; - wxPoint2D *arg2 = 0 ; - double result; - wxPoint2D temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "vec", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDotProduct",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (double)((wxPoint2D const *)arg1)->GetDotProduct((wxPoint2D const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromDouble((double)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point2D_GetCrossProduct(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint2D *arg1 = (wxPoint2D *) 0 ; - wxPoint2D *arg2 = 0 ; - double result; - wxPoint2D temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "vec", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetCrossProduct",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (double)((wxPoint2D const *)arg1)->GetCrossProduct((wxPoint2D const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromDouble((double)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point2D___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint2D *arg1 = (wxPoint2D *) 0 ; - wxPoint2D result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D___neg__",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->operator -(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint2D * resultptr; - resultptr = new wxPoint2D((wxPoint2D &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint2D, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point2D___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint2D *arg1 = (wxPoint2D *) 0 ; - wxPoint2D *arg2 = 0 ; - wxPoint2D *result; - wxPoint2D temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___iadd__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxPoint2D &_result_ref = (arg1)->operator +=((wxPoint2D const &)*arg2); - result = (wxPoint2D *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point2D___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint2D *arg1 = (wxPoint2D *) 0 ; - wxPoint2D *arg2 = 0 ; - wxPoint2D *result; - wxPoint2D temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___isub__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxPoint2D &_result_ref = (arg1)->operator -=((wxPoint2D const &)*arg2); - result = (wxPoint2D *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point2D___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint2D *arg1 = (wxPoint2D *) 0 ; - wxPoint2D *arg2 = 0 ; - wxPoint2D *result; - wxPoint2D temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___imul__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxPoint2D &_result_ref = (arg1)->operator *=((wxPoint2D const &)*arg2); - result = (wxPoint2D *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point2D___idiv__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint2D *arg1 = (wxPoint2D *) 0 ; - wxPoint2D *arg2 = 0 ; - wxPoint2D *result; - wxPoint2D temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___idiv__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxPoint2D &_result_ref = (arg1)->operator /=((wxPoint2D const &)*arg2); - result = (wxPoint2D *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point2D___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint2D *arg1 = (wxPoint2D *) 0 ; - wxPoint2D *arg2 = 0 ; - bool result; - wxPoint2D temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___eq__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPoint2D const *)arg1)->operator ==((wxPoint2D const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point2D___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint2D *arg1 = (wxPoint2D *) 0 ; - wxPoint2D *arg2 = 0 ; - bool result; - wxPoint2D temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___ne__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPoint2D const *)arg1)->operator !=((wxPoint2D const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point2D_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint2D *arg1 = (wxPoint2D *) 0 ; - double arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_x", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_x_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (double) SWIG_AsDouble(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_x = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point2D_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint2D *arg1 = (wxPoint2D *) 0 ; - double result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_x_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (double) ((arg1)->m_x); - - resultobj = SWIG_FromDouble((double)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point2D_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint2D *arg1 = (wxPoint2D *) 0 ; - double arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_y_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (double) SWIG_AsDouble(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_y = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point2D_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint2D *arg1 = (wxPoint2D *) 0 ; - double result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_y_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (double) ((arg1)->m_y); - - resultobj = SWIG_FromDouble((double)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point2D_Set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint2D *arg1 = (wxPoint2D *) 0 ; - double arg2 = (double) 0 ; - double arg3 = (double) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Point2D_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (double) SWIG_AsDouble(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (double) SWIG_AsDouble(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxPoint2D_Set(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point2D_Get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint2D *arg1 = (wxPoint2D *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_Get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxPoint2D_Get(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject * Point2D_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPoint2D, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_DefaultPosition_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable DefaultPosition is read-only."); - return 1; -} - - -static PyObject *_wrap_DefaultPosition_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(&wxDefaultPosition), SWIGTYPE_p_wxPoint, 0); - return pyobj; -} - - -static int _wrap_DefaultSize_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable DefaultSize is read-only."); - return 1; -} - - -static PyObject *_wrap_DefaultSize_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSize), SWIGTYPE_p_wxSize, 0); - return pyobj; -} - - -static PyObject *_wrap_new_InputStream(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - PyObject *arg1 = (PyObject *) 0 ; - wxPyInputStream *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "p", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_InputStream",kwnames,&obj0)) goto fail; - arg1 = obj0; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyInputStream *)new_wxPyInputStream(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyInputStream, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_InputStream_close(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_close",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->close(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_InputStream_flush(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_flush",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->flush(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_InputStream_eof(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_eof",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->eof(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_InputStream_read(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; - int arg2 = (int) -1 ; - PyObject *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_read",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)(arg1)->read(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_InputStream_readline(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; - int arg2 = (int) -1 ; - PyObject *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readline",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)(arg1)->readline(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_InputStream_readlines(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; - int arg2 = (int) -1 ; - PyObject *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sizehint", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readlines",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)(arg1)->readlines(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_InputStream_seek(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; - int arg2 ; - int arg3 = (int) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "offset",(char *) "whence", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_seek",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->seek(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_InputStream_tell(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_tell",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->tell(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_InputStream_Peek(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; - char result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Peek",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (char)(arg1)->Peek(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromChar((char)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_InputStream_GetC(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; - char result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_GetC",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (char)(arg1)->GetC(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromChar((char)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_InputStream_LastRead(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; - size_t result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_LastRead",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (size_t)(arg1)->LastRead(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_InputStream_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_CanRead",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->CanRead(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_InputStream_Eof(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Eof",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Eof(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_InputStream_Ungetch(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; - char arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "c", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InputStream_Ungetch",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (char) SWIG_AsChar(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Ungetch(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_InputStream_SeekI(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; - long arg2 ; - int arg3 = (int) wxFromStart ; - long result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos",(char *) "mode", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_SeekI",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (wxSeekMode) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->SeekI(arg2,(wxSeekMode )arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_InputStream_TellI(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_TellI",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->TellI(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * InputStream_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyInputStream, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_OutputStream_write(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxOutputStream *arg1 = (wxOutputStream *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "obj", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:OutputStream_write",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxOutputStream, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxOutputStream_write(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * OutputStream_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxOutputStream, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxInputStream *arg1 = (wxInputStream *) 0 ; - wxString *arg2 = 0 ; - wxString *arg3 = 0 ; - wxString *arg4 = 0 ; - wxDateTime arg5 ; - wxFSFile *result; - wxPyInputStream *temp1 ; - bool created1 ; - bool temp2 = False ; - bool temp3 = False ; - bool temp4 = False ; - wxDateTime *argp5 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "stream",(char *) "loc",(char *) "mimetype",(char *) "anchor",(char *) "modif", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_FSFile",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - { - if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { - arg1 = temp1->m_wxis; - created1 = False; - } else { - PyErr_Clear(); // clear the failure of the wxPyConvert above - arg1 = wxPyCBInputStream_create(obj0, False); - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); - SWIG_fail; - } - created1 = True; - } - } - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - if ((SWIG_ConvertPtr(obj4,(void **)(&argp5),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; - arg5 = *argp5; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFSFile *)new wxFSFile(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (created1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (created1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_delete_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFSFile *arg1 = (wxFSFile *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FSFile",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FSFile_GetStream(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFSFile *arg1 = (wxFSFile *) 0 ; - wxInputStream *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetStream",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxInputStream *)(arg1)->GetStream(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPyInputStream * _ptr = NULL; - - if (result) { - _ptr = new wxPyInputStream(result); - } - resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FSFile_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFSFile *arg1 = (wxFSFile *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetMimeType",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = (arg1)->GetMimeType(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FSFile_GetLocation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFSFile *arg1 = (wxFSFile *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetLocation",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = (arg1)->GetLocation(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FSFile_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFSFile *arg1 = (wxFSFile *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetAnchor",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = (arg1)->GetAnchor(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FSFile_GetModificationTime(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFSFile *arg1 = (wxFSFile *) 0 ; - wxDateTime result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetModificationTime",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetModificationTime(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateTime * resultptr; - resultptr = new wxDateTime((wxDateTime &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * FSFile_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxFSFile, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject * CPPFileSystemHandler_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxFileSystemHandler, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_FileSystemHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFileSystemHandler *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystemHandler",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyFileSystemHandler *)new wxPyFileSystemHandler(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileSystemHandler, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileSystemHandler__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileSystemHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; - wxString *arg2 = 0 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "location", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->CanOpen((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_FileSystemHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; - wxFileSystem *arg2 = 0 ; - wxString *arg3 = 0 ; - wxFSFile *result; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "fs",(char *) "location", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_FileSystemHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; - wxString *arg2 = 0 ; - int arg3 = (int) 0 ; - wxString result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "spec",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystemHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->FindFirst((wxString const &)*arg2,arg3); - - 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 (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_FileSystemHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystemHandler_FindNext",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->FindNext(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileSystemHandler_GetProtocol(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; - wxString *arg2 = 0 ; - wxString result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "location", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetProtocol",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetProtocol((wxString const &)*arg2); - - 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 (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_FileSystemHandler_GetLeftLocation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; - wxString *arg2 = 0 ; - wxString result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "location", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetLeftLocation",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetLeftLocation((wxString const &)*arg2); - - 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 (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_FileSystemHandler_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; - wxString *arg2 = 0 ; - wxString result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "location", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetAnchor",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetAnchor((wxString const &)*arg2); - - 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 (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_FileSystemHandler_GetRightLocation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; - wxString *arg2 = 0 ; - wxString result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "location", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetRightLocation",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetRightLocation((wxString const &)*arg2); - - 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 (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_FileSystemHandler_GetMimeTypeFromExt(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; - wxString *arg2 = 0 ; - wxString result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "location", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetMimeTypeFromExt",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetMimeTypeFromExt((wxString const &)*arg2); - - 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 (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject * FileSystemHandler_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyFileSystemHandler, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileSystem *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystem",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFileSystem *)new wxFileSystem(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileSystem *arg1 = (wxFileSystem *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileSystem",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileSystem_ChangePathTo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileSystem *arg1 = (wxFileSystem *) 0 ; - wxString *arg2 = 0 ; - bool arg3 = (bool) False ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "location",(char *) "is_dir", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_ChangePathTo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ChangePathTo((wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_FileSystem_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileSystem *arg1 = (wxFileSystem *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_GetPath",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetPath(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileSystem_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileSystem *arg1 = (wxFileSystem *) 0 ; - wxString *arg2 = 0 ; - wxFSFile *result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "location", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystem_OpenFile",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFSFile *)(arg1)->OpenFile((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_FileSystem_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileSystem *arg1 = (wxFileSystem *) 0 ; - wxString *arg2 = 0 ; - int arg3 = (int) 0 ; - wxString result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "spec",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->FindFirst((wxString const &)*arg2,arg3); - - 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 (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_FileSystem_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileSystem *arg1 = (wxFileSystem *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FindNext",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->FindNext(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileSystem_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileSystemHandler *arg1 = (wxFileSystemHandler *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "handler", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_AddHandler",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystemHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxFileSystem::AddHandler(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileSystem_CleanUpHandlers(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FileSystem_CleanUpHandlers",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxFileSystem::CleanUpHandlers(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileSystem_FileNameToURL(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "filename", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FileNameToURL",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxFileSystem::FileNameToURL((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; -} - - -static PyObject * FileSystem_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxFileSystem, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_FileSystem_URLToFileName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "url", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_URLToFileName",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxFileSystem_URLToFileName((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; -} - - -static PyObject *_wrap_new_InternetFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxInternetFSHandler *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_InternetFSHandler",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxInternetFSHandler *)new wxInternetFSHandler(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInternetFSHandler, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_InternetFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; - wxString *arg2 = 0 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "location", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InternetFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->CanOpen((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_InternetFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; - wxFileSystem *arg2 = 0 ; - wxString *arg3 = 0 ; - wxFSFile *result; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "fs",(char *) "location", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:InternetFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject * InternetFSHandler_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxInternetFSHandler, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ZipFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxZipFSHandler *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ZipFSHandler",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxZipFSHandler *)new wxZipFSHandler(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxZipFSHandler, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ZipFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; - wxString *arg2 = 0 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "location", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ZipFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->CanOpen((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ZipFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; - wxFileSystem *arg2 = 0 ; - wxString *arg3 = 0 ; - wxFSFile *result; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "fs",(char *) "location", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ZipFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_ZipFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; - wxString *arg2 = 0 ; - int arg3 = (int) 0 ; - wxString result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "spec",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ZipFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->FindFirst((wxString const &)*arg2,arg3); - - 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 (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ZipFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ZipFSHandler_FindNext",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->FindNext(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * ZipFSHandler_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxZipFSHandler, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxImage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxImage *arg2 = 0 ; - long arg3 ; - bool temp1 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "filename",(char *) "image",(char *) "type", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxImage",kwnames,&obj0,&obj1,&obj2)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - __wxMemoryFSHandler_AddFile_wxImage((wxString const &)*arg1,*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxBitmap *arg2 = 0 ; - long arg3 ; - bool temp1 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "filename",(char *) "bitmap",(char *) "type", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - __wxMemoryFSHandler_AddFile_wxBitmap((wxString const &)*arg1,(wxBitmap const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap___wxMemoryFSHandler_AddFile_Data(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - PyObject *arg2 = (PyObject *) 0 ; - bool temp1 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "filename",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:__wxMemoryFSHandler_AddFile_Data",kwnames,&obj0,&obj1)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - arg2 = obj1; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - __wxMemoryFSHandler_AddFile_Data((wxString const &)*arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_new_MemoryFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMemoryFSHandler *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryFSHandler",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMemoryFSHandler *)new wxMemoryFSHandler(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryFSHandler, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MemoryFSHandler_RemoveFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "filename", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_RemoveFile",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxMemoryFSHandler::RemoveFile((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_MemoryFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; - wxString *arg2 = 0 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "location", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->CanOpen((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_MemoryFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; - wxFileSystem *arg2 = 0 ; - wxString *arg3 = 0 ; - wxFSFile *result; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "fs",(char *) "location", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MemoryFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_MemoryFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; - wxString *arg2 = 0 ; - int arg3 = (int) 0 ; - wxString result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "spec",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MemoryFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->FindFirst((wxString const &)*arg2,arg3); - - 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 (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_MemoryFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_FindNext",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->FindNext(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * MemoryFSHandler_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxMemoryFSHandler, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_ImageHandler_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImageHandler *arg1 = (wxImageHandler *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetName",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetName(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ImageHandler_GetExtension(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImageHandler *arg1 = (wxImageHandler *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetExtension",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetExtension(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ImageHandler_GetType(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImageHandler *arg1 = (wxImageHandler *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetType",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->GetType(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ImageHandler_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImageHandler *arg1 = (wxImageHandler *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetMimeType",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetMimeType(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ImageHandler_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImageHandler *arg1 = (wxImageHandler *) 0 ; - wxString *arg2 = 0 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_CanRead",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->CanRead((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ImageHandler_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImageHandler *arg1 = (wxImageHandler *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetName",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetName((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ImageHandler_SetExtension(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImageHandler *arg1 = (wxImageHandler *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "extension", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetExtension",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetExtension((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ImageHandler_SetType(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImageHandler *arg1 = (wxImageHandler *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "type", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetType",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetType(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ImageHandler_SetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImageHandler *arg1 = (wxImageHandler *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "mimetype", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetMimeType",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMimeType((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject * ImageHandler_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxImageHandler, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ImageHistogram(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImageHistogram *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ImageHistogram",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxImageHistogram *)new wxImageHistogram(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImageHistogram, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ImageHistogram_MakeKey(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - unsigned char arg1 ; - unsigned char arg2 ; - unsigned char arg3 ; - unsigned long result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "r",(char *) "g",(char *) "b", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageHistogram_MakeKey",kwnames,&obj0,&obj1,&obj2)) goto fail; - arg1 = (unsigned char) SWIG_AsUnsignedChar(obj0); - if (PyErr_Occurred()) SWIG_fail; - arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (unsigned long)wxImageHistogram::MakeKey(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ImageHistogram_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImageHistogram *arg1 = (wxImageHistogram *) 0 ; - unsigned char *arg2 = (unsigned char *) 0 ; - unsigned char *arg3 = (unsigned char *) 0 ; - unsigned char *arg4 = (unsigned char *) 0 ; - unsigned char arg5 = (unsigned char) 1 ; - unsigned char arg6 = (unsigned char) 0 ; - unsigned char arg7 = (unsigned char) 0 ; - bool result; - unsigned char temp2 ; - unsigned char temp3 ; - unsigned char temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - arg4 = &temp4; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:ImageHistogram_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHistogram, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg5 = (unsigned char) SWIG_AsUnsignedChar(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg6 = (unsigned char) SWIG_AsUnsignedChar(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg7 = (unsigned char) SWIG_AsUnsignedChar(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxImageHistogram const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg4)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * ImageHistogram_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxImageHistogram, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Image(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - long arg2 = (long) wxBITMAP_TYPE_ANY ; - int arg3 = (int) -1 ; - wxImage *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "name",(char *) "type",(char *) "index", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Image",kwnames,&obj0,&obj1,&obj2)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - if (obj1) { - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxImage *)new wxImage((wxString const &)*arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_delete_Image(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Image",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_ImageFromMime(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString *arg2 = 0 ; - int arg3 = (int) -1 ; - wxImage *result; - bool temp1 = False ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "name",(char *) "mimetype",(char *) "index", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromMime",kwnames,&obj0,&obj1,&obj2)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxImage *)new wxImage((wxString const &)*arg1,(wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_new_ImageFromStream(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxInputStream *arg1 = 0 ; - long arg2 = (long) wxBITMAP_TYPE_ANY ; - int arg3 = (int) -1 ; - wxImage *result; - wxPyInputStream *temp1 ; - bool created1 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "stream",(char *) "type",(char *) "index", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_ImageFromStream",kwnames,&obj0,&obj1,&obj2)) goto fail; - { - if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { - arg1 = temp1->m_wxis; - created1 = False; - } else { - PyErr_Clear(); // clear the failure of the wxPyConvert above - arg1 = wxPyCBInputStream_create(obj0, False); - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); - SWIG_fail; - } - created1 = True; - } - } - if (obj1) { - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxImage *)new wxImage(*arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); - { - if (created1) - delete arg1; - } - return resultobj; - fail: - { - if (created1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_new_ImageFromStreamMime(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxInputStream *arg1 = 0 ; - wxString *arg2 = 0 ; - int arg3 = (int) -1 ; - wxImage *result; - wxPyInputStream *temp1 ; - bool created1 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "stream",(char *) "mimetype",(char *) "index", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromStreamMime",kwnames,&obj0,&obj1,&obj2)) goto fail; - { - if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { - arg1 = temp1->m_wxis; - created1 = False; - } else { - PyErr_Clear(); // clear the failure of the wxPyConvert above - arg1 = wxPyCBInputStream_create(obj0, False); - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); - SWIG_fail; - } - created1 = True; - } - } - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxImage *)new wxImage(*arg1,(wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); - { - if (created1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (created1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_new_EmptyImage__SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - int arg1 = (int) 0 ; - int arg2 = (int) 0 ; - bool arg3 = (bool) True ; - wxImage *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"|OOO:new_EmptyImage",&obj0,&obj1,&obj2)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxImage *)new_wxImage__SWIG_0(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_EmptyImage__SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxSize *arg1 = 0 ; - bool arg2 = (bool) True ; - wxImage *result; - wxSize temp1 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"O|O:new_EmptyImage",&obj0,&obj1)) goto fail; - { - arg1 = &temp1; - if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; - } - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxImage *)new_wxImage__SWIG_1((wxSize const &)*arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_EmptyImage(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if ((argc >= 0) && (argc <= 3)) { - int _v; - if (argc <= 0) { - return _wrap_new_EmptyImage__SWIG_0(self,args); - } - _v = SWIG_CheckInt(argv[0]); - if (_v) { - if (argc <= 1) { - return _wrap_new_EmptyImage__SWIG_0(self,args); - } - _v = SWIG_CheckInt(argv[1]); - if (_v) { - if (argc <= 2) { - return _wrap_new_EmptyImage__SWIG_0(self,args); - } - _v = SWIG_CheckBool(argv[2]); - if (_v) { - return _wrap_new_EmptyImage__SWIG_0(self,args); - } - } - } - } - if ((argc >= 1) && (argc <= 2)) { - int _v; - { - _v = wxPySimple_typecheck(argv[0], wxT("wxSize"), 2); - } - if (_v) { - if (argc <= 1) { - return _wrap_new_EmptyImage__SWIG_1(self,args); - } - _v = SWIG_CheckBool(argv[1]); - if (_v) { - return _wrap_new_EmptyImage__SWIG_1(self,args); - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_EmptyImage'"); - return NULL; -} - - -static PyObject *_wrap_new_ImageFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = 0 ; - wxImage *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "bitmap", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ImageFromBitmap",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxImage *)new_wxImage((wxBitmap const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_ImageFromData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - int arg2 ; - unsigned char *arg3 = (unsigned char *) 0 ; - wxImage *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "width",(char *) "height",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ImageFromData",kwnames,&obj0,&obj1,&obj2)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxImage *)new_wxImage(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Create(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Destroy",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Destroy(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_Scale(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - int arg2 ; - int arg3 ; - SwigValueWrapper< wxImage > result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Scale",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->Scale(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxImage * resultptr; - resultptr = new wxImage((wxImage &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_ShrinkBy(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - int arg2 ; - int arg3 ; - SwigValueWrapper< wxImage > result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "xFactor",(char *) "yFactor", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_ShrinkBy",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxImage const *)arg1)->ShrinkBy(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxImage * resultptr; - resultptr = new wxImage((wxImage &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_Rescale(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - int arg2 ; - int arg3 ; - wxImage *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Rescale",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxImage &_result_ref = (arg1)->Rescale(arg2,arg3); - result = (wxImage *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - int arg2 ; - int arg3 ; - unsigned char arg4 ; - unsigned char arg5 ; - unsigned char arg6 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "g",(char *) "b", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Image_SetRGB",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (unsigned char) SWIG_AsUnsignedChar(obj4); - if (PyErr_Occurred()) SWIG_fail; - arg6 = (unsigned char) SWIG_AsUnsignedChar(obj5); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetRGB(arg2,arg3,arg4,arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_GetRed(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - int arg2 ; - int arg3 ; - unsigned char result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetRed",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (unsigned char)(arg1)->GetRed(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedChar((unsigned char)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_GetGreen(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - int arg2 ; - int arg3 ; - unsigned char result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetGreen",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (unsigned char)(arg1)->GetGreen(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedChar((unsigned char)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_GetBlue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - int arg2 ; - int arg3 ; - unsigned char result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetBlue",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (unsigned char)(arg1)->GetBlue(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedChar((unsigned char)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_SetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - int arg2 ; - int arg3 ; - unsigned char arg4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "alpha", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetAlpha(arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_GetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - int arg2 ; - int arg3 ; - unsigned char result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetAlpha",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (unsigned char)(arg1)->GetAlpha(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedChar((unsigned char)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_HasAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasAlpha",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->HasAlpha(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - byte *arg2 = (byte *) 0 ; - byte *arg3 = (byte *) 0 ; - byte *arg4 = (byte *) 0 ; - byte arg5 = (byte) 0 ; - byte arg6 = (byte) 0 ; - byte arg7 = (byte) 0 ; - bool result; - byte temp2 ; - byte temp3 ; - byte temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - arg4 = &temp4; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Image_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg5 = (byte) SWIG_AsUnsignedChar(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg6 = (byte) SWIG_AsUnsignedChar(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg7 = (byte) SWIG_AsUnsignedChar(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxImage const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg4)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_SetMaskFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - wxImage *arg2 = 0 ; - byte arg3 ; - byte arg4 ; - byte arg5 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "mask",(char *) "mr",(char *) "mg",(char *) "mb", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Image_SetMaskFromImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - arg3 = (byte) SWIG_AsUnsignedChar(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (byte) SWIG_AsUnsignedChar(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (byte) SWIG_AsUnsignedChar(obj4); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetMaskFromImage((wxImage const &)*arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_CanRead(PyObject *self, 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:Image_CanRead",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxImage::CanRead((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 *_wrap_Image_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - long arg2 = (long) wxBITMAP_TYPE_ANY ; - int result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "name",(char *) "type", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_GetImageCount",kwnames,&obj0,&obj1)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - if (obj1) { - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxImage::GetImageCount((wxString const &)*arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_Image_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - wxString *arg2 = 0 ; - long arg3 = (long) wxBITMAP_TYPE_ANY ; - int arg4 = (int) -1 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name",(char *) "type",(char *) "index", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Image_LoadMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - wxString *arg2 = 0 ; - wxString *arg3 = 0 ; - int arg4 = (int) -1 ; - bool result; - bool temp2 = False ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name",(char *) "mimetype",(char *) "index", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxString const &)*arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_Image_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - wxString *arg2 = 0 ; - int arg3 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name",(char *) "type", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveFile",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Image_SaveMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - wxString *arg2 = 0 ; - wxString *arg3 = 0 ; - bool result; - bool temp2 = False ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name",(char *) "mimetype", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveMimeFile",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_Image_CanReadStream(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxInputStream *arg1 = 0 ; - bool result; - wxPyInputStream *temp1 ; - bool created1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "stream", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanReadStream",kwnames,&obj0)) goto fail; - { - if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { - arg1 = temp1->m_wxis; - created1 = False; - } else { - PyErr_Clear(); // clear the failure of the wxPyConvert above - arg1 = wxPyCBInputStream_create(obj0, False); - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); - SWIG_fail; - } - created1 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxImage::CanRead(*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (created1) - delete arg1; - } - return resultobj; - fail: - { - if (created1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_Image_LoadStream(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - wxInputStream *arg2 = 0 ; - long arg3 = (long) wxBITMAP_TYPE_ANY ; - int arg4 = (int) -1 ; - bool result; - wxPyInputStream *temp2 ; - bool created2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "stream",(char *) "type",(char *) "index", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { - arg2 = temp2->m_wxis; - created2 = False; - } else { - PyErr_Clear(); // clear the failure of the wxPyConvert above - arg2 = wxPyCBInputStream_create(obj1, False); - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); - SWIG_fail; - } - created2 = True; - } - } - if (obj2) { - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->LoadFile(*arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (created2) - delete arg2; - } - return resultobj; - fail: - { - if (created2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Image_LoadMimeStream(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - wxInputStream *arg2 = 0 ; - wxString *arg3 = 0 ; - int arg4 = (int) -1 ; - bool result; - wxPyInputStream *temp2 ; - bool created2 ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "stream",(char *) "mimetype",(char *) "index", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { - arg2 = temp2->m_wxis; - created2 = False; - } else { - PyErr_Clear(); // clear the failure of the wxPyConvert above - arg2 = wxPyCBInputStream_create(obj1, False); - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); - SWIG_fail; - } - created2 = True; - } - } - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->LoadFile(*arg2,(wxString const &)*arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (created2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (created2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_Image_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Ok",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Ok(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetWidth",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetWidth(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetHeight",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetHeight(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxImage_GetSize(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_GetSubImage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - wxRect *arg2 = 0 ; - SwigValueWrapper< wxImage > result; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetSubImage",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetSubImage((wxRect const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxImage * resultptr; - resultptr = new wxImage((wxImage &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - SwigValueWrapper< wxImage > result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Copy",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->Copy(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxImage * resultptr; - resultptr = new wxImage((wxImage &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - wxImage *arg2 = 0 ; - int arg3 ; - int arg4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "image",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_Paste",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Paste((wxImage const &)*arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxImage_GetData(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetData",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxImage_SetData(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_GetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetDataBuffer",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxImage_GetDataBuffer(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_SetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetDataBuffer",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxImage_SetDataBuffer(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_GetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxImage_GetAlphaData(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_SetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaData",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxImage_SetAlphaData(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_GetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaBuffer",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxImage_GetAlphaBuffer(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_SetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaBuffer",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxImage_SetAlphaBuffer(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - unsigned char arg2 ; - unsigned char arg3 ; - unsigned char arg4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetMaskColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMaskColour(arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_GetMaskRed(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - unsigned char result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskRed",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (unsigned char)(arg1)->GetMaskRed(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedChar((unsigned char)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_GetMaskGreen(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - unsigned char result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskGreen",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (unsigned char)(arg1)->GetMaskGreen(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedChar((unsigned char)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_GetMaskBlue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - unsigned char result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskBlue",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (unsigned char)(arg1)->GetMaskBlue(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedChar((unsigned char)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - bool arg2 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "mask", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_SetMask",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMask(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_HasMask(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasMask",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->HasMask(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_Rotate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - double arg2 ; - wxPoint *arg3 = 0 ; - bool arg4 = (bool) True ; - wxPoint *arg5 = (wxPoint *) NULL ; - SwigValueWrapper< wxImage > result; - wxPoint temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "angle",(char *) "centre_of_rotation",(char *) "interpolating",(char *) "offset_after_rotation", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Image_Rotate",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (double) SWIG_AsDouble(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - if (obj3) { - arg4 = (bool) SWIG_AsBool(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj4) { - if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxImage const *)arg1)->Rotate(arg2,(wxPoint const &)*arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxImage * resultptr; - resultptr = new wxImage((wxImage &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_Rotate90(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - bool arg2 = (bool) True ; - SwigValueWrapper< wxImage > result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "clockwise", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Rotate90",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->Rotate90(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxImage * resultptr; - resultptr = new wxImage((wxImage &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_Mirror(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - bool arg2 = (bool) True ; - SwigValueWrapper< wxImage > result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "horizontally", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Mirror",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->Mirror(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxImage * resultptr; - resultptr = new wxImage((wxImage &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - unsigned char arg2 ; - unsigned char arg3 ; - unsigned char arg4 ; - unsigned char arg5 ; - unsigned char arg6 ; - unsigned char arg7 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "r1",(char *) "g1",(char *) "b1",(char *) "r2",(char *) "g2",(char *) "b2", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:Image_Replace",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (unsigned char) SWIG_AsUnsignedChar(obj4); - if (PyErr_Occurred()) SWIG_fail; - arg6 = (unsigned char) SWIG_AsUnsignedChar(obj5); - if (PyErr_Occurred()) SWIG_fail; - arg7 = (unsigned char) SWIG_AsUnsignedChar(obj6); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Replace(arg2,arg3,arg4,arg5,arg6,arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_ConvertToMono(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - unsigned char arg2 ; - unsigned char arg3 ; - unsigned char arg4 ; - SwigValueWrapper< wxImage > result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMono",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxImage const *)arg1)->ConvertToMono(arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxImage * resultptr; - resultptr = new wxImage((wxImage &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - wxString *arg2 = 0 ; - wxString *arg3 = 0 ; - bool temp2 = False ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name",(char *) "value", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOption",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetOption((wxString const &)*arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_Image_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - wxString *arg2 = 0 ; - int arg3 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name",(char *) "value", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOptionInt",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetOption((wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Image_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - wxString *arg2 = 0 ; - wxString result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOption",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxImage const *)arg1)->GetOption((wxString const &)*arg2); - - 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 (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Image_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - wxString *arg2 = 0 ; - int result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOptionInt",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxImage const *)arg1)->GetOptionInt((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Image_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - wxString *arg2 = 0 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_HasOption",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxImage const *)arg1)->HasOption((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Image_CountColours(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - unsigned long arg2 = (unsigned long) (unsigned long) -1 ; - unsigned long result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "stopafter", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_CountColours",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (unsigned long)(arg1)->CountColours(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_ComputeHistogram(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - wxImageHistogram *arg2 = 0 ; - unsigned long result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "h", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_ComputeHistogram",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageHistogram, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (unsigned long)(arg1)->ComputeHistogram(*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImageHandler *arg1 = (wxImageHandler *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "handler", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_AddHandler",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxImage::AddHandler(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_InsertHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImageHandler *arg1 = (wxImageHandler *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "handler", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_InsertHandler",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxImage::InsertHandler(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_RemoveHandler(PyObject *self, 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:Image_RemoveHandler",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxImage::RemoveHandler((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 *_wrap_Image_GetImageExtWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Image_GetImageExtWildcard",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxImage::GetImageExtWildcard(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - wxBitmap result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_ConvertToBitmap",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxImage_ConvertToBitmap(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxBitmap * resultptr; - resultptr = new wxBitmap((wxBitmap &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_ConvertToMonoBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - unsigned char arg2 ; - unsigned char arg3 ; - unsigned char arg4 ; - wxBitmap result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMonoBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxImage_ConvertToMonoBitmap(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxBitmap * resultptr; - resultptr = new wxBitmap((wxBitmap &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * Image_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxImage, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_InitAllImageHandlers(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":InitAllImageHandlers",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxInitAllImageHandlers(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static int _wrap_NullImage_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable NullImage is read-only."); - return 1; -} - - -static PyObject *_wrap_NullImage_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(&wxNullImage), SWIGTYPE_p_wxImage, 0); - return pyobj; -} - - -static int _wrap_IMAGE_OPTION_BMP_FORMAT_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_BMP_FORMAT is read-only."); - return 1; -} - - -static PyObject *_wrap_IMAGE_OPTION_BMP_FORMAT_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_X is read-only."); - return 1; -} - - -static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_Y is read-only."); - return 1; -} - - -static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_IMAGE_OPTION_RESOLUTION_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTION is read-only."); - return 1; -} - - -static PyObject *_wrap_IMAGE_OPTION_RESOLUTION_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTIONUNIT is read-only."); - return 1; -} - - -static PyObject *_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_BMPHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBMPHandler *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_BMPHandler",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxBMPHandler *)new wxBMPHandler(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBMPHandler, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * BMPHandler_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxBMPHandler, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ICOHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxICOHandler *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ICOHandler",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxICOHandler *)new wxICOHandler(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxICOHandler, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * ICOHandler_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxICOHandler, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_CURHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCURHandler *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_CURHandler",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxCURHandler *)new wxCURHandler(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCURHandler, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * CURHandler_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxCURHandler, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ANIHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxANIHandler *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ANIHandler",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxANIHandler *)new wxANIHandler(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxANIHandler, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * ANIHandler_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxANIHandler, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PNGHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPNGHandler *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNGHandler",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPNGHandler *)new wxPNGHandler(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNGHandler, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * PNGHandler_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPNGHandler, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_GIFHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGIFHandler *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GIFHandler",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGIFHandler *)new wxGIFHandler(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGIFHandler, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * GIFHandler_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxGIFHandler, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PCXHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPCXHandler *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PCXHandler",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPCXHandler *)new wxPCXHandler(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPCXHandler, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * PCXHandler_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPCXHandler, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_JPEGHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJPEGHandler *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_JPEGHandler",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxJPEGHandler *)new wxJPEGHandler(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJPEGHandler, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * JPEGHandler_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxJPEGHandler, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PNMHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPNMHandler *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNMHandler",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPNMHandler *)new wxPNMHandler(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNMHandler, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * PNMHandler_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPNMHandler, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_XPMHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxXPMHandler *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_XPMHandler",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxXPMHandler *)new wxXPMHandler(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXPMHandler, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * XPMHandler_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxXPMHandler, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_TIFFHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTIFFHandler *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TIFFHandler",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxTIFFHandler *)new wxTIFFHandler(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTIFFHandler, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * TIFFHandler_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxTIFFHandler, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_EvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvtHandler *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EvtHandler",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxEvtHandler *)new wxEvtHandler(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_EvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; - wxEvtHandler *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetNextHandler",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxEvtHandler *)(arg1)->GetNextHandler(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_EvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; - wxEvtHandler *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetPreviousHandler",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxEvtHandler *)(arg1)->GetPreviousHandler(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_EvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; - wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "handler", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetNextHandler",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetNextHandler(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_EvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; - wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "handler", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetPreviousHandler",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPreviousHandler(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_EvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetEvtHandlerEnabled",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetEvtHandlerEnabled(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_EvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "enabled", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetEvtHandlerEnabled",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetEvtHandlerEnabled(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_EvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; - wxEvent *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "event", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_ProcessEvent",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->ProcessEvent(*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_EvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; - wxEvent *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "event", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_AddPendingEvent",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AddPendingEvent(*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_EvtHandler_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_ProcessPendingEvents",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ProcessPendingEvents(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_EvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - PyObject *arg5 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType",(char *) "func", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:EvtHandler_Connect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = obj4; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxEvtHandler_Connect(arg1,arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_EvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; - int arg2 ; - int arg3 = (int) -1 ; - wxEventType arg4 = (wxEventType) wxEVT_NULL ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:EvtHandler_Disconnect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (wxEventType) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxEvtHandler_Disconnect(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_EvtHandler__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "_self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler__setOORInfo",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxEvtHandler__setOORInfo(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * EvtHandler_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxEvtHandler, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_NewEventType(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEventType result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewEventType",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxEventType)wxNewEventType(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_Event(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvent *arg1 = (wxEvent *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Event",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Event_SetEventType(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvent *arg1 = (wxEvent *) 0 ; - wxEventType arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "typ", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventType",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxEventType) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetEventType(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Event_GetEventType(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvent *arg1 = (wxEvent *) 0 ; - wxEventType result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventType",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxEventType)((wxEvent const *)arg1)->GetEventType(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Event_GetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvent *arg1 = (wxEvent *) 0 ; - wxObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventObject",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxObject *)((wxEvent const *)arg1)->GetEventObject(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Event_SetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvent *arg1 = (wxEvent *) 0 ; - wxObject *arg2 = (wxObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "obj", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventObject",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetEventObject(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Event_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvent *arg1 = (wxEvent *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetTimestamp",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxEvent const *)arg1)->GetTimestamp(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Event_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvent *arg1 = (wxEvent *) 0 ; - long arg2 = (long) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "ts", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_SetTimestamp",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetTimestamp(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Event_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvent *arg1 = (wxEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetId",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxEvent const *)arg1)->GetId(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Event_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvent *arg1 = (wxEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "Id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetId",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetId(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Event_IsCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvent *arg1 = (wxEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_IsCommandEvent",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxEvent const *)arg1)->IsCommandEvent(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Event_Skip(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvent *arg1 = (wxEvent *) 0 ; - bool arg2 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "skip", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_Skip",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Skip(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Event_GetSkipped(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvent *arg1 = (wxEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetSkipped",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxEvent const *)arg1)->GetSkipped(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Event_ShouldPropagate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvent *arg1 = (wxEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_ShouldPropagate",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxEvent const *)arg1)->ShouldPropagate(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Event_StopPropagation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvent *arg1 = (wxEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_StopPropagation",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->StopPropagation(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Event_ResumePropagation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvent *arg1 = (wxEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "propagationLevel", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_ResumePropagation",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ResumePropagation(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Event_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvent *arg1 = (wxEvent *) 0 ; - wxEvent *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_Clone",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxEvent *)(arg1)->Clone(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject * Event_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvent *arg1 = 0 ; - wxPropagationDisabler *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "event", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagationDisabler",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPropagationDisabler *)new wxPropagationDisabler(*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagationDisabler, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPropagationDisabler *arg1 = (wxPropagationDisabler *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagationDisabler",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagationDisabler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * PropagationDisabler_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPropagationDisabler, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvent *arg1 = 0 ; - wxPropagateOnce *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "event", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagateOnce",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPropagateOnce *)new wxPropagateOnce(*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagateOnce, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPropagateOnce *arg1 = (wxPropagateOnce *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagateOnce",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagateOnce, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * PropagateOnce_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPropagateOnce, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_CommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEventType arg1 = (wxEventType) wxEVT_NULL ; - int arg2 = (int) 0 ; - wxCommandEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "commandType",(char *) "winid", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CommandEvent",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (wxEventType) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxCommandEvent *)new wxCommandEvent(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCommandEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CommandEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetSelection",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxCommandEvent const *)arg1)->GetSelection(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CommandEvent_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "s", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetString",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetString((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_CommandEvent_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetString",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxCommandEvent const *)arg1)->GetString(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CommandEvent_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsChecked",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxCommandEvent const *)arg1)->IsChecked(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CommandEvent_IsSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsSelection",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxCommandEvent const *)arg1)->IsSelection(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CommandEvent_SetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "extraLong", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetExtraLong",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetExtraLong(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CommandEvent_GetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetExtraLong",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxCommandEvent const *)arg1)->GetExtraLong(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CommandEvent_SetInt(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "i", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetInt",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetInt(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CommandEvent_GetInt(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetInt",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxCommandEvent const *)arg1)->GetInt(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CommandEvent_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; - wxEvent *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_Clone",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxEvent *)((wxCommandEvent const *)arg1)->Clone(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject * CommandEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxCommandEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_NotifyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEventType arg1 = (wxEventType) wxEVT_NULL ; - int arg2 = (int) 0 ; - wxNotifyEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "commandType",(char *) "winid", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_NotifyEvent",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (wxEventType) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxNotifyEvent *)new wxNotifyEvent(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotifyEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NotifyEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Veto",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Veto(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NotifyEvent_Allow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Allow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Allow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NotifyEvent_IsAllowed(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_IsAllowed",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->IsAllowed(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * NotifyEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxNotifyEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ScrollEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEventType arg1 = (wxEventType) wxEVT_NULL ; - int arg2 = (int) 0 ; - int arg3 = (int) 0 ; - int arg4 = (int) 0 ; - wxScrollEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "commandType",(char *) "winid",(char *) "pos",(char *) "orient", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ScrollEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if (obj0) { - arg1 = (wxEventType) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxScrollEvent *)new wxScrollEvent(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrollEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetOrientation",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxScrollEvent const *)arg1)->GetOrientation(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrollEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxScrollEvent const *)arg1)->GetPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrollEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "orient", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetOrientation(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrollEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPosition(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * ScrollEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxScrollEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ScrollWinEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEventType arg1 = (wxEventType) wxEVT_NULL ; - int arg2 = (int) 0 ; - int arg3 = (int) 0 ; - wxScrollWinEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "commandType",(char *) "pos",(char *) "orient", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ScrollWinEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; - if (obj0) { - arg1 = (wxEventType) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxScrollWinEvent *)new wxScrollWinEvent(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollWinEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrollWinEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetOrientation",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxScrollWinEvent const *)arg1)->GetOrientation(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrollWinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxScrollWinEvent const *)arg1)->GetPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrollWinEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "orient", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetOrientation(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrollWinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPosition(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * ScrollWinEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxScrollWinEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_MouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEventType arg1 = (wxEventType) wxEVT_NULL ; - wxMouseEvent *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "mouseType", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MouseEvent",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (wxEventType) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMouseEvent *)new wxMouseEvent(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsButton",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMouseEvent const *)arg1)->IsButton(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - int arg2 = (int) wxMOUSE_BTN_ANY ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "but", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMouseEvent const *)arg1)->ButtonDown(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_ButtonDClick(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - int arg2 = (int) wxMOUSE_BTN_ANY ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "but", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDClick",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMouseEvent const *)arg1)->ButtonDClick(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - int arg2 = (int) wxMOUSE_BTN_ANY ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "but", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMouseEvent const *)arg1)->ButtonUp(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_Button(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "but", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_Button",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMouseEvent const *)arg1)->Button(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "but", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMouseEvent const *)arg1)->ButtonIsDown(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_GetButton(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetButton",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxMouseEvent const *)arg1)->GetButton(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ControlDown",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMouseEvent const *)arg1)->ControlDown(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MetaDown",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMouseEvent const *)arg1)->MetaDown(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_AltDown",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMouseEvent const *)arg1)->AltDown(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ShiftDown",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMouseEvent const *)arg1)->ShiftDown(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_LeftDown(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDown",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMouseEvent const *)arg1)->LeftDown(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_MiddleDown(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDown",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMouseEvent const *)arg1)->MiddleDown(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_RightDown(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDown",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMouseEvent const *)arg1)->RightDown(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_LeftUp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftUp",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMouseEvent const *)arg1)->LeftUp(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_MiddleUp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleUp",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMouseEvent const *)arg1)->MiddleUp(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_RightUp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightUp",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMouseEvent const *)arg1)->RightUp(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_LeftDClick(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDClick",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMouseEvent const *)arg1)->LeftDClick(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_MiddleDClick(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDClick",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMouseEvent const *)arg1)->MiddleDClick(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_RightDClick(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDClick",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMouseEvent const *)arg1)->RightDClick(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_LeftIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftIsDown",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->LeftIsDown(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_MiddleIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleIsDown",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->MiddleIsDown(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_RightIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightIsDown",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->RightIsDown(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_Dragging(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Dragging",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMouseEvent const *)arg1)->Dragging(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_Moving(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Moving",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMouseEvent const *)arg1)->Moving(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_Entering(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Entering",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMouseEvent const *)arg1)->Entering(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_Leaving(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Leaving",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMouseEvent const *)arg1)->Leaving(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - long *arg2 = (long *) 0 ; - long *arg3 = (long *) 0 ; - long temp2 ; - long temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPositionTuple",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->GetPosition(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_GetLogicalPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - wxDC *arg2 = 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "dc", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_GetLogicalPosition",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxMouseEvent const *)arg1)->GetLogicalPosition((wxDC const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetX",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxMouseEvent const *)arg1)->GetX(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetY",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxMouseEvent const *)arg1)->GetY(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_GetWheelRotation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelRotation",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxMouseEvent const *)arg1)->GetWheelRotation(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_GetWheelDelta(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelDelta",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxMouseEvent const *)arg1)->GetWheelDelta(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_GetLinesPerAction(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetLinesPerAction",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxMouseEvent const *)arg1)->GetLinesPerAction(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_IsPageScroll(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsPageScroll",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMouseEvent const *)arg1)->IsPageScroll(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_x", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_x = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_x_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->m_x); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_y = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_y_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->m_y); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_m_leftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_leftDown", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_leftDown_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_leftDown = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_m_leftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_leftDown_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (bool) ((arg1)->m_leftDown); - - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_m_middleDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_middleDown", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_middleDown_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_middleDown = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_m_middleDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_middleDown_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (bool) ((arg1)->m_middleDown); - - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_m_rightDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_rightDown", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_rightDown_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_rightDown = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_m_rightDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_rightDown_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (bool) ((arg1)->m_rightDown); - - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_controlDown", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_controlDown = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_controlDown_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (bool) ((arg1)->m_controlDown); - - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_shiftDown", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_shiftDown = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (bool) ((arg1)->m_shiftDown); - - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_altDown", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_altDown = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_altDown_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (bool) ((arg1)->m_altDown); - - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_metaDown", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_metaDown = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_metaDown_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (bool) ((arg1)->m_metaDown); - - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_m_wheelRotation_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_wheelRotation", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelRotation_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_wheelRotation = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_m_wheelRotation_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelRotation_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->m_wheelRotation); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_m_wheelDelta_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_wheelDelta", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelDelta_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_wheelDelta = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_m_wheelDelta_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelDelta_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->m_wheelDelta); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_m_linesPerAction_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_linesPerAction", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_linesPerAction_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_linesPerAction = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_m_linesPerAction_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_linesPerAction_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->m_linesPerAction); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * MouseEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxMouseEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_SetCursorEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - int arg2 = (int) 0 ; - wxSetCursorEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SetCursorEvent",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSetCursorEvent *)new wxSetCursorEvent(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSetCursorEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SetCursorEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetX",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSetCursorEvent const *)arg1)->GetX(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SetCursorEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetY",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSetCursorEvent const *)arg1)->GetY(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SetCursorEvent_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; - wxCursor *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "cursor", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SetCursorEvent_SetCursor",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetCursor((wxCursor const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SetCursorEvent_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; - wxCursor *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetCursor",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxCursor const &_result_ref = ((wxSetCursorEvent const *)arg1)->GetCursor(); - result = (wxCursor *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxCursor* resultptr = new wxCursor(*result); - resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxCursor, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SetCursorEvent_HasCursor(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_HasCursor",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxSetCursorEvent const *)arg1)->HasCursor(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * SetCursorEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxSetCursorEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_KeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEventType arg1 = (wxEventType) wxEVT_NULL ; - wxKeyEvent *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "keyType", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_KeyEvent",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (wxEventType) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxKeyEvent *)new wxKeyEvent(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ControlDown",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxKeyEvent const *)arg1)->ControlDown(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_MetaDown",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxKeyEvent const *)arg1)->MetaDown(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_AltDown",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxKeyEvent const *)arg1)->AltDown(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ShiftDown",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxKeyEvent const *)arg1)->ShiftDown(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_HasModifiers(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_HasModifiers",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxKeyEvent const *)arg1)->HasModifiers(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetKeyCode",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxKeyEvent const *)arg1)->GetKeyCode(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_GetUniChar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetUniChar",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxKeyEvent_GetUniChar(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_GetRawKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - unsigned int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyCode",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyCode(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedInt((unsigned int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_GetRawKeyFlags(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - unsigned int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyFlags",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyFlags(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedInt((unsigned int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - long *arg2 = (long *) 0 ; - long *arg3 = (long *) 0 ; - long temp2 ; - long temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPositionTuple",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->GetPosition(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetX",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxKeyEvent const *)arg1)->GetX(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetY",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxKeyEvent const *)arg1)->GetY(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_x", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_x = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_x_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->m_x); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_y = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_y_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->m_y); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_m_keyCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_keyCode", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_keyCode_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_keyCode = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_m_keyCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_keyCode_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (long) ((arg1)->m_keyCode); - - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_controlDown", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_controlDown = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_controlDown_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (bool) ((arg1)->m_controlDown); - - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_shiftDown", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_shiftDown = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (bool) ((arg1)->m_shiftDown); - - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_altDown", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_altDown = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_altDown_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (bool) ((arg1)->m_altDown); - - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_metaDown", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_metaDown = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_metaDown_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (bool) ((arg1)->m_metaDown); - - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_m_scanCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_scanCode", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_scanCode_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_scanCode = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_m_scanCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_scanCode_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (bool) ((arg1)->m_scanCode); - - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_m_rawCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - unsigned int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_rawCode", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawCode_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_rawCode = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_m_rawCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - unsigned int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawCode_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (unsigned int) ((arg1)->m_rawCode); - - resultobj = SWIG_FromUnsignedInt((unsigned int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_m_rawFlags_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - unsigned int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_rawFlags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawFlags_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_rawFlags = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_m_rawFlags_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - unsigned int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawFlags_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (unsigned int) ((arg1)->m_rawFlags); - - resultobj = SWIG_FromUnsignedInt((unsigned int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * KeyEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxKeyEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_SizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSize const &arg1_defvalue = wxDefaultSize ; - wxSize *arg1 = (wxSize *) &arg1_defvalue ; - int arg2 = (int) 0 ; - wxSizeEvent *result; - wxSize temp1 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "sz",(char *) "winid", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SizeEvent",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - { - arg1 = &temp1; - if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; - } - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSizeEvent *)new wxSizeEvent((wxSize const &)*arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizeEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizeEvent_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxSizeEvent const *)arg1)->GetSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizeEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; - wxRect result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetRect",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxSizeEvent const *)arg1)->GetRect(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxRect * resultptr; - resultptr = new wxRect((wxRect &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizeEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; - wxRect arg2 ; - wxRect *argp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; - arg2 = *argp2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetRect(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizeEvent_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; - wxSize arg2 ; - wxSize *argp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize, - SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; - arg2 = *argp2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxSizeEvent_SetSize(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizeEvent_m_size_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; - wxSize *arg2 = (wxSize *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_size_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSize, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (arg1) (arg1)->m_size = *arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizeEvent_m_size_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; - wxSize *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_size_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (wxSize *)& ((arg1)->m_size); - - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizeEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; - wxRect *arg2 = (wxRect *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (arg1) (arg1)->m_rect = *arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizeEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; - wxRect *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_rect_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (wxRect *)& ((arg1)->m_rect); - - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject * SizeEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxSizeEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_MoveEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint const &arg1_defvalue = wxDefaultPosition ; - wxPoint *arg1 = (wxPoint *) &arg1_defvalue ; - int arg2 = (int) 0 ; - wxMoveEvent *result; - wxPoint temp1 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "pos",(char *) "winid", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MoveEvent",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - { - arg1 = &temp1; - if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; - } - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMoveEvent *)new wxMoveEvent((wxPoint const &)*arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMoveEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MoveEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxMoveEvent const *)arg1)->GetPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MoveEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; - wxRect result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetRect",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxMoveEvent const *)arg1)->GetRect(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxRect * resultptr; - resultptr = new wxRect((wxRect &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MoveEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; - wxRect arg2 ; - wxRect *argp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; - arg2 = *argp2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetRect(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MoveEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; - wxPoint arg2 ; - wxPoint *argp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint, - SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; - arg2 = *argp2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxMoveEvent_SetPosition(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MoveEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; - wxPoint *arg2 = (wxPoint *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (arg1) (arg1)->m_pos = *arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MoveEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; - wxPoint *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_pos_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (wxPoint *)& ((arg1)->m_pos); - - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MoveEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; - wxRect *arg2 = (wxRect *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (arg1) (arg1)->m_rect = *arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MoveEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; - wxRect *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_rect_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (wxRect *)& ((arg1)->m_rect); - - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject * MoveEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxMoveEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - wxPaintEvent *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "Id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaintEvent",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPaintEvent *)new wxPaintEvent(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * PaintEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPaintEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_NcPaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - wxNcPaintEvent *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "winid", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_NcPaintEvent",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxNcPaintEvent *)new wxNcPaintEvent(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNcPaintEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * NcPaintEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxNcPaintEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_EraseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - wxDC *arg2 = (wxDC *) (wxDC *) NULL ; - wxEraseEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "Id",(char *) "dc", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_EraseEvent",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxEraseEvent *)new wxEraseEvent(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEraseEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_EraseEvent_GetDC(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEraseEvent *arg1 = (wxEraseEvent *) 0 ; - wxDC *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EraseEvent_GetDC",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEraseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxDC *)((wxEraseEvent const *)arg1)->GetDC(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * EraseEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxEraseEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_FocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEventType arg1 = (wxEventType) wxEVT_NULL ; - int arg2 = (int) 0 ; - wxFocusEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "type",(char *) "winid", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FocusEvent",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (wxEventType) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFocusEvent *)new wxFocusEvent(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFocusEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FocusEvent_GetWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)((wxFocusEvent const *)arg1)->GetWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FocusEvent_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "win", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FocusEvent_SetWindow",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetWindow(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * FocusEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxFocusEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ChildFocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) NULL ; - wxChildFocusEvent *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "win", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ChildFocusEvent",kwnames,&obj0)) goto fail; - if (obj0) { - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxChildFocusEvent *)new wxChildFocusEvent(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChildFocusEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ChildFocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxChildFocusEvent *arg1 = (wxChildFocusEvent *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ChildFocusEvent_GetWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChildFocusEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)((wxChildFocusEvent const *)arg1)->GetWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * ChildFocusEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxChildFocusEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ActivateEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEventType arg1 = (wxEventType) wxEVT_NULL ; - bool arg2 = (bool) True ; - int arg3 = (int) 0 ; - wxActivateEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "type",(char *) "active",(char *) "Id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ActivateEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; - if (obj0) { - arg1 = (wxEventType) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxActivateEvent *)new wxActivateEvent(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxActivateEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ActivateEvent_GetActive(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxActivateEvent *arg1 = (wxActivateEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActivateEvent_GetActive",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxActivateEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxActivateEvent const *)arg1)->GetActive(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * ActivateEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxActivateEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_InitDialogEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - wxInitDialogEvent *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "Id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_InitDialogEvent",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxInitDialogEvent *)new wxInitDialogEvent(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInitDialogEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * InitDialogEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxInitDialogEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_MenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEventType arg1 = (wxEventType) wxEVT_NULL ; - int arg2 = (int) 0 ; - wxMenu *arg3 = (wxMenu *) NULL ; - wxMenuEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "type",(char *) "winid",(char *) "menu", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_MenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; - if (obj0) { - arg1 = (wxEventType) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuEvent *)new wxMenuEvent(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuEvent_GetMenuId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenuId",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxMenuEvent const *)arg1)->GetMenuId(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuEvent_IsPopup(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_IsPopup",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMenuEvent const *)arg1)->IsPopup(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuEvent_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; - wxMenu *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenu",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenu *)((wxMenuEvent const *)arg1)->GetMenu(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * MenuEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxMenuEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_CloseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEventType arg1 = (wxEventType) wxEVT_NULL ; - int arg2 = (int) 0 ; - wxCloseEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "type",(char *) "winid", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CloseEvent",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (wxEventType) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxCloseEvent *)new wxCloseEvent(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCloseEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CloseEvent_SetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "logOff", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetLoggingOff",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetLoggingOff(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CloseEvent_GetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetLoggingOff",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxCloseEvent const *)arg1)->GetLoggingOff(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CloseEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; - bool arg2 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "veto", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CloseEvent_Veto",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Veto(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CloseEvent_SetCanVeto(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "canVeto", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetCanVeto",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetCanVeto(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CloseEvent_CanVeto(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_CanVeto",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxCloseEvent const *)arg1)->CanVeto(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CloseEvent_GetVeto(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetVeto",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxCloseEvent const *)arg1)->GetVeto(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * CloseEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxCloseEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ShowEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - bool arg2 = (bool) False ; - wxShowEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "winid",(char *) "show", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ShowEvent",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxShowEvent *)new wxShowEvent(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxShowEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ShowEvent_SetShow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxShowEvent *arg1 = (wxShowEvent *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "show", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShowEvent_SetShow",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetShow(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ShowEvent_GetShow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxShowEvent *arg1 = (wxShowEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShowEvent_GetShow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxShowEvent const *)arg1)->GetShow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * ShowEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxShowEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_IconizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - bool arg2 = (bool) True ; - wxIconizeEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "id",(char *) "iconized", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconizeEvent",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxIconizeEvent *)new wxIconizeEvent(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconizeEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IconizeEvent_Iconized(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIconizeEvent *arg1 = (wxIconizeEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconizeEvent_Iconized",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconizeEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Iconized(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * IconizeEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxIconizeEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_MaximizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - wxMaximizeEvent *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MaximizeEvent",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMaximizeEvent *)new wxMaximizeEvent(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMaximizeEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * MaximizeEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxMaximizeEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_DropFilesEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DropFilesEvent_GetNumberOfFiles(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetNumberOfFiles",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetNumberOfFiles(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DropFilesEvent_GetFiles(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetFiles",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxDropFilesEvent_GetFiles(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject * DropFilesEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxDropFilesEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_UpdateUIEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - wxUpdateUIEvent *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "commandId", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_UpdateUIEvent",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxUpdateUIEvent *)new wxUpdateUIEvent(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxUpdateUIEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_UpdateUIEvent_GetChecked(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetChecked",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxUpdateUIEvent const *)arg1)->GetChecked(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_UpdateUIEvent_GetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetEnabled",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxUpdateUIEvent const *)arg1)->GetEnabled(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_UpdateUIEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetText",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxUpdateUIEvent const *)arg1)->GetText(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_UpdateUIEvent_GetSetText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetText",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetText(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_UpdateUIEvent_GetSetChecked(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetChecked",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetChecked(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_UpdateUIEvent_GetSetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetEnabled",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetEnabled(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_UpdateUIEvent_Check(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "check", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Check",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Check(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_UpdateUIEvent_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "enable", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Enable",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Enable(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_UpdateUIEvent_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "text", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_SetText",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetText((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_UpdateUIEvent_SetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - long arg1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "updateInterval", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetUpdateInterval",kwnames,&obj0)) goto fail; - arg1 = (long) SWIG_AsLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxUpdateUIEvent::SetUpdateInterval(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_UpdateUIEvent_GetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - long result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetUpdateInterval",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)wxUpdateUIEvent::GetUpdateInterval(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_UpdateUIEvent_CanUpdate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "win", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_CanUpdate",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxUpdateUIEvent::CanUpdate(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_UpdateUIEvent_ResetUpdateTime(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_ResetUpdateTime",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxUpdateUIEvent::ResetUpdateTime(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_UpdateUIEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "mode", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetMode",kwnames,&obj0)) goto fail; - arg1 = (wxUpdateUIMode) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxUpdateUIEvent::SetMode((wxUpdateUIMode )arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_UpdateUIEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetMode",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxUpdateUIEvent::GetMode(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * UpdateUIEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxUpdateUIEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_SysColourChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSysColourChangedEvent *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SysColourChangedEvent",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSysColourChangedEvent *)new wxSysColourChangedEvent(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSysColourChangedEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * SysColourChangedEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxSysColourChangedEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_MouseCaptureChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - wxWindow *arg2 = (wxWindow *) NULL ; - wxMouseCaptureChangedEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "winid",(char *) "gainedCapture", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MouseCaptureChangedEvent",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMouseCaptureChangedEvent *)new wxMouseCaptureChangedEvent(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseCaptureChangedEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseCaptureChangedEvent_GetCapturedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseCaptureChangedEvent *arg1 = (wxMouseCaptureChangedEvent *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseCaptureChangedEvent_GetCapturedWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseCaptureChangedEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)((wxMouseCaptureChangedEvent const *)arg1)->GetCapturedWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * MouseCaptureChangedEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxMouseCaptureChangedEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_DisplayChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDisplayChangedEvent *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DisplayChangedEvent",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxDisplayChangedEvent *)new wxDisplayChangedEvent(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplayChangedEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * DisplayChangedEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxDisplayChangedEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PaletteChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - wxPaletteChangedEvent *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaletteChangedEvent",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPaletteChangedEvent *)new wxPaletteChangedEvent(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaletteChangedEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PaletteChangedEvent_SetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "win", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PaletteChangedEvent_SetChangedWindow",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetChangedWindow(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PaletteChangedEvent_GetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PaletteChangedEvent_GetChangedWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)(arg1)->GetChangedWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * PaletteChangedEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPaletteChangedEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_QueryNewPaletteEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - wxQueryNewPaletteEvent *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "winid", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryNewPaletteEvent",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxQueryNewPaletteEvent *)new wxQueryNewPaletteEvent(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxQueryNewPaletteEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_QueryNewPaletteEvent_SetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "realized", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryNewPaletteEvent_SetPaletteRealized",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPaletteRealized(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_QueryNewPaletteEvent_GetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryNewPaletteEvent_GetPaletteRealized",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxQueryNewPaletteEvent const *)arg1)->GetPaletteRealized(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * QueryNewPaletteEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxQueryNewPaletteEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_NavigationKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNavigationKeyEvent *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NavigationKeyEvent",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxNavigationKeyEvent *)new wxNavigationKeyEvent(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNavigationKeyEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NavigationKeyEvent_GetDirection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetDirection",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxNavigationKeyEvent const *)arg1)->GetDirection(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NavigationKeyEvent_SetDirection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bForward", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetDirection",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDirection(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NavigationKeyEvent_IsWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_IsWindowChange",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxNavigationKeyEvent const *)arg1)->IsWindowChange(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NavigationKeyEvent_SetWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bIs", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetWindowChange",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetWindowChange(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NavigationKeyEvent_GetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetCurrentFocus",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)((wxNavigationKeyEvent const *)arg1)->GetCurrentFocus(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NavigationKeyEvent_SetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "win", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetCurrentFocus",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetCurrentFocus(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * NavigationKeyEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxNavigationKeyEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_WindowCreateEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) NULL ; - wxWindowCreateEvent *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "win", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowCreateEvent",kwnames,&obj0)) goto fail; - if (obj0) { - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindowCreateEvent *)new wxWindowCreateEvent(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowCreateEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_WindowCreateEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindowCreateEvent *arg1 = (wxWindowCreateEvent *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowCreateEvent_GetWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowCreateEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)((wxWindowCreateEvent const *)arg1)->GetWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * WindowCreateEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxWindowCreateEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_WindowDestroyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) NULL ; - wxWindowDestroyEvent *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "win", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDestroyEvent",kwnames,&obj0)) goto fail; - if (obj0) { - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindowDestroyEvent *)new wxWindowDestroyEvent(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDestroyEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_WindowDestroyEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindowDestroyEvent *arg1 = (wxWindowDestroyEvent *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowDestroyEvent_GetWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDestroyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)((wxWindowDestroyEvent const *)arg1)->GetWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * WindowDestroyEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxWindowDestroyEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ContextMenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEventType arg1 = (wxEventType) wxEVT_NULL ; - int arg2 = (int) 0 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxContextMenuEvent *result; - wxPoint temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "type",(char *) "winid",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ContextMenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; - if (obj0) { - arg1 = (wxEventType) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxContextMenuEvent *)new wxContextMenuEvent(arg1,arg2,(wxPoint const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextMenuEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ContextMenuEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; - wxPoint *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextMenuEvent_GetPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxPoint const &_result_ref = ((wxContextMenuEvent const *)arg1)->GetPosition(); - result = (wxPoint *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ContextMenuEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ContextMenuEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPosition((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * ContextMenuEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxContextMenuEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_IdleEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIdleEvent *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IdleEvent",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxIdleEvent *)new wxIdleEvent(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIdleEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IdleEvent_RequestMore(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; - bool arg2 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "needMore", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:IdleEvent_RequestMore",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RequestMore(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IdleEvent_MoreRequested(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_MoreRequested",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxIdleEvent const *)arg1)->MoreRequested(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IdleEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "mode", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_SetMode",kwnames,&obj0)) goto fail; - arg1 = (wxIdleMode) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxIdleEvent::SetMode((wxIdleMode )arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IdleEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IdleEvent_GetMode",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxIdleEvent::GetMode(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IdleEvent_CanSend(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "win", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_CanSend",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxIdleEvent::CanSend(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * IdleEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxIdleEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - wxEventType arg2 = (wxEventType) wxEVT_NULL ; - wxPyEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "winid",(char *) "commandType", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyEvent",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (wxEventType) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyEvent *)new wxPyEvent(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyEvent *arg1 = (wxPyEvent *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyEvent",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyEvent *arg1 = (wxPyEvent *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSelf(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyEvent *arg1 = (wxPyEvent *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyEvent_GetSelf",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)(arg1)->GetSelf(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject * PyEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEventType arg1 = (wxEventType) wxEVT_NULL ; - int arg2 = (int) 0 ; - wxPyCommandEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "commandType",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyCommandEvent",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (wxEventType) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyCommandEvent *)new wxPyCommandEvent(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyCommandEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyCommandEvent",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyCommandEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCommandEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSelf(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyCommandEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCommandEvent_GetSelf",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)(arg1)->GetSelf(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject * PyCommandEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyCommandEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyApp",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyApp *)new_wxPyApp(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyApp",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAppName",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyApp const *)arg1)->GetAppName(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAppName",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetAppName((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_PyApp_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetClassName",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyApp const *)arg1)->GetClassName(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_SetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetClassName",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetClassName((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_PyApp_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetVendorName",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = ((wxPyApp const *)arg1)->GetVendorName(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetVendorName",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetVendorName((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_PyApp_GetTraits(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - wxAppTraits *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTraits",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxAppTraits *)(arg1)->GetTraits(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAppTraits, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessPendingEvents",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ProcessPendingEvents(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_Yield(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - bool arg2 = (bool) False ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "onlyIfNeeded", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyApp_Yield",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Yield(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_WakeUpIdle",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->WakeUpIdle(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_MainLoop(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_MainLoop",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->MainLoop(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_Exit(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Exit",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Exit(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_ExitMainLoop(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ExitMainLoop",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ExitMainLoop(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_Pending(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Pending",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Pending(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_Dispatch(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Dispatch",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Dispatch(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_ProcessIdle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessIdle",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->ProcessIdle(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_SendIdleEvents(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - wxIdleEvent *arg3 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "win",(char *) "event", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp_SendIdleEvents",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxIdleEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SendIdleEvents(arg2,*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_IsActive(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_IsActive",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyApp const *)arg1)->IsActive(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_SetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "win", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetTopWindow",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetTopWindow(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_GetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTopWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)((wxPyApp const *)arg1)->GetTopWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_SetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetExitOnFrameDelete",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetExitOnFrameDelete(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_GetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetExitOnFrameDelete",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyApp const *)arg1)->GetExitOnFrameDelete(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_SetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetUseBestVisual",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetUseBestVisual(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_GetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetUseBestVisual",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyApp const *)arg1)->GetUseBestVisual(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_SetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "mode", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetPrintMode",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPrintMode(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_GetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetPrintMode",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxPyApp const *)arg1)->GetPrintMode(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_SetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "mode", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAssertMode",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetAssertMode(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_GetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAssertMode",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetAssertMode(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_GetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - bool result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacSupportPCMenuShortcuts",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxPyApp::GetMacSupportPCMenuShortcuts(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_GetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - long result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacAboutMenuItemId",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)wxPyApp::GetMacAboutMenuItemId(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_GetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - long result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacPreferencesMenuItemId",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)wxPyApp::GetMacPreferencesMenuItemId(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_GetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - long result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacExitMenuItemId",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)wxPyApp::GetMacExitMenuItemId(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_GetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacHelpMenuTitleName",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxPyApp::GetMacHelpMenuTitleName(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_SetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - bool arg1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "val", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacSupportPCMenuShortcuts",kwnames,&obj0)) goto fail; - arg1 = (bool) SWIG_AsBool(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxPyApp::SetMacSupportPCMenuShortcuts(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_SetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - long arg1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "val", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacAboutMenuItemId",kwnames,&obj0)) goto fail; - arg1 = (long) SWIG_AsLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxPyApp::SetMacAboutMenuItemId(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_SetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - long arg1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "val", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacPreferencesMenuItemId",kwnames,&obj0)) goto fail; - arg1 = (long) SWIG_AsLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxPyApp::SetMacPreferencesMenuItemId(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_SetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - long arg1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "val", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacExitMenuItemId",kwnames,&obj0)) goto fail; - arg1 = (long) SWIG_AsLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxPyApp::SetMacExitMenuItemId(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_SetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "val", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacHelpMenuTitleName",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxPyApp::SetMacHelpMenuTitleName((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_PyApp__BootstrapApp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp__BootstrapApp",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_BootstrapApp(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_GetComCtl32Version(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetComCtl32Version",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)PyApp_GetComCtl32Version(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * PyApp_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyApp, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_Exit(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Exit",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxExit(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Yield(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - bool result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Yield",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxYield(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_YieldIfNeeded(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - bool result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":YieldIfNeeded",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxYieldIfNeeded(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SafeYield(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) NULL ; - bool arg2 = (bool) False ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "win",(char *) "onlyIfNeeded", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:SafeYield",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxSafeYield(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpIdle",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxWakeUpIdle(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PostEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; - wxEvent *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "dest",(char *) "event", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostEvent",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxPostEvent(arg1,*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_App_CleanUp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":App_CleanUp",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxApp_CleanUp(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GetApp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetApp",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyApp *)wxGetApp(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - int arg2 = (int) 0 ; - int arg3 = (int) 0 ; - wxMenuItem *arg4 = (wxMenuItem *) NULL ; - wxAcceleratorEntry *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "flags",(char *) "keyCode",(char *) "cmd",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_AcceleratorEntry",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxAcceleratorEntry *)new wxAcceleratorEntry(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorEntry",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_AcceleratorEntry_Set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - wxMenuItem *arg5 = (wxMenuItem *) NULL ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flags",(char *) "keyCode",(char *) "cmd",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:AcceleratorEntry_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - if (obj4) { - if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Set(arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_AcceleratorEntry_SetMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; - wxMenuItem *arg2 = (wxMenuItem *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AcceleratorEntry_SetMenuItem",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMenuItem(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_AcceleratorEntry_GetMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; - wxMenuItem *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetMenuItem",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)((wxAcceleratorEntry const *)arg1)->GetMenuItem(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_AcceleratorEntry_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetFlags",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetFlags(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_AcceleratorEntry_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetKeyCode",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetKeyCode(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_AcceleratorEntry_GetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetCommand",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetCommand(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * AcceleratorEntry_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorEntry, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; - wxAcceleratorTable *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AcceleratorTable",kwnames,&obj0)) goto fail; - { - arg2 = wxAcceleratorEntry_LIST_helper(obj0); - if (arg2) arg1 = PyList_Size(obj0); - else arg1 = 0; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxAcceleratorTable *)new wxAcceleratorTable(arg1,(wxAcceleratorEntry const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 1); - { - delete [] arg2; - } - return resultobj; - fail: - { - delete [] arg2; - } - return NULL; -} - - -static PyObject *_wrap_delete_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorTable",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_AcceleratorTable_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorTable_Ok",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxAcceleratorTable const *)arg1)->Ok(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * AcceleratorTable_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorTable, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_NullAcceleratorTable_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable NullAcceleratorTable is read-only."); - return 1; -} - - -static PyObject *_wrap_NullAcceleratorTable_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(&wxNullAcceleratorTable), SWIGTYPE_p_wxAcceleratorTable, 0); - return pyobj; -} - - -static PyObject *_wrap_GetAccelFromString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxAcceleratorEntry *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "label", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetAccelFromString",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxAcceleratorEntry *)wxGetAccelFromString((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static int _wrap_PanelNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable PanelNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_PanelNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_VisualAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxVisualAttributes *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_VisualAttributes",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxVisualAttributes *)new_wxVisualAttributes(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVisualAttributes, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_VisualAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VisualAttributes",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete_wxVisualAttributes(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VisualAttributes_font_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; - wxFont *arg2 = (wxFont *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "font", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_font_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (arg1) (arg1)->font = *arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VisualAttributes_font_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; - wxFont *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_font_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (wxFont *)& ((arg1)->font); - - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VisualAttributes_colFg_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; - wxColour *arg2 = (wxColour *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colFg", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colFg_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (arg1) (arg1)->colFg = *arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VisualAttributes_colFg_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; - wxColour *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colFg_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (wxColour *)& ((arg1)->colFg); - - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VisualAttributes_colBg_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; - wxColour *arg2 = (wxColour *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colBg", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colBg_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (arg1) (arg1)->colBg = *arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VisualAttributes_colBg_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; - wxColour *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colBg_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (wxColour *)& ((arg1)->colBg); - - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject * VisualAttributes_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxVisualAttributes, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Window(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) (int)-1 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) 0 ; - wxString const &arg6_defvalue = wxPyPanelNameStr ; - wxString *arg6 = (wxString *) &arg6_defvalue ; - wxWindow *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp6 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Window",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int const) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - { - arg6 = wxString_in_helper(obj5); - if (arg6 == NULL) SWIG_fail; - temp6 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)new wxWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp6) - delete arg6; - } - return resultobj; - fail: - { - if (temp6) - delete arg6; - } - return NULL; -} - - -static PyObject *_wrap_new_PreWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreWindow",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)new wxWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 = (int) (int)-1 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) 0 ; - wxString const &arg7_defvalue = wxPyPanelNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - bool result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Window_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (int const) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_Window_Close(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool arg2 = (bool) False ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "force", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Close",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Close(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Destroy",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Destroy(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DestroyChildren",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->DestroyChildren(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_IsBeingDeleted(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsBeingDeleted",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxWindow const *)arg1)->IsBeingDeleted(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "title", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTitle",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetTitle((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Window_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetTitle",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxWindow const *)arg1)->GetTitle(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "label", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetLabel",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetLabel((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Window_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetLabel",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxWindow const *)arg1)->GetLabel(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetName",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetName((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Window_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetName",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxWindow const *)arg1)->GetName(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetWindowVariant(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "variant", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowVariant",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxWindowVariant) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetWindowVariant((wxWindowVariant )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetWindowVariant(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowVariant",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxWindow const *)arg1)->GetWindowVariant(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "winid", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetId",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetId(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetId",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxWindow const *)arg1)->GetId(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_NewControlId",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxWindow::NewControlId(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "winid", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_NextControlId",kwnames,&obj0)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxWindow::NextControlId(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "winid", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PrevControlId",kwnames,&obj0)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxWindow::PrevControlId(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxSize *arg2 = 0 ; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSize((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 = (int) wxSIZE_AUTO ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetDimensions",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - if (obj5) { - arg6 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSize(arg2,arg3,arg4,arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxRect *arg2 = 0 ; - int arg3 = (int) wxSIZE_AUTO ; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect",(char *) "sizeFlags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetRect",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSize((wxRect const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_Move(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxPoint *arg2 = 0 ; - int arg3 = (int) wxSIZE_USE_EXISTING ; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_Move",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Move((wxPoint const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - int arg3 ; - int arg4 = (int) wxSIZE_USE_EXISTING ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_MoveXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Move(arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Raise",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Raise(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Lower",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Lower(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxSize *arg2 = 0 ; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetClientSize((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetClientSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetClientSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxRect *arg2 = 0 ; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientRect",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetClientSize((wxRect const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPositionTuple",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->GetPosition(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxWindow const *)arg1)->GetSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizeTuple",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxWindow const *)arg1)->GetSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxRect result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetRect",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxWindow const *)arg1)->GetRect(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxRect * resultptr; - resultptr = new wxRect((wxRect &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxWindow const *)arg1)->GetClientSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSizeTuple",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxWindow const *)arg1)->GetClientSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientAreaOrigin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxWindow const *)arg1)->GetClientAreaOrigin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxRect result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientRect",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxWindow const *)arg1)->GetClientRect(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxRect * resultptr; - resultptr = new wxRect((wxRect &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxWindow const *)arg1)->GetBestSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetBestSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSizeTuple",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxWindow const *)arg1)->GetBestSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetAdjustedBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAdjustedBestSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxWindow const *)arg1)->GetAdjustedBestSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_Center(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) wxBOTH ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "direction", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Center",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Center(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) wxBOTH ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "dir", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnScreen",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->CenterOnScreen(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) wxBOTH ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "dir", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnParent",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->CenterOnParent(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Fit",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Fit(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FitInside",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->FitInside(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetSizeHints__SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - int arg3 ; - int arg4 = (int) -1 ; - int arg5 = (int) -1 ; - int arg6 = (int) -1 ; - int arg7 = (int) -1 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OOO|OOOO:Window_SetSizeHints",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - arg6 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - arg7 = (int) SWIG_AsInt(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSizeHints(arg2,arg3,arg4,arg5,arg6,arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetSizeHints__SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxSize *arg2 = 0 ; - wxSize const &arg3_defvalue = wxDefaultSize ; - wxSize *arg3 = (wxSize *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - wxSize temp2 ; - wxSize temp3 ; - wxSize temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO|OO:Window_SetSizeHints",&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - if (obj2) { - { - arg3 = &temp3; - if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3,(wxSize const &)*arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetSizeHints(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[8]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 7); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if ((argc >= 2) && (argc <= 4)) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2); - } - if (_v) { - if (argc <= 2) { - return _wrap_Window_SetSizeHints__SWIG_1(self,args); - } - { - _v = wxPySimple_typecheck(argv[2], wxT("wxSize"), 2); - } - if (_v) { - if (argc <= 3) { - return _wrap_Window_SetSizeHints__SWIG_1(self,args); - } - { - _v = wxPySimple_typecheck(argv[3], wxT("wxSize"), 2); - } - if (_v) { - return _wrap_Window_SetSizeHints__SWIG_1(self,args); - } - } - } - } - } - if ((argc >= 3) && (argc <= 7)) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - _v = SWIG_CheckInt(argv[1]); - if (_v) { - _v = SWIG_CheckInt(argv[2]); - if (_v) { - if (argc <= 3) { - return _wrap_Window_SetSizeHints__SWIG_0(self,args); - } - _v = SWIG_CheckInt(argv[3]); - if (_v) { - if (argc <= 4) { - return _wrap_Window_SetSizeHints__SWIG_0(self,args); - } - _v = SWIG_CheckInt(argv[4]); - if (_v) { - if (argc <= 5) { - return _wrap_Window_SetSizeHints__SWIG_0(self,args); - } - _v = SWIG_CheckInt(argv[5]); - if (_v) { - if (argc <= 6) { - return _wrap_Window_SetSizeHints__SWIG_0(self,args); - } - _v = SWIG_CheckInt(argv[6]); - if (_v) { - return _wrap_Window_SetSizeHints__SWIG_0(self,args); - } - } - } - } - } - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_SetSizeHints'"); - return NULL; -} - - -static PyObject *_wrap_Window_SetVirtualSizeHints__SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - int arg3 ; - int arg4 = (int) -1 ; - int arg5 = (int) -1 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OOO|OO:Window_SetVirtualSizeHints",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetVirtualSizeHints(arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetVirtualSizeHints__SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxSize *arg2 = 0 ; - wxSize const &arg3_defvalue = wxDefaultSize ; - wxSize *arg3 = (wxSize *) &arg3_defvalue ; - wxSize temp2 ; - wxSize temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO|O:Window_SetVirtualSizeHints",&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - if (obj2) { - { - arg3 = &temp3; - if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetVirtualSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetVirtualSizeHints(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[6]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 5); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if ((argc >= 2) && (argc <= 3)) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2); - } - if (_v) { - if (argc <= 2) { - return _wrap_Window_SetVirtualSizeHints__SWIG_1(self,args); - } - { - _v = wxPySimple_typecheck(argv[2], wxT("wxSize"), 2); - } - if (_v) { - return _wrap_Window_SetVirtualSizeHints__SWIG_1(self,args); - } - } - } - } - if ((argc >= 3) && (argc <= 5)) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - _v = SWIG_CheckInt(argv[1]); - if (_v) { - _v = SWIG_CheckInt(argv[2]); - if (_v) { - if (argc <= 3) { - return _wrap_Window_SetVirtualSizeHints__SWIG_0(self,args); - } - _v = SWIG_CheckInt(argv[3]); - if (_v) { - if (argc <= 4) { - return _wrap_Window_SetVirtualSizeHints__SWIG_0(self,args); - } - _v = SWIG_CheckInt(argv[4]); - if (_v) { - return _wrap_Window_SetVirtualSizeHints__SWIG_0(self,args); - } - } - } - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_SetVirtualSizeHints'"); - return NULL; -} - - -static PyObject *_wrap_Window_GetMinWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinWidth",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxWindow const *)arg1)->GetMinWidth(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetMinHeight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinHeight",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxWindow const *)arg1)->GetMinHeight(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetMaxWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxWidth",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxWindow const *)arg1)->GetMaxWidth(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetMaxHeight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxHeight",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxWindow const *)arg1)->GetMaxHeight(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxWindow const *)arg1)->GetMaxSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxWindow const *)arg1)->GetMinSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxSize *arg2 = 0 ; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetVirtualSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetVirtualSize((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetVirtualSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "w",(char *) "h", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetVirtualSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetVirtualSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxWindow const *)arg1)->GetVirtualSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetVirtualSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSizeTuple",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxWindow const *)arg1)->GetVirtualSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetBestVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestVirtualSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxWindow const *)arg1)->GetBestVirtualSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_Show(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool arg2 = (bool) True ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "show", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Show",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Show(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Hide",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Hide(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool arg2 = (bool) True ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "enable", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Enable",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Enable(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_Disable(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Disable",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Disable(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsShown",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxWindow const *)arg1)->IsShown(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsEnabled",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxWindow const *)arg1)->IsEnabled(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetWindowStyleFlag(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyleFlag",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxWindow const *)arg1)->GetWindowStyleFlag(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasFlag",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxWindow const *)arg1)->HasFlag(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsRetained",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxWindow const *)arg1)->IsRetained(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "exStyle", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetExtraStyle",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetExtraStyle(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetExtraStyle",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxWindow const *)arg1)->GetExtraStyle(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool arg2 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "modal", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_MakeModal",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->MakeModal(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "enableTheme", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetThemeEnabled",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetThemeEnabled(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetThemeEnabled",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxWindow const *)arg1)->GetThemeEnabled(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocus",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFocus(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetFocusFromKbd(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocusFromKbd",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFocusFromKbd(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_FindFocus",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)wxWindow::FindFocus(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocus",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxWindow const *)arg1)->AcceptsFocus(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxWindow const *)arg1)->AcceptsFocusFromKeyboard(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultItem",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)((wxWindow const *)arg1)->GetDefaultItem(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "child", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultItem",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)(arg1)->SetDefaultItem(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetTmpDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "win", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTmpDefaultItem",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetTmpDefaultItem(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetChildren",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxWindow_GetChildren(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetParent",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)((wxWindow const *)arg1)->GetParent(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetGrandParent",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)((wxWindow const *)arg1)->GetGrandParent(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsTopLevel",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxWindow const *)arg1)->IsTopLevel(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "newParent", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_Reparent",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Reparent(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "child", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AddChild",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AddChild(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "child", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveChild",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RemoveChild(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - long arg2 ; - wxWindow *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "winid", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowById",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)(arg1)->FindWindow(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxString *arg2 = 0 ; - wxWindow *result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowByName",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)(arg1)->FindWindow((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Window_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxEvtHandler *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetEventHandler",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxEvtHandler *)((wxWindow const *)arg1)->GetEventHandler(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "handler", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetEventHandler(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "handler", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PushEventHandler",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->PushEventHandler(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool arg2 = (bool) False ; - wxEvtHandler *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "deleteHandler", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_PopEventHandler",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxEvtHandler *)(arg1)->PopEventHandler(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_RemoveEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "handler", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveEventHandler",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->RemoveEventHandler(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxValidator *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "validator", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetValidator",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetValidator((wxValidator const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxValidator *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetValidator",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxValidator *)(arg1)->GetValidator(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Validate",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Validate(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataToWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->TransferDataToWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataFromWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->TransferDataFromWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InitDialog",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->InitDialog(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxAcceleratorTable *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "accel", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAcceleratorTable",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorTable, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetAcceleratorTable((wxAcceleratorTable const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxAcceleratorTable *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAcceleratorTable",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxAcceleratorTable *)(arg1)->GetAcceleratorTable(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_RegisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "hotkeyId",(char *) "modifiers",(char *) "keycode", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_RegisterHotKey",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxWindow_RegisterHotKey(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_UnregisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "hotkeyId", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_UnregisterHotKey",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxWindow_UnregisterHotKey(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogPointToPixels",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxSize *arg2 = 0 ; - wxSize result; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogSizeToPixels",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_DLG_PNT(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_PNT",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_DLG_SZE(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxSize *arg2 = 0 ; - wxSize result; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_SZE",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelPointToDialog",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->ConvertPixelsToDialog((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxSize *arg2 = 0 ; - wxSize result; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelSizeToDialog",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->ConvertPixelsToDialog((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_WarpPointer",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->WarpPointer(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_CaptureMouse",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->CaptureMouse(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ReleaseMouse",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ReleaseMouse(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_GetCapture",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)wxWindow::GetCapture(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_HasCapture(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_HasCapture",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxWindow const *)arg1)->HasCapture(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool arg2 = (bool) True ; - wxRect *arg3 = (wxRect *) NULL ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "eraseBackground",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Window_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Refresh(arg2,(wxRect const *)arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_RefreshRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxRect *arg2 = 0 ; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RefreshRect",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RefreshRect((wxRect const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_Update(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Update",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Update(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_ClearBackground(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ClearBackground",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ClearBackground(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Freeze",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Freeze(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Thaw",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Thaw(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxDC *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "dc", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PrepareDC",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->PrepareDC(*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxRegion *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateRegion",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxRegion &_result_ref = (arg1)->GetUpdateRegion(); - result = (wxRegion *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetUpdateClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxRect result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateClientRect",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxWindow const *)arg1)->GetUpdateClientRect(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxRect * resultptr; - resultptr = new wxRect((wxRect &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - int arg3 ; - int arg4 = (int) 1 ; - int arg5 = (int) 1 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_IsExposed",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxWindow const *)arg1)->IsExposed(arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxPoint *arg2 = 0 ; - bool result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedPoint",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxWindow const *)arg1)->IsExposed((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxRect *arg2 = 0 ; - bool result; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedRect",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxWindow const *)arg1)->IsExposed((wxRect const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxVisualAttributes result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultAttributes",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxWindow const *)arg1)->GetDefaultAttributes(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxVisualAttributes * resultptr; - resultptr = new wxVisualAttributes((wxVisualAttributes &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; - wxVisualAttributes result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "variant", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Window_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (wxWindowVariant) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxWindow::GetClassDefaultAttributes((wxWindowVariant )arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxVisualAttributes * resultptr; - resultptr = new wxVisualAttributes((wxVisualAttributes &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxColour *arg2 = 0 ; - bool result; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colour", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetDefaultBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colour", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultBackgroundColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDefaultBackgroundColour((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxColour *arg2 = 0 ; - bool result; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colour", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetDefaultForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colour", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultForegroundColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDefaultForegroundColour((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxColour result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundColour",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxWindow const *)arg1)->GetBackgroundColour(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxColour result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetForegroundColour",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxWindow const *)arg1)->GetForegroundColour(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxCursor *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "cursor", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCursor",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetCursor((wxCursor const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxCursor *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCursor",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxCursor &_result_ref = (arg1)->GetCursor(); - result = (wxCursor *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxCursor* resultptr = new wxCursor(*result); - resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxCursor, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxFont *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "font", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetFont",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetFont((wxFont const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetDefaultFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxFont *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "font", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultFont",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDefaultFont((wxFont const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxFont *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetFont",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxFont &_result_ref = (arg1)->GetFont(); - result = (wxFont *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxFont* resultptr = new wxFont(*result); - resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxCaret *arg2 = (wxCaret *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "caret", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCaret",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCaret, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetCaret(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxCaret *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCaret",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxCaret *)((wxWindow const *)arg1)->GetCaret(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharHeight",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxWindow const *)arg1)->GetCharHeight(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharWidth",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxWindow const *)arg1)->GetCharWidth(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxString *arg2 = 0 ; - int *arg3 = (int *) 0 ; - int *arg4 = (int *) 0 ; - bool temp2 = False ; - int temp3 ; - int temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "string", NULL - }; - - arg3 = &temp3; - arg4 = &temp4; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg4)); - resultobj = t_output_helper(resultobj,o); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Window_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxString *arg2 = 0 ; - int *arg3 = (int *) 0 ; - int *arg4 = (int *) 0 ; - int *arg5 = (int *) 0 ; - int *arg6 = (int *) 0 ; - wxFont *arg7 = (wxFont *) NULL ; - bool temp2 = False ; - int temp3 ; - int temp4 ; - int temp5 ; - int temp6 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "string",(char *) "font", NULL - }; - - arg3 = &temp3; - arg4 = &temp4; - arg5 = &temp5; - arg6 = &temp6; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,(wxFont const *)arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg4)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg5)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg6)); - resultobj = t_output_helper(resultobj,o); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Window_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ClientToScreenXY",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - temp2 = PyInt_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg2 = &temp2; - } - { - temp3 = PyInt_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg3 = &temp3; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxWindow const *)arg1)->ClientToScreen(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ScreenToClientXY",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - temp2 = PyInt_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg2 = &temp2; - } - { - temp3 = PyInt_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg3 = &temp3; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxWindow const *)arg1)->ScreenToClient(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ClientToScreen",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxWindow const *)arg1)->ClientToScreen((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScreenToClient",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxWindow const *)arg1)->ScreenToClient((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - int arg3 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxWindow const *)arg1)->HitTest(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxPoint *arg2 = 0 ; - int result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HitTest",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxWindow const *)arg1)->HitTest((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetBorder__SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - long arg2 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:Window_GetBorder",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxWindow const *)arg1)->GetBorder(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetBorder__SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int result; - PyObject * obj0 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"O:Window_GetBorder",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxWindow const *)arg1)->GetBorder(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetBorder(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if (argc == 1) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_Window_GetBorder__SWIG_1(self,args); - } - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - _v = SWIG_CheckLong(argv[1]); - if (_v) { - return _wrap_Window_GetBorder__SWIG_0(self,args); - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_GetBorder'"); - return NULL; -} - - -static PyObject *_wrap_Window_UpdateWindowUI(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - long arg2 = (long) wxUPDATE_UI_NONE ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_UpdateWindowUI",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->UpdateWindowUI(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxMenu *arg2 = (wxMenu *) 0 ; - int arg3 ; - int arg4 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "menu",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_PopupMenuXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->PopupMenu(arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxMenu *arg2 = (wxMenu *) 0 ; - wxPoint *arg3 = 0 ; - bool result; - wxPoint temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "menu",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_PopupMenu",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->PopupMenu(arg2,(wxPoint const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHandle",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)wxWindow_GetHandle(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_HasScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "orient", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasScrollbar",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxWindow const *)arg1)->HasScrollbar(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - bool arg6 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "orientation",(char *) "pos",(char *) "thumbvisible",(char *) "range",(char *) "refresh", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - if (obj5) { - arg6 = (bool) SWIG_AsBool(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - int arg3 ; - bool arg4 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "orientation",(char *) "pos",(char *) "refresh", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_SetScrollPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - arg4 = (bool) SWIG_AsBool(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetScrollPos(arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "orientation", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollPos",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxWindow const *)arg1)->GetScrollPos(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "orientation", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollThumb",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxWindow const *)arg1)->GetScrollThumb(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "orientation", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollRange",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxWindow const *)arg1)->GetScrollRange(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - int arg3 ; - wxRect *arg4 = (wxRect *) NULL ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "dx",(char *) "dy",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_ScrollWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ScrollWindow(arg2,arg3,(wxRect const *)arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "lines", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollLines",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->ScrollLines(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pages", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollPages",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->ScrollPages(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineUp",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->LineUp(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineDown",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->LineDown(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageUp",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->PageUp(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_PageDown(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageDown",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->PageDown(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "text", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpText",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetHelpText((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Window_SetHelpTextForId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "text", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpTextForId",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetHelpTextForId((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Window_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHelpText",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxWindow const *)arg1)->GetHelpText(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "tip", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTipString",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetToolTip((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Window_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxToolTip *arg2 = (wxToolTip *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "tip", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTip",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolTip, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetToolTip(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxToolTip *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetToolTip",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxToolTip *)((wxWindow const *)arg1)->GetToolTip(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxPyDropTarget *arg2 = (wxPyDropTarget *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "dropTarget", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDropTarget",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyDropTarget, - SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDropTarget(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxPyDropTarget *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDropTarget",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyDropTarget *)((wxWindow const *)arg1)->GetDropTarget(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "constraints", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetConstraints",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetConstraints(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxLayoutConstraints *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetConstraints",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxLayoutConstraints *)((wxWindow const *)arg1)->GetConstraints(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "autoLayout", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAutoLayout",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetAutoLayout(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAutoLayout",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxWindow const *)arg1)->GetAutoLayout(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Layout",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Layout(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxSizer *arg2 = (wxSizer *) 0 ; - bool arg3 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizer",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSizer(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetSizerAndFit(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxSizer *arg2 = (wxSizer *) 0 ; - bool arg3 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizerAndFit",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSizerAndFit(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxSizer *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizer",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSizer *)((wxWindow const *)arg1)->GetSizer(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxSizer(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxSizer *arg2 = (wxSizer *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sizer", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetContainingSizer",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetContainingSizer(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxSizer *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetContainingSizer",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSizer *)((wxWindow const *)arg1)->GetContainingSizer(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxSizer(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_InheritAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InheritAttributes",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->InheritAttributes(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ShouldInheritColours",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxWindow const *)arg1)->ShouldInheritColours(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * Window_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxWindow, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - long arg1 ; - wxWindow *arg2 = (wxWindow *) NULL ; - wxWindow *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "id",(char *) "parent", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowById",kwnames,&obj0,&obj1)) goto fail; - arg1 = (long) SWIG_AsLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - if (obj1) { - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)wxFindWindowById(arg1,(wxWindow const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxWindow *arg2 = (wxWindow *) NULL ; - wxWindow *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "name",(char *) "parent", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByName",kwnames,&obj0,&obj1)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - if (obj1) { - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)wxFindWindowByName((wxString const &)*arg1,(wxWindow const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_FindWindowByLabel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxWindow *arg2 = (wxWindow *) NULL ; - wxWindow *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "label",(char *) "parent", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByLabel",kwnames,&obj0,&obj1)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - if (obj1) { - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)wxFindWindowByLabel((wxString const &)*arg1,(wxWindow const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_Window_FromHWND(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - unsigned long arg2 ; - wxWindow *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "_hWnd", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FromHWND",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)wxWindow_FromHWND(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_Validator(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxValidator *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Validator",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxValidator *)new wxValidator(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Validator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxValidator *arg1 = (wxValidator *) 0 ; - wxValidator *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_Clone",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxValidator *)(arg1)->Clone(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Validator_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxValidator *arg1 = (wxValidator *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_Validate",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Validate(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Validator_TransferToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxValidator *arg1 = (wxValidator *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferToWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->TransferToWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Validator_TransferFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxValidator *arg1 = (wxValidator *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferFromWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->TransferFromWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Validator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxValidator *arg1 = (wxValidator *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_GetWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)(arg1)->GetWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Validator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxValidator *arg1 = (wxValidator *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "window", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_SetWindow",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetWindow(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Validator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - bool result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Validator_IsSilent",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxValidator::IsSilent(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Validator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) True ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "doIt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Validator_SetBellOnError",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxValidator::SetBellOnError(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * Validator_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxValidator, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyValidator *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyValidator",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyValidator *)new wxPyValidator(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyValidator, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyValidator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyValidator *arg1 = (wxPyValidator *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - int arg4 = (int) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyValidator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * PyValidator_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyValidator, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_DefaultValidator_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable DefaultValidator is read-only."); - return 1; -} - - -static PyObject *_wrap_DefaultValidator_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(&wxDefaultValidator), SWIGTYPE_p_wxValidator, 0); - return pyobj; -} - - -static PyObject *_wrap_new_Menu(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString const &arg1_defvalue = wxPyEmptyString ; - wxString *arg1 = (wxString *) &arg1_defvalue ; - long arg2 = (long) 0 ; - wxMenu *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "title",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Menu",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - } - if (obj1) { - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenu *)new wxMenu((wxString const &)*arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_Menu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - wxString const &arg4_defvalue = wxPyEmptyString ; - wxString *arg4 = (wxString *) &arg4_defvalue ; - int arg5 = (int) wxITEM_NORMAL ; - wxMenuItem *result; - bool temp3 = False ; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - } - if (obj4) { - arg5 = (wxItemKind) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_Menu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - wxMenuItem *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_AppendSeparator",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)(arg1)->AppendSeparator(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_AppendCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - wxString const &arg4_defvalue = wxPyEmptyString ; - wxString *arg4 = (wxString *) &arg4_defvalue ; - wxMenuItem *result; - bool temp3 = False ; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)(arg1)->AppendCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_Menu_AppendRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - wxString const &arg4_defvalue = wxPyEmptyString ; - wxString *arg4 = (wxString *) &arg4_defvalue ; - wxMenuItem *result; - bool temp3 = False ; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)(arg1)->AppendRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_Menu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - wxMenu *arg4 = (wxMenu *) 0 ; - wxString const &arg5_defvalue = wxPyEmptyString ; - wxString *arg5 = (wxString *) &arg5_defvalue ; - wxMenuItem *result; - bool temp3 = False ; - bool temp5 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_AppendMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj4) { - { - arg5 = wxString_in_helper(obj4); - if (arg5 == NULL) SWIG_fail; - temp5 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp3) - delete arg3; - } - { - if (temp5) - delete arg5; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp5) - delete arg5; - } - return NULL; -} - - -static PyObject *_wrap_Menu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - wxMenuItem *arg2 = (wxMenuItem *) 0 ; - wxMenuItem *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_AppendItem",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)(arg1)->Append(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Break",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Break(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - size_t arg2 ; - wxMenuItem *arg3 = (wxMenuItem *) 0 ; - wxMenuItem *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)(arg1)->Insert(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - size_t arg2 ; - int arg3 ; - wxString *arg4 = 0 ; - wxString const &arg5_defvalue = wxPyEmptyString ; - wxString *arg5 = (wxString *) &arg5_defvalue ; - int arg6 = (int) wxITEM_NORMAL ; - wxMenuItem *result; - bool temp4 = False ; - bool temp5 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Menu_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - if (obj4) { - { - arg5 = wxString_in_helper(obj4); - if (arg5 == NULL) SWIG_fail; - temp5 = True; - } - } - if (obj5) { - arg6 = (wxItemKind) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxItemKind )arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp4) - delete arg4; - } - { - if (temp5) - delete arg5; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - { - if (temp5) - delete arg5; - } - return NULL; -} - - -static PyObject *_wrap_Menu_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - size_t arg2 ; - wxMenuItem *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)(arg1)->InsertSeparator(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_InsertCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - size_t arg2 ; - int arg3 ; - wxString *arg4 = 0 ; - wxString const &arg5_defvalue = wxPyEmptyString ; - wxString *arg5 = (wxString *) &arg5_defvalue ; - wxMenuItem *result; - bool temp4 = False ; - bool temp5 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - if (obj4) { - { - arg5 = wxString_in_helper(obj4); - if (arg5 == NULL) SWIG_fail; - temp5 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)(arg1)->InsertCheckItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp4) - delete arg4; - } - { - if (temp5) - delete arg5; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - { - if (temp5) - delete arg5; - } - return NULL; -} - - -static PyObject *_wrap_Menu_InsertRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - size_t arg2 ; - int arg3 ; - wxString *arg4 = 0 ; - wxString const &arg5_defvalue = wxPyEmptyString ; - wxString *arg5 = (wxString *) &arg5_defvalue ; - wxMenuItem *result; - bool temp4 = False ; - bool temp5 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - if (obj4) { - { - arg5 = wxString_in_helper(obj4); - if (arg5 == NULL) SWIG_fail; - temp5 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)(arg1)->InsertRadioItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp4) - delete arg4; - } - { - if (temp5) - delete arg5; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - { - if (temp5) - delete arg5; - } - return NULL; -} - - -static PyObject *_wrap_Menu_InsertMenu(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - size_t arg2 ; - int arg3 ; - wxString *arg4 = 0 ; - wxMenu *arg5 = (wxMenu *) 0 ; - wxString const &arg6_defvalue = wxPyEmptyString ; - wxString *arg6 = (wxString *) &arg6_defvalue ; - wxMenuItem *result; - bool temp4 = False ; - bool temp6 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Menu_InsertMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj5) { - { - arg6 = wxString_in_helper(obj5); - if (arg6 == NULL) SWIG_fail; - temp6 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,arg5,(wxString const &)*arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp4) - delete arg4; - } - { - if (temp6) - delete arg6; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - { - if (temp6) - delete arg6; - } - return NULL; -} - - -static PyObject *_wrap_Menu_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - wxMenuItem *arg2 = (wxMenuItem *) 0 ; - wxMenuItem *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_PrependItem",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)(arg1)->Prepend(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - wxString const &arg4_defvalue = wxPyEmptyString ; - wxString *arg4 = (wxString *) &arg4_defvalue ; - int arg5 = (int) wxITEM_NORMAL ; - wxMenuItem *result; - bool temp3 = False ; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - } - if (obj4) { - arg5 = (wxItemKind) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_Menu_PrependSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - wxMenuItem *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_PrependSeparator",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)(arg1)->PrependSeparator(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_PrependCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - wxString const &arg4_defvalue = wxPyEmptyString ; - wxString *arg4 = (wxString *) &arg4_defvalue ; - wxMenuItem *result; - bool temp3 = False ; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)(arg1)->PrependCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_Menu_PrependRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - wxString const &arg4_defvalue = wxPyEmptyString ; - wxString *arg4 = (wxString *) &arg4_defvalue ; - wxMenuItem *result; - bool temp3 = False ; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)(arg1)->PrependRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_Menu_PrependMenu(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - wxMenu *arg4 = (wxMenu *) 0 ; - wxString const &arg5_defvalue = wxPyEmptyString ; - wxString *arg5 = (wxString *) &arg5_defvalue ; - wxMenuItem *result; - bool temp3 = False ; - bool temp5 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_PrependMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj4) { - { - arg5 = wxString_in_helper(obj4); - if (arg5 == NULL) SWIG_fail; - temp5 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp3) - delete arg3; - } - { - if (temp5) - delete arg5; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp5) - delete arg5; - } - return NULL; -} - - -static PyObject *_wrap_Menu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - int arg2 ; - wxMenuItem *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Remove",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)(arg1)->Remove(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - wxMenuItem *arg2 = (wxMenuItem *) 0 ; - wxMenuItem *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_RemoveItem",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)(arg1)->Remove(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Delete",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Delete(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - wxMenuItem *arg2 = (wxMenuItem *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DeleteItem",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Delete(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Destroy",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxMenu_Destroy(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyId",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Destroy(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - wxMenuItem *arg2 = (wxMenuItem *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyItem",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Destroy(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - size_t result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItemCount",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (size_t)((wxMenu const *)arg1)->GetMenuItemCount(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItems",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxMenu_GetMenuItems(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - wxString *arg2 = 0 ; - int result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItem",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxMenu const *)arg1)->FindItem((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Menu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - int arg2 ; - wxMenuItem *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemById",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)((wxMenu const *)arg1)->FindItem(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_FindItemByPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - size_t arg2 ; - wxMenuItem *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "position", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemByPosition",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)((wxMenu const *)arg1)->FindItemByPosition(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - int arg2 ; - bool arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "enable", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Enable(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsEnabled",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMenu const *)arg1)->IsEnabled(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - int arg2 ; - bool arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "check", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Check(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsChecked",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMenu const *)arg1)->IsChecked(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "label", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetLabel(arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_Menu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - int arg2 ; - wxString result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetLabel",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxMenu const *)arg1)->GetLabel(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "helpString", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetHelpString(arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_Menu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - int arg2 ; - wxString result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetHelpString",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxMenu const *)arg1)->GetHelpString(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "title", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetTitle",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetTitle((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Menu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetTitle",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxMenu const *)arg1)->GetTitle(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "handler", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetEventHandler(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - wxEvtHandler *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetEventHandler",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxEvtHandler *)((wxMenu const *)arg1)->GetEventHandler(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "win", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetInvokingWindow",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetInvokingWindow(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetInvokingWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)((wxMenu const *)arg1)->GetInvokingWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetStyle",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxMenu const *)arg1)->GetStyle(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - wxEvtHandler *arg2 = (wxEvtHandler *) NULL ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "source", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Menu_UpdateUI",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->UpdateUI(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_GetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - wxMenuBar *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuBar",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuBar *)((wxMenu const *)arg1)->GetMenuBar(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - wxMenuBarBase *arg2 = (wxMenuBarBase *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "menubar", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Attach",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Attach(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Detach",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Detach(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_IsAttached",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMenu const *)arg1)->IsAttached(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - wxMenu *arg2 = (wxMenu *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetParent",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetParent(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - wxMenu *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetParent",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenu *)((wxMenu const *)arg1)->GetParent(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * Menu_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxMenu, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_MenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - long arg1 = (long) 0 ; - wxMenuBar *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MenuBar",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (long) SWIG_AsLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuBar *)new wxMenuBar(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - wxMenu *arg2 = (wxMenu *) 0 ; - wxString *arg3 = 0 ; - bool result; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "menu",(char *) "title", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Append(arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_MenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - size_t arg2 ; - wxMenu *arg3 = (wxMenu *) 0 ; - wxString *arg4 = 0 ; - bool result; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_MenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - size_t result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetMenuCount",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (size_t)((wxMenuBar const *)arg1)->GetMenuCount(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - size_t arg2 ; - wxMenu *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetMenu",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenu *)((wxMenuBar const *)arg1)->GetMenu(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - size_t arg2 ; - wxMenu *arg3 = (wxMenu *) 0 ; - wxString *arg4 = 0 ; - wxMenu *result; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenu *)(arg1)->Replace(arg2,arg3,(wxString const &)*arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_MenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - size_t arg2 ; - wxMenu *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Remove",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenu *)(arg1)->Remove(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - size_t arg2 ; - bool arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos",(char *) "enable", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_EnableTop",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->EnableTop(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuBar_IsEnabledTop(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - size_t arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabledTop",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMenuBar const *)arg1)->IsEnabledTop(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - size_t arg2 ; - wxString *arg3 = 0 ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos",(char *) "label", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabelTop",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetLabelTop(arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_MenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - size_t arg2 ; - wxString result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabelTop",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxMenuBar const *)arg1)->GetLabelTop(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - wxString *arg2 = 0 ; - wxString *arg3 = 0 ; - int result; - bool temp2 = False ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "menu",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_FindMenuItem",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxMenuBar const *)arg1)->FindMenuItem((wxString const &)*arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_MenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - int arg2 ; - wxMenuItem *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindItemById",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)((wxMenuBar const *)arg1)->FindItem(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - wxString *arg2 = 0 ; - int result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "title", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindMenu",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxMenuBar const *)arg1)->FindMenu((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_MenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - int arg2 ; - bool arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "enable", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Enable(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - int arg2 ; - bool arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "check", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Check(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsChecked",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMenuBar const *)arg1)->IsChecked(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabled",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMenuBar const *)arg1)->IsEnabled(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "label", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetLabel(arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_MenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - int arg2 ; - wxString result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabel",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxMenuBar const *)arg1)->GetLabel(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "helpString", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetHelpString(arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_MenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - int arg2 ; - wxString result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetHelpString",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxMenuBar const *)arg1)->GetHelpString(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuBar_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - wxFrame *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetFrame",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFrame *)((wxMenuBar const *)arg1)->GetFrame(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuBar_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_IsAttached",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMenuBar const *)arg1)->IsAttached(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuBar_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - wxFrame *arg2 = (wxFrame *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "frame", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Attach",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Attach(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuBar_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_Detach",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Detach(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * MenuBar_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxMenuBar, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_MenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) NULL ; - int arg2 = (int) wxID_ANY ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - wxString const &arg4_defvalue = wxPyEmptyString ; - wxString *arg4 = (wxString *) &arg4_defvalue ; - int arg5 = (int) wxITEM_NORMAL ; - wxMenu *arg6 = (wxMenu *) NULL ; - wxMenuItem *result; - bool temp3 = False ; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "parentMenu",(char *) "id",(char *) "text",(char *) "help",(char *) "kind",(char *) "subMenu", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_MenuItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if (obj0) { - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - if (obj3) { - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - } - if (obj4) { - arg5 = (wxItemKind) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)new wxMenuItem(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_MenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - wxMenu *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMenu",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenu *)((wxMenuItem const *)arg1)->GetMenu(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_SetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - wxMenu *arg2 = (wxMenu *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "menu", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMenu",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMenu(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetId",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetId(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetId",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxMenuItem const *)arg1)->GetId(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSeparator",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMenuItem const *)arg1)->IsSeparator(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "str", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetText",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetText((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_MenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabel",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxMenuItem const *)arg1)->GetLabel(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetText",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetText(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "text", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabelFromText",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxMenuItem::GetLabelFromText((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; -} - - -static PyObject *_wrap_MenuItem_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetKind",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxMenuItem const *)arg1)->GetKind(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_SetKind(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "kind", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetKind",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxItemKind) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetKind((wxItemKind )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "checkable", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetCheckable",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetCheckable(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsCheckable",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMenuItem const *)arg1)->IsCheckable(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSubMenu",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMenuItem const *)arg1)->IsSubMenu(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - wxMenu *arg2 = (wxMenu *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "menu", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetSubMenu",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSubMenu(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - wxMenu *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetSubMenu",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenu *)((wxMenuItem const *)arg1)->GetSubMenu(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - bool arg2 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "enable", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Enable",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Enable(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsEnabled",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMenuItem const *)arg1)->IsEnabled(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - bool arg2 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "check", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Check",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Check(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsChecked",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMenuItem const *)arg1)->IsChecked(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_Toggle",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Toggle(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "str", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetHelp",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetHelp((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_MenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetHelp",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetHelp(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - wxAcceleratorEntry *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetAccel",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxAcceleratorEntry *)((wxMenuItem const *)arg1)->GetAccel(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "accel", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetAccel",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorEntry, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetAccel(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_GetDefaultMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MenuItem_GetDefaultMarginWidth",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)MenuItem_GetDefaultMarginWidth(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - wxBitmap *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bitmap", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBitmap",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetBitmap((wxBitmap const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - wxBitmap *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBitmap",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxBitmap const &_result_ref = (arg1)->GetBitmap(); - result = (wxBitmap *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxBitmap* resultptr = new wxBitmap(*result); - resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * MenuItem_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxMenuItem, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_ControlNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ControlNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_ControlNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_Control(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) 0 ; - wxValidator const &arg6_defvalue = wxDefaultValidator ; - wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; - wxString const &arg7_defvalue = wxPyControlNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - wxControl *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_Control",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg6 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxControl *)new wxControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_new_PreControl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxControl *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreControl",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxControl *)new wxControl(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Control_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxControl *arg1 = (wxControl *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) 0 ; - wxValidator const &arg7_defvalue = wxDefaultValidator ; - wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; - wxString const &arg8_defvalue = wxPyControlNameStr ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - bool result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp8 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:Control_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg7 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp8) - delete arg8; - } - return resultobj; - fail: - { - if (temp8) - delete arg8; - } - return NULL; -} - - -static PyObject *_wrap_Control_Command(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxControl *arg1 = (wxControl *) 0 ; - wxCommandEvent *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "event", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_Command",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCommandEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Command(*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Control_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxControl *arg1 = (wxControl *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Control_GetLabel",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetLabel(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Control_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxControl *arg1 = (wxControl *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "label", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_SetLabel",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetLabel((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Control_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; - wxVisualAttributes result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "variant", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Control_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (wxWindowVariant) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxControl::GetClassDefaultAttributes((wxWindowVariant )arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxVisualAttributes * resultptr; - resultptr = new wxVisualAttributes((wxVisualAttributes &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * Control_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxControl, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_ItemContainer_Append(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxItemContainer *arg1 = (wxItemContainer *) 0 ; - wxString *arg2 = 0 ; - PyObject *arg3 = (PyObject *) NULL ; - int result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "clientData", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ItemContainer_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = obj2; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxItemContainer_Append(arg1,(wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ItemContainer_AppendItems(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxItemContainer *arg1 = (wxItemContainer *) 0 ; - wxArrayString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "strings", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_AppendItems",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - if (! PySequence_Check(obj1)) { - PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); - SWIG_fail; - } - arg2 = new wxArrayString; - temp2 = True; - int i, len=PySequence_Length(obj1); - for (i=0; iAdd(Py2wxString(str)); - Py_DECREF(item); - Py_DECREF(str); - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Append((wxArrayString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) delete arg2; - } - return resultobj; - fail: - { - if (temp2) delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ItemContainer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxItemContainer *arg1 = (wxItemContainer *) 0 ; - wxString *arg2 = 0 ; - int arg3 ; - PyObject *arg4 = (PyObject *) NULL ; - int result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ItemContainer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - arg4 = obj3; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxItemContainer_Insert(arg1,(wxString const &)*arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ItemContainer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxItemContainer *arg1 = (wxItemContainer *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_Clear",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Clear(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ItemContainer_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxItemContainer *arg1 = (wxItemContainer *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Delete",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Delete(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ItemContainer_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxItemContainer *arg1 = (wxItemContainer *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetCount",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxItemContainer const *)arg1)->GetCount(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ItemContainer_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxItemContainer *arg1 = (wxItemContainer *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_IsEmpty",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxItemContainer const *)arg1)->IsEmpty(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ItemContainer_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxItemContainer *arg1 = (wxItemContainer *) 0 ; - int arg2 ; - wxString result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetString",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxItemContainer const *)arg1)->GetString(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ItemContainer_GetStrings(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxItemContainer *arg1 = (wxItemContainer *) 0 ; - wxArrayString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStrings",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxItemContainer const *)arg1)->GetStrings(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxArrayString2PyList_helper(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ItemContainer_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxItemContainer *arg1 = (wxItemContainer *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n",(char *) "s", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetString(arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_ItemContainer_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxItemContainer *arg1 = (wxItemContainer *) 0 ; - wxString *arg2 = 0 ; - int result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "s", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_FindString",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxItemContainer const *)arg1)->FindString((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ItemContainer_Select(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxItemContainer *arg1 = (wxItemContainer *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Select",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Select(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ItemContainer_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxItemContainer *arg1 = (wxItemContainer *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetSelection",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxItemContainer const *)arg1)->GetSelection(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ItemContainer_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxItemContainer *arg1 = (wxItemContainer *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStringSelection",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxItemContainer const *)arg1)->GetStringSelection(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ItemContainer_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxItemContainer *arg1 = (wxItemContainer *) 0 ; - int arg2 ; - PyObject *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetClientData",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxItemContainer_GetClientData(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ItemContainer_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxItemContainer *arg1 = (wxItemContainer *) 0 ; - int arg2 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n",(char *) "clientData", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxItemContainer_SetClientData(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * ItemContainer_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxItemContainer, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject * ControlWithItems_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxControlWithItems, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_SizerItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SizerItem",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSizerItem *)new wxSizerItem(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_SizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - wxObject *arg6 = (wxObject *) 0 ; - wxSizerItem *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "width",(char *) "height",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_SizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_SizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - wxObject *arg5 = (wxObject *) 0 ; - wxSizerItem *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "window",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_SizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_SizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - wxObject *arg5 = (wxObject *) 0 ; - wxSizerItem *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "sizer",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_SizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DeleteWindows",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DeleteWindows(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_DetachSizer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DetachSizer",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DetachSizer(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_CalcMin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->CalcMin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - wxPoint arg2 ; - wxSize arg3 ; - wxPoint *argp2 ; - wxSize *argp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetDimension",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint, - SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; - arg2 = *argp2; - if ((SWIG_ConvertPtr(obj2,(void **)(&argp3),SWIGTYPE_p_wxSize, - SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; - arg3 = *argp3; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDimension(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetMinSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_SetInitSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetInitSize",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetInitSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_SetRatioWH(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetRatioWH",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetRatio(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_SetRatioSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - wxSize arg2 ; - wxSize *argp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatioSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize, - SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; - arg2 = *argp2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetRatio(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_SetRatio(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - float arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "ratio", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatio",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (float) SWIG_AsFloat(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetRatio(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_GetRatio(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - float result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRatio",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (float)(arg1)->GetRatio(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromFloat((float)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_IsWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->IsWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_IsSizer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSizer",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->IsSizer(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_IsSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSpacer",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->IsSpacer(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_SetProportion(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "proportion", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetProportion",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetProportion(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_GetProportion(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetProportion",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetProportion(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_SetFlag(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetFlag",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFlag(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_GetFlag(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetFlag",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetFlag(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_SetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "border", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetBorder",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetBorder(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetBorder",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetBorder(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)(arg1)->GetWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "window", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetWindow",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetWindow(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - wxSizer *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSizer",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSizer *)(arg1)->GetSizer(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxSizer(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - wxSizer *arg2 = (wxSizer *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sizer", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSizer",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSizer(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_GetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - wxSize *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSpacer",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxSize const &_result_ref = (arg1)->GetSpacer(); - result = (wxSize *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_SetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - wxSize *arg2 = 0 ; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSpacer",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSpacer((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_Show(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "show", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_Show",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Show(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsShown",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->IsShown(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_GetUserData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetUserData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxSizerItem_GetUserData(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject * SizerItem_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxSizerItem, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_Sizer__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "_self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer__setOORInfo",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxSizer__setOORInfo(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - int arg3 = (int) 0 ; - int arg4 = (int) 0 ; - int arg5 = (int) 0 ; - PyObject *arg6 = (PyObject *) NULL ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - arg6 = obj5; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxSizer_Add(arg1,arg2,arg3,arg4,arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - int arg2 ; - PyObject *arg3 = (PyObject *) 0 ; - int arg4 = (int) 0 ; - int arg5 = (int) 0 ; - int arg6 = (int) 0 ; - PyObject *arg7 = (PyObject *) NULL ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "before",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Sizer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = obj2; - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - arg6 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - arg7 = obj6; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxSizer_Insert(arg1,arg2,arg3,arg4,arg5,arg6,arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - int arg3 = (int) 0 ; - int arg4 = (int) 0 ; - int arg5 = (int) 0 ; - PyObject *arg6 = (PyObject *) NULL ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - arg6 = obj5; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxSizer_Prepend(arg1,arg2,arg3,arg4,arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Remove",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxSizer_Remove(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer__SetItemMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - wxSize *arg3 = 0 ; - wxSize temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer__SetItemMinSize",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - { - arg3 = &temp3; - if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxSizer__SetItemMinSize(arg1,arg2,(wxSize const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - wxSizerItem *arg2 = (wxSizerItem *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_AddItem",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Add(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - size_t arg2 ; - wxSizerItem *arg3 = (wxSizerItem *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "index",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Insert(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - wxSizerItem *arg2 = (wxSizerItem *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_PrependItem",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Prepend(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Sizer_SetDimension",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDimension(arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_SetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - wxSize *arg2 = 0 ; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetMinSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMinSize((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetMinSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetMinSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_RecalcSizes",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RecalcSizes(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_CalcMin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->CalcMin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_Layout",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Layout(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "window", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Fit",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->Fit(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "window", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_FitInside",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->FitInside(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "window", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetSizeHints",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSizeHints(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "window", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetVirtualSizeHints",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetVirtualSizeHints(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - bool arg2 = (bool) False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "delete_windows", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sizer_Clear",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Clear(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_DeleteWindows",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DeleteWindows(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetChildren",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxSizer_GetChildren(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_Show(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - bool arg3 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "show", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Sizer_Show",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxSizer_Show(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Hide",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxSizer_Hide(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_IsShown",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxSizer_IsShown(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_ShowItems(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "show", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_ShowItems",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ShowItems(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * Sizer_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxSizer, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PySizer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPySizer *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PySizer",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPySizer *)new wxPySizer(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPySizer, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PySizer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPySizer *arg1 = (wxPySizer *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PySizer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPySizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * PySizer_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPySizer, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_BoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) wxHORIZONTAL ; - wxBoxSizer *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "orient", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BoxSizer",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxBoxSizer *)new wxBoxSizer(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBoxSizer, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BoxSizer_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_GetOrientation",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetOrientation(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BoxSizer_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "orient", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BoxSizer_SetOrientation",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetOrientation(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BoxSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_RecalcSizes",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RecalcSizes(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BoxSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_CalcMin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->CalcMin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * BoxSizer_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxBoxSizer, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_StaticBoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStaticBox *arg1 = (wxStaticBox *) 0 ; - int arg2 = (int) wxHORIZONTAL ; - wxStaticBoxSizer *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "box",(char *) "orient", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_StaticBoxSizer",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxStaticBoxSizer *)new wxStaticBoxSizer(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBoxSizer, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_StaticBoxSizer_GetStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; - wxStaticBox *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_GetStaticBox",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxStaticBox *)(arg1)->GetStaticBox(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_StaticBoxSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_RecalcSizes",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RecalcSizes(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_StaticBoxSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_CalcMin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->CalcMin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * StaticBoxSizer_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxStaticBoxSizer, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_GridSizer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 1 ; - int arg2 = (int) 0 ; - int arg3 = (int) 0 ; - int arg4 = (int) 0 ; - wxGridSizer *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_GridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGridSizer *)new wxGridSizer(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridSizer, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGridSizer *arg1 = (wxGridSizer *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_RecalcSizes",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RecalcSizes(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGridSizer *arg1 = (wxGridSizer *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_CalcMin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->CalcMin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridSizer_SetCols(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGridSizer *arg1 = (wxGridSizer *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "cols", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetCols",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetCols(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridSizer_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGridSizer *arg1 = (wxGridSizer *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rows", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetRows",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetRows(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridSizer_SetVGap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGridSizer *arg1 = (wxGridSizer *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "gap", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetVGap",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetVGap(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridSizer_SetHGap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGridSizer *arg1 = (wxGridSizer *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "gap", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetHGap",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetHGap(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridSizer_GetCols(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGridSizer *arg1 = (wxGridSizer *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetCols",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetCols(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridSizer_GetRows(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGridSizer *arg1 = (wxGridSizer *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetRows",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetRows(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridSizer_GetVGap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGridSizer *arg1 = (wxGridSizer *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetVGap",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetVGap(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridSizer_GetHGap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGridSizer *arg1 = (wxGridSizer *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetHGap",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetHGap(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * GridSizer_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxGridSizer, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_FlexGridSizer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 1 ; - int arg2 = (int) 0 ; - int arg3 = (int) 0 ; - int arg4 = (int) 0 ; - wxFlexGridSizer *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_FlexGridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFlexGridSizer *)new wxFlexGridSizer(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFlexGridSizer, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FlexGridSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_RecalcSizes",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RecalcSizes(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FlexGridSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_CalcMin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->CalcMin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FlexGridSizer_AddGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; - size_t arg2 ; - int arg3 = (int) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "idx",(char *) "proportion", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableRow",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AddGrowableRow(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FlexGridSizer_RemoveGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; - size_t arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "idx", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableRow",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RemoveGrowableRow(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FlexGridSizer_AddGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; - size_t arg2 ; - int arg3 = (int) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "idx",(char *) "proportion", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableCol",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AddGrowableCol(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FlexGridSizer_RemoveGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; - size_t arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "idx", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableCol",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RemoveGrowableCol(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FlexGridSizer_SetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "direction", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetFlexibleDirection",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFlexibleDirection(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FlexGridSizer_GetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetFlexibleDirection",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetFlexibleDirection(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FlexGridSizer_SetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "mode", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetNonFlexibleGrowMode",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxFlexSizerGrowMode) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetNonFlexibleGrowMode((wxFlexSizerGrowMode )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FlexGridSizer_GetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetNonFlexibleGrowMode",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetNonFlexibleGrowMode(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FlexGridSizer_GetRowHeights(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; - wxArrayInt *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetRowHeights",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetRowHeights(); - result = (wxArrayInt *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = PyList_New(0); - size_t idx; - for (idx = 0; idx < result->GetCount(); idx += 1) { - PyObject* val = PyInt_FromLong( result->Item(idx) ); - PyList_Append(resultobj, val); - Py_DECREF(val); - } - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FlexGridSizer_GetColWidths(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; - wxArrayInt *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetColWidths",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetColWidths(); - result = (wxArrayInt *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = PyList_New(0); - size_t idx; - for (idx = 0; idx < result->GetCount(); idx += 1) { - PyObject* val = PyInt_FromLong( result->Item(idx) ); - PyList_Append(resultobj, val); - Py_DECREF(val); - } - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * FlexGridSizer_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxFlexGridSizer, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_GBPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - int arg2 = (int) 0 ; - wxGBPosition *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "row",(char *) "col", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBPosition",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGBPosition *)new wxGBPosition(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBPosition, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBPosition_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGBPosition *arg1 = (wxGBPosition *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetRow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxGBPosition const *)arg1)->GetRow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBPosition_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGBPosition *arg1 = (wxGBPosition *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetCol",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxGBPosition const *)arg1)->GetCol(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBPosition_SetRow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGBPosition *arg1 = (wxGBPosition *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "row", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetRow",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetRow(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBPosition_SetCol(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGBPosition *arg1 = (wxGBPosition *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "col", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetCol",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetCol(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBPosition___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGBPosition *arg1 = (wxGBPosition *) 0 ; - wxGBPosition *arg2 = 0 ; - bool result; - wxGBPosition temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___eq__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->operator ==((wxGBPosition const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBPosition___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGBPosition *arg1 = (wxGBPosition *) 0 ; - wxGBPosition *arg2 = 0 ; - bool result; - wxGBPosition temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___ne__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->operator !=((wxGBPosition const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBPosition_Set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGBPosition *arg1 = (wxGBPosition *) 0 ; - int arg2 = (int) 0 ; - int arg3 = (int) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "row",(char *) "col", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBPosition_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxGBPosition_Set(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBPosition_Get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGBPosition *arg1 = (wxGBPosition *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_Get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxGBPosition_Get(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject * GBPosition_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxGBPosition, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_GBSpan(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 1 ; - int arg2 = (int) 1 ; - wxGBSpan *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "rowspan",(char *) "colspan", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBSpan",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGBSpan *)new wxGBSpan(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSpan, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBSpan_GetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGBSpan *arg1 = (wxGBSpan *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetRowspan",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxGBSpan const *)arg1)->GetRowspan(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBSpan_GetColspan(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGBSpan *arg1 = (wxGBSpan *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetColspan",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxGBSpan const *)arg1)->GetColspan(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBSpan_SetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGBSpan *arg1 = (wxGBSpan *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rowspan", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetRowspan",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetRowspan(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBSpan_SetColspan(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGBSpan *arg1 = (wxGBSpan *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colspan", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetColspan",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetColspan(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGBSpan *arg1 = (wxGBSpan *) 0 ; - wxGBSpan *arg2 = 0 ; - bool result; - wxGBSpan temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___eq__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->operator ==((wxGBSpan const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGBSpan *arg1 = (wxGBSpan *) 0 ; - wxGBSpan *arg2 = 0 ; - bool result; - wxGBSpan temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___ne__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->operator !=((wxGBSpan const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBSpan_Set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGBSpan *arg1 = (wxGBSpan *) 0 ; - int arg2 = (int) 1 ; - int arg3 = (int) 1 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rowspan",(char *) "colspan", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBSpan_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxGBSpan_Set(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBSpan_Get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGBSpan *arg1 = (wxGBSpan *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_Get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxGBSpan_Get(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject * GBSpan_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxGBSpan, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_DefaultSpan_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable DefaultSpan is read-only."); - return 1; -} - - -static PyObject *_wrap_DefaultSpan_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSpan), SWIGTYPE_p_wxGBSpan, 0); - return pyobj; -} - - -static PyObject *_wrap_new_GBSizerItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGBSizerItem *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GBSizerItem",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGBSizerItem *)new wxGBSizerItem(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_GBSizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxGBPosition *arg2 = 0 ; - wxGBSpan *arg3 = 0 ; - int arg4 ; - int arg5 ; - wxObject *arg6 = (wxObject *) 0 ; - wxGBSizerItem *result; - wxGBPosition temp2 ; - wxGBSpan temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "window",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_GBSizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; - } - { - arg3 = &temp3; - if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; - } - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGBSizerItem *)new wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_GBSizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - wxGBPosition *arg2 = 0 ; - wxGBSpan *arg3 = 0 ; - int arg4 ; - int arg5 ; - wxObject *arg6 = (wxObject *) 0 ; - wxGBSizerItem *result; - wxGBPosition temp2 ; - wxGBSpan temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "sizer",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_GBSizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; - } - { - arg3 = &temp3; - if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; - } - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGBSizerItem *)new wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_GBSizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - int arg2 ; - wxGBPosition *arg3 = 0 ; - wxGBSpan *arg4 = 0 ; - int arg5 ; - int arg6 ; - wxObject *arg7 = (wxObject *) 0 ; - wxGBSizerItem *result; - wxGBPosition temp3 ; - wxGBSpan temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "width",(char *) "height",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:new_GBSizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = &temp3; - if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; - } - { - arg4 = &temp4; - if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; - } - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - arg6 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGBSizerItem *)new wxGBSizerItem(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBSizerItem_GetPos(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; - wxGBPosition result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetPos",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxGBSizerItem const *)arg1)->GetPos(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxGBPosition * resultptr; - resultptr = new wxGBPosition((wxGBPosition &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBSizerItem_GetSpan(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; - wxGBSpan result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetSpan",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxGBSizerItem const *)arg1)->GetSpan(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxGBSpan * resultptr; - resultptr = new wxGBSpan((wxGBSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBSizerItem_SetPos(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; - wxGBPosition *arg2 = 0 ; - bool result; - wxGBPosition temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetPos",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetPos((wxGBPosition const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBSizerItem_SetSpan(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; - wxGBSpan *arg2 = 0 ; - bool result; - wxGBSpan temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "span", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetSpan",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetSpan((wxGBSpan const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBSizerItem_Intersects__SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; - wxGBSizerItem *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:GBSizerItem_Intersects",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Intersects((wxGBSizerItem const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBSizerItem_Intersects__SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; - wxGBPosition *arg2 = 0 ; - wxGBSpan *arg3 = 0 ; - bool result; - wxGBPosition temp2 ; - wxGBSpan temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OOO:GBSizerItem_Intersects",&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; - } - { - arg3 = &temp3; - if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Intersects((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBSizerItem_Intersects(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_GBSizerItem_Intersects__SWIG_0(self,args); - } - } - } - if (argc == 3) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - _v = wxPySimple_typecheck(argv[1], wxT("wxGBPosition"), 2); - } - if (_v) { - { - _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); - } - if (_v) { - return _wrap_GBSizerItem_Intersects__SWIG_1(self,args); - } - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GBSizerItem_Intersects'"); - return NULL; -} - - -static PyObject *_wrap_GBSizerItem_GetEndPos(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; - int *arg2 = 0 ; - int *arg3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "row",(char *) "col", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GBSizerItem_GetEndPos",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_int, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_int, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->GetEndPos(*arg2,*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBSizerItem_GetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; - wxGridBagSizer *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetGBSizer",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGridBagSizer *)((wxGBSizerItem const *)arg1)->GetGBSizer(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBSizerItem_SetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; - wxGridBagSizer *arg2 = (wxGridBagSizer *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sizer", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetGBSizer",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetGBSizer(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * GBSizerItem_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxGBSizerItem, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_GridBagSizer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - int arg2 = (int) 0 ; - wxGridBagSizer *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "vgap",(char *) "hgap", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridBagSizer",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGridBagSizer *)new wxGridBagSizer(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - wxGBPosition *arg3 = 0 ; - wxGBSpan const &arg4_defvalue = wxDefaultSpan ; - wxGBSpan *arg4 = (wxGBSpan *) &arg4_defvalue ; - int arg5 = (int) 0 ; - int arg6 = (int) 0 ; - PyObject *arg7 = (PyObject *) NULL ; - bool result; - wxGBPosition temp3 ; - wxGBSpan temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:GridBagSizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - { - arg3 = &temp3; - if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - arg6 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - arg7 = obj6; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxGridBagSizer_Add(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_AddItem",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Add(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_GetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_GetEmptyCellSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxGridBagSizer const *)arg1)->GetEmptyCellSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_SetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - wxSize *arg2 = 0 ; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_SetEmptyCellSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetEmptyCellSize((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - wxGBPosition result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetItemPosition(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxGBPosition * resultptr; - resultptr = new wxGBPosition((wxGBPosition &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - wxSizer *arg2 = (wxSizer *) 0 ; - wxGBPosition result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetItemPosition(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxGBPosition * resultptr; - resultptr = new wxGBPosition((wxGBPosition &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_2(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - size_t arg2 ; - wxGBPosition result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetItemPosition(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxGBPosition * resultptr; - resultptr = new wxGBPosition((wxGBPosition &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_GetItemPosition(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_GridBagSizer_GetItemPosition__SWIG_0(self,args); - } - } - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_GridBagSizer_GetItemPosition__SWIG_1(self,args); - } - } - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - _v = SWIG_CheckUnsignedLong(argv[1]); - if (_v) { - return _wrap_GridBagSizer_GetItemPosition__SWIG_2(self,args); - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemPosition'"); - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - wxGBPosition *arg3 = 0 ; - bool result; - wxGBPosition temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg3 = &temp3; - if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - wxSizer *arg2 = (wxSizer *) 0 ; - wxGBPosition *arg3 = 0 ; - bool result; - wxGBPosition temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg3 = &temp3; - if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_2(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - size_t arg2 ; - wxGBPosition *arg3 = 0 ; - bool result; - wxGBPosition temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = &temp3; - if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_SetItemPosition(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if (argc == 3) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); - } - if (_v) { - return _wrap_GridBagSizer_SetItemPosition__SWIG_0(self,args); - } - } - } - } - if (argc == 3) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); - } - if (_v) { - return _wrap_GridBagSizer_SetItemPosition__SWIG_1(self,args); - } - } - } - } - if (argc == 3) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - _v = SWIG_CheckUnsignedLong(argv[1]); - if (_v) { - { - _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); - } - if (_v) { - return _wrap_GridBagSizer_SetItemPosition__SWIG_2(self,args); - } - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemPosition'"); - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - wxGBSpan result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetItemSpan(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxGBSpan * resultptr; - resultptr = new wxGBSpan((wxGBSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - wxSizer *arg2 = (wxSizer *) 0 ; - wxGBSpan result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetItemSpan(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxGBSpan * resultptr; - resultptr = new wxGBSpan((wxGBSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_2(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - size_t arg2 ; - wxGBSpan result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetItemSpan(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxGBSpan * resultptr; - resultptr = new wxGBSpan((wxGBSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_GetItemSpan(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_GridBagSizer_GetItemSpan__SWIG_0(self,args); - } - } - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_GridBagSizer_GetItemSpan__SWIG_1(self,args); - } - } - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - _v = SWIG_CheckUnsignedLong(argv[1]); - if (_v) { - return _wrap_GridBagSizer_GetItemSpan__SWIG_2(self,args); - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemSpan'"); - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - wxGBSpan *arg3 = 0 ; - bool result; - wxGBSpan temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg3 = &temp3; - if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - wxSizer *arg2 = (wxSizer *) 0 ; - wxGBSpan *arg3 = 0 ; - bool result; - wxGBSpan temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg3 = &temp3; - if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_2(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - size_t arg2 ; - wxGBSpan *arg3 = 0 ; - bool result; - wxGBSpan temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = &temp3; - if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_SetItemSpan(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if (argc == 3) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); - } - if (_v) { - return _wrap_GridBagSizer_SetItemSpan__SWIG_0(self,args); - } - } - } - } - if (argc == 3) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); - } - if (_v) { - return _wrap_GridBagSizer_SetItemSpan__SWIG_1(self,args); - } - } - } - } - if (argc == 3) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - _v = SWIG_CheckUnsignedLong(argv[1]); - if (_v) { - { - _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); - } - if (_v) { - return _wrap_GridBagSizer_SetItemSpan__SWIG_2(self,args); - } - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemSpan'"); - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_FindItem__SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - wxGBSizerItem *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGBSizerItem *)(arg1)->FindItem(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_FindItem__SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - wxSizer *arg2 = (wxSizer *) 0 ; - wxGBSizerItem *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGBSizerItem *)(arg1)->FindItem(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_FindItem(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_GridBagSizer_FindItem__SWIG_0(self,args); - } - } - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_GridBagSizer_FindItem__SWIG_1(self,args); - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_FindItem'"); - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_FindItemAtPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - wxGBPosition *arg2 = 0 ; - wxGBSizerItem *result; - wxGBPosition temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPosition",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGBSizerItem *)(arg1)->FindItemAtPosition((wxGBPosition const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_FindItemAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - wxPoint *arg2 = 0 ; - wxGBSizerItem *result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPoint",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGBSizerItem *)(arg1)->FindItemAtPoint((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_FindItemWithData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - wxObject *arg2 = (wxObject *) 0 ; - wxGBSizerItem *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "userData", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemWithData",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGBSizerItem *)(arg1)->FindItemWithData((wxObject const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_RecalcSizes",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RecalcSizes(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_CalcMin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->CalcMin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_CheckForIntersection__SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; - wxGBSizerItem *arg3 = (wxGBSizerItem *) NULL ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO|O:GridBagSizer_CheckForIntersection",&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGBSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->CheckForIntersection(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_CheckForIntersection__SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - wxGBPosition *arg2 = 0 ; - wxGBSpan *arg3 = 0 ; - wxGBSizerItem *arg4 = (wxGBSizerItem *) NULL ; - bool result; - wxGBPosition temp2 ; - wxGBSpan temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OOO|O:GridBagSizer_CheckForIntersection",&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; - } - { - arg3 = &temp3; - if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; - } - if (obj3) { - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGBSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->CheckForIntersection((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_CheckForIntersection(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 4); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if ((argc >= 2) && (argc <= 3)) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - if (argc <= 2) { - return _wrap_GridBagSizer_CheckForIntersection__SWIG_0(self,args); - } - { - void *ptr; - if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_GridBagSizer_CheckForIntersection__SWIG_0(self,args); - } - } - } - } - if ((argc >= 3) && (argc <= 4)) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - _v = wxPySimple_typecheck(argv[1], wxT("wxGBPosition"), 2); - } - if (_v) { - { - _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); - } - if (_v) { - if (argc <= 3) { - return _wrap_GridBagSizer_CheckForIntersection__SWIG_1(self,args); - } - { - void *ptr; - if (SWIG_ConvertPtr(argv[3], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_GridBagSizer_CheckForIntersection__SWIG_1(self,args); - } - } - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_CheckForIntersection'"); - return NULL; -} - - -static PyObject * GridBagSizer_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxGridBagSizer, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_IndividualLayoutConstraint_Set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - int arg2 ; - wxWindow *arg3 = (wxWindow *) 0 ; - int arg4 ; - int arg5 = (int) 0 ; - int arg6 = (int) wxLAYOUT_DEFAULT_MARGIN ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rel",(char *) "otherW",(char *) "otherE",(char *) "val",(char *) "marg", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:IndividualLayoutConstraint_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxRelationship) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg4 = (wxEdge) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - arg6 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Set((wxRelationship )arg2,arg3,(wxEdge )arg4,arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_LeftOf(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 = (int) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sibling",(char *) "marg", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_LeftOf",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->LeftOf(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_RightOf(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 = (int) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sibling",(char *) "marg", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_RightOf",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RightOf(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_Above(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 = (int) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sibling",(char *) "marg", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Above",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Above(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_Below(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 = (int) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sibling",(char *) "marg", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Below",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Below(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_SameAs(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - int arg4 = (int) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "otherW",(char *) "edge",(char *) "marg", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:IndividualLayoutConstraint_SameAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (wxEdge) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SameAs(arg2,(wxEdge )arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_PercentOf(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - int arg4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "otherW",(char *) "wh",(char *) "per", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_PercentOf",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (wxEdge) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->PercentOf(arg2,(wxEdge )arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_Absolute(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "val", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_Absolute",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Absolute(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_Unconstrained(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_Unconstrained",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Unconstrained(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_AsIs(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_AsIs",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AsIs(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_GetOtherWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)(arg1)->GetOtherWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_GetMyEdge(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMyEdge",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetMyEdge(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_SetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "which", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetEdge",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxEdge) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetEdge((wxEdge )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "v", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetValue",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetValue(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_GetMargin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMargin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetMargin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_SetMargin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetMargin",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMargin(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetValue",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetValue(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_GetPercent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetPercent",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetPercent(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_GetOtherEdge(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherEdge",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetOtherEdge(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_GetDone(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetDone",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxIndividualLayoutConstraint const *)arg1)->GetDone(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_SetDone(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "d", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetDone",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDone(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_GetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetRelationship",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetRelationship(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_SetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "r", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetRelationship",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxRelationship) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetRelationship((wxRelationship )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_ResetIfWin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "otherW", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_ResetIfWin",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->ResetIfWin(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_SatisfyConstraint(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; - wxWindow *arg3 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "constraints",(char *) "win", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IndividualLayoutConstraint_SatisfyConstraint",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SatisfyConstraint(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_GetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - int arg2 ; - wxWindow *arg3 = (wxWindow *) 0 ; - wxWindow *arg4 = (wxWindow *) 0 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "which",(char *) "thisWin",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_GetEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxEdge) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetEdge((wxEdge )arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * IndividualLayoutConstraint_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxIndividualLayoutConstraint, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_LayoutConstraints_left_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; - wxIndividualLayoutConstraint *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_left_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (wxIndividualLayoutConstraint *)& ((arg1)->left); - - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_LayoutConstraints_top_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; - wxIndividualLayoutConstraint *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_top_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (wxIndividualLayoutConstraint *)& ((arg1)->top); - - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_LayoutConstraints_right_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; - wxIndividualLayoutConstraint *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_right_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (wxIndividualLayoutConstraint *)& ((arg1)->right); - - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_LayoutConstraints_bottom_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; - wxIndividualLayoutConstraint *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_bottom_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (wxIndividualLayoutConstraint *)& ((arg1)->bottom); - - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_LayoutConstraints_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; - wxIndividualLayoutConstraint *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_width_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (wxIndividualLayoutConstraint *)& ((arg1)->width); - - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_LayoutConstraints_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; - wxIndividualLayoutConstraint *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_height_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (wxIndividualLayoutConstraint *)& ((arg1)->height); - - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_LayoutConstraints_centreX_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; - wxIndividualLayoutConstraint *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreX_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (wxIndividualLayoutConstraint *)& ((arg1)->centreX); - - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_LayoutConstraints_centreY_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; - wxIndividualLayoutConstraint *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreY_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (wxIndividualLayoutConstraint *)& ((arg1)->centreY); - - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_LayoutConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLayoutConstraints *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutConstraints",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxLayoutConstraints *)new wxLayoutConstraints(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_LayoutConstraints_SatisfyConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int *arg3 = (int *) 0 ; - bool result; - int temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "win", NULL - }; - - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LayoutConstraints_SatisfyConstraints",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SatisfyConstraints(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_LayoutConstraints_AreSatisfied(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_AreSatisfied",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxLayoutConstraints const *)arg1)->AreSatisfied(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * LayoutConstraints_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxLayoutConstraints, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyMethodDef SwigMethods[] = { - { (char *)"_wxPySetDictionary", __wxPySetDictionary, METH_VARARGS }, - { (char *)"_wxPyFixStockObjects", __wxPyFixStockObjects, METH_VARARGS }, - { (char *)"Object_GetClassName", (PyCFunction) _wrap_Object_GetClassName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Object_Destroy", (PyCFunction) _wrap_Object_Destroy, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Object_swigregister", Object_swigregister, METH_VARARGS }, - { (char *)"Size_width_set", (PyCFunction) _wrap_Size_width_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Size_width_get", (PyCFunction) _wrap_Size_width_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Size_height_set", (PyCFunction) _wrap_Size_height_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Size_height_get", (PyCFunction) _wrap_Size_height_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_Size", (PyCFunction) _wrap_new_Size, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_Size", (PyCFunction) _wrap_delete_Size, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Size___eq__", (PyCFunction) _wrap_Size___eq__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Size___ne__", (PyCFunction) _wrap_Size___ne__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Size___add__", (PyCFunction) _wrap_Size___add__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Size___sub__", (PyCFunction) _wrap_Size___sub__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Size_IncTo", (PyCFunction) _wrap_Size_IncTo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Size_DecTo", (PyCFunction) _wrap_Size_DecTo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Size_Set", (PyCFunction) _wrap_Size_Set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Size_SetWidth", (PyCFunction) _wrap_Size_SetWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Size_SetHeight", (PyCFunction) _wrap_Size_SetHeight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Size_GetWidth", (PyCFunction) _wrap_Size_GetWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Size_GetHeight", (PyCFunction) _wrap_Size_GetHeight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Size_IsFullySpecified", (PyCFunction) _wrap_Size_IsFullySpecified, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Size_SetDefaults", (PyCFunction) _wrap_Size_SetDefaults, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Size_Get", (PyCFunction) _wrap_Size_Get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Size_swigregister", Size_swigregister, METH_VARARGS }, - { (char *)"RealPoint_x_set", (PyCFunction) _wrap_RealPoint_x_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RealPoint_x_get", (PyCFunction) _wrap_RealPoint_x_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RealPoint_y_set", (PyCFunction) _wrap_RealPoint_y_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RealPoint_y_get", (PyCFunction) _wrap_RealPoint_y_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_RealPoint", (PyCFunction) _wrap_new_RealPoint, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_RealPoint", (PyCFunction) _wrap_delete_RealPoint, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RealPoint___eq__", (PyCFunction) _wrap_RealPoint___eq__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RealPoint___ne__", (PyCFunction) _wrap_RealPoint___ne__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RealPoint___add__", (PyCFunction) _wrap_RealPoint___add__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RealPoint___sub__", (PyCFunction) _wrap_RealPoint___sub__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RealPoint_Set", (PyCFunction) _wrap_RealPoint_Set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RealPoint_Get", (PyCFunction) _wrap_RealPoint_Get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RealPoint_swigregister", RealPoint_swigregister, METH_VARARGS }, - { (char *)"Point_x_set", (PyCFunction) _wrap_Point_x_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point_x_get", (PyCFunction) _wrap_Point_x_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point_y_set", (PyCFunction) _wrap_Point_y_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point_y_get", (PyCFunction) _wrap_Point_y_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_Point", (PyCFunction) _wrap_new_Point, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_Point", (PyCFunction) _wrap_delete_Point, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point___eq__", (PyCFunction) _wrap_Point___eq__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point___ne__", (PyCFunction) _wrap_Point___ne__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point___add__", (PyCFunction) _wrap_Point___add__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point___sub__", (PyCFunction) _wrap_Point___sub__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point___iadd__", (PyCFunction) _wrap_Point___iadd__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point___isub__", (PyCFunction) _wrap_Point___isub__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point_Set", (PyCFunction) _wrap_Point_Set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point_Get", (PyCFunction) _wrap_Point_Get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS }, - { (char *)"new_Rect", (PyCFunction) _wrap_new_Rect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_RectPP", (PyCFunction) _wrap_new_RectPP, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_RectPS", (PyCFunction) _wrap_new_RectPS, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_Rect", (PyCFunction) _wrap_delete_Rect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_GetX", (PyCFunction) _wrap_Rect_GetX, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_SetX", (PyCFunction) _wrap_Rect_SetX, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_GetY", (PyCFunction) _wrap_Rect_GetY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_SetY", (PyCFunction) _wrap_Rect_SetY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_GetWidth", (PyCFunction) _wrap_Rect_GetWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_SetWidth", (PyCFunction) _wrap_Rect_SetWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_GetHeight", (PyCFunction) _wrap_Rect_GetHeight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_SetHeight", (PyCFunction) _wrap_Rect_SetHeight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_GetPosition", (PyCFunction) _wrap_Rect_GetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_SetPosition", (PyCFunction) _wrap_Rect_SetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_GetSize", (PyCFunction) _wrap_Rect_GetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_SetSize", (PyCFunction) _wrap_Rect_SetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_GetTopLeft", (PyCFunction) _wrap_Rect_GetTopLeft, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_SetTopLeft", (PyCFunction) _wrap_Rect_SetTopLeft, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_GetBottomRight", (PyCFunction) _wrap_Rect_GetBottomRight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_SetBottomRight", (PyCFunction) _wrap_Rect_SetBottomRight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_GetLeft", (PyCFunction) _wrap_Rect_GetLeft, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_GetTop", (PyCFunction) _wrap_Rect_GetTop, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_GetBottom", (PyCFunction) _wrap_Rect_GetBottom, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_GetRight", (PyCFunction) _wrap_Rect_GetRight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_SetLeft", (PyCFunction) _wrap_Rect_SetLeft, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_SetRight", (PyCFunction) _wrap_Rect_SetRight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_SetTop", (PyCFunction) _wrap_Rect_SetTop, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_SetBottom", (PyCFunction) _wrap_Rect_SetBottom, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_Inflate", (PyCFunction) _wrap_Rect_Inflate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_Deflate", (PyCFunction) _wrap_Rect_Deflate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_OffsetXY", (PyCFunction) _wrap_Rect_OffsetXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_Offset", (PyCFunction) _wrap_Rect_Offset, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_Intersect", (PyCFunction) _wrap_Rect_Intersect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect___add__", (PyCFunction) _wrap_Rect___add__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect___iadd__", (PyCFunction) _wrap_Rect___iadd__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect___eq__", (PyCFunction) _wrap_Rect___eq__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect___ne__", (PyCFunction) _wrap_Rect___ne__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_InsideXY", (PyCFunction) _wrap_Rect_InsideXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_Inside", (PyCFunction) _wrap_Rect_Inside, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_Intersects", (PyCFunction) _wrap_Rect_Intersects, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_x_set", (PyCFunction) _wrap_Rect_x_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_x_get", (PyCFunction) _wrap_Rect_x_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_y_set", (PyCFunction) _wrap_Rect_y_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_y_get", (PyCFunction) _wrap_Rect_y_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_width_set", (PyCFunction) _wrap_Rect_width_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_width_get", (PyCFunction) _wrap_Rect_width_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_height_set", (PyCFunction) _wrap_Rect_height_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_height_get", (PyCFunction) _wrap_Rect_height_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_Set", (PyCFunction) _wrap_Rect_Set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_Get", (PyCFunction) _wrap_Rect_Get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS }, - { (char *)"IntersectRect", (PyCFunction) _wrap_IntersectRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_Point2D", (PyCFunction) _wrap_new_Point2D, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_Point2DCopy", (PyCFunction) _wrap_new_Point2DCopy, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_Point2DFromPoint", (PyCFunction) _wrap_new_Point2DFromPoint, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point2D_GetFloor", (PyCFunction) _wrap_Point2D_GetFloor, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point2D_GetRounded", (PyCFunction) _wrap_Point2D_GetRounded, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point2D_GetVectorLength", (PyCFunction) _wrap_Point2D_GetVectorLength, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point2D_GetVectorAngle", (PyCFunction) _wrap_Point2D_GetVectorAngle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point2D_SetVectorLength", (PyCFunction) _wrap_Point2D_SetVectorLength, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point2D_SetVectorAngle", (PyCFunction) _wrap_Point2D_SetVectorAngle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point2D_GetDistance", (PyCFunction) _wrap_Point2D_GetDistance, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point2D_GetDistanceSquare", (PyCFunction) _wrap_Point2D_GetDistanceSquare, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point2D_GetDotProduct", (PyCFunction) _wrap_Point2D_GetDotProduct, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point2D_GetCrossProduct", (PyCFunction) _wrap_Point2D_GetCrossProduct, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point2D___neg__", (PyCFunction) _wrap_Point2D___neg__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point2D___iadd__", (PyCFunction) _wrap_Point2D___iadd__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point2D___isub__", (PyCFunction) _wrap_Point2D___isub__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point2D___imul__", (PyCFunction) _wrap_Point2D___imul__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point2D___idiv__", (PyCFunction) _wrap_Point2D___idiv__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point2D___eq__", (PyCFunction) _wrap_Point2D___eq__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point2D___ne__", (PyCFunction) _wrap_Point2D___ne__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point2D_x_set", (PyCFunction) _wrap_Point2D_x_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point2D_x_get", (PyCFunction) _wrap_Point2D_x_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point2D_y_set", (PyCFunction) _wrap_Point2D_y_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point2D_y_get", (PyCFunction) _wrap_Point2D_y_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point2D_Set", (PyCFunction) _wrap_Point2D_Set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point2D_Get", (PyCFunction) _wrap_Point2D_Get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point2D_swigregister", Point2D_swigregister, METH_VARARGS }, - { (char *)"new_InputStream", (PyCFunction) _wrap_new_InputStream, METH_VARARGS | METH_KEYWORDS }, - { (char *)"InputStream_close", (PyCFunction) _wrap_InputStream_close, METH_VARARGS | METH_KEYWORDS }, - { (char *)"InputStream_flush", (PyCFunction) _wrap_InputStream_flush, METH_VARARGS | METH_KEYWORDS }, - { (char *)"InputStream_eof", (PyCFunction) _wrap_InputStream_eof, METH_VARARGS | METH_KEYWORDS }, - { (char *)"InputStream_read", (PyCFunction) _wrap_InputStream_read, METH_VARARGS | METH_KEYWORDS }, - { (char *)"InputStream_readline", (PyCFunction) _wrap_InputStream_readline, METH_VARARGS | METH_KEYWORDS }, - { (char *)"InputStream_readlines", (PyCFunction) _wrap_InputStream_readlines, METH_VARARGS | METH_KEYWORDS }, - { (char *)"InputStream_seek", (PyCFunction) _wrap_InputStream_seek, METH_VARARGS | METH_KEYWORDS }, - { (char *)"InputStream_tell", (PyCFunction) _wrap_InputStream_tell, METH_VARARGS | METH_KEYWORDS }, - { (char *)"InputStream_Peek", (PyCFunction) _wrap_InputStream_Peek, METH_VARARGS | METH_KEYWORDS }, - { (char *)"InputStream_GetC", (PyCFunction) _wrap_InputStream_GetC, METH_VARARGS | METH_KEYWORDS }, - { (char *)"InputStream_LastRead", (PyCFunction) _wrap_InputStream_LastRead, METH_VARARGS | METH_KEYWORDS }, - { (char *)"InputStream_CanRead", (PyCFunction) _wrap_InputStream_CanRead, METH_VARARGS | METH_KEYWORDS }, - { (char *)"InputStream_Eof", (PyCFunction) _wrap_InputStream_Eof, METH_VARARGS | METH_KEYWORDS }, - { (char *)"InputStream_Ungetch", (PyCFunction) _wrap_InputStream_Ungetch, METH_VARARGS | METH_KEYWORDS }, - { (char *)"InputStream_SeekI", (PyCFunction) _wrap_InputStream_SeekI, METH_VARARGS | METH_KEYWORDS }, - { (char *)"InputStream_TellI", (PyCFunction) _wrap_InputStream_TellI, METH_VARARGS | METH_KEYWORDS }, - { (char *)"InputStream_swigregister", InputStream_swigregister, METH_VARARGS }, - { (char *)"OutputStream_write", (PyCFunction) _wrap_OutputStream_write, METH_VARARGS | METH_KEYWORDS }, - { (char *)"OutputStream_swigregister", OutputStream_swigregister, METH_VARARGS }, - { (char *)"new_FSFile", (PyCFunction) _wrap_new_FSFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_FSFile", (PyCFunction) _wrap_delete_FSFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FSFile_GetStream", (PyCFunction) _wrap_FSFile_GetStream, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FSFile_GetMimeType", (PyCFunction) _wrap_FSFile_GetMimeType, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FSFile_GetLocation", (PyCFunction) _wrap_FSFile_GetLocation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FSFile_GetAnchor", (PyCFunction) _wrap_FSFile_GetAnchor, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FSFile_GetModificationTime", (PyCFunction) _wrap_FSFile_GetModificationTime, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FSFile_swigregister", FSFile_swigregister, METH_VARARGS }, - { (char *)"CPPFileSystemHandler_swigregister", CPPFileSystemHandler_swigregister, METH_VARARGS }, - { (char *)"new_FileSystemHandler", (PyCFunction) _wrap_new_FileSystemHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileSystemHandler__setCallbackInfo", (PyCFunction) _wrap_FileSystemHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileSystemHandler_CanOpen", (PyCFunction) _wrap_FileSystemHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileSystemHandler_OpenFile", (PyCFunction) _wrap_FileSystemHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileSystemHandler_FindFirst", (PyCFunction) _wrap_FileSystemHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileSystemHandler_FindNext", (PyCFunction) _wrap_FileSystemHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileSystemHandler_GetProtocol", (PyCFunction) _wrap_FileSystemHandler_GetProtocol, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileSystemHandler_GetLeftLocation", (PyCFunction) _wrap_FileSystemHandler_GetLeftLocation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileSystemHandler_GetAnchor", (PyCFunction) _wrap_FileSystemHandler_GetAnchor, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileSystemHandler_GetRightLocation", (PyCFunction) _wrap_FileSystemHandler_GetRightLocation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileSystemHandler_GetMimeTypeFromExt", (PyCFunction) _wrap_FileSystemHandler_GetMimeTypeFromExt, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileSystemHandler_swigregister", FileSystemHandler_swigregister, METH_VARARGS }, - { (char *)"new_FileSystem", (PyCFunction) _wrap_new_FileSystem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_FileSystem", (PyCFunction) _wrap_delete_FileSystem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileSystem_ChangePathTo", (PyCFunction) _wrap_FileSystem_ChangePathTo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileSystem_GetPath", (PyCFunction) _wrap_FileSystem_GetPath, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileSystem_OpenFile", (PyCFunction) _wrap_FileSystem_OpenFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileSystem_FindFirst", (PyCFunction) _wrap_FileSystem_FindFirst, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileSystem_FindNext", (PyCFunction) _wrap_FileSystem_FindNext, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileSystem_AddHandler", (PyCFunction) _wrap_FileSystem_AddHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileSystem_CleanUpHandlers", (PyCFunction) _wrap_FileSystem_CleanUpHandlers, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileSystem_FileNameToURL", (PyCFunction) _wrap_FileSystem_FileNameToURL, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileSystem_swigregister", FileSystem_swigregister, METH_VARARGS }, - { (char *)"FileSystem_URLToFileName", (PyCFunction) _wrap_FileSystem_URLToFileName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_InternetFSHandler", (PyCFunction) _wrap_new_InternetFSHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"InternetFSHandler_CanOpen", (PyCFunction) _wrap_InternetFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, - { (char *)"InternetFSHandler_OpenFile", (PyCFunction) _wrap_InternetFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"InternetFSHandler_swigregister", InternetFSHandler_swigregister, METH_VARARGS }, - { (char *)"new_ZipFSHandler", (PyCFunction) _wrap_new_ZipFSHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ZipFSHandler_CanOpen", (PyCFunction) _wrap_ZipFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ZipFSHandler_OpenFile", (PyCFunction) _wrap_ZipFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ZipFSHandler_FindFirst", (PyCFunction) _wrap_ZipFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ZipFSHandler_FindNext", (PyCFunction) _wrap_ZipFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ZipFSHandler_swigregister", ZipFSHandler_swigregister, METH_VARARGS }, - { (char *)"__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxImage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"__wxMemoryFSHandler_AddFile_Data", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_Data, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_MemoryFSHandler", (PyCFunction) _wrap_new_MemoryFSHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MemoryFSHandler_RemoveFile", (PyCFunction) _wrap_MemoryFSHandler_RemoveFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MemoryFSHandler_CanOpen", (PyCFunction) _wrap_MemoryFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MemoryFSHandler_OpenFile", (PyCFunction) _wrap_MemoryFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MemoryFSHandler_FindFirst", (PyCFunction) _wrap_MemoryFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MemoryFSHandler_FindNext", (PyCFunction) _wrap_MemoryFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MemoryFSHandler_swigregister", MemoryFSHandler_swigregister, METH_VARARGS }, - { (char *)"ImageHandler_GetName", (PyCFunction) _wrap_ImageHandler_GetName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ImageHandler_GetExtension", (PyCFunction) _wrap_ImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ImageHandler_GetType", (PyCFunction) _wrap_ImageHandler_GetType, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ImageHandler_GetMimeType", (PyCFunction) _wrap_ImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ImageHandler_CanRead", (PyCFunction) _wrap_ImageHandler_CanRead, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ImageHandler_SetName", (PyCFunction) _wrap_ImageHandler_SetName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ImageHandler_SetExtension", (PyCFunction) _wrap_ImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ImageHandler_SetType", (PyCFunction) _wrap_ImageHandler_SetType, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ImageHandler_SetMimeType", (PyCFunction) _wrap_ImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ImageHandler_swigregister", ImageHandler_swigregister, METH_VARARGS }, - { (char *)"new_ImageHistogram", (PyCFunction) _wrap_new_ImageHistogram, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ImageHistogram_MakeKey", (PyCFunction) _wrap_ImageHistogram_MakeKey, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ImageHistogram_FindFirstUnusedColour", (PyCFunction) _wrap_ImageHistogram_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ImageHistogram_swigregister", ImageHistogram_swigregister, METH_VARARGS }, - { (char *)"new_Image", (PyCFunction) _wrap_new_Image, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_Image", (PyCFunction) _wrap_delete_Image, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_ImageFromMime", (PyCFunction) _wrap_new_ImageFromMime, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_ImageFromStream", (PyCFunction) _wrap_new_ImageFromStream, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_ImageFromStreamMime", (PyCFunction) _wrap_new_ImageFromStreamMime, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_EmptyImage", _wrap_new_EmptyImage, METH_VARARGS }, - { (char *)"new_ImageFromBitmap", (PyCFunction) _wrap_new_ImageFromBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_ImageFromData", (PyCFunction) _wrap_new_ImageFromData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_Create", (PyCFunction) _wrap_Image_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_Destroy", (PyCFunction) _wrap_Image_Destroy, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_Scale", (PyCFunction) _wrap_Image_Scale, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_ShrinkBy", (PyCFunction) _wrap_Image_ShrinkBy, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_Rescale", (PyCFunction) _wrap_Image_Rescale, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_SetRGB", (PyCFunction) _wrap_Image_SetRGB, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_GetRed", (PyCFunction) _wrap_Image_GetRed, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_GetGreen", (PyCFunction) _wrap_Image_GetGreen, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_GetBlue", (PyCFunction) _wrap_Image_GetBlue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_SetAlpha", (PyCFunction) _wrap_Image_SetAlpha, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_GetAlpha", (PyCFunction) _wrap_Image_GetAlpha, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_HasAlpha", (PyCFunction) _wrap_Image_HasAlpha, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_FindFirstUnusedColour", (PyCFunction) _wrap_Image_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_SetMaskFromImage", (PyCFunction) _wrap_Image_SetMaskFromImage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_CanRead", (PyCFunction) _wrap_Image_CanRead, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_GetImageCount", (PyCFunction) _wrap_Image_GetImageCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_LoadFile", (PyCFunction) _wrap_Image_LoadFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_LoadMimeFile", (PyCFunction) _wrap_Image_LoadMimeFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_SaveFile", (PyCFunction) _wrap_Image_SaveFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_SaveMimeFile", (PyCFunction) _wrap_Image_SaveMimeFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_CanReadStream", (PyCFunction) _wrap_Image_CanReadStream, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_LoadStream", (PyCFunction) _wrap_Image_LoadStream, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_LoadMimeStream", (PyCFunction) _wrap_Image_LoadMimeStream, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_Ok", (PyCFunction) _wrap_Image_Ok, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_GetWidth", (PyCFunction) _wrap_Image_GetWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_GetHeight", (PyCFunction) _wrap_Image_GetHeight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_GetSize", (PyCFunction) _wrap_Image_GetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_GetSubImage", (PyCFunction) _wrap_Image_GetSubImage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_Copy", (PyCFunction) _wrap_Image_Copy, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_Paste", (PyCFunction) _wrap_Image_Paste, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_GetData", (PyCFunction) _wrap_Image_GetData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_SetData", (PyCFunction) _wrap_Image_SetData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_GetDataBuffer", (PyCFunction) _wrap_Image_GetDataBuffer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_SetDataBuffer", (PyCFunction) _wrap_Image_SetDataBuffer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_GetAlphaData", (PyCFunction) _wrap_Image_GetAlphaData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_SetAlphaData", (PyCFunction) _wrap_Image_SetAlphaData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_GetAlphaBuffer", (PyCFunction) _wrap_Image_GetAlphaBuffer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_SetAlphaBuffer", (PyCFunction) _wrap_Image_SetAlphaBuffer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_SetMaskColour", (PyCFunction) _wrap_Image_SetMaskColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_GetMaskRed", (PyCFunction) _wrap_Image_GetMaskRed, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_GetMaskGreen", (PyCFunction) _wrap_Image_GetMaskGreen, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_GetMaskBlue", (PyCFunction) _wrap_Image_GetMaskBlue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_SetMask", (PyCFunction) _wrap_Image_SetMask, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_HasMask", (PyCFunction) _wrap_Image_HasMask, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_Rotate", (PyCFunction) _wrap_Image_Rotate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_Rotate90", (PyCFunction) _wrap_Image_Rotate90, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_Mirror", (PyCFunction) _wrap_Image_Mirror, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_Replace", (PyCFunction) _wrap_Image_Replace, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_ConvertToMono", (PyCFunction) _wrap_Image_ConvertToMono, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_SetOption", (PyCFunction) _wrap_Image_SetOption, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_SetOptionInt", (PyCFunction) _wrap_Image_SetOptionInt, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_GetOption", (PyCFunction) _wrap_Image_GetOption, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_GetOptionInt", (PyCFunction) _wrap_Image_GetOptionInt, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_HasOption", (PyCFunction) _wrap_Image_HasOption, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_CountColours", (PyCFunction) _wrap_Image_CountColours, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_ComputeHistogram", (PyCFunction) _wrap_Image_ComputeHistogram, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_AddHandler", (PyCFunction) _wrap_Image_AddHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_InsertHandler", (PyCFunction) _wrap_Image_InsertHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_RemoveHandler", (PyCFunction) _wrap_Image_RemoveHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_GetImageExtWildcard", (PyCFunction) _wrap_Image_GetImageExtWildcard, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_ConvertToBitmap", (PyCFunction) _wrap_Image_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_ConvertToMonoBitmap", (PyCFunction) _wrap_Image_ConvertToMonoBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_swigregister", Image_swigregister, METH_VARARGS }, - { (char *)"InitAllImageHandlers", (PyCFunction) _wrap_InitAllImageHandlers, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_BMPHandler", (PyCFunction) _wrap_new_BMPHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BMPHandler_swigregister", BMPHandler_swigregister, METH_VARARGS }, - { (char *)"new_ICOHandler", (PyCFunction) _wrap_new_ICOHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ICOHandler_swigregister", ICOHandler_swigregister, METH_VARARGS }, - { (char *)"new_CURHandler", (PyCFunction) _wrap_new_CURHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CURHandler_swigregister", CURHandler_swigregister, METH_VARARGS }, - { (char *)"new_ANIHandler", (PyCFunction) _wrap_new_ANIHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ANIHandler_swigregister", ANIHandler_swigregister, METH_VARARGS }, - { (char *)"new_PNGHandler", (PyCFunction) _wrap_new_PNGHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PNGHandler_swigregister", PNGHandler_swigregister, METH_VARARGS }, - { (char *)"new_GIFHandler", (PyCFunction) _wrap_new_GIFHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GIFHandler_swigregister", GIFHandler_swigregister, METH_VARARGS }, - { (char *)"new_PCXHandler", (PyCFunction) _wrap_new_PCXHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PCXHandler_swigregister", PCXHandler_swigregister, METH_VARARGS }, - { (char *)"new_JPEGHandler", (PyCFunction) _wrap_new_JPEGHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JPEGHandler_swigregister", JPEGHandler_swigregister, METH_VARARGS }, - { (char *)"new_PNMHandler", (PyCFunction) _wrap_new_PNMHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PNMHandler_swigregister", PNMHandler_swigregister, METH_VARARGS }, - { (char *)"new_XPMHandler", (PyCFunction) _wrap_new_XPMHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"XPMHandler_swigregister", XPMHandler_swigregister, METH_VARARGS }, - { (char *)"new_TIFFHandler", (PyCFunction) _wrap_new_TIFFHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TIFFHandler_swigregister", TIFFHandler_swigregister, METH_VARARGS }, - { (char *)"new_EvtHandler", (PyCFunction) _wrap_new_EvtHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"EvtHandler_GetNextHandler", (PyCFunction) _wrap_EvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"EvtHandler_GetPreviousHandler", (PyCFunction) _wrap_EvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"EvtHandler_SetNextHandler", (PyCFunction) _wrap_EvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"EvtHandler_SetPreviousHandler", (PyCFunction) _wrap_EvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"EvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, - { (char *)"EvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, - { (char *)"EvtHandler_ProcessEvent", (PyCFunction) _wrap_EvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"EvtHandler_AddPendingEvent", (PyCFunction) _wrap_EvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"EvtHandler_ProcessPendingEvents", (PyCFunction) _wrap_EvtHandler_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS }, - { (char *)"EvtHandler_Connect", (PyCFunction) _wrap_EvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"EvtHandler_Disconnect", (PyCFunction) _wrap_EvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"EvtHandler__setOORInfo", (PyCFunction) _wrap_EvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"EvtHandler_swigregister", EvtHandler_swigregister, METH_VARARGS }, - { (char *)"NewEventType", (PyCFunction) _wrap_NewEventType, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_Event", (PyCFunction) _wrap_delete_Event, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Event_SetEventType", (PyCFunction) _wrap_Event_SetEventType, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Event_GetEventType", (PyCFunction) _wrap_Event_GetEventType, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Event_GetEventObject", (PyCFunction) _wrap_Event_GetEventObject, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Event_SetEventObject", (PyCFunction) _wrap_Event_SetEventObject, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Event_GetTimestamp", (PyCFunction) _wrap_Event_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Event_SetTimestamp", (PyCFunction) _wrap_Event_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Event_GetId", (PyCFunction) _wrap_Event_GetId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Event_SetId", (PyCFunction) _wrap_Event_SetId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Event_IsCommandEvent", (PyCFunction) _wrap_Event_IsCommandEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Event_Skip", (PyCFunction) _wrap_Event_Skip, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Event_GetSkipped", (PyCFunction) _wrap_Event_GetSkipped, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Event_ShouldPropagate", (PyCFunction) _wrap_Event_ShouldPropagate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Event_StopPropagation", (PyCFunction) _wrap_Event_StopPropagation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Event_ResumePropagation", (PyCFunction) _wrap_Event_ResumePropagation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Event_Clone", (PyCFunction) _wrap_Event_Clone, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Event_swigregister", Event_swigregister, METH_VARARGS }, - { (char *)"new_PropagationDisabler", (PyCFunction) _wrap_new_PropagationDisabler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_PropagationDisabler", (PyCFunction) _wrap_delete_PropagationDisabler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PropagationDisabler_swigregister", PropagationDisabler_swigregister, METH_VARARGS }, - { (char *)"new_PropagateOnce", (PyCFunction) _wrap_new_PropagateOnce, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_PropagateOnce", (PyCFunction) _wrap_delete_PropagateOnce, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PropagateOnce_swigregister", PropagateOnce_swigregister, METH_VARARGS }, - { (char *)"new_CommandEvent", (PyCFunction) _wrap_new_CommandEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CommandEvent_GetSelection", (PyCFunction) _wrap_CommandEvent_GetSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CommandEvent_SetString", (PyCFunction) _wrap_CommandEvent_SetString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CommandEvent_GetString", (PyCFunction) _wrap_CommandEvent_GetString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CommandEvent_IsChecked", (PyCFunction) _wrap_CommandEvent_IsChecked, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CommandEvent_IsSelection", (PyCFunction) _wrap_CommandEvent_IsSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CommandEvent_SetExtraLong", (PyCFunction) _wrap_CommandEvent_SetExtraLong, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CommandEvent_GetExtraLong", (PyCFunction) _wrap_CommandEvent_GetExtraLong, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CommandEvent_SetInt", (PyCFunction) _wrap_CommandEvent_SetInt, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CommandEvent_GetInt", (PyCFunction) _wrap_CommandEvent_GetInt, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CommandEvent_Clone", (PyCFunction) _wrap_CommandEvent_Clone, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CommandEvent_swigregister", CommandEvent_swigregister, METH_VARARGS }, - { (char *)"new_NotifyEvent", (PyCFunction) _wrap_new_NotifyEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NotifyEvent_Veto", (PyCFunction) _wrap_NotifyEvent_Veto, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NotifyEvent_Allow", (PyCFunction) _wrap_NotifyEvent_Allow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NotifyEvent_IsAllowed", (PyCFunction) _wrap_NotifyEvent_IsAllowed, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NotifyEvent_swigregister", NotifyEvent_swigregister, METH_VARARGS }, - { (char *)"new_ScrollEvent", (PyCFunction) _wrap_new_ScrollEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrollEvent_GetOrientation", (PyCFunction) _wrap_ScrollEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrollEvent_GetPosition", (PyCFunction) _wrap_ScrollEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrollEvent_SetOrientation", (PyCFunction) _wrap_ScrollEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrollEvent_SetPosition", (PyCFunction) _wrap_ScrollEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrollEvent_swigregister", ScrollEvent_swigregister, METH_VARARGS }, - { (char *)"new_ScrollWinEvent", (PyCFunction) _wrap_new_ScrollWinEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrollWinEvent_GetOrientation", (PyCFunction) _wrap_ScrollWinEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrollWinEvent_GetPosition", (PyCFunction) _wrap_ScrollWinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrollWinEvent_SetOrientation", (PyCFunction) _wrap_ScrollWinEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrollWinEvent_SetPosition", (PyCFunction) _wrap_ScrollWinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrollWinEvent_swigregister", ScrollWinEvent_swigregister, METH_VARARGS }, - { (char *)"new_MouseEvent", (PyCFunction) _wrap_new_MouseEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_IsButton", (PyCFunction) _wrap_MouseEvent_IsButton, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_ButtonDown", (PyCFunction) _wrap_MouseEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_ButtonDClick", (PyCFunction) _wrap_MouseEvent_ButtonDClick, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_ButtonUp", (PyCFunction) _wrap_MouseEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_Button", (PyCFunction) _wrap_MouseEvent_Button, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_ButtonIsDown", (PyCFunction) _wrap_MouseEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_GetButton", (PyCFunction) _wrap_MouseEvent_GetButton, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_ControlDown", (PyCFunction) _wrap_MouseEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_MetaDown", (PyCFunction) _wrap_MouseEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_AltDown", (PyCFunction) _wrap_MouseEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_ShiftDown", (PyCFunction) _wrap_MouseEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_LeftDown", (PyCFunction) _wrap_MouseEvent_LeftDown, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_MiddleDown", (PyCFunction) _wrap_MouseEvent_MiddleDown, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_RightDown", (PyCFunction) _wrap_MouseEvent_RightDown, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_LeftUp", (PyCFunction) _wrap_MouseEvent_LeftUp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_MiddleUp", (PyCFunction) _wrap_MouseEvent_MiddleUp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_RightUp", (PyCFunction) _wrap_MouseEvent_RightUp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_LeftDClick", (PyCFunction) _wrap_MouseEvent_LeftDClick, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_MiddleDClick", (PyCFunction) _wrap_MouseEvent_MiddleDClick, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_RightDClick", (PyCFunction) _wrap_MouseEvent_RightDClick, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_LeftIsDown", (PyCFunction) _wrap_MouseEvent_LeftIsDown, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_MiddleIsDown", (PyCFunction) _wrap_MouseEvent_MiddleIsDown, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_RightIsDown", (PyCFunction) _wrap_MouseEvent_RightIsDown, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_Dragging", (PyCFunction) _wrap_MouseEvent_Dragging, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_Moving", (PyCFunction) _wrap_MouseEvent_Moving, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_Entering", (PyCFunction) _wrap_MouseEvent_Entering, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_Leaving", (PyCFunction) _wrap_MouseEvent_Leaving, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_GetPosition", (PyCFunction) _wrap_MouseEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_GetPositionTuple", (PyCFunction) _wrap_MouseEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_GetLogicalPosition", (PyCFunction) _wrap_MouseEvent_GetLogicalPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_GetX", (PyCFunction) _wrap_MouseEvent_GetX, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_GetY", (PyCFunction) _wrap_MouseEvent_GetY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_GetWheelRotation", (PyCFunction) _wrap_MouseEvent_GetWheelRotation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_GetWheelDelta", (PyCFunction) _wrap_MouseEvent_GetWheelDelta, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_GetLinesPerAction", (PyCFunction) _wrap_MouseEvent_GetLinesPerAction, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_IsPageScroll", (PyCFunction) _wrap_MouseEvent_IsPageScroll, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_m_x_set", (PyCFunction) _wrap_MouseEvent_m_x_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_m_x_get", (PyCFunction) _wrap_MouseEvent_m_x_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_m_y_set", (PyCFunction) _wrap_MouseEvent_m_y_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_m_y_get", (PyCFunction) _wrap_MouseEvent_m_y_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_m_leftDown_set", (PyCFunction) _wrap_MouseEvent_m_leftDown_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_m_leftDown_get", (PyCFunction) _wrap_MouseEvent_m_leftDown_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_m_middleDown_set", (PyCFunction) _wrap_MouseEvent_m_middleDown_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_m_middleDown_get", (PyCFunction) _wrap_MouseEvent_m_middleDown_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_m_rightDown_set", (PyCFunction) _wrap_MouseEvent_m_rightDown_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_m_rightDown_get", (PyCFunction) _wrap_MouseEvent_m_rightDown_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_m_controlDown_set", (PyCFunction) _wrap_MouseEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_m_controlDown_get", (PyCFunction) _wrap_MouseEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_m_shiftDown_set", (PyCFunction) _wrap_MouseEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_m_shiftDown_get", (PyCFunction) _wrap_MouseEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_m_altDown_set", (PyCFunction) _wrap_MouseEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_m_altDown_get", (PyCFunction) _wrap_MouseEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_m_metaDown_set", (PyCFunction) _wrap_MouseEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_m_metaDown_get", (PyCFunction) _wrap_MouseEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_m_wheelRotation_set", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_m_wheelRotation_get", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_m_wheelDelta_set", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_m_wheelDelta_get", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_m_linesPerAction_set", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_m_linesPerAction_get", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_swigregister", MouseEvent_swigregister, METH_VARARGS }, - { (char *)"new_SetCursorEvent", (PyCFunction) _wrap_new_SetCursorEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SetCursorEvent_GetX", (PyCFunction) _wrap_SetCursorEvent_GetX, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SetCursorEvent_GetY", (PyCFunction) _wrap_SetCursorEvent_GetY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SetCursorEvent_SetCursor", (PyCFunction) _wrap_SetCursorEvent_SetCursor, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SetCursorEvent_GetCursor", (PyCFunction) _wrap_SetCursorEvent_GetCursor, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SetCursorEvent_HasCursor", (PyCFunction) _wrap_SetCursorEvent_HasCursor, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SetCursorEvent_swigregister", SetCursorEvent_swigregister, METH_VARARGS }, - { (char *)"new_KeyEvent", (PyCFunction) _wrap_new_KeyEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_ControlDown", (PyCFunction) _wrap_KeyEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_MetaDown", (PyCFunction) _wrap_KeyEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_AltDown", (PyCFunction) _wrap_KeyEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_ShiftDown", (PyCFunction) _wrap_KeyEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_HasModifiers", (PyCFunction) _wrap_KeyEvent_HasModifiers, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_GetKeyCode", (PyCFunction) _wrap_KeyEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_GetUniChar", (PyCFunction) _wrap_KeyEvent_GetUniChar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_GetRawKeyCode", (PyCFunction) _wrap_KeyEvent_GetRawKeyCode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_GetRawKeyFlags", (PyCFunction) _wrap_KeyEvent_GetRawKeyFlags, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_GetPosition", (PyCFunction) _wrap_KeyEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_GetPositionTuple", (PyCFunction) _wrap_KeyEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_GetX", (PyCFunction) _wrap_KeyEvent_GetX, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_GetY", (PyCFunction) _wrap_KeyEvent_GetY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_m_x_set", (PyCFunction) _wrap_KeyEvent_m_x_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_m_x_get", (PyCFunction) _wrap_KeyEvent_m_x_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_m_y_set", (PyCFunction) _wrap_KeyEvent_m_y_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_m_y_get", (PyCFunction) _wrap_KeyEvent_m_y_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_m_keyCode_set", (PyCFunction) _wrap_KeyEvent_m_keyCode_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_m_keyCode_get", (PyCFunction) _wrap_KeyEvent_m_keyCode_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_m_controlDown_set", (PyCFunction) _wrap_KeyEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_m_controlDown_get", (PyCFunction) _wrap_KeyEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_m_shiftDown_set", (PyCFunction) _wrap_KeyEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_m_shiftDown_get", (PyCFunction) _wrap_KeyEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_m_altDown_set", (PyCFunction) _wrap_KeyEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_m_altDown_get", (PyCFunction) _wrap_KeyEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_m_metaDown_set", (PyCFunction) _wrap_KeyEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_m_metaDown_get", (PyCFunction) _wrap_KeyEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_m_scanCode_set", (PyCFunction) _wrap_KeyEvent_m_scanCode_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_m_scanCode_get", (PyCFunction) _wrap_KeyEvent_m_scanCode_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_m_rawCode_set", (PyCFunction) _wrap_KeyEvent_m_rawCode_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_m_rawCode_get", (PyCFunction) _wrap_KeyEvent_m_rawCode_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_m_rawFlags_set", (PyCFunction) _wrap_KeyEvent_m_rawFlags_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_m_rawFlags_get", (PyCFunction) _wrap_KeyEvent_m_rawFlags_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_swigregister", KeyEvent_swigregister, METH_VARARGS }, - { (char *)"new_SizeEvent", (PyCFunction) _wrap_new_SizeEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizeEvent_GetSize", (PyCFunction) _wrap_SizeEvent_GetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizeEvent_GetRect", (PyCFunction) _wrap_SizeEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizeEvent_SetRect", (PyCFunction) _wrap_SizeEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizeEvent_SetSize", (PyCFunction) _wrap_SizeEvent_SetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizeEvent_m_size_set", (PyCFunction) _wrap_SizeEvent_m_size_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizeEvent_m_size_get", (PyCFunction) _wrap_SizeEvent_m_size_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizeEvent_m_rect_set", (PyCFunction) _wrap_SizeEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizeEvent_m_rect_get", (PyCFunction) _wrap_SizeEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizeEvent_swigregister", SizeEvent_swigregister, METH_VARARGS }, - { (char *)"new_MoveEvent", (PyCFunction) _wrap_new_MoveEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MoveEvent_GetPosition", (PyCFunction) _wrap_MoveEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MoveEvent_GetRect", (PyCFunction) _wrap_MoveEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MoveEvent_SetRect", (PyCFunction) _wrap_MoveEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MoveEvent_SetPosition", (PyCFunction) _wrap_MoveEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MoveEvent_m_pos_set", (PyCFunction) _wrap_MoveEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MoveEvent_m_pos_get", (PyCFunction) _wrap_MoveEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MoveEvent_m_rect_set", (PyCFunction) _wrap_MoveEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MoveEvent_m_rect_get", (PyCFunction) _wrap_MoveEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MoveEvent_swigregister", MoveEvent_swigregister, METH_VARARGS }, - { (char *)"new_PaintEvent", (PyCFunction) _wrap_new_PaintEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PaintEvent_swigregister", PaintEvent_swigregister, METH_VARARGS }, - { (char *)"new_NcPaintEvent", (PyCFunction) _wrap_new_NcPaintEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NcPaintEvent_swigregister", NcPaintEvent_swigregister, METH_VARARGS }, - { (char *)"new_EraseEvent", (PyCFunction) _wrap_new_EraseEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"EraseEvent_GetDC", (PyCFunction) _wrap_EraseEvent_GetDC, METH_VARARGS | METH_KEYWORDS }, - { (char *)"EraseEvent_swigregister", EraseEvent_swigregister, METH_VARARGS }, - { (char *)"new_FocusEvent", (PyCFunction) _wrap_new_FocusEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FocusEvent_GetWindow", (PyCFunction) _wrap_FocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FocusEvent_SetWindow", (PyCFunction) _wrap_FocusEvent_SetWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FocusEvent_swigregister", FocusEvent_swigregister, METH_VARARGS }, - { (char *)"new_ChildFocusEvent", (PyCFunction) _wrap_new_ChildFocusEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ChildFocusEvent_GetWindow", (PyCFunction) _wrap_ChildFocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ChildFocusEvent_swigregister", ChildFocusEvent_swigregister, METH_VARARGS }, - { (char *)"new_ActivateEvent", (PyCFunction) _wrap_new_ActivateEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ActivateEvent_GetActive", (PyCFunction) _wrap_ActivateEvent_GetActive, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ActivateEvent_swigregister", ActivateEvent_swigregister, METH_VARARGS }, - { (char *)"new_InitDialogEvent", (PyCFunction) _wrap_new_InitDialogEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"InitDialogEvent_swigregister", InitDialogEvent_swigregister, METH_VARARGS }, - { (char *)"new_MenuEvent", (PyCFunction) _wrap_new_MenuEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuEvent_GetMenuId", (PyCFunction) _wrap_MenuEvent_GetMenuId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuEvent_IsPopup", (PyCFunction) _wrap_MenuEvent_IsPopup, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuEvent_GetMenu", (PyCFunction) _wrap_MenuEvent_GetMenu, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuEvent_swigregister", MenuEvent_swigregister, METH_VARARGS }, - { (char *)"new_CloseEvent", (PyCFunction) _wrap_new_CloseEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CloseEvent_SetLoggingOff", (PyCFunction) _wrap_CloseEvent_SetLoggingOff, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CloseEvent_GetLoggingOff", (PyCFunction) _wrap_CloseEvent_GetLoggingOff, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CloseEvent_Veto", (PyCFunction) _wrap_CloseEvent_Veto, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CloseEvent_SetCanVeto", (PyCFunction) _wrap_CloseEvent_SetCanVeto, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CloseEvent_CanVeto", (PyCFunction) _wrap_CloseEvent_CanVeto, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CloseEvent_GetVeto", (PyCFunction) _wrap_CloseEvent_GetVeto, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CloseEvent_swigregister", CloseEvent_swigregister, METH_VARARGS }, - { (char *)"new_ShowEvent", (PyCFunction) _wrap_new_ShowEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ShowEvent_SetShow", (PyCFunction) _wrap_ShowEvent_SetShow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ShowEvent_GetShow", (PyCFunction) _wrap_ShowEvent_GetShow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ShowEvent_swigregister", ShowEvent_swigregister, METH_VARARGS }, - { (char *)"new_IconizeEvent", (PyCFunction) _wrap_new_IconizeEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IconizeEvent_Iconized", (PyCFunction) _wrap_IconizeEvent_Iconized, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IconizeEvent_swigregister", IconizeEvent_swigregister, METH_VARARGS }, - { (char *)"new_MaximizeEvent", (PyCFunction) _wrap_new_MaximizeEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MaximizeEvent_swigregister", MaximizeEvent_swigregister, METH_VARARGS }, - { (char *)"DropFilesEvent_GetPosition", (PyCFunction) _wrap_DropFilesEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DropFilesEvent_GetNumberOfFiles", (PyCFunction) _wrap_DropFilesEvent_GetNumberOfFiles, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DropFilesEvent_GetFiles", (PyCFunction) _wrap_DropFilesEvent_GetFiles, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DropFilesEvent_swigregister", DropFilesEvent_swigregister, METH_VARARGS }, - { (char *)"new_UpdateUIEvent", (PyCFunction) _wrap_new_UpdateUIEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"UpdateUIEvent_GetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetChecked, METH_VARARGS | METH_KEYWORDS }, - { (char *)"UpdateUIEvent_GetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetEnabled, METH_VARARGS | METH_KEYWORDS }, - { (char *)"UpdateUIEvent_GetText", (PyCFunction) _wrap_UpdateUIEvent_GetText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"UpdateUIEvent_GetSetText", (PyCFunction) _wrap_UpdateUIEvent_GetSetText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"UpdateUIEvent_GetSetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetSetChecked, METH_VARARGS | METH_KEYWORDS }, - { (char *)"UpdateUIEvent_GetSetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetSetEnabled, METH_VARARGS | METH_KEYWORDS }, - { (char *)"UpdateUIEvent_Check", (PyCFunction) _wrap_UpdateUIEvent_Check, METH_VARARGS | METH_KEYWORDS }, - { (char *)"UpdateUIEvent_Enable", (PyCFunction) _wrap_UpdateUIEvent_Enable, METH_VARARGS | METH_KEYWORDS }, - { (char *)"UpdateUIEvent_SetText", (PyCFunction) _wrap_UpdateUIEvent_SetText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"UpdateUIEvent_SetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_SetUpdateInterval, METH_VARARGS | METH_KEYWORDS }, - { (char *)"UpdateUIEvent_GetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_GetUpdateInterval, METH_VARARGS | METH_KEYWORDS }, - { (char *)"UpdateUIEvent_CanUpdate", (PyCFunction) _wrap_UpdateUIEvent_CanUpdate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"UpdateUIEvent_ResetUpdateTime", (PyCFunction) _wrap_UpdateUIEvent_ResetUpdateTime, METH_VARARGS | METH_KEYWORDS }, - { (char *)"UpdateUIEvent_SetMode", (PyCFunction) _wrap_UpdateUIEvent_SetMode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"UpdateUIEvent_GetMode", (PyCFunction) _wrap_UpdateUIEvent_GetMode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"UpdateUIEvent_swigregister", UpdateUIEvent_swigregister, METH_VARARGS }, - { (char *)"new_SysColourChangedEvent", (PyCFunction) _wrap_new_SysColourChangedEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SysColourChangedEvent_swigregister", SysColourChangedEvent_swigregister, METH_VARARGS }, - { (char *)"new_MouseCaptureChangedEvent", (PyCFunction) _wrap_new_MouseCaptureChangedEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseCaptureChangedEvent_GetCapturedWindow", (PyCFunction) _wrap_MouseCaptureChangedEvent_GetCapturedWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseCaptureChangedEvent_swigregister", MouseCaptureChangedEvent_swigregister, METH_VARARGS }, - { (char *)"new_DisplayChangedEvent", (PyCFunction) _wrap_new_DisplayChangedEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DisplayChangedEvent_swigregister", DisplayChangedEvent_swigregister, METH_VARARGS }, - { (char *)"new_PaletteChangedEvent", (PyCFunction) _wrap_new_PaletteChangedEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PaletteChangedEvent_SetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_SetChangedWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PaletteChangedEvent_GetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_GetChangedWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PaletteChangedEvent_swigregister", PaletteChangedEvent_swigregister, METH_VARARGS }, - { (char *)"new_QueryNewPaletteEvent", (PyCFunction) _wrap_new_QueryNewPaletteEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"QueryNewPaletteEvent_SetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_SetPaletteRealized, METH_VARARGS | METH_KEYWORDS }, - { (char *)"QueryNewPaletteEvent_GetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_GetPaletteRealized, METH_VARARGS | METH_KEYWORDS }, - { (char *)"QueryNewPaletteEvent_swigregister", QueryNewPaletteEvent_swigregister, METH_VARARGS }, - { (char *)"new_NavigationKeyEvent", (PyCFunction) _wrap_new_NavigationKeyEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NavigationKeyEvent_GetDirection", (PyCFunction) _wrap_NavigationKeyEvent_GetDirection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NavigationKeyEvent_SetDirection", (PyCFunction) _wrap_NavigationKeyEvent_SetDirection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NavigationKeyEvent_IsWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_IsWindowChange, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NavigationKeyEvent_SetWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_SetWindowChange, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NavigationKeyEvent_GetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_GetCurrentFocus, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NavigationKeyEvent_SetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_SetCurrentFocus, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NavigationKeyEvent_swigregister", NavigationKeyEvent_swigregister, METH_VARARGS }, - { (char *)"new_WindowCreateEvent", (PyCFunction) _wrap_new_WindowCreateEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"WindowCreateEvent_GetWindow", (PyCFunction) _wrap_WindowCreateEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"WindowCreateEvent_swigregister", WindowCreateEvent_swigregister, METH_VARARGS }, - { (char *)"new_WindowDestroyEvent", (PyCFunction) _wrap_new_WindowDestroyEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"WindowDestroyEvent_GetWindow", (PyCFunction) _wrap_WindowDestroyEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"WindowDestroyEvent_swigregister", WindowDestroyEvent_swigregister, METH_VARARGS }, - { (char *)"new_ContextMenuEvent", (PyCFunction) _wrap_new_ContextMenuEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ContextMenuEvent_GetPosition", (PyCFunction) _wrap_ContextMenuEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ContextMenuEvent_SetPosition", (PyCFunction) _wrap_ContextMenuEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ContextMenuEvent_swigregister", ContextMenuEvent_swigregister, METH_VARARGS }, - { (char *)"new_IdleEvent", (PyCFunction) _wrap_new_IdleEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IdleEvent_RequestMore", (PyCFunction) _wrap_IdleEvent_RequestMore, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IdleEvent_MoreRequested", (PyCFunction) _wrap_IdleEvent_MoreRequested, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IdleEvent_SetMode", (PyCFunction) _wrap_IdleEvent_SetMode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IdleEvent_GetMode", (PyCFunction) _wrap_IdleEvent_GetMode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IdleEvent_CanSend", (PyCFunction) _wrap_IdleEvent_CanSend, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IdleEvent_swigregister", IdleEvent_swigregister, METH_VARARGS }, - { (char *)"new_PyEvent", (PyCFunction) _wrap_new_PyEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_PyEvent", (PyCFunction) _wrap_delete_PyEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyEvent_SetSelf", (PyCFunction) _wrap_PyEvent_SetSelf, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyEvent_GetSelf", (PyCFunction) _wrap_PyEvent_GetSelf, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyEvent_swigregister", PyEvent_swigregister, METH_VARARGS }, - { (char *)"new_PyCommandEvent", (PyCFunction) _wrap_new_PyCommandEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_PyCommandEvent", (PyCFunction) _wrap_delete_PyCommandEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyCommandEvent_SetSelf", (PyCFunction) _wrap_PyCommandEvent_SetSelf, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyCommandEvent_GetSelf", (PyCFunction) _wrap_PyCommandEvent_GetSelf, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyCommandEvent_swigregister", PyCommandEvent_swigregister, METH_VARARGS }, - { (char *)"new_PyApp", (PyCFunction) _wrap_new_PyApp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_PyApp", (PyCFunction) _wrap_delete_PyApp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp__setCallbackInfo", (PyCFunction) _wrap_PyApp__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_GetAppName", (PyCFunction) _wrap_PyApp_GetAppName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_SetAppName", (PyCFunction) _wrap_PyApp_SetAppName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_GetClassName", (PyCFunction) _wrap_PyApp_GetClassName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_SetClassName", (PyCFunction) _wrap_PyApp_SetClassName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_GetVendorName", (PyCFunction) _wrap_PyApp_GetVendorName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_SetVendorName", (PyCFunction) _wrap_PyApp_SetVendorName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_GetTraits", (PyCFunction) _wrap_PyApp_GetTraits, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_ProcessPendingEvents", (PyCFunction) _wrap_PyApp_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_Yield", (PyCFunction) _wrap_PyApp_Yield, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_WakeUpIdle", (PyCFunction) _wrap_PyApp_WakeUpIdle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_MainLoop", (PyCFunction) _wrap_PyApp_MainLoop, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_Exit", (PyCFunction) _wrap_PyApp_Exit, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_ExitMainLoop", (PyCFunction) _wrap_PyApp_ExitMainLoop, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_Pending", (PyCFunction) _wrap_PyApp_Pending, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_Dispatch", (PyCFunction) _wrap_PyApp_Dispatch, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_ProcessIdle", (PyCFunction) _wrap_PyApp_ProcessIdle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_SendIdleEvents", (PyCFunction) _wrap_PyApp_SendIdleEvents, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_IsActive", (PyCFunction) _wrap_PyApp_IsActive, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_SetTopWindow", (PyCFunction) _wrap_PyApp_SetTopWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_GetTopWindow", (PyCFunction) _wrap_PyApp_GetTopWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_SetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_SetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_GetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_GetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_SetUseBestVisual", (PyCFunction) _wrap_PyApp_SetUseBestVisual, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_GetUseBestVisual", (PyCFunction) _wrap_PyApp_GetUseBestVisual, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_SetPrintMode", (PyCFunction) _wrap_PyApp_SetPrintMode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_GetPrintMode", (PyCFunction) _wrap_PyApp_GetPrintMode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_SetAssertMode", (PyCFunction) _wrap_PyApp_SetAssertMode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_GetAssertMode", (PyCFunction) _wrap_PyApp_GetAssertMode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_GetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_GetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_GetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_GetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_GetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_GetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_GetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_GetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_GetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_GetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_SetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_SetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_SetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_SetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_SetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_SetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_SetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_SetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_SetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_SetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp__BootstrapApp", (PyCFunction) _wrap_PyApp__BootstrapApp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_GetComCtl32Version", (PyCFunction) _wrap_PyApp_GetComCtl32Version, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_swigregister", PyApp_swigregister, METH_VARARGS }, - { (char *)"Exit", (PyCFunction) _wrap_Exit, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Yield", (PyCFunction) _wrap_Yield, METH_VARARGS | METH_KEYWORDS }, - { (char *)"YieldIfNeeded", (PyCFunction) _wrap_YieldIfNeeded, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SafeYield", (PyCFunction) _wrap_SafeYield, METH_VARARGS | METH_KEYWORDS }, - { (char *)"WakeUpIdle", (PyCFunction) _wrap_WakeUpIdle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PostEvent", (PyCFunction) _wrap_PostEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"App_CleanUp", (PyCFunction) _wrap_App_CleanUp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetApp", (PyCFunction) _wrap_GetApp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_AcceleratorEntry", (PyCFunction) _wrap_new_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_AcceleratorEntry", (PyCFunction) _wrap_delete_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS }, - { (char *)"AcceleratorEntry_Set", (PyCFunction) _wrap_AcceleratorEntry_Set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"AcceleratorEntry_SetMenuItem", (PyCFunction) _wrap_AcceleratorEntry_SetMenuItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"AcceleratorEntry_GetMenuItem", (PyCFunction) _wrap_AcceleratorEntry_GetMenuItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"AcceleratorEntry_GetFlags", (PyCFunction) _wrap_AcceleratorEntry_GetFlags, METH_VARARGS | METH_KEYWORDS }, - { (char *)"AcceleratorEntry_GetKeyCode", (PyCFunction) _wrap_AcceleratorEntry_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"AcceleratorEntry_GetCommand", (PyCFunction) _wrap_AcceleratorEntry_GetCommand, METH_VARARGS | METH_KEYWORDS }, - { (char *)"AcceleratorEntry_swigregister", AcceleratorEntry_swigregister, METH_VARARGS }, - { (char *)"new_AcceleratorTable", (PyCFunction) _wrap_new_AcceleratorTable, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_AcceleratorTable", (PyCFunction) _wrap_delete_AcceleratorTable, METH_VARARGS | METH_KEYWORDS }, - { (char *)"AcceleratorTable_Ok", (PyCFunction) _wrap_AcceleratorTable_Ok, METH_VARARGS | METH_KEYWORDS }, - { (char *)"AcceleratorTable_swigregister", AcceleratorTable_swigregister, METH_VARARGS }, - { (char *)"GetAccelFromString", (PyCFunction) _wrap_GetAccelFromString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_VisualAttributes", (PyCFunction) _wrap_new_VisualAttributes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_VisualAttributes", (PyCFunction) _wrap_delete_VisualAttributes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VisualAttributes_font_set", (PyCFunction) _wrap_VisualAttributes_font_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VisualAttributes_font_get", (PyCFunction) _wrap_VisualAttributes_font_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VisualAttributes_colFg_set", (PyCFunction) _wrap_VisualAttributes_colFg_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VisualAttributes_colFg_get", (PyCFunction) _wrap_VisualAttributes_colFg_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VisualAttributes_colBg_set", (PyCFunction) _wrap_VisualAttributes_colBg_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VisualAttributes_colBg_get", (PyCFunction) _wrap_VisualAttributes_colBg_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VisualAttributes_swigregister", VisualAttributes_swigregister, METH_VARARGS }, - { (char *)"new_Window", (PyCFunction) _wrap_new_Window, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreWindow", (PyCFunction) _wrap_new_PreWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_Create", (PyCFunction) _wrap_Window_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_Close", (PyCFunction) _wrap_Window_Close, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_Destroy", (PyCFunction) _wrap_Window_Destroy, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_DestroyChildren", (PyCFunction) _wrap_Window_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_IsBeingDeleted", (PyCFunction) _wrap_Window_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetTitle", (PyCFunction) _wrap_Window_SetTitle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetTitle", (PyCFunction) _wrap_Window_GetTitle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetLabel", (PyCFunction) _wrap_Window_SetLabel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetLabel", (PyCFunction) _wrap_Window_GetLabel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetName", (PyCFunction) _wrap_Window_SetName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetName", (PyCFunction) _wrap_Window_GetName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetWindowVariant", (PyCFunction) _wrap_Window_SetWindowVariant, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetWindowVariant", (PyCFunction) _wrap_Window_GetWindowVariant, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetId", (PyCFunction) _wrap_Window_SetId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetId", (PyCFunction) _wrap_Window_GetId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_NewControlId", (PyCFunction) _wrap_Window_NewControlId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_NextControlId", (PyCFunction) _wrap_Window_NextControlId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_PrevControlId", (PyCFunction) _wrap_Window_PrevControlId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetSize", (PyCFunction) _wrap_Window_SetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetDimensions", (PyCFunction) _wrap_Window_SetDimensions, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetRect", (PyCFunction) _wrap_Window_SetRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetSizeWH", (PyCFunction) _wrap_Window_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_Move", (PyCFunction) _wrap_Window_Move, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_MoveXY", (PyCFunction) _wrap_Window_MoveXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_Raise", (PyCFunction) _wrap_Window_Raise, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_Lower", (PyCFunction) _wrap_Window_Lower, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetClientSize", (PyCFunction) _wrap_Window_SetClientSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetClientSizeWH", (PyCFunction) _wrap_Window_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetClientRect", (PyCFunction) _wrap_Window_SetClientRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetPosition", (PyCFunction) _wrap_Window_GetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetPositionTuple", (PyCFunction) _wrap_Window_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetSize", (PyCFunction) _wrap_Window_GetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetSizeTuple", (PyCFunction) _wrap_Window_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetRect", (PyCFunction) _wrap_Window_GetRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetClientSize", (PyCFunction) _wrap_Window_GetClientSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetClientSizeTuple", (PyCFunction) _wrap_Window_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetClientAreaOrigin", (PyCFunction) _wrap_Window_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetClientRect", (PyCFunction) _wrap_Window_GetClientRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetBestSize", (PyCFunction) _wrap_Window_GetBestSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetBestSizeTuple", (PyCFunction) _wrap_Window_GetBestSizeTuple, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetAdjustedBestSize", (PyCFunction) _wrap_Window_GetAdjustedBestSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_Center", (PyCFunction) _wrap_Window_Center, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_CenterOnScreen", (PyCFunction) _wrap_Window_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_CenterOnParent", (PyCFunction) _wrap_Window_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_Fit", (PyCFunction) _wrap_Window_Fit, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_FitInside", (PyCFunction) _wrap_Window_FitInside, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetSizeHints", _wrap_Window_SetSizeHints, METH_VARARGS }, - { (char *)"Window_SetVirtualSizeHints", _wrap_Window_SetVirtualSizeHints, METH_VARARGS }, - { (char *)"Window_GetMinWidth", (PyCFunction) _wrap_Window_GetMinWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetMinHeight", (PyCFunction) _wrap_Window_GetMinHeight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetMaxWidth", (PyCFunction) _wrap_Window_GetMaxWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetMaxHeight", (PyCFunction) _wrap_Window_GetMaxHeight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetMaxSize", (PyCFunction) _wrap_Window_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetMinSize", (PyCFunction) _wrap_Window_GetMinSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetVirtualSize", (PyCFunction) _wrap_Window_SetVirtualSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetVirtualSizeWH", (PyCFunction) _wrap_Window_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetVirtualSize", (PyCFunction) _wrap_Window_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetVirtualSizeTuple", (PyCFunction) _wrap_Window_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetBestVirtualSize", (PyCFunction) _wrap_Window_GetBestVirtualSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_Show", (PyCFunction) _wrap_Window_Show, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_Hide", (PyCFunction) _wrap_Window_Hide, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_Enable", (PyCFunction) _wrap_Window_Enable, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_Disable", (PyCFunction) _wrap_Window_Disable, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_IsShown", (PyCFunction) _wrap_Window_IsShown, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_IsEnabled", (PyCFunction) _wrap_Window_IsEnabled, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetWindowStyleFlag", (PyCFunction) _wrap_Window_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetWindowStyleFlag", (PyCFunction) _wrap_Window_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_HasFlag", (PyCFunction) _wrap_Window_HasFlag, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_IsRetained", (PyCFunction) _wrap_Window_IsRetained, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetExtraStyle", (PyCFunction) _wrap_Window_SetExtraStyle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetExtraStyle", (PyCFunction) _wrap_Window_GetExtraStyle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_MakeModal", (PyCFunction) _wrap_Window_MakeModal, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetThemeEnabled", (PyCFunction) _wrap_Window_SetThemeEnabled, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetThemeEnabled", (PyCFunction) _wrap_Window_GetThemeEnabled, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetFocus", (PyCFunction) _wrap_Window_SetFocus, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetFocusFromKbd", (PyCFunction) _wrap_Window_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_FindFocus", (PyCFunction) _wrap_Window_FindFocus, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_AcceptsFocus", (PyCFunction) _wrap_Window_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_Window_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetDefaultItem", (PyCFunction) _wrap_Window_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetDefaultItem", (PyCFunction) _wrap_Window_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetTmpDefaultItem", (PyCFunction) _wrap_Window_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetChildren", (PyCFunction) _wrap_Window_GetChildren, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetParent", (PyCFunction) _wrap_Window_GetParent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetGrandParent", (PyCFunction) _wrap_Window_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_IsTopLevel", (PyCFunction) _wrap_Window_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_Reparent", (PyCFunction) _wrap_Window_Reparent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_AddChild", (PyCFunction) _wrap_Window_AddChild, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_RemoveChild", (PyCFunction) _wrap_Window_RemoveChild, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_FindWindowById", (PyCFunction) _wrap_Window_FindWindowById, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_FindWindowByName", (PyCFunction) _wrap_Window_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetEventHandler", (PyCFunction) _wrap_Window_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetEventHandler", (PyCFunction) _wrap_Window_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_PushEventHandler", (PyCFunction) _wrap_Window_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_PopEventHandler", (PyCFunction) _wrap_Window_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_RemoveEventHandler", (PyCFunction) _wrap_Window_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetValidator", (PyCFunction) _wrap_Window_SetValidator, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetValidator", (PyCFunction) _wrap_Window_GetValidator, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_Validate", (PyCFunction) _wrap_Window_Validate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_TransferDataToWindow", (PyCFunction) _wrap_Window_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_TransferDataFromWindow", (PyCFunction) _wrap_Window_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_InitDialog", (PyCFunction) _wrap_Window_InitDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetAcceleratorTable", (PyCFunction) _wrap_Window_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetAcceleratorTable", (PyCFunction) _wrap_Window_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_RegisterHotKey", (PyCFunction) _wrap_Window_RegisterHotKey, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_UnregisterHotKey", (PyCFunction) _wrap_Window_UnregisterHotKey, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_ConvertDialogPointToPixels", (PyCFunction) _wrap_Window_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_ConvertDialogSizeToPixels", (PyCFunction) _wrap_Window_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_DLG_PNT", (PyCFunction) _wrap_Window_DLG_PNT, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_DLG_SZE", (PyCFunction) _wrap_Window_DLG_SZE, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_ConvertPixelPointToDialog", (PyCFunction) _wrap_Window_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_ConvertPixelSizeToDialog", (PyCFunction) _wrap_Window_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_WarpPointer", (PyCFunction) _wrap_Window_WarpPointer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_CaptureMouse", (PyCFunction) _wrap_Window_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_ReleaseMouse", (PyCFunction) _wrap_Window_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetCapture", (PyCFunction) _wrap_Window_GetCapture, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_HasCapture", (PyCFunction) _wrap_Window_HasCapture, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_Refresh", (PyCFunction) _wrap_Window_Refresh, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_RefreshRect", (PyCFunction) _wrap_Window_RefreshRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_Update", (PyCFunction) _wrap_Window_Update, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_ClearBackground", (PyCFunction) _wrap_Window_ClearBackground, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_Freeze", (PyCFunction) _wrap_Window_Freeze, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_Thaw", (PyCFunction) _wrap_Window_Thaw, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_PrepareDC", (PyCFunction) _wrap_Window_PrepareDC, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetUpdateRegion", (PyCFunction) _wrap_Window_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetUpdateClientRect", (PyCFunction) _wrap_Window_GetUpdateClientRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_IsExposed", (PyCFunction) _wrap_Window_IsExposed, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_IsExposedPoint", (PyCFunction) _wrap_Window_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_IsExposedRect", (PyCFunction) _wrap_Window_IsExposedRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetDefaultAttributes", (PyCFunction) _wrap_Window_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetClassDefaultAttributes", (PyCFunction) _wrap_Window_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetBackgroundColour", (PyCFunction) _wrap_Window_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetDefaultBackgroundColour", (PyCFunction) _wrap_Window_SetDefaultBackgroundColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetForegroundColour", (PyCFunction) _wrap_Window_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetDefaultForegroundColour", (PyCFunction) _wrap_Window_SetDefaultForegroundColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetBackgroundColour", (PyCFunction) _wrap_Window_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetForegroundColour", (PyCFunction) _wrap_Window_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetCursor", (PyCFunction) _wrap_Window_SetCursor, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetCursor", (PyCFunction) _wrap_Window_GetCursor, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetFont", (PyCFunction) _wrap_Window_SetFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetDefaultFont", (PyCFunction) _wrap_Window_SetDefaultFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetFont", (PyCFunction) _wrap_Window_GetFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetCaret", (PyCFunction) _wrap_Window_SetCaret, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetCaret", (PyCFunction) _wrap_Window_GetCaret, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetCharHeight", (PyCFunction) _wrap_Window_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetCharWidth", (PyCFunction) _wrap_Window_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetTextExtent", (PyCFunction) _wrap_Window_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetFullTextExtent", (PyCFunction) _wrap_Window_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_ClientToScreenXY", (PyCFunction) _wrap_Window_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_ScreenToClientXY", (PyCFunction) _wrap_Window_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_ClientToScreen", (PyCFunction) _wrap_Window_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_ScreenToClient", (PyCFunction) _wrap_Window_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_HitTestXY", (PyCFunction) _wrap_Window_HitTestXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_HitTest", (PyCFunction) _wrap_Window_HitTest, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetBorder", _wrap_Window_GetBorder, METH_VARARGS }, - { (char *)"Window_UpdateWindowUI", (PyCFunction) _wrap_Window_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_PopupMenuXY", (PyCFunction) _wrap_Window_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_PopupMenu", (PyCFunction) _wrap_Window_PopupMenu, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetHandle", (PyCFunction) _wrap_Window_GetHandle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_HasScrollbar", (PyCFunction) _wrap_Window_HasScrollbar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetScrollbar", (PyCFunction) _wrap_Window_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetScrollPos", (PyCFunction) _wrap_Window_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetScrollPos", (PyCFunction) _wrap_Window_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetScrollThumb", (PyCFunction) _wrap_Window_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetScrollRange", (PyCFunction) _wrap_Window_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_ScrollWindow", (PyCFunction) _wrap_Window_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_ScrollLines", (PyCFunction) _wrap_Window_ScrollLines, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_ScrollPages", (PyCFunction) _wrap_Window_ScrollPages, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_LineUp", (PyCFunction) _wrap_Window_LineUp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_LineDown", (PyCFunction) _wrap_Window_LineDown, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_PageUp", (PyCFunction) _wrap_Window_PageUp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_PageDown", (PyCFunction) _wrap_Window_PageDown, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetHelpText", (PyCFunction) _wrap_Window_SetHelpText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetHelpTextForId", (PyCFunction) _wrap_Window_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetHelpText", (PyCFunction) _wrap_Window_GetHelpText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetToolTipString", (PyCFunction) _wrap_Window_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetToolTip", (PyCFunction) _wrap_Window_SetToolTip, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetToolTip", (PyCFunction) _wrap_Window_GetToolTip, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetDropTarget", (PyCFunction) _wrap_Window_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetDropTarget", (PyCFunction) _wrap_Window_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetConstraints", (PyCFunction) _wrap_Window_SetConstraints, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetConstraints", (PyCFunction) _wrap_Window_GetConstraints, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetAutoLayout", (PyCFunction) _wrap_Window_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetAutoLayout", (PyCFunction) _wrap_Window_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_Layout", (PyCFunction) _wrap_Window_Layout, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetSizer", (PyCFunction) _wrap_Window_SetSizer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetSizerAndFit", (PyCFunction) _wrap_Window_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetSizer", (PyCFunction) _wrap_Window_GetSizer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetContainingSizer", (PyCFunction) _wrap_Window_SetContainingSizer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetContainingSizer", (PyCFunction) _wrap_Window_GetContainingSizer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_InheritAttributes", (PyCFunction) _wrap_Window_InheritAttributes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_ShouldInheritColours", (PyCFunction) _wrap_Window_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_swigregister", Window_swigregister, METH_VARARGS }, - { (char *)"FindWindowById", (PyCFunction) _wrap_FindWindowById, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FindWindowByName", (PyCFunction) _wrap_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FindWindowByLabel", (PyCFunction) _wrap_FindWindowByLabel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_FromHWND", (PyCFunction) _wrap_Window_FromHWND, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_Validator", (PyCFunction) _wrap_new_Validator, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Validator_Clone", (PyCFunction) _wrap_Validator_Clone, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Validator_Validate", (PyCFunction) _wrap_Validator_Validate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Validator_TransferToWindow", (PyCFunction) _wrap_Validator_TransferToWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Validator_TransferFromWindow", (PyCFunction) _wrap_Validator_TransferFromWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Validator_GetWindow", (PyCFunction) _wrap_Validator_GetWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Validator_SetWindow", (PyCFunction) _wrap_Validator_SetWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Validator_IsSilent", (PyCFunction) _wrap_Validator_IsSilent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Validator_SetBellOnError", (PyCFunction) _wrap_Validator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Validator_swigregister", Validator_swigregister, METH_VARARGS }, - { (char *)"new_PyValidator", (PyCFunction) _wrap_new_PyValidator, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyValidator__setCallbackInfo", (PyCFunction) _wrap_PyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyValidator_swigregister", PyValidator_swigregister, METH_VARARGS }, - { (char *)"new_Menu", (PyCFunction) _wrap_new_Menu, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_Append", (PyCFunction) _wrap_Menu_Append, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_AppendSeparator", (PyCFunction) _wrap_Menu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_AppendCheckItem", (PyCFunction) _wrap_Menu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_AppendRadioItem", (PyCFunction) _wrap_Menu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_AppendMenu", (PyCFunction) _wrap_Menu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_AppendItem", (PyCFunction) _wrap_Menu_AppendItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_Break", (PyCFunction) _wrap_Menu_Break, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_InsertItem", (PyCFunction) _wrap_Menu_InsertItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_Insert", (PyCFunction) _wrap_Menu_Insert, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_InsertSeparator", (PyCFunction) _wrap_Menu_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_InsertCheckItem", (PyCFunction) _wrap_Menu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_InsertRadioItem", (PyCFunction) _wrap_Menu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_InsertMenu", (PyCFunction) _wrap_Menu_InsertMenu, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_PrependItem", (PyCFunction) _wrap_Menu_PrependItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_Prepend", (PyCFunction) _wrap_Menu_Prepend, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_PrependSeparator", (PyCFunction) _wrap_Menu_PrependSeparator, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_PrependCheckItem", (PyCFunction) _wrap_Menu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_PrependRadioItem", (PyCFunction) _wrap_Menu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_PrependMenu", (PyCFunction) _wrap_Menu_PrependMenu, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_Remove", (PyCFunction) _wrap_Menu_Remove, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_RemoveItem", (PyCFunction) _wrap_Menu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_Delete", (PyCFunction) _wrap_Menu_Delete, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_DeleteItem", (PyCFunction) _wrap_Menu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_Destroy", (PyCFunction) _wrap_Menu_Destroy, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_DestroyId", (PyCFunction) _wrap_Menu_DestroyId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_DestroyItem", (PyCFunction) _wrap_Menu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_GetMenuItemCount", (PyCFunction) _wrap_Menu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_GetMenuItems", (PyCFunction) _wrap_Menu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_FindItem", (PyCFunction) _wrap_Menu_FindItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_FindItemById", (PyCFunction) _wrap_Menu_FindItemById, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_FindItemByPosition", (PyCFunction) _wrap_Menu_FindItemByPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_Enable", (PyCFunction) _wrap_Menu_Enable, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_IsEnabled", (PyCFunction) _wrap_Menu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_Check", (PyCFunction) _wrap_Menu_Check, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_IsChecked", (PyCFunction) _wrap_Menu_IsChecked, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_SetLabel", (PyCFunction) _wrap_Menu_SetLabel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_GetLabel", (PyCFunction) _wrap_Menu_GetLabel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_SetHelpString", (PyCFunction) _wrap_Menu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_GetHelpString", (PyCFunction) _wrap_Menu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_SetTitle", (PyCFunction) _wrap_Menu_SetTitle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_GetTitle", (PyCFunction) _wrap_Menu_GetTitle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_SetEventHandler", (PyCFunction) _wrap_Menu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_GetEventHandler", (PyCFunction) _wrap_Menu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_SetInvokingWindow", (PyCFunction) _wrap_Menu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_GetInvokingWindow", (PyCFunction) _wrap_Menu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_GetStyle", (PyCFunction) _wrap_Menu_GetStyle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_UpdateUI", (PyCFunction) _wrap_Menu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_GetMenuBar", (PyCFunction) _wrap_Menu_GetMenuBar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_Attach", (PyCFunction) _wrap_Menu_Attach, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_Detach", (PyCFunction) _wrap_Menu_Detach, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_IsAttached", (PyCFunction) _wrap_Menu_IsAttached, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_SetParent", (PyCFunction) _wrap_Menu_SetParent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_GetParent", (PyCFunction) _wrap_Menu_GetParent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_swigregister", Menu_swigregister, METH_VARARGS }, - { (char *)"new_MenuBar", (PyCFunction) _wrap_new_MenuBar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_Append", (PyCFunction) _wrap_MenuBar_Append, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_Insert", (PyCFunction) _wrap_MenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_GetMenuCount", (PyCFunction) _wrap_MenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_GetMenu", (PyCFunction) _wrap_MenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_Replace", (PyCFunction) _wrap_MenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_Remove", (PyCFunction) _wrap_MenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_EnableTop", (PyCFunction) _wrap_MenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_IsEnabledTop", (PyCFunction) _wrap_MenuBar_IsEnabledTop, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_SetLabelTop", (PyCFunction) _wrap_MenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_GetLabelTop", (PyCFunction) _wrap_MenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_FindMenuItem", (PyCFunction) _wrap_MenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_FindItemById", (PyCFunction) _wrap_MenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_FindMenu", (PyCFunction) _wrap_MenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_Enable", (PyCFunction) _wrap_MenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_Check", (PyCFunction) _wrap_MenuBar_Check, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_IsChecked", (PyCFunction) _wrap_MenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_IsEnabled", (PyCFunction) _wrap_MenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_SetLabel", (PyCFunction) _wrap_MenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_GetLabel", (PyCFunction) _wrap_MenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_SetHelpString", (PyCFunction) _wrap_MenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_GetHelpString", (PyCFunction) _wrap_MenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_GetFrame", (PyCFunction) _wrap_MenuBar_GetFrame, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_IsAttached", (PyCFunction) _wrap_MenuBar_IsAttached, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_Attach", (PyCFunction) _wrap_MenuBar_Attach, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_Detach", (PyCFunction) _wrap_MenuBar_Detach, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_swigregister", MenuBar_swigregister, METH_VARARGS }, - { (char *)"new_MenuItem", (PyCFunction) _wrap_new_MenuItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_GetMenu", (PyCFunction) _wrap_MenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_SetMenu", (PyCFunction) _wrap_MenuItem_SetMenu, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_SetId", (PyCFunction) _wrap_MenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_GetId", (PyCFunction) _wrap_MenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_IsSeparator", (PyCFunction) _wrap_MenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_SetText", (PyCFunction) _wrap_MenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_GetLabel", (PyCFunction) _wrap_MenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_GetText", (PyCFunction) _wrap_MenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_GetLabelFromText", (PyCFunction) _wrap_MenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_GetKind", (PyCFunction) _wrap_MenuItem_GetKind, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_SetKind", (PyCFunction) _wrap_MenuItem_SetKind, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_SetCheckable", (PyCFunction) _wrap_MenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_IsCheckable", (PyCFunction) _wrap_MenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_IsSubMenu", (PyCFunction) _wrap_MenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_SetSubMenu", (PyCFunction) _wrap_MenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_GetSubMenu", (PyCFunction) _wrap_MenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_Enable", (PyCFunction) _wrap_MenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_IsEnabled", (PyCFunction) _wrap_MenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_Check", (PyCFunction) _wrap_MenuItem_Check, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_IsChecked", (PyCFunction) _wrap_MenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_Toggle", (PyCFunction) _wrap_MenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_SetHelp", (PyCFunction) _wrap_MenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_GetHelp", (PyCFunction) _wrap_MenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_GetAccel", (PyCFunction) _wrap_MenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_SetAccel", (PyCFunction) _wrap_MenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_MenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_SetBitmap", (PyCFunction) _wrap_MenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_GetBitmap", (PyCFunction) _wrap_MenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_swigregister", MenuItem_swigregister, METH_VARARGS }, - { (char *)"new_Control", (PyCFunction) _wrap_new_Control, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreControl", (PyCFunction) _wrap_new_PreControl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Control_Create", (PyCFunction) _wrap_Control_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Control_Command", (PyCFunction) _wrap_Control_Command, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Control_GetLabel", (PyCFunction) _wrap_Control_GetLabel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Control_SetLabel", (PyCFunction) _wrap_Control_SetLabel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Control_GetClassDefaultAttributes", (PyCFunction) _wrap_Control_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Control_swigregister", Control_swigregister, METH_VARARGS }, - { (char *)"ItemContainer_Append", (PyCFunction) _wrap_ItemContainer_Append, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ItemContainer_AppendItems", (PyCFunction) _wrap_ItemContainer_AppendItems, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ItemContainer_Insert", (PyCFunction) _wrap_ItemContainer_Insert, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ItemContainer_Clear", (PyCFunction) _wrap_ItemContainer_Clear, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ItemContainer_Delete", (PyCFunction) _wrap_ItemContainer_Delete, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ItemContainer_GetCount", (PyCFunction) _wrap_ItemContainer_GetCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ItemContainer_IsEmpty", (PyCFunction) _wrap_ItemContainer_IsEmpty, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ItemContainer_GetString", (PyCFunction) _wrap_ItemContainer_GetString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ItemContainer_GetStrings", (PyCFunction) _wrap_ItemContainer_GetStrings, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ItemContainer_SetString", (PyCFunction) _wrap_ItemContainer_SetString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ItemContainer_FindString", (PyCFunction) _wrap_ItemContainer_FindString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ItemContainer_Select", (PyCFunction) _wrap_ItemContainer_Select, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ItemContainer_GetSelection", (PyCFunction) _wrap_ItemContainer_GetSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ItemContainer_GetStringSelection", (PyCFunction) _wrap_ItemContainer_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ItemContainer_GetClientData", (PyCFunction) _wrap_ItemContainer_GetClientData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ItemContainer_SetClientData", (PyCFunction) _wrap_ItemContainer_SetClientData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ItemContainer_swigregister", ItemContainer_swigregister, METH_VARARGS }, - { (char *)"ControlWithItems_swigregister", ControlWithItems_swigregister, METH_VARARGS }, - { (char *)"new_SizerItem", (PyCFunction) _wrap_new_SizerItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_SizerItemSpacer", (PyCFunction) _wrap_new_SizerItemSpacer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_SizerItemWindow", (PyCFunction) _wrap_new_SizerItemWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_SizerItemSizer", (PyCFunction) _wrap_new_SizerItemSizer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_DeleteWindows", (PyCFunction) _wrap_SizerItem_DeleteWindows, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_DetachSizer", (PyCFunction) _wrap_SizerItem_DetachSizer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_GetSize", (PyCFunction) _wrap_SizerItem_GetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_CalcMin", (PyCFunction) _wrap_SizerItem_CalcMin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_SetDimension", (PyCFunction) _wrap_SizerItem_SetDimension, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_GetMinSize", (PyCFunction) _wrap_SizerItem_GetMinSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_SetInitSize", (PyCFunction) _wrap_SizerItem_SetInitSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_SetRatioWH", (PyCFunction) _wrap_SizerItem_SetRatioWH, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_SetRatioSize", (PyCFunction) _wrap_SizerItem_SetRatioSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_SetRatio", (PyCFunction) _wrap_SizerItem_SetRatio, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_GetRatio", (PyCFunction) _wrap_SizerItem_GetRatio, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_IsWindow", (PyCFunction) _wrap_SizerItem_IsWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_IsSizer", (PyCFunction) _wrap_SizerItem_IsSizer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_IsSpacer", (PyCFunction) _wrap_SizerItem_IsSpacer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_SetProportion", (PyCFunction) _wrap_SizerItem_SetProportion, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_GetProportion", (PyCFunction) _wrap_SizerItem_GetProportion, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_SetFlag", (PyCFunction) _wrap_SizerItem_SetFlag, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_GetFlag", (PyCFunction) _wrap_SizerItem_GetFlag, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_SetBorder", (PyCFunction) _wrap_SizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_GetBorder", (PyCFunction) _wrap_SizerItem_GetBorder, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_GetWindow", (PyCFunction) _wrap_SizerItem_GetWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_GetSizer", (PyCFunction) _wrap_SizerItem_GetSizer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_GetSpacer", (PyCFunction) _wrap_SizerItem_GetSpacer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_SetSpacer", (PyCFunction) _wrap_SizerItem_SetSpacer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_Show", (PyCFunction) _wrap_SizerItem_Show, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_IsShown", (PyCFunction) _wrap_SizerItem_IsShown, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_GetPosition", (PyCFunction) _wrap_SizerItem_GetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_GetUserData", (PyCFunction) _wrap_SizerItem_GetUserData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_swigregister", SizerItem_swigregister, METH_VARARGS }, - { (char *)"Sizer__setOORInfo", (PyCFunction) _wrap_Sizer__setOORInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_Add", (PyCFunction) _wrap_Sizer_Add, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_Insert", (PyCFunction) _wrap_Sizer_Insert, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_Prepend", (PyCFunction) _wrap_Sizer_Prepend, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_Remove", (PyCFunction) _wrap_Sizer_Remove, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer__SetItemMinSize", (PyCFunction) _wrap_Sizer__SetItemMinSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_AddItem", (PyCFunction) _wrap_Sizer_AddItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_InsertItem", (PyCFunction) _wrap_Sizer_InsertItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_PrependItem", (PyCFunction) _wrap_Sizer_PrependItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_SetDimension", (PyCFunction) _wrap_Sizer_SetDimension, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_SetMinSize", (PyCFunction) _wrap_Sizer_SetMinSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_GetSize", (PyCFunction) _wrap_Sizer_GetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_GetPosition", (PyCFunction) _wrap_Sizer_GetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_GetMinSize", (PyCFunction) _wrap_Sizer_GetMinSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_RecalcSizes", (PyCFunction) _wrap_Sizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_CalcMin", (PyCFunction) _wrap_Sizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_Layout", (PyCFunction) _wrap_Sizer_Layout, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_Fit", (PyCFunction) _wrap_Sizer_Fit, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_FitInside", (PyCFunction) _wrap_Sizer_FitInside, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_SetSizeHints", (PyCFunction) _wrap_Sizer_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_SetVirtualSizeHints", (PyCFunction) _wrap_Sizer_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_Clear", (PyCFunction) _wrap_Sizer_Clear, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_DeleteWindows", (PyCFunction) _wrap_Sizer_DeleteWindows, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_GetChildren", (PyCFunction) _wrap_Sizer_GetChildren, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_Show", (PyCFunction) _wrap_Sizer_Show, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_Hide", (PyCFunction) _wrap_Sizer_Hide, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_IsShown", (PyCFunction) _wrap_Sizer_IsShown, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_ShowItems", (PyCFunction) _wrap_Sizer_ShowItems, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_swigregister", Sizer_swigregister, METH_VARARGS }, - { (char *)"new_PySizer", (PyCFunction) _wrap_new_PySizer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PySizer__setCallbackInfo", (PyCFunction) _wrap_PySizer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PySizer_swigregister", PySizer_swigregister, METH_VARARGS }, - { (char *)"new_BoxSizer", (PyCFunction) _wrap_new_BoxSizer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BoxSizer_GetOrientation", (PyCFunction) _wrap_BoxSizer_GetOrientation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BoxSizer_SetOrientation", (PyCFunction) _wrap_BoxSizer_SetOrientation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BoxSizer_RecalcSizes", (PyCFunction) _wrap_BoxSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BoxSizer_CalcMin", (PyCFunction) _wrap_BoxSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BoxSizer_swigregister", BoxSizer_swigregister, METH_VARARGS }, - { (char *)"new_StaticBoxSizer", (PyCFunction) _wrap_new_StaticBoxSizer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StaticBoxSizer_GetStaticBox", (PyCFunction) _wrap_StaticBoxSizer_GetStaticBox, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StaticBoxSizer_RecalcSizes", (PyCFunction) _wrap_StaticBoxSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StaticBoxSizer_CalcMin", (PyCFunction) _wrap_StaticBoxSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StaticBoxSizer_swigregister", StaticBoxSizer_swigregister, METH_VARARGS }, - { (char *)"new_GridSizer", (PyCFunction) _wrap_new_GridSizer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GridSizer_RecalcSizes", (PyCFunction) _wrap_GridSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GridSizer_CalcMin", (PyCFunction) _wrap_GridSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GridSizer_SetCols", (PyCFunction) _wrap_GridSizer_SetCols, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GridSizer_SetRows", (PyCFunction) _wrap_GridSizer_SetRows, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GridSizer_SetVGap", (PyCFunction) _wrap_GridSizer_SetVGap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GridSizer_SetHGap", (PyCFunction) _wrap_GridSizer_SetHGap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GridSizer_GetCols", (PyCFunction) _wrap_GridSizer_GetCols, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GridSizer_GetRows", (PyCFunction) _wrap_GridSizer_GetRows, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GridSizer_GetVGap", (PyCFunction) _wrap_GridSizer_GetVGap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GridSizer_GetHGap", (PyCFunction) _wrap_GridSizer_GetHGap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GridSizer_swigregister", GridSizer_swigregister, METH_VARARGS }, - { (char *)"new_FlexGridSizer", (PyCFunction) _wrap_new_FlexGridSizer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FlexGridSizer_RecalcSizes", (PyCFunction) _wrap_FlexGridSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FlexGridSizer_CalcMin", (PyCFunction) _wrap_FlexGridSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FlexGridSizer_AddGrowableRow", (PyCFunction) _wrap_FlexGridSizer_AddGrowableRow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FlexGridSizer_RemoveGrowableRow", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableRow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FlexGridSizer_AddGrowableCol", (PyCFunction) _wrap_FlexGridSizer_AddGrowableCol, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FlexGridSizer_RemoveGrowableCol", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableCol, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FlexGridSizer_SetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_SetFlexibleDirection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FlexGridSizer_GetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_GetFlexibleDirection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FlexGridSizer_SetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_SetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FlexGridSizer_GetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_GetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FlexGridSizer_GetRowHeights", (PyCFunction) _wrap_FlexGridSizer_GetRowHeights, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FlexGridSizer_GetColWidths", (PyCFunction) _wrap_FlexGridSizer_GetColWidths, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FlexGridSizer_swigregister", FlexGridSizer_swigregister, METH_VARARGS }, - { (char *)"new_GBPosition", (PyCFunction) _wrap_new_GBPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBPosition_GetRow", (PyCFunction) _wrap_GBPosition_GetRow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBPosition_GetCol", (PyCFunction) _wrap_GBPosition_GetCol, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBPosition_SetRow", (PyCFunction) _wrap_GBPosition_SetRow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBPosition_SetCol", (PyCFunction) _wrap_GBPosition_SetCol, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBPosition___eq__", (PyCFunction) _wrap_GBPosition___eq__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBPosition___ne__", (PyCFunction) _wrap_GBPosition___ne__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBPosition_Set", (PyCFunction) _wrap_GBPosition_Set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBPosition_Get", (PyCFunction) _wrap_GBPosition_Get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBPosition_swigregister", GBPosition_swigregister, METH_VARARGS }, - { (char *)"new_GBSpan", (PyCFunction) _wrap_new_GBSpan, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBSpan_GetRowspan", (PyCFunction) _wrap_GBSpan_GetRowspan, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBSpan_GetColspan", (PyCFunction) _wrap_GBSpan_GetColspan, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBSpan_SetRowspan", (PyCFunction) _wrap_GBSpan_SetRowspan, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBSpan_SetColspan", (PyCFunction) _wrap_GBSpan_SetColspan, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBSpan___eq__", (PyCFunction) _wrap_GBSpan___eq__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBSpan___ne__", (PyCFunction) _wrap_GBSpan___ne__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBSpan_Set", (PyCFunction) _wrap_GBSpan_Set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBSpan_Get", (PyCFunction) _wrap_GBSpan_Get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBSpan_swigregister", GBSpan_swigregister, METH_VARARGS }, - { (char *)"new_GBSizerItem", (PyCFunction) _wrap_new_GBSizerItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_GBSizerItemWindow", (PyCFunction) _wrap_new_GBSizerItemWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_GBSizerItemSizer", (PyCFunction) _wrap_new_GBSizerItemSizer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_GBSizerItemSpacer", (PyCFunction) _wrap_new_GBSizerItemSpacer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBSizerItem_GetPos", (PyCFunction) _wrap_GBSizerItem_GetPos, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBSizerItem_GetSpan", (PyCFunction) _wrap_GBSizerItem_GetSpan, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBSizerItem_SetPos", (PyCFunction) _wrap_GBSizerItem_SetPos, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBSizerItem_SetSpan", (PyCFunction) _wrap_GBSizerItem_SetSpan, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBSizerItem_Intersects", _wrap_GBSizerItem_Intersects, METH_VARARGS }, - { (char *)"GBSizerItem_GetEndPos", (PyCFunction) _wrap_GBSizerItem_GetEndPos, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBSizerItem_GetGBSizer", (PyCFunction) _wrap_GBSizerItem_GetGBSizer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBSizerItem_SetGBSizer", (PyCFunction) _wrap_GBSizerItem_SetGBSizer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBSizerItem_swigregister", GBSizerItem_swigregister, METH_VARARGS }, - { (char *)"new_GridBagSizer", (PyCFunction) _wrap_new_GridBagSizer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GridBagSizer_Add", (PyCFunction) _wrap_GridBagSizer_Add, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GridBagSizer_AddItem", (PyCFunction) _wrap_GridBagSizer_AddItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GridBagSizer_GetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_GetEmptyCellSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GridBagSizer_SetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_SetEmptyCellSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GridBagSizer_GetItemPosition", _wrap_GridBagSizer_GetItemPosition, METH_VARARGS }, - { (char *)"GridBagSizer_SetItemPosition", _wrap_GridBagSizer_SetItemPosition, METH_VARARGS }, - { (char *)"GridBagSizer_GetItemSpan", _wrap_GridBagSizer_GetItemSpan, METH_VARARGS }, - { (char *)"GridBagSizer_SetItemSpan", _wrap_GridBagSizer_SetItemSpan, METH_VARARGS }, - { (char *)"GridBagSizer_FindItem", _wrap_GridBagSizer_FindItem, METH_VARARGS }, - { (char *)"GridBagSizer_FindItemAtPosition", (PyCFunction) _wrap_GridBagSizer_FindItemAtPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GridBagSizer_FindItemAtPoint", (PyCFunction) _wrap_GridBagSizer_FindItemAtPoint, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GridBagSizer_FindItemWithData", (PyCFunction) _wrap_GridBagSizer_FindItemWithData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GridBagSizer_RecalcSizes", (PyCFunction) _wrap_GridBagSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GridBagSizer_CalcMin", (PyCFunction) _wrap_GridBagSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GridBagSizer_CheckForIntersection", _wrap_GridBagSizer_CheckForIntersection, METH_VARARGS }, - { (char *)"GridBagSizer_swigregister", GridBagSizer_swigregister, METH_VARARGS }, - { (char *)"IndividualLayoutConstraint_Set", (PyCFunction) _wrap_IndividualLayoutConstraint_Set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_LeftOf", (PyCFunction) _wrap_IndividualLayoutConstraint_LeftOf, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_RightOf", (PyCFunction) _wrap_IndividualLayoutConstraint_RightOf, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_Above", (PyCFunction) _wrap_IndividualLayoutConstraint_Above, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_Below", (PyCFunction) _wrap_IndividualLayoutConstraint_Below, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_SameAs", (PyCFunction) _wrap_IndividualLayoutConstraint_SameAs, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_PercentOf", (PyCFunction) _wrap_IndividualLayoutConstraint_PercentOf, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_Absolute", (PyCFunction) _wrap_IndividualLayoutConstraint_Absolute, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_Unconstrained", (PyCFunction) _wrap_IndividualLayoutConstraint_Unconstrained, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_AsIs", (PyCFunction) _wrap_IndividualLayoutConstraint_AsIs, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_GetOtherWindow", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_GetMyEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMyEdge, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_SetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_SetEdge, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_SetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_SetValue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_GetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMargin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_SetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_SetMargin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_GetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_GetValue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_GetPercent", (PyCFunction) _wrap_IndividualLayoutConstraint_GetPercent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_GetOtherEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherEdge, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_GetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_GetDone, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_SetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_SetDone, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_GetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_GetRelationship, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_SetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_SetRelationship, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_ResetIfWin", (PyCFunction) _wrap_IndividualLayoutConstraint_ResetIfWin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_SatisfyConstraint", (PyCFunction) _wrap_IndividualLayoutConstraint_SatisfyConstraint, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_GetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetEdge, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_swigregister", IndividualLayoutConstraint_swigregister, METH_VARARGS }, - { (char *)"LayoutConstraints_left_get", (PyCFunction) _wrap_LayoutConstraints_left_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LayoutConstraints_top_get", (PyCFunction) _wrap_LayoutConstraints_top_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LayoutConstraints_right_get", (PyCFunction) _wrap_LayoutConstraints_right_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LayoutConstraints_bottom_get", (PyCFunction) _wrap_LayoutConstraints_bottom_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LayoutConstraints_width_get", (PyCFunction) _wrap_LayoutConstraints_width_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LayoutConstraints_height_get", (PyCFunction) _wrap_LayoutConstraints_height_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LayoutConstraints_centreX_get", (PyCFunction) _wrap_LayoutConstraints_centreX_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LayoutConstraints_centreY_get", (PyCFunction) _wrap_LayoutConstraints_centreY_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_LayoutConstraints", (PyCFunction) _wrap_new_LayoutConstraints, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LayoutConstraints_SatisfyConstraints", (PyCFunction) _wrap_LayoutConstraints_SatisfyConstraints, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LayoutConstraints_AreSatisfied", (PyCFunction) _wrap_LayoutConstraints_AreSatisfied, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LayoutConstraints_swigregister", LayoutConstraints_swigregister, METH_VARARGS }, - { NULL, NULL } -}; - - -/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ - -static void *_p_wxGBSizerItemTo_p_wxSizerItem(void *x) { - return (void *)((wxSizerItem *) ((wxGBSizerItem *) x)); -} -static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { - return (void *)((wxSizer *) ((wxBoxSizer *) x)); -} -static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { - return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); -} -static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { - return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); -} -static void *_p_wxGridSizerTo_p_wxSizer(void *x) { - return (void *)((wxSizer *) ((wxGridSizer *) x)); -} -static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { - return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); -} -static void *_p_wxPySizerTo_p_wxSizer(void *x) { - return (void *)((wxSizer *) ((wxPySizer *) x)); -} -static void *_p_wxStaticBoxSizerTo_p_wxBoxSizer(void *x) { - return (void *)((wxBoxSizer *) ((wxStaticBoxSizer *) x)); -} -static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); -} -static void *_p_wxMenuEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxMenuEvent *) x)); -} -static void *_p_wxCloseEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxCloseEvent *) x)); -} -static void *_p_wxMouseEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxMouseEvent *) x)); -} -static void *_p_wxEraseEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxEraseEvent *) x)); -} -static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); -} -static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); -} -static void *_p_wxScrollEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); -} -static void *_p_wxPyEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxPyEvent *) x)); -} -static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); -} -static void *_p_wxIdleEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxIdleEvent *) x)); -} -static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); -} -static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); -} -static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); -} -static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxIconizeEvent *) x)); -} -static void *_p_wxActivateEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxActivateEvent *) x)); -} -static void *_p_wxSizeEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxSizeEvent *) x)); -} -static void *_p_wxMoveEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxMoveEvent *) x)); -} -static void *_p_wxPaintEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxPaintEvent *) x)); -} -static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); -} -static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); -} -static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); -} -static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); -} -static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); -} -static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); -} -static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); -} -static void *_p_wxFocusEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxFocusEvent *) x)); -} -static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); -} -static void *_p_wxShowEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxShowEvent *) x)); -} -static void *_p_wxCommandEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxCommandEvent *) x)); -} -static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); -} -static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); -} -static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); -} -static void *_p_wxKeyEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxKeyEvent *) x)); -} -static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); -} -static void *_p_wxGridBagSizerTo_p_wxGridSizer(void *x) { - return (void *)((wxGridSizer *) (wxFlexGridSizer *) ((wxGridBagSizer *) x)); -} -static void *_p_wxFlexGridSizerTo_p_wxGridSizer(void *x) { - return (void *)((wxGridSizer *) ((wxFlexGridSizer *) x)); -} -static void *_p_wxGridBagSizerTo_p_wxFlexGridSizer(void *x) { - return (void *)((wxFlexGridSizer *) ((wxGridBagSizer *) x)); -} -static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { - return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); -} -static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { - return (void *)((wxControl *) ((wxControlWithItems *) x)); -} -static void *_p_wxControlTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); -} -static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) ((wxWindow *) x)); -} -static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); -} -static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) ((wxPyApp *) x)); -} -static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) ((wxValidator *) x)); -} -static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); -} -static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); -} -static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) ((wxMenu *) x)); -} -static void *_p_wxANIHandlerTo_p_wxCURHandler(void *x) { - return (void *)((wxCURHandler *) ((wxANIHandler *) x)); -} -static void *_p_wxCURHandlerTo_p_wxICOHandler(void *x) { - return (void *)((wxICOHandler *) ((wxCURHandler *) x)); -} -static void *_p_wxANIHandlerTo_p_wxICOHandler(void *x) { - return (void *)((wxICOHandler *) (wxCURHandler *) ((wxANIHandler *) x)); -} -static void *_p_wxICOHandlerTo_p_wxBMPHandler(void *x) { - return (void *)((wxBMPHandler *) ((wxICOHandler *) x)); -} -static void *_p_wxCURHandlerTo_p_wxBMPHandler(void *x) { - return (void *)((wxBMPHandler *) (wxICOHandler *) ((wxCURHandler *) x)); -} -static void *_p_wxANIHandlerTo_p_wxBMPHandler(void *x) { - return (void *)((wxBMPHandler *) (wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); -} -static void *_p_wxBMPHandlerTo_p_wxImageHandler(void *x) { - return (void *)((wxImageHandler *) ((wxBMPHandler *) x)); -} -static void *_p_wxICOHandlerTo_p_wxImageHandler(void *x) { - return (void *)((wxImageHandler *) (wxBMPHandler *) ((wxICOHandler *) x)); -} -static void *_p_wxCURHandlerTo_p_wxImageHandler(void *x) { - return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); -} -static void *_p_wxANIHandlerTo_p_wxImageHandler(void *x) { - return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); -} -static void *_p_wxPNGHandlerTo_p_wxImageHandler(void *x) { - return (void *)((wxImageHandler *) ((wxPNGHandler *) x)); -} -static void *_p_wxGIFHandlerTo_p_wxImageHandler(void *x) { - return (void *)((wxImageHandler *) ((wxGIFHandler *) x)); -} -static void *_p_wxPCXHandlerTo_p_wxImageHandler(void *x) { - return (void *)((wxImageHandler *) ((wxPCXHandler *) x)); -} -static void *_p_wxJPEGHandlerTo_p_wxImageHandler(void *x) { - return (void *)((wxImageHandler *) ((wxJPEGHandler *) x)); -} -static void *_p_wxPNMHandlerTo_p_wxImageHandler(void *x) { - return (void *)((wxImageHandler *) ((wxPNMHandler *) x)); -} -static void *_p_wxXPMHandlerTo_p_wxImageHandler(void *x) { - return (void *)((wxImageHandler *) ((wxXPMHandler *) x)); -} -static void *_p_wxTIFFHandlerTo_p_wxImageHandler(void *x) { - return (void *)((wxImageHandler *) ((wxTIFFHandler *) x)); -} -static void *_p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler(void *x) { - return (void *)((wxFileSystemHandler *) ((wxPyFileSystemHandler *) x)); -} -static void *_p_wxInternetFSHandlerTo_p_wxFileSystemHandler(void *x) { - return (void *)((wxFileSystemHandler *) ((wxInternetFSHandler *) x)); -} -static void *_p_wxZipFSHandlerTo_p_wxFileSystemHandler(void *x) { - return (void *)((wxFileSystemHandler *) ((wxZipFSHandler *) x)); -} -static void *_p_wxMemoryFSHandlerTo_p_wxFileSystemHandler(void *x) { - return (void *)((wxFileSystemHandler *) ((wxMemoryFSHandler *) x)); -} -static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); -} -static void *_p_wxMenuEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); -} -static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); -} -static void *_p_wxEraseEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); -} -static void *_p_wxMouseEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); -} -static void *_p_wxCloseEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); -} -static void *_p_wxValidatorTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); -} -static void *_p_wxPyValidatorTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); -} -static void *_p_wxMenuBarTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); -} -static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); -} -static void *_p_wxSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxSizer *) x)); -} -static void *_p_wxBoxSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); -} -static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); -} -static void *_p_wxMenuTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); -} -static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); -} -static void *_p_wxImageTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxImage *) x)); -} -static void *_p_wxScrollEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); -} -static void *_p_wxNotifyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); -} -static void *_p_wxPyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); -} -static void *_p_wxWindowTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); -} -static void *_p_wxControlTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); -} -static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxAcceleratorTable *) x)); -} -static void *_p_wxGridSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); -} -static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); -} -static void *_p_wxPyAppTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); -} -static void *_p_wxEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxEvent *) x)); -} -static void *_p_wxActivateEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); -} -static void *_p_wxMoveEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); -} -static void *_p_wxSizeEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); -} -static void *_p_wxIconizeEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); -} -static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); -} -static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); -} -static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); -} -static void *_p_wxIdleEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); -} -static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); -} -static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxEvtHandler *) x)); -} -static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); -} -static void *_p_wxImageHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxImageHandler *) x)); -} -static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); -} -static void *_p_wxICOHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); -} -static void *_p_wxCURHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); -} -static void *_p_wxANIHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); -} -static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); -} -static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); -} -static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); -} -static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); -} -static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); -} -static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); -} -static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); -} -static void *_p_wxPaintEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); -} -static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); -} -static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); -} -static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); -} -static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); -} -static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); -} -static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxLayoutConstraints *) x)); -} -static void *_p_wxFileSystemTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxFileSystem *) x)); -} -static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); -} -static void *_p_wxFocusEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); -} -static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); -} -static void *_p_wxSizerItemTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxSizerItem *) x)); -} -static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); -} -static void *_p_wxShowEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); -} -static void *_p_wxFSFileTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxFSFile *) x)); -} -static void *_p_wxCommandEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); -} -static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); -} -static void *_p_wxKeyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); -} -static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); -} -static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); -} -static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); -} -static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); -} -static void *_p_wxMenuItemTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxMenuItem *) x)); -} -static void *_p_wxPySizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); -} -static void *_p_wxControlTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) ((wxControl *) x)); -} -static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); -} -static void *_p_wxMenuBarTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) ((wxMenuBar *) x)); -} -static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); -} -static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); -} -static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); -} -static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); -} -static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); -} -static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); -} -static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); -} -static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); -} -static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { - return (void *)((wxValidator *) ((wxPyValidator *) x)); -} -static swig_type_info _swigt__p_wxLayoutConstraints[] = {{"_p_wxLayoutConstraints", 0, "wxLayoutConstraints *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxRealPoint[] = {{"_p_wxRealPoint", 0, "wxRealPoint *", 0, 0, 0, 0},{"_p_wxRealPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSizerItem[] = {{"_p_wxSizerItem", 0, "wxSizerItem *", 0, 0, 0, 0},{"_p_wxSizerItem", 0, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxSizerItem, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxGBSizerItem[] = {{"_p_wxGBSizerItem", 0, "wxGBSizerItem *", 0, 0, 0, 0},{"_p_wxGBSizerItem", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxScrollEvent[] = {{"_p_wxScrollEvent", 0, "wxScrollEvent *", 0, 0, 0, 0},{"_p_wxScrollEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxIndividualLayoutConstraint[] = {{"_p_wxIndividualLayoutConstraint", 0, "wxIndividualLayoutConstraint *", 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSizer[] = {{"_p_wxSizer", 0, "wxSizer *", 0, 0, 0, 0},{"_p_wxSizer", 0, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxSizer, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxBoxSizer[] = {{"_p_wxBoxSizer", 0, "wxBoxSizer *", 0, 0, 0, 0},{"_p_wxBoxSizer", 0, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxBoxSizer, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxStaticBoxSizer[] = {{"_p_wxStaticBoxSizer", 0, "wxStaticBoxSizer *", 0, 0, 0, 0},{"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxGridBagSizer[] = {{"_p_wxGridBagSizer", 0, "wxGridBagSizer *", 0, 0, 0, 0},{"_p_wxGridBagSizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxAcceleratorEntry[] = {{"_p_wxAcceleratorEntry", 0, "wxAcceleratorEntry *", 0, 0, 0, 0},{"_p_wxAcceleratorEntry", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxUpdateUIEvent[] = {{"_p_wxUpdateUIEvent", 0, "wxUpdateUIEvent *", 0, 0, 0, 0},{"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMenu[] = {{"_p_wxMenu", 0, "wxMenu *", 0, 0, 0, 0},{"_p_wxMenu", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxGridSizer[] = {{"_p_wxGridSizer", 0, "wxGridSizer *", 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxGridSizer, 0, 0, 0, 0, 0},{"_p_wxGridSizer", 0, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxGridSizer, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFlexGridSizer[] = {{"_p_wxFlexGridSizer", 0, "wxFlexGridSizer *", 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxFlexGridSizer, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxInitDialogEvent[] = {{"_p_wxInitDialogEvent", 0, "wxInitDialogEvent *", 0, 0, 0, 0},{"_p_wxInitDialogEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxItemContainer[] = {{"_p_wxItemContainer", 0, "wxItemContainer *", 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxItemContainer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxNcPaintEvent[] = {{"_p_wxNcPaintEvent", 0, "wxNcPaintEvent *", 0, 0, 0, 0},{"_p_wxNcPaintEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPaintEvent[] = {{"_p_wxPaintEvent", 0, "wxPaintEvent *", 0, 0, 0, 0},{"_p_wxPaintEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSysColourChangedEvent[] = {{"_p_wxSysColourChangedEvent", 0, "wxSysColourChangedEvent *", 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMouseCaptureChangedEvent[] = {{"_p_wxMouseCaptureChangedEvent", 0, "wxMouseCaptureChangedEvent *", 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxDisplayChangedEvent[] = {{"_p_wxDisplayChangedEvent", 0, "wxDisplayChangedEvent *", 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPaletteChangedEvent[] = {{"_p_wxPaletteChangedEvent", 0, "wxPaletteChangedEvent *", 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0, 0, 0, 0},{"_p_wxControl", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0, 0, 0, 0},{"_p_wxFont", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMenuBarBase[] = {{"_p_wxMenuBarBase", 0, "wxMenuBarBase *", 0, 0, 0, 0},{"_p_wxMenuBarBase", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSetCursorEvent[] = {{"_p_wxSetCursorEvent", 0, "wxSetCursorEvent *", 0, 0, 0, 0},{"_p_wxSetCursorEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFSFile[] = {{"_p_wxFSFile", 0, "wxFSFile *", 0, 0, 0, 0},{"_p_wxFSFile", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxCaret[] = {{"_p_wxCaret", 0, "wxCaret *", 0, 0, 0, 0},{"_p_wxCaret", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0, 0, 0, 0},{"_p_wxRegion", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPoint2D[] = {{"_p_wxPoint2D", 0, "wxPoint2D *", 0, 0, 0, 0},{"_p_wxPoint2D", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0, 0, 0, 0},{"_p_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0, 0, 0, 0},{"_p_wxSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0, 0, 0, 0},{"_p_wxDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPySizer[] = {{"_p_wxPySizer", 0, "wxPySizer *", 0, 0, 0, 0},{"_p_wxPySizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxVisualAttributes[] = {{"_p_wxVisualAttributes", 0, "wxVisualAttributes *", 0, 0, 0, 0},{"_p_wxVisualAttributes", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxNotifyEvent[] = {{"_p_wxNotifyEvent", 0, "wxNotifyEvent *", 0, 0, 0, 0},{"_p_wxNotifyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyEvent[] = {{"_p_wxPyEvent", 0, "wxPyEvent *", 0, 0, 0, 0},{"_p_wxPyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPropagationDisabler[] = {{"_p_wxPropagationDisabler", 0, "wxPropagationDisabler *", 0, 0, 0, 0},{"_p_wxPropagationDisabler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxAppTraits[] = {{"_p_wxAppTraits", 0, "wxAppTraits *", 0, 0, 0, 0},{"_p_wxAppTraits", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0, 0, 0, 0},{"_p_wxArrayString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxShowEvent[] = {{"_p_wxShowEvent", 0, "wxShowEvent *", 0, 0, 0, 0},{"_p_wxShowEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxToolTip[] = {{"_p_wxToolTip", 0, "wxToolTip *", 0, 0, 0, 0},{"_p_wxToolTip", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMaximizeEvent[] = {{"_p_wxMaximizeEvent", 0, "wxMaximizeEvent *", 0, 0, 0, 0},{"_p_wxMaximizeEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxIconizeEvent[] = {{"_p_wxIconizeEvent", 0, "wxIconizeEvent *", 0, 0, 0, 0},{"_p_wxIconizeEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxActivateEvent[] = {{"_p_wxActivateEvent", 0, "wxActivateEvent *", 0, 0, 0, 0},{"_p_wxActivateEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMoveEvent[] = {{"_p_wxMoveEvent", 0, "wxMoveEvent *", 0, 0, 0, 0},{"_p_wxMoveEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSizeEvent[] = {{"_p_wxSizeEvent", 0, "wxSizeEvent *", 0, 0, 0, 0},{"_p_wxSizeEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxQueryNewPaletteEvent[] = {{"_p_wxQueryNewPaletteEvent", 0, "wxQueryNewPaletteEvent *", 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxWindowCreateEvent[] = {{"_p_wxWindowCreateEvent", 0, "wxWindowCreateEvent *", 0, 0, 0, 0},{"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxIdleEvent[] = {{"_p_wxIdleEvent", 0, "wxIdleEvent *", 0, 0, 0, 0},{"_p_wxIdleEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMenuItem[] = {{"_p_wxMenuItem", 0, "wxMenuItem *", 0, 0, 0, 0},{"_p_wxMenuItem", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxStaticBox[] = {{"_p_wxStaticBox", 0, "wxStaticBox *", 0, 0, 0, 0},{"_p_wxStaticBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0, 0, 0, 0},{"_p_long", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxTIFFHandler[] = {{"_p_wxTIFFHandler", 0, "wxTIFFHandler *", 0, 0, 0, 0},{"_p_wxTIFFHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxXPMHandler[] = {{"_p_wxXPMHandler", 0, "wxXPMHandler *", 0, 0, 0, 0},{"_p_wxXPMHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPNMHandler[] = {{"_p_wxPNMHandler", 0, "wxPNMHandler *", 0, 0, 0, 0},{"_p_wxPNMHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxJPEGHandler[] = {{"_p_wxJPEGHandler", 0, "wxJPEGHandler *", 0, 0, 0, 0},{"_p_wxJPEGHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPCXHandler[] = {{"_p_wxPCXHandler", 0, "wxPCXHandler *", 0, 0, 0, 0},{"_p_wxPCXHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxGIFHandler[] = {{"_p_wxGIFHandler", 0, "wxGIFHandler *", 0, 0, 0, 0},{"_p_wxGIFHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPNGHandler[] = {{"_p_wxPNGHandler", 0, "wxPNGHandler *", 0, 0, 0, 0},{"_p_wxPNGHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxANIHandler[] = {{"_p_wxANIHandler", 0, "wxANIHandler *", 0, 0, 0, 0},{"_p_wxANIHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMemoryFSHandler[] = {{"_p_wxMemoryFSHandler", 0, "wxMemoryFSHandler *", 0, 0, 0, 0},{"_p_wxMemoryFSHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxCURHandler[] = {{"_p_wxCURHandler", 0, "wxCURHandler *", 0, 0, 0, 0},{"_p_wxCURHandler", 0, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxCURHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxICOHandler[] = {{"_p_wxICOHandler", 0, "wxICOHandler *", 0, 0, 0, 0},{"_p_wxICOHandler", 0, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxICOHandler, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxICOHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxBMPHandler[] = {{"_p_wxBMPHandler", 0, "wxBMPHandler *", 0, 0, 0, 0},{"_p_wxBMPHandler", 0, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxBMPHandler, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxBMPHandler, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxBMPHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxImageHandler[] = {{"_p_wxImageHandler", 0, "wxImageHandler *", 0, 0, 0, 0},{"_p_wxImageHandler", 0, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFileSystemHandler[] = {{"_p_wxFileSystemHandler", 0, "wxFileSystemHandler *", 0, 0, 0, 0},{"_p_wxFileSystemHandler", 0, 0, 0, 0, 0, 0},{"_p_wxPyFileSystemHandler", _p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler, 0, 0, 0, 0, 0},{"_p_wxInternetFSHandler", _p_wxInternetFSHandlerTo_p_wxFileSystemHandler, 0, 0, 0, 0, 0},{"_p_wxZipFSHandler", _p_wxZipFSHandlerTo_p_wxFileSystemHandler, 0, 0, 0, 0, 0},{"_p_wxMemoryFSHandler", _p_wxMemoryFSHandlerTo_p_wxFileSystemHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyFileSystemHandler[] = {{"_p_wxPyFileSystemHandler", 0, "wxPyFileSystemHandler *", 0, 0, 0, 0},{"_p_wxPyFileSystemHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxInternetFSHandler[] = {{"_p_wxInternetFSHandler", 0, "wxInternetFSHandler *", 0, 0, 0, 0},{"_p_wxInternetFSHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxZipFSHandler[] = {{"_p_wxZipFSHandler", 0, "wxZipFSHandler *", 0, 0, 0, 0},{"_p_wxZipFSHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0, 0, 0, 0},{"_p_wxRect", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxGBSpan[] = {{"_p_wxGBSpan", 0, "wxGBSpan *", 0, 0, 0, 0},{"_p_wxGBSpan", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPropagateOnce[] = {{"_p_wxPropagateOnce", 0, "wxPropagateOnce *", 0, 0, 0, 0},{"_p_wxPropagateOnce", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxAcceleratorTable[] = {{"_p_wxAcceleratorTable", 0, "wxAcceleratorTable *", 0, 0, 0, 0},{"_p_wxAcceleratorTable", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxGBPosition[] = {{"_p_wxGBPosition", 0, "wxGBPosition *", 0, 0, 0, 0},{"_p_wxGBPosition", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0, 0, 0, 0},{"_p_wxImage", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFrame[] = {{"_p_wxFrame", 0, "wxFrame *", 0, 0, 0, 0},{"_p_wxFrame", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxScrollWinEvent[] = {{"_p_wxScrollWinEvent", 0, "wxScrollWinEvent *", 0, 0, 0, 0},{"_p_wxScrollWinEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxImageHistogram[] = {{"_p_wxImageHistogram", 0, "wxImageHistogram *", 0, 0, 0, 0},{"_p_wxImageHistogram", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "unsigned char *|byte *", 0, 0, 0, 0},{"_p_unsigned_char", 0, 0, 0, 0, 0, 0},{"_p_byte", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0, 0, 0, 0},{"_p_wxPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0, 0, 0, 0},{"_p_wxCursor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyInputStream[] = {{"_p_wxPyInputStream", 0, "wxPyInputStream *", 0, 0, 0, 0},{"_p_wxPyInputStream", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxOutputStream[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0, 0, 0, 0},{"_p_wxOutputStream", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxInputStream[] = {{"_p_wxInputStream", 0, "wxInputStream *", 0, 0, 0, 0},{"_p_wxInputStream", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxDateTime[] = {{"_p_wxDateTime", 0, "wxDateTime *", 0, 0, 0, 0},{"_p_wxDateTime", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0, 0, 0, 0},{"_p_wxKeyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxNavigationKeyEvent[] = {{"_p_wxNavigationKeyEvent", 0, "wxNavigationKeyEvent *", 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxWindowDestroyEvent[] = {{"_p_wxWindowDestroyEvent", 0, "wxWindowDestroyEvent *", 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMenuBar[] = {{"_p_wxMenuBar", 0, "wxMenuBar *", 0, 0, 0, 0},{"_p_wxMenuBar", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFileSystem[] = {{"_p_wxFileSystem", 0, "wxFileSystem *", 0, 0, 0, 0},{"_p_wxFileSystem", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0, 0, 0, 0},{"_p_wxBitmap", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMenuEvent[] = {{"_p_wxMenuEvent", 0, "wxMenuEvent *", 0, 0, 0, 0},{"_p_wxMenuEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxContextMenuEvent[] = {{"_p_wxContextMenuEvent", 0, "wxContextMenuEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0, 0, 0, 0},{"_p_unsigned_char", 0, 0, 0, 0, 0, 0},{"_p_byte", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxCloseEvent[] = {{"_p_wxCloseEvent", 0, "wxCloseEvent *", 0, 0, 0, 0},{"_p_wxCloseEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxEraseEvent[] = {{"_p_wxEraseEvent", 0, "wxEraseEvent *", 0, 0, 0, 0},{"_p_wxEraseEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMouseEvent[] = {{"_p_wxMouseEvent", 0, "wxMouseEvent *", 0, 0, 0, 0},{"_p_wxMouseEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyApp[] = {{"_p_wxPyApp", 0, "wxPyApp *", 0, 0, 0, 0},{"_p_wxPyApp", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", 0, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyCommandEvent[] = {{"_p_wxPyCommandEvent", 0, "wxPyCommandEvent *", 0, 0, 0, 0},{"_p_wxPyCommandEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyDropTarget[] = {{"_p_wxPyDropTarget", 0, "wxPyDropTarget *", 0, 0, 0, 0},{"_p_wxPyDropTarget", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxChildFocusEvent[] = {{"_p_wxChildFocusEvent", 0, "wxChildFocusEvent *", 0, 0, 0, 0},{"_p_wxChildFocusEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFocusEvent[] = {{"_p_wxFocusEvent", 0, "wxFocusEvent *", 0, 0, 0, 0},{"_p_wxFocusEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxDropFilesEvent[] = {{"_p_wxDropFilesEvent", 0, "wxDropFilesEvent *", 0, 0, 0, 0},{"_p_wxDropFilesEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxControlWithItems[] = {{"_p_wxControlWithItems", 0, "wxControlWithItems *", 0, 0, 0, 0},{"_p_wxControlWithItems", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0, 0, 0, 0},{"_p_wxColour", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxValidator[] = {{"_p_wxValidator", 0, "wxValidator *", 0, 0, 0, 0},{"_p_wxValidator", 0, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxValidator, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyValidator[] = {{"_p_wxPyValidator", 0, "wxPyValidator *", 0, 0, 0, 0},{"_p_wxPyValidator", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; - -static swig_type_info *swig_types_initial[] = { -_swigt__p_wxLayoutConstraints, -_swigt__p_wxRealPoint, -_swigt__p_wxSizerItem, -_swigt__p_wxGBSizerItem, -_swigt__p_wxScrollEvent, -_swigt__p_wxIndividualLayoutConstraint, -_swigt__p_wxSizer, -_swigt__p_wxBoxSizer, -_swigt__p_wxStaticBoxSizer, -_swigt__p_wxGridBagSizer, -_swigt__p_wxAcceleratorEntry, -_swigt__p_wxUpdateUIEvent, -_swigt__p_wxMenu, -_swigt__p_wxEvent, -_swigt__p_wxGridSizer, -_swigt__p_wxFlexGridSizer, -_swigt__p_wxInitDialogEvent, -_swigt__p_wxItemContainer, -_swigt__p_wxNcPaintEvent, -_swigt__p_wxPaintEvent, -_swigt__p_wxSysColourChangedEvent, -_swigt__p_wxMouseCaptureChangedEvent, -_swigt__p_wxDisplayChangedEvent, -_swigt__p_wxPaletteChangedEvent, -_swigt__p_wxControl, -_swigt__p_wxFont, -_swigt__p_wxMenuBarBase, -_swigt__p_wxSetCursorEvent, -_swigt__p_wxFSFile, -_swigt__p_wxCaret, -_swigt__p_wxRegion, -_swigt__p_wxPoint2D, -_swigt__p_int, -_swigt__p_wxSize, -_swigt__p_wxDC, -_swigt__p_wxPySizer, -_swigt__p_wxVisualAttributes, -_swigt__p_wxNotifyEvent, -_swigt__p_wxPyEvent, -_swigt__p_wxPropagationDisabler, -_swigt__p_wxAppTraits, -_swigt__p_wxArrayString, -_swigt__p_wxShowEvent, -_swigt__p_wxToolTip, -_swigt__p_wxMaximizeEvent, -_swigt__p_wxIconizeEvent, -_swigt__p_wxActivateEvent, -_swigt__p_wxMoveEvent, -_swigt__p_wxSizeEvent, -_swigt__p_wxQueryNewPaletteEvent, -_swigt__p_wxWindowCreateEvent, -_swigt__p_wxIdleEvent, -_swigt__p_wxMenuItem, -_swigt__p_wxStaticBox, -_swigt__p_long, -_swigt__p_wxTIFFHandler, -_swigt__p_wxXPMHandler, -_swigt__p_wxPNMHandler, -_swigt__p_wxJPEGHandler, -_swigt__p_wxPCXHandler, -_swigt__p_wxGIFHandler, -_swigt__p_wxPNGHandler, -_swigt__p_wxANIHandler, -_swigt__p_wxMemoryFSHandler, -_swigt__p_wxEvtHandler, -_swigt__p_wxCURHandler, -_swigt__p_wxICOHandler, -_swigt__p_wxBMPHandler, -_swigt__p_wxImageHandler, -_swigt__p_wxFileSystemHandler, -_swigt__p_wxPyFileSystemHandler, -_swigt__p_wxInternetFSHandler, -_swigt__p_wxZipFSHandler, -_swigt__p_wxRect, -_swigt__p_wxGBSpan, -_swigt__p_wxPropagateOnce, -_swigt__p_wxAcceleratorTable, -_swigt__p_char, -_swigt__p_wxGBPosition, -_swigt__p_wxImage, -_swigt__p_wxFrame, -_swigt__p_wxScrollWinEvent, -_swigt__p_wxImageHistogram, -_swigt__p_byte, -_swigt__p_wxPoint, -_swigt__p_wxCursor, -_swigt__p_wxObject, -_swigt__p_wxPyInputStream, -_swigt__p_wxOutputStream, -_swigt__p_wxInputStream, -_swigt__p_wxDateTime, -_swigt__p_wxKeyEvent, -_swigt__p_wxNavigationKeyEvent, -_swigt__p_wxWindowDestroyEvent, -_swigt__p_wxWindow, -_swigt__p_wxMenuBar, -_swigt__p_wxFileSystem, -_swigt__p_wxBitmap, -_swigt__p_wxMenuEvent, -_swigt__p_wxContextMenuEvent, -_swigt__p_unsigned_char, -_swigt__p_wxCloseEvent, -_swigt__p_wxEraseEvent, -_swigt__p_wxMouseEvent, -_swigt__p_wxPyApp, -_swigt__p_wxCommandEvent, -_swigt__p_wxPyCommandEvent, -_swigt__p_wxPyDropTarget, -_swigt__p_wxChildFocusEvent, -_swigt__p_wxFocusEvent, -_swigt__p_wxDropFilesEvent, -_swigt__p_wxControlWithItems, -_swigt__p_wxColour, -_swigt__p_wxValidator, -_swigt__p_wxPyValidator, -0 -}; - - -/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ - -static swig_const_info swig_const_table[] = { -{0}}; - -#ifdef __cplusplus -} -#endif - -#ifdef __cplusplus -extern "C" -#endif -SWIGEXPORT(void) SWIG_init(void) { - static PyObject *SWIG_globals = 0; - static int typeinit = 0; - PyObject *m, *d; - int i; - if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); - m = Py_InitModule((char *) SWIG_name, SwigMethods); - d = PyModule_GetDict(m); - - if (!typeinit) { - for (i = 0; swig_types_initial[i]; i++) { - swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); - } - typeinit = 1; - } - SWIG_InstallConstants(d,swig_const_table); - - -#ifndef wxPyUSE_EXPORT - // Make our API structure a CObject so other modules can import it - // from this module. - PyObject* cobj = PyCObject_FromVoidPtr(&API, NULL); - PyDict_SetItemString(d,"_wxPyCoreAPI", cobj); - Py_XDECREF(cobj); -#endif - - PyDict_SetItemString(d,"NOT_FOUND", SWIG_FromInt((int)wxNOT_FOUND)); - PyDict_SetItemString(d,"VSCROLL", SWIG_FromInt((int)wxVSCROLL)); - PyDict_SetItemString(d,"HSCROLL", SWIG_FromInt((int)wxHSCROLL)); - PyDict_SetItemString(d,"CAPTION", SWIG_FromInt((int)wxCAPTION)); - PyDict_SetItemString(d,"DOUBLE_BORDER", SWIG_FromInt((int)wxDOUBLE_BORDER)); - PyDict_SetItemString(d,"SUNKEN_BORDER", SWIG_FromInt((int)wxSUNKEN_BORDER)); - PyDict_SetItemString(d,"RAISED_BORDER", SWIG_FromInt((int)wxRAISED_BORDER)); - PyDict_SetItemString(d,"BORDER", SWIG_FromInt((int)wxBORDER)); - PyDict_SetItemString(d,"SIMPLE_BORDER", SWIG_FromInt((int)wxSIMPLE_BORDER)); - PyDict_SetItemString(d,"STATIC_BORDER", SWIG_FromInt((int)wxSTATIC_BORDER)); - PyDict_SetItemString(d,"TRANSPARENT_WINDOW", SWIG_FromInt((int)wxTRANSPARENT_WINDOW)); - PyDict_SetItemString(d,"NO_BORDER", SWIG_FromInt((int)wxNO_BORDER)); - PyDict_SetItemString(d,"TAB_TRAVERSAL", SWIG_FromInt((int)wxTAB_TRAVERSAL)); - PyDict_SetItemString(d,"WANTS_CHARS", SWIG_FromInt((int)wxWANTS_CHARS)); - PyDict_SetItemString(d,"POPUP_WINDOW", SWIG_FromInt((int)wxPOPUP_WINDOW)); - PyDict_SetItemString(d,"CENTER_FRAME", SWIG_FromInt((int)wxCENTER_FRAME)); - PyDict_SetItemString(d,"CENTRE_ON_SCREEN", SWIG_FromInt((int)wxCENTRE_ON_SCREEN)); - PyDict_SetItemString(d,"CENTER_ON_SCREEN", SWIG_FromInt((int)wxCENTER_ON_SCREEN)); - PyDict_SetItemString(d,"ED_CLIENT_MARGIN", SWIG_FromInt((int)wxED_CLIENT_MARGIN)); - PyDict_SetItemString(d,"ED_BUTTONS_BOTTOM", SWIG_FromInt((int)wxED_BUTTONS_BOTTOM)); - PyDict_SetItemString(d,"ED_BUTTONS_RIGHT", SWIG_FromInt((int)wxED_BUTTONS_RIGHT)); - PyDict_SetItemString(d,"ED_STATIC_LINE", SWIG_FromInt((int)wxED_STATIC_LINE)); - PyDict_SetItemString(d,"EXT_DIALOG_STYLE", SWIG_FromInt((int)wxEXT_DIALOG_STYLE)); - PyDict_SetItemString(d,"CLIP_CHILDREN", SWIG_FromInt((int)wxCLIP_CHILDREN)); - PyDict_SetItemString(d,"CLIP_SIBLINGS", SWIG_FromInt((int)wxCLIP_SIBLINGS)); - PyDict_SetItemString(d,"ALWAYS_SHOW_SB", SWIG_FromInt((int)wxALWAYS_SHOW_SB)); - PyDict_SetItemString(d,"RETAINED", SWIG_FromInt((int)wxRETAINED)); - PyDict_SetItemString(d,"BACKINGSTORE", SWIG_FromInt((int)wxBACKINGSTORE)); - PyDict_SetItemString(d,"COLOURED", SWIG_FromInt((int)wxCOLOURED)); - PyDict_SetItemString(d,"FIXED_LENGTH", SWIG_FromInt((int)wxFIXED_LENGTH)); - PyDict_SetItemString(d,"LB_NEEDED_SB", SWIG_FromInt((int)wxLB_NEEDED_SB)); - PyDict_SetItemString(d,"LB_ALWAYS_SB", SWIG_FromInt((int)wxLB_ALWAYS_SB)); - PyDict_SetItemString(d,"LB_SORT", SWIG_FromInt((int)wxLB_SORT)); - PyDict_SetItemString(d,"LB_SINGLE", SWIG_FromInt((int)wxLB_SINGLE)); - PyDict_SetItemString(d,"LB_MULTIPLE", SWIG_FromInt((int)wxLB_MULTIPLE)); - PyDict_SetItemString(d,"LB_EXTENDED", SWIG_FromInt((int)wxLB_EXTENDED)); - PyDict_SetItemString(d,"LB_OWNERDRAW", SWIG_FromInt((int)wxLB_OWNERDRAW)); - PyDict_SetItemString(d,"LB_HSCROLL", SWIG_FromInt((int)wxLB_HSCROLL)); - PyDict_SetItemString(d,"PROCESS_ENTER", SWIG_FromInt((int)wxPROCESS_ENTER)); - PyDict_SetItemString(d,"PASSWORD", SWIG_FromInt((int)wxPASSWORD)); - PyDict_SetItemString(d,"CB_SIMPLE", SWIG_FromInt((int)wxCB_SIMPLE)); - PyDict_SetItemString(d,"CB_DROPDOWN", SWIG_FromInt((int)wxCB_DROPDOWN)); - PyDict_SetItemString(d,"CB_SORT", SWIG_FromInt((int)wxCB_SORT)); - PyDict_SetItemString(d,"CB_READONLY", SWIG_FromInt((int)wxCB_READONLY)); - PyDict_SetItemString(d,"RA_HORIZONTAL", SWIG_FromInt((int)wxRA_HORIZONTAL)); - PyDict_SetItemString(d,"RA_VERTICAL", SWIG_FromInt((int)wxRA_VERTICAL)); - PyDict_SetItemString(d,"RA_SPECIFY_ROWS", SWIG_FromInt((int)wxRA_SPECIFY_ROWS)); - PyDict_SetItemString(d,"RA_SPECIFY_COLS", SWIG_FromInt((int)wxRA_SPECIFY_COLS)); - PyDict_SetItemString(d,"RB_GROUP", SWIG_FromInt((int)wxRB_GROUP)); - PyDict_SetItemString(d,"RB_SINGLE", SWIG_FromInt((int)wxRB_SINGLE)); - PyDict_SetItemString(d,"SL_HORIZONTAL", SWIG_FromInt((int)wxSL_HORIZONTAL)); - PyDict_SetItemString(d,"SL_VERTICAL", SWIG_FromInt((int)wxSL_VERTICAL)); - PyDict_SetItemString(d,"SL_AUTOTICKS", SWIG_FromInt((int)wxSL_AUTOTICKS)); - PyDict_SetItemString(d,"SL_LABELS", SWIG_FromInt((int)wxSL_LABELS)); - PyDict_SetItemString(d,"SL_LEFT", SWIG_FromInt((int)wxSL_LEFT)); - PyDict_SetItemString(d,"SL_TOP", SWIG_FromInt((int)wxSL_TOP)); - PyDict_SetItemString(d,"SL_RIGHT", SWIG_FromInt((int)wxSL_RIGHT)); - PyDict_SetItemString(d,"SL_BOTTOM", SWIG_FromInt((int)wxSL_BOTTOM)); - PyDict_SetItemString(d,"SL_BOTH", SWIG_FromInt((int)wxSL_BOTH)); - PyDict_SetItemString(d,"SL_SELRANGE", SWIG_FromInt((int)wxSL_SELRANGE)); - PyDict_SetItemString(d,"SB_HORIZONTAL", SWIG_FromInt((int)wxSB_HORIZONTAL)); - PyDict_SetItemString(d,"SB_VERTICAL", SWIG_FromInt((int)wxSB_VERTICAL)); - PyDict_SetItemString(d,"ST_SIZEGRIP", SWIG_FromInt((int)wxST_SIZEGRIP)); - PyDict_SetItemString(d,"ST_NO_AUTORESIZE", SWIG_FromInt((int)wxST_NO_AUTORESIZE)); - PyDict_SetItemString(d,"FLOOD_SURFACE", SWIG_FromInt((int)wxFLOOD_SURFACE)); - PyDict_SetItemString(d,"FLOOD_BORDER", SWIG_FromInt((int)wxFLOOD_BORDER)); - PyDict_SetItemString(d,"ODDEVEN_RULE", SWIG_FromInt((int)wxODDEVEN_RULE)); - PyDict_SetItemString(d,"WINDING_RULE", SWIG_FromInt((int)wxWINDING_RULE)); - PyDict_SetItemString(d,"TOOL_TOP", SWIG_FromInt((int)wxTOOL_TOP)); - PyDict_SetItemString(d,"TOOL_BOTTOM", SWIG_FromInt((int)wxTOOL_BOTTOM)); - PyDict_SetItemString(d,"TOOL_LEFT", SWIG_FromInt((int)wxTOOL_LEFT)); - PyDict_SetItemString(d,"TOOL_RIGHT", SWIG_FromInt((int)wxTOOL_RIGHT)); - PyDict_SetItemString(d,"OK", SWIG_FromInt((int)wxOK)); - PyDict_SetItemString(d,"YES_NO", SWIG_FromInt((int)wxYES_NO)); - PyDict_SetItemString(d,"CANCEL", SWIG_FromInt((int)wxCANCEL)); - PyDict_SetItemString(d,"YES", SWIG_FromInt((int)wxYES)); - PyDict_SetItemString(d,"NO", SWIG_FromInt((int)wxNO)); - PyDict_SetItemString(d,"NO_DEFAULT", SWIG_FromInt((int)wxNO_DEFAULT)); - PyDict_SetItemString(d,"YES_DEFAULT", SWIG_FromInt((int)wxYES_DEFAULT)); - PyDict_SetItemString(d,"ICON_EXCLAMATION", SWIG_FromInt((int)wxICON_EXCLAMATION)); - PyDict_SetItemString(d,"ICON_HAND", SWIG_FromInt((int)wxICON_HAND)); - PyDict_SetItemString(d,"ICON_QUESTION", SWIG_FromInt((int)wxICON_QUESTION)); - PyDict_SetItemString(d,"ICON_INFORMATION", SWIG_FromInt((int)wxICON_INFORMATION)); - PyDict_SetItemString(d,"ICON_STOP", SWIG_FromInt((int)wxICON_STOP)); - PyDict_SetItemString(d,"ICON_ASTERISK", SWIG_FromInt((int)wxICON_ASTERISK)); - PyDict_SetItemString(d,"ICON_MASK", SWIG_FromInt((int)wxICON_MASK)); - PyDict_SetItemString(d,"ICON_WARNING", SWIG_FromInt((int)wxICON_WARNING)); - PyDict_SetItemString(d,"ICON_ERROR", SWIG_FromInt((int)wxICON_ERROR)); - PyDict_SetItemString(d,"FORWARD", SWIG_FromInt((int)wxFORWARD)); - PyDict_SetItemString(d,"BACKWARD", SWIG_FromInt((int)wxBACKWARD)); - PyDict_SetItemString(d,"RESET", SWIG_FromInt((int)wxRESET)); - PyDict_SetItemString(d,"HELP", SWIG_FromInt((int)wxHELP)); - PyDict_SetItemString(d,"MORE", SWIG_FromInt((int)wxMORE)); - PyDict_SetItemString(d,"SETUP", SWIG_FromInt((int)wxSETUP)); - PyDict_SetItemString(d,"SIZE_AUTO_WIDTH", SWIG_FromInt((int)wxSIZE_AUTO_WIDTH)); - PyDict_SetItemString(d,"SIZE_AUTO_HEIGHT", SWIG_FromInt((int)wxSIZE_AUTO_HEIGHT)); - PyDict_SetItemString(d,"SIZE_AUTO", SWIG_FromInt((int)wxSIZE_AUTO)); - PyDict_SetItemString(d,"SIZE_USE_EXISTING", SWIG_FromInt((int)wxSIZE_USE_EXISTING)); - PyDict_SetItemString(d,"SIZE_ALLOW_MINUS_ONE", SWIG_FromInt((int)wxSIZE_ALLOW_MINUS_ONE)); - PyDict_SetItemString(d,"PORTRAIT", SWIG_FromInt((int)wxPORTRAIT)); - PyDict_SetItemString(d,"LANDSCAPE", SWIG_FromInt((int)wxLANDSCAPE)); - PyDict_SetItemString(d,"PRINT_QUALITY_HIGH", SWIG_FromInt((int)wxPRINT_QUALITY_HIGH)); - PyDict_SetItemString(d,"PRINT_QUALITY_MEDIUM", SWIG_FromInt((int)wxPRINT_QUALITY_MEDIUM)); - PyDict_SetItemString(d,"PRINT_QUALITY_LOW", SWIG_FromInt((int)wxPRINT_QUALITY_LOW)); - PyDict_SetItemString(d,"PRINT_QUALITY_DRAFT", SWIG_FromInt((int)wxPRINT_QUALITY_DRAFT)); - PyDict_SetItemString(d,"ID_ANY", SWIG_FromInt((int)wxID_ANY)); - PyDict_SetItemString(d,"ID_SEPARATOR", SWIG_FromInt((int)wxID_SEPARATOR)); - PyDict_SetItemString(d,"ID_LOWEST", SWIG_FromInt((int)wxID_LOWEST)); - PyDict_SetItemString(d,"ID_OPEN", SWIG_FromInt((int)wxID_OPEN)); - PyDict_SetItemString(d,"ID_CLOSE", SWIG_FromInt((int)wxID_CLOSE)); - PyDict_SetItemString(d,"ID_NEW", SWIG_FromInt((int)wxID_NEW)); - PyDict_SetItemString(d,"ID_SAVE", SWIG_FromInt((int)wxID_SAVE)); - PyDict_SetItemString(d,"ID_SAVEAS", SWIG_FromInt((int)wxID_SAVEAS)); - PyDict_SetItemString(d,"ID_REVERT", SWIG_FromInt((int)wxID_REVERT)); - PyDict_SetItemString(d,"ID_EXIT", SWIG_FromInt((int)wxID_EXIT)); - PyDict_SetItemString(d,"ID_UNDO", SWIG_FromInt((int)wxID_UNDO)); - PyDict_SetItemString(d,"ID_REDO", SWIG_FromInt((int)wxID_REDO)); - PyDict_SetItemString(d,"ID_HELP", SWIG_FromInt((int)wxID_HELP)); - PyDict_SetItemString(d,"ID_PRINT", SWIG_FromInt((int)wxID_PRINT)); - PyDict_SetItemString(d,"ID_PRINT_SETUP", SWIG_FromInt((int)wxID_PRINT_SETUP)); - PyDict_SetItemString(d,"ID_PREVIEW", SWIG_FromInt((int)wxID_PREVIEW)); - PyDict_SetItemString(d,"ID_ABOUT", SWIG_FromInt((int)wxID_ABOUT)); - PyDict_SetItemString(d,"ID_HELP_CONTENTS", SWIG_FromInt((int)wxID_HELP_CONTENTS)); - PyDict_SetItemString(d,"ID_HELP_COMMANDS", SWIG_FromInt((int)wxID_HELP_COMMANDS)); - PyDict_SetItemString(d,"ID_HELP_PROCEDURES", SWIG_FromInt((int)wxID_HELP_PROCEDURES)); - PyDict_SetItemString(d,"ID_HELP_CONTEXT", SWIG_FromInt((int)wxID_HELP_CONTEXT)); - PyDict_SetItemString(d,"ID_CLOSE_ALL", SWIG_FromInt((int)wxID_CLOSE_ALL)); - PyDict_SetItemString(d,"ID_PREFERENCES", SWIG_FromInt((int)wxID_PREFERENCES)); - PyDict_SetItemString(d,"ID_CUT", SWIG_FromInt((int)wxID_CUT)); - PyDict_SetItemString(d,"ID_COPY", SWIG_FromInt((int)wxID_COPY)); - PyDict_SetItemString(d,"ID_PASTE", SWIG_FromInt((int)wxID_PASTE)); - PyDict_SetItemString(d,"ID_CLEAR", SWIG_FromInt((int)wxID_CLEAR)); - PyDict_SetItemString(d,"ID_FIND", SWIG_FromInt((int)wxID_FIND)); - PyDict_SetItemString(d,"ID_DUPLICATE", SWIG_FromInt((int)wxID_DUPLICATE)); - PyDict_SetItemString(d,"ID_SELECTALL", SWIG_FromInt((int)wxID_SELECTALL)); - PyDict_SetItemString(d,"ID_DELETE", SWIG_FromInt((int)wxID_DELETE)); - PyDict_SetItemString(d,"ID_REPLACE", SWIG_FromInt((int)wxID_REPLACE)); - PyDict_SetItemString(d,"ID_REPLACE_ALL", SWIG_FromInt((int)wxID_REPLACE_ALL)); - PyDict_SetItemString(d,"ID_PROPERTIES", SWIG_FromInt((int)wxID_PROPERTIES)); - PyDict_SetItemString(d,"ID_VIEW_DETAILS", SWIG_FromInt((int)wxID_VIEW_DETAILS)); - PyDict_SetItemString(d,"ID_VIEW_LARGEICONS", SWIG_FromInt((int)wxID_VIEW_LARGEICONS)); - PyDict_SetItemString(d,"ID_VIEW_SMALLICONS", SWIG_FromInt((int)wxID_VIEW_SMALLICONS)); - PyDict_SetItemString(d,"ID_VIEW_LIST", SWIG_FromInt((int)wxID_VIEW_LIST)); - PyDict_SetItemString(d,"ID_VIEW_SORTDATE", SWIG_FromInt((int)wxID_VIEW_SORTDATE)); - PyDict_SetItemString(d,"ID_VIEW_SORTNAME", SWIG_FromInt((int)wxID_VIEW_SORTNAME)); - PyDict_SetItemString(d,"ID_VIEW_SORTSIZE", SWIG_FromInt((int)wxID_VIEW_SORTSIZE)); - PyDict_SetItemString(d,"ID_VIEW_SORTTYPE", SWIG_FromInt((int)wxID_VIEW_SORTTYPE)); - PyDict_SetItemString(d,"ID_FILE1", SWIG_FromInt((int)wxID_FILE1)); - PyDict_SetItemString(d,"ID_FILE2", SWIG_FromInt((int)wxID_FILE2)); - PyDict_SetItemString(d,"ID_FILE3", SWIG_FromInt((int)wxID_FILE3)); - PyDict_SetItemString(d,"ID_FILE4", SWIG_FromInt((int)wxID_FILE4)); - PyDict_SetItemString(d,"ID_FILE5", SWIG_FromInt((int)wxID_FILE5)); - PyDict_SetItemString(d,"ID_FILE6", SWIG_FromInt((int)wxID_FILE6)); - PyDict_SetItemString(d,"ID_FILE7", SWIG_FromInt((int)wxID_FILE7)); - PyDict_SetItemString(d,"ID_FILE8", SWIG_FromInt((int)wxID_FILE8)); - PyDict_SetItemString(d,"ID_FILE9", SWIG_FromInt((int)wxID_FILE9)); - PyDict_SetItemString(d,"ID_OK", SWIG_FromInt((int)wxID_OK)); - PyDict_SetItemString(d,"ID_CANCEL", SWIG_FromInt((int)wxID_CANCEL)); - PyDict_SetItemString(d,"ID_APPLY", SWIG_FromInt((int)wxID_APPLY)); - PyDict_SetItemString(d,"ID_YES", SWIG_FromInt((int)wxID_YES)); - PyDict_SetItemString(d,"ID_NO", SWIG_FromInt((int)wxID_NO)); - PyDict_SetItemString(d,"ID_STATIC", SWIG_FromInt((int)wxID_STATIC)); - PyDict_SetItemString(d,"ID_FORWARD", SWIG_FromInt((int)wxID_FORWARD)); - PyDict_SetItemString(d,"ID_BACKWARD", SWIG_FromInt((int)wxID_BACKWARD)); - PyDict_SetItemString(d,"ID_DEFAULT", SWIG_FromInt((int)wxID_DEFAULT)); - PyDict_SetItemString(d,"ID_MORE", SWIG_FromInt((int)wxID_MORE)); - PyDict_SetItemString(d,"ID_SETUP", SWIG_FromInt((int)wxID_SETUP)); - PyDict_SetItemString(d,"ID_RESET", SWIG_FromInt((int)wxID_RESET)); - PyDict_SetItemString(d,"ID_CONTEXT_HELP", SWIG_FromInt((int)wxID_CONTEXT_HELP)); - PyDict_SetItemString(d,"ID_YESTOALL", SWIG_FromInt((int)wxID_YESTOALL)); - PyDict_SetItemString(d,"ID_NOTOALL", SWIG_FromInt((int)wxID_NOTOALL)); - PyDict_SetItemString(d,"ID_ABORT", SWIG_FromInt((int)wxID_ABORT)); - PyDict_SetItemString(d,"ID_RETRY", SWIG_FromInt((int)wxID_RETRY)); - PyDict_SetItemString(d,"ID_IGNORE", SWIG_FromInt((int)wxID_IGNORE)); - PyDict_SetItemString(d,"ID_HIGHEST", SWIG_FromInt((int)wxID_HIGHEST)); - PyDict_SetItemString(d,"OPEN", SWIG_FromInt((int)wxOPEN)); - PyDict_SetItemString(d,"SAVE", SWIG_FromInt((int)wxSAVE)); - PyDict_SetItemString(d,"HIDE_READONLY", SWIG_FromInt((int)wxHIDE_READONLY)); - PyDict_SetItemString(d,"OVERWRITE_PROMPT", SWIG_FromInt((int)wxOVERWRITE_PROMPT)); - PyDict_SetItemString(d,"FILE_MUST_EXIST", SWIG_FromInt((int)wxFILE_MUST_EXIST)); - PyDict_SetItemString(d,"MULTIPLE", SWIG_FromInt((int)wxMULTIPLE)); - PyDict_SetItemString(d,"CHANGE_DIR", SWIG_FromInt((int)wxCHANGE_DIR)); - PyDict_SetItemString(d,"ACCEL_ALT", SWIG_FromInt((int)wxACCEL_ALT)); - PyDict_SetItemString(d,"ACCEL_CTRL", SWIG_FromInt((int)wxACCEL_CTRL)); - PyDict_SetItemString(d,"ACCEL_SHIFT", SWIG_FromInt((int)wxACCEL_SHIFT)); - PyDict_SetItemString(d,"ACCEL_NORMAL", SWIG_FromInt((int)wxACCEL_NORMAL)); - PyDict_SetItemString(d,"PD_AUTO_HIDE", SWIG_FromInt((int)wxPD_AUTO_HIDE)); - PyDict_SetItemString(d,"PD_APP_MODAL", SWIG_FromInt((int)wxPD_APP_MODAL)); - PyDict_SetItemString(d,"PD_CAN_ABORT", SWIG_FromInt((int)wxPD_CAN_ABORT)); - PyDict_SetItemString(d,"PD_ELAPSED_TIME", SWIG_FromInt((int)wxPD_ELAPSED_TIME)); - PyDict_SetItemString(d,"PD_ESTIMATED_TIME", SWIG_FromInt((int)wxPD_ESTIMATED_TIME)); - PyDict_SetItemString(d,"PD_REMAINING_TIME", SWIG_FromInt((int)wxPD_REMAINING_TIME)); - PyDict_SetItemString(d,"DD_NEW_DIR_BUTTON", SWIG_FromInt((int)wxDD_NEW_DIR_BUTTON)); - PyDict_SetItemString(d,"DD_DEFAULT_STYLE", SWIG_FromInt((int)wxDD_DEFAULT_STYLE)); - PyDict_SetItemString(d,"MENU_TEAROFF", SWIG_FromInt((int)wxMENU_TEAROFF)); - PyDict_SetItemString(d,"MB_DOCKABLE", SWIG_FromInt((int)wxMB_DOCKABLE)); - PyDict_SetItemString(d,"NO_FULL_REPAINT_ON_RESIZE", SWIG_FromInt((int)wxNO_FULL_REPAINT_ON_RESIZE)); - PyDict_SetItemString(d,"FULL_REPAINT_ON_RESIZE", SWIG_FromInt((int)wxFULL_REPAINT_ON_RESIZE)); - PyDict_SetItemString(d,"LI_HORIZONTAL", SWIG_FromInt((int)wxLI_HORIZONTAL)); - PyDict_SetItemString(d,"LI_VERTICAL", SWIG_FromInt((int)wxLI_VERTICAL)); - PyDict_SetItemString(d,"WS_EX_VALIDATE_RECURSIVELY", SWIG_FromInt((int)wxWS_EX_VALIDATE_RECURSIVELY)); - PyDict_SetItemString(d,"WS_EX_BLOCK_EVENTS", SWIG_FromInt((int)wxWS_EX_BLOCK_EVENTS)); - PyDict_SetItemString(d,"WS_EX_TRANSIENT", SWIG_FromInt((int)wxWS_EX_TRANSIENT)); - PyDict_SetItemString(d,"WS_EX_THEMED_BACKGROUND", SWIG_FromInt((int)wxWS_EX_THEMED_BACKGROUND)); - PyDict_SetItemString(d,"WS_EX_PROCESS_IDLE", SWIG_FromInt((int)wxWS_EX_PROCESS_IDLE)); - PyDict_SetItemString(d,"WS_EX_PROCESS_UI_UPDATES", SWIG_FromInt((int)wxWS_EX_PROCESS_UI_UPDATES)); - PyDict_SetItemString(d,"MM_TEXT", SWIG_FromInt((int)wxMM_TEXT)); - PyDict_SetItemString(d,"MM_LOMETRIC", SWIG_FromInt((int)wxMM_LOMETRIC)); - PyDict_SetItemString(d,"MM_HIMETRIC", SWIG_FromInt((int)wxMM_HIMETRIC)); - PyDict_SetItemString(d,"MM_LOENGLISH", SWIG_FromInt((int)wxMM_LOENGLISH)); - PyDict_SetItemString(d,"MM_HIENGLISH", SWIG_FromInt((int)wxMM_HIENGLISH)); - PyDict_SetItemString(d,"MM_TWIPS", SWIG_FromInt((int)wxMM_TWIPS)); - PyDict_SetItemString(d,"MM_ISOTROPIC", SWIG_FromInt((int)wxMM_ISOTROPIC)); - PyDict_SetItemString(d,"MM_ANISOTROPIC", SWIG_FromInt((int)wxMM_ANISOTROPIC)); - PyDict_SetItemString(d,"MM_POINTS", SWIG_FromInt((int)wxMM_POINTS)); - PyDict_SetItemString(d,"MM_METRIC", SWIG_FromInt((int)wxMM_METRIC)); - PyDict_SetItemString(d,"CENTRE", SWIG_FromInt((int)wxCENTRE)); - PyDict_SetItemString(d,"CENTER", SWIG_FromInt((int)wxCENTER)); - PyDict_SetItemString(d,"HORIZONTAL", SWIG_FromInt((int)wxHORIZONTAL)); - PyDict_SetItemString(d,"VERTICAL", SWIG_FromInt((int)wxVERTICAL)); - PyDict_SetItemString(d,"BOTH", SWIG_FromInt((int)wxBOTH)); - PyDict_SetItemString(d,"LEFT", SWIG_FromInt((int)wxLEFT)); - PyDict_SetItemString(d,"RIGHT", SWIG_FromInt((int)wxRIGHT)); - PyDict_SetItemString(d,"UP", SWIG_FromInt((int)wxUP)); - PyDict_SetItemString(d,"DOWN", SWIG_FromInt((int)wxDOWN)); - PyDict_SetItemString(d,"TOP", SWIG_FromInt((int)wxTOP)); - PyDict_SetItemString(d,"BOTTOM", SWIG_FromInt((int)wxBOTTOM)); - PyDict_SetItemString(d,"NORTH", SWIG_FromInt((int)wxNORTH)); - PyDict_SetItemString(d,"SOUTH", SWIG_FromInt((int)wxSOUTH)); - PyDict_SetItemString(d,"WEST", SWIG_FromInt((int)wxWEST)); - PyDict_SetItemString(d,"EAST", SWIG_FromInt((int)wxEAST)); - PyDict_SetItemString(d,"ALL", SWIG_FromInt((int)wxALL)); - PyDict_SetItemString(d,"ALIGN_NOT", SWIG_FromInt((int)wxALIGN_NOT)); - PyDict_SetItemString(d,"ALIGN_CENTER_HORIZONTAL", SWIG_FromInt((int)wxALIGN_CENTER_HORIZONTAL)); - PyDict_SetItemString(d,"ALIGN_CENTRE_HORIZONTAL", SWIG_FromInt((int)wxALIGN_CENTRE_HORIZONTAL)); - PyDict_SetItemString(d,"ALIGN_LEFT", SWIG_FromInt((int)wxALIGN_LEFT)); - PyDict_SetItemString(d,"ALIGN_TOP", SWIG_FromInt((int)wxALIGN_TOP)); - PyDict_SetItemString(d,"ALIGN_RIGHT", SWIG_FromInt((int)wxALIGN_RIGHT)); - PyDict_SetItemString(d,"ALIGN_BOTTOM", SWIG_FromInt((int)wxALIGN_BOTTOM)); - PyDict_SetItemString(d,"ALIGN_CENTER_VERTICAL", SWIG_FromInt((int)wxALIGN_CENTER_VERTICAL)); - PyDict_SetItemString(d,"ALIGN_CENTRE_VERTICAL", SWIG_FromInt((int)wxALIGN_CENTRE_VERTICAL)); - PyDict_SetItemString(d,"ALIGN_CENTER", SWIG_FromInt((int)wxALIGN_CENTER)); - PyDict_SetItemString(d,"ALIGN_CENTRE", SWIG_FromInt((int)wxALIGN_CENTRE)); - PyDict_SetItemString(d,"ALIGN_MASK", SWIG_FromInt((int)wxALIGN_MASK)); - PyDict_SetItemString(d,"STRETCH_NOT", SWIG_FromInt((int)wxSTRETCH_NOT)); - PyDict_SetItemString(d,"SHRINK", SWIG_FromInt((int)wxSHRINK)); - PyDict_SetItemString(d,"GROW", SWIG_FromInt((int)wxGROW)); - PyDict_SetItemString(d,"EXPAND", SWIG_FromInt((int)wxEXPAND)); - PyDict_SetItemString(d,"SHAPED", SWIG_FromInt((int)wxSHAPED)); - PyDict_SetItemString(d,"FIXED_MINSIZE", SWIG_FromInt((int)wxFIXED_MINSIZE)); - PyDict_SetItemString(d,"TILE", SWIG_FromInt((int)wxTILE)); - PyDict_SetItemString(d,"ADJUST_MINSIZE", SWIG_FromInt((int)wxADJUST_MINSIZE)); - PyDict_SetItemString(d,"BORDER_DEFAULT", SWIG_FromInt((int)wxBORDER_DEFAULT)); - PyDict_SetItemString(d,"BORDER_NONE", SWIG_FromInt((int)wxBORDER_NONE)); - PyDict_SetItemString(d,"BORDER_STATIC", SWIG_FromInt((int)wxBORDER_STATIC)); - PyDict_SetItemString(d,"BORDER_SIMPLE", SWIG_FromInt((int)wxBORDER_SIMPLE)); - PyDict_SetItemString(d,"BORDER_RAISED", SWIG_FromInt((int)wxBORDER_RAISED)); - PyDict_SetItemString(d,"BORDER_SUNKEN", SWIG_FromInt((int)wxBORDER_SUNKEN)); - PyDict_SetItemString(d,"BORDER_DOUBLE", SWIG_FromInt((int)wxBORDER_DOUBLE)); - PyDict_SetItemString(d,"BORDER_MASK", SWIG_FromInt((int)wxBORDER_MASK)); - PyDict_SetItemString(d,"DEFAULT", SWIG_FromInt((int)wxDEFAULT)); - PyDict_SetItemString(d,"DECORATIVE", SWIG_FromInt((int)wxDECORATIVE)); - PyDict_SetItemString(d,"ROMAN", SWIG_FromInt((int)wxROMAN)); - PyDict_SetItemString(d,"SCRIPT", SWIG_FromInt((int)wxSCRIPT)); - PyDict_SetItemString(d,"SWISS", SWIG_FromInt((int)wxSWISS)); - PyDict_SetItemString(d,"MODERN", SWIG_FromInt((int)wxMODERN)); - PyDict_SetItemString(d,"TELETYPE", SWIG_FromInt((int)wxTELETYPE)); - PyDict_SetItemString(d,"VARIABLE", SWIG_FromInt((int)wxVARIABLE)); - PyDict_SetItemString(d,"FIXED", SWIG_FromInt((int)wxFIXED)); - PyDict_SetItemString(d,"NORMAL", SWIG_FromInt((int)wxNORMAL)); - PyDict_SetItemString(d,"LIGHT", SWIG_FromInt((int)wxLIGHT)); - PyDict_SetItemString(d,"BOLD", SWIG_FromInt((int)wxBOLD)); - PyDict_SetItemString(d,"ITALIC", SWIG_FromInt((int)wxITALIC)); - PyDict_SetItemString(d,"SLANT", SWIG_FromInt((int)wxSLANT)); - PyDict_SetItemString(d,"SOLID", SWIG_FromInt((int)wxSOLID)); - PyDict_SetItemString(d,"DOT", SWIG_FromInt((int)wxDOT)); - PyDict_SetItemString(d,"LONG_DASH", SWIG_FromInt((int)wxLONG_DASH)); - PyDict_SetItemString(d,"SHORT_DASH", SWIG_FromInt((int)wxSHORT_DASH)); - PyDict_SetItemString(d,"DOT_DASH", SWIG_FromInt((int)wxDOT_DASH)); - PyDict_SetItemString(d,"USER_DASH", SWIG_FromInt((int)wxUSER_DASH)); - PyDict_SetItemString(d,"TRANSPARENT", SWIG_FromInt((int)wxTRANSPARENT)); - PyDict_SetItemString(d,"STIPPLE", SWIG_FromInt((int)wxSTIPPLE)); - PyDict_SetItemString(d,"BDIAGONAL_HATCH", SWIG_FromInt((int)wxBDIAGONAL_HATCH)); - PyDict_SetItemString(d,"CROSSDIAG_HATCH", SWIG_FromInt((int)wxCROSSDIAG_HATCH)); - PyDict_SetItemString(d,"FDIAGONAL_HATCH", SWIG_FromInt((int)wxFDIAGONAL_HATCH)); - PyDict_SetItemString(d,"CROSS_HATCH", SWIG_FromInt((int)wxCROSS_HATCH)); - PyDict_SetItemString(d,"HORIZONTAL_HATCH", SWIG_FromInt((int)wxHORIZONTAL_HATCH)); - PyDict_SetItemString(d,"VERTICAL_HATCH", SWIG_FromInt((int)wxVERTICAL_HATCH)); - PyDict_SetItemString(d,"JOIN_BEVEL", SWIG_FromInt((int)wxJOIN_BEVEL)); - PyDict_SetItemString(d,"JOIN_MITER", SWIG_FromInt((int)wxJOIN_MITER)); - PyDict_SetItemString(d,"JOIN_ROUND", SWIG_FromInt((int)wxJOIN_ROUND)); - PyDict_SetItemString(d,"CAP_ROUND", SWIG_FromInt((int)wxCAP_ROUND)); - PyDict_SetItemString(d,"CAP_PROJECTING", SWIG_FromInt((int)wxCAP_PROJECTING)); - PyDict_SetItemString(d,"CAP_BUTT", SWIG_FromInt((int)wxCAP_BUTT)); - PyDict_SetItemString(d,"CLEAR", SWIG_FromInt((int)wxCLEAR)); - PyDict_SetItemString(d,"XOR", SWIG_FromInt((int)wxXOR)); - PyDict_SetItemString(d,"INVERT", SWIG_FromInt((int)wxINVERT)); - PyDict_SetItemString(d,"OR_REVERSE", SWIG_FromInt((int)wxOR_REVERSE)); - PyDict_SetItemString(d,"AND_REVERSE", SWIG_FromInt((int)wxAND_REVERSE)); - PyDict_SetItemString(d,"COPY", SWIG_FromInt((int)wxCOPY)); - PyDict_SetItemString(d,"AND", SWIG_FromInt((int)wxAND)); - PyDict_SetItemString(d,"AND_INVERT", SWIG_FromInt((int)wxAND_INVERT)); - PyDict_SetItemString(d,"NO_OP", SWIG_FromInt((int)wxNO_OP)); - PyDict_SetItemString(d,"NOR", SWIG_FromInt((int)wxNOR)); - PyDict_SetItemString(d,"EQUIV", SWIG_FromInt((int)wxEQUIV)); - PyDict_SetItemString(d,"SRC_INVERT", SWIG_FromInt((int)wxSRC_INVERT)); - PyDict_SetItemString(d,"OR_INVERT", SWIG_FromInt((int)wxOR_INVERT)); - PyDict_SetItemString(d,"NAND", SWIG_FromInt((int)wxNAND)); - PyDict_SetItemString(d,"OR", SWIG_FromInt((int)wxOR)); - PyDict_SetItemString(d,"SET", SWIG_FromInt((int)wxSET)); - PyDict_SetItemString(d,"WXK_BACK", SWIG_FromInt((int)WXK_BACK)); - PyDict_SetItemString(d,"WXK_TAB", SWIG_FromInt((int)WXK_TAB)); - PyDict_SetItemString(d,"WXK_RETURN", SWIG_FromInt((int)WXK_RETURN)); - PyDict_SetItemString(d,"WXK_ESCAPE", SWIG_FromInt((int)WXK_ESCAPE)); - PyDict_SetItemString(d,"WXK_SPACE", SWIG_FromInt((int)WXK_SPACE)); - PyDict_SetItemString(d,"WXK_DELETE", SWIG_FromInt((int)WXK_DELETE)); - PyDict_SetItemString(d,"WXK_START", SWIG_FromInt((int)WXK_START)); - PyDict_SetItemString(d,"WXK_LBUTTON", SWIG_FromInt((int)WXK_LBUTTON)); - PyDict_SetItemString(d,"WXK_RBUTTON", SWIG_FromInt((int)WXK_RBUTTON)); - PyDict_SetItemString(d,"WXK_CANCEL", SWIG_FromInt((int)WXK_CANCEL)); - PyDict_SetItemString(d,"WXK_MBUTTON", SWIG_FromInt((int)WXK_MBUTTON)); - PyDict_SetItemString(d,"WXK_CLEAR", SWIG_FromInt((int)WXK_CLEAR)); - PyDict_SetItemString(d,"WXK_SHIFT", SWIG_FromInt((int)WXK_SHIFT)); - PyDict_SetItemString(d,"WXK_ALT", SWIG_FromInt((int)WXK_ALT)); - PyDict_SetItemString(d,"WXK_CONTROL", SWIG_FromInt((int)WXK_CONTROL)); - PyDict_SetItemString(d,"WXK_MENU", SWIG_FromInt((int)WXK_MENU)); - PyDict_SetItemString(d,"WXK_PAUSE", SWIG_FromInt((int)WXK_PAUSE)); - PyDict_SetItemString(d,"WXK_CAPITAL", SWIG_FromInt((int)WXK_CAPITAL)); - PyDict_SetItemString(d,"WXK_PRIOR", SWIG_FromInt((int)WXK_PRIOR)); - PyDict_SetItemString(d,"WXK_NEXT", SWIG_FromInt((int)WXK_NEXT)); - PyDict_SetItemString(d,"WXK_END", SWIG_FromInt((int)WXK_END)); - PyDict_SetItemString(d,"WXK_HOME", SWIG_FromInt((int)WXK_HOME)); - PyDict_SetItemString(d,"WXK_LEFT", SWIG_FromInt((int)WXK_LEFT)); - PyDict_SetItemString(d,"WXK_UP", SWIG_FromInt((int)WXK_UP)); - PyDict_SetItemString(d,"WXK_RIGHT", SWIG_FromInt((int)WXK_RIGHT)); - PyDict_SetItemString(d,"WXK_DOWN", SWIG_FromInt((int)WXK_DOWN)); - PyDict_SetItemString(d,"WXK_SELECT", SWIG_FromInt((int)WXK_SELECT)); - PyDict_SetItemString(d,"WXK_PRINT", SWIG_FromInt((int)WXK_PRINT)); - PyDict_SetItemString(d,"WXK_EXECUTE", SWIG_FromInt((int)WXK_EXECUTE)); - PyDict_SetItemString(d,"WXK_SNAPSHOT", SWIG_FromInt((int)WXK_SNAPSHOT)); - PyDict_SetItemString(d,"WXK_INSERT", SWIG_FromInt((int)WXK_INSERT)); - PyDict_SetItemString(d,"WXK_HELP", SWIG_FromInt((int)WXK_HELP)); - PyDict_SetItemString(d,"WXK_NUMPAD0", SWIG_FromInt((int)WXK_NUMPAD0)); - PyDict_SetItemString(d,"WXK_NUMPAD1", SWIG_FromInt((int)WXK_NUMPAD1)); - PyDict_SetItemString(d,"WXK_NUMPAD2", SWIG_FromInt((int)WXK_NUMPAD2)); - PyDict_SetItemString(d,"WXK_NUMPAD3", SWIG_FromInt((int)WXK_NUMPAD3)); - PyDict_SetItemString(d,"WXK_NUMPAD4", SWIG_FromInt((int)WXK_NUMPAD4)); - PyDict_SetItemString(d,"WXK_NUMPAD5", SWIG_FromInt((int)WXK_NUMPAD5)); - PyDict_SetItemString(d,"WXK_NUMPAD6", SWIG_FromInt((int)WXK_NUMPAD6)); - PyDict_SetItemString(d,"WXK_NUMPAD7", SWIG_FromInt((int)WXK_NUMPAD7)); - PyDict_SetItemString(d,"WXK_NUMPAD8", SWIG_FromInt((int)WXK_NUMPAD8)); - PyDict_SetItemString(d,"WXK_NUMPAD9", SWIG_FromInt((int)WXK_NUMPAD9)); - PyDict_SetItemString(d,"WXK_MULTIPLY", SWIG_FromInt((int)WXK_MULTIPLY)); - PyDict_SetItemString(d,"WXK_ADD", SWIG_FromInt((int)WXK_ADD)); - PyDict_SetItemString(d,"WXK_SEPARATOR", SWIG_FromInt((int)WXK_SEPARATOR)); - PyDict_SetItemString(d,"WXK_SUBTRACT", SWIG_FromInt((int)WXK_SUBTRACT)); - PyDict_SetItemString(d,"WXK_DECIMAL", SWIG_FromInt((int)WXK_DECIMAL)); - PyDict_SetItemString(d,"WXK_DIVIDE", SWIG_FromInt((int)WXK_DIVIDE)); - PyDict_SetItemString(d,"WXK_F1", SWIG_FromInt((int)WXK_F1)); - PyDict_SetItemString(d,"WXK_F2", SWIG_FromInt((int)WXK_F2)); - PyDict_SetItemString(d,"WXK_F3", SWIG_FromInt((int)WXK_F3)); - PyDict_SetItemString(d,"WXK_F4", SWIG_FromInt((int)WXK_F4)); - PyDict_SetItemString(d,"WXK_F5", SWIG_FromInt((int)WXK_F5)); - PyDict_SetItemString(d,"WXK_F6", SWIG_FromInt((int)WXK_F6)); - PyDict_SetItemString(d,"WXK_F7", SWIG_FromInt((int)WXK_F7)); - PyDict_SetItemString(d,"WXK_F8", SWIG_FromInt((int)WXK_F8)); - PyDict_SetItemString(d,"WXK_F9", SWIG_FromInt((int)WXK_F9)); - PyDict_SetItemString(d,"WXK_F10", SWIG_FromInt((int)WXK_F10)); - PyDict_SetItemString(d,"WXK_F11", SWIG_FromInt((int)WXK_F11)); - PyDict_SetItemString(d,"WXK_F12", SWIG_FromInt((int)WXK_F12)); - PyDict_SetItemString(d,"WXK_F13", SWIG_FromInt((int)WXK_F13)); - PyDict_SetItemString(d,"WXK_F14", SWIG_FromInt((int)WXK_F14)); - PyDict_SetItemString(d,"WXK_F15", SWIG_FromInt((int)WXK_F15)); - PyDict_SetItemString(d,"WXK_F16", SWIG_FromInt((int)WXK_F16)); - PyDict_SetItemString(d,"WXK_F17", SWIG_FromInt((int)WXK_F17)); - PyDict_SetItemString(d,"WXK_F18", SWIG_FromInt((int)WXK_F18)); - PyDict_SetItemString(d,"WXK_F19", SWIG_FromInt((int)WXK_F19)); - PyDict_SetItemString(d,"WXK_F20", SWIG_FromInt((int)WXK_F20)); - PyDict_SetItemString(d,"WXK_F21", SWIG_FromInt((int)WXK_F21)); - PyDict_SetItemString(d,"WXK_F22", SWIG_FromInt((int)WXK_F22)); - PyDict_SetItemString(d,"WXK_F23", SWIG_FromInt((int)WXK_F23)); - PyDict_SetItemString(d,"WXK_F24", SWIG_FromInt((int)WXK_F24)); - PyDict_SetItemString(d,"WXK_NUMLOCK", SWIG_FromInt((int)WXK_NUMLOCK)); - PyDict_SetItemString(d,"WXK_SCROLL", SWIG_FromInt((int)WXK_SCROLL)); - PyDict_SetItemString(d,"WXK_PAGEUP", SWIG_FromInt((int)WXK_PAGEUP)); - PyDict_SetItemString(d,"WXK_PAGEDOWN", SWIG_FromInt((int)WXK_PAGEDOWN)); - PyDict_SetItemString(d,"WXK_NUMPAD_SPACE", SWIG_FromInt((int)WXK_NUMPAD_SPACE)); - PyDict_SetItemString(d,"WXK_NUMPAD_TAB", SWIG_FromInt((int)WXK_NUMPAD_TAB)); - PyDict_SetItemString(d,"WXK_NUMPAD_ENTER", SWIG_FromInt((int)WXK_NUMPAD_ENTER)); - PyDict_SetItemString(d,"WXK_NUMPAD_F1", SWIG_FromInt((int)WXK_NUMPAD_F1)); - PyDict_SetItemString(d,"WXK_NUMPAD_F2", SWIG_FromInt((int)WXK_NUMPAD_F2)); - PyDict_SetItemString(d,"WXK_NUMPAD_F3", SWIG_FromInt((int)WXK_NUMPAD_F3)); - PyDict_SetItemString(d,"WXK_NUMPAD_F4", SWIG_FromInt((int)WXK_NUMPAD_F4)); - PyDict_SetItemString(d,"WXK_NUMPAD_HOME", SWIG_FromInt((int)WXK_NUMPAD_HOME)); - PyDict_SetItemString(d,"WXK_NUMPAD_LEFT", SWIG_FromInt((int)WXK_NUMPAD_LEFT)); - PyDict_SetItemString(d,"WXK_NUMPAD_UP", SWIG_FromInt((int)WXK_NUMPAD_UP)); - PyDict_SetItemString(d,"WXK_NUMPAD_RIGHT", SWIG_FromInt((int)WXK_NUMPAD_RIGHT)); - PyDict_SetItemString(d,"WXK_NUMPAD_DOWN", SWIG_FromInt((int)WXK_NUMPAD_DOWN)); - PyDict_SetItemString(d,"WXK_NUMPAD_PRIOR", SWIG_FromInt((int)WXK_NUMPAD_PRIOR)); - PyDict_SetItemString(d,"WXK_NUMPAD_PAGEUP", SWIG_FromInt((int)WXK_NUMPAD_PAGEUP)); - PyDict_SetItemString(d,"WXK_NUMPAD_NEXT", SWIG_FromInt((int)WXK_NUMPAD_NEXT)); - PyDict_SetItemString(d,"WXK_NUMPAD_PAGEDOWN", SWIG_FromInt((int)WXK_NUMPAD_PAGEDOWN)); - PyDict_SetItemString(d,"WXK_NUMPAD_END", SWIG_FromInt((int)WXK_NUMPAD_END)); - PyDict_SetItemString(d,"WXK_NUMPAD_BEGIN", SWIG_FromInt((int)WXK_NUMPAD_BEGIN)); - PyDict_SetItemString(d,"WXK_NUMPAD_INSERT", SWIG_FromInt((int)WXK_NUMPAD_INSERT)); - PyDict_SetItemString(d,"WXK_NUMPAD_DELETE", SWIG_FromInt((int)WXK_NUMPAD_DELETE)); - PyDict_SetItemString(d,"WXK_NUMPAD_EQUAL", SWIG_FromInt((int)WXK_NUMPAD_EQUAL)); - PyDict_SetItemString(d,"WXK_NUMPAD_MULTIPLY", SWIG_FromInt((int)WXK_NUMPAD_MULTIPLY)); - PyDict_SetItemString(d,"WXK_NUMPAD_ADD", SWIG_FromInt((int)WXK_NUMPAD_ADD)); - PyDict_SetItemString(d,"WXK_NUMPAD_SEPARATOR", SWIG_FromInt((int)WXK_NUMPAD_SEPARATOR)); - PyDict_SetItemString(d,"WXK_NUMPAD_SUBTRACT", SWIG_FromInt((int)WXK_NUMPAD_SUBTRACT)); - PyDict_SetItemString(d,"WXK_NUMPAD_DECIMAL", SWIG_FromInt((int)WXK_NUMPAD_DECIMAL)); - PyDict_SetItemString(d,"WXK_NUMPAD_DIVIDE", SWIG_FromInt((int)WXK_NUMPAD_DIVIDE)); - PyDict_SetItemString(d,"WXK_WINDOWS_LEFT", SWIG_FromInt((int)WXK_WINDOWS_LEFT)); - PyDict_SetItemString(d,"WXK_WINDOWS_RIGHT", SWIG_FromInt((int)WXK_WINDOWS_RIGHT)); - PyDict_SetItemString(d,"WXK_WINDOWS_MENU", SWIG_FromInt((int)WXK_WINDOWS_MENU)); - PyDict_SetItemString(d,"PAPER_NONE", SWIG_FromInt((int)wxPAPER_NONE)); - PyDict_SetItemString(d,"PAPER_LETTER", SWIG_FromInt((int)wxPAPER_LETTER)); - PyDict_SetItemString(d,"PAPER_LEGAL", SWIG_FromInt((int)wxPAPER_LEGAL)); - PyDict_SetItemString(d,"PAPER_A4", SWIG_FromInt((int)wxPAPER_A4)); - PyDict_SetItemString(d,"PAPER_CSHEET", SWIG_FromInt((int)wxPAPER_CSHEET)); - PyDict_SetItemString(d,"PAPER_DSHEET", SWIG_FromInt((int)wxPAPER_DSHEET)); - PyDict_SetItemString(d,"PAPER_ESHEET", SWIG_FromInt((int)wxPAPER_ESHEET)); - PyDict_SetItemString(d,"PAPER_LETTERSMALL", SWIG_FromInt((int)wxPAPER_LETTERSMALL)); - PyDict_SetItemString(d,"PAPER_TABLOID", SWIG_FromInt((int)wxPAPER_TABLOID)); - PyDict_SetItemString(d,"PAPER_LEDGER", SWIG_FromInt((int)wxPAPER_LEDGER)); - PyDict_SetItemString(d,"PAPER_STATEMENT", SWIG_FromInt((int)wxPAPER_STATEMENT)); - PyDict_SetItemString(d,"PAPER_EXECUTIVE", SWIG_FromInt((int)wxPAPER_EXECUTIVE)); - PyDict_SetItemString(d,"PAPER_A3", SWIG_FromInt((int)wxPAPER_A3)); - PyDict_SetItemString(d,"PAPER_A4SMALL", SWIG_FromInt((int)wxPAPER_A4SMALL)); - PyDict_SetItemString(d,"PAPER_A5", SWIG_FromInt((int)wxPAPER_A5)); - PyDict_SetItemString(d,"PAPER_B4", SWIG_FromInt((int)wxPAPER_B4)); - PyDict_SetItemString(d,"PAPER_B5", SWIG_FromInt((int)wxPAPER_B5)); - PyDict_SetItemString(d,"PAPER_FOLIO", SWIG_FromInt((int)wxPAPER_FOLIO)); - PyDict_SetItemString(d,"PAPER_QUARTO", SWIG_FromInt((int)wxPAPER_QUARTO)); - PyDict_SetItemString(d,"PAPER_10X14", SWIG_FromInt((int)wxPAPER_10X14)); - PyDict_SetItemString(d,"PAPER_11X17", SWIG_FromInt((int)wxPAPER_11X17)); - PyDict_SetItemString(d,"PAPER_NOTE", SWIG_FromInt((int)wxPAPER_NOTE)); - PyDict_SetItemString(d,"PAPER_ENV_9", SWIG_FromInt((int)wxPAPER_ENV_9)); - PyDict_SetItemString(d,"PAPER_ENV_10", SWIG_FromInt((int)wxPAPER_ENV_10)); - PyDict_SetItemString(d,"PAPER_ENV_11", SWIG_FromInt((int)wxPAPER_ENV_11)); - PyDict_SetItemString(d,"PAPER_ENV_12", SWIG_FromInt((int)wxPAPER_ENV_12)); - PyDict_SetItemString(d,"PAPER_ENV_14", SWIG_FromInt((int)wxPAPER_ENV_14)); - PyDict_SetItemString(d,"PAPER_ENV_DL", SWIG_FromInt((int)wxPAPER_ENV_DL)); - PyDict_SetItemString(d,"PAPER_ENV_C5", SWIG_FromInt((int)wxPAPER_ENV_C5)); - PyDict_SetItemString(d,"PAPER_ENV_C3", SWIG_FromInt((int)wxPAPER_ENV_C3)); - PyDict_SetItemString(d,"PAPER_ENV_C4", SWIG_FromInt((int)wxPAPER_ENV_C4)); - PyDict_SetItemString(d,"PAPER_ENV_C6", SWIG_FromInt((int)wxPAPER_ENV_C6)); - PyDict_SetItemString(d,"PAPER_ENV_C65", SWIG_FromInt((int)wxPAPER_ENV_C65)); - PyDict_SetItemString(d,"PAPER_ENV_B4", SWIG_FromInt((int)wxPAPER_ENV_B4)); - PyDict_SetItemString(d,"PAPER_ENV_B5", SWIG_FromInt((int)wxPAPER_ENV_B5)); - PyDict_SetItemString(d,"PAPER_ENV_B6", SWIG_FromInt((int)wxPAPER_ENV_B6)); - PyDict_SetItemString(d,"PAPER_ENV_ITALY", SWIG_FromInt((int)wxPAPER_ENV_ITALY)); - PyDict_SetItemString(d,"PAPER_ENV_MONARCH", SWIG_FromInt((int)wxPAPER_ENV_MONARCH)); - PyDict_SetItemString(d,"PAPER_ENV_PERSONAL", SWIG_FromInt((int)wxPAPER_ENV_PERSONAL)); - PyDict_SetItemString(d,"PAPER_FANFOLD_US", SWIG_FromInt((int)wxPAPER_FANFOLD_US)); - PyDict_SetItemString(d,"PAPER_FANFOLD_STD_GERMAN", SWIG_FromInt((int)wxPAPER_FANFOLD_STD_GERMAN)); - PyDict_SetItemString(d,"PAPER_FANFOLD_LGL_GERMAN", SWIG_FromInt((int)wxPAPER_FANFOLD_LGL_GERMAN)); - PyDict_SetItemString(d,"PAPER_ISO_B4", SWIG_FromInt((int)wxPAPER_ISO_B4)); - PyDict_SetItemString(d,"PAPER_JAPANESE_POSTCARD", SWIG_FromInt((int)wxPAPER_JAPANESE_POSTCARD)); - PyDict_SetItemString(d,"PAPER_9X11", SWIG_FromInt((int)wxPAPER_9X11)); - PyDict_SetItemString(d,"PAPER_10X11", SWIG_FromInt((int)wxPAPER_10X11)); - PyDict_SetItemString(d,"PAPER_15X11", SWIG_FromInt((int)wxPAPER_15X11)); - PyDict_SetItemString(d,"PAPER_ENV_INVITE", SWIG_FromInt((int)wxPAPER_ENV_INVITE)); - PyDict_SetItemString(d,"PAPER_LETTER_EXTRA", SWIG_FromInt((int)wxPAPER_LETTER_EXTRA)); - PyDict_SetItemString(d,"PAPER_LEGAL_EXTRA", SWIG_FromInt((int)wxPAPER_LEGAL_EXTRA)); - PyDict_SetItemString(d,"PAPER_TABLOID_EXTRA", SWIG_FromInt((int)wxPAPER_TABLOID_EXTRA)); - PyDict_SetItemString(d,"PAPER_A4_EXTRA", SWIG_FromInt((int)wxPAPER_A4_EXTRA)); - PyDict_SetItemString(d,"PAPER_LETTER_TRANSVERSE", SWIG_FromInt((int)wxPAPER_LETTER_TRANSVERSE)); - PyDict_SetItemString(d,"PAPER_A4_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A4_TRANSVERSE)); - PyDict_SetItemString(d,"PAPER_LETTER_EXTRA_TRANSVERSE", SWIG_FromInt((int)wxPAPER_LETTER_EXTRA_TRANSVERSE)); - PyDict_SetItemString(d,"PAPER_A_PLUS", SWIG_FromInt((int)wxPAPER_A_PLUS)); - PyDict_SetItemString(d,"PAPER_B_PLUS", SWIG_FromInt((int)wxPAPER_B_PLUS)); - PyDict_SetItemString(d,"PAPER_LETTER_PLUS", SWIG_FromInt((int)wxPAPER_LETTER_PLUS)); - PyDict_SetItemString(d,"PAPER_A4_PLUS", SWIG_FromInt((int)wxPAPER_A4_PLUS)); - PyDict_SetItemString(d,"PAPER_A5_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A5_TRANSVERSE)); - PyDict_SetItemString(d,"PAPER_B5_TRANSVERSE", SWIG_FromInt((int)wxPAPER_B5_TRANSVERSE)); - PyDict_SetItemString(d,"PAPER_A3_EXTRA", SWIG_FromInt((int)wxPAPER_A3_EXTRA)); - PyDict_SetItemString(d,"PAPER_A5_EXTRA", SWIG_FromInt((int)wxPAPER_A5_EXTRA)); - PyDict_SetItemString(d,"PAPER_B5_EXTRA", SWIG_FromInt((int)wxPAPER_B5_EXTRA)); - PyDict_SetItemString(d,"PAPER_A2", SWIG_FromInt((int)wxPAPER_A2)); - PyDict_SetItemString(d,"PAPER_A3_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A3_TRANSVERSE)); - PyDict_SetItemString(d,"PAPER_A3_EXTRA_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A3_EXTRA_TRANSVERSE)); - PyDict_SetItemString(d,"DUPLEX_SIMPLEX", SWIG_FromInt((int)wxDUPLEX_SIMPLEX)); - PyDict_SetItemString(d,"DUPLEX_HORIZONTAL", SWIG_FromInt((int)wxDUPLEX_HORIZONTAL)); - PyDict_SetItemString(d,"DUPLEX_VERTICAL", SWIG_FromInt((int)wxDUPLEX_VERTICAL)); - PyDict_SetItemString(d,"ITEM_SEPARATOR", SWIG_FromInt((int)wxITEM_SEPARATOR)); - PyDict_SetItemString(d,"ITEM_NORMAL", SWIG_FromInt((int)wxITEM_NORMAL)); - PyDict_SetItemString(d,"ITEM_CHECK", SWIG_FromInt((int)wxITEM_CHECK)); - PyDict_SetItemString(d,"ITEM_RADIO", SWIG_FromInt((int)wxITEM_RADIO)); - PyDict_SetItemString(d,"ITEM_MAX", SWIG_FromInt((int)wxITEM_MAX)); - PyDict_SetItemString(d,"HT_NOWHERE", SWIG_FromInt((int)wxHT_NOWHERE)); - PyDict_SetItemString(d,"HT_SCROLLBAR_FIRST", SWIG_FromInt((int)wxHT_SCROLLBAR_FIRST)); - PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_1", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_LINE_1)); - PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_2", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_LINE_2)); - PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_1", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_PAGE_1)); - PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_2", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_PAGE_2)); - PyDict_SetItemString(d,"HT_SCROLLBAR_THUMB", SWIG_FromInt((int)wxHT_SCROLLBAR_THUMB)); - PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_1", SWIG_FromInt((int)wxHT_SCROLLBAR_BAR_1)); - PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_2", SWIG_FromInt((int)wxHT_SCROLLBAR_BAR_2)); - PyDict_SetItemString(d,"HT_SCROLLBAR_LAST", SWIG_FromInt((int)wxHT_SCROLLBAR_LAST)); - PyDict_SetItemString(d,"HT_WINDOW_OUTSIDE", SWIG_FromInt((int)wxHT_WINDOW_OUTSIDE)); - PyDict_SetItemString(d,"HT_WINDOW_INSIDE", SWIG_FromInt((int)wxHT_WINDOW_INSIDE)); - PyDict_SetItemString(d,"HT_WINDOW_VERT_SCROLLBAR", SWIG_FromInt((int)wxHT_WINDOW_VERT_SCROLLBAR)); - PyDict_SetItemString(d,"HT_WINDOW_HORZ_SCROLLBAR", SWIG_FromInt((int)wxHT_WINDOW_HORZ_SCROLLBAR)); - PyDict_SetItemString(d,"HT_WINDOW_CORNER", SWIG_FromInt((int)wxHT_WINDOW_CORNER)); - PyDict_SetItemString(d,"HT_MAX", SWIG_FromInt((int)wxHT_MAX)); - PyDict_SetItemString(d,"MOD_NONE", SWIG_FromInt((int)wxMOD_NONE)); - PyDict_SetItemString(d,"MOD_ALT", SWIG_FromInt((int)wxMOD_ALT)); - PyDict_SetItemString(d,"MOD_CONTROL", SWIG_FromInt((int)wxMOD_CONTROL)); - PyDict_SetItemString(d,"MOD_SHIFT", SWIG_FromInt((int)wxMOD_SHIFT)); - PyDict_SetItemString(d,"MOD_WIN", SWIG_FromInt((int)wxMOD_WIN)); - PyDict_SetItemString(d,"UPDATE_UI_NONE", SWIG_FromInt((int)wxUPDATE_UI_NONE)); - PyDict_SetItemString(d,"UPDATE_UI_RECURSE", SWIG_FromInt((int)wxUPDATE_UI_RECURSE)); - PyDict_SetItemString(d,"UPDATE_UI_FROMIDLE", SWIG_FromInt((int)wxUPDATE_UI_FROMIDLE)); - PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); - SWIG_addvarlink(SWIG_globals,(char*)"EmptyString",_wrap_EmptyString_get, _wrap_EmptyString_set); - PyDict_SetItemString(d,"BITMAP_TYPE_INVALID", SWIG_FromInt((int)wxBITMAP_TYPE_INVALID)); - PyDict_SetItemString(d,"BITMAP_TYPE_BMP", SWIG_FromInt((int)wxBITMAP_TYPE_BMP)); - PyDict_SetItemString(d,"BITMAP_TYPE_ICO", SWIG_FromInt((int)wxBITMAP_TYPE_ICO)); - PyDict_SetItemString(d,"BITMAP_TYPE_CUR", SWIG_FromInt((int)wxBITMAP_TYPE_CUR)); - PyDict_SetItemString(d,"BITMAP_TYPE_XBM", SWIG_FromInt((int)wxBITMAP_TYPE_XBM)); - PyDict_SetItemString(d,"BITMAP_TYPE_XBM_DATA", SWIG_FromInt((int)wxBITMAP_TYPE_XBM_DATA)); - PyDict_SetItemString(d,"BITMAP_TYPE_XPM", SWIG_FromInt((int)wxBITMAP_TYPE_XPM)); - PyDict_SetItemString(d,"BITMAP_TYPE_XPM_DATA", SWIG_FromInt((int)wxBITMAP_TYPE_XPM_DATA)); - PyDict_SetItemString(d,"BITMAP_TYPE_TIF", SWIG_FromInt((int)wxBITMAP_TYPE_TIF)); - PyDict_SetItemString(d,"BITMAP_TYPE_GIF", SWIG_FromInt((int)wxBITMAP_TYPE_GIF)); - PyDict_SetItemString(d,"BITMAP_TYPE_PNG", SWIG_FromInt((int)wxBITMAP_TYPE_PNG)); - PyDict_SetItemString(d,"BITMAP_TYPE_JPEG", SWIG_FromInt((int)wxBITMAP_TYPE_JPEG)); - PyDict_SetItemString(d,"BITMAP_TYPE_PNM", SWIG_FromInt((int)wxBITMAP_TYPE_PNM)); - PyDict_SetItemString(d,"BITMAP_TYPE_PCX", SWIG_FromInt((int)wxBITMAP_TYPE_PCX)); - PyDict_SetItemString(d,"BITMAP_TYPE_PICT", SWIG_FromInt((int)wxBITMAP_TYPE_PICT)); - PyDict_SetItemString(d,"BITMAP_TYPE_ICON", SWIG_FromInt((int)wxBITMAP_TYPE_ICON)); - PyDict_SetItemString(d,"BITMAP_TYPE_ANI", SWIG_FromInt((int)wxBITMAP_TYPE_ANI)); - PyDict_SetItemString(d,"BITMAP_TYPE_IFF", SWIG_FromInt((int)wxBITMAP_TYPE_IFF)); - PyDict_SetItemString(d,"BITMAP_TYPE_MACCURSOR", SWIG_FromInt((int)wxBITMAP_TYPE_MACCURSOR)); - PyDict_SetItemString(d,"BITMAP_TYPE_ANY", SWIG_FromInt((int)wxBITMAP_TYPE_ANY)); - PyDict_SetItemString(d,"CURSOR_NONE", SWIG_FromInt((int)wxCURSOR_NONE)); - PyDict_SetItemString(d,"CURSOR_ARROW", SWIG_FromInt((int)wxCURSOR_ARROW)); - PyDict_SetItemString(d,"CURSOR_RIGHT_ARROW", SWIG_FromInt((int)wxCURSOR_RIGHT_ARROW)); - PyDict_SetItemString(d,"CURSOR_BULLSEYE", SWIG_FromInt((int)wxCURSOR_BULLSEYE)); - PyDict_SetItemString(d,"CURSOR_CHAR", SWIG_FromInt((int)wxCURSOR_CHAR)); - PyDict_SetItemString(d,"CURSOR_CROSS", SWIG_FromInt((int)wxCURSOR_CROSS)); - PyDict_SetItemString(d,"CURSOR_HAND", SWIG_FromInt((int)wxCURSOR_HAND)); - PyDict_SetItemString(d,"CURSOR_IBEAM", SWIG_FromInt((int)wxCURSOR_IBEAM)); - PyDict_SetItemString(d,"CURSOR_LEFT_BUTTON", SWIG_FromInt((int)wxCURSOR_LEFT_BUTTON)); - PyDict_SetItemString(d,"CURSOR_MAGNIFIER", SWIG_FromInt((int)wxCURSOR_MAGNIFIER)); - PyDict_SetItemString(d,"CURSOR_MIDDLE_BUTTON", SWIG_FromInt((int)wxCURSOR_MIDDLE_BUTTON)); - PyDict_SetItemString(d,"CURSOR_NO_ENTRY", SWIG_FromInt((int)wxCURSOR_NO_ENTRY)); - PyDict_SetItemString(d,"CURSOR_PAINT_BRUSH", SWIG_FromInt((int)wxCURSOR_PAINT_BRUSH)); - PyDict_SetItemString(d,"CURSOR_PENCIL", SWIG_FromInt((int)wxCURSOR_PENCIL)); - PyDict_SetItemString(d,"CURSOR_POINT_LEFT", SWIG_FromInt((int)wxCURSOR_POINT_LEFT)); - PyDict_SetItemString(d,"CURSOR_POINT_RIGHT", SWIG_FromInt((int)wxCURSOR_POINT_RIGHT)); - PyDict_SetItemString(d,"CURSOR_QUESTION_ARROW", SWIG_FromInt((int)wxCURSOR_QUESTION_ARROW)); - PyDict_SetItemString(d,"CURSOR_RIGHT_BUTTON", SWIG_FromInt((int)wxCURSOR_RIGHT_BUTTON)); - PyDict_SetItemString(d,"CURSOR_SIZENESW", SWIG_FromInt((int)wxCURSOR_SIZENESW)); - PyDict_SetItemString(d,"CURSOR_SIZENS", SWIG_FromInt((int)wxCURSOR_SIZENS)); - PyDict_SetItemString(d,"CURSOR_SIZENWSE", SWIG_FromInt((int)wxCURSOR_SIZENWSE)); - PyDict_SetItemString(d,"CURSOR_SIZEWE", SWIG_FromInt((int)wxCURSOR_SIZEWE)); - PyDict_SetItemString(d,"CURSOR_SIZING", SWIG_FromInt((int)wxCURSOR_SIZING)); - PyDict_SetItemString(d,"CURSOR_SPRAYCAN", SWIG_FromInt((int)wxCURSOR_SPRAYCAN)); - PyDict_SetItemString(d,"CURSOR_WAIT", SWIG_FromInt((int)wxCURSOR_WAIT)); - PyDict_SetItemString(d,"CURSOR_WATCH", SWIG_FromInt((int)wxCURSOR_WATCH)); - PyDict_SetItemString(d,"CURSOR_BLANK", SWIG_FromInt((int)wxCURSOR_BLANK)); - PyDict_SetItemString(d,"CURSOR_DEFAULT", SWIG_FromInt((int)wxCURSOR_DEFAULT)); - PyDict_SetItemString(d,"CURSOR_COPY_ARROW", SWIG_FromInt((int)wxCURSOR_COPY_ARROW)); - PyDict_SetItemString(d,"CURSOR_ARROWWAIT", SWIG_FromInt((int)wxCURSOR_ARROWWAIT)); - PyDict_SetItemString(d,"CURSOR_MAX", SWIG_FromInt((int)wxCURSOR_MAX)); - SWIG_addvarlink(SWIG_globals,(char*)"DefaultPosition",_wrap_DefaultPosition_get, _wrap_DefaultPosition_set); - SWIG_addvarlink(SWIG_globals,(char*)"DefaultSize",_wrap_DefaultSize_get, _wrap_DefaultSize_set); - PyDict_SetItemString(d,"FromStart", SWIG_FromInt((int)wxFromStart)); - PyDict_SetItemString(d,"FromCurrent", SWIG_FromInt((int)wxFromCurrent)); - PyDict_SetItemString(d,"FromEnd", SWIG_FromInt((int)wxFromEnd)); - - wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream"); - - - wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler"); - - SWIG_addvarlink(SWIG_globals,(char*)"NullImage",_wrap_NullImage_get, _wrap_NullImage_set); - SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_BMP_FORMAT",_wrap_IMAGE_OPTION_BMP_FORMAT_get, _wrap_IMAGE_OPTION_BMP_FORMAT_set); - SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_X",_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set); - SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_Y",_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set); - SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTION",_wrap_IMAGE_OPTION_RESOLUTION_get, _wrap_IMAGE_OPTION_RESOLUTION_set); - SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTIONUNIT",_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get, _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set); - PyDict_SetItemString(d,"IMAGE_RESOLUTION_INCHES", SWIG_FromInt((int)wxIMAGE_RESOLUTION_INCHES)); - PyDict_SetItemString(d,"IMAGE_RESOLUTION_CM", SWIG_FromInt((int)wxIMAGE_RESOLUTION_CM)); - PyDict_SetItemString(d,"BMP_24BPP", SWIG_FromInt((int)wxBMP_24BPP)); - PyDict_SetItemString(d,"BMP_8BPP", SWIG_FromInt((int)wxBMP_8BPP)); - PyDict_SetItemString(d,"BMP_8BPP_GREY", SWIG_FromInt((int)wxBMP_8BPP_GREY)); - PyDict_SetItemString(d,"BMP_8BPP_GRAY", SWIG_FromInt((int)wxBMP_8BPP_GRAY)); - PyDict_SetItemString(d,"BMP_8BPP_RED", SWIG_FromInt((int)wxBMP_8BPP_RED)); - PyDict_SetItemString(d,"BMP_8BPP_PALETTE", SWIG_FromInt((int)wxBMP_8BPP_PALETTE)); - PyDict_SetItemString(d,"BMP_4BPP", SWIG_FromInt((int)wxBMP_4BPP)); - PyDict_SetItemString(d,"BMP_1BPP", SWIG_FromInt((int)wxBMP_1BPP)); - PyDict_SetItemString(d,"BMP_1BPP_BW", SWIG_FromInt((int)wxBMP_1BPP_BW)); - PyDict_SetItemString(d,"EVENT_PROPAGATE_NONE", SWIG_FromInt((int)wxEVENT_PROPAGATE_NONE)); - PyDict_SetItemString(d,"EVENT_PROPAGATE_MAX", SWIG_FromInt((int)wxEVENT_PROPAGATE_MAX)); - PyDict_SetItemString(d, "wxEVT_NULL", PyInt_FromLong(wxEVT_NULL)); - PyDict_SetItemString(d, "wxEVT_FIRST", PyInt_FromLong(wxEVT_FIRST)); - PyDict_SetItemString(d, "wxEVT_USER_FIRST", PyInt_FromLong(wxEVT_USER_FIRST)); - PyDict_SetItemString(d, "wxEVT_COMMAND_BUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_BUTTON_CLICKED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKBOX_CLICKED", PyInt_FromLong(wxEVT_COMMAND_CHECKBOX_CLICKED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICE_SELECTED", PyInt_FromLong(wxEVT_COMMAND_CHOICE_SELECTED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_SELECTED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", PyInt_FromLong(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_MENU_SELECTED", PyInt_FromLong(wxEVT_COMMAND_MENU_SELECTED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_CLICKED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_SLIDER_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SLIDER_UPDATED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBOX_SELECTED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBUTTON_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBUTTON_SELECTED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_SCROLLBAR_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SCROLLBAR_UPDATED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_VLBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_VLBOX_SELECTED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_COMBOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_COMBOBOX_SELECTED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_RCLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_RCLICKED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_ENTER", PyInt_FromLong(wxEVT_COMMAND_TOOL_ENTER)); - PyDict_SetItemString(d, "wxEVT_LEFT_DOWN", PyInt_FromLong(wxEVT_LEFT_DOWN)); - PyDict_SetItemString(d, "wxEVT_LEFT_UP", PyInt_FromLong(wxEVT_LEFT_UP)); - PyDict_SetItemString(d, "wxEVT_MIDDLE_DOWN", PyInt_FromLong(wxEVT_MIDDLE_DOWN)); - PyDict_SetItemString(d, "wxEVT_MIDDLE_UP", PyInt_FromLong(wxEVT_MIDDLE_UP)); - PyDict_SetItemString(d, "wxEVT_RIGHT_DOWN", PyInt_FromLong(wxEVT_RIGHT_DOWN)); - PyDict_SetItemString(d, "wxEVT_RIGHT_UP", PyInt_FromLong(wxEVT_RIGHT_UP)); - PyDict_SetItemString(d, "wxEVT_MOTION", PyInt_FromLong(wxEVT_MOTION)); - PyDict_SetItemString(d, "wxEVT_ENTER_WINDOW", PyInt_FromLong(wxEVT_ENTER_WINDOW)); - PyDict_SetItemString(d, "wxEVT_LEAVE_WINDOW", PyInt_FromLong(wxEVT_LEAVE_WINDOW)); - PyDict_SetItemString(d, "wxEVT_LEFT_DCLICK", PyInt_FromLong(wxEVT_LEFT_DCLICK)); - PyDict_SetItemString(d, "wxEVT_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_MIDDLE_DCLICK)); - PyDict_SetItemString(d, "wxEVT_RIGHT_DCLICK", PyInt_FromLong(wxEVT_RIGHT_DCLICK)); - PyDict_SetItemString(d, "wxEVT_SET_FOCUS", PyInt_FromLong(wxEVT_SET_FOCUS)); - PyDict_SetItemString(d, "wxEVT_KILL_FOCUS", PyInt_FromLong(wxEVT_KILL_FOCUS)); - PyDict_SetItemString(d, "wxEVT_CHILD_FOCUS", PyInt_FromLong(wxEVT_CHILD_FOCUS)); - PyDict_SetItemString(d, "wxEVT_MOUSEWHEEL", PyInt_FromLong(wxEVT_MOUSEWHEEL)); - PyDict_SetItemString(d, "wxEVT_NC_LEFT_DOWN", PyInt_FromLong(wxEVT_NC_LEFT_DOWN)); - PyDict_SetItemString(d, "wxEVT_NC_LEFT_UP", PyInt_FromLong(wxEVT_NC_LEFT_UP)); - PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DOWN", PyInt_FromLong(wxEVT_NC_MIDDLE_DOWN)); - PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_UP", PyInt_FromLong(wxEVT_NC_MIDDLE_UP)); - PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DOWN", PyInt_FromLong(wxEVT_NC_RIGHT_DOWN)); - PyDict_SetItemString(d, "wxEVT_NC_RIGHT_UP", PyInt_FromLong(wxEVT_NC_RIGHT_UP)); - PyDict_SetItemString(d, "wxEVT_NC_MOTION", PyInt_FromLong(wxEVT_NC_MOTION)); - PyDict_SetItemString(d, "wxEVT_NC_ENTER_WINDOW", PyInt_FromLong(wxEVT_NC_ENTER_WINDOW)); - PyDict_SetItemString(d, "wxEVT_NC_LEAVE_WINDOW", PyInt_FromLong(wxEVT_NC_LEAVE_WINDOW)); - PyDict_SetItemString(d, "wxEVT_NC_LEFT_DCLICK", PyInt_FromLong(wxEVT_NC_LEFT_DCLICK)); - PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_NC_MIDDLE_DCLICK)); - PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DCLICK", PyInt_FromLong(wxEVT_NC_RIGHT_DCLICK)); - PyDict_SetItemString(d, "wxEVT_CHAR", PyInt_FromLong(wxEVT_CHAR)); - PyDict_SetItemString(d, "wxEVT_CHAR_HOOK", PyInt_FromLong(wxEVT_CHAR_HOOK)); - PyDict_SetItemString(d, "wxEVT_NAVIGATION_KEY", PyInt_FromLong(wxEVT_NAVIGATION_KEY)); - PyDict_SetItemString(d, "wxEVT_KEY_DOWN", PyInt_FromLong(wxEVT_KEY_DOWN)); - PyDict_SetItemString(d, "wxEVT_KEY_UP", PyInt_FromLong(wxEVT_KEY_UP)); - PyDict_SetItemString(d, "wxEVT_HOTKEY", PyInt_FromLong(wxEVT_HOTKEY)); - PyDict_SetItemString(d, "wxEVT_SET_CURSOR", PyInt_FromLong(wxEVT_SET_CURSOR)); - PyDict_SetItemString(d, "wxEVT_SCROLL_TOP", PyInt_FromLong(wxEVT_SCROLL_TOP)); - PyDict_SetItemString(d, "wxEVT_SCROLL_BOTTOM", PyInt_FromLong(wxEVT_SCROLL_BOTTOM)); - PyDict_SetItemString(d, "wxEVT_SCROLL_LINEUP", PyInt_FromLong(wxEVT_SCROLL_LINEUP)); - PyDict_SetItemString(d, "wxEVT_SCROLL_LINEDOWN", PyInt_FromLong(wxEVT_SCROLL_LINEDOWN)); - PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEUP", PyInt_FromLong(wxEVT_SCROLL_PAGEUP)); - PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLL_PAGEDOWN)); - PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLL_THUMBTRACK)); - PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLL_THUMBRELEASE)); - PyDict_SetItemString(d, "wxEVT_SCROLL_ENDSCROLL", PyInt_FromLong(wxEVT_SCROLL_ENDSCROLL)); - PyDict_SetItemString(d, "wxEVT_SCROLLWIN_TOP", PyInt_FromLong(wxEVT_SCROLLWIN_TOP)); - PyDict_SetItemString(d, "wxEVT_SCROLLWIN_BOTTOM", PyInt_FromLong(wxEVT_SCROLLWIN_BOTTOM)); - PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEUP", PyInt_FromLong(wxEVT_SCROLLWIN_LINEUP)); - PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_LINEDOWN)); - PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEUP", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEUP)); - PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEDOWN)); - PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBTRACK)); - PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBRELEASE)); - PyDict_SetItemString(d, "wxEVT_SIZE", PyInt_FromLong(wxEVT_SIZE)); - PyDict_SetItemString(d, "wxEVT_MOVE", PyInt_FromLong(wxEVT_MOVE)); - PyDict_SetItemString(d, "wxEVT_CLOSE_WINDOW", PyInt_FromLong(wxEVT_CLOSE_WINDOW)); - PyDict_SetItemString(d, "wxEVT_END_SESSION", PyInt_FromLong(wxEVT_END_SESSION)); - PyDict_SetItemString(d, "wxEVT_QUERY_END_SESSION", PyInt_FromLong(wxEVT_QUERY_END_SESSION)); - PyDict_SetItemString(d, "wxEVT_ACTIVATE_APP", PyInt_FromLong(wxEVT_ACTIVATE_APP)); - PyDict_SetItemString(d, "wxEVT_POWER", PyInt_FromLong(wxEVT_POWER)); - PyDict_SetItemString(d, "wxEVT_ACTIVATE", PyInt_FromLong(wxEVT_ACTIVATE)); - PyDict_SetItemString(d, "wxEVT_CREATE", PyInt_FromLong(wxEVT_CREATE)); - PyDict_SetItemString(d, "wxEVT_DESTROY", PyInt_FromLong(wxEVT_DESTROY)); - PyDict_SetItemString(d, "wxEVT_SHOW", PyInt_FromLong(wxEVT_SHOW)); - PyDict_SetItemString(d, "wxEVT_ICONIZE", PyInt_FromLong(wxEVT_ICONIZE)); - PyDict_SetItemString(d, "wxEVT_MAXIMIZE", PyInt_FromLong(wxEVT_MAXIMIZE)); - PyDict_SetItemString(d, "wxEVT_MOUSE_CAPTURE_CHANGED", PyInt_FromLong(wxEVT_MOUSE_CAPTURE_CHANGED)); - PyDict_SetItemString(d, "wxEVT_PAINT", PyInt_FromLong(wxEVT_PAINT)); - PyDict_SetItemString(d, "wxEVT_ERASE_BACKGROUND", PyInt_FromLong(wxEVT_ERASE_BACKGROUND)); - PyDict_SetItemString(d, "wxEVT_NC_PAINT", PyInt_FromLong(wxEVT_NC_PAINT)); - PyDict_SetItemString(d, "wxEVT_PAINT_ICON", PyInt_FromLong(wxEVT_PAINT_ICON)); - PyDict_SetItemString(d, "wxEVT_MENU_OPEN", PyInt_FromLong(wxEVT_MENU_OPEN)); - PyDict_SetItemString(d, "wxEVT_MENU_CLOSE", PyInt_FromLong(wxEVT_MENU_CLOSE)); - PyDict_SetItemString(d, "wxEVT_MENU_HIGHLIGHT", PyInt_FromLong(wxEVT_MENU_HIGHLIGHT)); - PyDict_SetItemString(d, "wxEVT_CONTEXT_MENU", PyInt_FromLong(wxEVT_CONTEXT_MENU)); - PyDict_SetItemString(d, "wxEVT_SYS_COLOUR_CHANGED", PyInt_FromLong(wxEVT_SYS_COLOUR_CHANGED)); - PyDict_SetItemString(d, "wxEVT_DISPLAY_CHANGED", PyInt_FromLong(wxEVT_DISPLAY_CHANGED)); - PyDict_SetItemString(d, "wxEVT_SETTING_CHANGED", PyInt_FromLong(wxEVT_SETTING_CHANGED)); - PyDict_SetItemString(d, "wxEVT_QUERY_NEW_PALETTE", PyInt_FromLong(wxEVT_QUERY_NEW_PALETTE)); - PyDict_SetItemString(d, "wxEVT_PALETTE_CHANGED", PyInt_FromLong(wxEVT_PALETTE_CHANGED)); - PyDict_SetItemString(d, "wxEVT_DROP_FILES", PyInt_FromLong(wxEVT_DROP_FILES)); - PyDict_SetItemString(d, "wxEVT_DRAW_ITEM", PyInt_FromLong(wxEVT_DRAW_ITEM)); - PyDict_SetItemString(d, "wxEVT_MEASURE_ITEM", PyInt_FromLong(wxEVT_MEASURE_ITEM)); - PyDict_SetItemString(d, "wxEVT_COMPARE_ITEM", PyInt_FromLong(wxEVT_COMPARE_ITEM)); - PyDict_SetItemString(d, "wxEVT_INIT_DIALOG", PyInt_FromLong(wxEVT_INIT_DIALOG)); - PyDict_SetItemString(d, "wxEVT_IDLE", PyInt_FromLong(wxEVT_IDLE)); - PyDict_SetItemString(d, "wxEVT_UPDATE_UI", PyInt_FromLong(wxEVT_UPDATE_UI)); - PyDict_SetItemString(d, "wxEVT_SIZING", PyInt_FromLong(wxEVT_SIZING)); - PyDict_SetItemString(d, "wxEVT_MOVING", PyInt_FromLong(wxEVT_MOVING)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_CLICK)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_DCLICK)); - PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_CLICK)); - PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_DCLICK)); - PyDict_SetItemString(d, "wxEVT_COMMAND_SET_FOCUS", PyInt_FromLong(wxEVT_COMMAND_SET_FOCUS)); - PyDict_SetItemString(d, "wxEVT_COMMAND_KILL_FOCUS", PyInt_FromLong(wxEVT_COMMAND_KILL_FOCUS)); - PyDict_SetItemString(d, "wxEVT_COMMAND_ENTER", PyInt_FromLong(wxEVT_COMMAND_ENTER)); - PyDict_SetItemString(d,"MOUSE_BTN_ANY", SWIG_FromInt((int)wxMOUSE_BTN_ANY)); - PyDict_SetItemString(d,"MOUSE_BTN_NONE", SWIG_FromInt((int)wxMOUSE_BTN_NONE)); - PyDict_SetItemString(d,"MOUSE_BTN_LEFT", SWIG_FromInt((int)wxMOUSE_BTN_LEFT)); - PyDict_SetItemString(d,"MOUSE_BTN_MIDDLE", SWIG_FromInt((int)wxMOUSE_BTN_MIDDLE)); - PyDict_SetItemString(d,"MOUSE_BTN_RIGHT", SWIG_FromInt((int)wxMOUSE_BTN_RIGHT)); - PyDict_SetItemString(d,"UPDATE_UI_PROCESS_ALL", SWIG_FromInt((int)wxUPDATE_UI_PROCESS_ALL)); - PyDict_SetItemString(d,"UPDATE_UI_PROCESS_SPECIFIED", SWIG_FromInt((int)wxUPDATE_UI_PROCESS_SPECIFIED)); - PyDict_SetItemString(d,"IDLE_PROCESS_ALL", SWIG_FromInt((int)wxIDLE_PROCESS_ALL)); - PyDict_SetItemString(d,"IDLE_PROCESS_SPECIFIED", SWIG_FromInt((int)wxIDLE_PROCESS_SPECIFIED)); - PyDict_SetItemString(d,"PYAPP_ASSERT_SUPPRESS", SWIG_FromInt((int)wxPYAPP_ASSERT_SUPPRESS)); - PyDict_SetItemString(d,"PYAPP_ASSERT_EXCEPTION", SWIG_FromInt((int)wxPYAPP_ASSERT_EXCEPTION)); - PyDict_SetItemString(d,"PYAPP_ASSERT_DIALOG", SWIG_FromInt((int)wxPYAPP_ASSERT_DIALOG)); - PyDict_SetItemString(d,"PYAPP_ASSERT_LOG", SWIG_FromInt((int)wxPYAPP_ASSERT_LOG)); - PyDict_SetItemString(d,"PRINT_WINDOWS", SWIG_FromInt((int)wxPRINT_WINDOWS)); - PyDict_SetItemString(d,"PRINT_POSTSCRIPT", SWIG_FromInt((int)wxPRINT_POSTSCRIPT)); - SWIG_addvarlink(SWIG_globals,(char*)"NullAcceleratorTable",_wrap_NullAcceleratorTable_get, _wrap_NullAcceleratorTable_set); - SWIG_addvarlink(SWIG_globals,(char*)"PanelNameStr",_wrap_PanelNameStr_get, _wrap_PanelNameStr_set); - PyDict_SetItemString(d,"WINDOW_VARIANT_NORMAL", SWIG_FromInt((int)wxWINDOW_VARIANT_NORMAL)); - PyDict_SetItemString(d,"WINDOW_VARIANT_SMALL", SWIG_FromInt((int)wxWINDOW_VARIANT_SMALL)); - PyDict_SetItemString(d,"WINDOW_VARIANT_MINI", SWIG_FromInt((int)wxWINDOW_VARIANT_MINI)); - PyDict_SetItemString(d,"WINDOW_VARIANT_LARGE", SWIG_FromInt((int)wxWINDOW_VARIANT_LARGE)); - PyDict_SetItemString(d,"WINDOW_VARIANT_MAX", SWIG_FromInt((int)wxWINDOW_VARIANT_MAX)); - SWIG_addvarlink(SWIG_globals,(char*)"DefaultValidator",_wrap_DefaultValidator_get, _wrap_DefaultValidator_set); - SWIG_addvarlink(SWIG_globals,(char*)"ControlNameStr",_wrap_ControlNameStr_get, _wrap_ControlNameStr_set); - PyDict_SetItemString(d,"FLEX_GROWMODE_NONE", SWIG_FromInt((int)wxFLEX_GROWMODE_NONE)); - PyDict_SetItemString(d,"FLEX_GROWMODE_SPECIFIED", SWIG_FromInt((int)wxFLEX_GROWMODE_SPECIFIED)); - PyDict_SetItemString(d,"FLEX_GROWMODE_ALL", SWIG_FromInt((int)wxFLEX_GROWMODE_ALL)); - SWIG_addvarlink(SWIG_globals,(char*)"DefaultSpan",_wrap_DefaultSpan_get, _wrap_DefaultSpan_set); - PyDict_SetItemString(d,"Left", SWIG_FromInt((int)wxLeft)); - PyDict_SetItemString(d,"Top", SWIG_FromInt((int)wxTop)); - PyDict_SetItemString(d,"Right", SWIG_FromInt((int)wxRight)); - PyDict_SetItemString(d,"Bottom", SWIG_FromInt((int)wxBottom)); - PyDict_SetItemString(d,"Width", SWIG_FromInt((int)wxWidth)); - PyDict_SetItemString(d,"Height", SWIG_FromInt((int)wxHeight)); - PyDict_SetItemString(d,"Centre", SWIG_FromInt((int)wxCentre)); - PyDict_SetItemString(d,"Center", SWIG_FromInt((int)wxCenter)); - PyDict_SetItemString(d,"CentreX", SWIG_FromInt((int)wxCentreX)); - PyDict_SetItemString(d,"CentreY", SWIG_FromInt((int)wxCentreY)); - PyDict_SetItemString(d,"Unconstrained", SWIG_FromInt((int)wxUnconstrained)); - PyDict_SetItemString(d,"AsIs", SWIG_FromInt((int)wxAsIs)); - PyDict_SetItemString(d,"PercentOf", SWIG_FromInt((int)wxPercentOf)); - PyDict_SetItemString(d,"Above", SWIG_FromInt((int)wxAbove)); - PyDict_SetItemString(d,"Below", SWIG_FromInt((int)wxBelow)); - PyDict_SetItemString(d,"LeftOf", SWIG_FromInt((int)wxLeftOf)); - PyDict_SetItemString(d,"RightOf", SWIG_FromInt((int)wxRightOf)); - PyDict_SetItemString(d,"SameAs", SWIG_FromInt((int)wxSameAs)); - PyDict_SetItemString(d,"Absolute", SWIG_FromInt((int)wxAbsolute)); - - // Initialize threading, some globals and such - __wxPyPreStart(d); - - - // Although these are defined in __version__ they need to be here too so - // that an assert can be done to ensure that the wxPython and the wxWindows - // versions match. - PyDict_SetItemString(d,"MAJOR_VERSION", PyInt_FromLong((long)wxMAJOR_VERSION )); - PyDict_SetItemString(d,"MINOR_VERSION", PyInt_FromLong((long)wxMINOR_VERSION )); - PyDict_SetItemString(d,"RELEASE_VERSION", PyInt_FromLong((long)wxRELEASE_NUMBER )); - -} - diff --git a/wxPython/src/gtk/grid.py b/wxPython/src/gtk/grid.py index 00b981918d..21b76802ad 100644 --- a/wxPython/src/gtk/grid.py +++ b/wxPython/src/gtk/grid.py @@ -3,9 +3,9 @@ import _grid -import windows -import core -wx = core +import _windows +import _core +wx = _core __docfilter__ = wx.__docfilter__ GRID_VALUE_STRING = _grid.GRID_VALUE_STRING GRID_VALUE_BOOL = _grid.GRID_VALUE_BOOL @@ -802,7 +802,7 @@ class PyGridCellAttrProviderPtr(PyGridCellAttrProvider): self.__class__ = PyGridCellAttrProvider _grid.PyGridCellAttrProvider_swigregister(PyGridCellAttrProviderPtr) -class GridTableBase(core.Object): +class GridTableBase(_core.Object): def __init__(self): raise RuntimeError, "No constructor defined" def __repr__(self): return "<%s.%s; proxy of C++ wxGridTableBase instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) @@ -1207,7 +1207,7 @@ class GridCellCoordsPtr(GridCellCoords): self.__class__ = GridCellCoords _grid.GridCellCoords_swigregister(GridCellCoordsPtr) -class Grid(windows.ScrolledWindow): +class Grid(_windows.ScrolledWindow): def __repr__(self): return "<%s.%s; proxy of C++ wxGrid instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -1991,7 +1991,7 @@ class GridPtr(Grid): self.__class__ = Grid _grid.Grid_swigregister(GridPtr) -class GridEvent(core.NotifyEvent): +class GridEvent(_core.NotifyEvent): def __repr__(self): return "<%s.%s; proxy of C++ wxGridEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -2045,7 +2045,7 @@ class GridEventPtr(GridEvent): self.__class__ = GridEvent _grid.GridEvent_swigregister(GridEventPtr) -class GridSizeEvent(core.NotifyEvent): +class GridSizeEvent(_core.NotifyEvent): def __repr__(self): return "<%s.%s; proxy of C++ wxGridSizeEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -2090,7 +2090,7 @@ class GridSizeEventPtr(GridSizeEvent): self.__class__ = GridSizeEvent _grid.GridSizeEvent_swigregister(GridSizeEventPtr) -class GridRangeSelectEvent(core.NotifyEvent): +class GridRangeSelectEvent(_core.NotifyEvent): def __repr__(self): return "<%s.%s; proxy of C++ wxGridRangeSelectEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -2156,7 +2156,7 @@ class GridRangeSelectEventPtr(GridRangeSelectEvent): self.__class__ = GridRangeSelectEvent _grid.GridRangeSelectEvent_swigregister(GridRangeSelectEventPtr) -class GridEditorCreatedEvent(core.CommandEvent): +class GridEditorCreatedEvent(_core.CommandEvent): def __repr__(self): return "<%s.%s; proxy of C++ wxGridEditorCreatedEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): diff --git a/wxPython/src/gtk/html.py b/wxPython/src/gtk/html.py index c8185256b6..6a2475f236 100644 --- a/wxPython/src/gtk/html.py +++ b/wxPython/src/gtk/html.py @@ -3,9 +3,9 @@ import _html -import windows -import core -wx = core +import _windows +import _core +wx = _core __docfilter__ = wx.__docfilter__ #--------------------------------------------------------------------------- @@ -45,7 +45,7 @@ HTML_REDIRECT = _html.HTML_REDIRECT HTML_URL_PAGE = _html.HTML_URL_PAGE HTML_URL_IMAGE = _html.HTML_URL_IMAGE HTML_URL_OTHER = _html.HTML_URL_OTHER -class HtmlLinkInfo(core.Object): +class HtmlLinkInfo(_core.Object): def __repr__(self): return "<%s.%s; proxy of C++ wxHtmlLinkInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -90,7 +90,7 @@ HtmlWindowNameStr = cvar.HtmlWindowNameStr HtmlPrintoutTitleStr = cvar.HtmlPrintoutTitleStr HtmlPrintingTitleStr = cvar.HtmlPrintingTitleStr -class HtmlTag(core.Object): +class HtmlTag(_core.Object): def __init__(self): raise RuntimeError, "No constructor defined" def __repr__(self): return "<%s.%s; proxy of C++ wxHtmlTag instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) @@ -134,7 +134,7 @@ class HtmlTagPtr(HtmlTag): self.__class__ = HtmlTag _html.HtmlTag_swigregister(HtmlTagPtr) -class HtmlParser(core.Object): +class HtmlParser(_core.Object): def __init__(self): raise RuntimeError, "No constructor defined" def __repr__(self): return "<%s.%s; proxy of C++ wxHtmlParser instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) @@ -323,7 +323,7 @@ class HtmlWinParserPtr(HtmlWinParser): self.__class__ = HtmlWinParser _html.HtmlWinParser_swigregister(HtmlWinParserPtr) -class HtmlTagHandler(core.Object): +class HtmlTagHandler(_core.Object): def __repr__(self): return "<%s.%s; proxy of C++ wxPyHtmlTagHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -608,7 +608,7 @@ _html.HtmlRenderingInfo_swigregister(HtmlRenderingInfoPtr) HTML_FIND_EXACT = _html.HTML_FIND_EXACT HTML_FIND_NEAREST_BEFORE = _html.HTML_FIND_NEAREST_BEFORE HTML_FIND_NEAREST_AFTER = _html.HTML_FIND_NEAREST_AFTER -class HtmlCell(core.Object): +class HtmlCell(_core.Object): def __repr__(self): return "<%s.%s; proxy of C++ wxHtmlCell instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -908,7 +908,7 @@ _html.HtmlWidgetCell_swigregister(HtmlWidgetCellPtr) #--------------------------------------------------------------------------- -class HtmlFilter(core.Object): +class HtmlFilter(_core.Object): def __repr__(self): return "<%s.%s; proxy of C++ wxPyHtmlFilter instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -933,7 +933,7 @@ _html.HtmlFilter_swigregister(HtmlFilterPtr) #--------------------------------------------------------------------------- -class HtmlWindow(windows.ScrolledWindow): +class HtmlWindow(_windows.ScrolledWindow): def __repr__(self): return "<%s.%s; proxy of C++ wxPyHtmlWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -1109,7 +1109,7 @@ def HtmlWindow_AddFilter(*args, **kwargs): #--------------------------------------------------------------------------- -class HtmlDCRenderer(core.Object): +class HtmlDCRenderer(_core.Object): def __repr__(self): return "<%s.%s; proxy of C++ wxHtmlDCRenderer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -1162,7 +1162,7 @@ _html.HtmlDCRenderer_swigregister(HtmlDCRendererPtr) PAGE_ODD = _html.PAGE_ODD PAGE_EVEN = _html.PAGE_EVEN PAGE_ALL = _html.PAGE_ALL -class HtmlPrintout(windows.Printout): +class HtmlPrintout(_windows.Printout): def __repr__(self): return "<%s.%s; proxy of C++ wxHtmlPrintout instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -1224,7 +1224,7 @@ def HtmlPrintout_CleanUpStatics(*args, **kwargs): """HtmlPrintout_CleanUpStatics()""" return _html.HtmlPrintout_CleanUpStatics(*args, **kwargs) -class HtmlEasyPrinting(core.Object): +class HtmlEasyPrinting(_core.Object): def __repr__(self): return "<%s.%s; proxy of C++ wxHtmlEasyPrinting instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -1481,7 +1481,7 @@ class HtmlHelpDataPtr(HtmlHelpData): self.__class__ = HtmlHelpData _html.HtmlHelpData_swigregister(HtmlHelpDataPtr) -class HtmlHelpFrame(windows.Frame): +class HtmlHelpFrame(_windows.Frame): def __repr__(self): return "<%s.%s; proxy of C++ wxHtmlHelpFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -1552,7 +1552,7 @@ HF_BOOKMARKS = _html.HF_BOOKMARKS HF_OPENFILES = _html.HF_OPENFILES HF_PRINT = _html.HF_PRINT HF_DEFAULTSTYLE = _html.HF_DEFAULTSTYLE -class HtmlHelpController(core.EvtHandler): +class HtmlHelpController(_core.EvtHandler): def __repr__(self): return "<%s.%s; proxy of C++ wxHtmlHelpController instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): diff --git a/wxPython/src/gtk/wizard.py b/wxPython/src/gtk/wizard.py index d1b43ef55b..e4fa1a1dd7 100644 --- a/wxPython/src/gtk/wizard.py +++ b/wxPython/src/gtk/wizard.py @@ -3,9 +3,9 @@ import _wizard -import windows -import core -wx = core +import _windows +import _core +wx = _core WIZARD_EX_HELPBUTTON = _wizard.WIZARD_EX_HELPBUTTON wxEVT_WIZARD_PAGE_CHANGED = _wizard.wxEVT_WIZARD_PAGE_CHANGED wxEVT_WIZARD_PAGE_CHANGING = _wizard.wxEVT_WIZARD_PAGE_CHANGING @@ -18,7 +18,7 @@ EVT_WIZARD_CANCEL = wx.PyEventBinder( wxEVT_WIZARD_CANCEL, 1) EVT_WIZARD_HELP = wx.PyEventBinder( wxEVT_WIZARD_HELP, 1) EVT_WIZARD_FINISHED = wx.PyEventBinder( wxEVT_WIZARD_FINISHED, 1) -class WizardEvent(core.NotifyEvent): +class WizardEvent(_core.NotifyEvent): def __repr__(self): return "<%s.%s; proxy of C++ wxWizardEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -46,7 +46,7 @@ class WizardEventPtr(WizardEvent): self.__class__ = WizardEvent _wizard.WizardEvent_swigregister(WizardEventPtr) -class WizardPage(windows.Panel): +class WizardPage(_windows.Panel): def __init__(self): raise RuntimeError, "No constructor defined" def __repr__(self): return "<%s.%s; proxy of C++ wxWizardPage instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) @@ -231,7 +231,7 @@ def WizardPageSimple_Chain(*args, **kwargs): """WizardPageSimple_Chain(WizardPageSimple first, WizardPageSimple second)""" return _wizard.WizardPageSimple_Chain(*args, **kwargs) -class Wizard(windows.Dialog): +class Wizard(_windows.Dialog): def __repr__(self): return "<%s.%s; proxy of C++ wxWizard instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): diff --git a/wxPython/src/html.i b/wxPython/src/html.i index 535ff6aeee..d167819a5f 100644 --- a/wxPython/src/html.i +++ b/wxPython/src/html.i @@ -29,7 +29,7 @@ //--------------------------------------------------------------------------- %import windows.i -%pythoncode { wx = core } +%pythoncode { wx = _core } %pythoncode { __docfilter__ = wx.__docfilter__ } %include _html_rename.i diff --git a/wxPython/src/mac/controls.py b/wxPython/src/mac/controls.py deleted file mode 100644 index 3ab614c71f..0000000000 --- a/wxPython/src/mac/controls.py +++ /dev/null @@ -1,5254 +0,0 @@ -# This file was created automatically by SWIG. -# Don't modify this file, modify the SWIG interface instead. - -import _controls - -import core -wx = core -__docfilter__ = wx.__docfilter__ -#--------------------------------------------------------------------------- - -BU_LEFT = _controls.BU_LEFT -BU_TOP = _controls.BU_TOP -BU_RIGHT = _controls.BU_RIGHT -BU_BOTTOM = _controls.BU_BOTTOM -BU_EXACTFIT = _controls.BU_EXACTFIT -BU_AUTODRAW = _controls.BU_AUTODRAW -class Button(core.Control): - """ - A button is a control that contains a text string, and is one of the most - common elements of a GUI. It may be placed on a dialog box or panel, or - indeed almost any other window. - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxButton instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, String label, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, - Validator validator=DefaultValidator, String name=ButtonNameStr) -> Button - - Create and show a button. - """ - newobj = _controls.new_Button(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id, String label, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, - Validator validator=DefaultValidator, String name=ButtonNameStr) -> bool - - Acutally create the GUI Button for 2-phase creation. - """ - return _controls.Button_Create(*args, **kwargs) - - def SetDefault(*args, **kwargs): - """ - SetDefault(self) - - This sets the button to be the default item for the panel or dialog box. - """ - return _controls.Button_SetDefault(*args, **kwargs) - - def GetDefaultSize(*args, **kwargs): - """Button.GetDefaultSize() -> Size""" - return _controls.Button_GetDefaultSize(*args, **kwargs) - - GetDefaultSize = staticmethod(GetDefaultSize) - -class ButtonPtr(Button): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Button -_controls.Button_swigregister(ButtonPtr) -cvar = _controls.cvar -ButtonNameStr = cvar.ButtonNameStr - -def PreButton(*args, **kwargs): - """ - PreButton() -> Button - - Precreate a Button for 2-phase creation. - """ - val = _controls.new_PreButton(*args, **kwargs) - val.thisown = 1 - return val - -def Button_GetDefaultSize(*args, **kwargs): - """Button_GetDefaultSize() -> Size""" - return _controls.Button_GetDefaultSize(*args, **kwargs) - -class BitmapButton(Button): - """ - A Button that contains a bitmap. A bitmap button can be supplied with a - single bitmap, and wxWindows will draw all button states using this bitmap. If - the application needs more control, additional bitmaps for the selected state, - unpressed focused state, and greyed-out state may be supplied. - - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxBitmapButton instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition, - Size size=DefaultSize, long style=BU_AUTODRAW, - Validator validator=DefaultValidator, - String name=ButtonNameStr) -> BitmapButton - - Create and show a button with a bitmap for the label. - """ - newobj = _controls.new_BitmapButton(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition, - Size size=DefaultSize, long style=BU_AUTODRAW, - Validator validator=DefaultValidator, - String name=ButtonNameStr) -> bool - - Acutally create the GUI BitmapButton for 2-phase creation. - """ - return _controls.BitmapButton_Create(*args, **kwargs) - - def GetBitmapLabel(*args, **kwargs): - """ - GetBitmapLabel(self) -> Bitmap - - Returns the label bitmap (the one passed to the constructor). - """ - return _controls.BitmapButton_GetBitmapLabel(*args, **kwargs) - - def GetBitmapDisabled(*args, **kwargs): - """ - GetBitmapDisabled(self) -> Bitmap - - Returns the bitmap for the disabled state. - """ - return _controls.BitmapButton_GetBitmapDisabled(*args, **kwargs) - - def GetBitmapFocus(*args, **kwargs): - """ - GetBitmapFocus(self) -> Bitmap - - Returns the bitmap for the focused state. - """ - return _controls.BitmapButton_GetBitmapFocus(*args, **kwargs) - - def GetBitmapSelected(*args, **kwargs): - """ - GetBitmapSelected(self) -> Bitmap - - Returns the bitmap for the selected state. - """ - return _controls.BitmapButton_GetBitmapSelected(*args, **kwargs) - - def SetBitmapDisabled(*args, **kwargs): - """ - SetBitmapDisabled(self, Bitmap bitmap) - - Sets the bitmap for the disabled button appearance. - """ - return _controls.BitmapButton_SetBitmapDisabled(*args, **kwargs) - - def SetBitmapFocus(*args, **kwargs): - """ - SetBitmapFocus(self, Bitmap bitmap) - - Sets the bitmap for the button appearance when it has the keyboard focus. - """ - return _controls.BitmapButton_SetBitmapFocus(*args, **kwargs) - - def SetBitmapSelected(*args, **kwargs): - """ - SetBitmapSelected(self, Bitmap bitmap) - - Sets the bitmap for the selected (depressed) button appearance. - """ - return _controls.BitmapButton_SetBitmapSelected(*args, **kwargs) - - def SetBitmapLabel(*args, **kwargs): - """ - SetBitmapLabel(self, Bitmap bitmap) - - Sets the bitmap label for the button. This is the bitmap used for the - unselected state, and for all other states if no other bitmaps are provided. - """ - return _controls.BitmapButton_SetBitmapLabel(*args, **kwargs) - - def SetMargins(*args, **kwargs): - """SetMargins(self, int x, int y)""" - return _controls.BitmapButton_SetMargins(*args, **kwargs) - - def GetMarginX(*args, **kwargs): - """GetMarginX(self) -> int""" - return _controls.BitmapButton_GetMarginX(*args, **kwargs) - - def GetMarginY(*args, **kwargs): - """GetMarginY(self) -> int""" - return _controls.BitmapButton_GetMarginY(*args, **kwargs) - - -class BitmapButtonPtr(BitmapButton): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = BitmapButton -_controls.BitmapButton_swigregister(BitmapButtonPtr) - -def PreBitmapButton(*args, **kwargs): - """ - PreBitmapButton() -> BitmapButton - - Precreate a BitmapButton for 2-phase creation. - """ - val = _controls.new_PreBitmapButton(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -CHK_2STATE = _controls.CHK_2STATE -CHK_3STATE = _controls.CHK_3STATE -CHK_ALLOW_3RD_STATE_FOR_USER = _controls.CHK_ALLOW_3RD_STATE_FOR_USER -CHK_UNCHECKED = _controls.CHK_UNCHECKED -CHK_CHECKED = _controls.CHK_CHECKED -CHK_UNDETERMINED = _controls.CHK_UNDETERMINED -class CheckBox(core.Control): - """ - A checkbox is a labelled box which by default is either on (checkmark is - visible) or off (no checkmark). Optionally (When the wxCHK_3STATE style flag - is set) it can have a third state, called the mixed or undetermined - state. Often this is used as a "Does Not Apply" state. - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxCheckBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, String label, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, - Validator validator=DefaultValidator, String name=CheckBoxNameStr) -> CheckBox - - Creates and shows a CheckBox control - """ - newobj = _controls.new_CheckBox(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id, String label, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, - Validator validator=DefaultValidator, String name=CheckBoxNameStr) -> bool - - Actually create the GUI CheckBox for 2-phase creation. - """ - return _controls.CheckBox_Create(*args, **kwargs) - - def GetValue(*args, **kwargs): - """ - GetValue(self) -> bool - - Gets the state of a 2-state CheckBox. Returns True if it is checked, - False otherwise. - """ - return _controls.CheckBox_GetValue(*args, **kwargs) - - def IsChecked(*args, **kwargs): - """ - IsChecked(self) -> bool - - Similar to GetValue, but raises an exception if it is not a 2-state CheckBox. - """ - return _controls.CheckBox_IsChecked(*args, **kwargs) - - def SetValue(*args, **kwargs): - """ - SetValue(self, bool state) - - Set the state of a 2-state CheckBox. Pass True for checked, - False for unchecked. - """ - return _controls.CheckBox_SetValue(*args, **kwargs) - - def Get3StateValue(*args, **kwargs): - """ - Get3StateValue(self) -> int - - Returns wx.CHK_UNCHECKED when the CheckBox is unchecked, wx.CHK_CHECKED when - it is checked and wx.CHK_UNDETERMINED when it's in the undetermined state. - Raises an exceptiion when the function is used with a 2-state CheckBox. - """ - return _controls.CheckBox_Get3StateValue(*args, **kwargs) - - def Set3StateValue(*args, **kwargs): - """ - Set3StateValue(self, int state) - - Sets the CheckBox to the given state. The state parameter can be - one of the following: wx.CHK_UNCHECKED (Check is off), wx.CHK_CHECKED - (Check is on) or wx.CHK_UNDETERMINED (Check is mixed). Raises an - exception when the CheckBox is a 2-state checkbox and setting the state - to wx.CHK_UNDETERMINED. - """ - return _controls.CheckBox_Set3StateValue(*args, **kwargs) - - def Is3State(*args, **kwargs): - """ - Is3State(self) -> bool - - Returns whether or not the CheckBox is a 3-state CheckBox. - """ - return _controls.CheckBox_Is3State(*args, **kwargs) - - def Is3rdStateAllowedForUser(*args, **kwargs): - """ - Is3rdStateAllowedForUser(self) -> bool - - Returns whether or not the user can set the CheckBox to the third state. - """ - return _controls.CheckBox_Is3rdStateAllowedForUser(*args, **kwargs) - - -class CheckBoxPtr(CheckBox): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = CheckBox -_controls.CheckBox_swigregister(CheckBoxPtr) -CheckBoxNameStr = cvar.CheckBoxNameStr - -def PreCheckBox(*args, **kwargs): - """ - PreCheckBox() -> CheckBox - - Precreate a CheckBox for 2-phase creation. - """ - val = _controls.new_PreCheckBox(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -class Choice(core.ControlWithItems): - """ - A Choice control is used to select one of a list of strings. Unlike a ListBox, - only the selection is visible until the user pulls down the menu of choices. - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxChoice instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - List choices=[], long style=0, Validator validator=DefaultValidator, - String name=ChoiceNameStr) -> Choice - - Create and show a Choice control - """ - newobj = _controls.new_Choice(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - List choices=[], long style=0, Validator validator=DefaultValidator, - String name=ChoiceNameStr) -> bool - - Actually create the GUI Choice control for 2-phase creation - """ - return _controls.Choice_Create(*args, **kwargs) - - def SetSelection(*args, **kwargs): - """ - SetSelection(self, int n) - - Select the n'th item (zero based) in the list. - """ - return _controls.Choice_SetSelection(*args, **kwargs) - - def SetStringSelection(*args, **kwargs): - """ - SetStringSelection(self, String string) - - Select the item with the specifed string - """ - return _controls.Choice_SetStringSelection(*args, **kwargs) - - def SetString(*args, **kwargs): - """ - SetString(self, int n, String string) - - Set the label for the n'th item (zero based) in the list. - """ - return _controls.Choice_SetString(*args, **kwargs) - - Select = SetSelection - -class ChoicePtr(Choice): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Choice -_controls.Choice_swigregister(ChoicePtr) -ChoiceNameStr = cvar.ChoiceNameStr - -def PreChoice(*args, **kwargs): - """ - PreChoice() -> Choice - - Precreate a Choice control for 2-phase creation. - """ - val = _controls.new_PreChoice(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -class ComboBox(core.Control,core.ItemContainer): - """ - A combobox is like a combination of an edit control and a listbox. It can be - displayed as static list with editable or read-only text field; or a drop-down - list with text field. - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxComboBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(Window parent, int id, String value=EmptyString, - Point pos=DefaultPosition, Size size=DefaultSize, - List choices=[], long style=0, Validator validator=DefaultValidator, - String name=ComboBoxNameStr) -> ComboBox - - Constructor, creates and shows a ComboBox control. - """ - newobj = _controls.new_ComboBox(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(Window parent, int id, String value=EmptyString, - Point pos=DefaultPosition, Size size=DefaultSize, - List choices=[], long style=0, Validator validator=DefaultValidator, - String name=ChoiceNameStr) -> bool - - Actually create the GUI wxComboBox control for 2-phase creation - """ - return _controls.ComboBox_Create(*args, **kwargs) - - def GetValue(*args, **kwargs): - """ - GetValue(self) -> String - - Returns the current value in the combobox text field. - """ - return _controls.ComboBox_GetValue(*args, **kwargs) - - def SetValue(*args, **kwargs): - """SetValue(self, String value)""" - return _controls.ComboBox_SetValue(*args, **kwargs) - - def Copy(*args, **kwargs): - """ - Copy(self) - - Copies the selected text to the clipboard. - """ - return _controls.ComboBox_Copy(*args, **kwargs) - - def Cut(*args, **kwargs): - """ - Cut(self) - - Copies the selected text to the clipboard and removes the selection. - """ - return _controls.ComboBox_Cut(*args, **kwargs) - - def Paste(*args, **kwargs): - """ - Paste(self) - - Pastes text from the clipboard to the text field. - """ - return _controls.ComboBox_Paste(*args, **kwargs) - - def SetInsertionPoint(*args, **kwargs): - """ - SetInsertionPoint(self, long pos) - - Sets the insertion point in the combobox text field. - """ - return _controls.ComboBox_SetInsertionPoint(*args, **kwargs) - - def GetInsertionPoint(*args, **kwargs): - """ - GetInsertionPoint(self) -> long - - Returns the insertion point for the combobox's text field. - """ - return _controls.ComboBox_GetInsertionPoint(*args, **kwargs) - - def GetLastPosition(*args, **kwargs): - """ - GetLastPosition(self) -> long - - Returns the last position in the combobox text field. - """ - return _controls.ComboBox_GetLastPosition(*args, **kwargs) - - def Replace(*args, **kwargs): - """ - Replace(self, long from, long to, String value) - - Replaces the text between two positions with the given text, in the - combobox text field. - """ - return _controls.ComboBox_Replace(*args, **kwargs) - - def SetSelection(*args, **kwargs): - """ - SetSelection(self, int n) - - Selects the text between the two positions, in the combobox text field. - """ - return _controls.ComboBox_SetSelection(*args, **kwargs) - - def SetMark(*args, **kwargs): - """SetMark(self, long from, long to)""" - return _controls.ComboBox_SetMark(*args, **kwargs) - - def SetEditable(*args, **kwargs): - """SetEditable(self, bool editable)""" - return _controls.ComboBox_SetEditable(*args, **kwargs) - - def SetInsertionPointEnd(*args, **kwargs): - """ - SetInsertionPointEnd(self) - - Sets the insertion point at the end of the combobox text field. - """ - return _controls.ComboBox_SetInsertionPointEnd(*args, **kwargs) - - def Remove(*args, **kwargs): - """ - Remove(self, long from, long to) - - Removes the text between the two positions in the combobox text field. - """ - return _controls.ComboBox_Remove(*args, **kwargs) - - -class ComboBoxPtr(ComboBox): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ComboBox -_controls.ComboBox_swigregister(ComboBoxPtr) -ComboBoxNameStr = cvar.ComboBoxNameStr - -def PreComboBox(*args, **kwargs): - """ - PreComboBox() -> ComboBox - - Precreate a ComboBox control for 2-phase creation. - """ - val = _controls.new_PreComboBox(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -GA_HORIZONTAL = _controls.GA_HORIZONTAL -GA_VERTICAL = _controls.GA_VERTICAL -GA_SMOOTH = _controls.GA_SMOOTH -GA_PROGRESSBAR = _controls.GA_PROGRESSBAR -class Gauge(core.Control): - def __repr__(self): - return "<%s.%s; proxy of C++ wxGauge instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, int range, Point pos=DefaultPosition, - Size size=DefaultSize, long style=GA_HORIZONTAL, - Validator validator=DefaultValidator, - String name=GaugeNameStr) -> Gauge - """ - newobj = _controls.new_Gauge(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id, int range, Point pos=DefaultPosition, - Size size=DefaultSize, long style=GA_HORIZONTAL, - Validator validator=DefaultValidator, - String name=GaugeNameStr) -> bool - """ - return _controls.Gauge_Create(*args, **kwargs) - - def SetRange(*args, **kwargs): - """SetRange(self, int range)""" - return _controls.Gauge_SetRange(*args, **kwargs) - - def GetRange(*args, **kwargs): - """GetRange(self) -> int""" - return _controls.Gauge_GetRange(*args, **kwargs) - - def SetValue(*args, **kwargs): - """SetValue(self, int pos)""" - return _controls.Gauge_SetValue(*args, **kwargs) - - def GetValue(*args, **kwargs): - """GetValue(self) -> int""" - return _controls.Gauge_GetValue(*args, **kwargs) - - def IsVertical(*args, **kwargs): - """IsVertical(self) -> bool""" - return _controls.Gauge_IsVertical(*args, **kwargs) - - def SetShadowWidth(*args, **kwargs): - """SetShadowWidth(self, int w)""" - return _controls.Gauge_SetShadowWidth(*args, **kwargs) - - def GetShadowWidth(*args, **kwargs): - """GetShadowWidth(self) -> int""" - return _controls.Gauge_GetShadowWidth(*args, **kwargs) - - def SetBezelFace(*args, **kwargs): - """SetBezelFace(self, int w)""" - return _controls.Gauge_SetBezelFace(*args, **kwargs) - - def GetBezelFace(*args, **kwargs): - """GetBezelFace(self) -> int""" - return _controls.Gauge_GetBezelFace(*args, **kwargs) - - -class GaugePtr(Gauge): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Gauge -_controls.Gauge_swigregister(GaugePtr) -GaugeNameStr = cvar.GaugeNameStr - -def PreGauge(*args, **kwargs): - """PreGauge() -> Gauge""" - val = _controls.new_PreGauge(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -class StaticBox(core.Control): - def __repr__(self): - return "<%s.%s; proxy of C++ wxStaticBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, String label, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, - String name=StaticBoxNameStr) -> StaticBox - """ - newobj = _controls.new_StaticBox(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id, String label, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, - String name=StaticBoxNameStr) -> bool - """ - return _controls.StaticBox_Create(*args, **kwargs) - - -class StaticBoxPtr(StaticBox): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = StaticBox -_controls.StaticBox_swigregister(StaticBoxPtr) -StaticBitmapNameStr = cvar.StaticBitmapNameStr -StaticBoxNameStr = cvar.StaticBoxNameStr -StaticTextNameStr = cvar.StaticTextNameStr - -def PreStaticBox(*args, **kwargs): - """PreStaticBox() -> StaticBox""" - val = _controls.new_PreStaticBox(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -class StaticLine(core.Control): - def __repr__(self): - return "<%s.%s; proxy of C++ wxStaticLine instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - long style=LI_HORIZONTAL, - String name=StaticTextNameStr) -> StaticLine - """ - newobj = _controls.new_StaticLine(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - long style=LI_HORIZONTAL, - String name=StaticTextNameStr) -> bool - """ - return _controls.StaticLine_Create(*args, **kwargs) - - def IsVertical(*args, **kwargs): - """IsVertical(self) -> bool""" - return _controls.StaticLine_IsVertical(*args, **kwargs) - - def GetDefaultSize(*args, **kwargs): - """StaticLine.GetDefaultSize() -> int""" - return _controls.StaticLine_GetDefaultSize(*args, **kwargs) - - GetDefaultSize = staticmethod(GetDefaultSize) - -class StaticLinePtr(StaticLine): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = StaticLine -_controls.StaticLine_swigregister(StaticLinePtr) - -def PreStaticLine(*args, **kwargs): - """PreStaticLine() -> StaticLine""" - val = _controls.new_PreStaticLine(*args, **kwargs) - val.thisown = 1 - return val - -def StaticLine_GetDefaultSize(*args, **kwargs): - """StaticLine_GetDefaultSize() -> int""" - return _controls.StaticLine_GetDefaultSize(*args, **kwargs) - -#--------------------------------------------------------------------------- - -class StaticText(core.Control): - def __repr__(self): - return "<%s.%s; proxy of C++ wxStaticText instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, String label, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, - String name=StaticTextNameStr) -> StaticText - """ - newobj = _controls.new_StaticText(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id, String label, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, - String name=StaticTextNameStr) -> bool - """ - return _controls.StaticText_Create(*args, **kwargs) - - -class StaticTextPtr(StaticText): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = StaticText -_controls.StaticText_swigregister(StaticTextPtr) - -def PreStaticText(*args, **kwargs): - """PreStaticText() -> StaticText""" - val = _controls.new_PreStaticText(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -class StaticBitmap(core.Control): - def __repr__(self): - return "<%s.%s; proxy of C++ wxStaticBitmap instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, - String name=StaticBitmapNameStr) -> StaticBitmap - """ - newobj = _controls.new_StaticBitmap(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, - String name=StaticBitmapNameStr) -> bool - """ - return _controls.StaticBitmap_Create(*args, **kwargs) - - def GetBitmap(*args, **kwargs): - """GetBitmap(self) -> Bitmap""" - return _controls.StaticBitmap_GetBitmap(*args, **kwargs) - - def SetBitmap(*args, **kwargs): - """SetBitmap(self, Bitmap bitmap)""" - return _controls.StaticBitmap_SetBitmap(*args, **kwargs) - - def SetIcon(*args, **kwargs): - """SetIcon(self, Icon icon)""" - return _controls.StaticBitmap_SetIcon(*args, **kwargs) - - -class StaticBitmapPtr(StaticBitmap): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = StaticBitmap -_controls.StaticBitmap_swigregister(StaticBitmapPtr) - -def PreStaticBitmap(*args, **kwargs): - """PreStaticBitmap() -> StaticBitmap""" - val = _controls.new_PreStaticBitmap(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -class ListBox(core.ControlWithItems): - def __repr__(self): - return "<%s.%s; proxy of C++ wxListBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - wxArrayString choices=wxPyEmptyStringArray, - long style=0, Validator validator=DefaultValidator, - String name=ListBoxNameStr) -> ListBox - """ - newobj = _controls.new_ListBox(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - wxArrayString choices=wxPyEmptyStringArray, - long style=0, Validator validator=DefaultValidator, - String name=ListBoxNameStr) -> bool - """ - return _controls.ListBox_Create(*args, **kwargs) - - def Insert(*args, **kwargs): - """ - Insert(self, String item, int pos, PyObject clientData=None) - - Insert an item into the control before the item at the pos index, - optionally associating some data object with the item. - """ - return _controls.ListBox_Insert(*args, **kwargs) - - def InsertItems(*args, **kwargs): - """InsertItems(self, wxArrayString items, int pos)""" - return _controls.ListBox_InsertItems(*args, **kwargs) - - def Set(*args, **kwargs): - """Set(self, wxArrayString items)""" - return _controls.ListBox_Set(*args, **kwargs) - - def IsSelected(*args, **kwargs): - """IsSelected(self, int n) -> bool""" - return _controls.ListBox_IsSelected(*args, **kwargs) - - def SetSelection(*args, **kwargs): - """SetSelection(self, int n, bool select=True)""" - return _controls.ListBox_SetSelection(*args, **kwargs) - - def Select(*args, **kwargs): - """ - Select(self, int n) - - Sets the item at index 'n' to be the selected item. - """ - return _controls.ListBox_Select(*args, **kwargs) - - def Deselect(*args, **kwargs): - """Deselect(self, int n)""" - return _controls.ListBox_Deselect(*args, **kwargs) - - def DeselectAll(*args, **kwargs): - """DeselectAll(self, int itemToLeaveSelected=-1)""" - return _controls.ListBox_DeselectAll(*args, **kwargs) - - def SetStringSelection(*args, **kwargs): - """SetStringSelection(self, String s, bool select=True) -> bool""" - return _controls.ListBox_SetStringSelection(*args, **kwargs) - - def GetSelections(*args, **kwargs): - """GetSelections(self) -> PyObject""" - return _controls.ListBox_GetSelections(*args, **kwargs) - - def SetFirstItem(*args, **kwargs): - """SetFirstItem(self, int n)""" - return _controls.ListBox_SetFirstItem(*args, **kwargs) - - def SetFirstItemStr(*args, **kwargs): - """SetFirstItemStr(self, String s)""" - return _controls.ListBox_SetFirstItemStr(*args, **kwargs) - - def EnsureVisible(*args, **kwargs): - """EnsureVisible(self, int n)""" - return _controls.ListBox_EnsureVisible(*args, **kwargs) - - def AppendAndEnsureVisible(*args, **kwargs): - """AppendAndEnsureVisible(self, String s)""" - return _controls.ListBox_AppendAndEnsureVisible(*args, **kwargs) - - def IsSorted(*args, **kwargs): - """IsSorted(self) -> bool""" - return _controls.ListBox_IsSorted(*args, **kwargs) - - def SetItemForegroundColour(*args, **kwargs): - """SetItemForegroundColour(self, int item, Colour c)""" - return _controls.ListBox_SetItemForegroundColour(*args, **kwargs) - - def SetItemBackgroundColour(*args, **kwargs): - """SetItemBackgroundColour(self, int item, Colour c)""" - return _controls.ListBox_SetItemBackgroundColour(*args, **kwargs) - - def SetItemFont(*args, **kwargs): - """SetItemFont(self, int item, Font f)""" - return _controls.ListBox_SetItemFont(*args, **kwargs) - - def GetClassDefaultAttributes(*args, **kwargs): - """ - ListBox.GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes - - Get the default attributes for this class. This is useful if - you want to use the same font or colour in your own control as - in a standard control -- which is a much better idea than hard - coding specific colours or fonts which might look completely out - of place on the users system, especially if it uses themes. - - The variant parameter is only relevant under Mac currently and is - ignore under other platforms. Under Mac, it will change the size of the - returned font. See SetWindowVariant for more about this. - """ - return _controls.ListBox_GetClassDefaultAttributes(*args, **kwargs) - - GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) - -class ListBoxPtr(ListBox): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ListBox -_controls.ListBox_swigregister(ListBoxPtr) -ListBoxNameStr = cvar.ListBoxNameStr - -def PreListBox(*args, **kwargs): - """PreListBox() -> ListBox""" - val = _controls.new_PreListBox(*args, **kwargs) - val.thisown = 1 - return val - -def ListBox_GetClassDefaultAttributes(*args, **kwargs): - """ - ListBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes - - Get the default attributes for this class. This is useful if - you want to use the same font or colour in your own control as - in a standard control -- which is a much better idea than hard - coding specific colours or fonts which might look completely out - of place on the users system, especially if it uses themes. - - The variant parameter is only relevant under Mac currently and is - ignore under other platforms. Under Mac, it will change the size of the - returned font. See SetWindowVariant for more about this. - """ - return _controls.ListBox_GetClassDefaultAttributes(*args, **kwargs) - -#--------------------------------------------------------------------------- - -class CheckListBox(ListBox): - def __repr__(self): - return "<%s.%s; proxy of C++ wxCheckListBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - wxArrayString choices=wxPyEmptyStringArray, - long style=0, Validator validator=DefaultValidator, - String name=ListBoxNameStr) -> CheckListBox - """ - newobj = _controls.new_CheckListBox(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - wxArrayString choices=wxPyEmptyStringArray, - long style=0, Validator validator=DefaultValidator, - String name=ListBoxNameStr) -> bool - """ - return _controls.CheckListBox_Create(*args, **kwargs) - - def IsChecked(*args, **kwargs): - """IsChecked(self, int index) -> bool""" - return _controls.CheckListBox_IsChecked(*args, **kwargs) - - def Check(*args, **kwargs): - """Check(self, int index, int check=True)""" - return _controls.CheckListBox_Check(*args, **kwargs) - - def HitTest(*args, **kwargs): - """ - HitTest(self, Point pt) -> int - - Test where the given (in client coords) point lies - """ - return _controls.CheckListBox_HitTest(*args, **kwargs) - - def HitTestXY(*args, **kwargs): - """ - HitTestXY(self, int x, int y) -> int - - Test where the given (in client coords) point lies - """ - return _controls.CheckListBox_HitTestXY(*args, **kwargs) - - -class CheckListBoxPtr(CheckListBox): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = CheckListBox -_controls.CheckListBox_swigregister(CheckListBoxPtr) - -def PreCheckListBox(*args, **kwargs): - """PreCheckListBox() -> CheckListBox""" - val = _controls.new_PreCheckListBox(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -TE_NO_VSCROLL = _controls.TE_NO_VSCROLL -TE_AUTO_SCROLL = _controls.TE_AUTO_SCROLL -TE_READONLY = _controls.TE_READONLY -TE_MULTILINE = _controls.TE_MULTILINE -TE_PROCESS_TAB = _controls.TE_PROCESS_TAB -TE_LEFT = _controls.TE_LEFT -TE_CENTER = _controls.TE_CENTER -TE_RIGHT = _controls.TE_RIGHT -TE_CENTRE = _controls.TE_CENTRE -TE_RICH = _controls.TE_RICH -TE_PROCESS_ENTER = _controls.TE_PROCESS_ENTER -TE_PASSWORD = _controls.TE_PASSWORD -TE_AUTO_URL = _controls.TE_AUTO_URL -TE_NOHIDESEL = _controls.TE_NOHIDESEL -TE_DONTWRAP = _controls.TE_DONTWRAP -TE_LINEWRAP = _controls.TE_LINEWRAP -TE_WORDWRAP = _controls.TE_WORDWRAP -TE_RICH2 = _controls.TE_RICH2 -TEXT_ALIGNMENT_DEFAULT = _controls.TEXT_ALIGNMENT_DEFAULT -TEXT_ALIGNMENT_LEFT = _controls.TEXT_ALIGNMENT_LEFT -TEXT_ALIGNMENT_CENTRE = _controls.TEXT_ALIGNMENT_CENTRE -TEXT_ALIGNMENT_CENTER = _controls.TEXT_ALIGNMENT_CENTER -TEXT_ALIGNMENT_RIGHT = _controls.TEXT_ALIGNMENT_RIGHT -TEXT_ALIGNMENT_JUSTIFIED = _controls.TEXT_ALIGNMENT_JUSTIFIED -TEXT_ATTR_TEXT_COLOUR = _controls.TEXT_ATTR_TEXT_COLOUR -TEXT_ATTR_BACKGROUND_COLOUR = _controls.TEXT_ATTR_BACKGROUND_COLOUR -TEXT_ATTR_FONT_FACE = _controls.TEXT_ATTR_FONT_FACE -TEXT_ATTR_FONT_SIZE = _controls.TEXT_ATTR_FONT_SIZE -TEXT_ATTR_FONT_WEIGHT = _controls.TEXT_ATTR_FONT_WEIGHT -TEXT_ATTR_FONT_ITALIC = _controls.TEXT_ATTR_FONT_ITALIC -TEXT_ATTR_FONT_UNDERLINE = _controls.TEXT_ATTR_FONT_UNDERLINE -TEXT_ATTR_FONT = _controls.TEXT_ATTR_FONT -TEXT_ATTR_ALIGNMENT = _controls.TEXT_ATTR_ALIGNMENT -TEXT_ATTR_LEFT_INDENT = _controls.TEXT_ATTR_LEFT_INDENT -TEXT_ATTR_RIGHT_INDENT = _controls.TEXT_ATTR_RIGHT_INDENT -TEXT_ATTR_TABS = _controls.TEXT_ATTR_TABS -TE_HT_UNKNOWN = _controls.TE_HT_UNKNOWN -TE_HT_BEFORE = _controls.TE_HT_BEFORE -TE_HT_ON_TEXT = _controls.TE_HT_ON_TEXT -TE_HT_BELOW = _controls.TE_HT_BELOW -TE_HT_BEYOND = _controls.TE_HT_BEYOND -class TextAttr(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxTextAttr instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args): - """ - __init__(self) -> TextAttr - __init__(self, Colour colText, Colour colBack=wxNullColour, Font font=wxNullFont, - int alignment=TEXT_ALIGNMENT_DEFAULT) -> TextAttr - """ - newobj = _controls.new_TextAttr(*args) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_controls.delete_TextAttr): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Init(*args, **kwargs): - """Init(self)""" - return _controls.TextAttr_Init(*args, **kwargs) - - def SetTextColour(*args, **kwargs): - """SetTextColour(self, Colour colText)""" - return _controls.TextAttr_SetTextColour(*args, **kwargs) - - def SetBackgroundColour(*args, **kwargs): - """SetBackgroundColour(self, Colour colBack)""" - return _controls.TextAttr_SetBackgroundColour(*args, **kwargs) - - def SetFont(*args, **kwargs): - """SetFont(self, Font font, long flags=TEXT_ATTR_FONT)""" - return _controls.TextAttr_SetFont(*args, **kwargs) - - def SetAlignment(*args, **kwargs): - """SetAlignment(self, int alignment)""" - return _controls.TextAttr_SetAlignment(*args, **kwargs) - - def SetTabs(*args, **kwargs): - """SetTabs(self, wxArrayInt tabs)""" - return _controls.TextAttr_SetTabs(*args, **kwargs) - - def SetLeftIndent(*args, **kwargs): - """SetLeftIndent(self, int indent)""" - return _controls.TextAttr_SetLeftIndent(*args, **kwargs) - - def SetRightIndent(*args, **kwargs): - """SetRightIndent(self, int indent)""" - return _controls.TextAttr_SetRightIndent(*args, **kwargs) - - def SetFlags(*args, **kwargs): - """SetFlags(self, long flags)""" - return _controls.TextAttr_SetFlags(*args, **kwargs) - - def HasTextColour(*args, **kwargs): - """HasTextColour(self) -> bool""" - return _controls.TextAttr_HasTextColour(*args, **kwargs) - - def HasBackgroundColour(*args, **kwargs): - """HasBackgroundColour(self) -> bool""" - return _controls.TextAttr_HasBackgroundColour(*args, **kwargs) - - def HasFont(*args, **kwargs): - """HasFont(self) -> bool""" - return _controls.TextAttr_HasFont(*args, **kwargs) - - def HasAlignment(*args, **kwargs): - """HasAlignment(self) -> bool""" - return _controls.TextAttr_HasAlignment(*args, **kwargs) - - def HasTabs(*args, **kwargs): - """HasTabs(self) -> bool""" - return _controls.TextAttr_HasTabs(*args, **kwargs) - - def HasLeftIndent(*args, **kwargs): - """HasLeftIndent(self) -> bool""" - return _controls.TextAttr_HasLeftIndent(*args, **kwargs) - - def HasRightIndent(*args, **kwargs): - """HasRightIndent(self) -> bool""" - return _controls.TextAttr_HasRightIndent(*args, **kwargs) - - def HasFlag(*args, **kwargs): - """HasFlag(self, long flag) -> bool""" - return _controls.TextAttr_HasFlag(*args, **kwargs) - - def GetTextColour(*args, **kwargs): - """GetTextColour(self) -> Colour""" - return _controls.TextAttr_GetTextColour(*args, **kwargs) - - def GetBackgroundColour(*args, **kwargs): - """GetBackgroundColour(self) -> Colour""" - return _controls.TextAttr_GetBackgroundColour(*args, **kwargs) - - def GetFont(*args, **kwargs): - """GetFont(self) -> Font""" - return _controls.TextAttr_GetFont(*args, **kwargs) - - def GetAlignment(*args, **kwargs): - """GetAlignment(self) -> int""" - return _controls.TextAttr_GetAlignment(*args, **kwargs) - - def GetTabs(*args, **kwargs): - """GetTabs(self) -> wxArrayInt""" - return _controls.TextAttr_GetTabs(*args, **kwargs) - - def GetLeftIndent(*args, **kwargs): - """GetLeftIndent(self) -> long""" - return _controls.TextAttr_GetLeftIndent(*args, **kwargs) - - def GetRightIndent(*args, **kwargs): - """GetRightIndent(self) -> long""" - return _controls.TextAttr_GetRightIndent(*args, **kwargs) - - def GetFlags(*args, **kwargs): - """GetFlags(self) -> long""" - return _controls.TextAttr_GetFlags(*args, **kwargs) - - def IsDefault(*args, **kwargs): - """IsDefault(self) -> bool""" - return _controls.TextAttr_IsDefault(*args, **kwargs) - - def Combine(*args, **kwargs): - """TextAttr.Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr""" - return _controls.TextAttr_Combine(*args, **kwargs) - - Combine = staticmethod(Combine) - -class TextAttrPtr(TextAttr): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = TextAttr -_controls.TextAttr_swigregister(TextAttrPtr) -TextCtrlNameStr = cvar.TextCtrlNameStr - -def TextAttr_Combine(*args, **kwargs): - """TextAttr_Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr""" - return _controls.TextAttr_Combine(*args, **kwargs) - -class TextCtrl(core.Control): - def __repr__(self): - return "<%s.%s; proxy of C++ wxTextCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, String value=EmptyString, Point pos=DefaultPosition, - Size size=DefaultSize, - long style=0, Validator validator=DefaultValidator, - String name=TextCtrlNameStr) -> TextCtrl - """ - newobj = _controls.new_TextCtrl(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id, String value=EmptyString, Point pos=DefaultPosition, - Size size=DefaultSize, - long style=0, Validator validator=DefaultValidator, - String name=TextCtrlNameStr) -> bool - """ - return _controls.TextCtrl_Create(*args, **kwargs) - - def GetValue(*args, **kwargs): - """GetValue(self) -> String""" - return _controls.TextCtrl_GetValue(*args, **kwargs) - - def SetValue(*args, **kwargs): - """SetValue(self, String value)""" - return _controls.TextCtrl_SetValue(*args, **kwargs) - - def GetRange(*args, **kwargs): - """GetRange(self, long from, long to) -> String""" - return _controls.TextCtrl_GetRange(*args, **kwargs) - - def GetLineLength(*args, **kwargs): - """GetLineLength(self, long lineNo) -> int""" - return _controls.TextCtrl_GetLineLength(*args, **kwargs) - - def GetLineText(*args, **kwargs): - """GetLineText(self, long lineNo) -> String""" - return _controls.TextCtrl_GetLineText(*args, **kwargs) - - def GetNumberOfLines(*args, **kwargs): - """GetNumberOfLines(self) -> int""" - return _controls.TextCtrl_GetNumberOfLines(*args, **kwargs) - - def IsModified(*args, **kwargs): - """IsModified(self) -> bool""" - return _controls.TextCtrl_IsModified(*args, **kwargs) - - def IsEditable(*args, **kwargs): - """IsEditable(self) -> bool""" - return _controls.TextCtrl_IsEditable(*args, **kwargs) - - def IsSingleLine(*args, **kwargs): - """IsSingleLine(self) -> bool""" - return _controls.TextCtrl_IsSingleLine(*args, **kwargs) - - def IsMultiLine(*args, **kwargs): - """IsMultiLine(self) -> bool""" - return _controls.TextCtrl_IsMultiLine(*args, **kwargs) - - def GetSelection(*args, **kwargs): - """ - GetSelection() -> (from, to) - - If the return values from and to are the same, there is no selection. - """ - return _controls.TextCtrl_GetSelection(*args, **kwargs) - - def GetStringSelection(*args, **kwargs): - """GetStringSelection(self) -> String""" - return _controls.TextCtrl_GetStringSelection(*args, **kwargs) - - def Clear(*args, **kwargs): - """Clear(self)""" - return _controls.TextCtrl_Clear(*args, **kwargs) - - def Replace(*args, **kwargs): - """Replace(self, long from, long to, String value)""" - return _controls.TextCtrl_Replace(*args, **kwargs) - - def Remove(*args, **kwargs): - """Remove(self, long from, long to)""" - return _controls.TextCtrl_Remove(*args, **kwargs) - - def LoadFile(*args, **kwargs): - """LoadFile(self, String file) -> bool""" - return _controls.TextCtrl_LoadFile(*args, **kwargs) - - def SaveFile(*args, **kwargs): - """SaveFile(self, String file=EmptyString) -> bool""" - return _controls.TextCtrl_SaveFile(*args, **kwargs) - - def MarkDirty(*args, **kwargs): - """MarkDirty(self)""" - return _controls.TextCtrl_MarkDirty(*args, **kwargs) - - def DiscardEdits(*args, **kwargs): - """DiscardEdits(self)""" - return _controls.TextCtrl_DiscardEdits(*args, **kwargs) - - def SetMaxLength(*args, **kwargs): - """SetMaxLength(self, unsigned long len)""" - return _controls.TextCtrl_SetMaxLength(*args, **kwargs) - - def WriteText(*args, **kwargs): - """WriteText(self, String text)""" - return _controls.TextCtrl_WriteText(*args, **kwargs) - - def AppendText(*args, **kwargs): - """AppendText(self, String text)""" - return _controls.TextCtrl_AppendText(*args, **kwargs) - - def EmulateKeyPress(*args, **kwargs): - """EmulateKeyPress(self, KeyEvent event) -> bool""" - return _controls.TextCtrl_EmulateKeyPress(*args, **kwargs) - - def SetStyle(*args, **kwargs): - """SetStyle(self, long start, long end, TextAttr style) -> bool""" - return _controls.TextCtrl_SetStyle(*args, **kwargs) - - def GetStyle(*args, **kwargs): - """GetStyle(self, long position, TextAttr style) -> bool""" - return _controls.TextCtrl_GetStyle(*args, **kwargs) - - def SetDefaultStyle(*args, **kwargs): - """SetDefaultStyle(self, TextAttr style) -> bool""" - return _controls.TextCtrl_SetDefaultStyle(*args, **kwargs) - - def GetDefaultStyle(*args, **kwargs): - """GetDefaultStyle(self) -> TextAttr""" - return _controls.TextCtrl_GetDefaultStyle(*args, **kwargs) - - def XYToPosition(*args, **kwargs): - """XYToPosition(self, long x, long y) -> long""" - return _controls.TextCtrl_XYToPosition(*args, **kwargs) - - def PositionToXY(*args, **kwargs): - """PositionToXY(long pos) -> (x, y)""" - return _controls.TextCtrl_PositionToXY(*args, **kwargs) - - def ShowPosition(*args, **kwargs): - """ShowPosition(self, long pos)""" - return _controls.TextCtrl_ShowPosition(*args, **kwargs) - - def HitTest(*args, **kwargs): - """ - HitTest(Point pt) -> (result, row, col) - - Find the character at position given in pixels. - NB: pt is in device coords (not adjusted for the client area - origin nor scrolling) - """ - return _controls.TextCtrl_HitTest(*args, **kwargs) - - def Copy(*args, **kwargs): - """Copy(self)""" - return _controls.TextCtrl_Copy(*args, **kwargs) - - def Cut(*args, **kwargs): - """Cut(self)""" - return _controls.TextCtrl_Cut(*args, **kwargs) - - def Paste(*args, **kwargs): - """Paste(self)""" - return _controls.TextCtrl_Paste(*args, **kwargs) - - def CanCopy(*args, **kwargs): - """CanCopy(self) -> bool""" - return _controls.TextCtrl_CanCopy(*args, **kwargs) - - def CanCut(*args, **kwargs): - """CanCut(self) -> bool""" - return _controls.TextCtrl_CanCut(*args, **kwargs) - - def CanPaste(*args, **kwargs): - """CanPaste(self) -> bool""" - return _controls.TextCtrl_CanPaste(*args, **kwargs) - - def Undo(*args, **kwargs): - """Undo(self)""" - return _controls.TextCtrl_Undo(*args, **kwargs) - - def Redo(*args, **kwargs): - """Redo(self)""" - return _controls.TextCtrl_Redo(*args, **kwargs) - - def CanUndo(*args, **kwargs): - """CanUndo(self) -> bool""" - return _controls.TextCtrl_CanUndo(*args, **kwargs) - - def CanRedo(*args, **kwargs): - """CanRedo(self) -> bool""" - return _controls.TextCtrl_CanRedo(*args, **kwargs) - - def SetInsertionPoint(*args, **kwargs): - """SetInsertionPoint(self, long pos)""" - return _controls.TextCtrl_SetInsertionPoint(*args, **kwargs) - - def SetInsertionPointEnd(*args, **kwargs): - """SetInsertionPointEnd(self)""" - return _controls.TextCtrl_SetInsertionPointEnd(*args, **kwargs) - - def GetInsertionPoint(*args, **kwargs): - """GetInsertionPoint(self) -> long""" - return _controls.TextCtrl_GetInsertionPoint(*args, **kwargs) - - def GetLastPosition(*args, **kwargs): - """GetLastPosition(self) -> long""" - return _controls.TextCtrl_GetLastPosition(*args, **kwargs) - - def SetSelection(*args, **kwargs): - """SetSelection(self, long from, long to)""" - return _controls.TextCtrl_SetSelection(*args, **kwargs) - - def SelectAll(*args, **kwargs): - """SelectAll(self)""" - return _controls.TextCtrl_SelectAll(*args, **kwargs) - - def SetEditable(*args, **kwargs): - """SetEditable(self, bool editable)""" - return _controls.TextCtrl_SetEditable(*args, **kwargs) - - def write(*args, **kwargs): - """write(self, String text)""" - return _controls.TextCtrl_write(*args, **kwargs) - - def GetString(*args, **kwargs): - """GetString(self, long from, long to) -> String""" - return _controls.TextCtrl_GetString(*args, **kwargs) - - -class TextCtrlPtr(TextCtrl): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = TextCtrl -_controls.TextCtrl_swigregister(TextCtrlPtr) - -def PreTextCtrl(*args, **kwargs): - """PreTextCtrl() -> TextCtrl""" - val = _controls.new_PreTextCtrl(*args, **kwargs) - val.thisown = 1 - return val - -wxEVT_COMMAND_TEXT_UPDATED = _controls.wxEVT_COMMAND_TEXT_UPDATED -wxEVT_COMMAND_TEXT_ENTER = _controls.wxEVT_COMMAND_TEXT_ENTER -wxEVT_COMMAND_TEXT_URL = _controls.wxEVT_COMMAND_TEXT_URL -wxEVT_COMMAND_TEXT_MAXLEN = _controls.wxEVT_COMMAND_TEXT_MAXLEN -class TextUrlEvent(core.CommandEvent): - def __repr__(self): - return "<%s.%s; proxy of C++ wxTextUrlEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int winid, MouseEvent evtMouse, long start, long end) -> TextUrlEvent""" - newobj = _controls.new_TextUrlEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetMouseEvent(*args, **kwargs): - """GetMouseEvent(self) -> MouseEvent""" - return _controls.TextUrlEvent_GetMouseEvent(*args, **kwargs) - - def GetURLStart(*args, **kwargs): - """GetURLStart(self) -> long""" - return _controls.TextUrlEvent_GetURLStart(*args, **kwargs) - - def GetURLEnd(*args, **kwargs): - """GetURLEnd(self) -> long""" - return _controls.TextUrlEvent_GetURLEnd(*args, **kwargs) - - -class TextUrlEventPtr(TextUrlEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = TextUrlEvent -_controls.TextUrlEvent_swigregister(TextUrlEventPtr) - -EVT_TEXT = wx.PyEventBinder( wxEVT_COMMAND_TEXT_UPDATED, 1) -EVT_TEXT_ENTER = wx.PyEventBinder( wxEVT_COMMAND_TEXT_ENTER, 1) -EVT_TEXT_URL = wx.PyEventBinder( wxEVT_COMMAND_TEXT_URL, 1) -EVT_TEXT_MAXLEN = wx.PyEventBinder( wxEVT_COMMAND_TEXT_MAXLEN, 1) - -#--------------------------------------------------------------------------- - -class ScrollBar(core.Control): - def __repr__(self): - return "<%s.%s; proxy of C++ wxScrollBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, long style=SB_HORIZONTAL, - Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> ScrollBar - """ - newobj = _controls.new_ScrollBar(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, long style=SB_HORIZONTAL, - Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> bool - - Do the 2nd phase and create the GUI control. - """ - return _controls.ScrollBar_Create(*args, **kwargs) - - def GetThumbPosition(*args, **kwargs): - """GetThumbPosition(self) -> int""" - return _controls.ScrollBar_GetThumbPosition(*args, **kwargs) - - def GetThumbSize(*args, **kwargs): - """GetThumbSize(self) -> int""" - return _controls.ScrollBar_GetThumbSize(*args, **kwargs) - - GetThumbLength = GetThumbSize - def GetPageSize(*args, **kwargs): - """GetPageSize(self) -> int""" - return _controls.ScrollBar_GetPageSize(*args, **kwargs) - - def GetRange(*args, **kwargs): - """GetRange(self) -> int""" - return _controls.ScrollBar_GetRange(*args, **kwargs) - - def IsVertical(*args, **kwargs): - """IsVertical(self) -> bool""" - return _controls.ScrollBar_IsVertical(*args, **kwargs) - - def SetThumbPosition(*args, **kwargs): - """SetThumbPosition(self, int viewStart)""" - return _controls.ScrollBar_SetThumbPosition(*args, **kwargs) - - def SetScrollbar(*args, **kwargs): - """ - SetScrollbar(self, int position, int thumbSize, int range, int pageSize, - bool refresh=True) - - Sets the scrollbar properties of a built-in scrollbar. - - orientation: Determines the scrollbar whose page size is to be - set. May be wx.HORIZONTAL or wx.VERTICAL. - - position: The position of the scrollbar in scroll units. - - thumbSize: The size of the thumb, or visible portion of the - scrollbar, in scroll units. - - range: The maximum position of the scrollbar. - - refresh: True to redraw the scrollbar, false otherwise. - """ - return _controls.ScrollBar_SetScrollbar(*args, **kwargs) - - -class ScrollBarPtr(ScrollBar): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ScrollBar -_controls.ScrollBar_swigregister(ScrollBarPtr) -ScrollBarNameStr = cvar.ScrollBarNameStr - -def PreScrollBar(*args, **kwargs): - """PreScrollBar() -> ScrollBar""" - val = _controls.new_PreScrollBar(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -SP_HORIZONTAL = _controls.SP_HORIZONTAL -SP_VERTICAL = _controls.SP_VERTICAL -SP_ARROW_KEYS = _controls.SP_ARROW_KEYS -SP_WRAP = _controls.SP_WRAP -class SpinButton(core.Control): - def __repr__(self): - return "<%s.%s; proxy of C++ wxSpinButton instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, long style=SP_HORIZONTAL, - String name=SPIN_BUTTON_NAME) -> SpinButton - """ - newobj = _controls.new_SpinButton(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, long style=SP_HORIZONTAL, - String name=SPIN_BUTTON_NAME) -> bool - """ - return _controls.SpinButton_Create(*args, **kwargs) - - def GetValue(*args, **kwargs): - """GetValue(self) -> int""" - return _controls.SpinButton_GetValue(*args, **kwargs) - - def GetMin(*args, **kwargs): - """GetMin(self) -> int""" - return _controls.SpinButton_GetMin(*args, **kwargs) - - def GetMax(*args, **kwargs): - """GetMax(self) -> int""" - return _controls.SpinButton_GetMax(*args, **kwargs) - - def SetValue(*args, **kwargs): - """SetValue(self, int val)""" - return _controls.SpinButton_SetValue(*args, **kwargs) - - def SetMin(*args, **kwargs): - """SetMin(self, int minVal)""" - return _controls.SpinButton_SetMin(*args, **kwargs) - - def SetMax(*args, **kwargs): - """SetMax(self, int maxVal)""" - return _controls.SpinButton_SetMax(*args, **kwargs) - - def SetRange(*args, **kwargs): - """SetRange(self, int minVal, int maxVal)""" - return _controls.SpinButton_SetRange(*args, **kwargs) - - def IsVertical(*args, **kwargs): - """IsVertical(self) -> bool""" - return _controls.SpinButton_IsVertical(*args, **kwargs) - - -class SpinButtonPtr(SpinButton): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = SpinButton -_controls.SpinButton_swigregister(SpinButtonPtr) -SPIN_BUTTON_NAME = cvar.SPIN_BUTTON_NAME -SpinCtrlNameStr = cvar.SpinCtrlNameStr - -def PreSpinButton(*args, **kwargs): - """PreSpinButton() -> SpinButton""" - val = _controls.new_PreSpinButton(*args, **kwargs) - val.thisown = 1 - return val - -class SpinCtrl(core.Control): - def __repr__(self): - return "<%s.%s; proxy of C++ wxSpinCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id=-1, String value=EmptyString, - Point pos=DefaultPosition, Size size=DefaultSize, - long style=SP_ARROW_KEYS, int min=0, int max=100, - int initial=0, String name=SpinCtrlNameStr) -> SpinCtrl - """ - newobj = _controls.new_SpinCtrl(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id=-1, String value=EmptyString, - Point pos=DefaultPosition, Size size=DefaultSize, - long style=SP_ARROW_KEYS, int min=0, int max=100, - int initial=0, String name=SpinCtrlNameStr) -> bool - """ - return _controls.SpinCtrl_Create(*args, **kwargs) - - def GetValue(*args, **kwargs): - """GetValue(self) -> int""" - return _controls.SpinCtrl_GetValue(*args, **kwargs) - - def SetValue(*args, **kwargs): - """SetValue(self, int value)""" - return _controls.SpinCtrl_SetValue(*args, **kwargs) - - def SetValueString(*args, **kwargs): - """SetValueString(self, String text)""" - return _controls.SpinCtrl_SetValueString(*args, **kwargs) - - def SetRange(*args, **kwargs): - """SetRange(self, int minVal, int maxVal)""" - return _controls.SpinCtrl_SetRange(*args, **kwargs) - - def GetMin(*args, **kwargs): - """GetMin(self) -> int""" - return _controls.SpinCtrl_GetMin(*args, **kwargs) - - def GetMax(*args, **kwargs): - """GetMax(self) -> int""" - return _controls.SpinCtrl_GetMax(*args, **kwargs) - - def SetSelection(*args, **kwargs): - """SetSelection(self, long from, long to)""" - return _controls.SpinCtrl_SetSelection(*args, **kwargs) - - -class SpinCtrlPtr(SpinCtrl): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = SpinCtrl -_controls.SpinCtrl_swigregister(SpinCtrlPtr) - -def PreSpinCtrl(*args, **kwargs): - """PreSpinCtrl() -> SpinCtrl""" - val = _controls.new_PreSpinCtrl(*args, **kwargs) - val.thisown = 1 - return val - -class SpinEvent(core.NotifyEvent): - def __repr__(self): - return "<%s.%s; proxy of C++ wxSpinEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, wxEventType commandType=wxEVT_NULL, int winid=0) -> SpinEvent""" - newobj = _controls.new_SpinEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetPosition(*args, **kwargs): - """GetPosition(self) -> int""" - return _controls.SpinEvent_GetPosition(*args, **kwargs) - - def SetPosition(*args, **kwargs): - """SetPosition(self, int pos)""" - return _controls.SpinEvent_SetPosition(*args, **kwargs) - - -class SpinEventPtr(SpinEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = SpinEvent -_controls.SpinEvent_swigregister(SpinEventPtr) - -wxEVT_COMMAND_SPINCTRL_UPDATED = _controls.wxEVT_COMMAND_SPINCTRL_UPDATED -EVT_SPIN_UP = wx.PyEventBinder( wx.wxEVT_SCROLL_LINEUP, 1) -EVT_SPIN_DOWN = wx.PyEventBinder( wx.wxEVT_SCROLL_LINEDOWN, 1) -EVT_SPIN = wx.PyEventBinder( wx.wxEVT_SCROLL_THUMBTRACK, 1) -EVT_SPINCTRL = wx.PyEventBinder( wxEVT_COMMAND_SPINCTRL_UPDATED, 1) - -#--------------------------------------------------------------------------- - -class RadioBox(core.Control): - def __repr__(self): - return "<%s.%s; proxy of C++ wxRadioBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, String label, Point pos=DefaultPosition, - Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray, - int majorDimension=0, - long style=RA_HORIZONTAL, Validator validator=DefaultValidator, - String name=RadioBoxNameStr) -> RadioBox - """ - if kwargs.has_key('point'): kwargs['pos'] = kwargs['point'];del kwargs['point'] - newobj = _controls.new_RadioBox(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id, String label, Point pos=DefaultPosition, - Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray, - int majorDimension=0, - long style=RA_HORIZONTAL, Validator validator=DefaultValidator, - String name=RadioBoxNameStr) -> bool - """ - return _controls.RadioBox_Create(*args, **kwargs) - - def SetSelection(*args, **kwargs): - """SetSelection(self, int n)""" - return _controls.RadioBox_SetSelection(*args, **kwargs) - - def GetSelection(*args, **kwargs): - """GetSelection(self) -> int""" - return _controls.RadioBox_GetSelection(*args, **kwargs) - - def GetStringSelection(*args, **kwargs): - """GetStringSelection(self) -> String""" - return _controls.RadioBox_GetStringSelection(*args, **kwargs) - - def SetStringSelection(*args, **kwargs): - """SetStringSelection(self, String s) -> bool""" - return _controls.RadioBox_SetStringSelection(*args, **kwargs) - - def GetCount(*args, **kwargs): - """GetCount(self) -> int""" - return _controls.RadioBox_GetCount(*args, **kwargs) - - def FindString(*args, **kwargs): - """FindString(self, String s) -> int""" - return _controls.RadioBox_FindString(*args, **kwargs) - - def GetString(*args, **kwargs): - """GetString(self, int n) -> String""" - return _controls.RadioBox_GetString(*args, **kwargs) - - def SetString(*args, **kwargs): - """SetString(self, int n, String label)""" - return _controls.RadioBox_SetString(*args, **kwargs) - - GetItemLabel = GetString - SetItemLabel = SetString - def EnableItem(*args, **kwargs): - """EnableItem(self, int n, bool enable=True)""" - return _controls.RadioBox_EnableItem(*args, **kwargs) - - def ShowItem(*args, **kwargs): - """ShowItem(self, int n, bool show=True)""" - return _controls.RadioBox_ShowItem(*args, **kwargs) - - def GetColumnCount(*args, **kwargs): - """GetColumnCount(self) -> int""" - return _controls.RadioBox_GetColumnCount(*args, **kwargs) - - def GetRowCount(*args, **kwargs): - """GetRowCount(self) -> int""" - return _controls.RadioBox_GetRowCount(*args, **kwargs) - - def GetNextItem(*args, **kwargs): - """GetNextItem(self, int item, int dir, long style) -> int""" - return _controls.RadioBox_GetNextItem(*args, **kwargs) - - -class RadioBoxPtr(RadioBox): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = RadioBox -_controls.RadioBox_swigregister(RadioBoxPtr) -RadioBoxNameStr = cvar.RadioBoxNameStr -RadioButtonNameStr = cvar.RadioButtonNameStr - -def PreRadioBox(*args, **kwargs): - """PreRadioBox() -> RadioBox""" - val = _controls.new_PreRadioBox(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -class RadioButton(core.Control): - def __repr__(self): - return "<%s.%s; proxy of C++ wxRadioButton instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, String label, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, - Validator validator=DefaultValidator, String name=RadioButtonNameStr) -> RadioButton - """ - newobj = _controls.new_RadioButton(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id, String label, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, - Validator validator=DefaultValidator, String name=RadioButtonNameStr) -> bool - """ - return _controls.RadioButton_Create(*args, **kwargs) - - def GetValue(*args, **kwargs): - """GetValue(self) -> bool""" - return _controls.RadioButton_GetValue(*args, **kwargs) - - def SetValue(*args, **kwargs): - """SetValue(self, bool value)""" - return _controls.RadioButton_SetValue(*args, **kwargs) - - -class RadioButtonPtr(RadioButton): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = RadioButton -_controls.RadioButton_swigregister(RadioButtonPtr) - -def PreRadioButton(*args, **kwargs): - """PreRadioButton() -> RadioButton""" - val = _controls.new_PreRadioButton(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -class Slider(core.Control): - def __repr__(self): - return "<%s.%s; proxy of C++ wxSlider instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, int value, int minValue, int maxValue, - Point pos=DefaultPosition, Size size=DefaultSize, - long style=SL_HORIZONTAL, Validator validator=DefaultValidator, - String name=SliderNameStr) -> Slider - """ - if kwargs.has_key('point'): kwargs['pos'] = kwargs['point'];del kwargs['point'] - newobj = _controls.new_Slider(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id, int value, int minValue, int maxValue, - Point pos=DefaultPosition, Size size=DefaultSize, - long style=SL_HORIZONTAL, Validator validator=DefaultValidator, - String name=SliderNameStr) -> bool - """ - return _controls.Slider_Create(*args, **kwargs) - - def GetValue(*args, **kwargs): - """GetValue(self) -> int""" - return _controls.Slider_GetValue(*args, **kwargs) - - def SetValue(*args, **kwargs): - """SetValue(self, int value)""" - return _controls.Slider_SetValue(*args, **kwargs) - - def SetRange(*args, **kwargs): - """SetRange(self, int minValue, int maxValue)""" - return _controls.Slider_SetRange(*args, **kwargs) - - def GetMin(*args, **kwargs): - """GetMin(self) -> int""" - return _controls.Slider_GetMin(*args, **kwargs) - - def GetMax(*args, **kwargs): - """GetMax(self) -> int""" - return _controls.Slider_GetMax(*args, **kwargs) - - def SetMin(*args, **kwargs): - """SetMin(self, int minValue)""" - return _controls.Slider_SetMin(*args, **kwargs) - - def SetMax(*args, **kwargs): - """SetMax(self, int maxValue)""" - return _controls.Slider_SetMax(*args, **kwargs) - - def SetLineSize(*args, **kwargs): - """SetLineSize(self, int lineSize)""" - return _controls.Slider_SetLineSize(*args, **kwargs) - - def SetPageSize(*args, **kwargs): - """SetPageSize(self, int pageSize)""" - return _controls.Slider_SetPageSize(*args, **kwargs) - - def GetLineSize(*args, **kwargs): - """GetLineSize(self) -> int""" - return _controls.Slider_GetLineSize(*args, **kwargs) - - def GetPageSize(*args, **kwargs): - """GetPageSize(self) -> int""" - return _controls.Slider_GetPageSize(*args, **kwargs) - - def SetThumbLength(*args, **kwargs): - """SetThumbLength(self, int lenPixels)""" - return _controls.Slider_SetThumbLength(*args, **kwargs) - - def GetThumbLength(*args, **kwargs): - """GetThumbLength(self) -> int""" - return _controls.Slider_GetThumbLength(*args, **kwargs) - - def SetTickFreq(*args, **kwargs): - """SetTickFreq(self, int n, int pos=1)""" - return _controls.Slider_SetTickFreq(*args, **kwargs) - - def GetTickFreq(*args, **kwargs): - """GetTickFreq(self) -> int""" - return _controls.Slider_GetTickFreq(*args, **kwargs) - - def ClearTicks(*args, **kwargs): - """ClearTicks(self)""" - return _controls.Slider_ClearTicks(*args, **kwargs) - - def SetTick(*args, **kwargs): - """SetTick(self, int tickPos)""" - return _controls.Slider_SetTick(*args, **kwargs) - - def ClearSel(*args, **kwargs): - """ClearSel(self)""" - return _controls.Slider_ClearSel(*args, **kwargs) - - def GetSelEnd(*args, **kwargs): - """GetSelEnd(self) -> int""" - return _controls.Slider_GetSelEnd(*args, **kwargs) - - def GetSelStart(*args, **kwargs): - """GetSelStart(self) -> int""" - return _controls.Slider_GetSelStart(*args, **kwargs) - - def SetSelection(*args, **kwargs): - """SetSelection(self, int min, int max)""" - return _controls.Slider_SetSelection(*args, **kwargs) - - -class SliderPtr(Slider): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Slider -_controls.Slider_swigregister(SliderPtr) -SliderNameStr = cvar.SliderNameStr - -def PreSlider(*args, **kwargs): - """PreSlider() -> Slider""" - val = _controls.new_PreSlider(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -wxEVT_COMMAND_TOGGLEBUTTON_CLICKED = _controls.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED -EVT_TOGGLEBUTTON = wx.PyEventBinder( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, 1) - -class ToggleButton(core.Control): - def __repr__(self): - return "<%s.%s; proxy of C++ wxToggleButton instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, String label, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, - Validator validator=DefaultValidator, String name=ToggleButtonNameStr) -> ToggleButton - """ - newobj = _controls.new_ToggleButton(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - -class ToggleButtonPtr(ToggleButton): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ToggleButton -_controls.ToggleButton_swigregister(ToggleButtonPtr) -ToggleButtonNameStr = cvar.ToggleButtonNameStr - -def PreToggleButton(*args, **kwargs): - """PreToggleButton() -> ToggleButton""" - val = _controls.new_PreToggleButton(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -class BookCtrl(core.Control): - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxBookCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def GetPageCount(*args, **kwargs): - """GetPageCount(self) -> size_t""" - return _controls.BookCtrl_GetPageCount(*args, **kwargs) - - def GetPage(*args, **kwargs): - """GetPage(self, size_t n) -> Window""" - return _controls.BookCtrl_GetPage(*args, **kwargs) - - def GetSelection(*args, **kwargs): - """GetSelection(self) -> int""" - return _controls.BookCtrl_GetSelection(*args, **kwargs) - - def SetPageText(*args, **kwargs): - """SetPageText(self, size_t n, String strText) -> bool""" - return _controls.BookCtrl_SetPageText(*args, **kwargs) - - def GetPageText(*args, **kwargs): - """GetPageText(self, size_t n) -> String""" - return _controls.BookCtrl_GetPageText(*args, **kwargs) - - def SetImageList(*args, **kwargs): - """SetImageList(self, ImageList imageList)""" - return _controls.BookCtrl_SetImageList(*args, **kwargs) - - def AssignImageList(*args, **kwargs): - """AssignImageList(self, ImageList imageList)""" - return _controls.BookCtrl_AssignImageList(*args, **kwargs) - - def GetImageList(*args, **kwargs): - """GetImageList(self) -> ImageList""" - return _controls.BookCtrl_GetImageList(*args, **kwargs) - - def GetPageImage(*args, **kwargs): - """GetPageImage(self, size_t n) -> int""" - return _controls.BookCtrl_GetPageImage(*args, **kwargs) - - def SetPageImage(*args, **kwargs): - """SetPageImage(self, size_t n, int imageId) -> bool""" - return _controls.BookCtrl_SetPageImage(*args, **kwargs) - - def SetPageSize(*args, **kwargs): - """SetPageSize(self, Size size)""" - return _controls.BookCtrl_SetPageSize(*args, **kwargs) - - def CalcSizeFromPage(*args, **kwargs): - """CalcSizeFromPage(self, Size sizePage) -> Size""" - return _controls.BookCtrl_CalcSizeFromPage(*args, **kwargs) - - def DeletePage(*args, **kwargs): - """DeletePage(self, size_t n) -> bool""" - return _controls.BookCtrl_DeletePage(*args, **kwargs) - - def RemovePage(*args, **kwargs): - """RemovePage(self, size_t n) -> bool""" - return _controls.BookCtrl_RemovePage(*args, **kwargs) - - def DeleteAllPages(*args, **kwargs): - """DeleteAllPages(self) -> bool""" - return _controls.BookCtrl_DeleteAllPages(*args, **kwargs) - - def AddPage(*args, **kwargs): - """AddPage(self, Window page, String text, bool select=False, int imageId=-1) -> bool""" - return _controls.BookCtrl_AddPage(*args, **kwargs) - - def InsertPage(*args, **kwargs): - """ - InsertPage(self, size_t n, Window page, String text, bool select=False, - int imageId=-1) -> bool - """ - return _controls.BookCtrl_InsertPage(*args, **kwargs) - - def SetSelection(*args, **kwargs): - """SetSelection(self, size_t n) -> int""" - return _controls.BookCtrl_SetSelection(*args, **kwargs) - - def AdvanceSelection(*args, **kwargs): - """AdvanceSelection(self, bool forward=True)""" - return _controls.BookCtrl_AdvanceSelection(*args, **kwargs) - - -class BookCtrlPtr(BookCtrl): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = BookCtrl -_controls.BookCtrl_swigregister(BookCtrlPtr) -NOTEBOOK_NAME = cvar.NOTEBOOK_NAME - -class BookCtrlEvent(core.NotifyEvent): - def __repr__(self): - return "<%s.%s; proxy of C++ wxBookCtrlEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1, - int nOldSel=-1) -> BookCtrlEvent - """ - newobj = _controls.new_BookCtrlEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetSelection(*args, **kwargs): - """GetSelection(self) -> int""" - return _controls.BookCtrlEvent_GetSelection(*args, **kwargs) - - def SetSelection(*args, **kwargs): - """SetSelection(self, int nSel)""" - return _controls.BookCtrlEvent_SetSelection(*args, **kwargs) - - def GetOldSelection(*args, **kwargs): - """GetOldSelection(self) -> int""" - return _controls.BookCtrlEvent_GetOldSelection(*args, **kwargs) - - def SetOldSelection(*args, **kwargs): - """SetOldSelection(self, int nOldSel)""" - return _controls.BookCtrlEvent_SetOldSelection(*args, **kwargs) - - -class BookCtrlEventPtr(BookCtrlEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = BookCtrlEvent -_controls.BookCtrlEvent_swigregister(BookCtrlEventPtr) - -#--------------------------------------------------------------------------- - -NB_FIXEDWIDTH = _controls.NB_FIXEDWIDTH -NB_TOP = _controls.NB_TOP -NB_LEFT = _controls.NB_LEFT -NB_RIGHT = _controls.NB_RIGHT -NB_BOTTOM = _controls.NB_BOTTOM -NB_MULTILINE = _controls.NB_MULTILINE -NB_HITTEST_NOWHERE = _controls.NB_HITTEST_NOWHERE -NB_HITTEST_ONICON = _controls.NB_HITTEST_ONICON -NB_HITTEST_ONLABEL = _controls.NB_HITTEST_ONLABEL -NB_HITTEST_ONITEM = _controls.NB_HITTEST_ONITEM -class Notebook(BookCtrl): - def __repr__(self): - return "<%s.%s; proxy of C++ wxNotebook instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, String name=NOTEBOOK_NAME) -> Notebook - """ - newobj = _controls.new_Notebook(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - long style=0, String name=NOTEBOOK_NAME) -> bool - """ - return _controls.Notebook_Create(*args, **kwargs) - - def GetRowCount(*args, **kwargs): - """GetRowCount(self) -> int""" - return _controls.Notebook_GetRowCount(*args, **kwargs) - - def SetPadding(*args, **kwargs): - """SetPadding(self, Size padding)""" - return _controls.Notebook_SetPadding(*args, **kwargs) - - def SetTabSize(*args, **kwargs): - """SetTabSize(self, Size sz)""" - return _controls.Notebook_SetTabSize(*args, **kwargs) - - def HitTest(*args, **kwargs): - """ - HitTest(Point pt) -> (tab, where) - - Returns the tab which is hit, and flags indicating where using wx.NB_HITTEST_ flags. - """ - return _controls.Notebook_HitTest(*args, **kwargs) - - def CalcSizeFromPage(*args, **kwargs): - """CalcSizeFromPage(self, Size sizePage) -> Size""" - return _controls.Notebook_CalcSizeFromPage(*args, **kwargs) - - -class NotebookPtr(Notebook): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Notebook -_controls.Notebook_swigregister(NotebookPtr) - -def PreNotebook(*args, **kwargs): - """PreNotebook() -> Notebook""" - val = _controls.new_PreNotebook(*args, **kwargs) - val.thisown = 1 - return val - -class NotebookEvent(BookCtrlEvent): - def __repr__(self): - return "<%s.%s; proxy of C++ wxNotebookEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1, - int nOldSel=-1) -> NotebookEvent - """ - newobj = _controls.new_NotebookEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class NotebookEventPtr(NotebookEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = NotebookEvent -_controls.NotebookEvent_swigregister(NotebookEventPtr) - -wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED = _controls.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED -wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING = _controls.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING -# wxNotebook events -EVT_NOTEBOOK_PAGE_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, 1 ) -EVT_NOTEBOOK_PAGE_CHANGING = wx.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING, 1 ) - -#---------------------------------------------------------------------------- - -class NotebookPage(wx.Panel): - """ - There is an old (and apparently unsolvable) bug when placing a - window with a nonstandard background colour in a wxNotebook on - wxGTK, as the notbooks's background colour would always be used - when the window is refreshed. The solution is to place a panel in - the notbook and the coloured window on the panel, sized to cover - the panel. This simple class does that for you, just put an - instance of this in the notebook and make your regular window a - child of this one and it will handle the resize for you. - """ - def __init__(self, parent, id=-1, - pos=wx.DefaultPosition, size=wx.DefaultSize, - style=wx.TAB_TRAVERSAL, name="panel"): - wx.Panel.__init__(self, parent, id, pos, size, style, name) - self.child = None - EVT_SIZE(self, self.OnSize) - - def OnSize(self, evt): - if self.child is None: - children = self.GetChildren() - if len(children): - self.child = children[0] - if self.child: - self.child.SetPosition((0,0)) - self.child.SetSize(self.GetSize()) - - -#--------------------------------------------------------------------------- - -LB_DEFAULT = _controls.LB_DEFAULT -LB_TOP = _controls.LB_TOP -LB_BOTTOM = _controls.LB_BOTTOM -LB_LEFT = _controls.LB_LEFT -LB_RIGHT = _controls.LB_RIGHT -LB_ALIGN_MASK = _controls.LB_ALIGN_MASK -class Listbook(BookCtrl): - def __repr__(self): - return "<%s.%s; proxy of C++ wxListbook instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, String name=EmptyString) -> Listbook - """ - newobj = _controls.new_Listbook(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - long style=0, String name=EmptyString) -> bool - """ - return _controls.Listbook_Create(*args, **kwargs) - - def IsVertical(*args, **kwargs): - """IsVertical(self) -> bool""" - return _controls.Listbook_IsVertical(*args, **kwargs) - - -class ListbookPtr(Listbook): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Listbook -_controls.Listbook_swigregister(ListbookPtr) - -def PreListbook(*args, **kwargs): - """PreListbook() -> Listbook""" - val = _controls.new_PreListbook(*args, **kwargs) - val.thisown = 1 - return val - -class ListbookEvent(BookCtrlEvent): - def __repr__(self): - return "<%s.%s; proxy of C++ wxListbookEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1, - int nOldSel=-1) -> ListbookEvent - """ - newobj = _controls.new_ListbookEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class ListbookEventPtr(ListbookEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ListbookEvent -_controls.ListbookEvent_swigregister(ListbookEventPtr) - -wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED = _controls.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED -wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING = _controls.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING -EVT_LISTBOOK_PAGE_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED, 1 ) -EVT_LISTBOOK_PAGE_CHANGING = wx.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING, 1 ) - -#--------------------------------------------------------------------------- - -class BookCtrlSizer(core.Sizer): - def __repr__(self): - return "<%s.%s; proxy of C++ wxBookCtrlSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, BookCtrl nb) -> BookCtrlSizer""" - newobj = _controls.new_BookCtrlSizer(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def RecalcSizes(*args, **kwargs): - """RecalcSizes(self)""" - return _controls.BookCtrlSizer_RecalcSizes(*args, **kwargs) - - def CalcMin(*args, **kwargs): - """CalcMin(self) -> Size""" - return _controls.BookCtrlSizer_CalcMin(*args, **kwargs) - - def GetControl(*args, **kwargs): - """GetControl(self) -> BookCtrl""" - return _controls.BookCtrlSizer_GetControl(*args, **kwargs) - - -class BookCtrlSizerPtr(BookCtrlSizer): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = BookCtrlSizer -_controls.BookCtrlSizer_swigregister(BookCtrlSizerPtr) - -class NotebookSizer(core.Sizer): - def __repr__(self): - return "<%s.%s; proxy of C++ wxNotebookSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Notebook nb) -> NotebookSizer""" - newobj = _controls.new_NotebookSizer(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def RecalcSizes(*args, **kwargs): - """RecalcSizes(self)""" - return _controls.NotebookSizer_RecalcSizes(*args, **kwargs) - - def CalcMin(*args, **kwargs): - """CalcMin(self) -> Size""" - return _controls.NotebookSizer_CalcMin(*args, **kwargs) - - def GetNotebook(*args, **kwargs): - """GetNotebook(self) -> Notebook""" - return _controls.NotebookSizer_GetNotebook(*args, **kwargs) - - -class NotebookSizerPtr(NotebookSizer): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = NotebookSizer -_controls.NotebookSizer_swigregister(NotebookSizerPtr) - -#--------------------------------------------------------------------------- - -TOOL_STYLE_BUTTON = _controls.TOOL_STYLE_BUTTON -TOOL_STYLE_SEPARATOR = _controls.TOOL_STYLE_SEPARATOR -TOOL_STYLE_CONTROL = _controls.TOOL_STYLE_CONTROL -TB_HORIZONTAL = _controls.TB_HORIZONTAL -TB_VERTICAL = _controls.TB_VERTICAL -TB_3DBUTTONS = _controls.TB_3DBUTTONS -TB_FLAT = _controls.TB_FLAT -TB_DOCKABLE = _controls.TB_DOCKABLE -TB_NOICONS = _controls.TB_NOICONS -TB_TEXT = _controls.TB_TEXT -TB_NODIVIDER = _controls.TB_NODIVIDER -TB_NOALIGN = _controls.TB_NOALIGN -TB_HORZ_LAYOUT = _controls.TB_HORZ_LAYOUT -TB_HORZ_TEXT = _controls.TB_HORZ_TEXT -class ToolBarToolBase(core.Object): - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxToolBarToolBase instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def GetId(*args, **kwargs): - """GetId(self) -> int""" - return _controls.ToolBarToolBase_GetId(*args, **kwargs) - - def GetControl(*args, **kwargs): - """GetControl(self) -> Control""" - return _controls.ToolBarToolBase_GetControl(*args, **kwargs) - - def GetToolBar(*args, **kwargs): - """GetToolBar(self) -> ToolBarBase""" - return _controls.ToolBarToolBase_GetToolBar(*args, **kwargs) - - def IsButton(*args, **kwargs): - """IsButton(self) -> int""" - return _controls.ToolBarToolBase_IsButton(*args, **kwargs) - - def IsControl(*args, **kwargs): - """IsControl(self) -> int""" - return _controls.ToolBarToolBase_IsControl(*args, **kwargs) - - def IsSeparator(*args, **kwargs): - """IsSeparator(self) -> int""" - return _controls.ToolBarToolBase_IsSeparator(*args, **kwargs) - - def GetStyle(*args, **kwargs): - """GetStyle(self) -> int""" - return _controls.ToolBarToolBase_GetStyle(*args, **kwargs) - - def GetKind(*args, **kwargs): - """GetKind(self) -> int""" - return _controls.ToolBarToolBase_GetKind(*args, **kwargs) - - def IsEnabled(*args, **kwargs): - """IsEnabled(self) -> bool""" - return _controls.ToolBarToolBase_IsEnabled(*args, **kwargs) - - def IsToggled(*args, **kwargs): - """IsToggled(self) -> bool""" - return _controls.ToolBarToolBase_IsToggled(*args, **kwargs) - - def CanBeToggled(*args, **kwargs): - """CanBeToggled(self) -> bool""" - return _controls.ToolBarToolBase_CanBeToggled(*args, **kwargs) - - def GetNormalBitmap(*args, **kwargs): - """GetNormalBitmap(self) -> Bitmap""" - return _controls.ToolBarToolBase_GetNormalBitmap(*args, **kwargs) - - def GetDisabledBitmap(*args, **kwargs): - """GetDisabledBitmap(self) -> Bitmap""" - return _controls.ToolBarToolBase_GetDisabledBitmap(*args, **kwargs) - - def GetBitmap(*args, **kwargs): - """GetBitmap(self) -> Bitmap""" - return _controls.ToolBarToolBase_GetBitmap(*args, **kwargs) - - def GetLabel(*args, **kwargs): - """GetLabel(self) -> String""" - return _controls.ToolBarToolBase_GetLabel(*args, **kwargs) - - def GetShortHelp(*args, **kwargs): - """GetShortHelp(self) -> String""" - return _controls.ToolBarToolBase_GetShortHelp(*args, **kwargs) - - def GetLongHelp(*args, **kwargs): - """GetLongHelp(self) -> String""" - return _controls.ToolBarToolBase_GetLongHelp(*args, **kwargs) - - def Enable(*args, **kwargs): - """Enable(self, bool enable) -> bool""" - return _controls.ToolBarToolBase_Enable(*args, **kwargs) - - def Toggle(*args, **kwargs): - """Toggle(self)""" - return _controls.ToolBarToolBase_Toggle(*args, **kwargs) - - def SetToggle(*args, **kwargs): - """SetToggle(self, bool toggle) -> bool""" - return _controls.ToolBarToolBase_SetToggle(*args, **kwargs) - - def SetShortHelp(*args, **kwargs): - """SetShortHelp(self, String help) -> bool""" - return _controls.ToolBarToolBase_SetShortHelp(*args, **kwargs) - - def SetLongHelp(*args, **kwargs): - """SetLongHelp(self, String help) -> bool""" - return _controls.ToolBarToolBase_SetLongHelp(*args, **kwargs) - - def SetNormalBitmap(*args, **kwargs): - """SetNormalBitmap(self, Bitmap bmp)""" - return _controls.ToolBarToolBase_SetNormalBitmap(*args, **kwargs) - - def SetDisabledBitmap(*args, **kwargs): - """SetDisabledBitmap(self, Bitmap bmp)""" - return _controls.ToolBarToolBase_SetDisabledBitmap(*args, **kwargs) - - def SetLabel(*args, **kwargs): - """SetLabel(self, String label)""" - return _controls.ToolBarToolBase_SetLabel(*args, **kwargs) - - def Detach(*args, **kwargs): - """Detach(self)""" - return _controls.ToolBarToolBase_Detach(*args, **kwargs) - - def Attach(*args, **kwargs): - """Attach(self, ToolBarBase tbar)""" - return _controls.ToolBarToolBase_Attach(*args, **kwargs) - - def GetClientData(*args, **kwargs): - """GetClientData(self) -> PyObject""" - return _controls.ToolBarToolBase_GetClientData(*args, **kwargs) - - def SetClientData(*args, **kwargs): - """SetClientData(self, PyObject clientData)""" - return _controls.ToolBarToolBase_SetClientData(*args, **kwargs) - - GetBitmap1 = GetNormalBitmap - GetBitmap2 = GetDisabledBitmap - SetBitmap1 = SetNormalBitmap - SetBitmap2 = SetDisabledBitmap - - -class ToolBarToolBasePtr(ToolBarToolBase): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ToolBarToolBase -_controls.ToolBarToolBase_swigregister(ToolBarToolBasePtr) - -class ToolBarBase(core.Control): - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxToolBarBase instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def DoAddTool(*args, **kwargs): - """ - DoAddTool(self, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap, - int kind=ITEM_NORMAL, String shortHelp=EmptyString, - String longHelp=EmptyString, - PyObject clientData=None) -> ToolBarToolBase - """ - return _controls.ToolBarBase_DoAddTool(*args, **kwargs) - - def DoInsertTool(*args, **kwargs): - """ - DoInsertTool(self, size_t pos, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap, - int kind=ITEM_NORMAL, - String shortHelp=EmptyString, String longHelp=EmptyString, - PyObject clientData=None) -> ToolBarToolBase - """ - return _controls.ToolBarBase_DoInsertTool(*args, **kwargs) - - # These match the original Add methods for this class, kept for - # backwards compatibility with versions < 2.3.3. - - - def AddTool(self, id, bitmap, - pushedBitmap = wx.NullBitmap, - isToggle = 0, - clientData = None, - shortHelpString = '', - longHelpString = '') : - '''Old style method to add a tool to the toolbar.''' - kind = wx.ITEM_NORMAL - if isToggle: kind = wx.ITEM_CHECK - return self.DoAddTool(id, '', bitmap, pushedBitmap, kind, - shortHelpString, longHelpString, clientData) - - def AddSimpleTool(self, id, bitmap, - shortHelpString = '', - longHelpString = '', - isToggle = 0): - '''Old style method to add a tool to the toolbar.''' - kind = wx.ITEM_NORMAL - if isToggle: kind = wx.ITEM_CHECK - return self.DoAddTool(id, '', bitmap, wx.NullBitmap, kind, - shortHelpString, longHelpString, None) - - def InsertTool(self, pos, id, bitmap, - pushedBitmap = wx.NullBitmap, - isToggle = 0, - clientData = None, - shortHelpString = '', - longHelpString = ''): - '''Old style method to insert a tool in the toolbar.''' - kind = wx.ITEM_NORMAL - if isToggle: kind = wx.ITEM_CHECK - return self.DoInsertTool(pos, id, '', bitmap, pushedBitmap, kind, - shortHelpString, longHelpString, clientData) - - def InsertSimpleTool(self, pos, id, bitmap, - shortHelpString = '', - longHelpString = '', - isToggle = 0): - '''Old style method to insert a tool in the toolbar.''' - kind = wx.ITEM_NORMAL - if isToggle: kind = wx.ITEM_CHECK - return self.DoInsertTool(pos, id, '', bitmap, wx.NullBitmap, kind, - shortHelpString, longHelpString, None) - - - # The following are the new toolbar Add methods starting with - # 2.3.3. They are renamed to have 'Label' in the name so as to be - # able to keep backwards compatibility with using the above - # methods. Eventually these should migrate to be the methods used - # primarily and lose the 'Label' in the name... - - def AddLabelTool(self, id, label, bitmap, - bmpDisabled = wx.NullBitmap, - kind = wx.ITEM_NORMAL, - shortHelp = '', longHelp = '', - clientData = None): - ''' - The full AddTool() function. - - If bmpDisabled is wx.NullBitmap, a shadowed version of the normal bitmap - is created and used as the disabled image. - ''' - return self.DoAddTool(id, label, bitmap, bmpDisabled, kind, - shortHelp, longHelp, clientData) - - - def InsertLabelTool(self, pos, id, label, bitmap, - bmpDisabled = wx.NullBitmap, - kind = wx.ITEM_NORMAL, - shortHelp = '', longHelp = '', - clientData = None): - ''' - Insert the new tool at the given position, if pos == GetToolsCount(), it - is equivalent to AddTool() - ''' - return self.DoInsertTool(pos, id, label, bitmap, bmpDisabled, kind, - shortHelp, longHelp, clientData) - - def AddCheckLabelTool(self, id, label, bitmap, - bmpDisabled = wx.NullBitmap, - shortHelp = '', longHelp = '', - clientData = None): - '''Add a check tool, i.e. a tool which can be toggled''' - return self.DoAddTool(id, label, bitmap, bmpDisabled, wx.ITEM_CHECK, - shortHelp, longHelp, clientData) - - def AddRadioLabelTool(self, id, label, bitmap, - bmpDisabled = wx.NullBitmap, - shortHelp = '', longHelp = '', - clientData = None): - ''' - Add a radio tool, i.e. a tool which can be toggled and releases any - other toggled radio tools in the same group when it happens - ''' - return self.DoAddTool(id, label, bitmap, bmpDisabled, wx.ITEM_RADIO, - shortHelp, longHelp, clientData) - - - # For consistency with the backwards compatible methods above, here are - # some non-'Label' versions of the Check and Radio methods - def AddCheckTool(self, id, bitmap, - bmpDisabled = wx.NullBitmap, - shortHelp = '', longHelp = '', - clientData = None): - '''Add a check tool, i.e. a tool which can be toggled''' - return self.DoAddTool(id, '', bitmap, bmpDisabled, wx.ITEM_CHECK, - shortHelp, longHelp, clientData) - - def AddRadioTool(self, id, bitmap, - bmpDisabled = wx.NullBitmap, - shortHelp = '', longHelp = '', - clientData = None): - ''' - Add a radio tool, i.e. a tool which can be toggled and releases any - other toggled radio tools in the same group when it happens - ''' - return self.DoAddTool(id, '', bitmap, bmpDisabled, wx.ITEM_RADIO, - shortHelp, longHelp, clientData) - - def AddToolItem(*args, **kwargs): - """AddToolItem(self, ToolBarToolBase tool) -> ToolBarToolBase""" - return _controls.ToolBarBase_AddToolItem(*args, **kwargs) - - def InsertToolItem(*args, **kwargs): - """InsertToolItem(self, size_t pos, ToolBarToolBase tool) -> ToolBarToolBase""" - return _controls.ToolBarBase_InsertToolItem(*args, **kwargs) - - def AddControl(*args, **kwargs): - """AddControl(self, Control control) -> ToolBarToolBase""" - return _controls.ToolBarBase_AddControl(*args, **kwargs) - - def InsertControl(*args, **kwargs): - """InsertControl(self, size_t pos, Control control) -> ToolBarToolBase""" - return _controls.ToolBarBase_InsertControl(*args, **kwargs) - - def FindControl(*args, **kwargs): - """FindControl(self, int id) -> Control""" - return _controls.ToolBarBase_FindControl(*args, **kwargs) - - def AddSeparator(*args, **kwargs): - """AddSeparator(self) -> ToolBarToolBase""" - return _controls.ToolBarBase_AddSeparator(*args, **kwargs) - - def InsertSeparator(*args, **kwargs): - """InsertSeparator(self, size_t pos) -> ToolBarToolBase""" - return _controls.ToolBarBase_InsertSeparator(*args, **kwargs) - - def RemoveTool(*args, **kwargs): - """RemoveTool(self, int id) -> ToolBarToolBase""" - return _controls.ToolBarBase_RemoveTool(*args, **kwargs) - - def DeleteToolByPos(*args, **kwargs): - """DeleteToolByPos(self, size_t pos) -> bool""" - return _controls.ToolBarBase_DeleteToolByPos(*args, **kwargs) - - def DeleteTool(*args, **kwargs): - """DeleteTool(self, int id) -> bool""" - return _controls.ToolBarBase_DeleteTool(*args, **kwargs) - - def ClearTools(*args, **kwargs): - """ClearTools(self)""" - return _controls.ToolBarBase_ClearTools(*args, **kwargs) - - def Realize(*args, **kwargs): - """Realize(self) -> bool""" - return _controls.ToolBarBase_Realize(*args, **kwargs) - - def EnableTool(*args, **kwargs): - """EnableTool(self, int id, bool enable)""" - return _controls.ToolBarBase_EnableTool(*args, **kwargs) - - def ToggleTool(*args, **kwargs): - """ToggleTool(self, int id, bool toggle)""" - return _controls.ToolBarBase_ToggleTool(*args, **kwargs) - - def SetToggle(*args, **kwargs): - """SetToggle(self, int id, bool toggle)""" - return _controls.ToolBarBase_SetToggle(*args, **kwargs) - - def GetToolClientData(*args, **kwargs): - """GetToolClientData(self, int id) -> PyObject""" - return _controls.ToolBarBase_GetToolClientData(*args, **kwargs) - - def SetToolClientData(*args, **kwargs): - """SetToolClientData(self, int id, PyObject clientData)""" - return _controls.ToolBarBase_SetToolClientData(*args, **kwargs) - - def GetToolPos(*args, **kwargs): - """GetToolPos(self, int id) -> int""" - return _controls.ToolBarBase_GetToolPos(*args, **kwargs) - - def GetToolState(*args, **kwargs): - """GetToolState(self, int id) -> bool""" - return _controls.ToolBarBase_GetToolState(*args, **kwargs) - - def GetToolEnabled(*args, **kwargs): - """GetToolEnabled(self, int id) -> bool""" - return _controls.ToolBarBase_GetToolEnabled(*args, **kwargs) - - def SetToolShortHelp(*args, **kwargs): - """SetToolShortHelp(self, int id, String helpString)""" - return _controls.ToolBarBase_SetToolShortHelp(*args, **kwargs) - - def GetToolShortHelp(*args, **kwargs): - """GetToolShortHelp(self, int id) -> String""" - return _controls.ToolBarBase_GetToolShortHelp(*args, **kwargs) - - def SetToolLongHelp(*args, **kwargs): - """SetToolLongHelp(self, int id, String helpString)""" - return _controls.ToolBarBase_SetToolLongHelp(*args, **kwargs) - - def GetToolLongHelp(*args, **kwargs): - """GetToolLongHelp(self, int id) -> String""" - return _controls.ToolBarBase_GetToolLongHelp(*args, **kwargs) - - def SetMarginsXY(*args, **kwargs): - """SetMarginsXY(self, int x, int y)""" - return _controls.ToolBarBase_SetMarginsXY(*args, **kwargs) - - def SetMargins(*args, **kwargs): - """SetMargins(self, Size size)""" - return _controls.ToolBarBase_SetMargins(*args, **kwargs) - - def SetToolPacking(*args, **kwargs): - """SetToolPacking(self, int packing)""" - return _controls.ToolBarBase_SetToolPacking(*args, **kwargs) - - def SetToolSeparation(*args, **kwargs): - """SetToolSeparation(self, int separation)""" - return _controls.ToolBarBase_SetToolSeparation(*args, **kwargs) - - def GetToolMargins(*args, **kwargs): - """GetToolMargins(self) -> Size""" - return _controls.ToolBarBase_GetToolMargins(*args, **kwargs) - - def GetMargins(*args, **kwargs): - """GetMargins(self) -> Size""" - return _controls.ToolBarBase_GetMargins(*args, **kwargs) - - def GetToolPacking(*args, **kwargs): - """GetToolPacking(self) -> int""" - return _controls.ToolBarBase_GetToolPacking(*args, **kwargs) - - def GetToolSeparation(*args, **kwargs): - """GetToolSeparation(self) -> int""" - return _controls.ToolBarBase_GetToolSeparation(*args, **kwargs) - - def SetRows(*args, **kwargs): - """SetRows(self, int nRows)""" - return _controls.ToolBarBase_SetRows(*args, **kwargs) - - def SetMaxRowsCols(*args, **kwargs): - """SetMaxRowsCols(self, int rows, int cols)""" - return _controls.ToolBarBase_SetMaxRowsCols(*args, **kwargs) - - def GetMaxRows(*args, **kwargs): - """GetMaxRows(self) -> int""" - return _controls.ToolBarBase_GetMaxRows(*args, **kwargs) - - def GetMaxCols(*args, **kwargs): - """GetMaxCols(self) -> int""" - return _controls.ToolBarBase_GetMaxCols(*args, **kwargs) - - def SetToolBitmapSize(*args, **kwargs): - """SetToolBitmapSize(self, Size size)""" - return _controls.ToolBarBase_SetToolBitmapSize(*args, **kwargs) - - def GetToolBitmapSize(*args, **kwargs): - """GetToolBitmapSize(self) -> Size""" - return _controls.ToolBarBase_GetToolBitmapSize(*args, **kwargs) - - def GetToolSize(*args, **kwargs): - """GetToolSize(self) -> Size""" - return _controls.ToolBarBase_GetToolSize(*args, **kwargs) - - def FindToolForPosition(*args, **kwargs): - """FindToolForPosition(self, int x, int y) -> ToolBarToolBase""" - return _controls.ToolBarBase_FindToolForPosition(*args, **kwargs) - - def FindById(*args, **kwargs): - """FindById(self, int toolid) -> ToolBarToolBase""" - return _controls.ToolBarBase_FindById(*args, **kwargs) - - def IsVertical(*args, **kwargs): - """IsVertical(self) -> bool""" - return _controls.ToolBarBase_IsVertical(*args, **kwargs) - - -class ToolBarBasePtr(ToolBarBase): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ToolBarBase -_controls.ToolBarBase_swigregister(ToolBarBasePtr) - -class ToolBar(ToolBarBase): - def __repr__(self): - return "<%s.%s; proxy of C++ wxToolBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - long style=wxNO_BORDER|wxTB_HORIZONTAL, - String name=wxPyToolBarNameStr) -> ToolBar - """ - newobj = _controls.new_ToolBar(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - long style=wxNO_BORDER|wxTB_HORIZONTAL, - String name=wxPyToolBarNameStr) -> bool - """ - return _controls.ToolBar_Create(*args, **kwargs) - - def FindToolForPosition(*args, **kwargs): - """FindToolForPosition(self, int x, int y) -> ToolBarToolBase""" - return _controls.ToolBar_FindToolForPosition(*args, **kwargs) - - -class ToolBarPtr(ToolBar): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ToolBar -_controls.ToolBar_swigregister(ToolBarPtr) - -def PreToolBar(*args, **kwargs): - """PreToolBar() -> ToolBar""" - val = _controls.new_PreToolBar(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -LC_VRULES = _controls.LC_VRULES -LC_HRULES = _controls.LC_HRULES -LC_ICON = _controls.LC_ICON -LC_SMALL_ICON = _controls.LC_SMALL_ICON -LC_LIST = _controls.LC_LIST -LC_REPORT = _controls.LC_REPORT -LC_ALIGN_TOP = _controls.LC_ALIGN_TOP -LC_ALIGN_LEFT = _controls.LC_ALIGN_LEFT -LC_AUTOARRANGE = _controls.LC_AUTOARRANGE -LC_VIRTUAL = _controls.LC_VIRTUAL -LC_EDIT_LABELS = _controls.LC_EDIT_LABELS -LC_NO_HEADER = _controls.LC_NO_HEADER -LC_NO_SORT_HEADER = _controls.LC_NO_SORT_HEADER -LC_SINGLE_SEL = _controls.LC_SINGLE_SEL -LC_SORT_ASCENDING = _controls.LC_SORT_ASCENDING -LC_SORT_DESCENDING = _controls.LC_SORT_DESCENDING -LC_MASK_TYPE = _controls.LC_MASK_TYPE -LC_MASK_ALIGN = _controls.LC_MASK_ALIGN -LC_MASK_SORT = _controls.LC_MASK_SORT -LIST_MASK_STATE = _controls.LIST_MASK_STATE -LIST_MASK_TEXT = _controls.LIST_MASK_TEXT -LIST_MASK_IMAGE = _controls.LIST_MASK_IMAGE -LIST_MASK_DATA = _controls.LIST_MASK_DATA -LIST_SET_ITEM = _controls.LIST_SET_ITEM -LIST_MASK_WIDTH = _controls.LIST_MASK_WIDTH -LIST_MASK_FORMAT = _controls.LIST_MASK_FORMAT -LIST_STATE_DONTCARE = _controls.LIST_STATE_DONTCARE -LIST_STATE_DROPHILITED = _controls.LIST_STATE_DROPHILITED -LIST_STATE_FOCUSED = _controls.LIST_STATE_FOCUSED -LIST_STATE_SELECTED = _controls.LIST_STATE_SELECTED -LIST_STATE_CUT = _controls.LIST_STATE_CUT -LIST_STATE_DISABLED = _controls.LIST_STATE_DISABLED -LIST_STATE_FILTERED = _controls.LIST_STATE_FILTERED -LIST_STATE_INUSE = _controls.LIST_STATE_INUSE -LIST_STATE_PICKED = _controls.LIST_STATE_PICKED -LIST_STATE_SOURCE = _controls.LIST_STATE_SOURCE -LIST_HITTEST_ABOVE = _controls.LIST_HITTEST_ABOVE -LIST_HITTEST_BELOW = _controls.LIST_HITTEST_BELOW -LIST_HITTEST_NOWHERE = _controls.LIST_HITTEST_NOWHERE -LIST_HITTEST_ONITEMICON = _controls.LIST_HITTEST_ONITEMICON -LIST_HITTEST_ONITEMLABEL = _controls.LIST_HITTEST_ONITEMLABEL -LIST_HITTEST_ONITEMRIGHT = _controls.LIST_HITTEST_ONITEMRIGHT -LIST_HITTEST_ONITEMSTATEICON = _controls.LIST_HITTEST_ONITEMSTATEICON -LIST_HITTEST_TOLEFT = _controls.LIST_HITTEST_TOLEFT -LIST_HITTEST_TORIGHT = _controls.LIST_HITTEST_TORIGHT -LIST_HITTEST_ONITEM = _controls.LIST_HITTEST_ONITEM -LIST_NEXT_ABOVE = _controls.LIST_NEXT_ABOVE -LIST_NEXT_ALL = _controls.LIST_NEXT_ALL -LIST_NEXT_BELOW = _controls.LIST_NEXT_BELOW -LIST_NEXT_LEFT = _controls.LIST_NEXT_LEFT -LIST_NEXT_RIGHT = _controls.LIST_NEXT_RIGHT -LIST_ALIGN_DEFAULT = _controls.LIST_ALIGN_DEFAULT -LIST_ALIGN_LEFT = _controls.LIST_ALIGN_LEFT -LIST_ALIGN_TOP = _controls.LIST_ALIGN_TOP -LIST_ALIGN_SNAP_TO_GRID = _controls.LIST_ALIGN_SNAP_TO_GRID -LIST_FORMAT_LEFT = _controls.LIST_FORMAT_LEFT -LIST_FORMAT_RIGHT = _controls.LIST_FORMAT_RIGHT -LIST_FORMAT_CENTRE = _controls.LIST_FORMAT_CENTRE -LIST_FORMAT_CENTER = _controls.LIST_FORMAT_CENTER -LIST_AUTOSIZE = _controls.LIST_AUTOSIZE -LIST_AUTOSIZE_USEHEADER = _controls.LIST_AUTOSIZE_USEHEADER -LIST_RECT_BOUNDS = _controls.LIST_RECT_BOUNDS -LIST_RECT_ICON = _controls.LIST_RECT_ICON -LIST_RECT_LABEL = _controls.LIST_RECT_LABEL -LIST_FIND_UP = _controls.LIST_FIND_UP -LIST_FIND_DOWN = _controls.LIST_FIND_DOWN -LIST_FIND_LEFT = _controls.LIST_FIND_LEFT -LIST_FIND_RIGHT = _controls.LIST_FIND_RIGHT -#--------------------------------------------------------------------------- - -class ListItemAttr(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxListItemAttr instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour, - Font font=wxNullFont) -> ListItemAttr - """ - newobj = _controls.new_ListItemAttr(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def SetTextColour(*args, **kwargs): - """SetTextColour(self, Colour colText)""" - return _controls.ListItemAttr_SetTextColour(*args, **kwargs) - - def SetBackgroundColour(*args, **kwargs): - """SetBackgroundColour(self, Colour colBack)""" - return _controls.ListItemAttr_SetBackgroundColour(*args, **kwargs) - - def SetFont(*args, **kwargs): - """SetFont(self, Font font)""" - return _controls.ListItemAttr_SetFont(*args, **kwargs) - - def HasTextColour(*args, **kwargs): - """HasTextColour(self) -> bool""" - return _controls.ListItemAttr_HasTextColour(*args, **kwargs) - - def HasBackgroundColour(*args, **kwargs): - """HasBackgroundColour(self) -> bool""" - return _controls.ListItemAttr_HasBackgroundColour(*args, **kwargs) - - def HasFont(*args, **kwargs): - """HasFont(self) -> bool""" - return _controls.ListItemAttr_HasFont(*args, **kwargs) - - def GetTextColour(*args, **kwargs): - """GetTextColour(self) -> Colour""" - return _controls.ListItemAttr_GetTextColour(*args, **kwargs) - - def GetBackgroundColour(*args, **kwargs): - """GetBackgroundColour(self) -> Colour""" - return _controls.ListItemAttr_GetBackgroundColour(*args, **kwargs) - - def GetFont(*args, **kwargs): - """GetFont(self) -> Font""" - return _controls.ListItemAttr_GetFont(*args, **kwargs) - - def Destroy(*args, **kwargs): - """Destroy(self)""" - return _controls.ListItemAttr_Destroy(*args, **kwargs) - - -class ListItemAttrPtr(ListItemAttr): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ListItemAttr -_controls.ListItemAttr_swigregister(ListItemAttrPtr) -ListCtrlNameStr = cvar.ListCtrlNameStr - -#--------------------------------------------------------------------------- - -class ListItem(core.Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxListItem instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> ListItem""" - newobj = _controls.new_ListItem(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_controls.delete_ListItem): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Clear(*args, **kwargs): - """Clear(self)""" - return _controls.ListItem_Clear(*args, **kwargs) - - def ClearAttributes(*args, **kwargs): - """ClearAttributes(self)""" - return _controls.ListItem_ClearAttributes(*args, **kwargs) - - def SetMask(*args, **kwargs): - """SetMask(self, long mask)""" - return _controls.ListItem_SetMask(*args, **kwargs) - - def SetId(*args, **kwargs): - """SetId(self, long id)""" - return _controls.ListItem_SetId(*args, **kwargs) - - def SetColumn(*args, **kwargs): - """SetColumn(self, int col)""" - return _controls.ListItem_SetColumn(*args, **kwargs) - - def SetState(*args, **kwargs): - """SetState(self, long state)""" - return _controls.ListItem_SetState(*args, **kwargs) - - def SetStateMask(*args, **kwargs): - """SetStateMask(self, long stateMask)""" - return _controls.ListItem_SetStateMask(*args, **kwargs) - - def SetText(*args, **kwargs): - """SetText(self, String text)""" - return _controls.ListItem_SetText(*args, **kwargs) - - def SetImage(*args, **kwargs): - """SetImage(self, int image)""" - return _controls.ListItem_SetImage(*args, **kwargs) - - def SetData(*args, **kwargs): - """SetData(self, long data)""" - return _controls.ListItem_SetData(*args, **kwargs) - - def SetWidth(*args, **kwargs): - """SetWidth(self, int width)""" - return _controls.ListItem_SetWidth(*args, **kwargs) - - def SetAlign(*args, **kwargs): - """SetAlign(self, int align)""" - return _controls.ListItem_SetAlign(*args, **kwargs) - - def SetTextColour(*args, **kwargs): - """SetTextColour(self, Colour colText)""" - return _controls.ListItem_SetTextColour(*args, **kwargs) - - def SetBackgroundColour(*args, **kwargs): - """SetBackgroundColour(self, Colour colBack)""" - return _controls.ListItem_SetBackgroundColour(*args, **kwargs) - - def SetFont(*args, **kwargs): - """SetFont(self, Font font)""" - return _controls.ListItem_SetFont(*args, **kwargs) - - def GetMask(*args, **kwargs): - """GetMask(self) -> long""" - return _controls.ListItem_GetMask(*args, **kwargs) - - def GetId(*args, **kwargs): - """GetId(self) -> long""" - return _controls.ListItem_GetId(*args, **kwargs) - - def GetColumn(*args, **kwargs): - """GetColumn(self) -> int""" - return _controls.ListItem_GetColumn(*args, **kwargs) - - def GetState(*args, **kwargs): - """GetState(self) -> long""" - return _controls.ListItem_GetState(*args, **kwargs) - - def GetText(*args, **kwargs): - """GetText(self) -> String""" - return _controls.ListItem_GetText(*args, **kwargs) - - def GetImage(*args, **kwargs): - """GetImage(self) -> int""" - return _controls.ListItem_GetImage(*args, **kwargs) - - def GetData(*args, **kwargs): - """GetData(self) -> long""" - return _controls.ListItem_GetData(*args, **kwargs) - - def GetWidth(*args, **kwargs): - """GetWidth(self) -> int""" - return _controls.ListItem_GetWidth(*args, **kwargs) - - def GetAlign(*args, **kwargs): - """GetAlign(self) -> int""" - return _controls.ListItem_GetAlign(*args, **kwargs) - - def GetAttributes(*args, **kwargs): - """GetAttributes(self) -> ListItemAttr""" - return _controls.ListItem_GetAttributes(*args, **kwargs) - - def HasAttributes(*args, **kwargs): - """HasAttributes(self) -> bool""" - return _controls.ListItem_HasAttributes(*args, **kwargs) - - def GetTextColour(*args, **kwargs): - """GetTextColour(self) -> Colour""" - return _controls.ListItem_GetTextColour(*args, **kwargs) - - def GetBackgroundColour(*args, **kwargs): - """GetBackgroundColour(self) -> Colour""" - return _controls.ListItem_GetBackgroundColour(*args, **kwargs) - - def GetFont(*args, **kwargs): - """GetFont(self) -> Font""" - return _controls.ListItem_GetFont(*args, **kwargs) - - m_mask = property(_controls.ListItem_m_mask_get, _controls.ListItem_m_mask_set) - m_itemId = property(_controls.ListItem_m_itemId_get, _controls.ListItem_m_itemId_set) - m_col = property(_controls.ListItem_m_col_get, _controls.ListItem_m_col_set) - m_state = property(_controls.ListItem_m_state_get, _controls.ListItem_m_state_set) - m_stateMask = property(_controls.ListItem_m_stateMask_get, _controls.ListItem_m_stateMask_set) - m_text = property(_controls.ListItem_m_text_get, _controls.ListItem_m_text_set) - m_image = property(_controls.ListItem_m_image_get, _controls.ListItem_m_image_set) - m_data = property(_controls.ListItem_m_data_get, _controls.ListItem_m_data_set) - m_format = property(_controls.ListItem_m_format_get, _controls.ListItem_m_format_set) - m_width = property(_controls.ListItem_m_width_get, _controls.ListItem_m_width_set) - -class ListItemPtr(ListItem): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ListItem -_controls.ListItem_swigregister(ListItemPtr) - -#--------------------------------------------------------------------------- - -class ListEvent(core.NotifyEvent): - def __repr__(self): - return "<%s.%s; proxy of C++ wxListEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> ListEvent""" - newobj = _controls.new_ListEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - m_code = property(_controls.ListEvent_m_code_get, _controls.ListEvent_m_code_set) - m_oldItemIndex = property(_controls.ListEvent_m_oldItemIndex_get, _controls.ListEvent_m_oldItemIndex_set) - m_itemIndex = property(_controls.ListEvent_m_itemIndex_get, _controls.ListEvent_m_itemIndex_set) - m_col = property(_controls.ListEvent_m_col_get, _controls.ListEvent_m_col_set) - m_pointDrag = property(_controls.ListEvent_m_pointDrag_get, _controls.ListEvent_m_pointDrag_set) - m_item = property(_controls.ListEvent_m_item_get) - def GetKeyCode(*args, **kwargs): - """GetKeyCode(self) -> int""" - return _controls.ListEvent_GetKeyCode(*args, **kwargs) - - GetCode = GetKeyCode - def GetIndex(*args, **kwargs): - """GetIndex(self) -> long""" - return _controls.ListEvent_GetIndex(*args, **kwargs) - - def GetColumn(*args, **kwargs): - """GetColumn(self) -> int""" - return _controls.ListEvent_GetColumn(*args, **kwargs) - - def GetPoint(*args, **kwargs): - """GetPoint(self) -> Point""" - return _controls.ListEvent_GetPoint(*args, **kwargs) - - GetPosition = GetPoint - def GetLabel(*args, **kwargs): - """GetLabel(self) -> String""" - return _controls.ListEvent_GetLabel(*args, **kwargs) - - def GetText(*args, **kwargs): - """GetText(self) -> String""" - return _controls.ListEvent_GetText(*args, **kwargs) - - def GetImage(*args, **kwargs): - """GetImage(self) -> int""" - return _controls.ListEvent_GetImage(*args, **kwargs) - - def GetData(*args, **kwargs): - """GetData(self) -> long""" - return _controls.ListEvent_GetData(*args, **kwargs) - - def GetMask(*args, **kwargs): - """GetMask(self) -> long""" - return _controls.ListEvent_GetMask(*args, **kwargs) - - def GetItem(*args, **kwargs): - """GetItem(self) -> ListItem""" - return _controls.ListEvent_GetItem(*args, **kwargs) - - def GetCacheFrom(*args, **kwargs): - """GetCacheFrom(self) -> long""" - return _controls.ListEvent_GetCacheFrom(*args, **kwargs) - - def GetCacheTo(*args, **kwargs): - """GetCacheTo(self) -> long""" - return _controls.ListEvent_GetCacheTo(*args, **kwargs) - - def IsEditCancelled(*args, **kwargs): - """IsEditCancelled(self) -> bool""" - return _controls.ListEvent_IsEditCancelled(*args, **kwargs) - - def SetEditCanceled(*args, **kwargs): - """SetEditCanceled(self, bool editCancelled)""" - return _controls.ListEvent_SetEditCanceled(*args, **kwargs) - - -class ListEventPtr(ListEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ListEvent -_controls.ListEvent_swigregister(ListEventPtr) - -wxEVT_COMMAND_LIST_BEGIN_DRAG = _controls.wxEVT_COMMAND_LIST_BEGIN_DRAG -wxEVT_COMMAND_LIST_BEGIN_RDRAG = _controls.wxEVT_COMMAND_LIST_BEGIN_RDRAG -wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT = _controls.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT -wxEVT_COMMAND_LIST_END_LABEL_EDIT = _controls.wxEVT_COMMAND_LIST_END_LABEL_EDIT -wxEVT_COMMAND_LIST_DELETE_ITEM = _controls.wxEVT_COMMAND_LIST_DELETE_ITEM -wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS = _controls.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS -wxEVT_COMMAND_LIST_GET_INFO = _controls.wxEVT_COMMAND_LIST_GET_INFO -wxEVT_COMMAND_LIST_SET_INFO = _controls.wxEVT_COMMAND_LIST_SET_INFO -wxEVT_COMMAND_LIST_ITEM_SELECTED = _controls.wxEVT_COMMAND_LIST_ITEM_SELECTED -wxEVT_COMMAND_LIST_ITEM_DESELECTED = _controls.wxEVT_COMMAND_LIST_ITEM_DESELECTED -wxEVT_COMMAND_LIST_KEY_DOWN = _controls.wxEVT_COMMAND_LIST_KEY_DOWN -wxEVT_COMMAND_LIST_INSERT_ITEM = _controls.wxEVT_COMMAND_LIST_INSERT_ITEM -wxEVT_COMMAND_LIST_COL_CLICK = _controls.wxEVT_COMMAND_LIST_COL_CLICK -wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK = _controls.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK -wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK = _controls.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK -wxEVT_COMMAND_LIST_ITEM_ACTIVATED = _controls.wxEVT_COMMAND_LIST_ITEM_ACTIVATED -wxEVT_COMMAND_LIST_CACHE_HINT = _controls.wxEVT_COMMAND_LIST_CACHE_HINT -wxEVT_COMMAND_LIST_COL_RIGHT_CLICK = _controls.wxEVT_COMMAND_LIST_COL_RIGHT_CLICK -wxEVT_COMMAND_LIST_COL_BEGIN_DRAG = _controls.wxEVT_COMMAND_LIST_COL_BEGIN_DRAG -wxEVT_COMMAND_LIST_COL_DRAGGING = _controls.wxEVT_COMMAND_LIST_COL_DRAGGING -wxEVT_COMMAND_LIST_COL_END_DRAG = _controls.wxEVT_COMMAND_LIST_COL_END_DRAG -wxEVT_COMMAND_LIST_ITEM_FOCUSED = _controls.wxEVT_COMMAND_LIST_ITEM_FOCUSED -EVT_LIST_BEGIN_DRAG = wx.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_DRAG , 1) -EVT_LIST_BEGIN_RDRAG = wx.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_RDRAG , 1) -EVT_LIST_BEGIN_LABEL_EDIT = wx.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT , 1) -EVT_LIST_END_LABEL_EDIT = wx.PyEventBinder(wxEVT_COMMAND_LIST_END_LABEL_EDIT , 1) -EVT_LIST_DELETE_ITEM = wx.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ITEM , 1) -EVT_LIST_DELETE_ALL_ITEMS = wx.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS , 1) -EVT_LIST_GET_INFO = wx.PyEventBinder(wxEVT_COMMAND_LIST_GET_INFO , 1) -EVT_LIST_SET_INFO = wx.PyEventBinder(wxEVT_COMMAND_LIST_SET_INFO , 1) -EVT_LIST_ITEM_SELECTED = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_SELECTED , 1) -EVT_LIST_ITEM_DESELECTED = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_DESELECTED , 1) -EVT_LIST_KEY_DOWN = wx.PyEventBinder(wxEVT_COMMAND_LIST_KEY_DOWN , 1) -EVT_LIST_INSERT_ITEM = wx.PyEventBinder(wxEVT_COMMAND_LIST_INSERT_ITEM , 1) -EVT_LIST_COL_CLICK = wx.PyEventBinder(wxEVT_COMMAND_LIST_COL_CLICK , 1) -EVT_LIST_ITEM_RIGHT_CLICK = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK , 1) -EVT_LIST_ITEM_MIDDLE_CLICK = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK, 1) -EVT_LIST_ITEM_ACTIVATED = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_ACTIVATED , 1) -EVT_LIST_CACHE_HINT = wx.PyEventBinder(wxEVT_COMMAND_LIST_CACHE_HINT , 1) -EVT_LIST_COL_RIGHT_CLICK = wx.PyEventBinder(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK , 1) -EVT_LIST_COL_BEGIN_DRAG = wx.PyEventBinder(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG , 1) -EVT_LIST_COL_DRAGGING = wx.PyEventBinder(wxEVT_COMMAND_LIST_COL_DRAGGING , 1) -EVT_LIST_COL_END_DRAG = wx.PyEventBinder(wxEVT_COMMAND_LIST_COL_END_DRAG , 1) -EVT_LIST_ITEM_FOCUSED = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_FOCUSED , 1) - -#--------------------------------------------------------------------------- - -class ListCtrl(core.Control): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyListCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, long style=LC_ICON, - Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListCtrl - """ - newobj = _controls.new_ListCtrl(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self);self._setCallbackInfo(self, ListCtrl) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, long style=LC_ICON, - Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool - - Do the 2nd phase and create the GUI control. - """ - return _controls.ListCtrl_Create(*args, **kwargs) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _controls.ListCtrl__setCallbackInfo(*args, **kwargs) - - def SetForegroundColour(*args, **kwargs): - """SetForegroundColour(self, Colour col) -> bool""" - return _controls.ListCtrl_SetForegroundColour(*args, **kwargs) - - def SetBackgroundColour(*args, **kwargs): - """SetBackgroundColour(self, Colour col) -> bool""" - return _controls.ListCtrl_SetBackgroundColour(*args, **kwargs) - - def GetColumn(*args, **kwargs): - """GetColumn(self, int col) -> ListItem""" - val = _controls.ListCtrl_GetColumn(*args, **kwargs) - if val is not None: val.thisown = 1 - return val - - def SetColumn(*args, **kwargs): - """SetColumn(self, int col, ListItem item) -> bool""" - return _controls.ListCtrl_SetColumn(*args, **kwargs) - - def GetColumnWidth(*args, **kwargs): - """GetColumnWidth(self, int col) -> int""" - return _controls.ListCtrl_GetColumnWidth(*args, **kwargs) - - def SetColumnWidth(*args, **kwargs): - """SetColumnWidth(self, int col, int width) -> bool""" - return _controls.ListCtrl_SetColumnWidth(*args, **kwargs) - - def GetCountPerPage(*args, **kwargs): - """GetCountPerPage(self) -> int""" - return _controls.ListCtrl_GetCountPerPage(*args, **kwargs) - - def GetViewRect(*args, **kwargs): - """GetViewRect(self) -> Rect""" - return _controls.ListCtrl_GetViewRect(*args, **kwargs) - - def GetItem(*args, **kwargs): - """GetItem(self, long itemId, int col=0) -> ListItem""" - val = _controls.ListCtrl_GetItem(*args, **kwargs) - if val is not None: val.thisown = 1 - return val - - def SetItem(*args, **kwargs): - """SetItem(self, ListItem info) -> bool""" - return _controls.ListCtrl_SetItem(*args, **kwargs) - - def SetStringItem(*args, **kwargs): - """SetStringItem(self, long index, int col, String label, int imageId=-1) -> long""" - return _controls.ListCtrl_SetStringItem(*args, **kwargs) - - def GetItemState(*args, **kwargs): - """GetItemState(self, long item, long stateMask) -> int""" - return _controls.ListCtrl_GetItemState(*args, **kwargs) - - def SetItemState(*args, **kwargs): - """SetItemState(self, long item, long state, long stateMask) -> bool""" - return _controls.ListCtrl_SetItemState(*args, **kwargs) - - def SetItemImage(*args, **kwargs): - """SetItemImage(self, long item, int image, int selImage) -> bool""" - return _controls.ListCtrl_SetItemImage(*args, **kwargs) - - def GetItemText(*args, **kwargs): - """GetItemText(self, long item) -> String""" - return _controls.ListCtrl_GetItemText(*args, **kwargs) - - def SetItemText(*args, **kwargs): - """SetItemText(self, long item, String str)""" - return _controls.ListCtrl_SetItemText(*args, **kwargs) - - def GetItemData(*args, **kwargs): - """GetItemData(self, long item) -> long""" - return _controls.ListCtrl_GetItemData(*args, **kwargs) - - def SetItemData(*args, **kwargs): - """SetItemData(self, long item, long data) -> bool""" - return _controls.ListCtrl_SetItemData(*args, **kwargs) - - def GetItemPosition(*args, **kwargs): - """GetItemPosition(self, long item) -> Point""" - return _controls.ListCtrl_GetItemPosition(*args, **kwargs) - - def GetItemRect(*args, **kwargs): - """GetItemRect(self, long item, int code=LIST_RECT_BOUNDS) -> Rect""" - return _controls.ListCtrl_GetItemRect(*args, **kwargs) - - def SetItemPosition(*args, **kwargs): - """SetItemPosition(self, long item, Point pos) -> bool""" - return _controls.ListCtrl_SetItemPosition(*args, **kwargs) - - def GetItemCount(*args, **kwargs): - """GetItemCount(self) -> int""" - return _controls.ListCtrl_GetItemCount(*args, **kwargs) - - def GetColumnCount(*args, **kwargs): - """GetColumnCount(self) -> int""" - return _controls.ListCtrl_GetColumnCount(*args, **kwargs) - - def GetItemSpacing(*args, **kwargs): - """GetItemSpacing(self) -> Size""" - return _controls.ListCtrl_GetItemSpacing(*args, **kwargs) - - def SetItemSpacing(*args, **kwargs): - """SetItemSpacing(self, int spacing, bool isSmall=False)""" - return _controls.ListCtrl_SetItemSpacing(*args, **kwargs) - - def GetSelectedItemCount(*args, **kwargs): - """GetSelectedItemCount(self) -> int""" - return _controls.ListCtrl_GetSelectedItemCount(*args, **kwargs) - - def GetTextColour(*args, **kwargs): - """GetTextColour(self) -> Colour""" - return _controls.ListCtrl_GetTextColour(*args, **kwargs) - - def SetTextColour(*args, **kwargs): - """SetTextColour(self, Colour col)""" - return _controls.ListCtrl_SetTextColour(*args, **kwargs) - - def GetTopItem(*args, **kwargs): - """GetTopItem(self) -> long""" - return _controls.ListCtrl_GetTopItem(*args, **kwargs) - - def SetSingleStyle(*args, **kwargs): - """SetSingleStyle(self, long style, bool add=True)""" - return _controls.ListCtrl_SetSingleStyle(*args, **kwargs) - - def SetWindowStyleFlag(*args, **kwargs): - """ - SetWindowStyleFlag(self, long style) - - Sets the style of the window. Please note that some styles cannot - be changed after the window creation and that Refresh() might - need to be called after changing the others for the change to - take place immediately. - """ - return _controls.ListCtrl_SetWindowStyleFlag(*args, **kwargs) - - def GetNextItem(*args, **kwargs): - """GetNextItem(self, long item, int geometry=LIST_NEXT_ALL, int state=LIST_STATE_DONTCARE) -> long""" - return _controls.ListCtrl_GetNextItem(*args, **kwargs) - - def GetImageList(*args, **kwargs): - """GetImageList(self, int which) -> ImageList""" - return _controls.ListCtrl_GetImageList(*args, **kwargs) - - def SetImageList(*args, **kwargs): - """SetImageList(self, ImageList imageList, int which)""" - return _controls.ListCtrl_SetImageList(*args, **kwargs) - - def AssignImageList(*args, **kwargs): - """AssignImageList(self, ImageList imageList, int which)""" - return _controls.ListCtrl_AssignImageList(*args, **kwargs) - - def InReportView(*args, **kwargs): - """InReportView(self) -> bool""" - return _controls.ListCtrl_InReportView(*args, **kwargs) - - def IsVirtual(*args, **kwargs): - """IsVirtual(self) -> bool""" - return _controls.ListCtrl_IsVirtual(*args, **kwargs) - - def RefreshItem(*args, **kwargs): - """RefreshItem(self, long item)""" - return _controls.ListCtrl_RefreshItem(*args, **kwargs) - - def RefreshItems(*args, **kwargs): - """RefreshItems(self, long itemFrom, long itemTo)""" - return _controls.ListCtrl_RefreshItems(*args, **kwargs) - - def Arrange(*args, **kwargs): - """Arrange(self, int flag=LIST_ALIGN_DEFAULT) -> bool""" - return _controls.ListCtrl_Arrange(*args, **kwargs) - - def DeleteItem(*args, **kwargs): - """DeleteItem(self, long item) -> bool""" - return _controls.ListCtrl_DeleteItem(*args, **kwargs) - - def DeleteAllItems(*args, **kwargs): - """DeleteAllItems(self) -> bool""" - return _controls.ListCtrl_DeleteAllItems(*args, **kwargs) - - def DeleteColumn(*args, **kwargs): - """DeleteColumn(self, int col) -> bool""" - return _controls.ListCtrl_DeleteColumn(*args, **kwargs) - - def DeleteAllColumns(*args, **kwargs): - """DeleteAllColumns(self) -> bool""" - return _controls.ListCtrl_DeleteAllColumns(*args, **kwargs) - - def ClearAll(*args, **kwargs): - """ClearAll(self)""" - return _controls.ListCtrl_ClearAll(*args, **kwargs) - - def EditLabel(*args, **kwargs): - """EditLabel(self, long item)""" - return _controls.ListCtrl_EditLabel(*args, **kwargs) - - def EnsureVisible(*args, **kwargs): - """EnsureVisible(self, long item) -> bool""" - return _controls.ListCtrl_EnsureVisible(*args, **kwargs) - - def FindItem(*args, **kwargs): - """FindItem(self, long start, String str, bool partial=False) -> long""" - return _controls.ListCtrl_FindItem(*args, **kwargs) - - def FindItemData(*args, **kwargs): - """FindItemData(self, long start, long data) -> long""" - return _controls.ListCtrl_FindItemData(*args, **kwargs) - - def FindItemAtPos(*args, **kwargs): - """FindItemAtPos(self, long start, Point pt, int direction) -> long""" - return _controls.ListCtrl_FindItemAtPos(*args, **kwargs) - - def HitTest(*args, **kwargs): - """ - HitTest(Point point) -> (item, where) - - Determines which item (if any) is at the specified point, - giving details in the second return value (see wxLIST_HITTEST_... flags.) - """ - return _controls.ListCtrl_HitTest(*args, **kwargs) - - def InsertItem(*args, **kwargs): - """InsertItem(self, ListItem info) -> long""" - return _controls.ListCtrl_InsertItem(*args, **kwargs) - - def InsertStringItem(*args, **kwargs): - """InsertStringItem(self, long index, String label) -> long""" - return _controls.ListCtrl_InsertStringItem(*args, **kwargs) - - def InsertImageItem(*args, **kwargs): - """InsertImageItem(self, long index, int imageIndex) -> long""" - return _controls.ListCtrl_InsertImageItem(*args, **kwargs) - - def InsertImageStringItem(*args, **kwargs): - """InsertImageStringItem(self, long index, String label, int imageIndex) -> long""" - return _controls.ListCtrl_InsertImageStringItem(*args, **kwargs) - - def InsertColumnInfo(*args, **kwargs): - """InsertColumnInfo(self, long col, ListItem info) -> long""" - return _controls.ListCtrl_InsertColumnInfo(*args, **kwargs) - - def InsertColumn(*args, **kwargs): - """ - InsertColumn(self, long col, String heading, int format=LIST_FORMAT_LEFT, - int width=-1) -> long - """ - return _controls.ListCtrl_InsertColumn(*args, **kwargs) - - def SetItemCount(*args, **kwargs): - """SetItemCount(self, long count)""" - return _controls.ListCtrl_SetItemCount(*args, **kwargs) - - def ScrollList(*args, **kwargs): - """ScrollList(self, int dx, int dy) -> bool""" - return _controls.ListCtrl_ScrollList(*args, **kwargs) - - def SetItemTextColour(*args, **kwargs): - """SetItemTextColour(self, long item, Colour col)""" - return _controls.ListCtrl_SetItemTextColour(*args, **kwargs) - - def GetItemTextColour(*args, **kwargs): - """GetItemTextColour(self, long item) -> Colour""" - return _controls.ListCtrl_GetItemTextColour(*args, **kwargs) - - def SetItemBackgroundColour(*args, **kwargs): - """SetItemBackgroundColour(self, long item, Colour col)""" - return _controls.ListCtrl_SetItemBackgroundColour(*args, **kwargs) - - def GetItemBackgroundColour(*args, **kwargs): - """GetItemBackgroundColour(self, long item) -> Colour""" - return _controls.ListCtrl_GetItemBackgroundColour(*args, **kwargs) - - # - # Some helpers... - def Select(self, idx, on=1): - '''[de]select an item''' - if on: state = wx.LIST_STATE_SELECTED - else: state = 0 - self.SetItemState(idx, state, wx.LIST_STATE_SELECTED) - - def Focus(self, idx): - '''Focus and show the given item''' - self.SetItemState(idx, wx.LIST_STATE_FOCUSED, wx.LIST_STATE_FOCUSED) - self.EnsureVisible(idx) - - def GetFocusedItem(self): - '''get the currently focused item or -1 if none''' - return self.GetNextItem(-1, wx.LIST_NEXT_ALL, wx.LIST_STATE_FOCUSED) - - def GetFirstSelected(self, *args): - '''return first selected item, or -1 when none''' - return self.GetNextSelected(-1) - - def GetNextSelected(self, item): - '''return subsequent selected items, or -1 when no more''' - return self.GetNextItem(item, wx.LIST_NEXT_ALL, wx.LIST_STATE_SELECTED) - - def IsSelected(self, idx): - '''return True if the item is selected''' - return self.GetItemState(idx, wx.LIST_STATE_SELECTED) != 0 - - def SetColumnImage(self, col, image): - item = self.GetColumn(col) - # preserve all other attributes too - item.SetMask( wx.LIST_MASK_STATE | - wx.LIST_MASK_TEXT | - wx.LIST_MASK_IMAGE | - wx.LIST_MASK_DATA | - wx.LIST_SET_ITEM | - wx.LIST_MASK_WIDTH | - wx.LIST_MASK_FORMAT ) - item.SetImage(image) - self.SetColumn(col, item) - - def ClearColumnImage(self, col): - self.SetColumnImage(col, -1) - - def Append(self, entry): - '''Append an item to the list control. The entry parameter should be a - sequence with an item for each column''' - if len(entry): - if wx.USE_UNICODE: - cvtfunc = unicode - else: - cvtfunc = str - pos = self.GetItemCount() - self.InsertStringItem(pos, cvtfunc(entry[0])) - for i in range(1, len(entry)): - self.SetStringItem(pos, i, cvtfunc(entry[i])) - return pos - - def SortItems(*args, **kwargs): - """SortItems(self, PyObject func) -> bool""" - return _controls.ListCtrl_SortItems(*args, **kwargs) - - def GetMainWindow(*args, **kwargs): - """GetMainWindow(self) -> Window""" - return _controls.ListCtrl_GetMainWindow(*args, **kwargs) - - def GetClassDefaultAttributes(*args, **kwargs): - """ - ListCtrl.GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes - - Get the default attributes for this class. This is useful if - you want to use the same font or colour in your own control as - in a standard control -- which is a much better idea than hard - coding specific colours or fonts which might look completely out - of place on the users system, especially if it uses themes. - - The variant parameter is only relevant under Mac currently and is - ignore under other platforms. Under Mac, it will change the size of the - returned font. See SetWindowVariant for more about this. - """ - return _controls.ListCtrl_GetClassDefaultAttributes(*args, **kwargs) - - GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) - -class ListCtrlPtr(ListCtrl): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ListCtrl -_controls.ListCtrl_swigregister(ListCtrlPtr) - -def PreListCtrl(*args, **kwargs): - """PreListCtrl() -> ListCtrl""" - val = _controls.new_PreListCtrl(*args, **kwargs) - val.thisown = 1 - return val - -def ListCtrl_GetClassDefaultAttributes(*args, **kwargs): - """ - ListCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes - - Get the default attributes for this class. This is useful if - you want to use the same font or colour in your own control as - in a standard control -- which is a much better idea than hard - coding specific colours or fonts which might look completely out - of place on the users system, especially if it uses themes. - - The variant parameter is only relevant under Mac currently and is - ignore under other platforms. Under Mac, it will change the size of the - returned font. See SetWindowVariant for more about this. - """ - return _controls.ListCtrl_GetClassDefaultAttributes(*args, **kwargs) - -#--------------------------------------------------------------------------- - -class ListView(ListCtrl): - def __repr__(self): - return "<%s.%s; proxy of C++ wxListView instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, long style=LC_REPORT, - Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListView - """ - newobj = _controls.new_ListView(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, long style=LC_REPORT, - Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool - - Do the 2nd phase and create the GUI control. - """ - return _controls.ListView_Create(*args, **kwargs) - - def Select(*args, **kwargs): - """Select(self, long n, bool on=True)""" - return _controls.ListView_Select(*args, **kwargs) - - def Focus(*args, **kwargs): - """Focus(self, long index)""" - return _controls.ListView_Focus(*args, **kwargs) - - def GetFocusedItem(*args, **kwargs): - """GetFocusedItem(self) -> long""" - return _controls.ListView_GetFocusedItem(*args, **kwargs) - - def GetNextSelected(*args, **kwargs): - """GetNextSelected(self, long item) -> long""" - return _controls.ListView_GetNextSelected(*args, **kwargs) - - def GetFirstSelected(*args, **kwargs): - """GetFirstSelected(self) -> long""" - return _controls.ListView_GetFirstSelected(*args, **kwargs) - - def IsSelected(*args, **kwargs): - """IsSelected(self, long index) -> bool""" - return _controls.ListView_IsSelected(*args, **kwargs) - - def SetColumnImage(*args, **kwargs): - """SetColumnImage(self, int col, int image)""" - return _controls.ListView_SetColumnImage(*args, **kwargs) - - def ClearColumnImage(*args, **kwargs): - """ClearColumnImage(self, int col)""" - return _controls.ListView_ClearColumnImage(*args, **kwargs) - - -class ListViewPtr(ListView): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ListView -_controls.ListView_swigregister(ListViewPtr) - -def PreListView(*args, **kwargs): - """PreListView() -> ListView""" - val = _controls.new_PreListView(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -TR_NO_BUTTONS = _controls.TR_NO_BUTTONS -TR_HAS_BUTTONS = _controls.TR_HAS_BUTTONS -TR_NO_LINES = _controls.TR_NO_LINES -TR_LINES_AT_ROOT = _controls.TR_LINES_AT_ROOT -TR_SINGLE = _controls.TR_SINGLE -TR_MULTIPLE = _controls.TR_MULTIPLE -TR_EXTENDED = _controls.TR_EXTENDED -TR_HAS_VARIABLE_ROW_HEIGHT = _controls.TR_HAS_VARIABLE_ROW_HEIGHT -TR_EDIT_LABELS = _controls.TR_EDIT_LABELS -TR_HIDE_ROOT = _controls.TR_HIDE_ROOT -TR_ROW_LINES = _controls.TR_ROW_LINES -TR_FULL_ROW_HIGHLIGHT = _controls.TR_FULL_ROW_HIGHLIGHT -TR_DEFAULT_STYLE = _controls.TR_DEFAULT_STYLE -TR_TWIST_BUTTONS = _controls.TR_TWIST_BUTTONS -TR_MAC_BUTTONS = _controls.TR_MAC_BUTTONS -TR_AQUA_BUTTONS = _controls.TR_AQUA_BUTTONS -TreeItemIcon_Normal = _controls.TreeItemIcon_Normal -TreeItemIcon_Selected = _controls.TreeItemIcon_Selected -TreeItemIcon_Expanded = _controls.TreeItemIcon_Expanded -TreeItemIcon_SelectedExpanded = _controls.TreeItemIcon_SelectedExpanded -TreeItemIcon_Max = _controls.TreeItemIcon_Max -TREE_HITTEST_ABOVE = _controls.TREE_HITTEST_ABOVE -TREE_HITTEST_BELOW = _controls.TREE_HITTEST_BELOW -TREE_HITTEST_NOWHERE = _controls.TREE_HITTEST_NOWHERE -TREE_HITTEST_ONITEMBUTTON = _controls.TREE_HITTEST_ONITEMBUTTON -TREE_HITTEST_ONITEMICON = _controls.TREE_HITTEST_ONITEMICON -TREE_HITTEST_ONITEMINDENT = _controls.TREE_HITTEST_ONITEMINDENT -TREE_HITTEST_ONITEMLABEL = _controls.TREE_HITTEST_ONITEMLABEL -TREE_HITTEST_ONITEMRIGHT = _controls.TREE_HITTEST_ONITEMRIGHT -TREE_HITTEST_ONITEMSTATEICON = _controls.TREE_HITTEST_ONITEMSTATEICON -TREE_HITTEST_TOLEFT = _controls.TREE_HITTEST_TOLEFT -TREE_HITTEST_TORIGHT = _controls.TREE_HITTEST_TORIGHT -TREE_HITTEST_ONITEMUPPERPART = _controls.TREE_HITTEST_ONITEMUPPERPART -TREE_HITTEST_ONITEMLOWERPART = _controls.TREE_HITTEST_ONITEMLOWERPART -TREE_HITTEST_ONITEM = _controls.TREE_HITTEST_ONITEM -#--------------------------------------------------------------------------- - -class TreeItemId(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxTreeItemId instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> TreeItemId""" - newobj = _controls.new_TreeItemId(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_controls.delete_TreeItemId): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def IsOk(*args, **kwargs): - """IsOk(self) -> bool""" - return _controls.TreeItemId_IsOk(*args, **kwargs) - - def __eq__(*args, **kwargs): - """__eq__(self, TreeItemId other) -> bool""" - return _controls.TreeItemId___eq__(*args, **kwargs) - - def __ne__(*args, **kwargs): - """__ne__(self, TreeItemId other) -> bool""" - return _controls.TreeItemId___ne__(*args, **kwargs) - - m_pItem = property(_controls.TreeItemId_m_pItem_get, _controls.TreeItemId_m_pItem_set) - Ok = IsOk - def __nonzero__(self): return self.IsOk() - -class TreeItemIdPtr(TreeItemId): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = TreeItemId -_controls.TreeItemId_swigregister(TreeItemIdPtr) -TreeCtrlNameStr = cvar.TreeCtrlNameStr - -class TreeItemData(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyTreeItemData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, PyObject obj=None) -> TreeItemData""" - newobj = _controls.new_TreeItemData(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetData(*args, **kwargs): - """GetData(self) -> PyObject""" - return _controls.TreeItemData_GetData(*args, **kwargs) - - def SetData(*args, **kwargs): - """SetData(self, PyObject obj)""" - return _controls.TreeItemData_SetData(*args, **kwargs) - - def GetId(*args, **kwargs): - """GetId(self) -> TreeItemId""" - return _controls.TreeItemData_GetId(*args, **kwargs) - - def SetId(*args, **kwargs): - """SetId(self, TreeItemId id)""" - return _controls.TreeItemData_SetId(*args, **kwargs) - - def Destroy(*args, **kwargs): - """Destroy(self)""" - return _controls.TreeItemData_Destroy(*args, **kwargs) - - -class TreeItemDataPtr(TreeItemData): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = TreeItemData -_controls.TreeItemData_swigregister(TreeItemDataPtr) - -#--------------------------------------------------------------------------- - -wxEVT_COMMAND_TREE_BEGIN_DRAG = _controls.wxEVT_COMMAND_TREE_BEGIN_DRAG -wxEVT_COMMAND_TREE_BEGIN_RDRAG = _controls.wxEVT_COMMAND_TREE_BEGIN_RDRAG -wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT = _controls.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT -wxEVT_COMMAND_TREE_END_LABEL_EDIT = _controls.wxEVT_COMMAND_TREE_END_LABEL_EDIT -wxEVT_COMMAND_TREE_DELETE_ITEM = _controls.wxEVT_COMMAND_TREE_DELETE_ITEM -wxEVT_COMMAND_TREE_GET_INFO = _controls.wxEVT_COMMAND_TREE_GET_INFO -wxEVT_COMMAND_TREE_SET_INFO = _controls.wxEVT_COMMAND_TREE_SET_INFO -wxEVT_COMMAND_TREE_ITEM_EXPANDED = _controls.wxEVT_COMMAND_TREE_ITEM_EXPANDED -wxEVT_COMMAND_TREE_ITEM_EXPANDING = _controls.wxEVT_COMMAND_TREE_ITEM_EXPANDING -wxEVT_COMMAND_TREE_ITEM_COLLAPSED = _controls.wxEVT_COMMAND_TREE_ITEM_COLLAPSED -wxEVT_COMMAND_TREE_ITEM_COLLAPSING = _controls.wxEVT_COMMAND_TREE_ITEM_COLLAPSING -wxEVT_COMMAND_TREE_SEL_CHANGED = _controls.wxEVT_COMMAND_TREE_SEL_CHANGED -wxEVT_COMMAND_TREE_SEL_CHANGING = _controls.wxEVT_COMMAND_TREE_SEL_CHANGING -wxEVT_COMMAND_TREE_KEY_DOWN = _controls.wxEVT_COMMAND_TREE_KEY_DOWN -wxEVT_COMMAND_TREE_ITEM_ACTIVATED = _controls.wxEVT_COMMAND_TREE_ITEM_ACTIVATED -wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK = _controls.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK -wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK = _controls.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK -wxEVT_COMMAND_TREE_END_DRAG = _controls.wxEVT_COMMAND_TREE_END_DRAG -wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK = _controls.wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK -wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP = _controls.wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP -EVT_TREE_BEGIN_DRAG = wx.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_DRAG , 1) -EVT_TREE_BEGIN_RDRAG = wx.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_RDRAG , 1) -EVT_TREE_BEGIN_LABEL_EDIT = wx.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT , 1) -EVT_TREE_END_LABEL_EDIT = wx.PyEventBinder(wxEVT_COMMAND_TREE_END_LABEL_EDIT , 1) -EVT_TREE_DELETE_ITEM = wx.PyEventBinder(wxEVT_COMMAND_TREE_DELETE_ITEM , 1) -EVT_TREE_GET_INFO = wx.PyEventBinder(wxEVT_COMMAND_TREE_GET_INFO , 1) -EVT_TREE_SET_INFO = wx.PyEventBinder(wxEVT_COMMAND_TREE_SET_INFO , 1) -EVT_TREE_ITEM_EXPANDED = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDED , 1) -EVT_TREE_ITEM_EXPANDING = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDING , 1) -EVT_TREE_ITEM_COLLAPSED = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSED , 1) -EVT_TREE_ITEM_COLLAPSING = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSING , 1) -EVT_TREE_SEL_CHANGED = wx.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGED , 1) -EVT_TREE_SEL_CHANGING = wx.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGING , 1) -EVT_TREE_KEY_DOWN = wx.PyEventBinder(wxEVT_COMMAND_TREE_KEY_DOWN , 1) -EVT_TREE_ITEM_ACTIVATED = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_ACTIVATED , 1) -EVT_TREE_ITEM_RIGHT_CLICK = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK , 1) -EVT_TREE_ITEM_MIDDLE_CLICK = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK, 1) -EVT_TREE_END_DRAG = wx.PyEventBinder(wxEVT_COMMAND_TREE_END_DRAG , 1) -EVT_TREE_STATE_IMAGE_CLICK = wx.PyEventBinder(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK, 1) -EVT_TREE_ITEM_GETTOOLTIP = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP, 1) - -class TreeEvent(core.NotifyEvent): - def __repr__(self): - return "<%s.%s; proxy of C++ wxTreeEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> TreeEvent""" - newobj = _controls.new_TreeEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetItem(*args, **kwargs): - """GetItem(self) -> TreeItemId""" - return _controls.TreeEvent_GetItem(*args, **kwargs) - - def SetItem(*args, **kwargs): - """SetItem(self, TreeItemId item)""" - return _controls.TreeEvent_SetItem(*args, **kwargs) - - def GetOldItem(*args, **kwargs): - """GetOldItem(self) -> TreeItemId""" - return _controls.TreeEvent_GetOldItem(*args, **kwargs) - - def SetOldItem(*args, **kwargs): - """SetOldItem(self, TreeItemId item)""" - return _controls.TreeEvent_SetOldItem(*args, **kwargs) - - def GetPoint(*args, **kwargs): - """GetPoint(self) -> Point""" - return _controls.TreeEvent_GetPoint(*args, **kwargs) - - def SetPoint(*args, **kwargs): - """SetPoint(self, Point pt)""" - return _controls.TreeEvent_SetPoint(*args, **kwargs) - - def GetKeyEvent(*args, **kwargs): - """GetKeyEvent(self) -> KeyEvent""" - return _controls.TreeEvent_GetKeyEvent(*args, **kwargs) - - def GetKeyCode(*args, **kwargs): - """GetKeyCode(self) -> int""" - return _controls.TreeEvent_GetKeyCode(*args, **kwargs) - - def SetKeyEvent(*args, **kwargs): - """SetKeyEvent(self, KeyEvent evt)""" - return _controls.TreeEvent_SetKeyEvent(*args, **kwargs) - - def GetLabel(*args, **kwargs): - """GetLabel(self) -> String""" - return _controls.TreeEvent_GetLabel(*args, **kwargs) - - def SetLabel(*args, **kwargs): - """SetLabel(self, String label)""" - return _controls.TreeEvent_SetLabel(*args, **kwargs) - - def IsEditCancelled(*args, **kwargs): - """IsEditCancelled(self) -> bool""" - return _controls.TreeEvent_IsEditCancelled(*args, **kwargs) - - def SetEditCanceled(*args, **kwargs): - """SetEditCanceled(self, bool editCancelled)""" - return _controls.TreeEvent_SetEditCanceled(*args, **kwargs) - - def SetToolTip(*args, **kwargs): - """SetToolTip(self, String toolTip)""" - return _controls.TreeEvent_SetToolTip(*args, **kwargs) - - -class TreeEventPtr(TreeEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = TreeEvent -_controls.TreeEvent_swigregister(TreeEventPtr) - -#--------------------------------------------------------------------------- - -class TreeCtrl(core.Control): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyTreeCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, long style=TR_DEFAULT_STYLE, - Validator validator=DefaultValidator, - String name=TreeCtrlNameStr) -> TreeCtrl - """ - newobj = _controls.new_TreeCtrl(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self);self._setCallbackInfo(self, TreeCtrl) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, long style=TR_DEFAULT_STYLE, - Validator validator=DefaultValidator, - String name=TreeCtrlNameStr) -> bool - - Do the 2nd phase and create the GUI control. - """ - return _controls.TreeCtrl_Create(*args, **kwargs) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _controls.TreeCtrl__setCallbackInfo(*args, **kwargs) - - def GetCount(*args, **kwargs): - """GetCount(self) -> size_t""" - return _controls.TreeCtrl_GetCount(*args, **kwargs) - - def GetIndent(*args, **kwargs): - """GetIndent(self) -> unsigned int""" - return _controls.TreeCtrl_GetIndent(*args, **kwargs) - - def SetIndent(*args, **kwargs): - """SetIndent(self, unsigned int indent)""" - return _controls.TreeCtrl_SetIndent(*args, **kwargs) - - def GetSpacing(*args, **kwargs): - """GetSpacing(self) -> unsigned int""" - return _controls.TreeCtrl_GetSpacing(*args, **kwargs) - - def SetSpacing(*args, **kwargs): - """SetSpacing(self, unsigned int spacing)""" - return _controls.TreeCtrl_SetSpacing(*args, **kwargs) - - def GetImageList(*args, **kwargs): - """GetImageList(self) -> ImageList""" - return _controls.TreeCtrl_GetImageList(*args, **kwargs) - - def GetStateImageList(*args, **kwargs): - """GetStateImageList(self) -> ImageList""" - return _controls.TreeCtrl_GetStateImageList(*args, **kwargs) - - def SetImageList(*args, **kwargs): - """SetImageList(self, ImageList imageList)""" - return _controls.TreeCtrl_SetImageList(*args, **kwargs) - - def SetStateImageList(*args, **kwargs): - """SetStateImageList(self, ImageList imageList)""" - return _controls.TreeCtrl_SetStateImageList(*args, **kwargs) - - def AssignImageList(*args, **kwargs): - """AssignImageList(self, ImageList imageList)""" - return _controls.TreeCtrl_AssignImageList(*args, **kwargs) - - def AssignStateImageList(*args, **kwargs): - """AssignStateImageList(self, ImageList imageList)""" - return _controls.TreeCtrl_AssignStateImageList(*args, **kwargs) - - def GetItemText(*args, **kwargs): - """GetItemText(self, TreeItemId item) -> String""" - return _controls.TreeCtrl_GetItemText(*args, **kwargs) - - def GetItemImage(*args, **kwargs): - """GetItemImage(self, TreeItemId item, int which=TreeItemIcon_Normal) -> int""" - return _controls.TreeCtrl_GetItemImage(*args, **kwargs) - - def GetItemData(*args, **kwargs): - """GetItemData(self, TreeItemId item) -> TreeItemData""" - return _controls.TreeCtrl_GetItemData(*args, **kwargs) - - def GetItemPyData(*args, **kwargs): - """GetItemPyData(self, TreeItemId item) -> PyObject""" - return _controls.TreeCtrl_GetItemPyData(*args, **kwargs) - - GetPyData = GetItemPyData - def GetItemTextColour(*args, **kwargs): - """GetItemTextColour(self, TreeItemId item) -> Colour""" - return _controls.TreeCtrl_GetItemTextColour(*args, **kwargs) - - def GetItemBackgroundColour(*args, **kwargs): - """GetItemBackgroundColour(self, TreeItemId item) -> Colour""" - return _controls.TreeCtrl_GetItemBackgroundColour(*args, **kwargs) - - def GetItemFont(*args, **kwargs): - """GetItemFont(self, TreeItemId item) -> Font""" - return _controls.TreeCtrl_GetItemFont(*args, **kwargs) - - def SetItemText(*args, **kwargs): - """SetItemText(self, TreeItemId item, String text)""" - return _controls.TreeCtrl_SetItemText(*args, **kwargs) - - def SetItemImage(*args, **kwargs): - """SetItemImage(self, TreeItemId item, int image, int which=TreeItemIcon_Normal)""" - return _controls.TreeCtrl_SetItemImage(*args, **kwargs) - - def SetItemData(*args, **kwargs): - """SetItemData(self, TreeItemId item, TreeItemData data)""" - return _controls.TreeCtrl_SetItemData(*args, **kwargs) - - def SetItemPyData(*args, **kwargs): - """SetItemPyData(self, TreeItemId item, PyObject obj)""" - return _controls.TreeCtrl_SetItemPyData(*args, **kwargs) - - SetPyData = SetItemPyData - def SetItemHasChildren(*args, **kwargs): - """SetItemHasChildren(self, TreeItemId item, bool has=True)""" - return _controls.TreeCtrl_SetItemHasChildren(*args, **kwargs) - - def SetItemBold(*args, **kwargs): - """SetItemBold(self, TreeItemId item, bool bold=True)""" - return _controls.TreeCtrl_SetItemBold(*args, **kwargs) - - def SetItemTextColour(*args, **kwargs): - """SetItemTextColour(self, TreeItemId item, Colour col)""" - return _controls.TreeCtrl_SetItemTextColour(*args, **kwargs) - - def SetItemBackgroundColour(*args, **kwargs): - """SetItemBackgroundColour(self, TreeItemId item, Colour col)""" - return _controls.TreeCtrl_SetItemBackgroundColour(*args, **kwargs) - - def SetItemFont(*args, **kwargs): - """SetItemFont(self, TreeItemId item, Font font)""" - return _controls.TreeCtrl_SetItemFont(*args, **kwargs) - - def IsVisible(*args, **kwargs): - """IsVisible(self, TreeItemId item) -> bool""" - return _controls.TreeCtrl_IsVisible(*args, **kwargs) - - def ItemHasChildren(*args, **kwargs): - """ItemHasChildren(self, TreeItemId item) -> bool""" - return _controls.TreeCtrl_ItemHasChildren(*args, **kwargs) - - def IsExpanded(*args, **kwargs): - """IsExpanded(self, TreeItemId item) -> bool""" - return _controls.TreeCtrl_IsExpanded(*args, **kwargs) - - def IsSelected(*args, **kwargs): - """IsSelected(self, TreeItemId item) -> bool""" - return _controls.TreeCtrl_IsSelected(*args, **kwargs) - - def IsBold(*args, **kwargs): - """IsBold(self, TreeItemId item) -> bool""" - return _controls.TreeCtrl_IsBold(*args, **kwargs) - - def GetChildrenCount(*args, **kwargs): - """GetChildrenCount(self, TreeItemId item, bool recursively=True) -> size_t""" - return _controls.TreeCtrl_GetChildrenCount(*args, **kwargs) - - def GetRootItem(*args, **kwargs): - """GetRootItem(self) -> TreeItemId""" - return _controls.TreeCtrl_GetRootItem(*args, **kwargs) - - def GetSelection(*args, **kwargs): - """GetSelection(self) -> TreeItemId""" - return _controls.TreeCtrl_GetSelection(*args, **kwargs) - - def GetSelections(*args, **kwargs): - """GetSelections(self) -> PyObject""" - return _controls.TreeCtrl_GetSelections(*args, **kwargs) - - def GetItemParent(*args, **kwargs): - """GetItemParent(self, TreeItemId item) -> TreeItemId""" - return _controls.TreeCtrl_GetItemParent(*args, **kwargs) - - def GetFirstChild(*args, **kwargs): - """GetFirstChild(self, TreeItemId item) -> PyObject""" - return _controls.TreeCtrl_GetFirstChild(*args, **kwargs) - - def GetNextChild(*args, **kwargs): - """GetNextChild(self, TreeItemId item, void cookie) -> PyObject""" - return _controls.TreeCtrl_GetNextChild(*args, **kwargs) - - def GetLastChild(*args, **kwargs): - """GetLastChild(self, TreeItemId item) -> TreeItemId""" - return _controls.TreeCtrl_GetLastChild(*args, **kwargs) - - def GetNextSibling(*args, **kwargs): - """GetNextSibling(self, TreeItemId item) -> TreeItemId""" - return _controls.TreeCtrl_GetNextSibling(*args, **kwargs) - - def GetPrevSibling(*args, **kwargs): - """GetPrevSibling(self, TreeItemId item) -> TreeItemId""" - return _controls.TreeCtrl_GetPrevSibling(*args, **kwargs) - - def GetFirstVisibleItem(*args, **kwargs): - """GetFirstVisibleItem(self) -> TreeItemId""" - return _controls.TreeCtrl_GetFirstVisibleItem(*args, **kwargs) - - def GetNextVisible(*args, **kwargs): - """GetNextVisible(self, TreeItemId item) -> TreeItemId""" - return _controls.TreeCtrl_GetNextVisible(*args, **kwargs) - - def GetPrevVisible(*args, **kwargs): - """GetPrevVisible(self, TreeItemId item) -> TreeItemId""" - return _controls.TreeCtrl_GetPrevVisible(*args, **kwargs) - - def AddRoot(*args, **kwargs): - """AddRoot(self, String text, int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId""" - return _controls.TreeCtrl_AddRoot(*args, **kwargs) - - def PrependItem(*args, **kwargs): - """ - PrependItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1, - TreeItemData data=None) -> TreeItemId - """ - return _controls.TreeCtrl_PrependItem(*args, **kwargs) - - def InsertItem(*args, **kwargs): - """ - InsertItem(self, TreeItemId parent, TreeItemId idPrevious, String text, - int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId - """ - return _controls.TreeCtrl_InsertItem(*args, **kwargs) - - def InsertItemBefore(*args, **kwargs): - """ - InsertItemBefore(self, TreeItemId parent, size_t index, String text, int image=-1, - int selectedImage=-1, TreeItemData data=None) -> TreeItemId - """ - return _controls.TreeCtrl_InsertItemBefore(*args, **kwargs) - - def AppendItem(*args, **kwargs): - """ - AppendItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1, - TreeItemData data=None) -> TreeItemId - """ - return _controls.TreeCtrl_AppendItem(*args, **kwargs) - - def Delete(*args, **kwargs): - """Delete(self, TreeItemId item)""" - return _controls.TreeCtrl_Delete(*args, **kwargs) - - def DeleteChildren(*args, **kwargs): - """DeleteChildren(self, TreeItemId item)""" - return _controls.TreeCtrl_DeleteChildren(*args, **kwargs) - - def DeleteAllItems(*args, **kwargs): - """DeleteAllItems(self)""" - return _controls.TreeCtrl_DeleteAllItems(*args, **kwargs) - - def Expand(*args, **kwargs): - """Expand(self, TreeItemId item)""" - return _controls.TreeCtrl_Expand(*args, **kwargs) - - def Collapse(*args, **kwargs): - """Collapse(self, TreeItemId item)""" - return _controls.TreeCtrl_Collapse(*args, **kwargs) - - def CollapseAndReset(*args, **kwargs): - """CollapseAndReset(self, TreeItemId item)""" - return _controls.TreeCtrl_CollapseAndReset(*args, **kwargs) - - def Toggle(*args, **kwargs): - """Toggle(self, TreeItemId item)""" - return _controls.TreeCtrl_Toggle(*args, **kwargs) - - def Unselect(*args, **kwargs): - """Unselect(self)""" - return _controls.TreeCtrl_Unselect(*args, **kwargs) - - def UnselectItem(*args, **kwargs): - """UnselectItem(self, TreeItemId item)""" - return _controls.TreeCtrl_UnselectItem(*args, **kwargs) - - def UnselectAll(*args, **kwargs): - """UnselectAll(self)""" - return _controls.TreeCtrl_UnselectAll(*args, **kwargs) - - def SelectItem(*args, **kwargs): - """SelectItem(self, TreeItemId item, bool select=True)""" - return _controls.TreeCtrl_SelectItem(*args, **kwargs) - - def ToggleItemSelection(*args, **kwargs): - """ToggleItemSelection(self, TreeItemId item)""" - return _controls.TreeCtrl_ToggleItemSelection(*args, **kwargs) - - def EnsureVisible(*args, **kwargs): - """EnsureVisible(self, TreeItemId item)""" - return _controls.TreeCtrl_EnsureVisible(*args, **kwargs) - - def ScrollTo(*args, **kwargs): - """ScrollTo(self, TreeItemId item)""" - return _controls.TreeCtrl_ScrollTo(*args, **kwargs) - - def EditLabel(*args, **kwargs): - """EditLabel(self, TreeItemId item)""" - return _controls.TreeCtrl_EditLabel(*args, **kwargs) - - def GetEditControl(*args, **kwargs): - """GetEditControl(self) -> TextCtrl""" - return _controls.TreeCtrl_GetEditControl(*args, **kwargs) - - def SortChildren(*args, **kwargs): - """SortChildren(self, TreeItemId item)""" - return _controls.TreeCtrl_SortChildren(*args, **kwargs) - - def HitTest(*args, **kwargs): - """ - HitTest(Point point) -> (item, where) - - Determine which item (if any) belongs the given point. The - coordinates specified are relative to the client area of tree ctrl - and the where return value is set to a bitmask of wxTREE_HITTEST_xxx - constants. - - """ - return _controls.TreeCtrl_HitTest(*args, **kwargs) - - def GetBoundingRect(*args, **kwargs): - """GetBoundingRect(self, TreeItemId item, bool textOnly=False) -> PyObject""" - return _controls.TreeCtrl_GetBoundingRect(*args, **kwargs) - - def GetClassDefaultAttributes(*args, **kwargs): - """ - TreeCtrl.GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes - - Get the default attributes for this class. This is useful if - you want to use the same font or colour in your own control as - in a standard control -- which is a much better idea than hard - coding specific colours or fonts which might look completely out - of place on the users system, especially if it uses themes. - - The variant parameter is only relevant under Mac currently and is - ignore under other platforms. Under Mac, it will change the size of the - returned font. See SetWindowVariant for more about this. - """ - return _controls.TreeCtrl_GetClassDefaultAttributes(*args, **kwargs) - - GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) - -class TreeCtrlPtr(TreeCtrl): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = TreeCtrl -_controls.TreeCtrl_swigregister(TreeCtrlPtr) - -def PreTreeCtrl(*args, **kwargs): - """PreTreeCtrl() -> TreeCtrl""" - val = _controls.new_PreTreeCtrl(*args, **kwargs) - val.thisown = 1 - return val - -def TreeCtrl_GetClassDefaultAttributes(*args, **kwargs): - """ - TreeCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes - - Get the default attributes for this class. This is useful if - you want to use the same font or colour in your own control as - in a standard control -- which is a much better idea than hard - coding specific colours or fonts which might look completely out - of place on the users system, especially if it uses themes. - - The variant parameter is only relevant under Mac currently and is - ignore under other platforms. Under Mac, it will change the size of the - returned font. See SetWindowVariant for more about this. - """ - return _controls.TreeCtrl_GetClassDefaultAttributes(*args, **kwargs) - -#--------------------------------------------------------------------------- - -DIRCTRL_DIR_ONLY = _controls.DIRCTRL_DIR_ONLY -DIRCTRL_SELECT_FIRST = _controls.DIRCTRL_SELECT_FIRST -DIRCTRL_SHOW_FILTERS = _controls.DIRCTRL_SHOW_FILTERS -DIRCTRL_3D_INTERNAL = _controls.DIRCTRL_3D_INTERNAL -DIRCTRL_EDIT_LABELS = _controls.DIRCTRL_EDIT_LABELS -class GenericDirCtrl(core.Control): - def __repr__(self): - return "<%s.%s; proxy of C++ wxGenericDirCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr, - Point pos=DefaultPosition, Size size=DefaultSize, - long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER, - String filter=EmptyString, - int defaultFilter=0, String name=TreeCtrlNameStr) -> GenericDirCtrl - """ - newobj = _controls.new_GenericDirCtrl(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr, - Point pos=DefaultPosition, Size size=DefaultSize, - long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER, - String filter=EmptyString, - int defaultFilter=0, String name=TreeCtrlNameStr) -> bool - """ - return _controls.GenericDirCtrl_Create(*args, **kwargs) - - def ExpandPath(*args, **kwargs): - """ExpandPath(self, String path) -> bool""" - return _controls.GenericDirCtrl_ExpandPath(*args, **kwargs) - - def GetDefaultPath(*args, **kwargs): - """GetDefaultPath(self) -> String""" - return _controls.GenericDirCtrl_GetDefaultPath(*args, **kwargs) - - def SetDefaultPath(*args, **kwargs): - """SetDefaultPath(self, String path)""" - return _controls.GenericDirCtrl_SetDefaultPath(*args, **kwargs) - - def GetPath(*args, **kwargs): - """GetPath(self) -> String""" - return _controls.GenericDirCtrl_GetPath(*args, **kwargs) - - def GetFilePath(*args, **kwargs): - """GetFilePath(self) -> String""" - return _controls.GenericDirCtrl_GetFilePath(*args, **kwargs) - - def SetPath(*args, **kwargs): - """SetPath(self, String path)""" - return _controls.GenericDirCtrl_SetPath(*args, **kwargs) - - def ShowHidden(*args, **kwargs): - """ShowHidden(self, bool show)""" - return _controls.GenericDirCtrl_ShowHidden(*args, **kwargs) - - def GetShowHidden(*args, **kwargs): - """GetShowHidden(self) -> bool""" - return _controls.GenericDirCtrl_GetShowHidden(*args, **kwargs) - - def GetFilter(*args, **kwargs): - """GetFilter(self) -> String""" - return _controls.GenericDirCtrl_GetFilter(*args, **kwargs) - - def SetFilter(*args, **kwargs): - """SetFilter(self, String filter)""" - return _controls.GenericDirCtrl_SetFilter(*args, **kwargs) - - def GetFilterIndex(*args, **kwargs): - """GetFilterIndex(self) -> int""" - return _controls.GenericDirCtrl_GetFilterIndex(*args, **kwargs) - - def SetFilterIndex(*args, **kwargs): - """SetFilterIndex(self, int n)""" - return _controls.GenericDirCtrl_SetFilterIndex(*args, **kwargs) - - def GetRootId(*args, **kwargs): - """GetRootId(self) -> TreeItemId""" - return _controls.GenericDirCtrl_GetRootId(*args, **kwargs) - - def GetTreeCtrl(*args, **kwargs): - """GetTreeCtrl(self) -> TreeCtrl""" - return _controls.GenericDirCtrl_GetTreeCtrl(*args, **kwargs) - - def GetFilterListCtrl(*args, **kwargs): - """GetFilterListCtrl(self) -> DirFilterListCtrl""" - return _controls.GenericDirCtrl_GetFilterListCtrl(*args, **kwargs) - - def FindChild(*args, **kwargs): - """ - FindChild(wxTreeItemId parentId, wxString path) -> (item, done) - - Find the child that matches the first part of 'path'. E.g. if a child path is - "/usr" and 'path' is "/usr/include" then the child for /usr is returned. - If the path string has been used (we're at the leaf), done is set to True - - """ - return _controls.GenericDirCtrl_FindChild(*args, **kwargs) - - def DoResize(*args, **kwargs): - """DoResize(self)""" - return _controls.GenericDirCtrl_DoResize(*args, **kwargs) - - def ReCreateTree(*args, **kwargs): - """ReCreateTree(self)""" - return _controls.GenericDirCtrl_ReCreateTree(*args, **kwargs) - - -class GenericDirCtrlPtr(GenericDirCtrl): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = GenericDirCtrl -_controls.GenericDirCtrl_swigregister(GenericDirCtrlPtr) -DirDialogDefaultFolderStr = cvar.DirDialogDefaultFolderStr - -def PreGenericDirCtrl(*args, **kwargs): - """PreGenericDirCtrl() -> GenericDirCtrl""" - val = _controls.new_PreGenericDirCtrl(*args, **kwargs) - val.thisown = 1 - return val - -class DirFilterListCtrl(Choice): - def __repr__(self): - return "<%s.%s; proxy of C++ wxDirFilterListCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0) -> DirFilterListCtrl - """ - newobj = _controls.new_DirFilterListCtrl(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0) -> bool - """ - return _controls.DirFilterListCtrl_Create(*args, **kwargs) - - def FillFilterList(*args, **kwargs): - """FillFilterList(self, String filter, int defaultFilter)""" - return _controls.DirFilterListCtrl_FillFilterList(*args, **kwargs) - - -class DirFilterListCtrlPtr(DirFilterListCtrl): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = DirFilterListCtrl -_controls.DirFilterListCtrl_swigregister(DirFilterListCtrlPtr) - -def PreDirFilterListCtrl(*args, **kwargs): - """PreDirFilterListCtrl() -> DirFilterListCtrl""" - val = _controls.new_PreDirFilterListCtrl(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -class PyControl(core.Control): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyControl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - long style=0, Validator validator=DefaultValidator, - String name=ControlNameStr) -> PyControl - """ - newobj = _controls.new_PyControl(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self); self._setCallbackInfo(self, PyControl) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _controls.PyControl__setCallbackInfo(*args, **kwargs) - - def base_DoMoveWindow(*args, **kwargs): - """base_DoMoveWindow(self, int x, int y, int width, int height)""" - return _controls.PyControl_base_DoMoveWindow(*args, **kwargs) - - def base_DoSetSize(*args, **kwargs): - """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)""" - return _controls.PyControl_base_DoSetSize(*args, **kwargs) - - def base_DoSetClientSize(*args, **kwargs): - """base_DoSetClientSize(self, int width, int height)""" - return _controls.PyControl_base_DoSetClientSize(*args, **kwargs) - - def base_DoSetVirtualSize(*args, **kwargs): - """base_DoSetVirtualSize(self, int x, int y)""" - return _controls.PyControl_base_DoSetVirtualSize(*args, **kwargs) - - def base_DoGetSize(*args, **kwargs): - """base_DoGetSize() -> (width, height)""" - return _controls.PyControl_base_DoGetSize(*args, **kwargs) - - def base_DoGetClientSize(*args, **kwargs): - """base_DoGetClientSize() -> (width, height)""" - return _controls.PyControl_base_DoGetClientSize(*args, **kwargs) - - def base_DoGetPosition(*args, **kwargs): - """base_DoGetPosition() -> (x,y)""" - return _controls.PyControl_base_DoGetPosition(*args, **kwargs) - - def base_DoGetVirtualSize(*args, **kwargs): - """base_DoGetVirtualSize(self) -> Size""" - return _controls.PyControl_base_DoGetVirtualSize(*args, **kwargs) - - def base_DoGetBestSize(*args, **kwargs): - """base_DoGetBestSize(self) -> Size""" - return _controls.PyControl_base_DoGetBestSize(*args, **kwargs) - - def base_InitDialog(*args, **kwargs): - """base_InitDialog(self)""" - return _controls.PyControl_base_InitDialog(*args, **kwargs) - - def base_TransferDataToWindow(*args, **kwargs): - """base_TransferDataToWindow(self) -> bool""" - return _controls.PyControl_base_TransferDataToWindow(*args, **kwargs) - - def base_TransferDataFromWindow(*args, **kwargs): - """base_TransferDataFromWindow(self) -> bool""" - return _controls.PyControl_base_TransferDataFromWindow(*args, **kwargs) - - def base_Validate(*args, **kwargs): - """base_Validate(self) -> bool""" - return _controls.PyControl_base_Validate(*args, **kwargs) - - def base_AcceptsFocus(*args, **kwargs): - """base_AcceptsFocus(self) -> bool""" - return _controls.PyControl_base_AcceptsFocus(*args, **kwargs) - - def base_AcceptsFocusFromKeyboard(*args, **kwargs): - """base_AcceptsFocusFromKeyboard(self) -> bool""" - return _controls.PyControl_base_AcceptsFocusFromKeyboard(*args, **kwargs) - - def base_GetMaxSize(*args, **kwargs): - """base_GetMaxSize(self) -> Size""" - return _controls.PyControl_base_GetMaxSize(*args, **kwargs) - - def base_AddChild(*args, **kwargs): - """base_AddChild(self, Window child)""" - return _controls.PyControl_base_AddChild(*args, **kwargs) - - def base_RemoveChild(*args, **kwargs): - """base_RemoveChild(self, Window child)""" - return _controls.PyControl_base_RemoveChild(*args, **kwargs) - - def base_ShouldInheritColours(*args, **kwargs): - """base_ShouldInheritColours(self) -> bool""" - return _controls.PyControl_base_ShouldInheritColours(*args, **kwargs) - - def base_ApplyParentThemeBackground(*args, **kwargs): - """base_ApplyParentThemeBackground(self, Colour c)""" - return _controls.PyControl_base_ApplyParentThemeBackground(*args, **kwargs) - - -class PyControlPtr(PyControl): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PyControl -_controls.PyControl_swigregister(PyControlPtr) - -def PrePyControl(*args, **kwargs): - """PrePyControl() -> PyControl""" - val = _controls.new_PrePyControl(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -FRAME_EX_CONTEXTHELP = _controls.FRAME_EX_CONTEXTHELP -DIALOG_EX_CONTEXTHELP = _controls.DIALOG_EX_CONTEXTHELP -wxEVT_HELP = _controls.wxEVT_HELP -wxEVT_DETAILED_HELP = _controls.wxEVT_DETAILED_HELP -EVT_HELP = wx.PyEventBinder( wxEVT_HELP, 1) -EVT_HELP_RANGE = wx.PyEventBinder( wxEVT_HELP, 2) -EVT_DETAILED_HELP = wx.PyEventBinder( wxEVT_DETAILED_HELP, 1) -EVT_DETAILED_HELP_RANGE = wx.PyEventBinder( wxEVT_DETAILED_HELP, 2) - -class HelpEvent(core.CommandEvent): - """ - A help event is sent when the user has requested - context-sensitive help. This can either be caused by the - application requesting context-sensitive help mode via - wx.ContextHelp, or (on MS Windows) by the system generating a - WM_HELP message when the user pressed F1 or clicked on the query - button in a dialog caption. - - A help event is sent to the window that the user clicked on, and - is propagated up the window hierarchy until the event is - processed or there are no more event handlers. The application - should call event.GetId to check the identity of the clicked-on - window, and then either show some suitable help or call - event.Skip if the identifier is unrecognised. Calling Skip is - important because it allows wxWindows to generate further events - for ancestors of the clicked-on window. Otherwise it would be - impossible to show help for container windows, since processing - would stop after the first window found. - - Events - EVT_HELP Sent when the user has requested context- - sensitive help. - EVT_HELP_RANGE Allows to catch EVT_HELP for a range of IDs - - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxHelpEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> HelpEvent""" - newobj = _controls.new_HelpEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetPosition(*args, **kwargs): - """ - GetPosition(self) -> Point - - Returns the left-click position of the mouse, in screen - coordinates. This allows the application to position the help - appropriately. - """ - return _controls.HelpEvent_GetPosition(*args, **kwargs) - - def SetPosition(*args, **kwargs): - """ - SetPosition(self, Point pos) - - Sets the left-click position of the mouse, in screen coordinates. - """ - return _controls.HelpEvent_SetPosition(*args, **kwargs) - - def GetLink(*args, **kwargs): - """ - GetLink(self) -> String - - Get an optional link to further help - """ - return _controls.HelpEvent_GetLink(*args, **kwargs) - - def SetLink(*args, **kwargs): - """ - SetLink(self, String link) - - Set an optional link to further help - """ - return _controls.HelpEvent_SetLink(*args, **kwargs) - - def GetTarget(*args, **kwargs): - """ - GetTarget(self) -> String - - Get an optional target to display help in. E.g. a window specification - """ - return _controls.HelpEvent_GetTarget(*args, **kwargs) - - def SetTarget(*args, **kwargs): - """ - SetTarget(self, String target) - - Set an optional target to display help in. E.g. a window specification - """ - return _controls.HelpEvent_SetTarget(*args, **kwargs) - - -class HelpEventPtr(HelpEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = HelpEvent -_controls.HelpEvent_swigregister(HelpEventPtr) - -class ContextHelp(core.Object): - """ - This class changes the cursor to a query and puts the application - into a 'context-sensitive help mode'. When the user left-clicks - on a window within the specified window, a EVT_HELP event is sent - to that control, and the application may respond to it by popping - up some help. - - There are a couple of ways to invoke this behaviour implicitly: - - * Use the wx.DIALOG_EX_CONTEXTHELP extended style for a - dialog (Windows only). This will put a question mark in the - titlebar, and Windows will put the application into - context-sensitive help mode automatically, with further - programming. - - * Create a wx.ContextHelpButton, whose predefined behaviour - is to create a context help object. Normally you will write - your application so that this button is only added to a - dialog for non-Windows platforms (use - wx.DIALOG_EX_CONTEXTHELP on Windows). - - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxContextHelp instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window window=None, bool doNow=True) -> ContextHelp - - Constructs a context help object, calling BeginContextHelp if - doNow is true (the default). - - If window is None, the top window is used. - """ - newobj = _controls.new_ContextHelp(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_controls.delete_ContextHelp): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def BeginContextHelp(*args, **kwargs): - """ - BeginContextHelp(self, Window window=None) -> bool - - Puts the application into context-sensitive help mode. window is - the window which will be used to catch events; if NULL, the top - window will be used. - - Returns true if the application was successfully put into - context-sensitive help mode. This function only returns when the - event loop has finished. - """ - return _controls.ContextHelp_BeginContextHelp(*args, **kwargs) - - def EndContextHelp(*args, **kwargs): - """ - EndContextHelp(self) -> bool - - Ends context-sensitive help mode. Not normally called by the - application. - """ - return _controls.ContextHelp_EndContextHelp(*args, **kwargs) - - -class ContextHelpPtr(ContextHelp): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ContextHelp -_controls.ContextHelp_swigregister(ContextHelpPtr) - -class ContextHelpButton(BitmapButton): - """ - Instances of this class may be used to add a question mark button - that when pressed, puts the application into context-help - mode. It does this by creating a wx.ContextHelp object which - itself generates a EVT_HELP event when the user clicks on a - window. - - On Windows, you may add a question-mark icon to a dialog by use - of the wx.DIALOG_EX_CONTEXTHELP extra style, but on other - platforms you will have to add a button explicitly, usually next - to OK, Cancel or similar buttons. - - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxContextHelpButton instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id=ID_CONTEXT_HELP, Point pos=DefaultPosition, - Size size=DefaultSize, long style=BU_AUTODRAW) -> ContextHelpButton - - Constructor, creating and showing a context help button. - """ - newobj = _controls.new_ContextHelpButton(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - -class ContextHelpButtonPtr(ContextHelpButton): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ContextHelpButton -_controls.ContextHelpButton_swigregister(ContextHelpButtonPtr) - -class HelpProvider(object): - """ - wx.HelpProvider is an abstract class used by a program - implementing context-sensitive help to show the help text for the - given window. - - The current help provider must be explicitly set by the - application using wx.HelpProvider.Set(). - """ - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxHelpProvider instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def Set(*args, **kwargs): - """ - HelpProvider.Set(HelpProvider helpProvider) -> HelpProvider - - Sset the current, application-wide help provider. Returns the - previous one. Unlike some other classes, the help provider is - not created on demand. This must be explicitly done by the - application. - """ - return _controls.HelpProvider_Set(*args, **kwargs) - - Set = staticmethod(Set) - def Get(*args, **kwargs): - """ - HelpProvider.Get() -> HelpProvider - - Return the current application-wide help provider. - """ - return _controls.HelpProvider_Get(*args, **kwargs) - - Get = staticmethod(Get) - def GetHelp(*args, **kwargs): - """ - GetHelp(self, Window window) -> String - - Gets the help string for this window. Its interpretation is - dependent on the help provider except that empty string always - means that no help is associated with the window. - """ - return _controls.HelpProvider_GetHelp(*args, **kwargs) - - def ShowHelp(*args, **kwargs): - """ - ShowHelp(self, Window window) -> bool - - Shows help for the given window. Uses GetHelp internally if - applicable. - - Returns true if it was done, or false if no help was available - for this window. - """ - return _controls.HelpProvider_ShowHelp(*args, **kwargs) - - def AddHelp(*args, **kwargs): - """ - AddHelp(self, Window window, String text) - - Associates the text with the given window. - """ - return _controls.HelpProvider_AddHelp(*args, **kwargs) - - def AddHelpById(*args, **kwargs): - """ - AddHelpById(self, int id, String text) - - This version associates the given text with all windows with this - id. May be used to set the same help string for all Cancel - buttons in the application, for example. - """ - return _controls.HelpProvider_AddHelpById(*args, **kwargs) - - def RemoveHelp(*args, **kwargs): - """ - RemoveHelp(self, Window window) - - Removes the association between the window pointer and the help - text. This is called by the wx.Window destructor. Without this, - the table of help strings will fill up and when window pointers - are reused, the wrong help string will be found. - """ - return _controls.HelpProvider_RemoveHelp(*args, **kwargs) - - def Destroy(*args, **kwargs): - """Destroy(self)""" - return _controls.HelpProvider_Destroy(*args, **kwargs) - - -class HelpProviderPtr(HelpProvider): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = HelpProvider -_controls.HelpProvider_swigregister(HelpProviderPtr) - -def HelpProvider_Set(*args, **kwargs): - """ - HelpProvider_Set(HelpProvider helpProvider) -> HelpProvider - - Sset the current, application-wide help provider. Returns the - previous one. Unlike some other classes, the help provider is - not created on demand. This must be explicitly done by the - application. - """ - return _controls.HelpProvider_Set(*args, **kwargs) - -def HelpProvider_Get(*args, **kwargs): - """ - HelpProvider_Get() -> HelpProvider - - Return the current application-wide help provider. - """ - return _controls.HelpProvider_Get(*args, **kwargs) - -class SimpleHelpProvider(HelpProvider): - """ - wx.SimpleHelpProvider is an implementation of wx.HelpProvider - which supports only plain text help strings, and shows the string - associated with the control (if any) in a tooltip. - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxSimpleHelpProvider instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self) -> SimpleHelpProvider - - wx.SimpleHelpProvider is an implementation of wx.HelpProvider - which supports only plain text help strings, and shows the string - associated with the control (if any) in a tooltip. - """ - newobj = _controls.new_SimpleHelpProvider(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class SimpleHelpProviderPtr(SimpleHelpProvider): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = SimpleHelpProvider -_controls.SimpleHelpProvider_swigregister(SimpleHelpProviderPtr) - -#--------------------------------------------------------------------------- - -class DragImage(core.Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxGenericDragImage instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Bitmap image, Cursor cursor=wxNullCursor) -> DragImage""" - newobj = _controls.new_DragImage(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_controls.delete_DragImage): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def SetBackingBitmap(*args, **kwargs): - """SetBackingBitmap(self, Bitmap bitmap)""" - return _controls.DragImage_SetBackingBitmap(*args, **kwargs) - - def BeginDrag(*args, **kwargs): - """ - BeginDrag(self, Point hotspot, Window window, bool fullScreen=False, - Rect rect=None) -> bool - """ - return _controls.DragImage_BeginDrag(*args, **kwargs) - - def BeginDragBounded(*args, **kwargs): - """BeginDragBounded(self, Point hotspot, Window window, Window boundingWindow) -> bool""" - return _controls.DragImage_BeginDragBounded(*args, **kwargs) - - def EndDrag(*args, **kwargs): - """EndDrag(self) -> bool""" - return _controls.DragImage_EndDrag(*args, **kwargs) - - def Move(*args, **kwargs): - """Move(self, Point pt) -> bool""" - return _controls.DragImage_Move(*args, **kwargs) - - def Show(*args, **kwargs): - """Show(self) -> bool""" - return _controls.DragImage_Show(*args, **kwargs) - - def Hide(*args, **kwargs): - """Hide(self) -> bool""" - return _controls.DragImage_Hide(*args, **kwargs) - - def GetImageRect(*args, **kwargs): - """GetImageRect(self, Point pos) -> Rect""" - return _controls.DragImage_GetImageRect(*args, **kwargs) - - def DoDrawImage(*args, **kwargs): - """DoDrawImage(self, DC dc, Point pos) -> bool""" - return _controls.DragImage_DoDrawImage(*args, **kwargs) - - def UpdateBackingFromWindow(*args, **kwargs): - """UpdateBackingFromWindow(self, DC windowDC, MemoryDC destDC, Rect sourceRect, Rect destRect) -> bool""" - return _controls.DragImage_UpdateBackingFromWindow(*args, **kwargs) - - def RedrawImage(*args, **kwargs): - """RedrawImage(self, Point oldPos, Point newPos, bool eraseOld, bool drawNew) -> bool""" - return _controls.DragImage_RedrawImage(*args, **kwargs) - - -class DragImagePtr(DragImage): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = DragImage -_controls.DragImage_swigregister(DragImagePtr) - -def DragIcon(*args, **kwargs): - """DragIcon(Icon image, Cursor cursor=wxNullCursor) -> DragImage""" - val = _controls.new_DragIcon(*args, **kwargs) - val.thisown = 1 - return val - -def DragString(*args, **kwargs): - """DragString(String str, Cursor cursor=wxNullCursor) -> DragImage""" - val = _controls.new_DragString(*args, **kwargs) - val.thisown = 1 - return val - -def DragTreeItem(*args, **kwargs): - """DragTreeItem(TreeCtrl treeCtrl, TreeItemId id) -> DragImage""" - val = _controls.new_DragTreeItem(*args, **kwargs) - val.thisown = 1 - return val - -def DragListItem(*args, **kwargs): - """DragListItem(ListCtrl listCtrl, long id) -> DragImage""" - val = _controls.new_DragListItem(*args, **kwargs) - val.thisown = 1 - return val - - diff --git a/wxPython/src/mac/controls_wrap.cpp b/wxPython/src/mac/controls_wrap.cpp deleted file mode 100644 index 20a3a705cf..0000000000 --- a/wxPython/src/mac/controls_wrap.cpp +++ /dev/null @@ -1,32269 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.22 - * - * This file is not intended to be easily readable and contains a number of - * coding conventions designed to improve portability and efficiency. Do not make - * changes to this file unless you know what you are doing--modify the SWIG - * interface file instead. - * ----------------------------------------------------------------------------- */ - -#define SWIGPYTHON -#define SWIG_NOINCLUDE - -#ifdef __cplusplus -template class SwigValueWrapper { - T *tt; -public: - SwigValueWrapper() : tt(0) { } - SwigValueWrapper(const SwigValueWrapper& rhs) : tt(new T(*rhs.tt)) { } - SwigValueWrapper(const T& t) : tt(new T(t)) { } - ~SwigValueWrapper() { delete tt; } - SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } - operator T&() const { return *tt; } - T *operator&() { return tt; } -private: - SwigValueWrapper& operator=(const SwigValueWrapper& rhs); -}; -#endif - - -#include "Python.h" - -/*************************************************************** -*- c -*- - * python/precommon.swg - * - * Rename all exported symbols from common.swg, to avoid symbol - * clashes if multiple interpreters are included - * - ************************************************************************/ - -#define SWIG_TypeRegister SWIG_Python_TypeRegister -#define SWIG_TypeCheck SWIG_Python_TypeCheck -#define SWIG_TypeCast SWIG_Python_TypeCast -#define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast -#define SWIG_TypeName SWIG_Python_TypeName -#define SWIG_TypeQuery SWIG_Python_TypeQuery -#define SWIG_TypeClientData SWIG_Python_TypeClientData -#define SWIG_PackData SWIG_Python_PackData -#define SWIG_UnpackData SWIG_Python_UnpackData - - -/*********************************************************************** - * common.swg for wxPython - * - * Include only the function prototypes and such from SWIG's common.swg, - * but not the runtime functions themselves. This helps keep the - * wrapper files clean of unnecessary stuff that is in the libpy.c file - * anyway. - * - ************************************************************************/ - -#include - -#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) -# if defined(_MSC_VER) || defined(__GNUC__) -# if defined(STATIC_LINKED) -# define SWIGEXPORT(a) a -# define SWIGIMPORT(a) extern a -# else -# define SWIGEXPORT(a) __declspec(dllexport) a -# define SWIGIMPORT(a) extern a -# endif -# else -# if defined(__BORLANDC__) -# define SWIGEXPORT(a) a _export -# define SWIGIMPORT(a) a _export -# else -# define SWIGEXPORT(a) a -# define SWIGIMPORT(a) a -# endif -# endif -#else -# define SWIGEXPORT(a) a -# define SWIGIMPORT(a) a -#endif - -#ifdef SWIG_GLOBAL -# define SWIGRUNTIME(a) SWIGEXPORT(a) -#else -# define SWIGRUNTIME(a) static a -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -typedef void *(*swig_converter_func)(void *); -typedef struct swig_type_info *(*swig_dycast_func)(void **); - -typedef struct swig_type_info { - const char *name; - swig_converter_func converter; - const char *str; - void *clientdata; - swig_dycast_func dcast; - struct swig_type_info *next; - struct swig_type_info *prev; -} swig_type_info; - - -SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); -SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); -SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); -SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); -SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); -SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); -SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); -SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); -SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); - - -#ifdef __cplusplus -} -#endif - -/*********************************************************************** - * pyrun.swg for wxPython - * - * Include only the function prototypes and such from SWIG's pyrun.swg, - * but not the runtime functions themselves. This helps keep the - * wrapper files clean of unnecessary stuff that is in the libpy.c file - * anyway. - * - ************************************************************************/ - -#include "Python.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define SWIG_PY_INT 1 -#define SWIG_PY_FLOAT 2 -#define SWIG_PY_STRING 3 -#define SWIG_PY_POINTER 4 -#define SWIG_PY_BINARY 5 - -/* Flags for pointer conversion */ - -#define SWIG_POINTER_EXCEPTION 0x1 -#define SWIG_POINTER_DISOWN 0x2 - -/* Exception handling in wrappers */ -#define SWIG_fail goto fail - -/* Constant information structure */ -typedef struct swig_const_info { - int type; - char *name; - long lvalue; - double dvalue; - void *pvalue; - swig_type_info **ptype; -} swig_const_info; - -/* Common SWIG API */ -#define SWIG_ConvertPtr(obj, pp, type, flags) \ - SWIG_Python_ConvertPtr(obj, pp, type, flags) -#define SWIG_NewPointerObj(p, type, flags) \ - SWIG_Python_NewPointerObj(p, type, flags) -#define SWIG_MustGetPtr(p, type, argnum, flags) \ - SWIG_Python_MustGetPtr(p, type, argnum, flags) - -/* Python-specific SWIG API */ -#define SWIG_newvarlink() \ - SWIG_Python_newvarlink() -#define SWIG_addvarlink(p, name, get_attr, set_attr) \ - SWIG_Python_addvarlink(p, name, get_attr, set_attr) -#define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ - SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) -#define SWIG_NewPackedObj(ptr, sz, type) \ - SWIG_Python_NewPackedObj(ptr, sz, type) -#define SWIG_InstallConstants(d, constants) \ - SWIG_Python_InstallConstants(d, constants) - -typedef double (*py_objasdbl_conv)(PyObject *obj); - -SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); -SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); -SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); -SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); -SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); -SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); -SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); -SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); - - -/* Contract support */ - -#define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else - -#ifdef __cplusplus -} -#endif - - -/* -------- TYPES TABLE (BEGIN) -------- */ - -#define SWIGTYPE_p_wxTextUrlEvent swig_types[0] -#define SWIGTYPE_p_wxBookCtrlEvent swig_types[1] -#define SWIGTYPE_p_wxSizer swig_types[2] -#define SWIGTYPE_p_wxCheckBox swig_types[3] -#define SWIGTYPE_p_wxPyTreeCtrl swig_types[4] -#define SWIGTYPE_p_wxEvent swig_types[5] -#define SWIGTYPE_p_wxGenericDirCtrl swig_types[6] -#define SWIGTYPE_p_bool swig_types[7] -#define SWIGTYPE_p_wxPyTreeItemData swig_types[8] -#define SWIGTYPE_p_wxItemContainer swig_types[9] -#define SWIGTYPE_p_wxPyListCtrl swig_types[10] -#define SWIGTYPE_p_wxDirFilterListCtrl swig_types[11] -#define SWIGTYPE_p_wxStaticLine swig_types[12] -#define SWIGTYPE_p_wxControl swig_types[13] -#define SWIGTYPE_p_wxPyControl swig_types[14] -#define SWIGTYPE_p_wxGauge swig_types[15] -#define SWIGTYPE_p_wxToolBarBase swig_types[16] -#define SWIGTYPE_p_wxFont swig_types[17] -#define SWIGTYPE_p_wxToggleButton swig_types[18] -#define SWIGTYPE_p_wxRadioButton swig_types[19] -#define SWIGTYPE_p_wxChoice swig_types[20] -#define SWIGTYPE_p_wxMemoryDC swig_types[21] -#define SWIGTYPE_p_wxListItemAttr swig_types[22] -#define SWIGTYPE_p_void swig_types[23] -#define SWIGTYPE_p_int swig_types[24] -#define SWIGTYPE_p_wxSize swig_types[25] -#define SWIGTYPE_p_wxDC swig_types[26] -#define SWIGTYPE_p_wxListView swig_types[27] -#define SWIGTYPE_p_wxIcon swig_types[28] -#define SWIGTYPE_p_wxVisualAttributes swig_types[29] -#define SWIGTYPE_p_wxTextCtrl swig_types[30] -#define SWIGTYPE_p_wxNotebook swig_types[31] -#define SWIGTYPE_p_wxNotifyEvent swig_types[32] -#define SWIGTYPE_p_wxArrayString swig_types[33] -#define SWIGTYPE_p_wxListbook swig_types[34] -#define SWIGTYPE_p_wxStaticBitmap swig_types[35] -#define SWIGTYPE_p_wxSlider swig_types[36] -#define SWIGTYPE_p_wxStaticBox swig_types[37] -#define SWIGTYPE_p_wxArrayInt swig_types[38] -#define SWIGTYPE_p_wxContextHelp swig_types[39] -#define SWIGTYPE_p_long swig_types[40] -#define SWIGTYPE_p_wxEvtHandler swig_types[41] -#define SWIGTYPE_p_wxListEvent swig_types[42] -#define SWIGTYPE_p_wxCheckListBox swig_types[43] -#define SWIGTYPE_p_wxListBox swig_types[44] -#define SWIGTYPE_p_wxBookCtrl swig_types[45] -#define SWIGTYPE_p_wxSpinButton swig_types[46] -#define SWIGTYPE_p_wxButton swig_types[47] -#define SWIGTYPE_p_wxBitmapButton swig_types[48] -#define SWIGTYPE_p_wxRect swig_types[49] -#define SWIGTYPE_p_wxContextHelpButton swig_types[50] -#define SWIGTYPE_p_wxRadioBox swig_types[51] -#define SWIGTYPE_p_wxScrollBar swig_types[52] -#define SWIGTYPE_p_char swig_types[53] -#define SWIGTYPE_p_wxTreeItemId swig_types[54] -#define SWIGTYPE_p_wxComboBox swig_types[55] -#define SWIGTYPE_p_wxHelpEvent swig_types[56] -#define SWIGTYPE_p_wxListItem swig_types[57] -#define SWIGTYPE_p_wxNotebookSizer swig_types[58] -#define SWIGTYPE_p_wxSpinEvent swig_types[59] -#define SWIGTYPE_p_wxGenericDragImage swig_types[60] -#define SWIGTYPE_p_wxSpinCtrl swig_types[61] -#define SWIGTYPE_p_wxImageList swig_types[62] -#define SWIGTYPE_p_wxHelpProvider swig_types[63] -#define SWIGTYPE_p_wxTextAttr swig_types[64] -#define SWIGTYPE_p_wxSimpleHelpProvider swig_types[65] -#define SWIGTYPE_p_wxPoint swig_types[66] -#define SWIGTYPE_p_wxListbookEvent swig_types[67] -#define SWIGTYPE_p_wxNotebookEvent swig_types[68] -#define SWIGTYPE_p_wxObject swig_types[69] -#define SWIGTYPE_p_wxCursor swig_types[70] -#define SWIGTYPE_p_wxKeyEvent swig_types[71] -#define SWIGTYPE_p_wxWindow swig_types[72] -#define SWIGTYPE_p_wxString swig_types[73] -#define SWIGTYPE_p_wxBitmap swig_types[74] -#define SWIGTYPE_p_wxTreeEvent swig_types[75] -#define SWIGTYPE_p_wxMouseEvent swig_types[76] -#define SWIGTYPE_p_wxCommandEvent swig_types[77] -#define SWIGTYPE_p_wxStaticText swig_types[78] -#define SWIGTYPE_p_wxControlWithItems swig_types[79] -#define SWIGTYPE_p_wxToolBarToolBase swig_types[80] -#define SWIGTYPE_p_wxColour swig_types[81] -#define SWIGTYPE_p_wxToolBar swig_types[82] -#define SWIGTYPE_p_wxBookCtrlSizer swig_types[83] -#define SWIGTYPE_p_wxValidator swig_types[84] -static swig_type_info *swig_types[86]; - -/* -------- TYPES TABLE (END) -------- */ - - -/*----------------------------------------------- - @(target):= _controls.so - ------------------------------------------------*/ -#define SWIG_init init_controls - -#define SWIG_name "_controls" - -/* Auxiliar swig macros */ - -#ifdef __cplusplus -#define SWIGSTATICINLINE(a) static inline a -#define SWIGSTATIC(a) static a -#define swig_new_array(type, size) (new type[(size)]) -#define swig_delete_array(cptr) delete[] cptr -#define swig_const_cast(type,a) const_cast(a) -#define swig_static_cast(type,a) static_cast(a) -#define swig_reinterpret_cast(type,a) reinterpret_cast(a) - -#ifdef HAVE_NUMERIC_CAST -#define swig_numeric_cast(type,a) numeric_cast(a) -#else -#define swig_numeric_cast(type,a) static_cast(a) -#endif - -#else /* C case */ - -#define SWIGSTATICINLINE(a) static a -#define SWIGSTATIC(a) static a -#define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type))) -#define swig_delete_array(cptr) free((char*)cptr) -#define swig_const_cast(type,a) (type)(a) -#define swig_static_cast(type,a) (type)(a) -#define swig_reinterpret_cast(type,a) (type)(a) -#define swig_numeric_cast(type,a) (type)(a) - -#endif /* __cplusplus */ - - -#define SWIG_FromSignedChar PyInt_FromLong -#define SWIG_FromUnsignedChar PyInt_FromLong -#define SWIG_FromShort PyInt_FromLong -#define SWIG_FromUnsignedShort PyInt_FromLong -#define SWIG_FromInt PyInt_FromLong -#define SWIG_FromLong PyInt_FromLong -#define SWIG_FromFloat PyFloat_FromDouble -#define SWIG_FromDouble PyFloat_FromDouble -#define SWIG_FromFloat PyFloat_FromDouble -#define SWIG_FromDouble PyFloat_FromDouble - - -#include "wx/wxPython/wxPython.h" -#include "wx/wxPython/pyclasses.h" - - static const wxString wxPyPanelNameStr(wxPanelNameStr); - static const wxString wxPyEmptyString(wxEmptyString); - static const wxString wxPyControlNameStr(wxControlNameStr); - - const wxArrayString wxPyEmptyStringArray; - - static const wxString wxPyButtonNameStr(wxButtonNameStr); - -#include - - -SWIGSTATICINLINE(long) -SWIG_CheckLongInRange(long value, const char* type, - long min_value, long max_value) -{ - if (!PyErr_Occurred()) { - if (value < min_value) { - PyObject *err = - PyString_FromFormat("value %ld is less than '%s' minimum %ld", - value, type, min_value); - - PyErr_SetObject(PyExc_OverflowError, err); - Py_DECREF(err); - } else if (value > max_value) { - PyObject *err = - PyString_FromFormat("value %ld is greater than '%s' maximum %ld", - value, type, max_value); - PyErr_SetObject(PyExc_OverflowError, err); - Py_DECREF(err); - } - } - return value; -} - - -SWIGSTATICINLINE(long) -SWIG_AsLong(PyObject * obj) -{ - if (PyNumber_Check(obj)) - return PyInt_AsLong(obj); - else { - PyObject* errmsg = PyString_FromFormat("Expected number, got %s", - obj->ob_type->tp_name); - PyErr_SetObject(PyExc_TypeError, errmsg); - Py_DECREF(errmsg); - return 0; - } -} - - -#if INT_MAX != LONG_MAX -SWIGSTATICINLINE(int) -SWIG_AsInt(PyObject *obj) -{ - return swig_numeric_cast(int, - SWIG_CheckLongInRange(SWIG_AsLong(obj), - "int", INT_MIN, INT_MAX)); -} -#else -#define SWIG_AsInt SWIG_AsLong -#endif - - -SWIGSTATICINLINE(int) -SWIG_CheckInt(PyObject* obj) -{ - SWIG_AsInt(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - - -SWIGSTATICINLINE(int) -SWIG_CheckLong(PyObject* obj) -{ - SWIG_AsLong(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - - static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr); - -SWIGSTATICINLINE(bool) -SWIG_AsBool(PyObject *obj) -{ - return PyObject_IsTrue(obj) ? true : false; -} - - -SWIGSTATICINLINE(int) -SWIG_CheckBool(PyObject* obj) -{ - SWIG_AsBool(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - - static const wxString wxPyChoiceNameStr(wxChoiceNameStr); - static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr); - static const wxString wxPyGaugeNameStr(wxGaugeNameStr); - static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr); - static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr); - static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr); - -#include - - - static const wxString wxPyListBoxNameStr(wxListBoxNameStr); -void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData){ - if (clientData) { - wxPyClientData* data = new wxPyClientData(clientData); - self->Insert(item, pos, data); - } else - self->Insert(item, pos); - } -PyObject *wxListBox_GetSelections(wxListBox *self){ - wxArrayInt lst; - self->GetSelections(lst); - PyObject *tup = PyTuple_New(lst.GetCount()); - for(size_t i=0; iGetWindowStyle() & wxLB_OWNERDRAW) - self->GetItem(item)->SetTextColour(c); - #endif - } -void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){ - #ifdef __WXMSW__ - if (self->GetWindowStyle() & wxLB_OWNERDRAW) - self->GetItem(item)->SetBackgroundColour(c); - #endif - } -void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){ - #ifdef __WXMSW__ - if (self->GetWindowStyle() & wxLB_OWNERDRAW) - self->GetItem(item)->SetFont(f); - #endif - } - static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr); - -static PyObject* t_output_helper(PyObject* target, PyObject* o) { - PyObject* o2; - PyObject* o3; - - if (!target) { - target = o; - } else if (target == Py_None) { - Py_DECREF(Py_None); - target = o; - } else { - if (!PyTuple_Check(target)) { - o2 = target; - target = PyTuple_New(1); - PyTuple_SetItem(target, 0, o2); - } - o3 = PyTuple_New(1); - PyTuple_SetItem(o3, 0, o); - - o2 = target; - target = PySequence_Concat(o2, o3); - Py_DECREF(o2); - Py_DECREF(o3); - } - return target; -} - - -SWIGSTATICINLINE(unsigned long) -SWIG_AsUnsignedLong(PyObject * obj) -{ - if (PyLong_Check(obj)) { - return PyLong_AsUnsignedLong(obj); - } else { - long i = SWIG_AsLong(obj); - if ( !PyErr_Occurred() && (i < 0)) { - PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); - } - return i; - } -} - - -SWIGSTATICINLINE(int) -SWIG_CheckUnsignedLong(PyObject* obj) -{ - SWIG_AsUnsignedLong(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - -void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){ - self->AppendText(text); - } -wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){ - return self->GetValue().Mid(from, to - from); - } - static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr); - static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME); - static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl")); - static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr); - static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr); - -#include - - - static const wxString wxPySliderNameStr(wxSliderNameStr); - static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton")); - -#if !wxUSE_TOGGLEBTN -// implement dummy items for platforms that don't have this class - -#define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0 - -class wxToggleButton : public wxControl -{ -public: - wxToggleButton(wxWindow *, wxWindowID, const wxString&, - const wxPoint&, const wxSize&, long, - const wxValidator&, const wxString&) - { wxPyRaiseNotImplemented(); } - - wxToggleButton() - { wxPyRaiseNotImplemented(); } -}; -#endif - - static const wxString wxPyNOTEBOOK_NAME(wxNOTEBOOK_NAME); - -SWIGSTATICINLINE(PyObject* ) -SWIG_FromUnsignedLong(unsigned long value) -{ - return (value > LONG_MAX) ? - PyLong_FromUnsignedLong(value) - : PyInt_FromLong(swig_numeric_cast(long,value)); -} - - static const wxString wxPyToolBarNameStr(wxToolBarNameStr); -PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){ - wxPyUserData* udata = (wxPyUserData*)self->GetClientData(); - if (udata) { - Py_INCREF(udata->m_obj); - return udata->m_obj; - } else { - Py_INCREF(Py_None); - return Py_None; - } - } -void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){ - self->SetClientData(new wxPyUserData(clientData)); - } -wxToolBarToolBase *wxToolBarBase_DoAddTool(wxToolBarBase *self,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled,wxItemKind kind,wxString const &shortHelp,wxString const &longHelp,PyObject *clientData){ - wxPyUserData* udata = NULL; - if (clientData && clientData != Py_None) - udata = new wxPyUserData(clientData); - return self->AddTool(id, label, bitmap, bmpDisabled, kind, - shortHelp, longHelp, udata); - } -wxToolBarToolBase *wxToolBarBase_DoInsertTool(wxToolBarBase *self,size_t pos,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled,wxItemKind kind,wxString const &shortHelp,wxString const &longHelp,PyObject *clientData){ - wxPyUserData* udata = NULL; - if (clientData && clientData != Py_None) - udata = new wxPyUserData(clientData); - return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind, - shortHelp, longHelp, udata); - } -PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){ - wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id); - if (udata) { - Py_INCREF(udata->m_obj); - return udata->m_obj; - } else { - Py_INCREF(Py_None); - return Py_None; - } - } -void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){ - self->SetToolClientData(id, new wxPyUserData(clientData)); - } - -#include - - - static const wxString wxPyListCtrlNameStr(_T("wxListCtrl")); -void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; } - // Python aware sorting function for wxPyListCtrl - static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { - int retval = 0; - PyObject* func = (PyObject*)funcPtr; - bool blocked = wxPyBeginBlockThreads(); - - PyObject* args = Py_BuildValue("(ii)", item1, item2); - PyObject* result = PyEval_CallObject(func, args); - Py_DECREF(args); - if (result) { - retval = PyInt_AsLong(result); - Py_DECREF(result); - } - - wxPyEndBlockThreads(blocked); - return retval; - } - - // C++ Version of a Python aware class -class wxPyListCtrl : public wxListCtrl { - DECLARE_ABSTRACT_CLASS(wxPyListCtrl); -public: - wxPyListCtrl() : wxListCtrl() {} - wxPyListCtrl(wxWindow* parent, wxWindowID id, - const wxPoint& pos, - const wxSize& size, - long style, - const wxValidator& validator, - const wxString& name) : - wxListCtrl(parent, id, pos, size, style, validator, name) {} - - bool Create(wxWindow* parent, wxWindowID id, - const wxPoint& pos, - const wxSize& size, - long style, - const wxValidator& validator, - const wxString& name) { - return wxListCtrl::Create(parent, id, pos, size, style, validator, name); - } - - DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); - DEC_PYCALLBACK_INT_LONG(OnGetItemImage); - DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); - - PYPRIVATE; -}; - -IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); - -IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); -IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage); -IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); - -wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){ - wxListItem item; - item.SetMask( wxLIST_MASK_STATE | - wxLIST_MASK_TEXT | - wxLIST_MASK_IMAGE | - wxLIST_MASK_DATA | - wxLIST_SET_ITEM | - wxLIST_MASK_WIDTH | - wxLIST_MASK_FORMAT - ); - if (self->GetColumn(col, item)) - return new wxListItem(item); - else - return NULL; - } -wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col){ - wxListItem* info = new wxListItem; - info->m_itemId = itemId; - info->m_col = col; - info->m_mask = 0xFFFF; - self->GetItem(*info); - return info; - } -wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){ - wxPoint pos; - self->GetItemPosition(item, pos); - return pos; - } -wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code){ - wxRect rect; - self->GetItemRect(item, rect, code); - return rect; - } -bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){ - if (!PyCallable_Check(func)) - return False; - return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func); - } -wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){ - - - - return (wxWindow*)self->m_mainWin; - - } - -#include -#include "wx/wxPython/pytree.h" - - static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl")); -bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : False; } -bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : True; } -void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; } - // C++ version of Python aware wxTreeCtrl -class wxPyTreeCtrl : public wxTreeCtrl { - DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); -public: - wxPyTreeCtrl() : wxTreeCtrl() {} - wxPyTreeCtrl(wxWindow *parent, wxWindowID id, - const wxPoint& pos, - const wxSize& size, - long style, - const wxValidator& validator, - const wxString& name) : - wxTreeCtrl(parent, id, pos, size, style, validator, name) {} - - bool Create(wxWindow *parent, wxWindowID id, - const wxPoint& pos, - const wxSize& size, - long style, - const wxValidator& validator, - const wxString& name) { - return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); - } - - - int OnCompareItems(const wxTreeItemId& item1, - const wxTreeItemId& item2) { - int rval = 0; - bool found; - bool blocked = wxPyBeginBlockThreads(); - if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) { - PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), False); - PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), False); - rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2)); - Py_DECREF(o1); - Py_DECREF(o2); - } - wxPyEndBlockThreads(blocked); - if (! found) - rval = wxTreeCtrl::OnCompareItems(item1, item2); - return rval; - } - PYPRIVATE; -}; - -IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); - - - -#if UINT_MAX < LONG_MAX -#define SWIG_FromUnsignedInt SWIG_FromLong -#else -#define SWIG_FromUnsignedInt SWIG_FromUnsignedLong -#endif - - -SWIGSTATICINLINE(unsigned long) -SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type, - unsigned long max_value) -{ - if (!PyErr_Occurred()) { - if (value > max_value) { - PyObject *err = - PyString_FromFormat("value %ld is greater than '%s' minimum %ld", - value, type, max_value); - PyErr_SetObject(PyExc_OverflowError, err); - Py_DECREF(err); - } - } - return value; -} - - -#if UINT_MAX != ULONG_MAX -SWIGSTATICINLINE(unsigned int) -SWIG_AsUnsignedInt(PyObject *obj) -{ - return swig_numeric_cast(unsigned int, - SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), - "unsigned int", UINT_MAX)); -} -#else -#define SWIG_AsUnsignedInt SWIG_AsUnsignedLong -#endif - - -SWIGSTATICINLINE(int) -SWIG_CheckUnsignedInt(PyObject* obj) -{ - SWIG_AsUnsignedInt(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - -wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){ - wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); - if (data == NULL) { - data = new wxPyTreeItemData(); - data->SetId(item); // set the id - self->SetItemData(item, data); - } - return data; - } -PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){ - wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); - if (data == NULL) { - data = new wxPyTreeItemData(); - data->SetId(item); // set the id - self->SetItemData(item, data); - } - return data->GetData(); - } -void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){ - data->SetId(item); // set the id - self->SetItemData(item, data); - } -void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){ - wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); - if (data == NULL) { - data = new wxPyTreeItemData(obj); - data->SetId(item); // set the id - self->SetItemData(item, data); - } else - data->SetData(obj); - } -PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){ - bool blocked = wxPyBeginBlockThreads(); - PyObject* rval = PyList_New(0); - wxArrayTreeItemIds array; - size_t num, x; - num = self->GetSelections(array); - for (x=0; x < num; x++) { - wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); - PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), True); - PyList_Append(rval, item); - } - wxPyEndBlockThreads(blocked); - return rval; - } -PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){ - void* cookie = 0; - wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie)); - bool blocked = wxPyBeginBlockThreads(); - PyObject* tup = PyTuple_New(2); - PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True)); - PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); - wxPyEndBlockThreads(blocked); - return tup; - } -PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){ - wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie)); - bool blocked = wxPyBeginBlockThreads(); - PyObject* tup = PyTuple_New(2); - PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True)); - PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); - wxPyEndBlockThreads(blocked); - return tup; - } -PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly){ - wxRect rect; - if (self->GetBoundingRect(item, rect, textOnly)) { - bool blocked = wxPyBeginBlockThreads(); - wxRect* r = new wxRect(rect); - PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), True); - wxPyEndBlockThreads(blocked); - return val; - } - else - RETURN_NONE(); - } - static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr); - // C++ version of Python aware wxControl -class wxPyControl : public wxControl -{ - DECLARE_DYNAMIC_CLASS(wxPyControl) -public: - wxPyControl() : wxControl() {} - wxPyControl(wxWindow* parent, const wxWindowID id, - const wxPoint& pos = wxDefaultPosition, - const wxSize& size = wxDefaultSize, - long style = 0, - const wxValidator& validator=wxDefaultValidator, - const wxString& name = wxPyControlNameStr) - : wxControl(parent, id, pos, size, style, validator, name) {} - - - DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); - DEC_PYCALLBACK_VOID_INT5(DoSetSize); - DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); - DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); - - DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); - DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); - DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); - - DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); - DEC_PYCALLBACK_SIZE_const(DoGetBestSize); - - DEC_PYCALLBACK__(InitDialog); - DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); - DEC_PYCALLBACK_BOOL_(TransferDataToWindow); - DEC_PYCALLBACK_BOOL_(Validate); - - DEC_PYCALLBACK_BOOL_const(AcceptsFocus); - DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); - DEC_PYCALLBACK_SIZE_const(GetMaxSize); - - DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); - DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); - - DEC_PYCALLBACK_BOOL_(ShouldInheritColours); - DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground); - - PYPRIVATE; -}; - -IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl); - -IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow); -IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize); -IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize); -IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize); - -IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize); -IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize); -IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition); - -IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize); -IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize); - -IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog); -IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow); -IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow); -IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate); - -IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus); -IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard); -IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize); - -IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild); -IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild); - -IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, ShouldInheritColours); -IMP_PYCALLBACK__COLOUR(wxPyControl, wxControl, ApplyParentThemeBackground); - - - -void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; } - -#include - -#ifdef __cplusplus -extern "C" { -#endif -static int _wrap_ButtonNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_ButtonNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_Button(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) 0 ; - wxValidator const &arg7_defvalue = wxDefaultValidator ; - wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; - wxString const &arg8_defvalue = wxPyButtonNameStr ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - wxButton *result; - bool temp3 = False ; - wxPoint temp4 ; - wxSize temp5 ; - bool temp8 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg7 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp3) - delete arg3; - } - { - if (temp8) - delete arg8; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp8) - delete arg8; - } - return NULL; -} - - -static PyObject *_wrap_new_PreButton(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxButton *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxButton *)new wxButton(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Button_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxButton *arg1 = (wxButton *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - wxString *arg4 = 0 ; - wxPoint const &arg5_defvalue = wxDefaultPosition ; - wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; - wxSize const &arg6_defvalue = wxDefaultSize ; - wxSize *arg6 = (wxSize *) &arg6_defvalue ; - long arg7 = (long) 0 ; - wxValidator const &arg8_defvalue = wxDefaultValidator ; - wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; - wxString const &arg9_defvalue = wxPyButtonNameStr ; - wxString *arg9 = (wxString *) &arg9_defvalue ; - bool result; - bool temp4 = False ; - wxPoint temp5 ; - wxSize temp6 ; - bool temp9 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - { - arg6 = &temp6; - if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; - } - } - if (obj6) { - arg7 = (long) SWIG_AsLong(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg8 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj8) { - { - arg9 = wxString_in_helper(obj8); - if (arg9 == NULL) SWIG_fail; - temp9 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp4) - delete arg4; - } - { - if (temp9) - delete arg9; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - { - if (temp9) - delete arg9; - } - return NULL; -} - - -static PyObject *_wrap_Button_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxButton *arg1 = (wxButton *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDefault(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Button_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSize result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxButton::GetDefaultSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * Button_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_BitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxBitmap *arg3 = 0 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxBU_AUTODRAW ; - wxValidator const &arg7_defvalue = wxDefaultValidator ; - wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; - wxString const &arg8_defvalue = wxPyButtonNameStr ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - wxBitmapButton *result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp8 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg7 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp8) - delete arg8; - } - return resultobj; - fail: - { - if (temp8) - delete arg8; - } - return NULL; -} - - -static PyObject *_wrap_new_PreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmapButton *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxBitmapButton *)new wxBitmapButton(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - wxBitmap *arg4 = 0 ; - wxPoint const &arg5_defvalue = wxDefaultPosition ; - wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; - wxSize const &arg6_defvalue = wxDefaultSize ; - wxSize *arg6 = (wxSize *) &arg6_defvalue ; - long arg7 = (long) wxBU_AUTODRAW ; - wxValidator const &arg8_defvalue = wxDefaultValidator ; - wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; - wxString const &arg9_defvalue = wxPyButtonNameStr ; - wxString *arg9 = (wxString *) &arg9_defvalue ; - bool result; - wxPoint temp5 ; - wxSize temp6 ; - bool temp9 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg4 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - { - arg6 = &temp6; - if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; - } - } - if (obj6) { - arg7 = (long) SWIG_AsLong(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg8 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj8) { - { - arg9 = wxString_in_helper(obj8); - if (arg9 == NULL) SWIG_fail; - temp9 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp9) - delete arg9; - } - return resultobj; - fail: - { - if (temp9) - delete arg9; - } - return NULL; -} - - -static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; - wxBitmap result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetBitmapLabel(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxBitmap * resultptr; - resultptr = new wxBitmap((wxBitmap &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; - wxBitmap result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetBitmapDisabled(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxBitmap * resultptr; - resultptr = new wxBitmap((wxBitmap &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; - wxBitmap result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetBitmapFocus(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxBitmap * resultptr; - resultptr = new wxBitmap((wxBitmap &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; - wxBitmap result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetBitmapSelected(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxBitmap * resultptr; - resultptr = new wxBitmap((wxBitmap &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; - wxBitmap *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bitmap", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; - wxBitmap *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bitmap", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetBitmapFocus((wxBitmap const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; - wxBitmap *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bitmap", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetBitmapSelected((wxBitmap const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; - wxBitmap *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bitmap", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetBitmapLabel((wxBitmap const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMargins(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxBitmapButton const *)arg1)->GetMarginX(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxBitmapButton const *)arg1)->GetMarginY(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * BitmapButton_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_CheckBoxNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_CheckBoxNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_CheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) 0 ; - wxValidator const &arg7_defvalue = wxDefaultValidator ; - wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; - wxString const &arg8_defvalue = wxPyCheckBoxNameStr ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - wxCheckBox *result; - bool temp3 = False ; - wxPoint temp4 ; - wxSize temp5 ; - bool temp8 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg7 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); - { - if (temp3) - delete arg3; - } - { - if (temp8) - delete arg8; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp8) - delete arg8; - } - return NULL; -} - - -static PyObject *_wrap_new_PreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCheckBox *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxCheckBox *)new wxCheckBox(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCheckBox *arg1 = (wxCheckBox *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - wxString *arg4 = 0 ; - wxPoint const &arg5_defvalue = wxDefaultPosition ; - wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; - wxSize const &arg6_defvalue = wxDefaultSize ; - wxSize *arg6 = (wxSize *) &arg6_defvalue ; - long arg7 = (long) 0 ; - wxValidator const &arg8_defvalue = wxDefaultValidator ; - wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; - wxString const &arg9_defvalue = wxPyCheckBoxNameStr ; - wxString *arg9 = (wxString *) &arg9_defvalue ; - bool result; - bool temp4 = False ; - wxPoint temp5 ; - wxSize temp6 ; - bool temp9 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - { - arg6 = &temp6; - if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; - } - } - if (obj6) { - arg7 = (long) SWIG_AsLong(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg8 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj8) { - { - arg9 = wxString_in_helper(obj8); - if (arg9 == NULL) SWIG_fail; - temp9 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp4) - delete arg4; - } - { - if (temp9) - delete arg9; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - { - if (temp9) - delete arg9; - } - return NULL; -} - - -static PyObject *_wrap_CheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCheckBox *arg1 = (wxCheckBox *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetValue(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CheckBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCheckBox *arg1 = (wxCheckBox *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->IsChecked(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCheckBox *arg1 = (wxCheckBox *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "state", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool const) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetValue(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCheckBox *arg1 = (wxCheckBox *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxCheckBox const *)arg1)->Get3StateValue(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCheckBox *arg1 = (wxCheckBox *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "state", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxCheckBoxState) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Set3StateValue((wxCheckBoxState )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CheckBox_Is3State(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCheckBox *arg1 = (wxCheckBox *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxCheckBox const *)arg1)->Is3State(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCheckBox *arg1 = (wxCheckBox *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * CheckBox_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_ChoiceNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_ChoiceNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_Choice(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) -1 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; - wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; - long arg6 = (long) 0 ; - wxValidator const &arg7_defvalue = wxDefaultValidator ; - wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; - wxString const &arg8_defvalue = wxPyChoiceNameStr ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - wxChoice *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp5 = False ; - bool temp8 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - if (! PySequence_Check(obj4)) { - PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); - SWIG_fail; - } - arg5 = new wxArrayString; - temp5 = True; - int i, len=PySequence_Length(obj4); - for (i=0; iAdd(Py2wxString(str)); - Py_DECREF(item); - Py_DECREF(str); - } - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg7 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); - { - if (temp5) delete arg5; - } - { - if (temp8) - delete arg8; - } - return resultobj; - fail: - { - if (temp5) delete arg5; - } - { - if (temp8) - delete arg8; - } - return NULL; -} - - -static PyObject *_wrap_new_PreChoice(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxChoice *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxChoice *)new wxChoice(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Choice_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxChoice *arg1 = (wxChoice *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 = (int) -1 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; - wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; - long arg7 = (long) 0 ; - wxValidator const &arg8_defvalue = wxDefaultValidator ; - wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; - wxString const &arg9_defvalue = wxPyChoiceNameStr ; - wxString *arg9 = (wxString *) &arg9_defvalue ; - bool result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp6 = False ; - bool temp9 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - { - if (! PySequence_Check(obj5)) { - PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); - SWIG_fail; - } - arg6 = new wxArrayString; - temp6 = True; - int i, len=PySequence_Length(obj5); - for (i=0; iAdd(Py2wxString(str)); - Py_DECREF(item); - Py_DECREF(str); - } - } - } - if (obj6) { - arg7 = (long) SWIG_AsLong(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg8 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj8) { - { - arg9 = wxString_in_helper(obj8); - if (arg9 == NULL) SWIG_fail; - temp9 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp6) delete arg6; - } - { - if (temp9) - delete arg9; - } - return resultobj; - fail: - { - if (temp6) delete arg6; - } - { - if (temp9) - delete arg9; - } - return NULL; -} - - -static PyObject *_wrap_Choice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxChoice *arg1 = (wxChoice *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetSelection",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int const) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSelection(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Choice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxChoice *arg1 = (wxChoice *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "string", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetStringSelection((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Choice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxChoice *arg1 = (wxChoice *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n",(char *) "string", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Choice_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetString(arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject * Choice_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_ComboBoxNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_ComboBoxNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_ComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) -1 ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; - wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; - long arg7 = (long) 0 ; - wxValidator const &arg8_defvalue = wxDefaultValidator ; - wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; - wxString const &arg9_defvalue = wxPyComboBoxNameStr ; - wxString *arg9 = (wxString *) &arg9_defvalue ; - wxComboBox *result; - bool temp3 = False ; - wxPoint temp4 ; - wxSize temp5 ; - bool temp6 = False ; - bool temp9 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - { - if (! PySequence_Check(obj5)) { - PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); - SWIG_fail; - } - arg6 = new wxArrayString; - temp6 = True; - int i, len=PySequence_Length(obj5); - for (i=0; iAdd(Py2wxString(str)); - Py_DECREF(item); - Py_DECREF(str); - } - } - } - if (obj6) { - arg7 = (long) SWIG_AsLong(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg8 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj8) { - { - arg9 = wxString_in_helper(obj8); - if (arg9 == NULL) SWIG_fail; - temp9 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxComboBox *)new wxComboBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); - { - if (temp3) - delete arg3; - } - { - if (temp6) delete arg6; - } - { - if (temp9) - delete arg9; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp6) delete arg6; - } - { - if (temp9) - delete arg9; - } - return NULL; -} - - -static PyObject *_wrap_new_PreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxComboBox *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxComboBox *)new wxComboBox(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxComboBox *arg1 = (wxComboBox *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 = (int) -1 ; - wxString const &arg4_defvalue = wxPyEmptyString ; - wxString *arg4 = (wxString *) &arg4_defvalue ; - wxPoint const &arg5_defvalue = wxDefaultPosition ; - wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; - wxSize const &arg6_defvalue = wxDefaultSize ; - wxSize *arg6 = (wxSize *) &arg6_defvalue ; - wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; - wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; - long arg8 = (long) 0 ; - wxValidator const &arg9_defvalue = wxDefaultValidator ; - wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; - wxString const &arg10_defvalue = wxPyChoiceNameStr ; - wxString *arg10 = (wxString *) &arg10_defvalue ; - bool result; - bool temp4 = False ; - wxPoint temp5 ; - wxSize temp6 ; - bool temp7 = False ; - bool temp10 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - PyObject * obj9 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - { - arg6 = &temp6; - if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; - } - } - if (obj6) { - { - if (! PySequence_Check(obj6)) { - PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); - SWIG_fail; - } - arg7 = new wxArrayString; - temp7 = True; - int i, len=PySequence_Length(obj6); - for (i=0; iAdd(Py2wxString(str)); - Py_DECREF(item); - Py_DECREF(str); - } - } - } - if (obj7) { - arg8 = (long) SWIG_AsLong(obj7); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj8) { - if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg9 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj9) { - { - arg10 = wxString_in_helper(obj9); - if (arg10 == NULL) SWIG_fail; - temp10 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxArrayString const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp4) - delete arg4; - } - { - if (temp7) delete arg7; - } - { - if (temp10) - delete arg10; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - { - if (temp7) delete arg7; - } - { - if (temp10) - delete arg10; - } - return NULL; -} - - -static PyObject *_wrap_ComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxComboBox *arg1 = (wxComboBox *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxComboBox const *)arg1)->GetValue(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxComboBox *arg1 = (wxComboBox *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "value", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetValue((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxComboBox *arg1 = (wxComboBox *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Copy(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxComboBox *arg1 = (wxComboBox *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Cut(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxComboBox *arg1 = (wxComboBox *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Paste(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxComboBox *arg1 = (wxComboBox *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetInsertionPoint(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxComboBox *arg1 = (wxComboBox *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxComboBox const *)arg1)->GetInsertionPoint(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxComboBox *arg1 = (wxComboBox *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxComboBox const *)arg1)->GetLastPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxComboBox *arg1 = (wxComboBox *) 0 ; - long arg2 ; - long arg3 ; - wxString *arg4 = 0 ; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_ComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxComboBox *arg1 = (wxComboBox *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSelection(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxComboBox *arg1 = (wxComboBox *) 0 ; - long arg2 ; - long arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "from",(char *) "to", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSelection(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxComboBox *arg1 = (wxComboBox *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "editable", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetEditable(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxComboBox *arg1 = (wxComboBox *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetInsertionPointEnd(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxComboBox *arg1 = (wxComboBox *) 0 ; - long arg2 ; - long arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "from",(char *) "to", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Remove(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * ComboBox_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_GaugeNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_GaugeNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_Gauge(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - int arg3 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxGA_HORIZONTAL ; - wxValidator const &arg7_defvalue = wxDefaultValidator ; - wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; - wxString const &arg8_defvalue = wxPyGaugeNameStr ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - wxGauge *result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp8 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg7 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); - { - if (temp8) - delete arg8; - } - return resultobj; - fail: - { - if (temp8) - delete arg8; - } - return NULL; -} - - -static PyObject *_wrap_new_PreGauge(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGauge *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGauge *)new wxGauge(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Gauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGauge *arg1 = (wxGauge *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - int arg4 ; - wxPoint const &arg5_defvalue = wxDefaultPosition ; - wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; - wxSize const &arg6_defvalue = wxDefaultSize ; - wxSize *arg6 = (wxSize *) &arg6_defvalue ; - long arg7 = (long) wxGA_HORIZONTAL ; - wxValidator const &arg8_defvalue = wxDefaultValidator ; - wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; - wxString const &arg9_defvalue = wxPyGaugeNameStr ; - wxString *arg9 = (wxString *) &arg9_defvalue ; - bool result; - wxPoint temp5 ; - wxSize temp6 ; - bool temp9 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - if (obj4) { - { - arg5 = &temp5; - if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - { - arg6 = &temp6; - if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; - } - } - if (obj6) { - arg7 = (long) SWIG_AsLong(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg8 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj8) { - { - arg9 = wxString_in_helper(obj8); - if (arg9 == NULL) SWIG_fail; - temp9 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp9) - delete arg9; - } - return resultobj; - fail: - { - if (temp9) - delete arg9; - } - return NULL; -} - - -static PyObject *_wrap_Gauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGauge *arg1 = (wxGauge *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "range", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetRange(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Gauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGauge *arg1 = (wxGauge *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxGauge const *)arg1)->GetRange(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Gauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGauge *arg1 = (wxGauge *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetValue(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Gauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGauge *arg1 = (wxGauge *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxGauge const *)arg1)->GetValue(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Gauge_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGauge *arg1 = (wxGauge *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxGauge const *)arg1)->IsVertical(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGauge *arg1 = (wxGauge *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "w", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetShadowWidth(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGauge *arg1 = (wxGauge *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxGauge const *)arg1)->GetShadowWidth(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Gauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGauge *arg1 = (wxGauge *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "w", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetBezelFace(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Gauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGauge *arg1 = (wxGauge *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxGauge const *)arg1)->GetBezelFace(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * Gauge_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_StaticBitmapNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_StaticBitmapNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_StaticBoxNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_StaticBoxNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_StaticTextNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_StaticTextNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_StaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) 0 ; - wxString const &arg7_defvalue = wxPyStaticBoxNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - wxStaticBox *result; - bool temp3 = False ; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp3) - delete arg3; - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_new_PreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStaticBox *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxStaticBox *)new wxStaticBox(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_StaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStaticBox *arg1 = (wxStaticBox *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - wxString *arg4 = 0 ; - wxPoint const &arg5_defvalue = wxDefaultPosition ; - wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; - wxSize const &arg6_defvalue = wxDefaultSize ; - wxSize *arg6 = (wxSize *) &arg6_defvalue ; - long arg7 = (long) 0 ; - wxString const &arg8_defvalue = wxPyStaticBoxNameStr ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - bool result; - bool temp4 = False ; - wxPoint temp5 ; - wxSize temp6 ; - bool temp8 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - { - arg6 = &temp6; - if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; - } - } - if (obj6) { - arg7 = (long) SWIG_AsLong(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp4) - delete arg4; - } - { - if (temp8) - delete arg8; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - { - if (temp8) - delete arg8; - } - return NULL; -} - - -static PyObject * StaticBox_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_StaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) wxLI_HORIZONTAL ; - wxString const &arg6_defvalue = wxPyStaticTextNameStr ; - wxString *arg6 = (wxString *) &arg6_defvalue ; - wxStaticLine *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp6 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - { - arg6 = wxString_in_helper(obj5); - if (arg6 == NULL) SWIG_fail; - temp6 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); - { - if (temp6) - delete arg6; - } - return resultobj; - fail: - { - if (temp6) - delete arg6; - } - return NULL; -} - - -static PyObject *_wrap_new_PreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStaticLine *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxStaticLine *)new wxStaticLine(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_StaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStaticLine *arg1 = (wxStaticLine *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxLI_HORIZONTAL ; - wxString const &arg7_defvalue = wxPyStaticTextNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - bool result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_StaticLine_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStaticLine *arg1 = (wxStaticLine *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxStaticLine const *)arg1)->IsVertical(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxStaticLine::GetDefaultSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * StaticLine_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_StaticText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) 0 ; - wxString const &arg7_defvalue = wxPyStaticTextNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - wxStaticText *result; - bool temp3 = False ; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); - { - if (temp3) - delete arg3; - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_new_PreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStaticText *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxStaticText *)new wxStaticText(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_StaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStaticText *arg1 = (wxStaticText *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - wxString *arg4 = 0 ; - wxPoint const &arg5_defvalue = wxDefaultPosition ; - wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; - wxSize const &arg6_defvalue = wxDefaultSize ; - wxSize *arg6 = (wxSize *) &arg6_defvalue ; - long arg7 = (long) 0 ; - wxString const &arg8_defvalue = wxPyStaticTextNameStr ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - bool result; - bool temp4 = False ; - wxPoint temp5 ; - wxSize temp6 ; - bool temp8 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticText, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - { - arg6 = &temp6; - if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; - } - } - if (obj6) { - arg7 = (long) SWIG_AsLong(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp4) - delete arg4; - } - { - if (temp8) - delete arg8; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - { - if (temp8) - delete arg8; - } - return NULL; -} - - -static PyObject * StaticText_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_StaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxBitmap *arg3 = 0 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) 0 ; - wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - wxStaticBitmap *result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_new_PreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStaticBitmap *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxStaticBitmap *)new wxStaticBitmap(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_StaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - wxBitmap *arg4 = 0 ; - wxPoint const &arg5_defvalue = wxDefaultPosition ; - wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; - wxSize const &arg6_defvalue = wxDefaultSize ; - wxSize *arg6 = (wxSize *) &arg6_defvalue ; - long arg7 = (long) 0 ; - wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - bool result; - wxPoint temp5 ; - wxSize temp6 ; - bool temp8 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg4 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - { - arg6 = &temp6; - if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; - } - } - if (obj6) { - arg7 = (long) SWIG_AsLong(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp8) - delete arg8; - } - return resultobj; - fail: - { - if (temp8) - delete arg8; - } - return NULL; -} - - -static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; - wxBitmap result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetBitmap(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxBitmap * resultptr; - resultptr = new wxBitmap((wxBitmap &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; - wxBitmap *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bitmap", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetBitmap((wxBitmap const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; - wxIcon *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "icon", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetIcon((wxIcon const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * StaticBitmap_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_ListBoxNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_ListBoxNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_ListBox(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; - wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; - long arg6 = (long) 0 ; - wxValidator const &arg7_defvalue = wxDefaultValidator ; - wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; - wxString const &arg8_defvalue = wxPyListBoxNameStr ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - wxListBox *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp5 = False ; - bool temp8 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - if (! PySequence_Check(obj4)) { - PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); - SWIG_fail; - } - arg5 = new wxArrayString; - temp5 = True; - int i, len=PySequence_Length(obj4); - for (i=0; iAdd(Py2wxString(str)); - Py_DECREF(item); - Py_DECREF(str); - } - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg7 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); - { - if (temp5) delete arg5; - } - { - if (temp8) - delete arg8; - } - return resultobj; - fail: - { - if (temp5) delete arg5; - } - { - if (temp8) - delete arg8; - } - return NULL; -} - - -static PyObject *_wrap_new_PreListBox(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListBox *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxListBox *)new wxListBox(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListBox *arg1 = (wxListBox *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; - wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; - long arg7 = (long) 0 ; - wxValidator const &arg8_defvalue = wxDefaultValidator ; - wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; - wxString const &arg9_defvalue = wxPyListBoxNameStr ; - wxString *arg9 = (wxString *) &arg9_defvalue ; - bool result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp6 = False ; - bool temp9 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - { - if (! PySequence_Check(obj5)) { - PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); - SWIG_fail; - } - arg6 = new wxArrayString; - temp6 = True; - int i, len=PySequence_Length(obj5); - for (i=0; iAdd(Py2wxString(str)); - Py_DECREF(item); - Py_DECREF(str); - } - } - } - if (obj6) { - arg7 = (long) SWIG_AsLong(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg8 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj8) { - { - arg9 = wxString_in_helper(obj8); - if (arg9 == NULL) SWIG_fail; - temp9 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp6) delete arg6; - } - { - if (temp9) - delete arg9; - } - return resultobj; - fail: - { - if (temp6) delete arg6; - } - { - if (temp9) - delete arg9; - } - return NULL; -} - - -static PyObject *_wrap_ListBox_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListBox *arg1 = (wxListBox *) 0 ; - wxString *arg2 = 0 ; - int arg3 ; - PyObject *arg4 = (PyObject *) NULL ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - arg4 = obj3; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListBox *arg1 = (wxListBox *) 0 ; - wxArrayString *arg2 = 0 ; - int arg3 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "items",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - if (! PySequence_Check(obj1)) { - PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); - SWIG_fail; - } - arg2 = new wxArrayString; - temp2 = True; - int i, len=PySequence_Length(obj1); - for (i=0; iAdd(Py2wxString(str)); - Py_DECREF(item); - Py_DECREF(str); - } - } - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->InsertItems((wxArrayString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) delete arg2; - } - return resultobj; - fail: - { - if (temp2) delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListBox *arg1 = (wxListBox *) 0 ; - wxArrayString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "items", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - if (! PySequence_Check(obj1)) { - PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); - SWIG_fail; - } - arg2 = new wxArrayString; - temp2 = True; - int i, len=PySequence_Length(obj1); - for (i=0; iAdd(Py2wxString(str)); - Py_DECREF(item); - Py_DECREF(str); - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Set((wxArrayString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) delete arg2; - } - return resultobj; - fail: - { - if (temp2) delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListBox *arg1 = (wxListBox *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxListBox const *)arg1)->IsSelected(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListBox *arg1 = (wxListBox *) 0 ; - int arg2 ; - bool arg3 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n",(char *) "select", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSelection(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListBox_Select(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListBox *arg1 = (wxListBox *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Select(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListBox *arg1 = (wxListBox *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Deselect(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListBox_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListBox *arg1 = (wxListBox *) 0 ; - int arg2 = (int) -1 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "itemToLeaveSelected", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DeselectAll(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListBox *arg1 = (wxListBox *) 0 ; - wxString *arg2 = 0 ; - bool arg3 = (bool) True ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "s",(char *) "select", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListBox *arg1 = (wxListBox *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxListBox_GetSelections(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListBox *arg1 = (wxListBox *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFirstItem(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListBox *arg1 = (wxListBox *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "s", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFirstItem((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ListBox_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListBox *arg1 = (wxListBox *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->EnsureVisible(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListBox *arg1 = (wxListBox *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "s", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AppendAndEnsureVisible((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ListBox_IsSorted(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListBox *arg1 = (wxListBox *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxListBox const *)arg1)->IsSorted(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListBox *arg1 = (wxListBox *) 0 ; - int arg2 ; - wxColour *arg3 = 0 ; - wxColour temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "c", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = &temp3; - if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListBox *arg1 = (wxListBox *) 0 ; - int arg2 ; - wxColour *arg3 = 0 ; - wxColour temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "c", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = &temp3; - if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListBox_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListBox *arg1 = (wxListBox *) 0 ; - int arg2 ; - wxFont *arg3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "f", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; - wxVisualAttributes result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "variant", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (wxWindowVariant) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxListBox::GetClassDefaultAttributes((wxWindowVariant )arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxVisualAttributes * resultptr; - resultptr = new wxVisualAttributes((wxVisualAttributes &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * ListBox_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_CheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; - wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; - long arg6 = (long) 0 ; - wxValidator const &arg7_defvalue = wxDefaultValidator ; - wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; - wxString const &arg8_defvalue = wxPyListBoxNameStr ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - wxCheckListBox *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp5 = False ; - bool temp8 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - if (! PySequence_Check(obj4)) { - PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); - SWIG_fail; - } - arg5 = new wxArrayString; - temp5 = True; - int i, len=PySequence_Length(obj4); - for (i=0; iAdd(Py2wxString(str)); - Py_DECREF(item); - Py_DECREF(str); - } - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg7 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); - { - if (temp5) delete arg5; - } - { - if (temp8) - delete arg8; - } - return resultobj; - fail: - { - if (temp5) delete arg5; - } - { - if (temp8) - delete arg8; - } - return NULL; -} - - -static PyObject *_wrap_new_PreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCheckListBox *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxCheckListBox *)new wxCheckListBox(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; - wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; - long arg7 = (long) 0 ; - wxValidator const &arg8_defvalue = wxDefaultValidator ; - wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; - wxString const &arg9_defvalue = wxPyListBoxNameStr ; - wxString *arg9 = (wxString *) &arg9_defvalue ; - bool result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp6 = False ; - bool temp9 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - { - if (! PySequence_Check(obj5)) { - PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); - SWIG_fail; - } - arg6 = new wxArrayString; - temp6 = True; - int i, len=PySequence_Length(obj5); - for (i=0; iAdd(Py2wxString(str)); - Py_DECREF(item); - Py_DECREF(str); - } - } - } - if (obj6) { - arg7 = (long) SWIG_AsLong(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg8 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj8) { - { - arg9 = wxString_in_helper(obj8); - if (arg9 == NULL) SWIG_fail; - temp9 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp6) delete arg6; - } - { - if (temp9) - delete arg9; - } - return resultobj; - fail: - { - if (temp6) delete arg6; - } - { - if (temp9) - delete arg9; - } - return NULL; -} - - -static PyObject *_wrap_CheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "index", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->IsChecked(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; - int arg2 ; - int arg3 = (int) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "index",(char *) "check", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Check(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CheckListBox_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; - wxPoint *arg2 = 0 ; - int result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; - int arg2 ; - int arg3 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * CheckListBox_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_TextCtrlNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_TextCtrlNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_TextAttr__SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxTextAttr *result; - - if(!PyArg_ParseTuple(args,(char *)":new_TextAttr")) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxTextAttr *)new wxTextAttr(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_TextAttr__SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxColour *arg1 = 0 ; - wxColour const &arg2_defvalue = wxNullColour ; - wxColour *arg2 = (wxColour *) &arg2_defvalue ; - wxFont const &arg3_defvalue = wxNullFont ; - wxFont *arg3 = (wxFont *) &arg3_defvalue ; - int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ; - wxTextAttr *result; - wxColour temp1 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"O|OOO:new_TextAttr",&obj0,&obj1,&obj2,&obj3)) goto fail; - { - arg1 = &temp1; - if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; - } - if (obj1) { - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - } - if (obj2) { - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj3) { - arg4 = (wxTextAttrAlignment) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_TextAttr(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 4); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if (argc == 0) { - return _wrap_new_TextAttr__SWIG_0(self,args); - } - if ((argc >= 1) && (argc <= 4)) { - int _v; - { - _v = wxColour_typecheck(argv[0]); - } - if (_v) { - if (argc <= 1) { - return _wrap_new_TextAttr__SWIG_1(self,args); - } - { - _v = wxColour_typecheck(argv[1]); - } - if (_v) { - if (argc <= 2) { - return _wrap_new_TextAttr__SWIG_1(self,args); - } - { - void *ptr; - if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxFont, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - if (argc <= 3) { - return _wrap_new_TextAttr__SWIG_1(self,args); - } - _v = SWIG_CheckInt(argv[3]); - if (_v) { - return _wrap_new_TextAttr__SWIG_1(self,args); - } - } - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TextAttr'"); - return NULL; -} - - -static PyObject *_wrap_delete_TextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_Init(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Init(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colText", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetTextColour((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colBack", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetBackgroundColour((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - wxFont *arg2 = 0 ; - long arg3 = (long) wxTEXT_ATTR_FONT ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "font",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if (obj2) { - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFont((wxFont const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "alignment", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxTextAttrAlignment) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetAlignment((wxTextAttrAlignment )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_SetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - wxArrayInt *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "tabs", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - if (! PySequence_Check(obj1)) { - PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); - SWIG_fail; - } - arg2 = new wxArrayInt; - temp2 = True; - int i, len=PySequence_Length(obj1); - for (i=0; iAdd(PyInt_AS_LONG(number)); - Py_DECREF(item); - Py_DECREF(number); - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetTabs((wxArrayInt const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) delete arg2; - } - return resultobj; - fail: - { - if (temp2) delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "indent", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetLeftIndent(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "indent", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetRightIndent(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFlags(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTextAttr const *)arg1)->HasTextColour(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTextAttr const *)arg1)->HasFont(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_HasAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTextAttr const *)arg1)->HasAlignment(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_HasTabs(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTextAttr const *)arg1)->HasTabs(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTextAttr const *)arg1)->HasRightIndent(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - long arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - wxColour *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour(); - result = (wxColour *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - wxColour *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour(); - result = (wxColour *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - wxFont *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont(); - result = (wxFont *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxFont* resultptr = new wxFont(*result); - resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxTextAttr const *)arg1)->GetAlignment(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_GetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - wxArrayInt *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs(); - result = (wxArrayInt *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = PyList_New(0); - size_t idx; - for (idx = 0; idx < result->GetCount(); idx += 1) { - PyObject* val = PyInt_FromLong( result->Item(idx) ); - PyList_Append(resultobj, val); - Py_DECREF(val); - } - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxTextAttr const *)arg1)->GetLeftIndent(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxTextAttr const *)arg1)->GetRightIndent(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxTextAttr const *)arg1)->GetFlags(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTextAttr const *)arg1)->IsDefault(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = 0 ; - wxTextAttr *arg2 = 0 ; - wxTextCtrl *arg3 = (wxTextCtrl *) 0 ; - wxTextAttr result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "attr",(char *) "attrDef",(char *) "text", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTextAttr * resultptr; - resultptr = new wxTextAttr((wxTextAttr &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTextAttr, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * TextAttr_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_TextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) 0 ; - wxValidator const &arg7_defvalue = wxDefaultValidator ; - wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; - wxString const &arg8_defvalue = wxPyTextCtrlNameStr ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - wxTextCtrl *result; - bool temp3 = False ; - wxPoint temp4 ; - wxSize temp5 ; - bool temp8 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg7 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp3) - delete arg3; - } - { - if (temp8) - delete arg8; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp8) - delete arg8; - } - return NULL; -} - - -static PyObject *_wrap_new_PreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxTextCtrl *)new wxTextCtrl(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - wxString const &arg4_defvalue = wxPyEmptyString ; - wxString *arg4 = (wxString *) &arg4_defvalue ; - wxPoint const &arg5_defvalue = wxDefaultPosition ; - wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; - wxSize const &arg6_defvalue = wxDefaultSize ; - wxSize *arg6 = (wxSize *) &arg6_defvalue ; - long arg7 = (long) 0 ; - wxValidator const &arg8_defvalue = wxDefaultValidator ; - wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; - wxString const &arg9_defvalue = wxPyTextCtrlNameStr ; - wxString *arg9 = (wxString *) &arg9_defvalue ; - bool result; - bool temp4 = False ; - wxPoint temp5 ; - wxSize temp6 ; - bool temp9 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - { - arg6 = &temp6; - if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; - } - } - if (obj6) { - arg7 = (long) SWIG_AsLong(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg8 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj8) { - { - arg9 = wxString_in_helper(obj8); - if (arg9 == NULL) SWIG_fail; - temp9 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp4) - delete arg4; - } - { - if (temp9) - delete arg9; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - { - if (temp9) - delete arg9; - } - return NULL; -} - - -static PyObject *_wrap_TextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxTextCtrl const *)arg1)->GetValue(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "value", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetValue((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_TextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - long arg2 ; - long arg3 ; - wxString result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "from",(char *) "to", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - long arg2 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "lineNo", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - long arg2 ; - wxString result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "lineNo", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxTextCtrl const *)arg1)->GetLineText(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTextCtrl const *)arg1)->IsModified(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTextCtrl const *)arg1)->IsEditable(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - long *arg2 = (long *) 0 ; - long *arg3 = (long *) 0 ; - long temp2 ; - long temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxTextCtrl const *)arg1)->GetStringSelection(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Clear(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - long arg2 ; - long arg3 ; - wxString *arg4 = 0 ; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_TextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - long arg2 ; - long arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "from",(char *) "to", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Remove(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - wxString *arg2 = 0 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "file", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->LoadFile((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_TextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - wxString const &arg2_defvalue = wxPyEmptyString ; - wxString *arg2 = (wxString *) &arg2_defvalue ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "file", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SaveFile((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->MarkDirty(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DiscardEdits(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - unsigned long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "len", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMaxLength(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "text", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->WriteText((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_TextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "text", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AppendText((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - wxKeyEvent *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "event", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - long arg2 ; - long arg3 ; - wxTextAttr *arg4 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg4 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - long arg2 ; - wxTextAttr *arg3 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "position",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetStyle(arg2,*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - wxTextAttr *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - wxTextAttr *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle(); - result = (wxTextAttr *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - long arg2 ; - long arg3 ; - long result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - long arg2 ; - long *arg3 = (long *) 0 ; - long *arg4 = (long *) 0 ; - long temp3 ; - long temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos", NULL - }; - - arg3 = &temp3; - arg4 = &temp4; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg4)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ShowPosition(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - wxPoint *arg2 = 0 ; - long *arg3 = (long *) 0 ; - long *arg4 = (long *) 0 ; - int result; - wxPoint temp2 ; - long temp3 ; - long temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - arg3 = &temp3; - arg4 = &temp4; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg4)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Copy(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Cut(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Paste(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTextCtrl const *)arg1)->CanCopy(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTextCtrl const *)arg1)->CanCut(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTextCtrl const *)arg1)->CanPaste(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Undo(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Redo(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTextCtrl const *)arg1)->CanUndo(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTextCtrl const *)arg1)->CanRedo(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetInsertionPoint(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetInsertionPointEnd(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxTextCtrl const *)arg1)->GetLastPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - long arg2 ; - long arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "from",(char *) "to", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSelection(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SelectAll(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "editable", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetEditable(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "text", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxTextCtrl_write(arg1,(wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_TextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - long arg2 ; - long arg3 ; - wxString result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "from",(char *) "to", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxTextCtrl_GetString(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * TextCtrl_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_TextUrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - wxMouseEvent *arg2 = 0 ; - long arg3 ; - long arg4 ; - wxTextUrlEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (long) SWIG_AsLong(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextUrlEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; - wxMouseEvent *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent(); - result = (wxMouseEvent *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseEvent, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * TextUrlEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_ScrollBarNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_ScrollBarNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_ScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) -1 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) wxSB_HORIZONTAL ; - wxValidator const &arg6_defvalue = wxDefaultValidator ; - wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; - wxString const &arg7_defvalue = wxPyScrollBarNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - wxScrollBar *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg6 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_new_PreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrollBar *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxScrollBar *)new wxScrollBar(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrollBar *arg1 = (wxScrollBar *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 = (int) -1 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxSB_HORIZONTAL ; - wxValidator const &arg7_defvalue = wxDefaultValidator ; - wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; - wxString const &arg8_defvalue = wxPyScrollBarNameStr ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - bool result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp8 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg7 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp8) - delete arg8; - } - return resultobj; - fail: - { - if (temp8) - delete arg8; - } - return NULL; -} - - -static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrollBar *arg1 = (wxScrollBar *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxScrollBar const *)arg1)->GetThumbPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrollBar *arg1 = (wxScrollBar *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxScrollBar const *)arg1)->GetThumbSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrollBar *arg1 = (wxScrollBar *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxScrollBar const *)arg1)->GetPageSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrollBar *arg1 = (wxScrollBar *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxScrollBar const *)arg1)->GetRange(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrollBar *arg1 = (wxScrollBar *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxScrollBar const *)arg1)->IsVertical(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrollBar *arg1 = (wxScrollBar *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "viewStart", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetThumbPosition(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrollBar *arg1 = (wxScrollBar *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - bool arg6 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - if (obj5) { - arg6 = (bool) SWIG_AsBool(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * ScrollBar_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_SPIN_BUTTON_NAME_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only."); - return 1; -} - - -static PyObject *_wrap_SPIN_BUTTON_NAME_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_SpinCtrlNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_SpinCtrlNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_SpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) -1 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) wxSP_HORIZONTAL ; - wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ; - wxString *arg6 = (wxString *) &arg6_defvalue ; - wxSpinButton *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp6 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - { - arg6 = wxString_in_helper(obj5); - if (arg6 == NULL) SWIG_fail; - temp6 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); - { - if (temp6) - delete arg6; - } - return resultobj; - fail: - { - if (temp6) - delete arg6; - } - return NULL; -} - - -static PyObject *_wrap_new_PreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSpinButton *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSpinButton *)new wxSpinButton(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSpinButton *arg1 = (wxSpinButton *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 = (int) -1 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxSP_HORIZONTAL ; - wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - bool result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_SpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSpinButton *arg1 = (wxSpinButton *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSpinButton const *)arg1)->GetValue(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSpinButton *arg1 = (wxSpinButton *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSpinButton const *)arg1)->GetMin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSpinButton *arg1 = (wxSpinButton *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSpinButton const *)arg1)->GetMax(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSpinButton *arg1 = (wxSpinButton *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "val", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetValue(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SpinButton_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSpinButton *arg1 = (wxSpinButton *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "minVal", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMin(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SpinButton_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSpinButton *arg1 = (wxSpinButton *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "maxVal", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMax(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSpinButton *arg1 = (wxSpinButton *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "minVal",(char *) "maxVal", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetRange(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SpinButton_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSpinButton *arg1 = (wxSpinButton *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxSpinButton const *)arg1)->IsVertical(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * SpinButton_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_SpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) -1 ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxSP_ARROW_KEYS ; - int arg7 = (int) 0 ; - int arg8 = (int) 100 ; - int arg9 = (int) 0 ; - wxString const &arg10_defvalue = wxPySpinCtrlNameStr ; - wxString *arg10 = (wxString *) &arg10_defvalue ; - wxSpinCtrl *result; - bool temp3 = False ; - wxPoint temp4 ; - wxSize temp5 ; - bool temp10 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - PyObject * obj9 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - arg7 = (int) SWIG_AsInt(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - arg8 = (int) SWIG_AsInt(obj7); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj8) { - arg9 = (int) SWIG_AsInt(obj8); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj9) { - { - arg10 = wxString_in_helper(obj9); - if (arg10 == NULL) SWIG_fail; - temp10 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); - { - if (temp3) - delete arg3; - } - { - if (temp10) - delete arg10; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp10) - delete arg10; - } - return NULL; -} - - -static PyObject *_wrap_new_PreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSpinCtrl *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSpinCtrl *)new wxSpinCtrl(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 = (int) -1 ; - wxString const &arg4_defvalue = wxPyEmptyString ; - wxString *arg4 = (wxString *) &arg4_defvalue ; - wxPoint const &arg5_defvalue = wxDefaultPosition ; - wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; - wxSize const &arg6_defvalue = wxDefaultSize ; - wxSize *arg6 = (wxSize *) &arg6_defvalue ; - long arg7 = (long) wxSP_ARROW_KEYS ; - int arg8 = (int) 0 ; - int arg9 = (int) 100 ; - int arg10 = (int) 0 ; - wxString const &arg11_defvalue = wxPySpinCtrlNameStr ; - wxString *arg11 = (wxString *) &arg11_defvalue ; - bool result; - bool temp4 = False ; - wxPoint temp5 ; - wxSize temp6 ; - bool temp11 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - PyObject * obj9 = 0 ; - PyObject * obj10 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - { - arg6 = &temp6; - if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; - } - } - if (obj6) { - arg7 = (long) SWIG_AsLong(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - arg8 = (int) SWIG_AsInt(obj7); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj8) { - arg9 = (int) SWIG_AsInt(obj8); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj9) { - arg10 = (int) SWIG_AsInt(obj9); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj10) { - { - arg11 = wxString_in_helper(obj10); - if (arg11 == NULL) SWIG_fail; - temp11 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp4) - delete arg4; - } - { - if (temp11) - delete arg11; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - { - if (temp11) - delete arg11; - } - return NULL; -} - - -static PyObject *_wrap_SpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSpinCtrl const *)arg1)->GetValue(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "value", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetValue(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "text", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetValue((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_SpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "minVal",(char *) "maxVal", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetRange(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSpinCtrl const *)arg1)->GetMin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSpinCtrl const *)arg1)->GetMax(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; - long arg2 ; - long arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "from",(char *) "to", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSelection(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * SpinCtrl_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_SpinEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEventType arg1 = (wxEventType) wxEVT_NULL ; - int arg2 = (int) 0 ; - wxSpinEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "commandType",(char *) "winid", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (wxEventType) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SpinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSpinEvent const *)arg1)->GetPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SpinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPosition(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * SpinEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_RadioBoxNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_RadioBoxNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_RadioButtonNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_RadioButtonNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_RadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; - wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; - int arg7 = (int) 0 ; - long arg8 = (long) wxRA_HORIZONTAL ; - wxValidator const &arg9_defvalue = wxDefaultValidator ; - wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; - wxString const &arg10_defvalue = wxPyRadioBoxNameStr ; - wxString *arg10 = (wxString *) &arg10_defvalue ; - wxRadioBox *result; - bool temp3 = False ; - wxPoint temp4 ; - wxSize temp5 ; - bool temp6 = False ; - bool temp10 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - PyObject * obj9 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - { - if (! PySequence_Check(obj5)) { - PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); - SWIG_fail; - } - arg6 = new wxArrayString; - temp6 = True; - int i, len=PySequence_Length(obj5); - for (i=0; iAdd(Py2wxString(str)); - Py_DECREF(item); - Py_DECREF(str); - } - } - } - if (obj6) { - arg7 = (int) SWIG_AsInt(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - arg8 = (long) SWIG_AsLong(obj7); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj8) { - if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg9 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj9) { - { - arg10 = wxString_in_helper(obj9); - if (arg10 == NULL) SWIG_fail; - temp10 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxRadioBox *)new wxRadioBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); - { - if (temp3) - delete arg3; - } - { - if (temp6) delete arg6; - } - { - if (temp10) - delete arg10; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp6) delete arg6; - } - { - if (temp10) - delete arg10; - } - return NULL; -} - - -static PyObject *_wrap_new_PreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRadioBox *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxRadioBox *)new wxRadioBox(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRadioBox *arg1 = (wxRadioBox *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - wxString *arg4 = 0 ; - wxPoint const &arg5_defvalue = wxDefaultPosition ; - wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; - wxSize const &arg6_defvalue = wxDefaultSize ; - wxSize *arg6 = (wxSize *) &arg6_defvalue ; - wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; - wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; - int arg8 = (int) 0 ; - long arg9 = (long) wxRA_HORIZONTAL ; - wxValidator const &arg10_defvalue = wxDefaultValidator ; - wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; - wxString const &arg11_defvalue = wxPyRadioBoxNameStr ; - wxString *arg11 = (wxString *) &arg11_defvalue ; - bool result; - bool temp4 = False ; - wxPoint temp5 ; - wxSize temp6 ; - bool temp7 = False ; - bool temp11 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - PyObject * obj9 = 0 ; - PyObject * obj10 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - { - arg6 = &temp6; - if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; - } - } - if (obj6) { - { - if (! PySequence_Check(obj6)) { - PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); - SWIG_fail; - } - arg7 = new wxArrayString; - temp7 = True; - int i, len=PySequence_Length(obj6); - for (i=0; iAdd(Py2wxString(str)); - Py_DECREF(item); - Py_DECREF(str); - } - } - } - if (obj7) { - arg8 = (int) SWIG_AsInt(obj7); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj8) { - arg9 = (long) SWIG_AsLong(obj8); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj9) { - if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg10 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj10) { - { - arg11 = wxString_in_helper(obj10); - if (arg11 == NULL) SWIG_fail; - temp11 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxArrayString const &)*arg7,arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp4) - delete arg4; - } - { - if (temp7) delete arg7; - } - { - if (temp11) - delete arg11; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - { - if (temp7) delete arg7; - } - { - if (temp11) - delete arg11; - } - return NULL; -} - - -static PyObject *_wrap_RadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRadioBox *arg1 = (wxRadioBox *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSelection(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRadioBox *arg1 = (wxRadioBox *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxRadioBox const *)arg1)->GetSelection(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRadioBox *arg1 = (wxRadioBox *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxRadioBox const *)arg1)->GetStringSelection(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRadioBox *arg1 = (wxRadioBox *) 0 ; - wxString *arg2 = 0 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "s", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_RadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRadioBox *arg1 = (wxRadioBox *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxRadioBox const *)arg1)->GetCount(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRadioBox *arg1 = (wxRadioBox *) 0 ; - wxString *arg2 = 0 ; - int result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "s", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_RadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRadioBox *arg1 = (wxRadioBox *) 0 ; - int arg2 ; - wxString result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxRadioBox const *)arg1)->GetString(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RadioBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRadioBox *arg1 = (wxRadioBox *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n",(char *) "label", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetString(arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_RadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRadioBox *arg1 = (wxRadioBox *) 0 ; - int arg2 ; - bool arg3 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n",(char *) "enable", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Enable(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRadioBox *arg1 = (wxRadioBox *) 0 ; - int arg2 ; - bool arg3 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n",(char *) "show", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Show(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRadioBox *arg1 = (wxRadioBox *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxRadioBox const *)arg1)->GetColumnCount(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RadioBox_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRadioBox *arg1 = (wxRadioBox *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxRadioBox const *)arg1)->GetRowCount(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RadioBox_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRadioBox *arg1 = (wxRadioBox *) 0 ; - int arg2 ; - int arg3 ; - long arg4 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (wxDirection) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (long) SWIG_AsLong(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,(wxDirection )arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * RadioBox_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_RadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) 0 ; - wxValidator const &arg7_defvalue = wxDefaultValidator ; - wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; - wxString const &arg8_defvalue = wxPyRadioButtonNameStr ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - wxRadioButton *result; - bool temp3 = False ; - wxPoint temp4 ; - wxSize temp5 ; - bool temp8 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg7 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); - { - if (temp3) - delete arg3; - } - { - if (temp8) - delete arg8; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp8) - delete arg8; - } - return NULL; -} - - -static PyObject *_wrap_new_PreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRadioButton *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxRadioButton *)new wxRadioButton(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRadioButton *arg1 = (wxRadioButton *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - wxString *arg4 = 0 ; - wxPoint const &arg5_defvalue = wxDefaultPosition ; - wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; - wxSize const &arg6_defvalue = wxDefaultSize ; - wxSize *arg6 = (wxSize *) &arg6_defvalue ; - long arg7 = (long) 0 ; - wxValidator const &arg8_defvalue = wxDefaultValidator ; - wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; - wxString const &arg9_defvalue = wxPyRadioButtonNameStr ; - wxString *arg9 = (wxString *) &arg9_defvalue ; - bool result; - bool temp4 = False ; - wxPoint temp5 ; - wxSize temp6 ; - bool temp9 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - { - arg6 = &temp6; - if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; - } - } - if (obj6) { - arg7 = (long) SWIG_AsLong(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg8 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj8) { - { - arg9 = wxString_in_helper(obj8); - if (arg9 == NULL) SWIG_fail; - temp9 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp4) - delete arg4; - } - { - if (temp9) - delete arg9; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - { - if (temp9) - delete arg9; - } - return NULL; -} - - -static PyObject *_wrap_RadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRadioButton *arg1 = (wxRadioButton *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetValue(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRadioButton *arg1 = (wxRadioButton *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "value", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetValue(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * RadioButton_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_SliderNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_SliderNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_Slider(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - wxPoint const &arg6_defvalue = wxDefaultPosition ; - wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; - wxSize const &arg7_defvalue = wxDefaultSize ; - wxSize *arg7 = (wxSize *) &arg7_defvalue ; - long arg8 = (long) wxSL_HORIZONTAL ; - wxValidator const &arg9_defvalue = wxDefaultValidator ; - wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; - wxString const &arg10_defvalue = wxPySliderNameStr ; - wxString *arg10 = (wxString *) &arg10_defvalue ; - wxSlider *result; - wxPoint temp6 ; - wxSize temp7 ; - bool temp10 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - PyObject * obj9 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - if (obj5) { - { - arg6 = &temp6; - if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; - } - } - if (obj6) { - { - arg7 = &temp7; - if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; - } - } - if (obj7) { - arg8 = (long) SWIG_AsLong(obj7); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj8) { - if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg9 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj9) { - { - arg10 = wxString_in_helper(obj9); - if (arg10 == NULL) SWIG_fail; - temp10 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); - { - if (temp10) - delete arg10; - } - return resultobj; - fail: - { - if (temp10) - delete arg10; - } - return NULL; -} - - -static PyObject *_wrap_new_PreSlider(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSlider *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSlider *)new wxSlider(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Slider_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSlider *arg1 = (wxSlider *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - wxPoint const &arg7_defvalue = wxDefaultPosition ; - wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; - wxSize const &arg8_defvalue = wxDefaultSize ; - wxSize *arg8 = (wxSize *) &arg8_defvalue ; - long arg9 = (long) wxSL_HORIZONTAL ; - wxValidator const &arg10_defvalue = wxDefaultValidator ; - wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; - wxString const &arg11_defvalue = wxPySliderNameStr ; - wxString *arg11 = (wxString *) &arg11_defvalue ; - bool result; - wxPoint temp7 ; - wxSize temp8 ; - bool temp11 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - PyObject * obj9 = 0 ; - PyObject * obj10 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|OOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - arg6 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - if (obj6) { - { - arg7 = &temp7; - if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; - } - } - if (obj7) { - { - arg8 = &temp8; - if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail; - } - } - if (obj8) { - arg9 = (long) SWIG_AsLong(obj8); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj9) { - if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg10 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj10) { - { - arg11 = wxString_in_helper(obj10); - if (arg11 == NULL) SWIG_fail; - temp11 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp11) - delete arg11; - } - return resultobj; - fail: - { - if (temp11) - delete arg11; - } - return NULL; -} - - -static PyObject *_wrap_Slider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSlider *arg1 = (wxSlider *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSlider const *)arg1)->GetValue(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Slider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSlider *arg1 = (wxSlider *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "value", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetValue(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Slider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSlider *arg1 = (wxSlider *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "minValue",(char *) "maxValue", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetRange(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Slider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSlider *arg1 = (wxSlider *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSlider const *)arg1)->GetMin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Slider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSlider *arg1 = (wxSlider *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSlider const *)arg1)->GetMax(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Slider_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSlider *arg1 = (wxSlider *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "minValue", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMin(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Slider_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSlider *arg1 = (wxSlider *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "maxValue", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMax(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Slider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSlider *arg1 = (wxSlider *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "lineSize", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetLineSize(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Slider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSlider *arg1 = (wxSlider *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pageSize", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPageSize(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Slider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSlider *arg1 = (wxSlider *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSlider const *)arg1)->GetLineSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Slider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSlider *arg1 = (wxSlider *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSlider const *)arg1)->GetPageSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Slider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSlider *arg1 = (wxSlider *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "lenPixels", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetThumbLength(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Slider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSlider *arg1 = (wxSlider *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSlider const *)arg1)->GetThumbLength(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Slider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSlider *arg1 = (wxSlider *) 0 ; - int arg2 ; - int arg3 = (int) 1 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetTickFreq(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Slider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSlider *arg1 = (wxSlider *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSlider const *)arg1)->GetTickFreq(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Slider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSlider *arg1 = (wxSlider *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ClearTicks(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Slider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSlider *arg1 = (wxSlider *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "tickPos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetTick(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Slider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSlider *arg1 = (wxSlider *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ClearSel(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Slider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSlider *arg1 = (wxSlider *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSlider const *)arg1)->GetSelEnd(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Slider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSlider *arg1 = (wxSlider *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSlider const *)arg1)->GetSelStart(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Slider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSlider *arg1 = (wxSlider *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "min",(char *) "max", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSelection(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * Slider_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_ToggleButtonNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_ToggleButtonNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_ToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) 0 ; - wxValidator const &arg7_defvalue = wxDefaultValidator ; - wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; - wxString const &arg8_defvalue = wxPyToggleButtonNameStr ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - wxToggleButton *result; - bool temp3 = False ; - wxPoint temp4 ; - wxSize temp5 ; - bool temp8 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg7 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); - { - if (temp3) - delete arg3; - } - { - if (temp8) - delete arg8; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp8) - delete arg8; - } - return NULL; -} - - -static PyObject *_wrap_new_PreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToggleButton *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxToggleButton *)new wxToggleButton(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * ToggleButton_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_NOTEBOOK_NAME_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only."); - return 1; -} - - -static PyObject *_wrap_NOTEBOOK_NAME_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_BookCtrl_GetPageCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; - size_t result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetPageCount",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (size_t)((wxBookCtrl const *)arg1)->GetPageCount(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BookCtrl_GetPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; - size_t arg2 ; - wxWindow *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPage",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)(arg1)->GetPage(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BookCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetSelection",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxBookCtrl const *)arg1)->GetSelection(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BookCtrl_SetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; - size_t arg2 ; - wxString *arg3 = 0 ; - bool result; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n",(char *) "strText", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_BookCtrl_GetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; - size_t arg2 ; - wxString result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageText",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxBookCtrl const *)arg1)->GetPageText(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BookCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; - wxImageList *arg2 = (wxImageList *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "imageList", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetImageList(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BookCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; - wxImageList *arg2 = (wxImageList *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "imageList", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, - SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AssignImageList(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BookCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; - wxImageList *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetImageList",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxImageList *)((wxBookCtrl const *)arg1)->GetImageList(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BookCtrl_GetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; - size_t arg2 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageImage",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxBookCtrl const *)arg1)->GetPageImage(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BookCtrl_SetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; - size_t arg2 ; - int arg3 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n",(char *) "imageId", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetPageImage(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BookCtrl_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; - wxSize *arg2 = 0 ; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetPageSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPageSize((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BookCtrl_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; - wxSize *arg2 = 0 ; - wxSize result; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sizePage", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxBookCtrl const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BookCtrl_DeletePage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; - size_t arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_DeletePage",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->DeletePage(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BookCtrl_RemovePage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; - size_t arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_RemovePage",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->RemovePage(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BookCtrl_DeleteAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_DeleteAllPages",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->DeleteAllPages(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BookCtrl_AddPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - wxString *arg3 = 0 ; - bool arg4 = (bool) False ; - int arg5 = (int) -1 ; - bool result; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrl_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - arg4 = (bool) SWIG_AsBool(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_BookCtrl_InsertPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; - size_t arg2 ; - wxWindow *arg3 = (wxWindow *) 0 ; - wxString *arg4 = 0 ; - bool arg5 = (bool) False ; - int arg6 = (int) -1 ; - bool result; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrl_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - if (obj4) { - arg5 = (bool) SWIG_AsBool(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - arg6 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_BookCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; - size_t arg2 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetSelection",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->SetSelection(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BookCtrl_AdvanceSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; - bool arg2 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "forward", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrl_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AdvanceSelection(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * BookCtrl_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrl, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_BookCtrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEventType arg1 = (wxEventType) wxEVT_NULL ; - int arg2 = (int) 0 ; - int arg3 = (int) -1 ; - int arg4 = (int) -1 ; - wxBookCtrlEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if (obj0) { - arg1 = (wxEventType) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxBookCtrlEvent *)new wxBookCtrlEvent(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BookCtrlEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetSelection",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxBookCtrlEvent const *)arg1)->GetSelection(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BookCtrlEvent_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "nSel", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSelection(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BookCtrlEvent_GetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetOldSelection",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxBookCtrlEvent const *)arg1)->GetOldSelection(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BookCtrlEvent_SetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "nOldSel", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetOldSelection(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * BookCtrlEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Notebook(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) -1 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) 0 ; - wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ; - wxString *arg6 = (wxString *) &arg6_defvalue ; - wxNotebook *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp6 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - { - arg6 = wxString_in_helper(obj5); - if (arg6 == NULL) SWIG_fail; - temp6 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp6) - delete arg6; - } - return resultobj; - fail: - { - if (temp6) - delete arg6; - } - return NULL; -} - - -static PyObject *_wrap_new_PreNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNotebook *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxNotebook *)new wxNotebook(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Notebook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNotebook *arg1 = (wxNotebook *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) 0 ; - wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - bool result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_Notebook_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNotebook *arg1 = (wxNotebook *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxNotebook const *)arg1)->GetRowCount(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Notebook_SetPadding(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNotebook *arg1 = (wxNotebook *) 0 ; - wxSize *arg2 = 0 ; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "padding", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPadding((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Notebook_SetTabSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNotebook *arg1 = (wxNotebook *) 0 ; - wxSize *arg2 = 0 ; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetTabSize((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Notebook_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNotebook *arg1 = (wxNotebook *) 0 ; - wxPoint *arg2 = 0 ; - long *arg3 = (long *) 0 ; - int result; - wxPoint temp2 ; - long temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNotebook *arg1 = (wxNotebook *) 0 ; - wxSize *arg2 = 0 ; - wxSize result; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sizePage", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * Notebook_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_NotebookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEventType arg1 = (wxEventType) wxEVT_NULL ; - int arg2 = (int) 0 ; - int arg3 = (int) -1 ; - int arg4 = (int) -1 ; - wxNotebookEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if (obj0) { - arg1 = (wxEventType) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * NotebookEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Listbook(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) -1 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) 0 ; - wxString const &arg6_defvalue = wxPyEmptyString ; - wxString *arg6 = (wxString *) &arg6_defvalue ; - wxListbook *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp6 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - { - arg6 = wxString_in_helper(obj5); - if (arg6 == NULL) SWIG_fail; - temp6 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); - { - if (temp6) - delete arg6; - } - return resultobj; - fail: - { - if (temp6) - delete arg6; - } - return NULL; -} - - -static PyObject *_wrap_new_PreListbook(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListbook *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxListbook *)new wxListbook(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Listbook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListbook *arg1 = (wxListbook *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) 0 ; - wxString const &arg7_defvalue = wxPyEmptyString ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - bool result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_Listbook_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListbook *arg1 = (wxListbook *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxListbook const *)arg1)->IsVertical(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * Listbook_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ListbookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEventType arg1 = (wxEventType) wxEVT_NULL ; - int arg2 = (int) 0 ; - int arg3 = (int) -1 ; - int arg4 = (int) -1 ; - wxListbookEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if (obj0) { - arg1 = (wxEventType) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbookEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * ListbookEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_BookCtrlSizer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; - wxBookCtrlSizer *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "nb", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlSizer, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RecalcSizes(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->CalcMin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; - wxBookCtrl *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxBookCtrl *)(arg1)->GetControl(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrl, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject * BookCtrlSizer_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_NotebookSizer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNotebook *arg1 = (wxNotebook *) 0 ; - wxNotebookSizer *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "nb", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxNotebookSizer *)new wxNotebookSizer(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookSizer, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RecalcSizes(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->CalcMin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; - wxNotebook *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxNotebook *)(arg1)->GetNotebook(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * NotebookSizer_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetId(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - wxControl *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxControl *)(arg1)->GetControl(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - wxToolBarBase *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxToolBarBase *)(arg1)->GetToolBar(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->IsButton(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->IsControl(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->IsSeparator(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetStyle(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetKind(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->IsEnabled(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->IsToggled(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->CanBeToggled(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - wxBitmap *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxBitmap const &_result_ref = (arg1)->GetNormalBitmap(); - result = (wxBitmap *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxBitmap* resultptr = new wxBitmap(*result); - resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - wxBitmap *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap(); - result = (wxBitmap *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxBitmap* resultptr = new wxBitmap(*result); - resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - wxBitmap result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetBitmap(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxBitmap * resultptr; - resultptr = new wxBitmap((wxBitmap &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetLabel(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetShortHelp(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetLongHelp(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - bool arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "enable", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Enable(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Toggle(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - bool arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "toggle", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetToggle(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - wxString *arg2 = 0 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "help", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - wxString *arg2 = 0 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "help", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - wxBitmap *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bmp", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetNormalBitmap((wxBitmap const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - wxBitmap *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bmp", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "label", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetLabel((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Detach(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - wxToolBarBase *arg2 = (wxToolBarBase *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "tbar", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Attach(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxToolBarToolBase_GetClientData(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "clientData", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxToolBarToolBase_SetClientData(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * ToolBarToolBase_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - wxBitmap *arg4 = 0 ; - wxBitmap const &arg5_defvalue = wxNullBitmap ; - wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ; - int arg6 = (int) wxITEM_NORMAL ; - wxString const &arg7_defvalue = wxPyEmptyString ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - wxString const &arg8_defvalue = wxPyEmptyString ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - PyObject *arg9 = (PyObject *) NULL ; - wxToolBarToolBase *result; - bool temp3 = False ; - bool temp7 = False ; - bool temp8 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg4 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if (obj4) { - if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg5 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj5) { - arg6 = (wxItemKind) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - if (obj8) { - arg9 = obj8; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp3) - delete arg3; - } - { - if (temp7) - delete arg7; - } - { - if (temp8) - delete arg8; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp7) - delete arg7; - } - { - if (temp8) - delete arg8; - } - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - size_t arg2 ; - int arg3 ; - wxString *arg4 = 0 ; - wxBitmap *arg5 = 0 ; - wxBitmap const &arg6_defvalue = wxNullBitmap ; - wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ; - int arg7 = (int) wxITEM_NORMAL ; - wxString const &arg8_defvalue = wxPyEmptyString ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - wxString const &arg9_defvalue = wxPyEmptyString ; - wxString *arg9 = (wxString *) &arg9_defvalue ; - PyObject *arg10 = (PyObject *) NULL ; - wxToolBarToolBase *result; - bool temp4 = False ; - bool temp8 = False ; - bool temp9 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - PyObject * obj9 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg5 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if (obj5) { - if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg6 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj6) { - arg7 = (wxItemKind) SWIG_AsInt(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - if (obj8) { - { - arg9 = wxString_in_helper(obj8); - if (arg9 == NULL) SWIG_fail; - temp9 = True; - } - } - if (obj9) { - arg10 = obj9; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,(wxItemKind )arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp4) - delete arg4; - } - { - if (temp8) - delete arg8; - } - { - if (temp9) - delete arg9; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - { - if (temp8) - delete arg8; - } - { - if (temp9) - delete arg9; - } - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ; - wxToolBarToolBase *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "tool", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxToolBarToolBase *)(arg1)->AddTool(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - size_t arg2 ; - wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ; - wxToolBarToolBase *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos",(char *) "tool", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_AddControl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - wxControl *arg2 = (wxControl *) 0 ; - wxToolBarToolBase *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "control", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxToolBarToolBase *)(arg1)->AddControl(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - size_t arg2 ; - wxControl *arg3 = (wxControl *) 0 ; - wxToolBarToolBase *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos",(char *) "control", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_FindControl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int arg2 ; - wxControl *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxControl *)(arg1)->FindControl(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - wxToolBarToolBase *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxToolBarToolBase *)(arg1)->AddSeparator(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - size_t arg2 ; - wxToolBarToolBase *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int arg2 ; - wxToolBarToolBase *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - size_t arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->DeleteToolByPos(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->DeleteTool(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ClearTools(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_Realize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Realize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int arg2 ; - bool arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "enable", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->EnableTool(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int arg2 ; - bool arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "toggle", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ToggleTool(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int arg2 ; - bool arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "toggle", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetToggle(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int arg2 ; - PyObject *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int arg2 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "clientData", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxToolBarBase_SetToolClientData(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int arg2 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetToolState(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetToolEnabled(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "helpString", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int arg2 ; - wxString result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetToolShortHelp(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "helpString", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int arg2 ; - wxString result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetToolLongHelp(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMargins(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - wxSize *arg2 = 0 ; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMargins((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "packing", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetToolPacking(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "separation", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetToolSeparation(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetToolMargins(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetMargins(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetToolPacking(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetToolSeparation(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "nRows", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetRows(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rows",(char *) "cols", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMaxRowsCols(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetMaxRows(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetMaxCols(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - wxSize *arg2 = 0 ; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetToolBitmapSize((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetToolBitmapSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetToolSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int arg2 ; - int arg3 ; - wxToolBarToolBase *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_FindById(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int arg2 ; - wxToolBarToolBase *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "toolid", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->IsVertical(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * ToolBarBase_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; - wxString const &arg6_defvalue = wxPyToolBarNameStr ; - wxString *arg6 = (wxString *) &arg6_defvalue ; - wxToolBar *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp6 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - { - arg6 = wxString_in_helper(obj5); - if (arg6 == NULL) SWIG_fail; - temp6 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp6) - delete arg6; - } - return resultobj; - fail: - { - if (temp6) - delete arg6; - } - return NULL; -} - - -static PyObject *_wrap_new_PreToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBar *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxToolBar *)new wxToolBar(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBar *arg1 = (wxToolBar *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; - wxString const &arg7_defvalue = wxPyToolBarNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - bool result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBar *arg1 = (wxToolBar *) 0 ; - int arg2 ; - int arg3 ; - wxToolBarToolBase *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * ToolBar_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_ListCtrlNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_ListCtrlNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_ListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColour const &arg1_defvalue = wxNullColour ; - wxColour *arg1 = (wxColour *) &arg1_defvalue ; - wxColour const &arg2_defvalue = wxNullColour ; - wxColour *arg2 = (wxColour *) &arg2_defvalue ; - wxFont const &arg3_defvalue = wxNullFont ; - wxFont *arg3 = (wxFont *) &arg3_defvalue ; - wxListItemAttr *result; - wxColour temp1 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "colText",(char *) "colBack",(char *) "font", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; - if (obj0) { - { - arg1 = &temp1; - if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; - } - } - if (obj1) { - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - } - if (obj2) { - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colText", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetTextColour((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colBack", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetBackgroundColour((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; - wxFont *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "font", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFont((wxFont const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->HasTextColour(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->HasBackgroundColour(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->HasFont(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; - wxColour result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetTextColour(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; - wxColour result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetBackgroundColour(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; - wxFont result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetFont(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxFont * resultptr; - resultptr = new wxFont((wxFont &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItemAttr_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxListItemAttr_Destroy(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * ListItemAttr_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxListItem *)new wxListItem(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Clear(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ClearAttributes(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "mask", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMask(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetId(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "col", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetColumn(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "state", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetState(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "stateMask", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetStateMask(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "text", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetText((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "image", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetImage(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetData(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "width", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetWidth(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "align", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxListColumnFormat) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetAlign((wxListColumnFormat )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colText", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetTextColour((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colBack", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetBackgroundColour((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - wxFont *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "font", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFont((wxFont const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->GetMask(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->GetId(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetColumn(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->GetState(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = (arg1)->GetText(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetImage(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->GetData(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetWidth(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetAlign(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - wxListItemAttr *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxListItemAttr *)(arg1)->GetAttributes(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->HasAttributes(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - wxColour result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxListItem const *)arg1)->GetTextColour(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - wxColour result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxListItem const *)arg1)->GetBackgroundColour(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - wxFont result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxListItem const *)arg1)->GetFont(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxFont * resultptr; - resultptr = new wxFont((wxFont &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_mask", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_mask = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (long) ((arg1)->m_mask); - - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_itemId", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_itemId = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (long) ((arg1)->m_itemId); - - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_col", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_col = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->m_col); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_state", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_state = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (long) ((arg1)->m_state); - - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_stateMask", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_stateMask = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (long) ((arg1)->m_stateMask); - - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - wxString *arg2 = (wxString *) 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_text", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (arg1) (arg1)->m_text = *arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (wxString *)& ((arg1)->m_text); - - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_image", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_image = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->m_image); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_data = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (long) ((arg1)->m_data); - - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_format", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_format = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->m_format); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_width", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_width = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->m_width); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * ListItem_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ListEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEventType arg1 = (wxEventType) wxEVT_NULL ; - int arg2 = (int) 0 ; - wxListEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "commandType",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (wxEventType) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxListEvent *)new wxListEvent(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_code", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_code = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->m_code); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_oldItemIndex", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_oldItemIndex = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (long) ((arg1)->m_oldItemIndex); - - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_itemIndex", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_itemIndex = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (long) ((arg1)->m_itemIndex); - - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_col", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_col = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->m_col); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - wxPoint *arg2 = (wxPoint *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_pointDrag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (arg1) (arg1)->m_pointDrag = *arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - wxPoint *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (wxPoint *)& ((arg1)->m_pointDrag); - - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - wxListItem *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (wxListItem *)& ((arg1)->m_item); - - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetKeyCode(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->GetIndex(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetColumn(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetPoint(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = (arg1)->GetLabel(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = (arg1)->GetText(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetImage(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->GetData(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->GetMask(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - wxListItem *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxListItem const &_result_ref = (arg1)->GetItem(); - result = (wxListItem *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItem, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->GetCacheFrom(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->GetCacheTo(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxListEvent const *)arg1)->IsEditCancelled(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "editCancelled", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetEditCanceled(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * ListEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) -1 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) wxLC_ICON ; - wxValidator const &arg6_defvalue = wxDefaultValidator ; - wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; - wxString const &arg7_defvalue = wxPyListCtrlNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - wxPyListCtrl *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg6 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_new_PreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyListCtrl *)new wxPyListCtrl(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 = (int) -1 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxLC_ICON ; - wxValidator const &arg7_defvalue = wxDefaultValidator ; - wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; - wxString const &arg8_defvalue = wxPyListCtrlNameStr ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - bool result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp8 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg7 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp8) - delete arg8; - } - return resultobj; - fail: - { - if (temp8) - delete arg8; - } - return NULL; -} - - -static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - wxColour *arg2 = 0 ; - bool result; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "col", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - wxColour *arg2 = 0 ; - bool result; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "col", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - int arg2 ; - wxListItem *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "col", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - int arg2 ; - wxListItem *arg3 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "col",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetColumn(arg2,*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - int arg2 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "col", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - int arg2 ; - int arg3 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "col",(char *) "width", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetColumnWidth(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - wxRect result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyListCtrl const *)arg1)->GetViewRect(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxRect * resultptr; - resultptr = new wxRect((wxRect &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - int arg3 = (int) 0 ; - wxListItem *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "itemId",(char *) "col", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - wxListItem *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "info", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetItem(*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - int arg3 ; - wxString *arg4 = 0 ; - int arg5 = (int) -1 ; - long result; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_ListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - long arg3 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "stateMask", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - long arg3 ; - long arg4 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (long) SWIG_AsLong(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetItemState(arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - int arg3 ; - int arg4 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - wxString result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - wxString *arg3 = 0 ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "str", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetItemText(arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_ListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - long result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - long arg3 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetItemData(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - wxPoint result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxPyListCtrl_GetItemPosition(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - int arg3 = (int) wxLIST_RECT_BOUNDS ; - wxRect result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "code", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxRect * resultptr; - resultptr = new wxRect((wxRect &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - wxPoint *arg3 = 0 ; - bool result; - wxPoint temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxPyListCtrl const *)arg1)->GetItemCount(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyListCtrl const *)arg1)->GetItemSpacing(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - int arg2 ; - bool arg3 = (bool) False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "spacing",(char *) "isSmall", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetItemSpacing(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - wxColour result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyListCtrl const *)arg1)->GetTextColour(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "col", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetTextColour((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxPyListCtrl const *)arg1)->GetTopItem(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - bool arg3 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "style",(char *) "add", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSingleStyle(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetWindowStyleFlag(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - int arg3 = (int) wxLIST_NEXT_ALL ; - int arg4 = (int) wxLIST_STATE_DONTCARE ; - long result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - int arg2 ; - wxImageList *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "which", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - wxImageList *arg2 = (wxImageList *) 0 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "imageList",(char *) "which", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetImageList(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - wxImageList *arg2 = (wxImageList *) 0 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "imageList",(char *) "which", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, - SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AssignImageList(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_InReportView(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_InReportView",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyListCtrl const *)arg1)->InReportView(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RefreshItem(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - long arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RefreshItems(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - int arg2 = (int) wxLIST_ALIGN_DEFAULT ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Arrange(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->DeleteItem(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->DeleteAllItems(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "col", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->DeleteColumn(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->DeleteAllColumns(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ClearAll(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->EditLabel(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->EnsureVisible(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - wxString *arg3 = 0 ; - bool arg4 = (bool) False ; - long result; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - arg4 = (bool) SWIG_AsBool(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_ListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - long arg3 ; - long result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "start",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->FindItem(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - wxPoint *arg3 = 0 ; - int arg4 ; - long result; - wxPoint temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - wxPoint *arg2 = 0 ; - int *arg3 = 0 ; - long result; - wxPoint temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "point", NULL - }; - - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - wxListItem *arg2 = 0 ; - long result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "info", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->InsertItem(*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - wxString *arg3 = 0 ; - long result; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "index",(char *) "label", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - int arg3 ; - long result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "index",(char *) "imageIndex", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->InsertItem(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - wxString *arg3 = 0 ; - int arg4 ; - long result; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - wxListItem *arg3 = 0 ; - long result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "col",(char *) "info", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->InsertColumn(arg2,*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - wxString *arg3 = 0 ; - int arg4 = (int) wxLIST_FORMAT_LEFT ; - int arg5 = (int) -1 ; - long result; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "count", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetItemCount(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - int arg2 ; - int arg3 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "dx",(char *) "dy", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->ScrollList(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - wxColour *arg3 = 0 ; - wxColour temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "col", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = &temp3; - if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - wxColour result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - wxColour *arg3 = 0 ; - wxColour temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "col", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = &temp3; - if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - wxColour result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "func", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxPyListCtrl_SortItems(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; - wxVisualAttributes result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "variant", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (wxWindowVariant) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxPyListCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxVisualAttributes * resultptr; - resultptr = new wxVisualAttributes((wxVisualAttributes &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * ListCtrl_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ListView(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) -1 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) wxLC_REPORT ; - wxValidator const &arg6_defvalue = wxDefaultValidator ; - wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; - wxString const &arg7_defvalue = wxPyListCtrlNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - wxListView *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg6 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_new_PreListView(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListView *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxListView *)new wxListView(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListView *arg1 = (wxListView *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 = (int) -1 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxLC_REPORT ; - wxValidator const &arg7_defvalue = wxDefaultValidator ; - wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; - wxString const &arg8_defvalue = wxPyListCtrlNameStr ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - bool result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp8 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg7 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp8) - delete arg8; - } - return resultobj; - fail: - { - if (temp8) - delete arg8; - } - return NULL; -} - - -static PyObject *_wrap_ListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListView *arg1 = (wxListView *) 0 ; - long arg2 ; - bool arg3 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n",(char *) "on", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Select(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListView *arg1 = (wxListView *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "index", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Focus(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListView *arg1 = (wxListView *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxListView const *)arg1)->GetFocusedItem(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListView *arg1 = (wxListView *) 0 ; - long arg2 ; - long result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxListView const *)arg1)->GetNextSelected(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListView *arg1 = (wxListView *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxListView const *)arg1)->GetFirstSelected(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListView *arg1 = (wxListView *) 0 ; - long arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "index", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->IsSelected(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListView *arg1 = (wxListView *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "col",(char *) "image", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetColumnImage(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListView *arg1 = (wxListView *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "col", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ClearColumnImage(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * ListView_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_TreeCtrlNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_TreeCtrlNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTreeItemId *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxTreeItemId *)new wxTreeItemId(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTreeItemId const *)arg1)->IsOk(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeItemId___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; - wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeItemId___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; - wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; - void *arg2 = (void *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_pItem", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,&arg2,0,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; - if (arg1) (arg1)->m_pItem = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; - void *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (void *) ((arg1)->m_pItem); - - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject * TreeItemId_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_TreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - PyObject *arg1 = (PyObject *) NULL ; - wxPyTreeItemData *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "obj", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = obj0; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)(arg1)->GetData(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "obj", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetData(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; - wxTreeItemId *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxTreeItemId const &_result_ref = (arg1)->GetId(); - result = (wxTreeItemId *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; - wxTreeItemId *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetId((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeItemData_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxPyTreeItemData_Destroy(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * TreeItemData_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEventType arg1 = (wxEventType) wxEVT_NULL ; - int arg2 = (int) 0 ; - wxTreeEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "commandType",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (wxEventType) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; - wxTreeItemId result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxTreeEvent const *)arg1)->GetItem(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTreeItemId * resultptr; - resultptr = new wxTreeItemId((wxTreeItemId &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeEvent_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; - wxTreeItemId *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetItem((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; - wxTreeItemId result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxTreeEvent const *)arg1)->GetOldItem(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTreeItemId * resultptr; - resultptr = new wxTreeItemId((wxTreeItemId &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; - wxTreeItemId *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetOldItem((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxTreeEvent const *)arg1)->GetPoint(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeEvent_SetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPoint((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; - wxKeyEvent *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent(); - result = (wxKeyEvent *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxTreeEvent const *)arg1)->GetKeyCode(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; - wxKeyEvent *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "evt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeEvent_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "label", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetLabel((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "editCancelled", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetEditCanceled(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "toolTip", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetToolTip((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject * TreeEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_TreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) -1 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) wxTR_DEFAULT_STYLE ; - wxValidator const &arg6_defvalue = wxDefaultValidator ; - wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; - wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - wxPyTreeCtrl *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg6 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_new_PreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyTreeCtrl *)new wxPyTreeCtrl(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 = (int) -1 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxTR_DEFAULT_STYLE ; - wxValidator const &arg7_defvalue = wxDefaultValidator ; - wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; - wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - bool result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp8 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg7 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp8) - delete arg8; - } - return resultobj; - fail: - { - if (temp8) - delete arg8; - } - return NULL; -} - - -static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - size_t result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - unsigned int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedInt((unsigned int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - unsigned int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "indent", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetIndent(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - unsigned int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedInt((unsigned int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - unsigned int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "spacing", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSpacing(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxImageList *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxImageList *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxImageList *arg2 = (wxImageList *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "imageList", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetImageList(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxImageList *arg2 = (wxImageList *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "imageList", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetStateImageList(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxImageList *arg2 = (wxImageList *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "imageList", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, - SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AssignImageList(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxImageList *arg2 = (wxImageList *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "imageList", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, - SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AssignStateImageList(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - wxString result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - int arg3 = (int) wxTreeItemIcon_Normal ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "which", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if (obj2) { - arg3 = (wxTreeItemIcon) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - wxPyTreeItemData *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - wxColour result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - wxColour result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - wxFont result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxFont * resultptr; - resultptr = new wxFont((wxFont &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - wxString *arg3 = 0 ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "text", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - int arg3 ; - int arg4 = (int) wxTreeItemIcon_Normal ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - arg4 = (wxTreeItemIcon) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyTreeItemData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "obj", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - bool arg3 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "has", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - bool arg3 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "bold", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - wxColour *arg3 = 0 ; - wxColour temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "col", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - arg3 = &temp3; - if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - wxColour *arg3 = 0 ; - wxColour temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "col", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - arg3 = &temp3; - if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - wxFont *arg3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "font", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - bool arg3 = (bool) True ; - size_t result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "recursively", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyTreeCtrl const *)arg1)->GetRootItem(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTreeItemId * resultptr; - resultptr = new wxTreeItemId((wxTreeItemId &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyTreeCtrl const *)arg1)->GetSelection(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTreeItemId * resultptr; - resultptr = new wxTreeItemId((wxTreeItemId &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - wxTreeItemId result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTreeItemId * resultptr; - resultptr = new wxTreeItemId((wxTreeItemId &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - void *arg3 = (void *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "cookie", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - wxTreeItemId result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTreeItemId * resultptr; - resultptr = new wxTreeItemId((wxTreeItemId &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - wxTreeItemId result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTreeItemId * resultptr; - resultptr = new wxTreeItemId((wxTreeItemId &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - wxTreeItemId result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTreeItemId * resultptr; - resultptr = new wxTreeItemId((wxTreeItemId &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTreeItemId * resultptr; - resultptr = new wxTreeItemId((wxTreeItemId &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - wxTreeItemId result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTreeItemId * resultptr; - resultptr = new wxTreeItemId((wxTreeItemId &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - wxTreeItemId result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTreeItemId * resultptr; - resultptr = new wxTreeItemId((wxTreeItemId &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxString *arg2 = 0 ; - int arg3 = (int) -1 ; - int arg4 = (int) -1 ; - wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ; - wxTreeItemId result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj4) { - if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPyTreeItemData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTreeItemId * resultptr; - resultptr = new wxTreeItemId((wxTreeItemId &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - wxString *arg3 = 0 ; - int arg4 = (int) -1 ; - int arg5 = (int) -1 ; - wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; - wxTreeItemId result; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTreeItemId * resultptr; - resultptr = new wxTreeItemId((wxTreeItemId &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - wxTreeItemId *arg3 = 0 ; - wxString *arg4 = 0 ; - int arg5 = (int) -1 ; - int arg6 = (int) -1 ; - wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; - wxTreeItemId result; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - arg6 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTreeItemId * resultptr; - resultptr = new wxTreeItemId((wxTreeItemId &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); - } - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - size_t arg3 ; - wxString *arg4 = 0 ; - int arg5 = (int) -1 ; - int arg6 = (int) -1 ; - wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; - wxTreeItemId result; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - arg3 = (size_t) SWIG_AsUnsignedLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - arg6 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTreeItemId * resultptr; - resultptr = new wxTreeItemId((wxTreeItemId &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); - } - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - wxString *arg3 = 0 ; - int arg4 = (int) -1 ; - int arg5 = (int) -1 ; - wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; - wxTreeItemId result; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTreeItemId * resultptr; - resultptr = new wxTreeItemId((wxTreeItemId &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Delete((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DeleteChildren((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DeleteAllItems(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Expand((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Collapse((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Toggle((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Unselect(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->UnselectItem((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->UnselectAll(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - bool arg3 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "select", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->EnsureVisible((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ScrollTo((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->EditLabel((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTextCtrl *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SortChildren((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxPoint *arg2 = 0 ; - int *arg3 = 0 ; - wxTreeItemId result; - wxPoint temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "point", NULL - }; - - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTreeItemId * resultptr; - resultptr = new wxTreeItemId((wxTreeItemId &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - bool arg3 = (bool) False ; - PyObject *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "textOnly", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; - wxVisualAttributes result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "variant", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (wxWindowVariant) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxPyTreeCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxVisualAttributes * resultptr; - resultptr = new wxVisualAttributes((wxVisualAttributes &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * TreeCtrl_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_DirDialogDefaultFolderStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only."); - return 1; -} - - -static PyObject *_wrap_DirDialogDefaultFolderStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_GenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) (int)-1 ; - wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; - wxString const &arg7_defvalue = wxPyEmptyString ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - int arg8 = (int) 0 ; - wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ; - wxString *arg9 = (wxString *) &arg9_defvalue ; - wxGenericDirCtrl *result; - bool temp3 = False ; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - bool temp9 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int const) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - if (obj7) { - arg8 = (int) SWIG_AsInt(obj7); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj8) { - { - arg9 = wxString_in_helper(obj8); - if (arg9 == NULL) SWIG_fail; - temp9 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); - { - if (temp3) - delete arg3; - } - { - if (temp7) - delete arg7; - } - { - if (temp9) - delete arg9; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp7) - delete arg7; - } - { - if (temp9) - delete arg9; - } - return NULL; -} - - -static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDirCtrl *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGenericDirCtrl *)new wxGenericDirCtrl(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 = (int) (int)-1 ; - wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ; - wxString *arg4 = (wxString *) &arg4_defvalue ; - wxPoint const &arg5_defvalue = wxDefaultPosition ; - wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; - wxSize const &arg6_defvalue = wxDefaultSize ; - wxSize *arg6 = (wxSize *) &arg6_defvalue ; - long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; - wxString const &arg8_defvalue = wxPyEmptyString ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - int arg9 = (int) 0 ; - wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ; - wxString *arg10 = (wxString *) &arg10_defvalue ; - bool result; - bool temp4 = False ; - wxPoint temp5 ; - wxSize temp6 ; - bool temp8 = False ; - bool temp10 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - PyObject * obj9 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (int const) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - { - arg6 = &temp6; - if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; - } - } - if (obj6) { - arg7 = (long) SWIG_AsLong(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - if (obj8) { - arg9 = (int) SWIG_AsInt(obj8); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj9) { - { - arg10 = wxString_in_helper(obj9); - if (arg10 == NULL) SWIG_fail; - temp10 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp4) - delete arg4; - } - { - if (temp8) - delete arg8; - } - { - if (temp10) - delete arg10; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - { - if (temp8) - delete arg8; - } - { - if (temp10) - delete arg10; - } - return NULL; -} - - -static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; - wxString *arg2 = 0 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "path", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->ExpandPath((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "path", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDefaultPath((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxGenericDirCtrl const *)arg1)->GetPath(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxGenericDirCtrl const *)arg1)->GetFilePath(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "path", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPath((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "show", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ShowHidden(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetShowHidden(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxGenericDirCtrl const *)arg1)->GetFilter(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "filter", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFilter((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFilterIndex(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; - wxTreeItemId result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetRootId(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTreeItemId * resultptr; - resultptr = new wxTreeItemId((wxTreeItemId &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; - wxPyTreeCtrl *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; - wxDirFilterListCtrl *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; - wxTreeItemId arg2 ; - wxString *arg3 = 0 ; - bool *arg4 = 0 ; - wxTreeItemId result; - wxTreeItemId *argp2 ; - bool temp3 = False ; - bool temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parentId",(char *) "path", NULL - }; - - arg4 = &temp4; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; - arg2 = *argp2; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTreeItemId * resultptr; - resultptr = new wxTreeItemId((wxTreeItemId &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); - } - { - PyObject *o = PyInt_FromLong((long) (*arg4)); - resultobj = t_output_helper(resultobj,o); - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DoResize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ReCreateTree(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * GenericDirCtrl_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_DirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; - int arg2 = (int) (int)-1 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) 0 ; - wxDirFilterListCtrl *result; - wxPoint temp3 ; - wxSize temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int const) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDirFilterListCtrl *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; - wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ; - int arg3 = (int) (int)-1 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) 0 ; - bool result; - wxPoint temp4 ; - wxSize temp5 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGenericDirCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (int const) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; - wxString *arg2 = 0 ; - int arg3 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->FillFilterList((wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject * DirFilterListCtrl_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PyControl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) 0 ; - wxValidator const &arg6_defvalue = wxDefaultValidator ; - wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; - wxString const &arg7_defvalue = wxPyControlNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - wxPyControl *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int const) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg6 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_new_PrePyControl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyControl *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyControl",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyControl *)new wxPyControl(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyControl *arg1 = (wxPyControl *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyControl *arg1 = (wxPyControl *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyControl *arg1 = (wxPyControl *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 = (int) wxSIZE_AUTO ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - if (obj5) { - arg6 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyControl *arg1 = (wxPyControl *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_DoSetClientSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyControl *arg1 = (wxPyControl *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_DoSetVirtualSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyControl *arg1 = (wxPyControl *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyControl *arg1 = (wxPyControl *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyControl *arg1 = (wxPyControl *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyControl *arg1 = (wxPyControl *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyControl *arg1 = (wxPyControl *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyControl const *)arg1)->base_DoGetBestSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyControl_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyControl *arg1 = (wxPyControl *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_InitDialog(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyControl *arg1 = (wxPyControl *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_TransferDataToWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyControl *arg1 = (wxPyControl *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_TransferDataFromWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyControl_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyControl *arg1 = (wxPyControl *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_Validate(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyControl *arg1 = (wxPyControl *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyControl *arg1 = (wxPyControl *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyControl *arg1 = (wxPyControl *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyControl const *)arg1)->base_GetMaxSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyControl_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyControl *arg1 = (wxPyControl *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "child", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_AddChild(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyControl *arg1 = (wxPyControl *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "child", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_RemoveChild(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyControl_base_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyControl *arg1 = (wxPyControl *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_ShouldInheritColours",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_ShouldInheritColours(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyControl_base_ApplyParentThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyControl *arg1 = (wxPyControl *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "c", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * PyControl_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_HelpEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEventType arg1 = (wxEventType) wxEVT_NULL ; - int arg2 = (int) 0 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxHelpEvent *result; - wxPoint temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "type",(char *) "winid",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; - if (obj0) { - arg1 = (wxEventType) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_HelpEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxHelpEvent const *)arg1)->GetPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_HelpEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPosition((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_HelpEvent_GetLink(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_HelpEvent_SetLink(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "link", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetLink((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_HelpEvent_GetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_HelpEvent_SetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "target", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetTarget((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject * HelpEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) NULL ; - bool arg2 = (bool) True ; - wxContextHelp *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "window",(char *) "doNow", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxContextHelp *)new wxContextHelp(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelp, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxContextHelp *arg1 = (wxContextHelp *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxContextHelp *arg1 = (wxContextHelp *) 0 ; - wxWindow *arg2 = (wxWindow *) NULL ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "window", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->BeginContextHelp(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxContextHelp *arg1 = (wxContextHelp *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->EndContextHelp(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * ContextHelp_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ContextHelpButton(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) wxID_CONTEXT_HELP ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) wxBU_AUTODRAW ; - wxContextHelpButton *result; - wxPoint temp3 ; - wxSize temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelpButton, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * ContextHelpButton_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_HelpProvider_Set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; - wxHelpProvider *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "helpProvider", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxHelpProvider *)wxHelpProvider::Set(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_HelpProvider_Get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxHelpProvider *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxHelpProvider *)wxHelpProvider::Get(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_HelpProvider_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "window", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetHelp((wxWindow const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "window", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->ShowHelp(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_HelpProvider_AddHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - wxString *arg3 = 0 ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "window",(char *) "text", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AddHelp(arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "text", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AddHelp(arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "window", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RemoveHelp(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_HelpProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxHelpProvider_Destroy(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * HelpProvider_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_SimpleHelpProvider(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSimpleHelpProvider *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSimpleHelpProvider, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * SimpleHelpProvider_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = 0 ; - wxCursor const &arg2_defvalue = wxNullCursor ; - wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; - wxGenericDragImage *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "image",(char *) "cursor", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if (obj1) { - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_DragIcon(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIcon *arg1 = 0 ; - wxCursor const &arg2_defvalue = wxNullCursor ; - wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; - wxGenericDragImage *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "image",(char *) "cursor", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if (obj1) { - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_DragString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxCursor const &arg2_defvalue = wxNullCursor ; - wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; - wxGenericDragImage *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "str",(char *) "cursor", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - if (obj1) { - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_new_DragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = 0 ; - wxTreeItemId *arg2 = 0 ; - wxGenericDragImage *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "treeCtrl",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_DragListItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = 0 ; - long arg2 ; - wxGenericDragImage *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "listCtrl",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; - wxBitmap *arg2 = (wxBitmap *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bitmap", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetBackingBitmap(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; - wxPoint *arg2 = 0 ; - wxWindow *arg3 = (wxWindow *) 0 ; - bool arg4 = (bool) False ; - wxRect *arg5 = (wxRect *) NULL ; - bool result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj3) { - arg4 = (bool) SWIG_AsBool(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj4) { - if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; - wxPoint *arg2 = 0 ; - wxWindow *arg3 = (wxWindow *) 0 ; - wxWindow *arg4 = (wxWindow *) 0 ; - bool result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->EndDrag(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; - wxPoint *arg2 = 0 ; - bool result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Move((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Show(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Hide(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; - wxPoint *arg2 = 0 ; - wxRect result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxRect * resultptr; - resultptr = new wxRect((wxRect &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DragImage_DoDrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; - wxDC *arg2 = 0 ; - wxPoint *arg3 = 0 ; - bool result; - wxPoint temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "dc",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; - wxDC *arg2 = 0 ; - wxMemoryDC *arg3 = 0 ; - wxRect *arg4 = 0 ; - wxRect *arg5 = 0 ; - bool result; - wxRect temp4 ; - wxRect temp5 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMemoryDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - arg4 = &temp4; - if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; - } - { - arg5 = &temp5; - if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint *arg3 = 0 ; - bool arg4 ; - bool arg5 ; - bool result; - wxPoint temp2 ; - wxPoint temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - arg4 = (bool) SWIG_AsBool(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (bool) SWIG_AsBool(obj4); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * DragImage_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyMethodDef SwigMethods[] = { - { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS }, - { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS }, - { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS }, - { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS }, - { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS }, - { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS }, - { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS }, - { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS }, - { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS }, - { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS }, - { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS }, - { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS }, - { (char *)"new_TextAttr", _wrap_new_TextAttr, METH_VARARGS }, - { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS }, - { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS }, - { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS }, - { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS }, - { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS }, - { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS }, - { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS }, - { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS }, - { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS }, - { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS }, - { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS }, - { (char *)"BookCtrl_GetPageCount", (PyCFunction) _wrap_BookCtrl_GetPageCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrl_GetPage", (PyCFunction) _wrap_BookCtrl_GetPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrl_GetSelection", (PyCFunction) _wrap_BookCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrl_SetPageText", (PyCFunction) _wrap_BookCtrl_SetPageText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrl_GetPageText", (PyCFunction) _wrap_BookCtrl_GetPageText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrl_SetImageList", (PyCFunction) _wrap_BookCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrl_AssignImageList", (PyCFunction) _wrap_BookCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrl_GetImageList", (PyCFunction) _wrap_BookCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrl_GetPageImage", (PyCFunction) _wrap_BookCtrl_GetPageImage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrl_SetPageImage", (PyCFunction) _wrap_BookCtrl_SetPageImage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrl_SetPageSize", (PyCFunction) _wrap_BookCtrl_SetPageSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrl_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrl_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrl_DeletePage", (PyCFunction) _wrap_BookCtrl_DeletePage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrl_RemovePage", (PyCFunction) _wrap_BookCtrl_RemovePage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrl_DeleteAllPages", (PyCFunction) _wrap_BookCtrl_DeleteAllPages, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrl_AddPage", (PyCFunction) _wrap_BookCtrl_AddPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrl_InsertPage", (PyCFunction) _wrap_BookCtrl_InsertPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrl_SetSelection", (PyCFunction) _wrap_BookCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrl_AdvanceSelection", (PyCFunction) _wrap_BookCtrl_AdvanceSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrl_swigregister", BookCtrl_swigregister, METH_VARARGS }, - { (char *)"new_BookCtrlEvent", (PyCFunction) _wrap_new_BookCtrlEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrlEvent_GetSelection", (PyCFunction) _wrap_BookCtrlEvent_GetSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrlEvent_SetSelection", (PyCFunction) _wrap_BookCtrlEvent_SetSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrlEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrlEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrlEvent_swigregister", BookCtrlEvent_swigregister, METH_VARARGS }, - { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS }, - { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS }, - { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS }, - { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS }, - { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS }, - { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS }, - { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS }, - { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS }, - { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS }, - { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS }, - { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS }, - { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS }, - { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_InReportView", (PyCFunction) _wrap_ListCtrl_InReportView, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS }, - { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS }, - { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS }, - { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS }, - { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS }, - { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS }, - { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS }, - { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS }, - { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PrePyControl", (PyCFunction) _wrap_new_PrePyControl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyControl_base_ShouldInheritColours", (PyCFunction) _wrap_PyControl_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyControl_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyControl_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS }, - { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS }, - { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS }, - { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS }, - { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS }, - { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS }, - { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS }, - { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS }, - { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS }, - { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS }, - { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS }, - { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS }, - { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS }, - { NULL, NULL } -}; - - -/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ - -static void *_p_wxNotebookEventTo_p_wxBookCtrlEvent(void *x) { - return (void *)((wxBookCtrlEvent *) ((wxNotebookEvent *) x)); -} -static void *_p_wxListbookEventTo_p_wxBookCtrlEvent(void *x) { - return (void *)((wxBookCtrlEvent *) ((wxListbookEvent *) x)); -} -static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { - return (void *)((wxSizer *) ((wxBoxSizer *) x)); -} -static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { - return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); -} -static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { - return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); -} -static void *_p_wxGridSizerTo_p_wxSizer(void *x) { - return (void *)((wxSizer *) ((wxGridSizer *) x)); -} -static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { - return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); -} -static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) { - return (void *)((wxSizer *) ((wxNotebookSizer *) x)); -} -static void *_p_wxPySizerTo_p_wxSizer(void *x) { - return (void *)((wxSizer *) ((wxPySizer *) x)); -} -static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) { - return (void *)((wxSizer *) ((wxBookCtrlSizer *) x)); -} -static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); -} -static void *_p_wxMenuEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxMenuEvent *) x)); -} -static void *_p_wxCloseEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxCloseEvent *) x)); -} -static void *_p_wxMouseEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxMouseEvent *) x)); -} -static void *_p_wxEraseEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxEraseEvent *) x)); -} -static void *_p_wxTreeEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); -} -static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); -} -static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); -} -static void *_p_wxScrollEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); -} -static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x)); -} -static void *_p_wxBookCtrlEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); -} -static void *_p_wxPyEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxPyEvent *) x)); -} -static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); -} -static void *_p_wxListEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); -} -static void *_p_wxNotebookEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); -} -static void *_p_wxListbookEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); -} -static void *_p_wxHelpEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x)); -} -static void *_p_wxIdleEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxIdleEvent *) x)); -} -static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); -} -static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); -} -static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); -} -static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxIconizeEvent *) x)); -} -static void *_p_wxActivateEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxActivateEvent *) x)); -} -static void *_p_wxSizeEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxSizeEvent *) x)); -} -static void *_p_wxMoveEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxMoveEvent *) x)); -} -static void *_p_wxPaintEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxPaintEvent *) x)); -} -static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); -} -static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); -} -static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); -} -static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); -} -static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); -} -static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); -} -static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); -} -static void *_p_wxFocusEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxFocusEvent *) x)); -} -static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); -} -static void *_p_wxShowEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxShowEvent *) x)); -} -static void *_p_wxCommandEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxCommandEvent *) x)); -} -static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); -} -static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); -} -static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); -} -static void *_p_wxKeyEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxKeyEvent *) x)); -} -static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); -} -static void *_p_wxSpinEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); -} -static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) { - return (void *)((wxItemContainer *) ((wxComboBox *) x)); -} -static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) { - return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); -} -static void *_p_wxChoiceTo_p_wxItemContainer(void *x) { - return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x)); -} -static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { - return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); -} -static void *_p_wxListBoxTo_p_wxItemContainer(void *x) { - return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x)); -} -static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) { - return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); -} -static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) { - return (void *)((wxPyListCtrl *) ((wxListView *) x)); -} -static void *_p_wxCheckListBoxTo_p_wxControl(void *x) { - return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); -} -static void *_p_wxListBoxTo_p_wxControl(void *x) { - return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x)); -} -static void *_p_wxChoiceTo_p_wxControl(void *x) { - return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x)); -} -static void *_p_wxToolBarTo_p_wxControl(void *x) { - return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x)); -} -static void *_p_wxStaticBitmapTo_p_wxControl(void *x) { - return (void *)((wxControl *) ((wxStaticBitmap *) x)); -} -static void *_p_wxComboBoxTo_p_wxControl(void *x) { - return (void *)((wxControl *) ((wxComboBox *) x)); -} -static void *_p_wxSpinCtrlTo_p_wxControl(void *x) { - return (void *)((wxControl *) ((wxSpinCtrl *) x)); -} -static void *_p_wxStaticBoxTo_p_wxControl(void *x) { - return (void *)((wxControl *) ((wxStaticBox *) x)); -} -static void *_p_wxPyListCtrlTo_p_wxControl(void *x) { - return (void *)((wxControl *) ((wxPyListCtrl *) x)); -} -static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) { - return (void *)((wxControl *) ((wxPyTreeCtrl *) x)); -} -static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) { - return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); -} -static void *_p_wxScrollBarTo_p_wxControl(void *x) { - return (void *)((wxControl *) ((wxScrollBar *) x)); -} -static void *_p_wxBookCtrlTo_p_wxControl(void *x) { - return (void *)((wxControl *) ((wxBookCtrl *) x)); -} -static void *_p_wxRadioButtonTo_p_wxControl(void *x) { - return (void *)((wxControl *) ((wxRadioButton *) x)); -} -static void *_p_wxToggleButtonTo_p_wxControl(void *x) { - return (void *)((wxControl *) ((wxToggleButton *) x)); -} -static void *_p_wxGaugeTo_p_wxControl(void *x) { - return (void *)((wxControl *) ((wxGauge *) x)); -} -static void *_p_wxToolBarBaseTo_p_wxControl(void *x) { - return (void *)((wxControl *) ((wxToolBarBase *) x)); -} -static void *_p_wxBitmapButtonTo_p_wxControl(void *x) { - return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x)); -} -static void *_p_wxButtonTo_p_wxControl(void *x) { - return (void *)((wxControl *) ((wxButton *) x)); -} -static void *_p_wxSpinButtonTo_p_wxControl(void *x) { - return (void *)((wxControl *) ((wxSpinButton *) x)); -} -static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) { - return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); -} -static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { - return (void *)((wxControl *) ((wxControlWithItems *) x)); -} -static void *_p_wxRadioBoxTo_p_wxControl(void *x) { - return (void *)((wxControl *) ((wxRadioBox *) x)); -} -static void *_p_wxNotebookTo_p_wxControl(void *x) { - return (void *)((wxControl *) (wxBookCtrl *) ((wxNotebook *) x)); -} -static void *_p_wxListbookTo_p_wxControl(void *x) { - return (void *)((wxControl *) (wxBookCtrl *) ((wxListbook *) x)); -} -static void *_p_wxCheckBoxTo_p_wxControl(void *x) { - return (void *)((wxControl *) ((wxCheckBox *) x)); -} -static void *_p_wxTextCtrlTo_p_wxControl(void *x) { - return (void *)((wxControl *) ((wxTextCtrl *) x)); -} -static void *_p_wxListViewTo_p_wxControl(void *x) { - return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x)); -} -static void *_p_wxSliderTo_p_wxControl(void *x) { - return (void *)((wxControl *) ((wxSlider *) x)); -} -static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) { - return (void *)((wxControl *) ((wxGenericDirCtrl *) x)); -} -static void *_p_wxPyControlTo_p_wxControl(void *x) { - return (void *)((wxControl *) ((wxPyControl *) x)); -} -static void *_p_wxStaticLineTo_p_wxControl(void *x) { - return (void *)((wxControl *) ((wxStaticLine *) x)); -} -static void *_p_wxStaticTextTo_p_wxControl(void *x) { - return (void *)((wxControl *) ((wxStaticText *) x)); -} -static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) { - return (void *)((wxToolBarBase *) ((wxToolBar *) x)); -} -static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) { - return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x)); -} -static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) { - return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x)); -} -static void *_p_wxBookCtrlEventTo_p_wxNotifyEvent(void *x) { - return (void *)((wxNotifyEvent *) ((wxBookCtrlEvent *) x)); -} -static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) { - return (void *)((wxNotifyEvent *) ((wxListEvent *) x)); -} -static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) { - return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x)); -} -static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) { - return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxNotebookEvent *) x)); -} -static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) { - return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxListbookEvent *) x)); -} -static void *_p_wxBookCtrlTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrl *) x)); -} -static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); -} -static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) ((wxValidator *) x)); -} -static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); -} -static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); -} -static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) ((wxMenu *) x)); -} -static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x)); -} -static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x)); -} -static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) ((wxWindow *) x)); -} -static void *_p_wxControlTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); -} -static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x)); -} -static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); -} -static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x)); -} -static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); -} -static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x)); -} -static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) ((wxPyApp *) x)); -} -static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); -} -static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x)); -} -static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); -} -static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x)); -} -static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x)); -} -static void *_p_wxListbookTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); -} -static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); -} -static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x)); -} -static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x)); -} -static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); -} -static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); -} -static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); -} -static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); -} -static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); -} -static void *_p_wxListViewTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); -} -static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); -} -static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x)); -} -static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x)); -} -static void *_p_wxSliderTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x)); -} -static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x)); -} -static void *_p_wxButtonTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x)); -} -static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); -} -static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); -} -static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x)); -} -static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) { - return (void *)((wxListBox *) ((wxCheckListBox *) x)); -} -static void *_p_wxListbookTo_p_wxBookCtrl(void *x) { - return (void *)((wxBookCtrl *) ((wxListbook *) x)); -} -static void *_p_wxNotebookTo_p_wxBookCtrl(void *x) { - return (void *)((wxBookCtrl *) ((wxNotebook *) x)); -} -static void *_p_wxBitmapButtonTo_p_wxButton(void *x) { - return (void *)((wxButton *) ((wxBitmapButton *) x)); -} -static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) { - return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x)); -} -static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) { - return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x)); -} -static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) { - return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x)); -} -static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxLayoutConstraints *) x)); -} -static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); -} -static void *_p_wxSizerItemTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxSizerItem *) x)); -} -static void *_p_wxScrollEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); -} -static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); -} -static void *_p_wxTextUrlEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x)); -} -static void *_p_wxBookCtrlEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); -} -static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); -} -static void *_p_wxBoxSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); -} -static void *_p_wxSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxSizer *) x)); -} -static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); -} -static void *_p_wxCheckBoxTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x)); -} -static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); -} -static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); -} -static void *_p_wxEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxEvent *) x)); -} -static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); -} -static void *_p_wxGridSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); -} -static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); -} -static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); -} -static void *_p_wxPyListCtrlTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); -} -static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); -} -static void *_p_wxPaintEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); -} -static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); -} -static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); -} -static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); -} -static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); -} -static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); -} -static void *_p_wxStaticLineTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x)); -} -static void *_p_wxControlTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); -} -static void *_p_wxPyControlTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x)); -} -static void *_p_wxGaugeTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x)); -} -static void *_p_wxRadioButtonTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x)); -} -static void *_p_wxToggleButtonTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x)); -} -static void *_p_wxToolBarBaseTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x)); -} -static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); -} -static void *_p_wxChoiceTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); -} -static void *_p_wxFSFileTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxFSFile *) x)); -} -static void *_p_wxPySizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); -} -static void *_p_wxListViewTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); -} -static void *_p_wxTextCtrlTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x)); -} -static void *_p_wxNotebookTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); -} -static void *_p_wxPyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); -} -static void *_p_wxNotifyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); -} -static void *_p_wxListbookTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); -} -static void *_p_wxShowEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); -} -static void *_p_wxStaticBitmapTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); -} -static void *_p_wxSliderTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x)); -} -static void *_p_wxMenuItemTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxMenuItem *) x)); -} -static void *_p_wxIdleEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); -} -static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); -} -static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); -} -static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); -} -static void *_p_wxIconizeEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); -} -static void *_p_wxSizeEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); -} -static void *_p_wxMoveEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); -} -static void *_p_wxActivateEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); -} -static void *_p_wxStaticBoxTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x)); -} -static void *_p_wxContextHelpTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxContextHelp *) x)); -} -static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); -} -static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); -} -static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); -} -static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); -} -static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); -} -static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); -} -static void *_p_wxANIHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); -} -static void *_p_wxCURHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); -} -static void *_p_wxICOHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); -} -static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); -} -static void *_p_wxImageHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxImageHandler *) x)); -} -static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); -} -static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxEvtHandler *) x)); -} -static void *_p_wxListEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); -} -static void *_p_wxListBoxTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); -} -static void *_p_wxCheckListBoxTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); -} -static void *_p_wxBookCtrlTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrl *) x)); -} -static void *_p_wxButtonTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x)); -} -static void *_p_wxBitmapButtonTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); -} -static void *_p_wxSpinButtonTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x)); -} -static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); -} -static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxAcceleratorTable *) x)); -} -static void *_p_wxScrollBarTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x)); -} -static void *_p_wxRadioBoxTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x)); -} -static void *_p_wxComboBoxTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x)); -} -static void *_p_wxHelpEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x)); -} -static void *_p_wxListItemTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxListItem *) x)); -} -static void *_p_wxImageTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxImage *) x)); -} -static void *_p_wxNotebookSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x)); -} -static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); -} -static void *_p_wxSpinEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); -} -static void *_p_wxGenericDragImageTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxGenericDragImage *) x)); -} -static void *_p_wxSpinCtrlTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); -} -static void *_p_wxNotebookEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); -} -static void *_p_wxListbookEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); -} -static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); -} -static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); -} -static void *_p_wxKeyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); -} -static void *_p_wxWindowTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); -} -static void *_p_wxMenuTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); -} -static void *_p_wxMenuBarTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); -} -static void *_p_wxFileSystemTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxFileSystem *) x)); -} -static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); -} -static void *_p_wxMenuEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); -} -static void *_p_wxPyAppTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); -} -static void *_p_wxCloseEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); -} -static void *_p_wxMouseEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); -} -static void *_p_wxEraseEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); -} -static void *_p_wxTreeEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); -} -static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); -} -static void *_p_wxCommandEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); -} -static void *_p_wxStaticTextTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x)); -} -static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); -} -static void *_p_wxFocusEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); -} -static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); -} -static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); -} -static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxToolBarToolBase *) x)); -} -static void *_p_wxToolBarTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); -} -static void *_p_wxPyValidatorTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); -} -static void *_p_wxValidatorTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); -} -static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x)); -} -static void *_p_wxBookCtrlTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxBookCtrl *) x)); -} -static void *_p_wxMenuBarTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) ((wxMenuBar *) x)); -} -static void *_p_wxToolBarTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); -} -static void *_p_wxToggleButtonTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x)); -} -static void *_p_wxRadioButtonTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x)); -} -static void *_p_wxPyControlTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x)); -} -static void *_p_wxControlTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) ((wxControl *) x)); -} -static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x)); -} -static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); -} -static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x)); -} -static void *_p_wxComboBoxTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x)); -} -static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x)); -} -static void *_p_wxScrollBarTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x)); -} -static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); -} -static void *_p_wxGaugeTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x)); -} -static void *_p_wxStaticLineTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x)); -} -static void *_p_wxListbookTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxListbook *) x)); -} -static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x)); -} -static void *_p_wxCheckBoxTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x)); -} -static void *_p_wxRadioBoxTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x)); -} -static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); -} -static void *_p_wxChoiceTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x)); -} -static void *_p_wxListBoxTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x)); -} -static void *_p_wxListViewTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x)); -} -static void *_p_wxNotebookTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); -} -static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x)); -} -static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x)); -} -static void *_p_wxStaticTextTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x)); -} -static void *_p_wxStaticBoxTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x)); -} -static void *_p_wxSliderTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x)); -} -static void *_p_wxSpinButtonTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x)); -} -static void *_p_wxButtonTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxButton *) x)); -} -static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x)); -} -static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); -} -static void *_p_wxTextCtrlTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x)); -} -static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); -} -static void *_p_wxBookCtrlEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlEvent *) x)); -} -static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x)); -} -static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); -} -static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); -} -static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); -} -static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); -} -static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); -} -static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); -} -static void *_p_wxListEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x)); -} -static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); -} -static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x)); -} -static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x)); -} -static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxHelpEvent *) x)); -} -static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); -} -static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); -} -static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) { - return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x)); -} -static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) { - return (void *)((wxControlWithItems *) ((wxChoice *) x)); -} -static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) { - return (void *)((wxControlWithItems *) ((wxListBox *) x)); -} -static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) { - return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x)); -} -static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { - return (void *)((wxValidator *) ((wxPyValidator *) x)); -} -static swig_type_info _swigt__p_wxTextUrlEvent[] = {{"_p_wxTextUrlEvent", 0, "wxTextUrlEvent *", 0, 0, 0, 0},{"_p_wxTextUrlEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxBookCtrlEvent[] = {{"_p_wxBookCtrlEvent", 0, "wxBookCtrlEvent *", 0, 0, 0, 0},{"_p_wxBookCtrlEvent", 0, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxBookCtrlEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxBookCtrlEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSizer[] = {{"_p_wxSizer", 0, "wxSizer *", 0, 0, 0, 0},{"_p_wxSizer", 0, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxNotebookSizer", _p_wxNotebookSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxBookCtrlSizer", _p_wxBookCtrlSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxCheckBox[] = {{"_p_wxCheckBox", 0, "wxCheckBox *", 0, 0, 0, 0},{"_p_wxCheckBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyTreeCtrl[] = {{"_p_wxPyTreeCtrl", 0, "wxPyTreeCtrl *", 0, 0, 0, 0},{"_p_wxPyTreeCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxGenericDirCtrl[] = {{"_p_wxGenericDirCtrl", 0, "wxGenericDirCtrl *", 0, 0, 0, 0},{"_p_wxGenericDirCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_bool[] = {{"_p_bool", 0, "bool *", 0, 0, 0, 0},{"_p_bool", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyTreeItemData[] = {{"_p_wxPyTreeItemData", 0, "wxPyTreeItemData *", 0, 0, 0, 0},{"_p_wxPyTreeItemData", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxItemContainer[] = {{"_p_wxItemContainer", 0, "wxItemContainer *", 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxItemContainer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyListCtrl[] = {{"_p_wxPyListCtrl", 0, "wxPyListCtrl *", 0, 0, 0, 0},{"_p_wxPyListCtrl", 0, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxPyListCtrl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxDirFilterListCtrl[] = {{"_p_wxDirFilterListCtrl", 0, "wxDirFilterListCtrl *", 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxStaticLine[] = {{"_p_wxStaticLine", 0, "wxStaticLine *", 0, 0, 0, 0},{"_p_wxStaticLine", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0, 0, 0, 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxControl", 0, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyControl[] = {{"_p_wxPyControl", 0, "wxPyControl *", 0, 0, 0, 0},{"_p_wxPyControl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxGauge[] = {{"_p_wxGauge", 0, "wxGauge *", 0, 0, 0, 0},{"_p_wxGauge", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxToolBarBase[] = {{"_p_wxToolBarBase", 0, "wxToolBarBase *", 0, 0, 0, 0},{"_p_wxToolBarBase", 0, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxToolBarBase, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0, 0, 0, 0},{"_p_wxFont", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxToggleButton[] = {{"_p_wxToggleButton", 0, "wxToggleButton *", 0, 0, 0, 0},{"_p_wxToggleButton", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxRadioButton[] = {{"_p_wxRadioButton", 0, "wxRadioButton *", 0, 0, 0, 0},{"_p_wxRadioButton", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxChoice[] = {{"_p_wxChoice", 0, "wxChoice *", 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxChoice, 0, 0, 0, 0, 0},{"_p_wxChoice", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMemoryDC[] = {{"_p_wxMemoryDC", 0, "wxMemoryDC *", 0, 0, 0, 0},{"_p_wxMemoryDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxListItemAttr[] = {{"_p_wxListItemAttr", 0, "wxListItemAttr *", 0, 0, 0, 0},{"_p_wxListItemAttr", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_void[] = {{"_p_void", 0, "void *", 0, 0, 0, 0},{"_p_void", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0, 0, 0, 0},{"_p_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0, 0, 0, 0},{"_p_wxSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0, 0, 0, 0},{"_p_wxDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxListView[] = {{"_p_wxListView", 0, "wxListView *", 0, 0, 0, 0},{"_p_wxListView", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0, 0, 0, 0},{"_p_wxIcon", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxVisualAttributes[] = {{"_p_wxVisualAttributes", 0, "wxVisualAttributes *", 0, 0, 0, 0},{"_p_wxVisualAttributes", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxTextCtrl[] = {{"_p_wxTextCtrl", 0, "wxTextCtrl *", 0, 0, 0, 0},{"_p_wxTextCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxNotebook[] = {{"_p_wxNotebook", 0, "wxNotebook *", 0, 0, 0, 0},{"_p_wxNotebook", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxNotifyEvent[] = {{"_p_wxNotifyEvent", 0, "wxNotifyEvent *", 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0, 0, 0, 0},{"_p_wxArrayString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxListbook[] = {{"_p_wxListbook", 0, "wxListbook *", 0, 0, 0, 0},{"_p_wxListbook", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxStaticBitmap[] = {{"_p_wxStaticBitmap", 0, "wxStaticBitmap *", 0, 0, 0, 0},{"_p_wxStaticBitmap", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSlider[] = {{"_p_wxSlider", 0, "wxSlider *", 0, 0, 0, 0},{"_p_wxSlider", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxStaticBox[] = {{"_p_wxStaticBox", 0, "wxStaticBox *", 0, 0, 0, 0},{"_p_wxStaticBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxArrayInt[] = {{"_p_wxArrayInt", 0, "wxArrayInt *", 0, 0, 0, 0},{"_p_wxArrayInt", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxContextHelp[] = {{"_p_wxContextHelp", 0, "wxContextHelp *", 0, 0, 0, 0},{"_p_wxContextHelp", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0, 0, 0, 0},{"_p_long", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxListEvent[] = {{"_p_wxListEvent", 0, "wxListEvent *", 0, 0, 0, 0},{"_p_wxListEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxCheckListBox[] = {{"_p_wxCheckListBox", 0, "wxCheckListBox *", 0, 0, 0, 0},{"_p_wxCheckListBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxListBox[] = {{"_p_wxListBox", 0, "wxListBox *", 0, 0, 0, 0},{"_p_wxListBox", 0, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxListBox, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxBookCtrl[] = {{"_p_wxBookCtrl", 0, "wxBookCtrl *", 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxBookCtrl, 0, 0, 0, 0, 0},{"_p_wxBookCtrl", 0, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxBookCtrl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSpinButton[] = {{"_p_wxSpinButton", 0, "wxSpinButton *", 0, 0, 0, 0},{"_p_wxSpinButton", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxButton[] = {{"_p_wxButton", 0, "wxButton *", 0, 0, 0, 0},{"_p_wxButton", 0, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxButton, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxButton, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxBitmapButton[] = {{"_p_wxBitmapButton", 0, "wxBitmapButton *", 0, 0, 0, 0},{"_p_wxBitmapButton", 0, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxBitmapButton, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0, 0, 0, 0},{"_p_wxRect", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxContextHelpButton[] = {{"_p_wxContextHelpButton", 0, "wxContextHelpButton *", 0, 0, 0, 0},{"_p_wxContextHelpButton", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxRadioBox[] = {{"_p_wxRadioBox", 0, "wxRadioBox *", 0, 0, 0, 0},{"_p_wxRadioBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxScrollBar[] = {{"_p_wxScrollBar", 0, "wxScrollBar *", 0, 0, 0, 0},{"_p_wxScrollBar", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxTreeItemId[] = {{"_p_wxTreeItemId", 0, "wxTreeItemId *", 0, 0, 0, 0},{"_p_wxTreeItemId", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxComboBox[] = {{"_p_wxComboBox", 0, "wxComboBox *", 0, 0, 0, 0},{"_p_wxComboBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxHelpEvent[] = {{"_p_wxHelpEvent", 0, "wxHelpEvent *", 0, 0, 0, 0},{"_p_wxHelpEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxListItem[] = {{"_p_wxListItem", 0, "wxListItem *", 0, 0, 0, 0},{"_p_wxListItem", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxNotebookSizer[] = {{"_p_wxNotebookSizer", 0, "wxNotebookSizer *", 0, 0, 0, 0},{"_p_wxNotebookSizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSpinEvent[] = {{"_p_wxSpinEvent", 0, "wxSpinEvent *", 0, 0, 0, 0},{"_p_wxSpinEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxGenericDragImage[] = {{"_p_wxGenericDragImage", 0, "wxGenericDragImage *", 0, 0, 0, 0},{"_p_wxGenericDragImage", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSpinCtrl[] = {{"_p_wxSpinCtrl", 0, "wxSpinCtrl *", 0, 0, 0, 0},{"_p_wxSpinCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0, 0, 0, 0},{"_p_wxImageList", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxHelpProvider[] = {{"_p_wxHelpProvider", 0, "wxHelpProvider *", 0, 0, 0, 0},{"_p_wxHelpProvider", 0, 0, 0, 0, 0, 0},{"_p_wxSimpleHelpProvider", _p_wxSimpleHelpProviderTo_p_wxHelpProvider, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxTextAttr[] = {{"_p_wxTextAttr", 0, "wxTextAttr *", 0, 0, 0, 0},{"_p_wxTextAttr", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSimpleHelpProvider[] = {{"_p_wxSimpleHelpProvider", 0, "wxSimpleHelpProvider *", 0, 0, 0, 0},{"_p_wxSimpleHelpProvider", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0, 0, 0, 0},{"_p_wxPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxListbookEvent[] = {{"_p_wxListbookEvent", 0, "wxListbookEvent *", 0, 0, 0, 0},{"_p_wxListbookEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxNotebookEvent[] = {{"_p_wxNotebookEvent", 0, "wxNotebookEvent *", 0, 0, 0, 0},{"_p_wxNotebookEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextHelp", _p_wxContextHelpTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListItem", _p_wxListItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotebookSizer", _p_wxNotebookSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGenericDragImage", _p_wxGenericDragImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolBarToolBase", _p_wxToolBarToolBaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBookCtrlSizer", _p_wxBookCtrlSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0, 0, 0, 0},{"_p_wxCursor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0, 0, 0, 0},{"_p_wxKeyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0, 0, 0, 0},{"_p_wxString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0, 0, 0, 0},{"_p_wxBitmap", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxTreeEvent[] = {{"_p_wxTreeEvent", 0, "wxTreeEvent *", 0, 0, 0, 0},{"_p_wxTreeEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMouseEvent[] = {{"_p_wxMouseEvent", 0, "wxMouseEvent *", 0, 0, 0, 0},{"_p_wxMouseEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", 0, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxStaticText[] = {{"_p_wxStaticText", 0, "wxStaticText *", 0, 0, 0, 0},{"_p_wxStaticText", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxControlWithItems[] = {{"_p_wxControlWithItems", 0, "wxControlWithItems *", 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", 0, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxToolBarToolBase[] = {{"_p_wxToolBarToolBase", 0, "wxToolBarToolBase *", 0, 0, 0, 0},{"_p_wxToolBarToolBase", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0, 0, 0, 0},{"_p_wxColour", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxToolBar[] = {{"_p_wxToolBar", 0, "wxToolBar *", 0, 0, 0, 0},{"_p_wxToolBar", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxBookCtrlSizer[] = {{"_p_wxBookCtrlSizer", 0, "wxBookCtrlSizer *", 0, 0, 0, 0},{"_p_wxBookCtrlSizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxValidator[] = {{"_p_wxValidator", 0, "wxValidator *", 0, 0, 0, 0},{"_p_wxValidator", 0, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxValidator, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; - -static swig_type_info *swig_types_initial[] = { -_swigt__p_wxTextUrlEvent, -_swigt__p_wxBookCtrlEvent, -_swigt__p_wxSizer, -_swigt__p_wxCheckBox, -_swigt__p_wxPyTreeCtrl, -_swigt__p_wxEvent, -_swigt__p_wxGenericDirCtrl, -_swigt__p_bool, -_swigt__p_wxPyTreeItemData, -_swigt__p_wxItemContainer, -_swigt__p_wxPyListCtrl, -_swigt__p_wxDirFilterListCtrl, -_swigt__p_wxStaticLine, -_swigt__p_wxControl, -_swigt__p_wxPyControl, -_swigt__p_wxGauge, -_swigt__p_wxToolBarBase, -_swigt__p_wxFont, -_swigt__p_wxToggleButton, -_swigt__p_wxRadioButton, -_swigt__p_wxChoice, -_swigt__p_wxMemoryDC, -_swigt__p_wxListItemAttr, -_swigt__p_void, -_swigt__p_int, -_swigt__p_wxSize, -_swigt__p_wxDC, -_swigt__p_wxListView, -_swigt__p_wxIcon, -_swigt__p_wxVisualAttributes, -_swigt__p_wxTextCtrl, -_swigt__p_wxNotebook, -_swigt__p_wxNotifyEvent, -_swigt__p_wxArrayString, -_swigt__p_wxListbook, -_swigt__p_wxStaticBitmap, -_swigt__p_wxSlider, -_swigt__p_wxStaticBox, -_swigt__p_wxArrayInt, -_swigt__p_wxContextHelp, -_swigt__p_long, -_swigt__p_wxEvtHandler, -_swigt__p_wxListEvent, -_swigt__p_wxCheckListBox, -_swigt__p_wxListBox, -_swigt__p_wxBookCtrl, -_swigt__p_wxSpinButton, -_swigt__p_wxButton, -_swigt__p_wxBitmapButton, -_swigt__p_wxRect, -_swigt__p_wxContextHelpButton, -_swigt__p_wxRadioBox, -_swigt__p_wxScrollBar, -_swigt__p_char, -_swigt__p_wxTreeItemId, -_swigt__p_wxComboBox, -_swigt__p_wxHelpEvent, -_swigt__p_wxListItem, -_swigt__p_wxNotebookSizer, -_swigt__p_wxSpinEvent, -_swigt__p_wxGenericDragImage, -_swigt__p_wxSpinCtrl, -_swigt__p_wxImageList, -_swigt__p_wxHelpProvider, -_swigt__p_wxTextAttr, -_swigt__p_wxSimpleHelpProvider, -_swigt__p_wxPoint, -_swigt__p_wxListbookEvent, -_swigt__p_wxNotebookEvent, -_swigt__p_wxObject, -_swigt__p_wxCursor, -_swigt__p_wxKeyEvent, -_swigt__p_wxWindow, -_swigt__p_wxString, -_swigt__p_wxBitmap, -_swigt__p_wxTreeEvent, -_swigt__p_wxMouseEvent, -_swigt__p_wxCommandEvent, -_swigt__p_wxStaticText, -_swigt__p_wxControlWithItems, -_swigt__p_wxToolBarToolBase, -_swigt__p_wxColour, -_swigt__p_wxToolBar, -_swigt__p_wxBookCtrlSizer, -_swigt__p_wxValidator, -0 -}; - - -/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ - -static swig_const_info swig_const_table[] = { -{0}}; - -#ifdef __cplusplus -} -#endif - -#ifdef __cplusplus -extern "C" -#endif -SWIGEXPORT(void) SWIG_init(void) { - static PyObject *SWIG_globals = 0; - static int typeinit = 0; - PyObject *m, *d; - int i; - if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); - m = Py_InitModule((char *) SWIG_name, SwigMethods); - d = PyModule_GetDict(m); - - if (!typeinit) { - for (i = 0; swig_types_initial[i]; i++) { - swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); - } - typeinit = 1; - } - SWIG_InstallConstants(d,swig_const_table); - - PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); - SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set); - PyDict_SetItemString(d,"BU_LEFT", SWIG_FromInt((int)wxBU_LEFT)); - PyDict_SetItemString(d,"BU_TOP", SWIG_FromInt((int)wxBU_TOP)); - PyDict_SetItemString(d,"BU_RIGHT", SWIG_FromInt((int)wxBU_RIGHT)); - PyDict_SetItemString(d,"BU_BOTTOM", SWIG_FromInt((int)wxBU_BOTTOM)); - PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_FromInt((int)wxBU_EXACTFIT)); - PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_FromInt((int)wxBU_AUTODRAW)); - SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set); - PyDict_SetItemString(d,"CHK_2STATE", SWIG_FromInt((int)wxCHK_2STATE)); - PyDict_SetItemString(d,"CHK_3STATE", SWIG_FromInt((int)wxCHK_3STATE)); - PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_FromInt((int)wxCHK_ALLOW_3RD_STATE_FOR_USER)); - PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_FromInt((int)wxCHK_UNCHECKED)); - PyDict_SetItemString(d,"CHK_CHECKED", SWIG_FromInt((int)wxCHK_CHECKED)); - PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_FromInt((int)wxCHK_UNDETERMINED)); - SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set); - SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set); - SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set); - PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_FromInt((int)wxGA_HORIZONTAL)); - PyDict_SetItemString(d,"GA_VERTICAL", SWIG_FromInt((int)wxGA_VERTICAL)); - PyDict_SetItemString(d,"GA_SMOOTH", SWIG_FromInt((int)wxGA_SMOOTH)); - PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_FromInt((int)wxGA_PROGRESSBAR)); - SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set); - SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set); - SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set); - SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set); - SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set); - PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_FromInt((int)wxTE_NO_VSCROLL)); - PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_FromInt((int)wxTE_AUTO_SCROLL)); - PyDict_SetItemString(d,"TE_READONLY", SWIG_FromInt((int)wxTE_READONLY)); - PyDict_SetItemString(d,"TE_MULTILINE", SWIG_FromInt((int)wxTE_MULTILINE)); - PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_FromInt((int)wxTE_PROCESS_TAB)); - PyDict_SetItemString(d,"TE_LEFT", SWIG_FromInt((int)wxTE_LEFT)); - PyDict_SetItemString(d,"TE_CENTER", SWIG_FromInt((int)wxTE_CENTER)); - PyDict_SetItemString(d,"TE_RIGHT", SWIG_FromInt((int)wxTE_RIGHT)); - PyDict_SetItemString(d,"TE_CENTRE", SWIG_FromInt((int)wxTE_CENTRE)); - PyDict_SetItemString(d,"TE_RICH", SWIG_FromInt((int)wxTE_RICH)); - PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_FromInt((int)wxTE_PROCESS_ENTER)); - PyDict_SetItemString(d,"TE_PASSWORD", SWIG_FromInt((int)wxTE_PASSWORD)); - PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_FromInt((int)wxTE_AUTO_URL)); - PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_FromInt((int)wxTE_NOHIDESEL)); - PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_FromInt((int)wxTE_DONTWRAP)); - PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_FromInt((int)wxTE_LINEWRAP)); - PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_FromInt((int)wxTE_WORDWRAP)); - PyDict_SetItemString(d,"TE_RICH2", SWIG_FromInt((int)wxTE_RICH2)); - PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_DEFAULT)); - PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_LEFT)); - PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTRE)); - PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTER)); - PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_RIGHT)); - PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_FromInt((int)wxTEXT_ALIGNMENT_JUSTIFIED)); - PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_TEXT_COLOUR)); - PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_BACKGROUND_COLOUR)); - PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_FACE)); - PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_SIZE)); - PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_FromInt((int)wxTEXT_ATTR_FONT_WEIGHT)); - PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_FromInt((int)wxTEXT_ATTR_FONT_ITALIC)); - PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_UNDERLINE)); - PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_FromInt((int)wxTEXT_ATTR_FONT)); - PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_FromInt((int)wxTEXT_ATTR_ALIGNMENT)); - PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_LEFT_INDENT)); - PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_RIGHT_INDENT)); - PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_FromInt((int)wxTEXT_ATTR_TABS)); - PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_FromInt((int)wxTE_HT_UNKNOWN)); - PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_FromInt((int)wxTE_HT_BEFORE)); - PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_FromInt((int)wxTE_HT_ON_TEXT)); - PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_FromInt((int)wxTE_HT_BELOW)); - PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_FromInt((int)wxTE_HT_BEYOND)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN)); - SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set); - SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set); - SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set); - PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_FromInt((int)wxSP_HORIZONTAL)); - PyDict_SetItemString(d,"SP_VERTICAL", SWIG_FromInt((int)wxSP_VERTICAL)); - PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_FromInt((int)wxSP_ARROW_KEYS)); - PyDict_SetItemString(d,"SP_WRAP", SWIG_FromInt((int)wxSP_WRAP)); - PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED)); - SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set); - SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set); - SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set); - SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set); - PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); - SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set); - PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_FromInt((int)wxNB_FIXEDWIDTH)); - PyDict_SetItemString(d,"NB_TOP", SWIG_FromInt((int)wxNB_TOP)); - PyDict_SetItemString(d,"NB_LEFT", SWIG_FromInt((int)wxNB_LEFT)); - PyDict_SetItemString(d,"NB_RIGHT", SWIG_FromInt((int)wxNB_RIGHT)); - PyDict_SetItemString(d,"NB_BOTTOM", SWIG_FromInt((int)wxNB_BOTTOM)); - PyDict_SetItemString(d,"NB_MULTILINE", SWIG_FromInt((int)wxNB_MULTILINE)); - PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_FromInt((int)wxNB_HITTEST_NOWHERE)); - PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_FromInt((int)wxNB_HITTEST_ONICON)); - PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_FromInt((int)wxNB_HITTEST_ONLABEL)); - PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_FromInt((int)wxNB_HITTEST_ONITEM)); - PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)); - PyDict_SetItemString(d,"LB_DEFAULT", SWIG_FromInt((int)wxLB_DEFAULT)); - PyDict_SetItemString(d,"LB_TOP", SWIG_FromInt((int)wxLB_TOP)); - PyDict_SetItemString(d,"LB_BOTTOM", SWIG_FromInt((int)wxLB_BOTTOM)); - PyDict_SetItemString(d,"LB_LEFT", SWIG_FromInt((int)wxLB_LEFT)); - PyDict_SetItemString(d,"LB_RIGHT", SWIG_FromInt((int)wxLB_RIGHT)); - PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_FromInt((int)wxLB_ALIGN_MASK)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING)); - PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_FromInt((int)wxTOOL_STYLE_BUTTON)); - PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_FromInt((int)wxTOOL_STYLE_SEPARATOR)); - PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_FromInt((int)wxTOOL_STYLE_CONTROL)); - PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_FromInt((int)wxTB_HORIZONTAL)); - PyDict_SetItemString(d,"TB_VERTICAL", SWIG_FromInt((int)wxTB_VERTICAL)); - PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_FromInt((int)wxTB_3DBUTTONS)); - PyDict_SetItemString(d,"TB_FLAT", SWIG_FromInt((int)wxTB_FLAT)); - PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_FromInt((int)wxTB_DOCKABLE)); - PyDict_SetItemString(d,"TB_NOICONS", SWIG_FromInt((int)wxTB_NOICONS)); - PyDict_SetItemString(d,"TB_TEXT", SWIG_FromInt((int)wxTB_TEXT)); - PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_FromInt((int)wxTB_NODIVIDER)); - PyDict_SetItemString(d,"TB_NOALIGN", SWIG_FromInt((int)wxTB_NOALIGN)); - PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_FromInt((int)wxTB_HORZ_LAYOUT)); - PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_FromInt((int)wxTB_HORZ_TEXT)); - SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set); - PyDict_SetItemString(d,"LC_VRULES", SWIG_FromInt((int)wxLC_VRULES)); - PyDict_SetItemString(d,"LC_HRULES", SWIG_FromInt((int)wxLC_HRULES)); - PyDict_SetItemString(d,"LC_ICON", SWIG_FromInt((int)wxLC_ICON)); - PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_FromInt((int)wxLC_SMALL_ICON)); - PyDict_SetItemString(d,"LC_LIST", SWIG_FromInt((int)wxLC_LIST)); - PyDict_SetItemString(d,"LC_REPORT", SWIG_FromInt((int)wxLC_REPORT)); - PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_FromInt((int)wxLC_ALIGN_TOP)); - PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_FromInt((int)wxLC_ALIGN_LEFT)); - PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_FromInt((int)wxLC_AUTOARRANGE)); - PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_FromInt((int)wxLC_VIRTUAL)); - PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_FromInt((int)wxLC_EDIT_LABELS)); - PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_FromInt((int)wxLC_NO_HEADER)); - PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_FromInt((int)wxLC_NO_SORT_HEADER)); - PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_FromInt((int)wxLC_SINGLE_SEL)); - PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_FromInt((int)wxLC_SORT_ASCENDING)); - PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_FromInt((int)wxLC_SORT_DESCENDING)); - PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_FromInt((int)wxLC_MASK_TYPE)); - PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_FromInt((int)wxLC_MASK_ALIGN)); - PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_FromInt((int)wxLC_MASK_SORT)); - PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_FromInt((int)wxLIST_MASK_STATE)); - PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_FromInt((int)wxLIST_MASK_TEXT)); - PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_FromInt((int)wxLIST_MASK_IMAGE)); - PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_FromInt((int)wxLIST_MASK_DATA)); - PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_FromInt((int)wxLIST_SET_ITEM)); - PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_FromInt((int)wxLIST_MASK_WIDTH)); - PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_FromInt((int)wxLIST_MASK_FORMAT)); - PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_FromInt((int)wxLIST_STATE_DONTCARE)); - PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_FromInt((int)wxLIST_STATE_DROPHILITED)); - PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_FromInt((int)wxLIST_STATE_FOCUSED)); - PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_FromInt((int)wxLIST_STATE_SELECTED)); - PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_FromInt((int)wxLIST_STATE_CUT)); - PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_FromInt((int)wxLIST_STATE_DISABLED)); - PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_FromInt((int)wxLIST_STATE_FILTERED)); - PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_FromInt((int)wxLIST_STATE_INUSE)); - PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_FromInt((int)wxLIST_STATE_PICKED)); - PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_FromInt((int)wxLIST_STATE_SOURCE)); - PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_FromInt((int)wxLIST_HITTEST_ABOVE)); - PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_FromInt((int)wxLIST_HITTEST_BELOW)); - PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_FromInt((int)wxLIST_HITTEST_NOWHERE)); - PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMICON)); - PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMLABEL)); - PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMRIGHT)); - PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMSTATEICON)); - PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_FromInt((int)wxLIST_HITTEST_TOLEFT)); - PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_FromInt((int)wxLIST_HITTEST_TORIGHT)); - PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_FromInt((int)wxLIST_HITTEST_ONITEM)); - PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_FromInt((int)wxLIST_NEXT_ABOVE)); - PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_FromInt((int)wxLIST_NEXT_ALL)); - PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_FromInt((int)wxLIST_NEXT_BELOW)); - PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_FromInt((int)wxLIST_NEXT_LEFT)); - PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_FromInt((int)wxLIST_NEXT_RIGHT)); - PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_FromInt((int)wxLIST_ALIGN_DEFAULT)); - PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_FromInt((int)wxLIST_ALIGN_LEFT)); - PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_FromInt((int)wxLIST_ALIGN_TOP)); - PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_FromInt((int)wxLIST_ALIGN_SNAP_TO_GRID)); - PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_FromInt((int)wxLIST_FORMAT_LEFT)); - PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_FromInt((int)wxLIST_FORMAT_RIGHT)); - PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_FromInt((int)wxLIST_FORMAT_CENTRE)); - PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_FromInt((int)wxLIST_FORMAT_CENTER)); - PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_FromInt((int)wxLIST_AUTOSIZE)); - PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_FromInt((int)wxLIST_AUTOSIZE_USEHEADER)); - PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_FromInt((int)wxLIST_RECT_BOUNDS)); - PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_FromInt((int)wxLIST_RECT_ICON)); - PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_FromInt((int)wxLIST_RECT_LABEL)); - PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_FromInt((int)wxLIST_FIND_UP)); - PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_FromInt((int)wxLIST_FIND_DOWN)); - PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_FromInt((int)wxLIST_FIND_LEFT)); - PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_FromInt((int)wxLIST_FIND_RIGHT)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED)); - - // Map renamed classes back to their common name for OOR - wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); - - SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set); - PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_FromInt((int)wxTR_NO_BUTTONS)); - PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_FromInt((int)wxTR_HAS_BUTTONS)); - PyDict_SetItemString(d,"TR_NO_LINES", SWIG_FromInt((int)wxTR_NO_LINES)); - PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_FromInt((int)wxTR_LINES_AT_ROOT)); - PyDict_SetItemString(d,"TR_SINGLE", SWIG_FromInt((int)wxTR_SINGLE)); - PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_FromInt((int)wxTR_MULTIPLE)); - PyDict_SetItemString(d,"TR_EXTENDED", SWIG_FromInt((int)wxTR_EXTENDED)); - PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_FromInt((int)wxTR_HAS_VARIABLE_ROW_HEIGHT)); - PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_FromInt((int)wxTR_EDIT_LABELS)); - PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_FromInt((int)wxTR_HIDE_ROOT)); - PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_FromInt((int)wxTR_ROW_LINES)); - PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_FromInt((int)wxTR_FULL_ROW_HIGHLIGHT)); - PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_FromInt((int)wxTR_DEFAULT_STYLE)); - PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_FromInt((int)wxTR_TWIST_BUTTONS)); - PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_FromInt((int)wxTR_MAC_BUTTONS)); - PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_FromInt((int)wxTR_AQUA_BUTTONS)); - PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_FromInt((int)wxTreeItemIcon_Normal)); - PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_FromInt((int)wxTreeItemIcon_Selected)); - PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_FromInt((int)wxTreeItemIcon_Expanded)); - PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_FromInt((int)wxTreeItemIcon_SelectedExpanded)); - PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_FromInt((int)wxTreeItemIcon_Max)); - PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_FromInt((int)wxTREE_HITTEST_ABOVE)); - PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_FromInt((int)wxTREE_HITTEST_BELOW)); - PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_FromInt((int)wxTREE_HITTEST_NOWHERE)); - PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMBUTTON)); - PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMICON)); - PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMINDENT)); - PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLABEL)); - PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMRIGHT)); - PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMSTATEICON)); - PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_FromInt((int)wxTREE_HITTEST_TOLEFT)); - PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_FromInt((int)wxTREE_HITTEST_TORIGHT)); - PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMUPPERPART)); - PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLOWERPART)); - PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_FromInt((int)wxTREE_HITTEST_ONITEM)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP)); - - // Map renamed classes back to their common name for OOR - wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); - wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); - - SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set); - PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_FromInt((int)wxDIRCTRL_DIR_ONLY)); - PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_FromInt((int)wxDIRCTRL_SELECT_FIRST)); - PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_FromInt((int)wxDIRCTRL_SHOW_FILTERS)); - PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_FromInt((int)wxDIRCTRL_3D_INTERNAL)); - PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_FromInt((int)wxDIRCTRL_EDIT_LABELS)); - PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_FromInt((int)wxFRAME_EX_CONTEXTHELP)); - PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_FromInt((int)wxDIALOG_EX_CONTEXTHELP)); - PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP)); - PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP)); - - wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); - -} - diff --git a/wxPython/src/mac/core.py b/wxPython/src/mac/core.py deleted file mode 100644 index 303730f768..0000000000 --- a/wxPython/src/mac/core.py +++ /dev/null @@ -1,9702 +0,0 @@ -# This file was created automatically by SWIG. -# Don't modify this file, modify the SWIG interface instead. - -import _core - -#// Give a reference to the dictionary of this module to the C++ extension -#// code. -_core._wxPySetDictionary(vars()) - -#// A little trick to make 'wx' be a reference to this module so wx.Names can -#// be used here. -import sys as _sys -wx = _sys.modules[__name__] - -NOT_FOUND = _core.NOT_FOUND -VSCROLL = _core.VSCROLL -HSCROLL = _core.HSCROLL -CAPTION = _core.CAPTION -DOUBLE_BORDER = _core.DOUBLE_BORDER -SUNKEN_BORDER = _core.SUNKEN_BORDER -RAISED_BORDER = _core.RAISED_BORDER -BORDER = _core.BORDER -SIMPLE_BORDER = _core.SIMPLE_BORDER -STATIC_BORDER = _core.STATIC_BORDER -TRANSPARENT_WINDOW = _core.TRANSPARENT_WINDOW -NO_BORDER = _core.NO_BORDER -TAB_TRAVERSAL = _core.TAB_TRAVERSAL -WANTS_CHARS = _core.WANTS_CHARS -POPUP_WINDOW = _core.POPUP_WINDOW -CENTER_FRAME = _core.CENTER_FRAME -CENTRE_ON_SCREEN = _core.CENTRE_ON_SCREEN -CENTER_ON_SCREEN = _core.CENTER_ON_SCREEN -ED_CLIENT_MARGIN = _core.ED_CLIENT_MARGIN -ED_BUTTONS_BOTTOM = _core.ED_BUTTONS_BOTTOM -ED_BUTTONS_RIGHT = _core.ED_BUTTONS_RIGHT -ED_STATIC_LINE = _core.ED_STATIC_LINE -EXT_DIALOG_STYLE = _core.EXT_DIALOG_STYLE -CLIP_CHILDREN = _core.CLIP_CHILDREN -CLIP_SIBLINGS = _core.CLIP_SIBLINGS -ALWAYS_SHOW_SB = _core.ALWAYS_SHOW_SB -RETAINED = _core.RETAINED -BACKINGSTORE = _core.BACKINGSTORE -COLOURED = _core.COLOURED -FIXED_LENGTH = _core.FIXED_LENGTH -LB_NEEDED_SB = _core.LB_NEEDED_SB -LB_ALWAYS_SB = _core.LB_ALWAYS_SB -LB_SORT = _core.LB_SORT -LB_SINGLE = _core.LB_SINGLE -LB_MULTIPLE = _core.LB_MULTIPLE -LB_EXTENDED = _core.LB_EXTENDED -LB_OWNERDRAW = _core.LB_OWNERDRAW -LB_HSCROLL = _core.LB_HSCROLL -PROCESS_ENTER = _core.PROCESS_ENTER -PASSWORD = _core.PASSWORD -CB_SIMPLE = _core.CB_SIMPLE -CB_DROPDOWN = _core.CB_DROPDOWN -CB_SORT = _core.CB_SORT -CB_READONLY = _core.CB_READONLY -RA_HORIZONTAL = _core.RA_HORIZONTAL -RA_VERTICAL = _core.RA_VERTICAL -RA_SPECIFY_ROWS = _core.RA_SPECIFY_ROWS -RA_SPECIFY_COLS = _core.RA_SPECIFY_COLS -RB_GROUP = _core.RB_GROUP -RB_SINGLE = _core.RB_SINGLE -SL_HORIZONTAL = _core.SL_HORIZONTAL -SL_VERTICAL = _core.SL_VERTICAL -SL_AUTOTICKS = _core.SL_AUTOTICKS -SL_LABELS = _core.SL_LABELS -SL_LEFT = _core.SL_LEFT -SL_TOP = _core.SL_TOP -SL_RIGHT = _core.SL_RIGHT -SL_BOTTOM = _core.SL_BOTTOM -SL_BOTH = _core.SL_BOTH -SL_SELRANGE = _core.SL_SELRANGE -SB_HORIZONTAL = _core.SB_HORIZONTAL -SB_VERTICAL = _core.SB_VERTICAL -ST_SIZEGRIP = _core.ST_SIZEGRIP -ST_NO_AUTORESIZE = _core.ST_NO_AUTORESIZE -FLOOD_SURFACE = _core.FLOOD_SURFACE -FLOOD_BORDER = _core.FLOOD_BORDER -ODDEVEN_RULE = _core.ODDEVEN_RULE -WINDING_RULE = _core.WINDING_RULE -TOOL_TOP = _core.TOOL_TOP -TOOL_BOTTOM = _core.TOOL_BOTTOM -TOOL_LEFT = _core.TOOL_LEFT -TOOL_RIGHT = _core.TOOL_RIGHT -OK = _core.OK -YES_NO = _core.YES_NO -CANCEL = _core.CANCEL -YES = _core.YES -NO = _core.NO -NO_DEFAULT = _core.NO_DEFAULT -YES_DEFAULT = _core.YES_DEFAULT -ICON_EXCLAMATION = _core.ICON_EXCLAMATION -ICON_HAND = _core.ICON_HAND -ICON_QUESTION = _core.ICON_QUESTION -ICON_INFORMATION = _core.ICON_INFORMATION -ICON_STOP = _core.ICON_STOP -ICON_ASTERISK = _core.ICON_ASTERISK -ICON_MASK = _core.ICON_MASK -ICON_WARNING = _core.ICON_WARNING -ICON_ERROR = _core.ICON_ERROR -FORWARD = _core.FORWARD -BACKWARD = _core.BACKWARD -RESET = _core.RESET -HELP = _core.HELP -MORE = _core.MORE -SETUP = _core.SETUP -SIZE_AUTO_WIDTH = _core.SIZE_AUTO_WIDTH -SIZE_AUTO_HEIGHT = _core.SIZE_AUTO_HEIGHT -SIZE_AUTO = _core.SIZE_AUTO -SIZE_USE_EXISTING = _core.SIZE_USE_EXISTING -SIZE_ALLOW_MINUS_ONE = _core.SIZE_ALLOW_MINUS_ONE -PORTRAIT = _core.PORTRAIT -LANDSCAPE = _core.LANDSCAPE -PRINT_QUALITY_HIGH = _core.PRINT_QUALITY_HIGH -PRINT_QUALITY_MEDIUM = _core.PRINT_QUALITY_MEDIUM -PRINT_QUALITY_LOW = _core.PRINT_QUALITY_LOW -PRINT_QUALITY_DRAFT = _core.PRINT_QUALITY_DRAFT -ID_ANY = _core.ID_ANY -ID_SEPARATOR = _core.ID_SEPARATOR -ID_LOWEST = _core.ID_LOWEST -ID_OPEN = _core.ID_OPEN -ID_CLOSE = _core.ID_CLOSE -ID_NEW = _core.ID_NEW -ID_SAVE = _core.ID_SAVE -ID_SAVEAS = _core.ID_SAVEAS -ID_REVERT = _core.ID_REVERT -ID_EXIT = _core.ID_EXIT -ID_UNDO = _core.ID_UNDO -ID_REDO = _core.ID_REDO -ID_HELP = _core.ID_HELP -ID_PRINT = _core.ID_PRINT -ID_PRINT_SETUP = _core.ID_PRINT_SETUP -ID_PREVIEW = _core.ID_PREVIEW -ID_ABOUT = _core.ID_ABOUT -ID_HELP_CONTENTS = _core.ID_HELP_CONTENTS -ID_HELP_COMMANDS = _core.ID_HELP_COMMANDS -ID_HELP_PROCEDURES = _core.ID_HELP_PROCEDURES -ID_HELP_CONTEXT = _core.ID_HELP_CONTEXT -ID_CLOSE_ALL = _core.ID_CLOSE_ALL -ID_PREFERENCES = _core.ID_PREFERENCES -ID_CUT = _core.ID_CUT -ID_COPY = _core.ID_COPY -ID_PASTE = _core.ID_PASTE -ID_CLEAR = _core.ID_CLEAR -ID_FIND = _core.ID_FIND -ID_DUPLICATE = _core.ID_DUPLICATE -ID_SELECTALL = _core.ID_SELECTALL -ID_DELETE = _core.ID_DELETE -ID_REPLACE = _core.ID_REPLACE -ID_REPLACE_ALL = _core.ID_REPLACE_ALL -ID_PROPERTIES = _core.ID_PROPERTIES -ID_VIEW_DETAILS = _core.ID_VIEW_DETAILS -ID_VIEW_LARGEICONS = _core.ID_VIEW_LARGEICONS -ID_VIEW_SMALLICONS = _core.ID_VIEW_SMALLICONS -ID_VIEW_LIST = _core.ID_VIEW_LIST -ID_VIEW_SORTDATE = _core.ID_VIEW_SORTDATE -ID_VIEW_SORTNAME = _core.ID_VIEW_SORTNAME -ID_VIEW_SORTSIZE = _core.ID_VIEW_SORTSIZE -ID_VIEW_SORTTYPE = _core.ID_VIEW_SORTTYPE -ID_FILE1 = _core.ID_FILE1 -ID_FILE2 = _core.ID_FILE2 -ID_FILE3 = _core.ID_FILE3 -ID_FILE4 = _core.ID_FILE4 -ID_FILE5 = _core.ID_FILE5 -ID_FILE6 = _core.ID_FILE6 -ID_FILE7 = _core.ID_FILE7 -ID_FILE8 = _core.ID_FILE8 -ID_FILE9 = _core.ID_FILE9 -ID_OK = _core.ID_OK -ID_CANCEL = _core.ID_CANCEL -ID_APPLY = _core.ID_APPLY -ID_YES = _core.ID_YES -ID_NO = _core.ID_NO -ID_STATIC = _core.ID_STATIC -ID_FORWARD = _core.ID_FORWARD -ID_BACKWARD = _core.ID_BACKWARD -ID_DEFAULT = _core.ID_DEFAULT -ID_MORE = _core.ID_MORE -ID_SETUP = _core.ID_SETUP -ID_RESET = _core.ID_RESET -ID_CONTEXT_HELP = _core.ID_CONTEXT_HELP -ID_YESTOALL = _core.ID_YESTOALL -ID_NOTOALL = _core.ID_NOTOALL -ID_ABORT = _core.ID_ABORT -ID_RETRY = _core.ID_RETRY -ID_IGNORE = _core.ID_IGNORE -ID_HIGHEST = _core.ID_HIGHEST -OPEN = _core.OPEN -SAVE = _core.SAVE -HIDE_READONLY = _core.HIDE_READONLY -OVERWRITE_PROMPT = _core.OVERWRITE_PROMPT -FILE_MUST_EXIST = _core.FILE_MUST_EXIST -MULTIPLE = _core.MULTIPLE -CHANGE_DIR = _core.CHANGE_DIR -ACCEL_ALT = _core.ACCEL_ALT -ACCEL_CTRL = _core.ACCEL_CTRL -ACCEL_SHIFT = _core.ACCEL_SHIFT -ACCEL_NORMAL = _core.ACCEL_NORMAL -PD_AUTO_HIDE = _core.PD_AUTO_HIDE -PD_APP_MODAL = _core.PD_APP_MODAL -PD_CAN_ABORT = _core.PD_CAN_ABORT -PD_ELAPSED_TIME = _core.PD_ELAPSED_TIME -PD_ESTIMATED_TIME = _core.PD_ESTIMATED_TIME -PD_REMAINING_TIME = _core.PD_REMAINING_TIME -DD_NEW_DIR_BUTTON = _core.DD_NEW_DIR_BUTTON -DD_DEFAULT_STYLE = _core.DD_DEFAULT_STYLE -MENU_TEAROFF = _core.MENU_TEAROFF -MB_DOCKABLE = _core.MB_DOCKABLE -NO_FULL_REPAINT_ON_RESIZE = _core.NO_FULL_REPAINT_ON_RESIZE -FULL_REPAINT_ON_RESIZE = _core.FULL_REPAINT_ON_RESIZE -LI_HORIZONTAL = _core.LI_HORIZONTAL -LI_VERTICAL = _core.LI_VERTICAL -WS_EX_VALIDATE_RECURSIVELY = _core.WS_EX_VALIDATE_RECURSIVELY -WS_EX_BLOCK_EVENTS = _core.WS_EX_BLOCK_EVENTS -WS_EX_TRANSIENT = _core.WS_EX_TRANSIENT -WS_EX_THEMED_BACKGROUND = _core.WS_EX_THEMED_BACKGROUND -WS_EX_PROCESS_IDLE = _core.WS_EX_PROCESS_IDLE -WS_EX_PROCESS_UI_UPDATES = _core.WS_EX_PROCESS_UI_UPDATES -MM_TEXT = _core.MM_TEXT -MM_LOMETRIC = _core.MM_LOMETRIC -MM_HIMETRIC = _core.MM_HIMETRIC -MM_LOENGLISH = _core.MM_LOENGLISH -MM_HIENGLISH = _core.MM_HIENGLISH -MM_TWIPS = _core.MM_TWIPS -MM_ISOTROPIC = _core.MM_ISOTROPIC -MM_ANISOTROPIC = _core.MM_ANISOTROPIC -MM_POINTS = _core.MM_POINTS -MM_METRIC = _core.MM_METRIC -CENTRE = _core.CENTRE -CENTER = _core.CENTER -HORIZONTAL = _core.HORIZONTAL -VERTICAL = _core.VERTICAL -BOTH = _core.BOTH -LEFT = _core.LEFT -RIGHT = _core.RIGHT -UP = _core.UP -DOWN = _core.DOWN -TOP = _core.TOP -BOTTOM = _core.BOTTOM -NORTH = _core.NORTH -SOUTH = _core.SOUTH -WEST = _core.WEST -EAST = _core.EAST -ALL = _core.ALL -ALIGN_NOT = _core.ALIGN_NOT -ALIGN_CENTER_HORIZONTAL = _core.ALIGN_CENTER_HORIZONTAL -ALIGN_CENTRE_HORIZONTAL = _core.ALIGN_CENTRE_HORIZONTAL -ALIGN_LEFT = _core.ALIGN_LEFT -ALIGN_TOP = _core.ALIGN_TOP -ALIGN_RIGHT = _core.ALIGN_RIGHT -ALIGN_BOTTOM = _core.ALIGN_BOTTOM -ALIGN_CENTER_VERTICAL = _core.ALIGN_CENTER_VERTICAL -ALIGN_CENTRE_VERTICAL = _core.ALIGN_CENTRE_VERTICAL -ALIGN_CENTER = _core.ALIGN_CENTER -ALIGN_CENTRE = _core.ALIGN_CENTRE -ALIGN_MASK = _core.ALIGN_MASK -STRETCH_NOT = _core.STRETCH_NOT -SHRINK = _core.SHRINK -GROW = _core.GROW -EXPAND = _core.EXPAND -SHAPED = _core.SHAPED -FIXED_MINSIZE = _core.FIXED_MINSIZE -TILE = _core.TILE -ADJUST_MINSIZE = _core.ADJUST_MINSIZE -BORDER_DEFAULT = _core.BORDER_DEFAULT -BORDER_NONE = _core.BORDER_NONE -BORDER_STATIC = _core.BORDER_STATIC -BORDER_SIMPLE = _core.BORDER_SIMPLE -BORDER_RAISED = _core.BORDER_RAISED -BORDER_SUNKEN = _core.BORDER_SUNKEN -BORDER_DOUBLE = _core.BORDER_DOUBLE -BORDER_MASK = _core.BORDER_MASK -DEFAULT = _core.DEFAULT -DECORATIVE = _core.DECORATIVE -ROMAN = _core.ROMAN -SCRIPT = _core.SCRIPT -SWISS = _core.SWISS -MODERN = _core.MODERN -TELETYPE = _core.TELETYPE -VARIABLE = _core.VARIABLE -FIXED = _core.FIXED -NORMAL = _core.NORMAL -LIGHT = _core.LIGHT -BOLD = _core.BOLD -ITALIC = _core.ITALIC -SLANT = _core.SLANT -SOLID = _core.SOLID -DOT = _core.DOT -LONG_DASH = _core.LONG_DASH -SHORT_DASH = _core.SHORT_DASH -DOT_DASH = _core.DOT_DASH -USER_DASH = _core.USER_DASH -TRANSPARENT = _core.TRANSPARENT -STIPPLE = _core.STIPPLE -BDIAGONAL_HATCH = _core.BDIAGONAL_HATCH -CROSSDIAG_HATCH = _core.CROSSDIAG_HATCH -FDIAGONAL_HATCH = _core.FDIAGONAL_HATCH -CROSS_HATCH = _core.CROSS_HATCH -HORIZONTAL_HATCH = _core.HORIZONTAL_HATCH -VERTICAL_HATCH = _core.VERTICAL_HATCH -JOIN_BEVEL = _core.JOIN_BEVEL -JOIN_MITER = _core.JOIN_MITER -JOIN_ROUND = _core.JOIN_ROUND -CAP_ROUND = _core.CAP_ROUND -CAP_PROJECTING = _core.CAP_PROJECTING -CAP_BUTT = _core.CAP_BUTT -CLEAR = _core.CLEAR -XOR = _core.XOR -INVERT = _core.INVERT -OR_REVERSE = _core.OR_REVERSE -AND_REVERSE = _core.AND_REVERSE -COPY = _core.COPY -AND = _core.AND -AND_INVERT = _core.AND_INVERT -NO_OP = _core.NO_OP -NOR = _core.NOR -EQUIV = _core.EQUIV -SRC_INVERT = _core.SRC_INVERT -OR_INVERT = _core.OR_INVERT -NAND = _core.NAND -OR = _core.OR -SET = _core.SET -WXK_BACK = _core.WXK_BACK -WXK_TAB = _core.WXK_TAB -WXK_RETURN = _core.WXK_RETURN -WXK_ESCAPE = _core.WXK_ESCAPE -WXK_SPACE = _core.WXK_SPACE -WXK_DELETE = _core.WXK_DELETE -WXK_START = _core.WXK_START -WXK_LBUTTON = _core.WXK_LBUTTON -WXK_RBUTTON = _core.WXK_RBUTTON -WXK_CANCEL = _core.WXK_CANCEL -WXK_MBUTTON = _core.WXK_MBUTTON -WXK_CLEAR = _core.WXK_CLEAR -WXK_SHIFT = _core.WXK_SHIFT -WXK_ALT = _core.WXK_ALT -WXK_CONTROL = _core.WXK_CONTROL -WXK_MENU = _core.WXK_MENU -WXK_PAUSE = _core.WXK_PAUSE -WXK_CAPITAL = _core.WXK_CAPITAL -WXK_PRIOR = _core.WXK_PRIOR -WXK_NEXT = _core.WXK_NEXT -WXK_END = _core.WXK_END -WXK_HOME = _core.WXK_HOME -WXK_LEFT = _core.WXK_LEFT -WXK_UP = _core.WXK_UP -WXK_RIGHT = _core.WXK_RIGHT -WXK_DOWN = _core.WXK_DOWN -WXK_SELECT = _core.WXK_SELECT -WXK_PRINT = _core.WXK_PRINT -WXK_EXECUTE = _core.WXK_EXECUTE -WXK_SNAPSHOT = _core.WXK_SNAPSHOT -WXK_INSERT = _core.WXK_INSERT -WXK_HELP = _core.WXK_HELP -WXK_NUMPAD0 = _core.WXK_NUMPAD0 -WXK_NUMPAD1 = _core.WXK_NUMPAD1 -WXK_NUMPAD2 = _core.WXK_NUMPAD2 -WXK_NUMPAD3 = _core.WXK_NUMPAD3 -WXK_NUMPAD4 = _core.WXK_NUMPAD4 -WXK_NUMPAD5 = _core.WXK_NUMPAD5 -WXK_NUMPAD6 = _core.WXK_NUMPAD6 -WXK_NUMPAD7 = _core.WXK_NUMPAD7 -WXK_NUMPAD8 = _core.WXK_NUMPAD8 -WXK_NUMPAD9 = _core.WXK_NUMPAD9 -WXK_MULTIPLY = _core.WXK_MULTIPLY -WXK_ADD = _core.WXK_ADD -WXK_SEPARATOR = _core.WXK_SEPARATOR -WXK_SUBTRACT = _core.WXK_SUBTRACT -WXK_DECIMAL = _core.WXK_DECIMAL -WXK_DIVIDE = _core.WXK_DIVIDE -WXK_F1 = _core.WXK_F1 -WXK_F2 = _core.WXK_F2 -WXK_F3 = _core.WXK_F3 -WXK_F4 = _core.WXK_F4 -WXK_F5 = _core.WXK_F5 -WXK_F6 = _core.WXK_F6 -WXK_F7 = _core.WXK_F7 -WXK_F8 = _core.WXK_F8 -WXK_F9 = _core.WXK_F9 -WXK_F10 = _core.WXK_F10 -WXK_F11 = _core.WXK_F11 -WXK_F12 = _core.WXK_F12 -WXK_F13 = _core.WXK_F13 -WXK_F14 = _core.WXK_F14 -WXK_F15 = _core.WXK_F15 -WXK_F16 = _core.WXK_F16 -WXK_F17 = _core.WXK_F17 -WXK_F18 = _core.WXK_F18 -WXK_F19 = _core.WXK_F19 -WXK_F20 = _core.WXK_F20 -WXK_F21 = _core.WXK_F21 -WXK_F22 = _core.WXK_F22 -WXK_F23 = _core.WXK_F23 -WXK_F24 = _core.WXK_F24 -WXK_NUMLOCK = _core.WXK_NUMLOCK -WXK_SCROLL = _core.WXK_SCROLL -WXK_PAGEUP = _core.WXK_PAGEUP -WXK_PAGEDOWN = _core.WXK_PAGEDOWN -WXK_NUMPAD_SPACE = _core.WXK_NUMPAD_SPACE -WXK_NUMPAD_TAB = _core.WXK_NUMPAD_TAB -WXK_NUMPAD_ENTER = _core.WXK_NUMPAD_ENTER -WXK_NUMPAD_F1 = _core.WXK_NUMPAD_F1 -WXK_NUMPAD_F2 = _core.WXK_NUMPAD_F2 -WXK_NUMPAD_F3 = _core.WXK_NUMPAD_F3 -WXK_NUMPAD_F4 = _core.WXK_NUMPAD_F4 -WXK_NUMPAD_HOME = _core.WXK_NUMPAD_HOME -WXK_NUMPAD_LEFT = _core.WXK_NUMPAD_LEFT -WXK_NUMPAD_UP = _core.WXK_NUMPAD_UP -WXK_NUMPAD_RIGHT = _core.WXK_NUMPAD_RIGHT -WXK_NUMPAD_DOWN = _core.WXK_NUMPAD_DOWN -WXK_NUMPAD_PRIOR = _core.WXK_NUMPAD_PRIOR -WXK_NUMPAD_PAGEUP = _core.WXK_NUMPAD_PAGEUP -WXK_NUMPAD_NEXT = _core.WXK_NUMPAD_NEXT -WXK_NUMPAD_PAGEDOWN = _core.WXK_NUMPAD_PAGEDOWN -WXK_NUMPAD_END = _core.WXK_NUMPAD_END -WXK_NUMPAD_BEGIN = _core.WXK_NUMPAD_BEGIN -WXK_NUMPAD_INSERT = _core.WXK_NUMPAD_INSERT -WXK_NUMPAD_DELETE = _core.WXK_NUMPAD_DELETE -WXK_NUMPAD_EQUAL = _core.WXK_NUMPAD_EQUAL -WXK_NUMPAD_MULTIPLY = _core.WXK_NUMPAD_MULTIPLY -WXK_NUMPAD_ADD = _core.WXK_NUMPAD_ADD -WXK_NUMPAD_SEPARATOR = _core.WXK_NUMPAD_SEPARATOR -WXK_NUMPAD_SUBTRACT = _core.WXK_NUMPAD_SUBTRACT -WXK_NUMPAD_DECIMAL = _core.WXK_NUMPAD_DECIMAL -WXK_NUMPAD_DIVIDE = _core.WXK_NUMPAD_DIVIDE -WXK_WINDOWS_LEFT = _core.WXK_WINDOWS_LEFT -WXK_WINDOWS_RIGHT = _core.WXK_WINDOWS_RIGHT -WXK_WINDOWS_MENU = _core.WXK_WINDOWS_MENU -PAPER_NONE = _core.PAPER_NONE -PAPER_LETTER = _core.PAPER_LETTER -PAPER_LEGAL = _core.PAPER_LEGAL -PAPER_A4 = _core.PAPER_A4 -PAPER_CSHEET = _core.PAPER_CSHEET -PAPER_DSHEET = _core.PAPER_DSHEET -PAPER_ESHEET = _core.PAPER_ESHEET -PAPER_LETTERSMALL = _core.PAPER_LETTERSMALL -PAPER_TABLOID = _core.PAPER_TABLOID -PAPER_LEDGER = _core.PAPER_LEDGER -PAPER_STATEMENT = _core.PAPER_STATEMENT -PAPER_EXECUTIVE = _core.PAPER_EXECUTIVE -PAPER_A3 = _core.PAPER_A3 -PAPER_A4SMALL = _core.PAPER_A4SMALL -PAPER_A5 = _core.PAPER_A5 -PAPER_B4 = _core.PAPER_B4 -PAPER_B5 = _core.PAPER_B5 -PAPER_FOLIO = _core.PAPER_FOLIO -PAPER_QUARTO = _core.PAPER_QUARTO -PAPER_10X14 = _core.PAPER_10X14 -PAPER_11X17 = _core.PAPER_11X17 -PAPER_NOTE = _core.PAPER_NOTE -PAPER_ENV_9 = _core.PAPER_ENV_9 -PAPER_ENV_10 = _core.PAPER_ENV_10 -PAPER_ENV_11 = _core.PAPER_ENV_11 -PAPER_ENV_12 = _core.PAPER_ENV_12 -PAPER_ENV_14 = _core.PAPER_ENV_14 -PAPER_ENV_DL = _core.PAPER_ENV_DL -PAPER_ENV_C5 = _core.PAPER_ENV_C5 -PAPER_ENV_C3 = _core.PAPER_ENV_C3 -PAPER_ENV_C4 = _core.PAPER_ENV_C4 -PAPER_ENV_C6 = _core.PAPER_ENV_C6 -PAPER_ENV_C65 = _core.PAPER_ENV_C65 -PAPER_ENV_B4 = _core.PAPER_ENV_B4 -PAPER_ENV_B5 = _core.PAPER_ENV_B5 -PAPER_ENV_B6 = _core.PAPER_ENV_B6 -PAPER_ENV_ITALY = _core.PAPER_ENV_ITALY -PAPER_ENV_MONARCH = _core.PAPER_ENV_MONARCH -PAPER_ENV_PERSONAL = _core.PAPER_ENV_PERSONAL -PAPER_FANFOLD_US = _core.PAPER_FANFOLD_US -PAPER_FANFOLD_STD_GERMAN = _core.PAPER_FANFOLD_STD_GERMAN -PAPER_FANFOLD_LGL_GERMAN = _core.PAPER_FANFOLD_LGL_GERMAN -PAPER_ISO_B4 = _core.PAPER_ISO_B4 -PAPER_JAPANESE_POSTCARD = _core.PAPER_JAPANESE_POSTCARD -PAPER_9X11 = _core.PAPER_9X11 -PAPER_10X11 = _core.PAPER_10X11 -PAPER_15X11 = _core.PAPER_15X11 -PAPER_ENV_INVITE = _core.PAPER_ENV_INVITE -PAPER_LETTER_EXTRA = _core.PAPER_LETTER_EXTRA -PAPER_LEGAL_EXTRA = _core.PAPER_LEGAL_EXTRA -PAPER_TABLOID_EXTRA = _core.PAPER_TABLOID_EXTRA -PAPER_A4_EXTRA = _core.PAPER_A4_EXTRA -PAPER_LETTER_TRANSVERSE = _core.PAPER_LETTER_TRANSVERSE -PAPER_A4_TRANSVERSE = _core.PAPER_A4_TRANSVERSE -PAPER_LETTER_EXTRA_TRANSVERSE = _core.PAPER_LETTER_EXTRA_TRANSVERSE -PAPER_A_PLUS = _core.PAPER_A_PLUS -PAPER_B_PLUS = _core.PAPER_B_PLUS -PAPER_LETTER_PLUS = _core.PAPER_LETTER_PLUS -PAPER_A4_PLUS = _core.PAPER_A4_PLUS -PAPER_A5_TRANSVERSE = _core.PAPER_A5_TRANSVERSE -PAPER_B5_TRANSVERSE = _core.PAPER_B5_TRANSVERSE -PAPER_A3_EXTRA = _core.PAPER_A3_EXTRA -PAPER_A5_EXTRA = _core.PAPER_A5_EXTRA -PAPER_B5_EXTRA = _core.PAPER_B5_EXTRA -PAPER_A2 = _core.PAPER_A2 -PAPER_A3_TRANSVERSE = _core.PAPER_A3_TRANSVERSE -PAPER_A3_EXTRA_TRANSVERSE = _core.PAPER_A3_EXTRA_TRANSVERSE -DUPLEX_SIMPLEX = _core.DUPLEX_SIMPLEX -DUPLEX_HORIZONTAL = _core.DUPLEX_HORIZONTAL -DUPLEX_VERTICAL = _core.DUPLEX_VERTICAL -ITEM_SEPARATOR = _core.ITEM_SEPARATOR -ITEM_NORMAL = _core.ITEM_NORMAL -ITEM_CHECK = _core.ITEM_CHECK -ITEM_RADIO = _core.ITEM_RADIO -ITEM_MAX = _core.ITEM_MAX -HT_NOWHERE = _core.HT_NOWHERE -HT_SCROLLBAR_FIRST = _core.HT_SCROLLBAR_FIRST -HT_SCROLLBAR_ARROW_LINE_1 = _core.HT_SCROLLBAR_ARROW_LINE_1 -HT_SCROLLBAR_ARROW_LINE_2 = _core.HT_SCROLLBAR_ARROW_LINE_2 -HT_SCROLLBAR_ARROW_PAGE_1 = _core.HT_SCROLLBAR_ARROW_PAGE_1 -HT_SCROLLBAR_ARROW_PAGE_2 = _core.HT_SCROLLBAR_ARROW_PAGE_2 -HT_SCROLLBAR_THUMB = _core.HT_SCROLLBAR_THUMB -HT_SCROLLBAR_BAR_1 = _core.HT_SCROLLBAR_BAR_1 -HT_SCROLLBAR_BAR_2 = _core.HT_SCROLLBAR_BAR_2 -HT_SCROLLBAR_LAST = _core.HT_SCROLLBAR_LAST -HT_WINDOW_OUTSIDE = _core.HT_WINDOW_OUTSIDE -HT_WINDOW_INSIDE = _core.HT_WINDOW_INSIDE -HT_WINDOW_VERT_SCROLLBAR = _core.HT_WINDOW_VERT_SCROLLBAR -HT_WINDOW_HORZ_SCROLLBAR = _core.HT_WINDOW_HORZ_SCROLLBAR -HT_WINDOW_CORNER = _core.HT_WINDOW_CORNER -HT_MAX = _core.HT_MAX -MOD_NONE = _core.MOD_NONE -MOD_ALT = _core.MOD_ALT -MOD_CONTROL = _core.MOD_CONTROL -MOD_SHIFT = _core.MOD_SHIFT -MOD_WIN = _core.MOD_WIN -UPDATE_UI_NONE = _core.UPDATE_UI_NONE -UPDATE_UI_RECURSE = _core.UPDATE_UI_RECURSE -UPDATE_UI_FROMIDLE = _core.UPDATE_UI_FROMIDLE -#--------------------------------------------------------------------------- - -class Object(object): - """ - The base class for most wx objects, although in wxPython not - much functionality is needed nor exposed. - """ - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def GetClassName(*args, **kwargs): - """ - GetClassName(self) -> String - - Returns the class name of the C++ class using wxRTTI. - """ - return _core.Object_GetClassName(*args, **kwargs) - - def Destroy(*args, **kwargs): - """ - Destroy(self) - - Deletes the C++ object this Python object is a proxy for. - """ - return _core.Object_Destroy(*args, **kwargs) - - -class ObjectPtr(Object): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Object -_core.Object_swigregister(ObjectPtr) -_wxPySetDictionary = _core._wxPySetDictionary - -_wxPyFixStockObjects = _core._wxPyFixStockObjects - -cvar = _core.cvar -EmptyString = cvar.EmptyString - -#--------------------------------------------------------------------------- - -BITMAP_TYPE_INVALID = _core.BITMAP_TYPE_INVALID -BITMAP_TYPE_BMP = _core.BITMAP_TYPE_BMP -BITMAP_TYPE_ICO = _core.BITMAP_TYPE_ICO -BITMAP_TYPE_CUR = _core.BITMAP_TYPE_CUR -BITMAP_TYPE_XBM = _core.BITMAP_TYPE_XBM -BITMAP_TYPE_XBM_DATA = _core.BITMAP_TYPE_XBM_DATA -BITMAP_TYPE_XPM = _core.BITMAP_TYPE_XPM -BITMAP_TYPE_XPM_DATA = _core.BITMAP_TYPE_XPM_DATA -BITMAP_TYPE_TIF = _core.BITMAP_TYPE_TIF -BITMAP_TYPE_GIF = _core.BITMAP_TYPE_GIF -BITMAP_TYPE_PNG = _core.BITMAP_TYPE_PNG -BITMAP_TYPE_JPEG = _core.BITMAP_TYPE_JPEG -BITMAP_TYPE_PNM = _core.BITMAP_TYPE_PNM -BITMAP_TYPE_PCX = _core.BITMAP_TYPE_PCX -BITMAP_TYPE_PICT = _core.BITMAP_TYPE_PICT -BITMAP_TYPE_ICON = _core.BITMAP_TYPE_ICON -BITMAP_TYPE_ANI = _core.BITMAP_TYPE_ANI -BITMAP_TYPE_IFF = _core.BITMAP_TYPE_IFF -BITMAP_TYPE_MACCURSOR = _core.BITMAP_TYPE_MACCURSOR -BITMAP_TYPE_ANY = _core.BITMAP_TYPE_ANY -CURSOR_NONE = _core.CURSOR_NONE -CURSOR_ARROW = _core.CURSOR_ARROW -CURSOR_RIGHT_ARROW = _core.CURSOR_RIGHT_ARROW -CURSOR_BULLSEYE = _core.CURSOR_BULLSEYE -CURSOR_CHAR = _core.CURSOR_CHAR -CURSOR_CROSS = _core.CURSOR_CROSS -CURSOR_HAND = _core.CURSOR_HAND -CURSOR_IBEAM = _core.CURSOR_IBEAM -CURSOR_LEFT_BUTTON = _core.CURSOR_LEFT_BUTTON -CURSOR_MAGNIFIER = _core.CURSOR_MAGNIFIER -CURSOR_MIDDLE_BUTTON = _core.CURSOR_MIDDLE_BUTTON -CURSOR_NO_ENTRY = _core.CURSOR_NO_ENTRY -CURSOR_PAINT_BRUSH = _core.CURSOR_PAINT_BRUSH -CURSOR_PENCIL = _core.CURSOR_PENCIL -CURSOR_POINT_LEFT = _core.CURSOR_POINT_LEFT -CURSOR_POINT_RIGHT = _core.CURSOR_POINT_RIGHT -CURSOR_QUESTION_ARROW = _core.CURSOR_QUESTION_ARROW -CURSOR_RIGHT_BUTTON = _core.CURSOR_RIGHT_BUTTON -CURSOR_SIZENESW = _core.CURSOR_SIZENESW -CURSOR_SIZENS = _core.CURSOR_SIZENS -CURSOR_SIZENWSE = _core.CURSOR_SIZENWSE -CURSOR_SIZEWE = _core.CURSOR_SIZEWE -CURSOR_SIZING = _core.CURSOR_SIZING -CURSOR_SPRAYCAN = _core.CURSOR_SPRAYCAN -CURSOR_WAIT = _core.CURSOR_WAIT -CURSOR_WATCH = _core.CURSOR_WATCH -CURSOR_BLANK = _core.CURSOR_BLANK -CURSOR_DEFAULT = _core.CURSOR_DEFAULT -CURSOR_COPY_ARROW = _core.CURSOR_COPY_ARROW -CURSOR_ARROWWAIT = _core.CURSOR_ARROWWAIT -CURSOR_MAX = _core.CURSOR_MAX -#--------------------------------------------------------------------------- - -class Size(object): - """ - wx.Size is a useful data structure used to represent the size of something. - It simply contians integer width and height proprtites. In most places in - wxPython where a wx.Size is expected a (width,height) tuple can be used - instead. - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxSize instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - width = property(_core.Size_width_get, _core.Size_width_set) - height = property(_core.Size_height_get, _core.Size_height_set) - x = width; y = height - def __init__(self, *args, **kwargs): - """ - __init__(self, int w=0, int h=0) -> Size - - Creates a size object. - """ - newobj = _core.new_Size(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_core.delete_Size): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def __eq__(*args, **kwargs): - """ - __eq__(self, Size sz) -> bool - - Test for equality of wx.Size objects. - """ - return _core.Size___eq__(*args, **kwargs) - - def __ne__(*args, **kwargs): - """ - __ne__(self, Size sz) -> bool - - Test for inequality. - """ - return _core.Size___ne__(*args, **kwargs) - - def __add__(*args, **kwargs): - """ - __add__(self, Size sz) -> Size - - Add sz's proprties to this and return the result. - """ - return _core.Size___add__(*args, **kwargs) - - def __sub__(*args, **kwargs): - """ - __sub__(self, Size sz) -> Size - - Subtract sz's properties from this and return the result. - """ - return _core.Size___sub__(*args, **kwargs) - - def IncTo(*args, **kwargs): - """ - IncTo(self, Size sz) - - Increments this object so that both of its dimensions are not less - than the corresponding dimensions of the size. - """ - return _core.Size_IncTo(*args, **kwargs) - - def DecTo(*args, **kwargs): - """ - DecTo(self, Size sz) - - Decrements this object so that both of its dimensions are not greater - than the corresponding dimensions of the size. - """ - return _core.Size_DecTo(*args, **kwargs) - - def Set(*args, **kwargs): - """ - Set(self, int w, int h) - - Set both width and height. - """ - return _core.Size_Set(*args, **kwargs) - - def SetWidth(*args, **kwargs): - """SetWidth(self, int w)""" - return _core.Size_SetWidth(*args, **kwargs) - - def SetHeight(*args, **kwargs): - """SetHeight(self, int h)""" - return _core.Size_SetHeight(*args, **kwargs) - - def GetWidth(*args, **kwargs): - """GetWidth(self) -> int""" - return _core.Size_GetWidth(*args, **kwargs) - - def GetHeight(*args, **kwargs): - """GetHeight(self) -> int""" - return _core.Size_GetHeight(*args, **kwargs) - - def IsFullySpecified(*args, **kwargs): - """ - IsFullySpecified(self) -> bool - - Returns True if both components of the size are non-default values. - """ - return _core.Size_IsFullySpecified(*args, **kwargs) - - def SetDefaults(*args, **kwargs): - """ - SetDefaults(self, Size size) - - Combine this size with the other one replacing the default - components of this object (i.e. equal to -1) with those of the - other. - """ - return _core.Size_SetDefaults(*args, **kwargs) - - def Get(*args, **kwargs): - """ - Get() -> (width,height) - - Returns the width and height properties as a tuple. - """ - return _core.Size_Get(*args, **kwargs) - - asTuple = Get - def __str__(self): return str(self.Get()) - def __repr__(self): return 'wx.Size'+str(self.Get()) - def __len__(self): return len(self.Get()) - def __getitem__(self, index): return self.Get()[index] - def __setitem__(self, index, val): - if index == 0: self.width = val - elif index == 1: self.height = val - else: raise IndexError - def __nonzero__(self): return self.Get() != (0,0) - __safe_for_unpickling__ = True - def __reduce__(self): return (wx.Size, self.Get()) - - -class SizePtr(Size): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Size -_core.Size_swigregister(SizePtr) - -#--------------------------------------------------------------------------- - -class RealPoint(object): - """ - A data structure for representing a point or position with floating point x - and y properties. In wxPython most places that expect a wx.RealPoint can also - accept a (x,y) tuple. - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxRealPoint instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - x = property(_core.RealPoint_x_get, _core.RealPoint_x_set) - y = property(_core.RealPoint_y_get, _core.RealPoint_y_set) - def __init__(self, *args, **kwargs): - """ - __init__(self, double x=0.0, double y=0.0) -> RealPoint - - Create a wx.RealPoint object - """ - newobj = _core.new_RealPoint(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_core.delete_RealPoint): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def __eq__(*args, **kwargs): - """ - __eq__(self, RealPoint pt) -> bool - - Test for equality of wx.RealPoint objects. - """ - return _core.RealPoint___eq__(*args, **kwargs) - - def __ne__(*args, **kwargs): - """ - __ne__(self, RealPoint pt) -> bool - - Test for inequality of wx.RealPoint objects. - """ - return _core.RealPoint___ne__(*args, **kwargs) - - def __add__(*args, **kwargs): - """ - __add__(self, RealPoint pt) -> RealPoint - - Add pt's proprties to this and return the result. - """ - return _core.RealPoint___add__(*args, **kwargs) - - def __sub__(*args, **kwargs): - """ - __sub__(self, RealPoint pt) -> RealPoint - - Subtract pt's proprties from this and return the result - """ - return _core.RealPoint___sub__(*args, **kwargs) - - def Set(*args, **kwargs): - """ - Set(self, double x, double y) - - Set both the x and y properties - """ - return _core.RealPoint_Set(*args, **kwargs) - - def Get(*args, **kwargs): - """ - Get() -> (x,y) - - Return the x and y properties as a tuple. - """ - return _core.RealPoint_Get(*args, **kwargs) - - asTuple = Get - def __str__(self): return str(self.Get()) - def __repr__(self): return 'wx.RealPoint'+str(self.Get()) - def __len__(self): return len(self.Get()) - def __getitem__(self, index): return self.Get()[index] - def __setitem__(self, index, val): - if index == 0: self.x = val - elif index == 1: self.y = val - else: raise IndexError - def __nonzero__(self): return self.Get() != (0.0, 0.0) - __safe_for_unpickling__ = True - def __reduce__(self): return (wx.RealPoint, self.Get()) - - -class RealPointPtr(RealPoint): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = RealPoint -_core.RealPoint_swigregister(RealPointPtr) - -#--------------------------------------------------------------------------- - -class Point(object): - """ - A data structure for representing a point or position with integer x and y - properties. Most places in wxPython that expect a wx.Point can also accept a - (x,y) tuple. - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxPoint instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - x = property(_core.Point_x_get, _core.Point_x_set) - y = property(_core.Point_y_get, _core.Point_y_set) - def __init__(self, *args, **kwargs): - """ - __init__(self, int x=0, int y=0) -> Point - - Create a wx.Point object - """ - newobj = _core.new_Point(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_core.delete_Point): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def __eq__(*args, **kwargs): - """ - __eq__(self, Point pt) -> bool - - Test for equality of wx.Point objects. - """ - return _core.Point___eq__(*args, **kwargs) - - def __ne__(*args, **kwargs): - """ - __ne__(self, Point pt) -> bool - - Test for inequality of wx.Point objects. - """ - return _core.Point___ne__(*args, **kwargs) - - def __add__(*args, **kwargs): - """ - __add__(self, Point pt) -> Point - - Add pt's proprties to this and return the result. - """ - return _core.Point___add__(*args, **kwargs) - - def __sub__(*args, **kwargs): - """ - __sub__(self, Point pt) -> Point - - Subtract pt's proprties from this and return the result - """ - return _core.Point___sub__(*args, **kwargs) - - def __iadd__(*args, **kwargs): - """ - __iadd__(self, Point pt) -> Point - - Add pt to this object. - """ - return _core.Point___iadd__(*args, **kwargs) - - def __isub__(*args, **kwargs): - """ - __isub__(self, Point pt) -> Point - - Subtract pt from this object. - """ - return _core.Point___isub__(*args, **kwargs) - - def Set(*args, **kwargs): - """ - Set(self, long x, long y) - - Set both the x and y properties - """ - return _core.Point_Set(*args, **kwargs) - - def Get(*args, **kwargs): - """ - Get() -> (x,y) - - Return the x and y properties as a tuple. - """ - return _core.Point_Get(*args, **kwargs) - - asTuple = Get - def __str__(self): return str(self.Get()) - def __repr__(self): return 'wx.Point'+str(self.Get()) - def __len__(self): return len(self.Get()) - def __getitem__(self, index): return self.Get()[index] - def __setitem__(self, index, val): - if index == 0: self.x = val - elif index == 1: self.y = val - else: raise IndexError - def __nonzero__(self): return self.Get() != (0,0) - __safe_for_unpickling__ = True - def __reduce__(self): return (wx.Point, self.Get()) - - -class PointPtr(Point): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Point -_core.Point_swigregister(PointPtr) - -#--------------------------------------------------------------------------- - -class Rect(object): - """ - A class for representing and manipulating rectangles. It has x, y, width and - height properties. In wxPython most palces that expect a wx.Rect can also - accept a (x,y,width,height) tuple. - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxRect instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, int x=0, int y=0, int width=0, int height=0) -> Rect - - Create a new Rect object. - """ - newobj = _core.new_Rect(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_core.delete_Rect): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def GetX(*args, **kwargs): - """GetX(self) -> int""" - return _core.Rect_GetX(*args, **kwargs) - - def SetX(*args, **kwargs): - """SetX(self, int x)""" - return _core.Rect_SetX(*args, **kwargs) - - def GetY(*args, **kwargs): - """GetY(self) -> int""" - return _core.Rect_GetY(*args, **kwargs) - - def SetY(*args, **kwargs): - """SetY(self, int y)""" - return _core.Rect_SetY(*args, **kwargs) - - def GetWidth(*args, **kwargs): - """GetWidth(self) -> int""" - return _core.Rect_GetWidth(*args, **kwargs) - - def SetWidth(*args, **kwargs): - """SetWidth(self, int w)""" - return _core.Rect_SetWidth(*args, **kwargs) - - def GetHeight(*args, **kwargs): - """GetHeight(self) -> int""" - return _core.Rect_GetHeight(*args, **kwargs) - - def SetHeight(*args, **kwargs): - """SetHeight(self, int h)""" - return _core.Rect_SetHeight(*args, **kwargs) - - def GetPosition(*args, **kwargs): - """GetPosition(self) -> Point""" - return _core.Rect_GetPosition(*args, **kwargs) - - def SetPosition(*args, **kwargs): - """SetPosition(self, Point p)""" - return _core.Rect_SetPosition(*args, **kwargs) - - def GetSize(*args, **kwargs): - """GetSize(self) -> Size""" - return _core.Rect_GetSize(*args, **kwargs) - - def SetSize(*args, **kwargs): - """SetSize(self, Size s)""" - return _core.Rect_SetSize(*args, **kwargs) - - def GetTopLeft(*args, **kwargs): - """GetTopLeft(self) -> Point""" - return _core.Rect_GetTopLeft(*args, **kwargs) - - def SetTopLeft(*args, **kwargs): - """SetTopLeft(self, Point p)""" - return _core.Rect_SetTopLeft(*args, **kwargs) - - def GetBottomRight(*args, **kwargs): - """GetBottomRight(self) -> Point""" - return _core.Rect_GetBottomRight(*args, **kwargs) - - def SetBottomRight(*args, **kwargs): - """SetBottomRight(self, Point p)""" - return _core.Rect_SetBottomRight(*args, **kwargs) - - def GetLeft(*args, **kwargs): - """GetLeft(self) -> int""" - return _core.Rect_GetLeft(*args, **kwargs) - - def GetTop(*args, **kwargs): - """GetTop(self) -> int""" - return _core.Rect_GetTop(*args, **kwargs) - - def GetBottom(*args, **kwargs): - """GetBottom(self) -> int""" - return _core.Rect_GetBottom(*args, **kwargs) - - def GetRight(*args, **kwargs): - """GetRight(self) -> int""" - return _core.Rect_GetRight(*args, **kwargs) - - def SetLeft(*args, **kwargs): - """SetLeft(self, int left)""" - return _core.Rect_SetLeft(*args, **kwargs) - - def SetRight(*args, **kwargs): - """SetRight(self, int right)""" - return _core.Rect_SetRight(*args, **kwargs) - - def SetTop(*args, **kwargs): - """SetTop(self, int top)""" - return _core.Rect_SetTop(*args, **kwargs) - - def SetBottom(*args, **kwargs): - """SetBottom(self, int bottom)""" - return _core.Rect_SetBottom(*args, **kwargs) - - position = property(GetPosition, SetPosition) - size = property(GetSize, SetSize) - left = property(GetLeft, SetLeft) - right = property(GetRight, SetRight) - top = property(GetTop, SetTop) - bottom = property(GetBottom, SetBottom) - - def Inflate(*args, **kwargs): - """ - Inflate(self, int dx, int dy) -> Rect - - Increase the rectangle size by dx in x direction and dy in y direction. Both - (or one of) parameters may be negative to decrease the rectangle size. - """ - return _core.Rect_Inflate(*args, **kwargs) - - def Deflate(*args, **kwargs): - """ - Deflate(self, int dx, int dy) -> Rect - - Decrease the rectangle size by dx in x direction and dy in y direction. Both - (or one of) parameters may be negative to increase the rectngle size. This - method is the opposite of Inflate. - """ - return _core.Rect_Deflate(*args, **kwargs) - - def OffsetXY(*args, **kwargs): - """ - OffsetXY(self, int dx, int dy) - - Moves the rectangle by the specified offset. If dx is positive, the rectangle - is moved to the right, if dy is positive, it is moved to the bottom, otherwise - it is moved to the left or top respectively. - """ - return _core.Rect_OffsetXY(*args, **kwargs) - - def Offset(*args, **kwargs): - """ - Offset(self, Point pt) - - Same as OffsetXY but uses dx,dy from Point - """ - return _core.Rect_Offset(*args, **kwargs) - - def Intersect(*args, **kwargs): - """ - Intersect(self, Rect rect) -> Rect - - Return the intersectsion of this rectangle and rect. - """ - return _core.Rect_Intersect(*args, **kwargs) - - def __add__(*args, **kwargs): - """ - __add__(self, Rect rect) -> Rect - - Add the properties of rect to this rectangle and return the result. - """ - return _core.Rect___add__(*args, **kwargs) - - def __iadd__(*args, **kwargs): - """ - __iadd__(self, Rect rect) -> Rect - - Add the properties of rect to this rectangle, updating this rectangle. - """ - return _core.Rect___iadd__(*args, **kwargs) - - def __eq__(*args, **kwargs): - """ - __eq__(self, Rect rect) -> bool - - Test for equality. - """ - return _core.Rect___eq__(*args, **kwargs) - - def __ne__(*args, **kwargs): - """ - __ne__(self, Rect rect) -> bool - - Test for inequality. - """ - return _core.Rect___ne__(*args, **kwargs) - - def InsideXY(*args, **kwargs): - """ - InsideXY(self, int x, int y) -> bool - - Return True if the point is (not strcitly) inside the rect. - """ - return _core.Rect_InsideXY(*args, **kwargs) - - def Inside(*args, **kwargs): - """ - Inside(self, Point pt) -> bool - - Return True if the point is (not strcitly) inside the rect. - """ - return _core.Rect_Inside(*args, **kwargs) - - def Intersects(*args, **kwargs): - """ - Intersects(self, Rect rect) -> bool - - Returns True if the rectangles have a non empty intersection. - """ - return _core.Rect_Intersects(*args, **kwargs) - - x = property(_core.Rect_x_get, _core.Rect_x_set) - y = property(_core.Rect_y_get, _core.Rect_y_set) - width = property(_core.Rect_width_get, _core.Rect_width_set) - height = property(_core.Rect_height_get, _core.Rect_height_set) - def Set(*args, **kwargs): - """ - Set(self, int x=0, int y=0, int width=0, int height=0) - - Set all rectangle properties. - """ - return _core.Rect_Set(*args, **kwargs) - - def Get(*args, **kwargs): - """ - Get() -> (x,y,width,height) - - Return the rectangle properties as a tuple. - """ - return _core.Rect_Get(*args, **kwargs) - - asTuple = Get - def __str__(self): return str(self.Get()) - def __repr__(self): return 'wx.Rect'+str(self.Get()) - def __len__(self): return len(self.Get()) - def __getitem__(self, index): return self.Get()[index] - def __setitem__(self, index, val): - if index == 0: self.x = val - elif index == 1: self.y = val - elif index == 2: self.width = val - elif index == 3: self.height = val - else: raise IndexError - def __nonzero__(self): return self.Get() != (0,0,0,0) - __safe_for_unpickling__ = True - def __reduce__(self): return (wx.Rect, self.Get()) - - -class RectPtr(Rect): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Rect -_core.Rect_swigregister(RectPtr) - -def RectPP(*args, **kwargs): - """ - RectPP(Point topLeft, Point bottomRight) -> Rect - - Create a new Rect object from Points representing two corners. - """ - val = _core.new_RectPP(*args, **kwargs) - val.thisown = 1 - return val - -def RectPS(*args, **kwargs): - """ - RectPS(Point pos, Size size) -> Rect - - Create a new Rect from a position and size. - """ - val = _core.new_RectPS(*args, **kwargs) - val.thisown = 1 - return val - - -def IntersectRect(*args, **kwargs): - """ - IntersectRect(Rect r1, Rect r2) -> Rect - - Calculate and return the intersection of r1 and r2. - """ - return _core.IntersectRect(*args, **kwargs) -#--------------------------------------------------------------------------- - -class Point2D(object): - """wx.Point2Ds represent a point or a vector in a 2d coordinate system with floating point values.""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxPoint2D instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, double x=0.0, double y=0.0) -> Point2D - - Create a w.Point2D object. - """ - newobj = _core.new_Point2D(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetFloor(*args, **kwargs): - """ - GetFloor() -> (x,y) - - Convert to integer - """ - return _core.Point2D_GetFloor(*args, **kwargs) - - def GetRounded(*args, **kwargs): - """ - GetRounded() -> (x,y) - - Convert to integer - """ - return _core.Point2D_GetRounded(*args, **kwargs) - - def GetVectorLength(*args, **kwargs): - """GetVectorLength(self) -> double""" - return _core.Point2D_GetVectorLength(*args, **kwargs) - - def GetVectorAngle(*args, **kwargs): - """GetVectorAngle(self) -> double""" - return _core.Point2D_GetVectorAngle(*args, **kwargs) - - def SetVectorLength(*args, **kwargs): - """SetVectorLength(self, double length)""" - return _core.Point2D_SetVectorLength(*args, **kwargs) - - def SetVectorAngle(*args, **kwargs): - """SetVectorAngle(self, double degrees)""" - return _core.Point2D_SetVectorAngle(*args, **kwargs) - - def SetPolarCoordinates(self, angle, length): - self.SetVectorLength(length) - self.SetVectorAngle(angle) - def Normalize(self): - self.SetVectorLength(1.0) - - def GetDistance(*args, **kwargs): - """GetDistance(self, Point2D pt) -> double""" - return _core.Point2D_GetDistance(*args, **kwargs) - - def GetDistanceSquare(*args, **kwargs): - """GetDistanceSquare(self, Point2D pt) -> double""" - return _core.Point2D_GetDistanceSquare(*args, **kwargs) - - def GetDotProduct(*args, **kwargs): - """GetDotProduct(self, Point2D vec) -> double""" - return _core.Point2D_GetDotProduct(*args, **kwargs) - - def GetCrossProduct(*args, **kwargs): - """GetCrossProduct(self, Point2D vec) -> double""" - return _core.Point2D_GetCrossProduct(*args, **kwargs) - - def __neg__(*args, **kwargs): - """ - __neg__(self) -> Point2D - - the reflection of this point - """ - return _core.Point2D___neg__(*args, **kwargs) - - def __iadd__(*args, **kwargs): - """__iadd__(self, Point2D pt) -> Point2D""" - return _core.Point2D___iadd__(*args, **kwargs) - - def __isub__(*args, **kwargs): - """__isub__(self, Point2D pt) -> Point2D""" - return _core.Point2D___isub__(*args, **kwargs) - - def __imul__(*args, **kwargs): - """__imul__(self, Point2D pt) -> Point2D""" - return _core.Point2D___imul__(*args, **kwargs) - - def __idiv__(*args, **kwargs): - """__idiv__(self, Point2D pt) -> Point2D""" - return _core.Point2D___idiv__(*args, **kwargs) - - def __eq__(*args, **kwargs): - """ - __eq__(self, Point2D pt) -> bool - - Test for equality - """ - return _core.Point2D___eq__(*args, **kwargs) - - def __ne__(*args, **kwargs): - """ - __ne__(self, Point2D pt) -> bool - - Test for inequality - """ - return _core.Point2D___ne__(*args, **kwargs) - - x = property(_core.Point2D_x_get, _core.Point2D_x_set) - y = property(_core.Point2D_y_get, _core.Point2D_y_set) - def Set(*args, **kwargs): - """Set(self, double x=0, double y=0)""" - return _core.Point2D_Set(*args, **kwargs) - - def Get(*args, **kwargs): - """ - Get() -> (x,y) - - Return x and y properties as a tuple. - """ - return _core.Point2D_Get(*args, **kwargs) - - asTuple = Get - def __str__(self): return str(self.Get()) - def __repr__(self): return 'wx.Point2D'+str(self.Get()) - def __len__(self): return len(self.Get()) - def __getitem__(self, index): return self.Get()[index] - def __setitem__(self, index, val): - if index == 0: self.x = val - elif index == 1: self.y = val - else: raise IndexError - def __nonzero__(self): return self.Get() != (0.0, 0.0) - __safe_for_unpickling__ = True - def __reduce__(self): return (wx.Point2D, self.Get()) - - -class Point2DPtr(Point2D): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Point2D -_core.Point2D_swigregister(Point2DPtr) - -def Point2DCopy(*args, **kwargs): - """ - Point2DCopy(Point2D pt) -> Point2D - - Create a w.Point2D object. - """ - val = _core.new_Point2DCopy(*args, **kwargs) - val.thisown = 1 - return val - -def Point2DFromPoint(*args, **kwargs): - """ - Point2DFromPoint(Point pt) -> Point2D - - Create a w.Point2D object. - """ - val = _core.new_Point2DFromPoint(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -FromStart = _core.FromStart -FromCurrent = _core.FromCurrent -FromEnd = _core.FromEnd -class InputStream(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyInputStream instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, PyObject p) -> InputStream""" - newobj = _core.new_InputStream(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def close(*args, **kwargs): - """close(self)""" - return _core.InputStream_close(*args, **kwargs) - - def flush(*args, **kwargs): - """flush(self)""" - return _core.InputStream_flush(*args, **kwargs) - - def eof(*args, **kwargs): - """eof(self) -> bool""" - return _core.InputStream_eof(*args, **kwargs) - - def read(*args, **kwargs): - """read(self, int size=-1) -> PyObject""" - return _core.InputStream_read(*args, **kwargs) - - def readline(*args, **kwargs): - """readline(self, int size=-1) -> PyObject""" - return _core.InputStream_readline(*args, **kwargs) - - def readlines(*args, **kwargs): - """readlines(self, int sizehint=-1) -> PyObject""" - return _core.InputStream_readlines(*args, **kwargs) - - def seek(*args, **kwargs): - """seek(self, int offset, int whence=0)""" - return _core.InputStream_seek(*args, **kwargs) - - def tell(*args, **kwargs): - """tell(self) -> int""" - return _core.InputStream_tell(*args, **kwargs) - - def Peek(*args, **kwargs): - """Peek(self) -> char""" - return _core.InputStream_Peek(*args, **kwargs) - - def GetC(*args, **kwargs): - """GetC(self) -> char""" - return _core.InputStream_GetC(*args, **kwargs) - - def LastRead(*args, **kwargs): - """LastRead(self) -> size_t""" - return _core.InputStream_LastRead(*args, **kwargs) - - def CanRead(*args, **kwargs): - """CanRead(self) -> bool""" - return _core.InputStream_CanRead(*args, **kwargs) - - def Eof(*args, **kwargs): - """Eof(self) -> bool""" - return _core.InputStream_Eof(*args, **kwargs) - - def Ungetch(*args, **kwargs): - """Ungetch(self, char c) -> bool""" - return _core.InputStream_Ungetch(*args, **kwargs) - - def SeekI(*args, **kwargs): - """SeekI(self, long pos, int mode=FromStart) -> long""" - return _core.InputStream_SeekI(*args, **kwargs) - - def TellI(*args, **kwargs): - """TellI(self) -> long""" - return _core.InputStream_TellI(*args, **kwargs) - - -class InputStreamPtr(InputStream): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = InputStream -_core.InputStream_swigregister(InputStreamPtr) -DefaultPosition = cvar.DefaultPosition -DefaultSize = cvar.DefaultSize - -class OutputStream(object): - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxOutputStream instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def write(*args, **kwargs): - """write(self, PyObject obj)""" - return _core.OutputStream_write(*args, **kwargs) - - -class OutputStreamPtr(OutputStream): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = OutputStream -_core.OutputStream_swigregister(OutputStreamPtr) - -#--------------------------------------------------------------------------- - -class FSFile(Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxFSFile instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, InputStream stream, String loc, String mimetype, String anchor, - DateTime modif) -> FSFile - """ - newobj = _core.new_FSFile(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_core.delete_FSFile): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def GetStream(*args, **kwargs): - """GetStream(self) -> InputStream""" - return _core.FSFile_GetStream(*args, **kwargs) - - def GetMimeType(*args, **kwargs): - """GetMimeType(self) -> String""" - return _core.FSFile_GetMimeType(*args, **kwargs) - - def GetLocation(*args, **kwargs): - """GetLocation(self) -> String""" - return _core.FSFile_GetLocation(*args, **kwargs) - - def GetAnchor(*args, **kwargs): - """GetAnchor(self) -> String""" - return _core.FSFile_GetAnchor(*args, **kwargs) - - def GetModificationTime(*args, **kwargs): - """GetModificationTime(self) -> DateTime""" - return _core.FSFile_GetModificationTime(*args, **kwargs) - - -class FSFilePtr(FSFile): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = FSFile -_core.FSFile_swigregister(FSFilePtr) - -class CPPFileSystemHandler(object): - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxFileSystemHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - -class CPPFileSystemHandlerPtr(CPPFileSystemHandler): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = CPPFileSystemHandler -_core.CPPFileSystemHandler_swigregister(CPPFileSystemHandlerPtr) - -class FileSystemHandler(CPPFileSystemHandler): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyFileSystemHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> FileSystemHandler""" - newobj = _core.new_FileSystemHandler(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setCallbackInfo(self, FileSystemHandler) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _core.FileSystemHandler__setCallbackInfo(*args, **kwargs) - - def CanOpen(*args, **kwargs): - """CanOpen(self, String location) -> bool""" - return _core.FileSystemHandler_CanOpen(*args, **kwargs) - - def OpenFile(*args, **kwargs): - """OpenFile(self, FileSystem fs, String location) -> FSFile""" - return _core.FileSystemHandler_OpenFile(*args, **kwargs) - - def FindFirst(*args, **kwargs): - """FindFirst(self, String spec, int flags=0) -> String""" - return _core.FileSystemHandler_FindFirst(*args, **kwargs) - - def FindNext(*args, **kwargs): - """FindNext(self) -> String""" - return _core.FileSystemHandler_FindNext(*args, **kwargs) - - def GetProtocol(*args, **kwargs): - """GetProtocol(self, String location) -> String""" - return _core.FileSystemHandler_GetProtocol(*args, **kwargs) - - def GetLeftLocation(*args, **kwargs): - """GetLeftLocation(self, String location) -> String""" - return _core.FileSystemHandler_GetLeftLocation(*args, **kwargs) - - def GetAnchor(*args, **kwargs): - """GetAnchor(self, String location) -> String""" - return _core.FileSystemHandler_GetAnchor(*args, **kwargs) - - def GetRightLocation(*args, **kwargs): - """GetRightLocation(self, String location) -> String""" - return _core.FileSystemHandler_GetRightLocation(*args, **kwargs) - - def GetMimeTypeFromExt(*args, **kwargs): - """GetMimeTypeFromExt(self, String location) -> String""" - return _core.FileSystemHandler_GetMimeTypeFromExt(*args, **kwargs) - - -class FileSystemHandlerPtr(FileSystemHandler): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = FileSystemHandler -_core.FileSystemHandler_swigregister(FileSystemHandlerPtr) - -class FileSystem(Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxFileSystem instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> FileSystem""" - newobj = _core.new_FileSystem(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_core.delete_FileSystem): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def ChangePathTo(*args, **kwargs): - """ChangePathTo(self, String location, bool is_dir=False)""" - return _core.FileSystem_ChangePathTo(*args, **kwargs) - - def GetPath(*args, **kwargs): - """GetPath(self) -> String""" - return _core.FileSystem_GetPath(*args, **kwargs) - - def OpenFile(*args, **kwargs): - """OpenFile(self, String location) -> FSFile""" - return _core.FileSystem_OpenFile(*args, **kwargs) - - def FindFirst(*args, **kwargs): - """FindFirst(self, String spec, int flags=0) -> String""" - return _core.FileSystem_FindFirst(*args, **kwargs) - - def FindNext(*args, **kwargs): - """FindNext(self) -> String""" - return _core.FileSystem_FindNext(*args, **kwargs) - - def AddHandler(*args, **kwargs): - """FileSystem.AddHandler(CPPFileSystemHandler handler)""" - return _core.FileSystem_AddHandler(*args, **kwargs) - - AddHandler = staticmethod(AddHandler) - def CleanUpHandlers(*args, **kwargs): - """FileSystem.CleanUpHandlers()""" - return _core.FileSystem_CleanUpHandlers(*args, **kwargs) - - CleanUpHandlers = staticmethod(CleanUpHandlers) - def FileNameToURL(*args, **kwargs): - """FileSystem.FileNameToURL(String filename) -> String""" - return _core.FileSystem_FileNameToURL(*args, **kwargs) - - FileNameToURL = staticmethod(FileNameToURL) - -class FileSystemPtr(FileSystem): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = FileSystem -_core.FileSystem_swigregister(FileSystemPtr) - -def FileSystem_AddHandler(*args, **kwargs): - """FileSystem_AddHandler(CPPFileSystemHandler handler)""" - return _core.FileSystem_AddHandler(*args, **kwargs) - -def FileSystem_CleanUpHandlers(*args, **kwargs): - """FileSystem_CleanUpHandlers()""" - return _core.FileSystem_CleanUpHandlers(*args, **kwargs) - -def FileSystem_FileNameToURL(*args, **kwargs): - """FileSystem_FileNameToURL(String filename) -> String""" - return _core.FileSystem_FileNameToURL(*args, **kwargs) - - -def FileSystem_URLToFileName(*args, **kwargs): - """FileSystem_URLToFileName(String url) -> String""" - return _core.FileSystem_URLToFileName(*args, **kwargs) -class InternetFSHandler(CPPFileSystemHandler): - def __repr__(self): - return "<%s.%s; proxy of C++ wxInternetFSHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> InternetFSHandler""" - newobj = _core.new_InternetFSHandler(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def CanOpen(*args, **kwargs): - """CanOpen(self, String location) -> bool""" - return _core.InternetFSHandler_CanOpen(*args, **kwargs) - - def OpenFile(*args, **kwargs): - """OpenFile(self, FileSystem fs, String location) -> FSFile""" - return _core.InternetFSHandler_OpenFile(*args, **kwargs) - - -class InternetFSHandlerPtr(InternetFSHandler): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = InternetFSHandler -_core.InternetFSHandler_swigregister(InternetFSHandlerPtr) - -class ZipFSHandler(CPPFileSystemHandler): - def __repr__(self): - return "<%s.%s; proxy of C++ wxZipFSHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> ZipFSHandler""" - newobj = _core.new_ZipFSHandler(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def CanOpen(*args, **kwargs): - """CanOpen(self, String location) -> bool""" - return _core.ZipFSHandler_CanOpen(*args, **kwargs) - - def OpenFile(*args, **kwargs): - """OpenFile(self, FileSystem fs, String location) -> FSFile""" - return _core.ZipFSHandler_OpenFile(*args, **kwargs) - - def FindFirst(*args, **kwargs): - """FindFirst(self, String spec, int flags=0) -> String""" - return _core.ZipFSHandler_FindFirst(*args, **kwargs) - - def FindNext(*args, **kwargs): - """FindNext(self) -> String""" - return _core.ZipFSHandler_FindNext(*args, **kwargs) - - -class ZipFSHandlerPtr(ZipFSHandler): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ZipFSHandler -_core.ZipFSHandler_swigregister(ZipFSHandlerPtr) - - -def __wxMemoryFSHandler_AddFile_wxImage(*args, **kwargs): - """__wxMemoryFSHandler_AddFile_wxImage(String filename, Image image, long type)""" - return _core.__wxMemoryFSHandler_AddFile_wxImage(*args, **kwargs) - -def __wxMemoryFSHandler_AddFile_wxBitmap(*args, **kwargs): - """__wxMemoryFSHandler_AddFile_wxBitmap(String filename, Bitmap bitmap, long type)""" - return _core.__wxMemoryFSHandler_AddFile_wxBitmap(*args, **kwargs) - -def __wxMemoryFSHandler_AddFile_Data(*args, **kwargs): - """__wxMemoryFSHandler_AddFile_Data(String filename, PyObject data)""" - return _core.__wxMemoryFSHandler_AddFile_Data(*args, **kwargs) -def MemoryFSHandler_AddFile(filename, a, b=''): - if isinstance(a, wx.Image): - __wxMemoryFSHandler_AddFile_wxImage(filename, a, b) - elif isinstance(a, wx.Bitmap): - __wxMemoryFSHandler_AddFile_wxBitmap(filename, a, b) - elif type(a) == str: - __wxMemoryFSHandler_AddFile_Data(filename, a) - else: raise TypeError, 'wx.Image, wx.Bitmap or string expected' - -class MemoryFSHandler(CPPFileSystemHandler): - def __repr__(self): - return "<%s.%s; proxy of C++ wxMemoryFSHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> MemoryFSHandler""" - newobj = _core.new_MemoryFSHandler(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def RemoveFile(*args, **kwargs): - """MemoryFSHandler.RemoveFile(String filename)""" - return _core.MemoryFSHandler_RemoveFile(*args, **kwargs) - - RemoveFile = staticmethod(RemoveFile) - AddFile = staticmethod(MemoryFSHandler_AddFile) - def CanOpen(*args, **kwargs): - """CanOpen(self, String location) -> bool""" - return _core.MemoryFSHandler_CanOpen(*args, **kwargs) - - def OpenFile(*args, **kwargs): - """OpenFile(self, FileSystem fs, String location) -> FSFile""" - return _core.MemoryFSHandler_OpenFile(*args, **kwargs) - - def FindFirst(*args, **kwargs): - """FindFirst(self, String spec, int flags=0) -> String""" - return _core.MemoryFSHandler_FindFirst(*args, **kwargs) - - def FindNext(*args, **kwargs): - """FindNext(self) -> String""" - return _core.MemoryFSHandler_FindNext(*args, **kwargs) - - -class MemoryFSHandlerPtr(MemoryFSHandler): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = MemoryFSHandler -_core.MemoryFSHandler_swigregister(MemoryFSHandlerPtr) - -def MemoryFSHandler_RemoveFile(*args, **kwargs): - """MemoryFSHandler_RemoveFile(String filename)""" - return _core.MemoryFSHandler_RemoveFile(*args, **kwargs) - -#--------------------------------------------------------------------------- - -class ImageHandler(Object): - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxImageHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def GetName(*args, **kwargs): - """GetName(self) -> String""" - return _core.ImageHandler_GetName(*args, **kwargs) - - def GetExtension(*args, **kwargs): - """GetExtension(self) -> String""" - return _core.ImageHandler_GetExtension(*args, **kwargs) - - def GetType(*args, **kwargs): - """GetType(self) -> long""" - return _core.ImageHandler_GetType(*args, **kwargs) - - def GetMimeType(*args, **kwargs): - """GetMimeType(self) -> String""" - return _core.ImageHandler_GetMimeType(*args, **kwargs) - - def CanRead(*args, **kwargs): - """CanRead(self, String name) -> bool""" - return _core.ImageHandler_CanRead(*args, **kwargs) - - def SetName(*args, **kwargs): - """SetName(self, String name)""" - return _core.ImageHandler_SetName(*args, **kwargs) - - def SetExtension(*args, **kwargs): - """SetExtension(self, String extension)""" - return _core.ImageHandler_SetExtension(*args, **kwargs) - - def SetType(*args, **kwargs): - """SetType(self, long type)""" - return _core.ImageHandler_SetType(*args, **kwargs) - - def SetMimeType(*args, **kwargs): - """SetMimeType(self, String mimetype)""" - return _core.ImageHandler_SetMimeType(*args, **kwargs) - - -class ImageHandlerPtr(ImageHandler): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ImageHandler -_core.ImageHandler_swigregister(ImageHandlerPtr) - -class ImageHistogram(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxImageHistogram instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> ImageHistogram""" - newobj = _core.new_ImageHistogram(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def MakeKey(*args, **kwargs): - """ - ImageHistogram.MakeKey(unsigned char r, unsigned char g, unsigned char b) -> unsigned long - - Get the key in the histogram for the given RGB values - """ - return _core.ImageHistogram_MakeKey(*args, **kwargs) - - MakeKey = staticmethod(MakeKey) - def FindFirstUnusedColour(*args, **kwargs): - """ - FindFirstUnusedColour(int startR=1, int startG=0, int startB=0) -> (success, r, g, b) - - Find first colour that is not used in the image and has higher RGB values than - startR, startG, startB. Returns a tuple consisting of a success flag and rgb - values. - """ - return _core.ImageHistogram_FindFirstUnusedColour(*args, **kwargs) - - -class ImageHistogramPtr(ImageHistogram): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ImageHistogram -_core.ImageHistogram_swigregister(ImageHistogramPtr) - -def ImageHistogram_MakeKey(*args, **kwargs): - """ - ImageHistogram_MakeKey(unsigned char r, unsigned char g, unsigned char b) -> unsigned long - - Get the key in the histogram for the given RGB values - """ - return _core.ImageHistogram_MakeKey(*args, **kwargs) - -class Image(Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxImage instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, String name, long type=BITMAP_TYPE_ANY, int index=-1) -> Image""" - newobj = _core.new_Image(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_core.delete_Image): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Create(*args, **kwargs): - """Create(self, int width, int height)""" - return _core.Image_Create(*args, **kwargs) - - def Destroy(*args, **kwargs): - """ - Destroy(self) - - Deletes the C++ object this Python object is a proxy for. - """ - return _core.Image_Destroy(*args, **kwargs) - - def Scale(*args, **kwargs): - """Scale(self, int width, int height) -> Image""" - return _core.Image_Scale(*args, **kwargs) - - def ShrinkBy(*args, **kwargs): - """ShrinkBy(self, int xFactor, int yFactor) -> Image""" - return _core.Image_ShrinkBy(*args, **kwargs) - - def Rescale(*args, **kwargs): - """Rescale(self, int width, int height) -> Image""" - return _core.Image_Rescale(*args, **kwargs) - - def SetRGB(*args, **kwargs): - """SetRGB(self, int x, int y, unsigned char r, unsigned char g, unsigned char b)""" - return _core.Image_SetRGB(*args, **kwargs) - - def GetRed(*args, **kwargs): - """GetRed(self, int x, int y) -> unsigned char""" - return _core.Image_GetRed(*args, **kwargs) - - def GetGreen(*args, **kwargs): - """GetGreen(self, int x, int y) -> unsigned char""" - return _core.Image_GetGreen(*args, **kwargs) - - def GetBlue(*args, **kwargs): - """GetBlue(self, int x, int y) -> unsigned char""" - return _core.Image_GetBlue(*args, **kwargs) - - def SetAlpha(*args, **kwargs): - """SetAlpha(self, int x, int y, unsigned char alpha)""" - return _core.Image_SetAlpha(*args, **kwargs) - - def GetAlpha(*args, **kwargs): - """GetAlpha(self, int x, int y) -> unsigned char""" - return _core.Image_GetAlpha(*args, **kwargs) - - def HasAlpha(*args, **kwargs): - """HasAlpha(self) -> bool""" - return _core.Image_HasAlpha(*args, **kwargs) - - def FindFirstUnusedColour(*args, **kwargs): - """ - FindFirstUnusedColour(int startR=1, int startG=0, int startB=0) -> (success, r, g, b) - - Find first colour that is not used in the image and has higher RGB values than - startR, startG, startB. Returns a tuple consisting of a success flag and rgb - values. - """ - return _core.Image_FindFirstUnusedColour(*args, **kwargs) - - def SetMaskFromImage(*args, **kwargs): - """SetMaskFromImage(self, Image mask, byte mr, byte mg, byte mb) -> bool""" - return _core.Image_SetMaskFromImage(*args, **kwargs) - - def CanRead(*args, **kwargs): - """Image.CanRead(String name) -> bool""" - return _core.Image_CanRead(*args, **kwargs) - - CanRead = staticmethod(CanRead) - def GetImageCount(*args, **kwargs): - """Image.GetImageCount(String name, long type=BITMAP_TYPE_ANY) -> int""" - return _core.Image_GetImageCount(*args, **kwargs) - - GetImageCount = staticmethod(GetImageCount) - def LoadFile(*args, **kwargs): - """LoadFile(self, String name, long type=BITMAP_TYPE_ANY, int index=-1) -> bool""" - return _core.Image_LoadFile(*args, **kwargs) - - def LoadMimeFile(*args, **kwargs): - """LoadMimeFile(self, String name, String mimetype, int index=-1) -> bool""" - return _core.Image_LoadMimeFile(*args, **kwargs) - - def SaveFile(*args, **kwargs): - """SaveFile(self, String name, int type) -> bool""" - return _core.Image_SaveFile(*args, **kwargs) - - def SaveMimeFile(*args, **kwargs): - """SaveMimeFile(self, String name, String mimetype) -> bool""" - return _core.Image_SaveMimeFile(*args, **kwargs) - - def CanReadStream(*args, **kwargs): - """Image.CanReadStream(InputStream stream) -> bool""" - return _core.Image_CanReadStream(*args, **kwargs) - - CanReadStream = staticmethod(CanReadStream) - def LoadStream(*args, **kwargs): - """LoadStream(self, InputStream stream, long type=BITMAP_TYPE_ANY, int index=-1) -> bool""" - return _core.Image_LoadStream(*args, **kwargs) - - def LoadMimeStream(*args, **kwargs): - """LoadMimeStream(self, InputStream stream, String mimetype, int index=-1) -> bool""" - return _core.Image_LoadMimeStream(*args, **kwargs) - - def Ok(*args, **kwargs): - """Ok(self) -> bool""" - return _core.Image_Ok(*args, **kwargs) - - def GetWidth(*args, **kwargs): - """GetWidth(self) -> int""" - return _core.Image_GetWidth(*args, **kwargs) - - def GetHeight(*args, **kwargs): - """GetHeight(self) -> int""" - return _core.Image_GetHeight(*args, **kwargs) - - def GetSize(*args, **kwargs): - """GetSize(self) -> Size""" - return _core.Image_GetSize(*args, **kwargs) - - def GetSubImage(*args, **kwargs): - """GetSubImage(self, Rect rect) -> Image""" - return _core.Image_GetSubImage(*args, **kwargs) - - def Copy(*args, **kwargs): - """Copy(self) -> Image""" - return _core.Image_Copy(*args, **kwargs) - - def Paste(*args, **kwargs): - """Paste(self, Image image, int x, int y)""" - return _core.Image_Paste(*args, **kwargs) - - def GetData(*args, **kwargs): - """GetData(self) -> PyObject""" - return _core.Image_GetData(*args, **kwargs) - - def SetData(*args, **kwargs): - """SetData(self, PyObject data)""" - return _core.Image_SetData(*args, **kwargs) - - def GetDataBuffer(*args, **kwargs): - """GetDataBuffer(self) -> PyObject""" - return _core.Image_GetDataBuffer(*args, **kwargs) - - def SetDataBuffer(*args, **kwargs): - """SetDataBuffer(self, PyObject data)""" - return _core.Image_SetDataBuffer(*args, **kwargs) - - def GetAlphaData(*args, **kwargs): - """GetAlphaData(self) -> PyObject""" - return _core.Image_GetAlphaData(*args, **kwargs) - - def SetAlphaData(*args, **kwargs): - """SetAlphaData(self, PyObject data)""" - return _core.Image_SetAlphaData(*args, **kwargs) - - def GetAlphaBuffer(*args, **kwargs): - """GetAlphaBuffer(self) -> PyObject""" - return _core.Image_GetAlphaBuffer(*args, **kwargs) - - def SetAlphaBuffer(*args, **kwargs): - """SetAlphaBuffer(self, PyObject data)""" - return _core.Image_SetAlphaBuffer(*args, **kwargs) - - def SetMaskColour(*args, **kwargs): - """SetMaskColour(self, unsigned char r, unsigned char g, unsigned char b)""" - return _core.Image_SetMaskColour(*args, **kwargs) - - def GetMaskRed(*args, **kwargs): - """GetMaskRed(self) -> unsigned char""" - return _core.Image_GetMaskRed(*args, **kwargs) - - def GetMaskGreen(*args, **kwargs): - """GetMaskGreen(self) -> unsigned char""" - return _core.Image_GetMaskGreen(*args, **kwargs) - - def GetMaskBlue(*args, **kwargs): - """GetMaskBlue(self) -> unsigned char""" - return _core.Image_GetMaskBlue(*args, **kwargs) - - def SetMask(*args, **kwargs): - """SetMask(self, bool mask=True)""" - return _core.Image_SetMask(*args, **kwargs) - - def HasMask(*args, **kwargs): - """HasMask(self) -> bool""" - return _core.Image_HasMask(*args, **kwargs) - - def Rotate(*args, **kwargs): - """ - Rotate(self, double angle, Point centre_of_rotation, bool interpolating=True, - Point offset_after_rotation=None) -> Image - """ - return _core.Image_Rotate(*args, **kwargs) - - def Rotate90(*args, **kwargs): - """Rotate90(self, bool clockwise=True) -> Image""" - return _core.Image_Rotate90(*args, **kwargs) - - def Mirror(*args, **kwargs): - """Mirror(self, bool horizontally=True) -> Image""" - return _core.Image_Mirror(*args, **kwargs) - - def Replace(*args, **kwargs): - """ - Replace(self, unsigned char r1, unsigned char g1, unsigned char b1, - unsigned char r2, unsigned char g2, unsigned char b2) - """ - return _core.Image_Replace(*args, **kwargs) - - def ConvertToMono(*args, **kwargs): - """ConvertToMono(self, unsigned char r, unsigned char g, unsigned char b) -> Image""" - return _core.Image_ConvertToMono(*args, **kwargs) - - def SetOption(*args, **kwargs): - """SetOption(self, String name, String value)""" - return _core.Image_SetOption(*args, **kwargs) - - def SetOptionInt(*args, **kwargs): - """SetOptionInt(self, String name, int value)""" - return _core.Image_SetOptionInt(*args, **kwargs) - - def GetOption(*args, **kwargs): - """GetOption(self, String name) -> String""" - return _core.Image_GetOption(*args, **kwargs) - - def GetOptionInt(*args, **kwargs): - """GetOptionInt(self, String name) -> int""" - return _core.Image_GetOptionInt(*args, **kwargs) - - def HasOption(*args, **kwargs): - """HasOption(self, String name) -> bool""" - return _core.Image_HasOption(*args, **kwargs) - - def CountColours(*args, **kwargs): - """CountColours(self, unsigned long stopafter=(unsigned long) -1) -> unsigned long""" - return _core.Image_CountColours(*args, **kwargs) - - def ComputeHistogram(*args, **kwargs): - """ComputeHistogram(self, ImageHistogram h) -> unsigned long""" - return _core.Image_ComputeHistogram(*args, **kwargs) - - def AddHandler(*args, **kwargs): - """Image.AddHandler(ImageHandler handler)""" - return _core.Image_AddHandler(*args, **kwargs) - - AddHandler = staticmethod(AddHandler) - def InsertHandler(*args, **kwargs): - """Image.InsertHandler(ImageHandler handler)""" - return _core.Image_InsertHandler(*args, **kwargs) - - InsertHandler = staticmethod(InsertHandler) - def RemoveHandler(*args, **kwargs): - """Image.RemoveHandler(String name) -> bool""" - return _core.Image_RemoveHandler(*args, **kwargs) - - RemoveHandler = staticmethod(RemoveHandler) - def GetImageExtWildcard(*args, **kwargs): - """Image.GetImageExtWildcard() -> String""" - return _core.Image_GetImageExtWildcard(*args, **kwargs) - - GetImageExtWildcard = staticmethod(GetImageExtWildcard) - def ConvertToBitmap(*args, **kwargs): - """ConvertToBitmap(self) -> Bitmap""" - return _core.Image_ConvertToBitmap(*args, **kwargs) - - def ConvertToMonoBitmap(*args, **kwargs): - """ConvertToMonoBitmap(self, unsigned char red, unsigned char green, unsigned char blue) -> Bitmap""" - return _core.Image_ConvertToMonoBitmap(*args, **kwargs) - - def __nonzero__(self): return self.Ok() - -class ImagePtr(Image): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Image -_core.Image_swigregister(ImagePtr) - -def ImageFromMime(*args, **kwargs): - """ImageFromMime(String name, String mimetype, int index=-1) -> Image""" - val = _core.new_ImageFromMime(*args, **kwargs) - val.thisown = 1 - return val - -def ImageFromStream(*args, **kwargs): - """ImageFromStream(InputStream stream, long type=BITMAP_TYPE_ANY, int index=-1) -> Image""" - val = _core.new_ImageFromStream(*args, **kwargs) - val.thisown = 1 - return val - -def ImageFromStreamMime(*args, **kwargs): - """ImageFromStreamMime(InputStream stream, String mimetype, int index=-1) -> Image""" - val = _core.new_ImageFromStreamMime(*args, **kwargs) - val.thisown = 1 - return val - -def EmptyImage(*args): - """ - EmptyImage(int width=0, int height=0, bool clear=True) -> Image - EmptyImage(Size size, bool clear=True) -> Image - """ - val = _core.new_EmptyImage(*args) - val.thisown = 1 - return val - -def ImageFromBitmap(*args, **kwargs): - """ImageFromBitmap(Bitmap bitmap) -> Image""" - val = _core.new_ImageFromBitmap(*args, **kwargs) - val.thisown = 1 - return val - -def ImageFromData(*args, **kwargs): - """ImageFromData(int width, int height, unsigned char data) -> Image""" - val = _core.new_ImageFromData(*args, **kwargs) - val.thisown = 1 - return val - -def Image_CanRead(*args, **kwargs): - """Image_CanRead(String name) -> bool""" - return _core.Image_CanRead(*args, **kwargs) - -def Image_GetImageCount(*args, **kwargs): - """Image_GetImageCount(String name, long type=BITMAP_TYPE_ANY) -> int""" - return _core.Image_GetImageCount(*args, **kwargs) - -def Image_CanReadStream(*args, **kwargs): - """Image_CanReadStream(InputStream stream) -> bool""" - return _core.Image_CanReadStream(*args, **kwargs) - -def Image_AddHandler(*args, **kwargs): - """Image_AddHandler(ImageHandler handler)""" - return _core.Image_AddHandler(*args, **kwargs) - -def Image_InsertHandler(*args, **kwargs): - """Image_InsertHandler(ImageHandler handler)""" - return _core.Image_InsertHandler(*args, **kwargs) - -def Image_RemoveHandler(*args, **kwargs): - """Image_RemoveHandler(String name) -> bool""" - return _core.Image_RemoveHandler(*args, **kwargs) - -def Image_GetImageExtWildcard(*args, **kwargs): - """Image_GetImageExtWildcard() -> String""" - return _core.Image_GetImageExtWildcard(*args, **kwargs) - - -def InitAllImageHandlers(*args, **kwargs): - """InitAllImageHandlers()""" - return _core.InitAllImageHandlers(*args, **kwargs) -IMAGE_RESOLUTION_INCHES = _core.IMAGE_RESOLUTION_INCHES -IMAGE_RESOLUTION_CM = _core.IMAGE_RESOLUTION_CM -BMP_24BPP = _core.BMP_24BPP -BMP_8BPP = _core.BMP_8BPP -BMP_8BPP_GREY = _core.BMP_8BPP_GREY -BMP_8BPP_GRAY = _core.BMP_8BPP_GRAY -BMP_8BPP_RED = _core.BMP_8BPP_RED -BMP_8BPP_PALETTE = _core.BMP_8BPP_PALETTE -BMP_4BPP = _core.BMP_4BPP -BMP_1BPP = _core.BMP_1BPP -BMP_1BPP_BW = _core.BMP_1BPP_BW -class BMPHandler(ImageHandler): - def __repr__(self): - return "<%s.%s; proxy of C++ wxBMPHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> BMPHandler""" - newobj = _core.new_BMPHandler(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class BMPHandlerPtr(BMPHandler): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = BMPHandler -_core.BMPHandler_swigregister(BMPHandlerPtr) -NullImage = cvar.NullImage -IMAGE_OPTION_BMP_FORMAT = cvar.IMAGE_OPTION_BMP_FORMAT -IMAGE_OPTION_CUR_HOTSPOT_X = cvar.IMAGE_OPTION_CUR_HOTSPOT_X -IMAGE_OPTION_CUR_HOTSPOT_Y = cvar.IMAGE_OPTION_CUR_HOTSPOT_Y -IMAGE_OPTION_RESOLUTION = cvar.IMAGE_OPTION_RESOLUTION -IMAGE_OPTION_RESOLUTIONUNIT = cvar.IMAGE_OPTION_RESOLUTIONUNIT - -class ICOHandler(BMPHandler): - def __repr__(self): - return "<%s.%s; proxy of C++ wxICOHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> ICOHandler""" - newobj = _core.new_ICOHandler(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class ICOHandlerPtr(ICOHandler): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ICOHandler -_core.ICOHandler_swigregister(ICOHandlerPtr) - -class CURHandler(ICOHandler): - def __repr__(self): - return "<%s.%s; proxy of C++ wxCURHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> CURHandler""" - newobj = _core.new_CURHandler(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class CURHandlerPtr(CURHandler): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = CURHandler -_core.CURHandler_swigregister(CURHandlerPtr) - -class ANIHandler(CURHandler): - def __repr__(self): - return "<%s.%s; proxy of C++ wxANIHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> ANIHandler""" - newobj = _core.new_ANIHandler(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class ANIHandlerPtr(ANIHandler): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ANIHandler -_core.ANIHandler_swigregister(ANIHandlerPtr) - -class PNGHandler(ImageHandler): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPNGHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> PNGHandler""" - newobj = _core.new_PNGHandler(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class PNGHandlerPtr(PNGHandler): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PNGHandler -_core.PNGHandler_swigregister(PNGHandlerPtr) - -class GIFHandler(ImageHandler): - def __repr__(self): - return "<%s.%s; proxy of C++ wxGIFHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> GIFHandler""" - newobj = _core.new_GIFHandler(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class GIFHandlerPtr(GIFHandler): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = GIFHandler -_core.GIFHandler_swigregister(GIFHandlerPtr) - -class PCXHandler(ImageHandler): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPCXHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> PCXHandler""" - newobj = _core.new_PCXHandler(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class PCXHandlerPtr(PCXHandler): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PCXHandler -_core.PCXHandler_swigregister(PCXHandlerPtr) - -class JPEGHandler(ImageHandler): - def __repr__(self): - return "<%s.%s; proxy of C++ wxJPEGHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> JPEGHandler""" - newobj = _core.new_JPEGHandler(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class JPEGHandlerPtr(JPEGHandler): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = JPEGHandler -_core.JPEGHandler_swigregister(JPEGHandlerPtr) - -class PNMHandler(ImageHandler): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPNMHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> PNMHandler""" - newobj = _core.new_PNMHandler(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class PNMHandlerPtr(PNMHandler): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PNMHandler -_core.PNMHandler_swigregister(PNMHandlerPtr) - -class XPMHandler(ImageHandler): - def __repr__(self): - return "<%s.%s; proxy of C++ wxXPMHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> XPMHandler""" - newobj = _core.new_XPMHandler(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class XPMHandlerPtr(XPMHandler): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = XPMHandler -_core.XPMHandler_swigregister(XPMHandlerPtr) - -class TIFFHandler(ImageHandler): - def __repr__(self): - return "<%s.%s; proxy of C++ wxTIFFHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> TIFFHandler""" - newobj = _core.new_TIFFHandler(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class TIFFHandlerPtr(TIFFHandler): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = TIFFHandler -_core.TIFFHandler_swigregister(TIFFHandlerPtr) - -#--------------------------------------------------------------------------- - -class EvtHandler(Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxEvtHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> EvtHandler""" - newobj = _core.new_EvtHandler(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetNextHandler(*args, **kwargs): - """GetNextHandler(self) -> EvtHandler""" - return _core.EvtHandler_GetNextHandler(*args, **kwargs) - - def GetPreviousHandler(*args, **kwargs): - """GetPreviousHandler(self) -> EvtHandler""" - return _core.EvtHandler_GetPreviousHandler(*args, **kwargs) - - def SetNextHandler(*args, **kwargs): - """SetNextHandler(self, EvtHandler handler)""" - return _core.EvtHandler_SetNextHandler(*args, **kwargs) - - def SetPreviousHandler(*args, **kwargs): - """SetPreviousHandler(self, EvtHandler handler)""" - return _core.EvtHandler_SetPreviousHandler(*args, **kwargs) - - def GetEvtHandlerEnabled(*args, **kwargs): - """GetEvtHandlerEnabled(self) -> bool""" - return _core.EvtHandler_GetEvtHandlerEnabled(*args, **kwargs) - - def SetEvtHandlerEnabled(*args, **kwargs): - """SetEvtHandlerEnabled(self, bool enabled)""" - return _core.EvtHandler_SetEvtHandlerEnabled(*args, **kwargs) - - def ProcessEvent(*args, **kwargs): - """ProcessEvent(self, Event event) -> bool""" - return _core.EvtHandler_ProcessEvent(*args, **kwargs) - - def AddPendingEvent(*args, **kwargs): - """AddPendingEvent(self, Event event)""" - return _core.EvtHandler_AddPendingEvent(*args, **kwargs) - - def ProcessPendingEvents(*args, **kwargs): - """ProcessPendingEvents(self)""" - return _core.EvtHandler_ProcessPendingEvents(*args, **kwargs) - - def Connect(*args, **kwargs): - """Connect(self, int id, int lastId, int eventType, PyObject func)""" - return _core.EvtHandler_Connect(*args, **kwargs) - - def Disconnect(*args, **kwargs): - """Disconnect(self, int id, int lastId=-1, wxEventType eventType=wxEVT_NULL) -> bool""" - return _core.EvtHandler_Disconnect(*args, **kwargs) - - def _setOORInfo(*args, **kwargs): - """_setOORInfo(self, PyObject _self)""" - return _core.EvtHandler__setOORInfo(*args, **kwargs) - - def Bind(self, event, handler, source=None, id=wx.ID_ANY, id2=wx.ID_ANY): - """ - Bind an event to an event handler. - - event One of the EVT_* objects that specifies the - type of event to bind, - - handler A callable object to be invoked when the event - is delivered to self. Pass None to disconnect an - event handler. - - source Sometimes the event originates from a different window - than self, but you still want to catch it in self. (For - example, a button event delivered to a frame.) By - passing the source of the event, the event handling - system is able to differentiate between the same event - type from different controls. - - id,id2 Used for menu IDs or for event types that require a - range of IDs - """ - if source is not None: - id = source.GetId() - event.Bind(self, id, id2, handler) - - - -class EvtHandlerPtr(EvtHandler): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = EvtHandler -_core.EvtHandler_swigregister(EvtHandlerPtr) - -#--------------------------------------------------------------------------- - -class PyEventBinder(object): - """ - Instances of this class are used to bind specific events to event - handlers. - """ - def __init__(self, evtType, expectedIDs=0): - if expectedIDs not in [0, 1, 2]: - raise ValueError, "Invalid number of expectedIDs" - self.expectedIDs = expectedIDs - - if type(evtType) == list or type(evtType) == tuple: - self.evtType = evtType - else: - self.evtType = [evtType] - - - def Bind(self, target, id1, id2, function): - """Bind this set of event types to target.""" - for et in self.evtType: - target.Connect(id1, id2, et, function) - - - def __call__(self, *args): - """ - For backwards compatibility with the old EVT_* functions. - Should be called with either (window, func), (window, ID, - func) or (window, ID1, ID2, func) parameters depending on the - type of the event. - """ - assert len(args) == 2 + self.expectedIDs - id1 = wx.ID_ANY - id2 = wx.ID_ANY - target = args[0] - if self.expectedIDs == 0: - func = args[1] - elif self.expectedIDs == 1: - id1 = args[1] - func = args[2] - elif self.expectedIDs == 2: - id1 = args[1] - id2 = args[2] - func = args[3] - else: - raise ValueError, "Unexpected number of IDs" - - self.Bind(target, id1, id2, func) - - -# These two are square pegs that don't fit the PyEventBinder hole... -def EVT_COMMAND(win, id, cmd, func): - win.Connect(id, -1, cmd, func) -def EVT_COMMAND_RANGE(win, id1, id2, cmd, func): - win.Connect(id1, id2, cmd, func) - - -#--------------------------------------------------------------------------- - -#--------------------------------------------------------------------------- - -EVENT_PROPAGATE_NONE = _core.EVENT_PROPAGATE_NONE -EVENT_PROPAGATE_MAX = _core.EVENT_PROPAGATE_MAX - -def NewEventType(*args, **kwargs): - """NewEventType() -> wxEventType""" - return _core.NewEventType(*args, **kwargs) -wxEVT_NULL = _core.wxEVT_NULL -wxEVT_FIRST = _core.wxEVT_FIRST -wxEVT_USER_FIRST = _core.wxEVT_USER_FIRST -wxEVT_COMMAND_BUTTON_CLICKED = _core.wxEVT_COMMAND_BUTTON_CLICKED -wxEVT_COMMAND_CHECKBOX_CLICKED = _core.wxEVT_COMMAND_CHECKBOX_CLICKED -wxEVT_COMMAND_CHOICE_SELECTED = _core.wxEVT_COMMAND_CHOICE_SELECTED -wxEVT_COMMAND_LISTBOX_SELECTED = _core.wxEVT_COMMAND_LISTBOX_SELECTED -wxEVT_COMMAND_LISTBOX_DOUBLECLICKED = _core.wxEVT_COMMAND_LISTBOX_DOUBLECLICKED -wxEVT_COMMAND_CHECKLISTBOX_TOGGLED = _core.wxEVT_COMMAND_CHECKLISTBOX_TOGGLED -wxEVT_COMMAND_MENU_SELECTED = _core.wxEVT_COMMAND_MENU_SELECTED -wxEVT_COMMAND_TOOL_CLICKED = _core.wxEVT_COMMAND_TOOL_CLICKED -wxEVT_COMMAND_SLIDER_UPDATED = _core.wxEVT_COMMAND_SLIDER_UPDATED -wxEVT_COMMAND_RADIOBOX_SELECTED = _core.wxEVT_COMMAND_RADIOBOX_SELECTED -wxEVT_COMMAND_RADIOBUTTON_SELECTED = _core.wxEVT_COMMAND_RADIOBUTTON_SELECTED -wxEVT_COMMAND_SCROLLBAR_UPDATED = _core.wxEVT_COMMAND_SCROLLBAR_UPDATED -wxEVT_COMMAND_VLBOX_SELECTED = _core.wxEVT_COMMAND_VLBOX_SELECTED -wxEVT_COMMAND_COMBOBOX_SELECTED = _core.wxEVT_COMMAND_COMBOBOX_SELECTED -wxEVT_COMMAND_TOOL_RCLICKED = _core.wxEVT_COMMAND_TOOL_RCLICKED -wxEVT_COMMAND_TOOL_ENTER = _core.wxEVT_COMMAND_TOOL_ENTER -wxEVT_LEFT_DOWN = _core.wxEVT_LEFT_DOWN -wxEVT_LEFT_UP = _core.wxEVT_LEFT_UP -wxEVT_MIDDLE_DOWN = _core.wxEVT_MIDDLE_DOWN -wxEVT_MIDDLE_UP = _core.wxEVT_MIDDLE_UP -wxEVT_RIGHT_DOWN = _core.wxEVT_RIGHT_DOWN -wxEVT_RIGHT_UP = _core.wxEVT_RIGHT_UP -wxEVT_MOTION = _core.wxEVT_MOTION -wxEVT_ENTER_WINDOW = _core.wxEVT_ENTER_WINDOW -wxEVT_LEAVE_WINDOW = _core.wxEVT_LEAVE_WINDOW -wxEVT_LEFT_DCLICK = _core.wxEVT_LEFT_DCLICK -wxEVT_MIDDLE_DCLICK = _core.wxEVT_MIDDLE_DCLICK -wxEVT_RIGHT_DCLICK = _core.wxEVT_RIGHT_DCLICK -wxEVT_SET_FOCUS = _core.wxEVT_SET_FOCUS -wxEVT_KILL_FOCUS = _core.wxEVT_KILL_FOCUS -wxEVT_CHILD_FOCUS = _core.wxEVT_CHILD_FOCUS -wxEVT_MOUSEWHEEL = _core.wxEVT_MOUSEWHEEL -wxEVT_NC_LEFT_DOWN = _core.wxEVT_NC_LEFT_DOWN -wxEVT_NC_LEFT_UP = _core.wxEVT_NC_LEFT_UP -wxEVT_NC_MIDDLE_DOWN = _core.wxEVT_NC_MIDDLE_DOWN -wxEVT_NC_MIDDLE_UP = _core.wxEVT_NC_MIDDLE_UP -wxEVT_NC_RIGHT_DOWN = _core.wxEVT_NC_RIGHT_DOWN -wxEVT_NC_RIGHT_UP = _core.wxEVT_NC_RIGHT_UP -wxEVT_NC_MOTION = _core.wxEVT_NC_MOTION -wxEVT_NC_ENTER_WINDOW = _core.wxEVT_NC_ENTER_WINDOW -wxEVT_NC_LEAVE_WINDOW = _core.wxEVT_NC_LEAVE_WINDOW -wxEVT_NC_LEFT_DCLICK = _core.wxEVT_NC_LEFT_DCLICK -wxEVT_NC_MIDDLE_DCLICK = _core.wxEVT_NC_MIDDLE_DCLICK -wxEVT_NC_RIGHT_DCLICK = _core.wxEVT_NC_RIGHT_DCLICK -wxEVT_CHAR = _core.wxEVT_CHAR -wxEVT_CHAR_HOOK = _core.wxEVT_CHAR_HOOK -wxEVT_NAVIGATION_KEY = _core.wxEVT_NAVIGATION_KEY -wxEVT_KEY_DOWN = _core.wxEVT_KEY_DOWN -wxEVT_KEY_UP = _core.wxEVT_KEY_UP -wxEVT_HOTKEY = _core.wxEVT_HOTKEY -wxEVT_SET_CURSOR = _core.wxEVT_SET_CURSOR -wxEVT_SCROLL_TOP = _core.wxEVT_SCROLL_TOP -wxEVT_SCROLL_BOTTOM = _core.wxEVT_SCROLL_BOTTOM -wxEVT_SCROLL_LINEUP = _core.wxEVT_SCROLL_LINEUP -wxEVT_SCROLL_LINEDOWN = _core.wxEVT_SCROLL_LINEDOWN -wxEVT_SCROLL_PAGEUP = _core.wxEVT_SCROLL_PAGEUP -wxEVT_SCROLL_PAGEDOWN = _core.wxEVT_SCROLL_PAGEDOWN -wxEVT_SCROLL_THUMBTRACK = _core.wxEVT_SCROLL_THUMBTRACK -wxEVT_SCROLL_THUMBRELEASE = _core.wxEVT_SCROLL_THUMBRELEASE -wxEVT_SCROLL_ENDSCROLL = _core.wxEVT_SCROLL_ENDSCROLL -wxEVT_SCROLLWIN_TOP = _core.wxEVT_SCROLLWIN_TOP -wxEVT_SCROLLWIN_BOTTOM = _core.wxEVT_SCROLLWIN_BOTTOM -wxEVT_SCROLLWIN_LINEUP = _core.wxEVT_SCROLLWIN_LINEUP -wxEVT_SCROLLWIN_LINEDOWN = _core.wxEVT_SCROLLWIN_LINEDOWN -wxEVT_SCROLLWIN_PAGEUP = _core.wxEVT_SCROLLWIN_PAGEUP -wxEVT_SCROLLWIN_PAGEDOWN = _core.wxEVT_SCROLLWIN_PAGEDOWN -wxEVT_SCROLLWIN_THUMBTRACK = _core.wxEVT_SCROLLWIN_THUMBTRACK -wxEVT_SCROLLWIN_THUMBRELEASE = _core.wxEVT_SCROLLWIN_THUMBRELEASE -wxEVT_SIZE = _core.wxEVT_SIZE -wxEVT_MOVE = _core.wxEVT_MOVE -wxEVT_CLOSE_WINDOW = _core.wxEVT_CLOSE_WINDOW -wxEVT_END_SESSION = _core.wxEVT_END_SESSION -wxEVT_QUERY_END_SESSION = _core.wxEVT_QUERY_END_SESSION -wxEVT_ACTIVATE_APP = _core.wxEVT_ACTIVATE_APP -wxEVT_POWER = _core.wxEVT_POWER -wxEVT_ACTIVATE = _core.wxEVT_ACTIVATE -wxEVT_CREATE = _core.wxEVT_CREATE -wxEVT_DESTROY = _core.wxEVT_DESTROY -wxEVT_SHOW = _core.wxEVT_SHOW -wxEVT_ICONIZE = _core.wxEVT_ICONIZE -wxEVT_MAXIMIZE = _core.wxEVT_MAXIMIZE -wxEVT_MOUSE_CAPTURE_CHANGED = _core.wxEVT_MOUSE_CAPTURE_CHANGED -wxEVT_PAINT = _core.wxEVT_PAINT -wxEVT_ERASE_BACKGROUND = _core.wxEVT_ERASE_BACKGROUND -wxEVT_NC_PAINT = _core.wxEVT_NC_PAINT -wxEVT_PAINT_ICON = _core.wxEVT_PAINT_ICON -wxEVT_MENU_OPEN = _core.wxEVT_MENU_OPEN -wxEVT_MENU_CLOSE = _core.wxEVT_MENU_CLOSE -wxEVT_MENU_HIGHLIGHT = _core.wxEVT_MENU_HIGHLIGHT -wxEVT_CONTEXT_MENU = _core.wxEVT_CONTEXT_MENU -wxEVT_SYS_COLOUR_CHANGED = _core.wxEVT_SYS_COLOUR_CHANGED -wxEVT_DISPLAY_CHANGED = _core.wxEVT_DISPLAY_CHANGED -wxEVT_SETTING_CHANGED = _core.wxEVT_SETTING_CHANGED -wxEVT_QUERY_NEW_PALETTE = _core.wxEVT_QUERY_NEW_PALETTE -wxEVT_PALETTE_CHANGED = _core.wxEVT_PALETTE_CHANGED -wxEVT_DROP_FILES = _core.wxEVT_DROP_FILES -wxEVT_DRAW_ITEM = _core.wxEVT_DRAW_ITEM -wxEVT_MEASURE_ITEM = _core.wxEVT_MEASURE_ITEM -wxEVT_COMPARE_ITEM = _core.wxEVT_COMPARE_ITEM -wxEVT_INIT_DIALOG = _core.wxEVT_INIT_DIALOG -wxEVT_IDLE = _core.wxEVT_IDLE -wxEVT_UPDATE_UI = _core.wxEVT_UPDATE_UI -wxEVT_SIZING = _core.wxEVT_SIZING -wxEVT_MOVING = _core.wxEVT_MOVING -wxEVT_COMMAND_LEFT_CLICK = _core.wxEVT_COMMAND_LEFT_CLICK -wxEVT_COMMAND_LEFT_DCLICK = _core.wxEVT_COMMAND_LEFT_DCLICK -wxEVT_COMMAND_RIGHT_CLICK = _core.wxEVT_COMMAND_RIGHT_CLICK -wxEVT_COMMAND_RIGHT_DCLICK = _core.wxEVT_COMMAND_RIGHT_DCLICK -wxEVT_COMMAND_SET_FOCUS = _core.wxEVT_COMMAND_SET_FOCUS -wxEVT_COMMAND_KILL_FOCUS = _core.wxEVT_COMMAND_KILL_FOCUS -wxEVT_COMMAND_ENTER = _core.wxEVT_COMMAND_ENTER -# -# Create some event binders -EVT_SIZE = wx.PyEventBinder( wxEVT_SIZE ) -EVT_SIZING = wx.PyEventBinder( wxEVT_SIZING ) -EVT_MOVE = wx.PyEventBinder( wxEVT_MOVE ) -EVT_MOVING = wx.PyEventBinder( wxEVT_MOVING ) -EVT_CLOSE = wx.PyEventBinder( wxEVT_CLOSE_WINDOW ) -EVT_END_SESSION = wx.PyEventBinder( wxEVT_END_SESSION ) -EVT_QUERY_END_SESSION = wx.PyEventBinder( wxEVT_QUERY_END_SESSION ) -EVT_PAINT = wx.PyEventBinder( wxEVT_PAINT ) -EVT_NC_PAINT = wx.PyEventBinder( wxEVT_NC_PAINT ) -EVT_ERASE_BACKGROUND = wx.PyEventBinder( wxEVT_ERASE_BACKGROUND ) -EVT_CHAR = wx.PyEventBinder( wxEVT_CHAR ) -EVT_KEY_DOWN = wx.PyEventBinder( wxEVT_KEY_DOWN ) -EVT_KEY_UP = wx.PyEventBinder( wxEVT_KEY_UP ) -EVT_HOTKEY = wx.PyEventBinder( wxEVT_HOTKEY, 1) -EVT_CHAR_HOOK = wx.PyEventBinder( wxEVT_CHAR_HOOK ) -EVT_MENU_OPEN = wx.PyEventBinder( wxEVT_MENU_OPEN ) -EVT_MENU_CLOSE = wx.PyEventBinder( wxEVT_MENU_CLOSE ) -EVT_MENU_HIGHLIGHT = wx.PyEventBinder( wxEVT_MENU_HIGHLIGHT, 1) -EVT_MENU_HIGHLIGHT_ALL = wx.PyEventBinder( wxEVT_MENU_HIGHLIGHT ) -EVT_SET_FOCUS = wx.PyEventBinder( wxEVT_SET_FOCUS ) -EVT_KILL_FOCUS = wx.PyEventBinder( wxEVT_KILL_FOCUS ) -EVT_CHILD_FOCUS = wx.PyEventBinder( wxEVT_CHILD_FOCUS ) -EVT_ACTIVATE = wx.PyEventBinder( wxEVT_ACTIVATE ) -EVT_ACTIVATE_APP = wx.PyEventBinder( wxEVT_ACTIVATE_APP ) -EVT_END_SESSION = wx.PyEventBinder( wxEVT_END_SESSION ) -EVT_QUERY_END_SESSION = wx.PyEventBinder( wxEVT_QUERY_END_SESSION ) -EVT_DROP_FILES = wx.PyEventBinder( wxEVT_DROP_FILES ) -EVT_INIT_DIALOG = wx.PyEventBinder( wxEVT_INIT_DIALOG ) -EVT_SYS_COLOUR_CHANGED = wx.PyEventBinder( wxEVT_SYS_COLOUR_CHANGED ) -EVT_DISPLAY_CHANGED = wx.PyEventBinder( wxEVT_DISPLAY_CHANGED ) -EVT_SHOW = wx.PyEventBinder( wxEVT_SHOW ) -EVT_MAXIMIZE = wx.PyEventBinder( wxEVT_MAXIMIZE ) -EVT_ICONIZE = wx.PyEventBinder( wxEVT_ICONIZE ) -EVT_NAVIGATION_KEY = wx.PyEventBinder( wxEVT_NAVIGATION_KEY ) -EVT_PALETTE_CHANGED = wx.PyEventBinder( wxEVT_PALETTE_CHANGED ) -EVT_QUERY_NEW_PALETTE = wx.PyEventBinder( wxEVT_QUERY_NEW_PALETTE ) -EVT_WINDOW_CREATE = wx.PyEventBinder( wxEVT_CREATE ) -EVT_WINDOW_DESTROY = wx.PyEventBinder( wxEVT_DESTROY ) -EVT_SET_CURSOR = wx.PyEventBinder( wxEVT_SET_CURSOR ) -EVT_MOUSE_CAPTURE_CHANGED = wx.PyEventBinder( wxEVT_MOUSE_CAPTURE_CHANGED ) - -EVT_LEFT_DOWN = wx.PyEventBinder( wxEVT_LEFT_DOWN ) -EVT_LEFT_UP = wx.PyEventBinder( wxEVT_LEFT_UP ) -EVT_MIDDLE_DOWN = wx.PyEventBinder( wxEVT_MIDDLE_DOWN ) -EVT_MIDDLE_UP = wx.PyEventBinder( wxEVT_MIDDLE_UP ) -EVT_RIGHT_DOWN = wx.PyEventBinder( wxEVT_RIGHT_DOWN ) -EVT_RIGHT_UP = wx.PyEventBinder( wxEVT_RIGHT_UP ) -EVT_MOTION = wx.PyEventBinder( wxEVT_MOTION ) -EVT_LEFT_DCLICK = wx.PyEventBinder( wxEVT_LEFT_DCLICK ) -EVT_MIDDLE_DCLICK = wx.PyEventBinder( wxEVT_MIDDLE_DCLICK ) -EVT_RIGHT_DCLICK = wx.PyEventBinder( wxEVT_RIGHT_DCLICK ) -EVT_LEAVE_WINDOW = wx.PyEventBinder( wxEVT_LEAVE_WINDOW ) -EVT_ENTER_WINDOW = wx.PyEventBinder( wxEVT_ENTER_WINDOW ) -EVT_MOUSEWHEEL = wx.PyEventBinder( wxEVT_MOUSEWHEEL ) - -EVT_MOUSE_EVENTS = wx.PyEventBinder([ wxEVT_LEFT_DOWN, - wxEVT_LEFT_UP, - wxEVT_MIDDLE_DOWN, - wxEVT_MIDDLE_UP, - wxEVT_RIGHT_DOWN, - wxEVT_RIGHT_UP, - wxEVT_MOTION, - wxEVT_LEFT_DCLICK, - wxEVT_MIDDLE_DCLICK, - wxEVT_RIGHT_DCLICK, - wxEVT_ENTER_WINDOW, - wxEVT_LEAVE_WINDOW, - wxEVT_MOUSEWHEEL - ]) - - -# Scrolling from wxWindow (sent to wxScrolledWindow) -EVT_SCROLLWIN = wx.PyEventBinder([ wxEVT_SCROLLWIN_TOP, - wxEVT_SCROLLWIN_BOTTOM, - wxEVT_SCROLLWIN_LINEUP, - wxEVT_SCROLLWIN_LINEDOWN, - wxEVT_SCROLLWIN_PAGEUP, - wxEVT_SCROLLWIN_PAGEDOWN, - wxEVT_SCROLLWIN_THUMBTRACK, - wxEVT_SCROLLWIN_THUMBRELEASE, - ]) - -EVT_SCROLLWIN_TOP = wx.PyEventBinder( wxEVT_SCROLLWIN_TOP ) -EVT_SCROLLWIN_BOTTOM = wx.PyEventBinder( wxEVT_SCROLLWIN_BOTTOM ) -EVT_SCROLLWIN_LINEUP = wx.PyEventBinder( wxEVT_SCROLLWIN_LINEUP ) -EVT_SCROLLWIN_LINEDOWN = wx.PyEventBinder( wxEVT_SCROLLWIN_LINEDOWN ) -EVT_SCROLLWIN_PAGEUP = wx.PyEventBinder( wxEVT_SCROLLWIN_PAGEUP ) -EVT_SCROLLWIN_PAGEDOWN = wx.PyEventBinder( wxEVT_SCROLLWIN_PAGEDOWN ) -EVT_SCROLLWIN_THUMBTRACK = wx.PyEventBinder( wxEVT_SCROLLWIN_THUMBTRACK ) -EVT_SCROLLWIN_THUMBRELEASE = wx.PyEventBinder( wxEVT_SCROLLWIN_THUMBRELEASE ) - -# Scrolling from wxSlider and wxScrollBar -EVT_SCROLL = wx.PyEventBinder([ wxEVT_SCROLL_TOP, - wxEVT_SCROLL_BOTTOM, - wxEVT_SCROLL_LINEUP, - wxEVT_SCROLL_LINEDOWN, - wxEVT_SCROLL_PAGEUP, - wxEVT_SCROLL_PAGEDOWN, - wxEVT_SCROLL_THUMBTRACK, - wxEVT_SCROLL_THUMBRELEASE, - wxEVT_SCROLL_ENDSCROLL, - ]) - -EVT_SCROLL_TOP = wx.PyEventBinder( wxEVT_SCROLL_TOP ) -EVT_SCROLL_BOTTOM = wx.PyEventBinder( wxEVT_SCROLL_BOTTOM ) -EVT_SCROLL_LINEUP = wx.PyEventBinder( wxEVT_SCROLL_LINEUP ) -EVT_SCROLL_LINEDOWN = wx.PyEventBinder( wxEVT_SCROLL_LINEDOWN ) -EVT_SCROLL_PAGEUP = wx.PyEventBinder( wxEVT_SCROLL_PAGEUP ) -EVT_SCROLL_PAGEDOWN = wx.PyEventBinder( wxEVT_SCROLL_PAGEDOWN ) -EVT_SCROLL_THUMBTRACK = wx.PyEventBinder( wxEVT_SCROLL_THUMBTRACK ) -EVT_SCROLL_THUMBRELEASE = wx.PyEventBinder( wxEVT_SCROLL_THUMBRELEASE ) -EVT_SCROLL_ENDSCROLL = wx.PyEventBinder( wxEVT_SCROLL_ENDSCROLL ) - -# Scrolling from wxSlider and wxScrollBar, with an id -EVT_COMMAND_SCROLL = wx.PyEventBinder([ wxEVT_SCROLL_TOP, - wxEVT_SCROLL_BOTTOM, - wxEVT_SCROLL_LINEUP, - wxEVT_SCROLL_LINEDOWN, - wxEVT_SCROLL_PAGEUP, - wxEVT_SCROLL_PAGEDOWN, - wxEVT_SCROLL_THUMBTRACK, - wxEVT_SCROLL_THUMBRELEASE, - wxEVT_SCROLL_ENDSCROLL, - ], 1) - -EVT_COMMAND_SCROLL_TOP = wx.PyEventBinder( wxEVT_SCROLL_TOP, 1) -EVT_COMMAND_SCROLL_BOTTOM = wx.PyEventBinder( wxEVT_SCROLL_BOTTOM, 1) -EVT_COMMAND_SCROLL_LINEUP = wx.PyEventBinder( wxEVT_SCROLL_LINEUP, 1) -EVT_COMMAND_SCROLL_LINEDOWN = wx.PyEventBinder( wxEVT_SCROLL_LINEDOWN, 1) -EVT_COMMAND_SCROLL_PAGEUP = wx.PyEventBinder( wxEVT_SCROLL_PAGEUP, 1) -EVT_COMMAND_SCROLL_PAGEDOWN = wx.PyEventBinder( wxEVT_SCROLL_PAGEDOWN, 1) -EVT_COMMAND_SCROLL_THUMBTRACK = wx.PyEventBinder( wxEVT_SCROLL_THUMBTRACK, 1) -EVT_COMMAND_SCROLL_THUMBRELEASE = wx.PyEventBinder( wxEVT_SCROLL_THUMBRELEASE, 1) -EVT_COMMAND_SCROLL_ENDSCROLL = wx.PyEventBinder( wxEVT_SCROLL_ENDSCROLL, 1) - -EVT_BUTTON = wx.PyEventBinder( wxEVT_COMMAND_BUTTON_CLICKED, 1) -EVT_CHECKBOX = wx.PyEventBinder( wxEVT_COMMAND_CHECKBOX_CLICKED, 1) -EVT_CHOICE = wx.PyEventBinder( wxEVT_COMMAND_CHOICE_SELECTED, 1) -EVT_LISTBOX = wx.PyEventBinder( wxEVT_COMMAND_LISTBOX_SELECTED, 1) -EVT_LISTBOX_DCLICK = wx.PyEventBinder( wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, 1) -EVT_MENU = wx.PyEventBinder( wxEVT_COMMAND_MENU_SELECTED, 1) -EVT_MENU_RANGE = wx.PyEventBinder( wxEVT_COMMAND_MENU_SELECTED, 2) -EVT_SLIDER = wx.PyEventBinder( wxEVT_COMMAND_SLIDER_UPDATED, 1) -EVT_RADIOBOX = wx.PyEventBinder( wxEVT_COMMAND_RADIOBOX_SELECTED, 1) -EVT_RADIOBUTTON = wx.PyEventBinder( wxEVT_COMMAND_RADIOBUTTON_SELECTED, 1) - -EVT_SCROLLBAR = wx.PyEventBinder( wxEVT_COMMAND_SCROLLBAR_UPDATED, 1) -EVT_VLBOX = wx.PyEventBinder( wxEVT_COMMAND_VLBOX_SELECTED, 1) -EVT_COMBOBOX = wx.PyEventBinder( wxEVT_COMMAND_COMBOBOX_SELECTED, 1) -EVT_TOOL = wx.PyEventBinder( wxEVT_COMMAND_TOOL_CLICKED, 1) -EVT_TOOL_RANGE = wx.PyEventBinder( wxEVT_COMMAND_TOOL_CLICKED, 2) -EVT_TOOL_RCLICKED = wx.PyEventBinder( wxEVT_COMMAND_TOOL_RCLICKED, 1) -EVT_TOOL_RCLICKED_RANGE = wx.PyEventBinder( wxEVT_COMMAND_TOOL_RCLICKED, 2) -EVT_TOOL_ENTER = wx.PyEventBinder( wxEVT_COMMAND_TOOL_ENTER, 1) -EVT_CHECKLISTBOX = wx.PyEventBinder( wxEVT_COMMAND_CHECKLISTBOX_TOGGLED, 1) - - -EVT_COMMAND_LEFT_CLICK = wx.PyEventBinder( wxEVT_COMMAND_LEFT_CLICK, 1) -EVT_COMMAND_LEFT_DCLICK = wx.PyEventBinder( wxEVT_COMMAND_LEFT_DCLICK, 1) -EVT_COMMAND_RIGHT_CLICK = wx.PyEventBinder( wxEVT_COMMAND_RIGHT_CLICK, 1) -EVT_COMMAND_RIGHT_DCLICK = wx.PyEventBinder( wxEVT_COMMAND_RIGHT_DCLICK, 1) -EVT_COMMAND_SET_FOCUS = wx.PyEventBinder( wxEVT_COMMAND_SET_FOCUS, 1) -EVT_COMMAND_KILL_FOCUS = wx.PyEventBinder( wxEVT_COMMAND_KILL_FOCUS, 1) -EVT_COMMAND_ENTER = wx.PyEventBinder( wxEVT_COMMAND_ENTER, 1) - -EVT_IDLE = wx.PyEventBinder( wxEVT_IDLE ) - -EVT_UPDATE_UI = wx.PyEventBinder( wxEVT_UPDATE_UI, 1) -EVT_UPDATE_UI_RANGE = wx.PyEventBinder( wxEVT_UPDATE_UI, 2) - -EVT_CONTEXT_MENU = wx.PyEventBinder( wxEVT_CONTEXT_MENU ) - - - -#--------------------------------------------------------------------------- - -class Event(Object): - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __del__(self, destroy=_core.delete_Event): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def SetEventType(*args, **kwargs): - """SetEventType(self, wxEventType typ)""" - return _core.Event_SetEventType(*args, **kwargs) - - def GetEventType(*args, **kwargs): - """GetEventType(self) -> wxEventType""" - return _core.Event_GetEventType(*args, **kwargs) - - def GetEventObject(*args, **kwargs): - """GetEventObject(self) -> Object""" - return _core.Event_GetEventObject(*args, **kwargs) - - def SetEventObject(*args, **kwargs): - """SetEventObject(self, Object obj)""" - return _core.Event_SetEventObject(*args, **kwargs) - - def GetTimestamp(*args, **kwargs): - """GetTimestamp(self) -> long""" - return _core.Event_GetTimestamp(*args, **kwargs) - - def SetTimestamp(*args, **kwargs): - """SetTimestamp(self, long ts=0)""" - return _core.Event_SetTimestamp(*args, **kwargs) - - def GetId(*args, **kwargs): - """GetId(self) -> int""" - return _core.Event_GetId(*args, **kwargs) - - def SetId(*args, **kwargs): - """SetId(self, int Id)""" - return _core.Event_SetId(*args, **kwargs) - - def IsCommandEvent(*args, **kwargs): - """IsCommandEvent(self) -> bool""" - return _core.Event_IsCommandEvent(*args, **kwargs) - - def Skip(*args, **kwargs): - """Skip(self, bool skip=True)""" - return _core.Event_Skip(*args, **kwargs) - - def GetSkipped(*args, **kwargs): - """GetSkipped(self) -> bool""" - return _core.Event_GetSkipped(*args, **kwargs) - - def ShouldPropagate(*args, **kwargs): - """ShouldPropagate(self) -> bool""" - return _core.Event_ShouldPropagate(*args, **kwargs) - - def StopPropagation(*args, **kwargs): - """StopPropagation(self) -> int""" - return _core.Event_StopPropagation(*args, **kwargs) - - def ResumePropagation(*args, **kwargs): - """ResumePropagation(self, int propagationLevel)""" - return _core.Event_ResumePropagation(*args, **kwargs) - - def Clone(*args, **kwargs): - """Clone(self) -> Event""" - return _core.Event_Clone(*args, **kwargs) - - -class EventPtr(Event): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Event -_core.Event_swigregister(EventPtr) - -#--------------------------------------------------------------------------- - -class PropagationDisabler(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPropagationDisabler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Event event) -> PropagationDisabler""" - newobj = _core.new_PropagationDisabler(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_core.delete_PropagationDisabler): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - -class PropagationDisablerPtr(PropagationDisabler): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PropagationDisabler -_core.PropagationDisabler_swigregister(PropagationDisablerPtr) - -class PropagateOnce(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPropagateOnce instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Event event) -> PropagateOnce""" - newobj = _core.new_PropagateOnce(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_core.delete_PropagateOnce): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - -class PropagateOncePtr(PropagateOnce): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PropagateOnce -_core.PropagateOnce_swigregister(PropagateOncePtr) - -#--------------------------------------------------------------------------- - -class CommandEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxCommandEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, wxEventType commandType=wxEVT_NULL, int winid=0) -> CommandEvent""" - newobj = _core.new_CommandEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetSelection(*args, **kwargs): - """GetSelection(self) -> int""" - return _core.CommandEvent_GetSelection(*args, **kwargs) - - def SetString(*args, **kwargs): - """SetString(self, String s)""" - return _core.CommandEvent_SetString(*args, **kwargs) - - def GetString(*args, **kwargs): - """GetString(self) -> String""" - return _core.CommandEvent_GetString(*args, **kwargs) - - def IsChecked(*args, **kwargs): - """IsChecked(self) -> bool""" - return _core.CommandEvent_IsChecked(*args, **kwargs) - - Checked = IsChecked - def IsSelection(*args, **kwargs): - """IsSelection(self) -> bool""" - return _core.CommandEvent_IsSelection(*args, **kwargs) - - def SetExtraLong(*args, **kwargs): - """SetExtraLong(self, long extraLong)""" - return _core.CommandEvent_SetExtraLong(*args, **kwargs) - - def GetExtraLong(*args, **kwargs): - """GetExtraLong(self) -> long""" - return _core.CommandEvent_GetExtraLong(*args, **kwargs) - - def SetInt(*args, **kwargs): - """SetInt(self, int i)""" - return _core.CommandEvent_SetInt(*args, **kwargs) - - def GetInt(*args, **kwargs): - """GetInt(self) -> long""" - return _core.CommandEvent_GetInt(*args, **kwargs) - - def Clone(*args, **kwargs): - """Clone(self) -> Event""" - return _core.CommandEvent_Clone(*args, **kwargs) - - -class CommandEventPtr(CommandEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = CommandEvent -_core.CommandEvent_swigregister(CommandEventPtr) - -#--------------------------------------------------------------------------- - -class NotifyEvent(CommandEvent): - def __repr__(self): - return "<%s.%s; proxy of C++ wxNotifyEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, wxEventType commandType=wxEVT_NULL, int winid=0) -> NotifyEvent""" - newobj = _core.new_NotifyEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def Veto(*args, **kwargs): - """Veto(self)""" - return _core.NotifyEvent_Veto(*args, **kwargs) - - def Allow(*args, **kwargs): - """Allow(self)""" - return _core.NotifyEvent_Allow(*args, **kwargs) - - def IsAllowed(*args, **kwargs): - """IsAllowed(self) -> bool""" - return _core.NotifyEvent_IsAllowed(*args, **kwargs) - - -class NotifyEventPtr(NotifyEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = NotifyEvent -_core.NotifyEvent_swigregister(NotifyEventPtr) - -#--------------------------------------------------------------------------- - -class ScrollEvent(CommandEvent): - def __repr__(self): - return "<%s.%s; proxy of C++ wxScrollEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, wxEventType commandType=wxEVT_NULL, int winid=0, int pos=0, - int orient=0) -> ScrollEvent - """ - newobj = _core.new_ScrollEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetOrientation(*args, **kwargs): - """GetOrientation(self) -> int""" - return _core.ScrollEvent_GetOrientation(*args, **kwargs) - - def GetPosition(*args, **kwargs): - """GetPosition(self) -> int""" - return _core.ScrollEvent_GetPosition(*args, **kwargs) - - def SetOrientation(*args, **kwargs): - """SetOrientation(self, int orient)""" - return _core.ScrollEvent_SetOrientation(*args, **kwargs) - - def SetPosition(*args, **kwargs): - """SetPosition(self, int pos)""" - return _core.ScrollEvent_SetPosition(*args, **kwargs) - - -class ScrollEventPtr(ScrollEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ScrollEvent -_core.ScrollEvent_swigregister(ScrollEventPtr) - -#--------------------------------------------------------------------------- - -class ScrollWinEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxScrollWinEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, wxEventType commandType=wxEVT_NULL, int pos=0, int orient=0) -> ScrollWinEvent""" - newobj = _core.new_ScrollWinEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetOrientation(*args, **kwargs): - """GetOrientation(self) -> int""" - return _core.ScrollWinEvent_GetOrientation(*args, **kwargs) - - def GetPosition(*args, **kwargs): - """GetPosition(self) -> int""" - return _core.ScrollWinEvent_GetPosition(*args, **kwargs) - - def SetOrientation(*args, **kwargs): - """SetOrientation(self, int orient)""" - return _core.ScrollWinEvent_SetOrientation(*args, **kwargs) - - def SetPosition(*args, **kwargs): - """SetPosition(self, int pos)""" - return _core.ScrollWinEvent_SetPosition(*args, **kwargs) - - -class ScrollWinEventPtr(ScrollWinEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ScrollWinEvent -_core.ScrollWinEvent_swigregister(ScrollWinEventPtr) - -#--------------------------------------------------------------------------- - -MOUSE_BTN_ANY = _core.MOUSE_BTN_ANY -MOUSE_BTN_NONE = _core.MOUSE_BTN_NONE -MOUSE_BTN_LEFT = _core.MOUSE_BTN_LEFT -MOUSE_BTN_MIDDLE = _core.MOUSE_BTN_MIDDLE -MOUSE_BTN_RIGHT = _core.MOUSE_BTN_RIGHT -class MouseEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxMouseEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, wxEventType mouseType=wxEVT_NULL) -> MouseEvent""" - newobj = _core.new_MouseEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def IsButton(*args, **kwargs): - """IsButton(self) -> bool""" - return _core.MouseEvent_IsButton(*args, **kwargs) - - def ButtonDown(*args, **kwargs): - """ButtonDown(self, int but=MOUSE_BTN_ANY) -> bool""" - return _core.MouseEvent_ButtonDown(*args, **kwargs) - - def ButtonDClick(*args, **kwargs): - """ButtonDClick(self, int but=MOUSE_BTN_ANY) -> bool""" - return _core.MouseEvent_ButtonDClick(*args, **kwargs) - - def ButtonUp(*args, **kwargs): - """ButtonUp(self, int but=MOUSE_BTN_ANY) -> bool""" - return _core.MouseEvent_ButtonUp(*args, **kwargs) - - def Button(*args, **kwargs): - """Button(self, int but) -> bool""" - return _core.MouseEvent_Button(*args, **kwargs) - - def ButtonIsDown(*args, **kwargs): - """ButtonIsDown(self, int but) -> bool""" - return _core.MouseEvent_ButtonIsDown(*args, **kwargs) - - def GetButton(*args, **kwargs): - """GetButton(self) -> int""" - return _core.MouseEvent_GetButton(*args, **kwargs) - - def ControlDown(*args, **kwargs): - """ControlDown(self) -> bool""" - return _core.MouseEvent_ControlDown(*args, **kwargs) - - def MetaDown(*args, **kwargs): - """MetaDown(self) -> bool""" - return _core.MouseEvent_MetaDown(*args, **kwargs) - - def AltDown(*args, **kwargs): - """AltDown(self) -> bool""" - return _core.MouseEvent_AltDown(*args, **kwargs) - - def ShiftDown(*args, **kwargs): - """ShiftDown(self) -> bool""" - return _core.MouseEvent_ShiftDown(*args, **kwargs) - - def LeftDown(*args, **kwargs): - """LeftDown(self) -> bool""" - return _core.MouseEvent_LeftDown(*args, **kwargs) - - def MiddleDown(*args, **kwargs): - """MiddleDown(self) -> bool""" - return _core.MouseEvent_MiddleDown(*args, **kwargs) - - def RightDown(*args, **kwargs): - """RightDown(self) -> bool""" - return _core.MouseEvent_RightDown(*args, **kwargs) - - def LeftUp(*args, **kwargs): - """LeftUp(self) -> bool""" - return _core.MouseEvent_LeftUp(*args, **kwargs) - - def MiddleUp(*args, **kwargs): - """MiddleUp(self) -> bool""" - return _core.MouseEvent_MiddleUp(*args, **kwargs) - - def RightUp(*args, **kwargs): - """RightUp(self) -> bool""" - return _core.MouseEvent_RightUp(*args, **kwargs) - - def LeftDClick(*args, **kwargs): - """LeftDClick(self) -> bool""" - return _core.MouseEvent_LeftDClick(*args, **kwargs) - - def MiddleDClick(*args, **kwargs): - """MiddleDClick(self) -> bool""" - return _core.MouseEvent_MiddleDClick(*args, **kwargs) - - def RightDClick(*args, **kwargs): - """RightDClick(self) -> bool""" - return _core.MouseEvent_RightDClick(*args, **kwargs) - - def LeftIsDown(*args, **kwargs): - """LeftIsDown(self) -> bool""" - return _core.MouseEvent_LeftIsDown(*args, **kwargs) - - def MiddleIsDown(*args, **kwargs): - """MiddleIsDown(self) -> bool""" - return _core.MouseEvent_MiddleIsDown(*args, **kwargs) - - def RightIsDown(*args, **kwargs): - """RightIsDown(self) -> bool""" - return _core.MouseEvent_RightIsDown(*args, **kwargs) - - def Dragging(*args, **kwargs): - """Dragging(self) -> bool""" - return _core.MouseEvent_Dragging(*args, **kwargs) - - def Moving(*args, **kwargs): - """Moving(self) -> bool""" - return _core.MouseEvent_Moving(*args, **kwargs) - - def Entering(*args, **kwargs): - """Entering(self) -> bool""" - return _core.MouseEvent_Entering(*args, **kwargs) - - def Leaving(*args, **kwargs): - """Leaving(self) -> bool""" - return _core.MouseEvent_Leaving(*args, **kwargs) - - def GetPosition(*args, **kwargs): - """ - GetPosition(self) -> Point - - Returns the position of the mouse in window coordinates when the event happened. - """ - return _core.MouseEvent_GetPosition(*args, **kwargs) - - def GetPositionTuple(*args, **kwargs): - """ - GetPositionTuple() -> (x,y) - - Returns the position of the mouse in window coordinates when the event happened. - """ - return _core.MouseEvent_GetPositionTuple(*args, **kwargs) - - def GetLogicalPosition(*args, **kwargs): - """GetLogicalPosition(self, DC dc) -> Point""" - return _core.MouseEvent_GetLogicalPosition(*args, **kwargs) - - def GetX(*args, **kwargs): - """GetX(self) -> int""" - return _core.MouseEvent_GetX(*args, **kwargs) - - def GetY(*args, **kwargs): - """GetY(self) -> int""" - return _core.MouseEvent_GetY(*args, **kwargs) - - def GetWheelRotation(*args, **kwargs): - """GetWheelRotation(self) -> int""" - return _core.MouseEvent_GetWheelRotation(*args, **kwargs) - - def GetWheelDelta(*args, **kwargs): - """GetWheelDelta(self) -> int""" - return _core.MouseEvent_GetWheelDelta(*args, **kwargs) - - def GetLinesPerAction(*args, **kwargs): - """GetLinesPerAction(self) -> int""" - return _core.MouseEvent_GetLinesPerAction(*args, **kwargs) - - def IsPageScroll(*args, **kwargs): - """IsPageScroll(self) -> bool""" - return _core.MouseEvent_IsPageScroll(*args, **kwargs) - - m_x = property(_core.MouseEvent_m_x_get, _core.MouseEvent_m_x_set) - m_y = property(_core.MouseEvent_m_y_get, _core.MouseEvent_m_y_set) - m_leftDown = property(_core.MouseEvent_m_leftDown_get, _core.MouseEvent_m_leftDown_set) - m_middleDown = property(_core.MouseEvent_m_middleDown_get, _core.MouseEvent_m_middleDown_set) - m_rightDown = property(_core.MouseEvent_m_rightDown_get, _core.MouseEvent_m_rightDown_set) - m_controlDown = property(_core.MouseEvent_m_controlDown_get, _core.MouseEvent_m_controlDown_set) - m_shiftDown = property(_core.MouseEvent_m_shiftDown_get, _core.MouseEvent_m_shiftDown_set) - m_altDown = property(_core.MouseEvent_m_altDown_get, _core.MouseEvent_m_altDown_set) - m_metaDown = property(_core.MouseEvent_m_metaDown_get, _core.MouseEvent_m_metaDown_set) - m_wheelRotation = property(_core.MouseEvent_m_wheelRotation_get, _core.MouseEvent_m_wheelRotation_set) - m_wheelDelta = property(_core.MouseEvent_m_wheelDelta_get, _core.MouseEvent_m_wheelDelta_set) - m_linesPerAction = property(_core.MouseEvent_m_linesPerAction_get, _core.MouseEvent_m_linesPerAction_set) - -class MouseEventPtr(MouseEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = MouseEvent -_core.MouseEvent_swigregister(MouseEventPtr) - -#--------------------------------------------------------------------------- - -class SetCursorEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxSetCursorEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int x=0, int y=0) -> SetCursorEvent""" - newobj = _core.new_SetCursorEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetX(*args, **kwargs): - """GetX(self) -> int""" - return _core.SetCursorEvent_GetX(*args, **kwargs) - - def GetY(*args, **kwargs): - """GetY(self) -> int""" - return _core.SetCursorEvent_GetY(*args, **kwargs) - - def SetCursor(*args, **kwargs): - """SetCursor(self, Cursor cursor)""" - return _core.SetCursorEvent_SetCursor(*args, **kwargs) - - def GetCursor(*args, **kwargs): - """GetCursor(self) -> Cursor""" - return _core.SetCursorEvent_GetCursor(*args, **kwargs) - - def HasCursor(*args, **kwargs): - """HasCursor(self) -> bool""" - return _core.SetCursorEvent_HasCursor(*args, **kwargs) - - -class SetCursorEventPtr(SetCursorEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = SetCursorEvent -_core.SetCursorEvent_swigregister(SetCursorEventPtr) - -#--------------------------------------------------------------------------- - -class KeyEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxKeyEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, wxEventType keyType=wxEVT_NULL) -> KeyEvent""" - newobj = _core.new_KeyEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def ControlDown(*args, **kwargs): - """ControlDown(self) -> bool""" - return _core.KeyEvent_ControlDown(*args, **kwargs) - - def MetaDown(*args, **kwargs): - """MetaDown(self) -> bool""" - return _core.KeyEvent_MetaDown(*args, **kwargs) - - def AltDown(*args, **kwargs): - """AltDown(self) -> bool""" - return _core.KeyEvent_AltDown(*args, **kwargs) - - def ShiftDown(*args, **kwargs): - """ShiftDown(self) -> bool""" - return _core.KeyEvent_ShiftDown(*args, **kwargs) - - def HasModifiers(*args, **kwargs): - """HasModifiers(self) -> bool""" - return _core.KeyEvent_HasModifiers(*args, **kwargs) - - def GetKeyCode(*args, **kwargs): - """GetKeyCode(self) -> int""" - return _core.KeyEvent_GetKeyCode(*args, **kwargs) - - KeyCode = GetKeyCode - def GetUniChar(*args, **kwargs): - """GetUniChar(self) -> int""" - return _core.KeyEvent_GetUniChar(*args, **kwargs) - - def GetRawKeyCode(*args, **kwargs): - """GetRawKeyCode(self) -> unsigned int""" - return _core.KeyEvent_GetRawKeyCode(*args, **kwargs) - - def GetRawKeyFlags(*args, **kwargs): - """GetRawKeyFlags(self) -> unsigned int""" - return _core.KeyEvent_GetRawKeyFlags(*args, **kwargs) - - def GetPosition(*args, **kwargs): - """ - GetPosition(self) -> Point - - Find the position of the event. - """ - return _core.KeyEvent_GetPosition(*args, **kwargs) - - def GetPositionTuple(*args, **kwargs): - """ - GetPositionTuple() -> (x,y) - - Find the position of the event. - """ - return _core.KeyEvent_GetPositionTuple(*args, **kwargs) - - def GetX(*args, **kwargs): - """GetX(self) -> int""" - return _core.KeyEvent_GetX(*args, **kwargs) - - def GetY(*args, **kwargs): - """GetY(self) -> int""" - return _core.KeyEvent_GetY(*args, **kwargs) - - m_x = property(_core.KeyEvent_m_x_get, _core.KeyEvent_m_x_set) - m_y = property(_core.KeyEvent_m_y_get, _core.KeyEvent_m_y_set) - m_keyCode = property(_core.KeyEvent_m_keyCode_get, _core.KeyEvent_m_keyCode_set) - m_controlDown = property(_core.KeyEvent_m_controlDown_get, _core.KeyEvent_m_controlDown_set) - m_shiftDown = property(_core.KeyEvent_m_shiftDown_get, _core.KeyEvent_m_shiftDown_set) - m_altDown = property(_core.KeyEvent_m_altDown_get, _core.KeyEvent_m_altDown_set) - m_metaDown = property(_core.KeyEvent_m_metaDown_get, _core.KeyEvent_m_metaDown_set) - m_scanCode = property(_core.KeyEvent_m_scanCode_get, _core.KeyEvent_m_scanCode_set) - m_rawCode = property(_core.KeyEvent_m_rawCode_get, _core.KeyEvent_m_rawCode_set) - m_rawFlags = property(_core.KeyEvent_m_rawFlags_get, _core.KeyEvent_m_rawFlags_set) - -class KeyEventPtr(KeyEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = KeyEvent -_core.KeyEvent_swigregister(KeyEventPtr) - -#--------------------------------------------------------------------------- - -class SizeEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxSizeEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Size sz=DefaultSize, int winid=0) -> SizeEvent""" - newobj = _core.new_SizeEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetSize(*args, **kwargs): - """GetSize(self) -> Size""" - return _core.SizeEvent_GetSize(*args, **kwargs) - - def GetRect(*args, **kwargs): - """GetRect(self) -> Rect""" - return _core.SizeEvent_GetRect(*args, **kwargs) - - def SetRect(*args, **kwargs): - """SetRect(self, Rect rect)""" - return _core.SizeEvent_SetRect(*args, **kwargs) - - def SetSize(*args, **kwargs): - """SetSize(self, Size size)""" - return _core.SizeEvent_SetSize(*args, **kwargs) - - m_size = property(_core.SizeEvent_m_size_get, _core.SizeEvent_m_size_set) - m_rect = property(_core.SizeEvent_m_rect_get, _core.SizeEvent_m_rect_set) - -class SizeEventPtr(SizeEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = SizeEvent -_core.SizeEvent_swigregister(SizeEventPtr) - -#--------------------------------------------------------------------------- - -class MoveEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxMoveEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Point pos=DefaultPosition, int winid=0) -> MoveEvent""" - newobj = _core.new_MoveEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetPosition(*args, **kwargs): - """GetPosition(self) -> Point""" - return _core.MoveEvent_GetPosition(*args, **kwargs) - - def GetRect(*args, **kwargs): - """GetRect(self) -> Rect""" - return _core.MoveEvent_GetRect(*args, **kwargs) - - def SetRect(*args, **kwargs): - """SetRect(self, Rect rect)""" - return _core.MoveEvent_SetRect(*args, **kwargs) - - def SetPosition(*args, **kwargs): - """SetPosition(self, Point pos)""" - return _core.MoveEvent_SetPosition(*args, **kwargs) - - m_pos = property(_core.MoveEvent_m_pos_get, _core.MoveEvent_m_pos_set) - m_rect = property(_core.MoveEvent_m_rect_get, _core.MoveEvent_m_rect_set) - -class MoveEventPtr(MoveEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = MoveEvent -_core.MoveEvent_swigregister(MoveEventPtr) - -#--------------------------------------------------------------------------- - -class PaintEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPaintEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int Id=0) -> PaintEvent""" - newobj = _core.new_PaintEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class PaintEventPtr(PaintEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PaintEvent -_core.PaintEvent_swigregister(PaintEventPtr) - -class NcPaintEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxNcPaintEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int winid=0) -> NcPaintEvent""" - newobj = _core.new_NcPaintEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class NcPaintEventPtr(NcPaintEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = NcPaintEvent -_core.NcPaintEvent_swigregister(NcPaintEventPtr) - -#--------------------------------------------------------------------------- - -class EraseEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxEraseEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int Id=0, DC dc=(wxDC *) NULL) -> EraseEvent""" - newobj = _core.new_EraseEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetDC(*args, **kwargs): - """GetDC(self) -> DC""" - return _core.EraseEvent_GetDC(*args, **kwargs) - - -class EraseEventPtr(EraseEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = EraseEvent -_core.EraseEvent_swigregister(EraseEventPtr) - -#--------------------------------------------------------------------------- - -class FocusEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxFocusEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, wxEventType type=wxEVT_NULL, int winid=0) -> FocusEvent""" - newobj = _core.new_FocusEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetWindow(*args, **kwargs): - """GetWindow(self) -> Window""" - return _core.FocusEvent_GetWindow(*args, **kwargs) - - def SetWindow(*args, **kwargs): - """SetWindow(self, Window win)""" - return _core.FocusEvent_SetWindow(*args, **kwargs) - - -class FocusEventPtr(FocusEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = FocusEvent -_core.FocusEvent_swigregister(FocusEventPtr) - -#--------------------------------------------------------------------------- - -class ChildFocusEvent(CommandEvent): - def __repr__(self): - return "<%s.%s; proxy of C++ wxChildFocusEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Window win=None) -> ChildFocusEvent""" - newobj = _core.new_ChildFocusEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetWindow(*args, **kwargs): - """GetWindow(self) -> Window""" - return _core.ChildFocusEvent_GetWindow(*args, **kwargs) - - -class ChildFocusEventPtr(ChildFocusEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ChildFocusEvent -_core.ChildFocusEvent_swigregister(ChildFocusEventPtr) - -#--------------------------------------------------------------------------- - -class ActivateEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxActivateEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, wxEventType type=wxEVT_NULL, bool active=True, int Id=0) -> ActivateEvent""" - newobj = _core.new_ActivateEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetActive(*args, **kwargs): - """GetActive(self) -> bool""" - return _core.ActivateEvent_GetActive(*args, **kwargs) - - -class ActivateEventPtr(ActivateEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ActivateEvent -_core.ActivateEvent_swigregister(ActivateEventPtr) - -#--------------------------------------------------------------------------- - -class InitDialogEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxInitDialogEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int Id=0) -> InitDialogEvent""" - newobj = _core.new_InitDialogEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class InitDialogEventPtr(InitDialogEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = InitDialogEvent -_core.InitDialogEvent_swigregister(InitDialogEventPtr) - -#--------------------------------------------------------------------------- - -class MenuEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxMenuEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, wxEventType type=wxEVT_NULL, int winid=0, Menu menu=None) -> MenuEvent""" - newobj = _core.new_MenuEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetMenuId(*args, **kwargs): - """GetMenuId(self) -> int""" - return _core.MenuEvent_GetMenuId(*args, **kwargs) - - def IsPopup(*args, **kwargs): - """IsPopup(self) -> bool""" - return _core.MenuEvent_IsPopup(*args, **kwargs) - - def GetMenu(*args, **kwargs): - """GetMenu(self) -> Menu""" - return _core.MenuEvent_GetMenu(*args, **kwargs) - - -class MenuEventPtr(MenuEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = MenuEvent -_core.MenuEvent_swigregister(MenuEventPtr) - -#--------------------------------------------------------------------------- - -class CloseEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxCloseEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, wxEventType type=wxEVT_NULL, int winid=0) -> CloseEvent""" - newobj = _core.new_CloseEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def SetLoggingOff(*args, **kwargs): - """SetLoggingOff(self, bool logOff)""" - return _core.CloseEvent_SetLoggingOff(*args, **kwargs) - - def GetLoggingOff(*args, **kwargs): - """GetLoggingOff(self) -> bool""" - return _core.CloseEvent_GetLoggingOff(*args, **kwargs) - - def Veto(*args, **kwargs): - """Veto(self, bool veto=True)""" - return _core.CloseEvent_Veto(*args, **kwargs) - - def SetCanVeto(*args, **kwargs): - """SetCanVeto(self, bool canVeto)""" - return _core.CloseEvent_SetCanVeto(*args, **kwargs) - - def CanVeto(*args, **kwargs): - """CanVeto(self) -> bool""" - return _core.CloseEvent_CanVeto(*args, **kwargs) - - def GetVeto(*args, **kwargs): - """GetVeto(self) -> bool""" - return _core.CloseEvent_GetVeto(*args, **kwargs) - - -class CloseEventPtr(CloseEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = CloseEvent -_core.CloseEvent_swigregister(CloseEventPtr) - -#--------------------------------------------------------------------------- - -class ShowEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxShowEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int winid=0, bool show=False) -> ShowEvent""" - newobj = _core.new_ShowEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def SetShow(*args, **kwargs): - """SetShow(self, bool show)""" - return _core.ShowEvent_SetShow(*args, **kwargs) - - def GetShow(*args, **kwargs): - """GetShow(self) -> bool""" - return _core.ShowEvent_GetShow(*args, **kwargs) - - -class ShowEventPtr(ShowEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ShowEvent -_core.ShowEvent_swigregister(ShowEventPtr) - -#--------------------------------------------------------------------------- - -class IconizeEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxIconizeEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int id=0, bool iconized=True) -> IconizeEvent""" - newobj = _core.new_IconizeEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def Iconized(*args, **kwargs): - """Iconized(self) -> bool""" - return _core.IconizeEvent_Iconized(*args, **kwargs) - - -class IconizeEventPtr(IconizeEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = IconizeEvent -_core.IconizeEvent_swigregister(IconizeEventPtr) - -#--------------------------------------------------------------------------- - -class MaximizeEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxMaximizeEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int id=0) -> MaximizeEvent""" - newobj = _core.new_MaximizeEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class MaximizeEventPtr(MaximizeEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = MaximizeEvent -_core.MaximizeEvent_swigregister(MaximizeEventPtr) - -#--------------------------------------------------------------------------- - -class DropFilesEvent(Event): - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxDropFilesEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def GetPosition(*args, **kwargs): - """GetPosition(self) -> Point""" - return _core.DropFilesEvent_GetPosition(*args, **kwargs) - - def GetNumberOfFiles(*args, **kwargs): - """GetNumberOfFiles(self) -> int""" - return _core.DropFilesEvent_GetNumberOfFiles(*args, **kwargs) - - def GetFiles(*args, **kwargs): - """GetFiles(self) -> PyObject""" - return _core.DropFilesEvent_GetFiles(*args, **kwargs) - - -class DropFilesEventPtr(DropFilesEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = DropFilesEvent -_core.DropFilesEvent_swigregister(DropFilesEventPtr) - -#--------------------------------------------------------------------------- - -UPDATE_UI_PROCESS_ALL = _core.UPDATE_UI_PROCESS_ALL -UPDATE_UI_PROCESS_SPECIFIED = _core.UPDATE_UI_PROCESS_SPECIFIED -class UpdateUIEvent(CommandEvent): - def __repr__(self): - return "<%s.%s; proxy of C++ wxUpdateUIEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int commandId=0) -> UpdateUIEvent""" - newobj = _core.new_UpdateUIEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetChecked(*args, **kwargs): - """GetChecked(self) -> bool""" - return _core.UpdateUIEvent_GetChecked(*args, **kwargs) - - def GetEnabled(*args, **kwargs): - """GetEnabled(self) -> bool""" - return _core.UpdateUIEvent_GetEnabled(*args, **kwargs) - - def GetText(*args, **kwargs): - """GetText(self) -> String""" - return _core.UpdateUIEvent_GetText(*args, **kwargs) - - def GetSetText(*args, **kwargs): - """GetSetText(self) -> bool""" - return _core.UpdateUIEvent_GetSetText(*args, **kwargs) - - def GetSetChecked(*args, **kwargs): - """GetSetChecked(self) -> bool""" - return _core.UpdateUIEvent_GetSetChecked(*args, **kwargs) - - def GetSetEnabled(*args, **kwargs): - """GetSetEnabled(self) -> bool""" - return _core.UpdateUIEvent_GetSetEnabled(*args, **kwargs) - - def Check(*args, **kwargs): - """Check(self, bool check)""" - return _core.UpdateUIEvent_Check(*args, **kwargs) - - def Enable(*args, **kwargs): - """Enable(self, bool enable)""" - return _core.UpdateUIEvent_Enable(*args, **kwargs) - - def SetText(*args, **kwargs): - """SetText(self, String text)""" - return _core.UpdateUIEvent_SetText(*args, **kwargs) - - def SetUpdateInterval(*args, **kwargs): - """UpdateUIEvent.SetUpdateInterval(long updateInterval)""" - return _core.UpdateUIEvent_SetUpdateInterval(*args, **kwargs) - - SetUpdateInterval = staticmethod(SetUpdateInterval) - def GetUpdateInterval(*args, **kwargs): - """UpdateUIEvent.GetUpdateInterval() -> long""" - return _core.UpdateUIEvent_GetUpdateInterval(*args, **kwargs) - - GetUpdateInterval = staticmethod(GetUpdateInterval) - def CanUpdate(*args, **kwargs): - """UpdateUIEvent.CanUpdate(Window win) -> bool""" - return _core.UpdateUIEvent_CanUpdate(*args, **kwargs) - - CanUpdate = staticmethod(CanUpdate) - def ResetUpdateTime(*args, **kwargs): - """UpdateUIEvent.ResetUpdateTime()""" - return _core.UpdateUIEvent_ResetUpdateTime(*args, **kwargs) - - ResetUpdateTime = staticmethod(ResetUpdateTime) - def SetMode(*args, **kwargs): - """UpdateUIEvent.SetMode(int mode)""" - return _core.UpdateUIEvent_SetMode(*args, **kwargs) - - SetMode = staticmethod(SetMode) - def GetMode(*args, **kwargs): - """UpdateUIEvent.GetMode() -> int""" - return _core.UpdateUIEvent_GetMode(*args, **kwargs) - - GetMode = staticmethod(GetMode) - -class UpdateUIEventPtr(UpdateUIEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = UpdateUIEvent -_core.UpdateUIEvent_swigregister(UpdateUIEventPtr) - -def UpdateUIEvent_SetUpdateInterval(*args, **kwargs): - """UpdateUIEvent_SetUpdateInterval(long updateInterval)""" - return _core.UpdateUIEvent_SetUpdateInterval(*args, **kwargs) - -def UpdateUIEvent_GetUpdateInterval(*args, **kwargs): - """UpdateUIEvent_GetUpdateInterval() -> long""" - return _core.UpdateUIEvent_GetUpdateInterval(*args, **kwargs) - -def UpdateUIEvent_CanUpdate(*args, **kwargs): - """UpdateUIEvent_CanUpdate(Window win) -> bool""" - return _core.UpdateUIEvent_CanUpdate(*args, **kwargs) - -def UpdateUIEvent_ResetUpdateTime(*args, **kwargs): - """UpdateUIEvent_ResetUpdateTime()""" - return _core.UpdateUIEvent_ResetUpdateTime(*args, **kwargs) - -def UpdateUIEvent_SetMode(*args, **kwargs): - """UpdateUIEvent_SetMode(int mode)""" - return _core.UpdateUIEvent_SetMode(*args, **kwargs) - -def UpdateUIEvent_GetMode(*args, **kwargs): - """UpdateUIEvent_GetMode() -> int""" - return _core.UpdateUIEvent_GetMode(*args, **kwargs) - -#--------------------------------------------------------------------------- - -class SysColourChangedEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxSysColourChangedEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> SysColourChangedEvent""" - newobj = _core.new_SysColourChangedEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class SysColourChangedEventPtr(SysColourChangedEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = SysColourChangedEvent -_core.SysColourChangedEvent_swigregister(SysColourChangedEventPtr) - -#--------------------------------------------------------------------------- - -class MouseCaptureChangedEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxMouseCaptureChangedEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int winid=0, Window gainedCapture=None) -> MouseCaptureChangedEvent""" - newobj = _core.new_MouseCaptureChangedEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetCapturedWindow(*args, **kwargs): - """GetCapturedWindow(self) -> Window""" - return _core.MouseCaptureChangedEvent_GetCapturedWindow(*args, **kwargs) - - -class MouseCaptureChangedEventPtr(MouseCaptureChangedEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = MouseCaptureChangedEvent -_core.MouseCaptureChangedEvent_swigregister(MouseCaptureChangedEventPtr) - -#--------------------------------------------------------------------------- - -class DisplayChangedEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxDisplayChangedEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> DisplayChangedEvent""" - newobj = _core.new_DisplayChangedEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class DisplayChangedEventPtr(DisplayChangedEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = DisplayChangedEvent -_core.DisplayChangedEvent_swigregister(DisplayChangedEventPtr) - -#--------------------------------------------------------------------------- - -class PaletteChangedEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPaletteChangedEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int id=0) -> PaletteChangedEvent""" - newobj = _core.new_PaletteChangedEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def SetChangedWindow(*args, **kwargs): - """SetChangedWindow(self, Window win)""" - return _core.PaletteChangedEvent_SetChangedWindow(*args, **kwargs) - - def GetChangedWindow(*args, **kwargs): - """GetChangedWindow(self) -> Window""" - return _core.PaletteChangedEvent_GetChangedWindow(*args, **kwargs) - - -class PaletteChangedEventPtr(PaletteChangedEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PaletteChangedEvent -_core.PaletteChangedEvent_swigregister(PaletteChangedEventPtr) - -#--------------------------------------------------------------------------- - -class QueryNewPaletteEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxQueryNewPaletteEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int winid=0) -> QueryNewPaletteEvent""" - newobj = _core.new_QueryNewPaletteEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def SetPaletteRealized(*args, **kwargs): - """SetPaletteRealized(self, bool realized)""" - return _core.QueryNewPaletteEvent_SetPaletteRealized(*args, **kwargs) - - def GetPaletteRealized(*args, **kwargs): - """GetPaletteRealized(self) -> bool""" - return _core.QueryNewPaletteEvent_GetPaletteRealized(*args, **kwargs) - - -class QueryNewPaletteEventPtr(QueryNewPaletteEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = QueryNewPaletteEvent -_core.QueryNewPaletteEvent_swigregister(QueryNewPaletteEventPtr) - -#--------------------------------------------------------------------------- - -class NavigationKeyEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxNavigationKeyEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> NavigationKeyEvent""" - newobj = _core.new_NavigationKeyEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetDirection(*args, **kwargs): - """GetDirection(self) -> bool""" - return _core.NavigationKeyEvent_GetDirection(*args, **kwargs) - - def SetDirection(*args, **kwargs): - """SetDirection(self, bool bForward)""" - return _core.NavigationKeyEvent_SetDirection(*args, **kwargs) - - def IsWindowChange(*args, **kwargs): - """IsWindowChange(self) -> bool""" - return _core.NavigationKeyEvent_IsWindowChange(*args, **kwargs) - - def SetWindowChange(*args, **kwargs): - """SetWindowChange(self, bool bIs)""" - return _core.NavigationKeyEvent_SetWindowChange(*args, **kwargs) - - def GetCurrentFocus(*args, **kwargs): - """GetCurrentFocus(self) -> Window""" - return _core.NavigationKeyEvent_GetCurrentFocus(*args, **kwargs) - - def SetCurrentFocus(*args, **kwargs): - """SetCurrentFocus(self, Window win)""" - return _core.NavigationKeyEvent_SetCurrentFocus(*args, **kwargs) - - -class NavigationKeyEventPtr(NavigationKeyEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = NavigationKeyEvent -_core.NavigationKeyEvent_swigregister(NavigationKeyEventPtr) - -#--------------------------------------------------------------------------- - -class WindowCreateEvent(CommandEvent): - def __repr__(self): - return "<%s.%s; proxy of C++ wxWindowCreateEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Window win=None) -> WindowCreateEvent""" - newobj = _core.new_WindowCreateEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetWindow(*args, **kwargs): - """GetWindow(self) -> Window""" - return _core.WindowCreateEvent_GetWindow(*args, **kwargs) - - -class WindowCreateEventPtr(WindowCreateEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = WindowCreateEvent -_core.WindowCreateEvent_swigregister(WindowCreateEventPtr) - -class WindowDestroyEvent(CommandEvent): - def __repr__(self): - return "<%s.%s; proxy of C++ wxWindowDestroyEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Window win=None) -> WindowDestroyEvent""" - newobj = _core.new_WindowDestroyEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetWindow(*args, **kwargs): - """GetWindow(self) -> Window""" - return _core.WindowDestroyEvent_GetWindow(*args, **kwargs) - - -class WindowDestroyEventPtr(WindowDestroyEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = WindowDestroyEvent -_core.WindowDestroyEvent_swigregister(WindowDestroyEventPtr) - -#--------------------------------------------------------------------------- - -class ContextMenuEvent(CommandEvent): - def __repr__(self): - return "<%s.%s; proxy of C++ wxContextMenuEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> ContextMenuEvent""" - newobj = _core.new_ContextMenuEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetPosition(*args, **kwargs): - """GetPosition(self) -> Point""" - return _core.ContextMenuEvent_GetPosition(*args, **kwargs) - - def SetPosition(*args, **kwargs): - """SetPosition(self, Point pos)""" - return _core.ContextMenuEvent_SetPosition(*args, **kwargs) - - -class ContextMenuEventPtr(ContextMenuEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ContextMenuEvent -_core.ContextMenuEvent_swigregister(ContextMenuEventPtr) - -#--------------------------------------------------------------------------- - -IDLE_PROCESS_ALL = _core.IDLE_PROCESS_ALL -IDLE_PROCESS_SPECIFIED = _core.IDLE_PROCESS_SPECIFIED -class IdleEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxIdleEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> IdleEvent""" - newobj = _core.new_IdleEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def RequestMore(*args, **kwargs): - """RequestMore(self, bool needMore=True)""" - return _core.IdleEvent_RequestMore(*args, **kwargs) - - def MoreRequested(*args, **kwargs): - """MoreRequested(self) -> bool""" - return _core.IdleEvent_MoreRequested(*args, **kwargs) - - def SetMode(*args, **kwargs): - """IdleEvent.SetMode(int mode)""" - return _core.IdleEvent_SetMode(*args, **kwargs) - - SetMode = staticmethod(SetMode) - def GetMode(*args, **kwargs): - """IdleEvent.GetMode() -> int""" - return _core.IdleEvent_GetMode(*args, **kwargs) - - GetMode = staticmethod(GetMode) - def CanSend(*args, **kwargs): - """IdleEvent.CanSend(Window win) -> bool""" - return _core.IdleEvent_CanSend(*args, **kwargs) - - CanSend = staticmethod(CanSend) - -class IdleEventPtr(IdleEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = IdleEvent -_core.IdleEvent_swigregister(IdleEventPtr) - -def IdleEvent_SetMode(*args, **kwargs): - """IdleEvent_SetMode(int mode)""" - return _core.IdleEvent_SetMode(*args, **kwargs) - -def IdleEvent_GetMode(*args, **kwargs): - """IdleEvent_GetMode() -> int""" - return _core.IdleEvent_GetMode(*args, **kwargs) - -def IdleEvent_CanSend(*args, **kwargs): - """IdleEvent_CanSend(Window win) -> bool""" - return _core.IdleEvent_CanSend(*args, **kwargs) - -#--------------------------------------------------------------------------- - -class PyEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int winid=0, wxEventType commandType=wxEVT_NULL) -> PyEvent""" - newobj = _core.new_PyEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self.SetSelf(self) - - def __del__(self, destroy=_core.delete_PyEvent): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def SetSelf(*args, **kwargs): - """SetSelf(self, PyObject self)""" - return _core.PyEvent_SetSelf(*args, **kwargs) - - def GetSelf(*args, **kwargs): - """GetSelf(self) -> PyObject""" - return _core.PyEvent_GetSelf(*args, **kwargs) - - -class PyEventPtr(PyEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PyEvent -_core.PyEvent_swigregister(PyEventPtr) - -class PyCommandEvent(CommandEvent): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyCommandEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> PyCommandEvent""" - newobj = _core.new_PyCommandEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self.SetSelf(self) - - def __del__(self, destroy=_core.delete_PyCommandEvent): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def SetSelf(*args, **kwargs): - """SetSelf(self, PyObject self)""" - return _core.PyCommandEvent_SetSelf(*args, **kwargs) - - def GetSelf(*args, **kwargs): - """GetSelf(self) -> PyObject""" - return _core.PyCommandEvent_GetSelf(*args, **kwargs) - - -class PyCommandEventPtr(PyCommandEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PyCommandEvent -_core.PyCommandEvent_swigregister(PyCommandEventPtr) - -#--------------------------------------------------------------------------- - -PYAPP_ASSERT_SUPPRESS = _core.PYAPP_ASSERT_SUPPRESS -PYAPP_ASSERT_EXCEPTION = _core.PYAPP_ASSERT_EXCEPTION -PYAPP_ASSERT_DIALOG = _core.PYAPP_ASSERT_DIALOG -PYAPP_ASSERT_LOG = _core.PYAPP_ASSERT_LOG -PRINT_WINDOWS = _core.PRINT_WINDOWS -PRINT_POSTSCRIPT = _core.PRINT_POSTSCRIPT -class PyApp(EvtHandler): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyApp instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self) -> PyApp - - Create a new application object, starting the bootstrap process. - """ - newobj = _core.new_PyApp(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setCallbackInfo(self, PyApp) - self._setOORInfo(self) - - def __del__(self, destroy=_core.delete_PyApp): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _core.PyApp__setCallbackInfo(*args, **kwargs) - - def GetAppName(*args, **kwargs): - """ - GetAppName(self) -> String - - Get the application name. - """ - return _core.PyApp_GetAppName(*args, **kwargs) - - def SetAppName(*args, **kwargs): - """ - SetAppName(self, String name) - - Set the application name. This value may be used automatically - by wx.Config and such. - """ - return _core.PyApp_SetAppName(*args, **kwargs) - - def GetClassName(*args, **kwargs): - """ - GetClassName(self) -> String - - Get the application's class name. - """ - return _core.PyApp_GetClassName(*args, **kwargs) - - def SetClassName(*args, **kwargs): - """ - SetClassName(self, String name) - - Set the application's class name. This value may be used for X-resources if - applicable for the platform - """ - return _core.PyApp_SetClassName(*args, **kwargs) - - def GetVendorName(*args, **kwargs): - """ - GetVendorName(self) -> String - - Get the application's vendor name. - """ - return _core.PyApp_GetVendorName(*args, **kwargs) - - def SetVendorName(*args, **kwargs): - """ - SetVendorName(self, String name) - - Set the application's vendor name. This value may be used automatically - by wx.Config and such. - """ - return _core.PyApp_SetVendorName(*args, **kwargs) - - def GetTraits(*args, **kwargs): - """ - GetTraits(self) -> wxAppTraits - - Create the app traits object to which we delegate for everything which either - should be configurable by the user (then he can change the default behaviour - simply by overriding CreateTraits() and returning his own traits object) or - which is GUI/console dependent as then wx.AppTraits allows us to abstract the - differences behind the common facade - """ - return _core.PyApp_GetTraits(*args, **kwargs) - - def ProcessPendingEvents(*args, **kwargs): - """ - ProcessPendingEvents(self) - - Process all events in the Pending Events list -- it is necessary to call this - function to process posted events. This happens during each event loop - iteration. - """ - return _core.PyApp_ProcessPendingEvents(*args, **kwargs) - - def Yield(*args, **kwargs): - """ - Yield(self, bool onlyIfNeeded=False) -> bool - - Process all currently pending events right now, instead of waiting until - return to the event loop. It is an error to call Yield() recursively unless - the value of onlyIfNeeded is True. - - WARNING: This function is dangerous as it can lead to unexpected - reentrancies (i.e. when called from an event handler it - may result in calling the same event handler again), use - with _extreme_ care or, better, don't use at all! - - """ - return _core.PyApp_Yield(*args, **kwargs) - - def WakeUpIdle(*args, **kwargs): - """ - WakeUpIdle(self) - - Make sure that idle events are sent again - """ - return _core.PyApp_WakeUpIdle(*args, **kwargs) - - def MainLoop(*args, **kwargs): - """ - MainLoop(self) -> int - - Execute the main GUI loop, the function returns when the loop ends. - """ - return _core.PyApp_MainLoop(*args, **kwargs) - - def Exit(*args, **kwargs): - """ - Exit(self) - - Exit the main loop thus terminating the application. - """ - return _core.PyApp_Exit(*args, **kwargs) - - def ExitMainLoop(*args, **kwargs): - """ - ExitMainLoop(self) - - Exit the main GUI loop during the next iteration (i.e. it does not - stop the program immediately!) - """ - return _core.PyApp_ExitMainLoop(*args, **kwargs) - - def Pending(*args, **kwargs): - """ - Pending(self) -> bool - - Returns True if there are unprocessed events in the event queue. - """ - return _core.PyApp_Pending(*args, **kwargs) - - def Dispatch(*args, **kwargs): - """ - Dispatch(self) -> bool - - Process the first event in the event queue (blocks until an event - appears if there are none currently) - """ - return _core.PyApp_Dispatch(*args, **kwargs) - - def ProcessIdle(*args, **kwargs): - """ - ProcessIdle(self) -> bool - - Called from the MainLoop when the application becomes idle and sends an - IdleEvent to all interested parties. Returns True is more idle events are - needed, False if not. - """ - return _core.PyApp_ProcessIdle(*args, **kwargs) - - def SendIdleEvents(*args, **kwargs): - """ - SendIdleEvents(self, Window win, IdleEvent event) -> bool - - Send idle event to window and all subwindows. Returns True if more idle time - is requested. - """ - return _core.PyApp_SendIdleEvents(*args, **kwargs) - - def IsActive(*args, **kwargs): - """ - IsActive(self) -> bool - - Return True if our app has focus. - """ - return _core.PyApp_IsActive(*args, **kwargs) - - def SetTopWindow(*args, **kwargs): - """ - SetTopWindow(self, Window win) - - Set the "main" top level window - """ - return _core.PyApp_SetTopWindow(*args, **kwargs) - - def GetTopWindow(*args, **kwargs): - """ - GetTopWindow(self) -> Window - - Return the "main" top level window (if it hadn't been set previously with - SetTopWindow(), will return just some top level window and, if there not any, - will return None) - """ - return _core.PyApp_GetTopWindow(*args, **kwargs) - - def SetExitOnFrameDelete(*args, **kwargs): - """ - SetExitOnFrameDelete(self, bool flag) - - Control the exit behaviour: by default, the program will exit the main loop - (and so, usually, terminate) when the last top-level program window is - deleted. Beware that if you disable this behaviour (with - SetExitOnFrameDelete(False)), you'll have to call ExitMainLoop() explicitly - from somewhere. - - """ - return _core.PyApp_SetExitOnFrameDelete(*args, **kwargs) - - def GetExitOnFrameDelete(*args, **kwargs): - """ - GetExitOnFrameDelete(self) -> bool - - Get the current exit behaviour setting. - """ - return _core.PyApp_GetExitOnFrameDelete(*args, **kwargs) - - def SetUseBestVisual(*args, **kwargs): - """ - SetUseBestVisual(self, bool flag) - - Set whether the app should try to use the best available visual on systems - where more than one is available, (Sun, SGI, XFree86 4, etc.) - """ - return _core.PyApp_SetUseBestVisual(*args, **kwargs) - - def GetUseBestVisual(*args, **kwargs): - """ - GetUseBestVisual(self) -> bool - - Get current UseBestVisual setting. - """ - return _core.PyApp_GetUseBestVisual(*args, **kwargs) - - def SetPrintMode(*args, **kwargs): - """SetPrintMode(self, int mode)""" - return _core.PyApp_SetPrintMode(*args, **kwargs) - - def GetPrintMode(*args, **kwargs): - """GetPrintMode(self) -> int""" - return _core.PyApp_GetPrintMode(*args, **kwargs) - - def SetAssertMode(*args, **kwargs): - """ - SetAssertMode(self, int mode) - - Set the OnAssert behaviour for debug and hybrid builds. The following flags - may be or'd together: - - wx.PYAPP_ASSERT_SUPPRESS Don't do anything - wx.PYAPP_ASSERT_EXCEPTION Turn it into a Python exception if possible (default) - wx.PYAPP_ASSERT_DIALOG Display a message dialog - wx.PYAPP_ASSERT_LOG Write the assertion info to the wx.Log - - """ - return _core.PyApp_SetAssertMode(*args, **kwargs) - - def GetAssertMode(*args, **kwargs): - """ - GetAssertMode(self) -> int - - Get the current OnAssert behaviour setting. - """ - return _core.PyApp_GetAssertMode(*args, **kwargs) - - def GetMacSupportPCMenuShortcuts(*args, **kwargs): - """PyApp.GetMacSupportPCMenuShortcuts() -> bool""" - return _core.PyApp_GetMacSupportPCMenuShortcuts(*args, **kwargs) - - GetMacSupportPCMenuShortcuts = staticmethod(GetMacSupportPCMenuShortcuts) - def GetMacAboutMenuItemId(*args, **kwargs): - """PyApp.GetMacAboutMenuItemId() -> long""" - return _core.PyApp_GetMacAboutMenuItemId(*args, **kwargs) - - GetMacAboutMenuItemId = staticmethod(GetMacAboutMenuItemId) - def GetMacPreferencesMenuItemId(*args, **kwargs): - """PyApp.GetMacPreferencesMenuItemId() -> long""" - return _core.PyApp_GetMacPreferencesMenuItemId(*args, **kwargs) - - GetMacPreferencesMenuItemId = staticmethod(GetMacPreferencesMenuItemId) - def GetMacExitMenuItemId(*args, **kwargs): - """PyApp.GetMacExitMenuItemId() -> long""" - return _core.PyApp_GetMacExitMenuItemId(*args, **kwargs) - - GetMacExitMenuItemId = staticmethod(GetMacExitMenuItemId) - def GetMacHelpMenuTitleName(*args, **kwargs): - """PyApp.GetMacHelpMenuTitleName() -> String""" - return _core.PyApp_GetMacHelpMenuTitleName(*args, **kwargs) - - GetMacHelpMenuTitleName = staticmethod(GetMacHelpMenuTitleName) - def SetMacSupportPCMenuShortcuts(*args, **kwargs): - """PyApp.SetMacSupportPCMenuShortcuts(bool val)""" - return _core.PyApp_SetMacSupportPCMenuShortcuts(*args, **kwargs) - - SetMacSupportPCMenuShortcuts = staticmethod(SetMacSupportPCMenuShortcuts) - def SetMacAboutMenuItemId(*args, **kwargs): - """PyApp.SetMacAboutMenuItemId(long val)""" - return _core.PyApp_SetMacAboutMenuItemId(*args, **kwargs) - - SetMacAboutMenuItemId = staticmethod(SetMacAboutMenuItemId) - def SetMacPreferencesMenuItemId(*args, **kwargs): - """PyApp.SetMacPreferencesMenuItemId(long val)""" - return _core.PyApp_SetMacPreferencesMenuItemId(*args, **kwargs) - - SetMacPreferencesMenuItemId = staticmethod(SetMacPreferencesMenuItemId) - def SetMacExitMenuItemId(*args, **kwargs): - """PyApp.SetMacExitMenuItemId(long val)""" - return _core.PyApp_SetMacExitMenuItemId(*args, **kwargs) - - SetMacExitMenuItemId = staticmethod(SetMacExitMenuItemId) - def SetMacHelpMenuTitleName(*args, **kwargs): - """PyApp.SetMacHelpMenuTitleName(String val)""" - return _core.PyApp_SetMacHelpMenuTitleName(*args, **kwargs) - - SetMacHelpMenuTitleName = staticmethod(SetMacHelpMenuTitleName) - def _BootstrapApp(*args, **kwargs): - """ - _BootstrapApp(self) - - For internal use only - """ - return _core.PyApp__BootstrapApp(*args, **kwargs) - - def GetComCtl32Version(*args, **kwargs): - """ - PyApp.GetComCtl32Version() -> int - - Returns 400, 470, 471, etc. for comctl32.dll 4.00, 4.70, 4.71 or - 0 if it wasn't found at all. Raises an exception on non-Windows - platforms. - """ - return _core.PyApp_GetComCtl32Version(*args, **kwargs) - - GetComCtl32Version = staticmethod(GetComCtl32Version) - -class PyAppPtr(PyApp): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PyApp -_core.PyApp_swigregister(PyAppPtr) - -def PyApp_GetMacSupportPCMenuShortcuts(*args, **kwargs): - """PyApp_GetMacSupportPCMenuShortcuts() -> bool""" - return _core.PyApp_GetMacSupportPCMenuShortcuts(*args, **kwargs) - -def PyApp_GetMacAboutMenuItemId(*args, **kwargs): - """PyApp_GetMacAboutMenuItemId() -> long""" - return _core.PyApp_GetMacAboutMenuItemId(*args, **kwargs) - -def PyApp_GetMacPreferencesMenuItemId(*args, **kwargs): - """PyApp_GetMacPreferencesMenuItemId() -> long""" - return _core.PyApp_GetMacPreferencesMenuItemId(*args, **kwargs) - -def PyApp_GetMacExitMenuItemId(*args, **kwargs): - """PyApp_GetMacExitMenuItemId() -> long""" - return _core.PyApp_GetMacExitMenuItemId(*args, **kwargs) - -def PyApp_GetMacHelpMenuTitleName(*args, **kwargs): - """PyApp_GetMacHelpMenuTitleName() -> String""" - return _core.PyApp_GetMacHelpMenuTitleName(*args, **kwargs) - -def PyApp_SetMacSupportPCMenuShortcuts(*args, **kwargs): - """PyApp_SetMacSupportPCMenuShortcuts(bool val)""" - return _core.PyApp_SetMacSupportPCMenuShortcuts(*args, **kwargs) - -def PyApp_SetMacAboutMenuItemId(*args, **kwargs): - """PyApp_SetMacAboutMenuItemId(long val)""" - return _core.PyApp_SetMacAboutMenuItemId(*args, **kwargs) - -def PyApp_SetMacPreferencesMenuItemId(*args, **kwargs): - """PyApp_SetMacPreferencesMenuItemId(long val)""" - return _core.PyApp_SetMacPreferencesMenuItemId(*args, **kwargs) - -def PyApp_SetMacExitMenuItemId(*args, **kwargs): - """PyApp_SetMacExitMenuItemId(long val)""" - return _core.PyApp_SetMacExitMenuItemId(*args, **kwargs) - -def PyApp_SetMacHelpMenuTitleName(*args, **kwargs): - """PyApp_SetMacHelpMenuTitleName(String val)""" - return _core.PyApp_SetMacHelpMenuTitleName(*args, **kwargs) - -def PyApp_GetComCtl32Version(*args, **kwargs): - """ - PyApp_GetComCtl32Version() -> int - - Returns 400, 470, 471, etc. for comctl32.dll 4.00, 4.70, 4.71 or - 0 if it wasn't found at all. Raises an exception on non-Windows - platforms. - """ - return _core.PyApp_GetComCtl32Version(*args, **kwargs) - -#--------------------------------------------------------------------------- - - -def Exit(*args, **kwargs): - """ - Exit() - - Force an exit of the application. Convenience for wx.GetApp().Exit() - """ - return _core.Exit(*args, **kwargs) - -def Yield(*args, **kwargs): - """ - Yield() -> bool - - Yield to other apps/messages. Convenience for wx.GetApp().Yield() - """ - return _core.Yield(*args, **kwargs) - -def YieldIfNeeded(*args, **kwargs): - """ - YieldIfNeeded() -> bool - - Yield to other apps/messages. Convenience for wx.GetApp().Yield(True) - """ - return _core.YieldIfNeeded(*args, **kwargs) - -def SafeYield(*args, **kwargs): - """ - SafeYield(Window win=None, bool onlyIfNeeded=False) -> bool - - This function is similar to wx.Yield, except that it disables the user input - to all program windows before calling wx.Yield and re-enables it again - afterwards. If win is not None, this window will remain enabled, allowing the - implementation of some limited user interaction. - - Returns the result of the call to wx.Yield. - """ - return _core.SafeYield(*args, **kwargs) - -def WakeUpIdle(*args, **kwargs): - """ - WakeUpIdle() - - Cause the message queue to become empty again, so idle events will be sent. - """ - return _core.WakeUpIdle(*args, **kwargs) - -def PostEvent(*args, **kwargs): - """ - PostEvent(EvtHandler dest, Event event) - - Send an event to a window or other wx.EvtHandler to be processed later. - """ - return _core.PostEvent(*args, **kwargs) - -def App_CleanUp(*args, **kwargs): - """ - App_CleanUp() - - For internal use only, it is used to cleanup after wxWindows when Python shuts down. - """ - return _core.App_CleanUp(*args, **kwargs) - -def GetApp(*args, **kwargs): - """ - GetApp() -> PyApp - - Return a reference to the current wx.App object. - """ - return _core.GetApp(*args, **kwargs) -#---------------------------------------------------------------------- - -class PyOnDemandOutputWindow: - """ - A class that can be used for redirecting Python's stdout and - stderr streams. It will do nothing until something is wrriten to - the stream at which point it will create a Frame with a text area - and write the text there. - """ - def __init__(self, title = "wxPython: stdout/stderr"): - self.frame = None - self.title = title - self.parent = None - - def SetParent(self, parent): - """Set the window to be used as the popup Frame's parent.""" - self.parent = parent - - - def CreateOutputWindow(self, st): - self.frame = wx.Frame(self.parent, -1, self.title, - style=wx.DEFAULT_FRAME_STYLE | wx.NO_FULL_REPAINT_ON_RESIZE) - self.text = wx.TextCtrl(self.frame, -1, "", - style = wx.TE_MULTILINE | wx.TE_READONLY) - self.text.AppendText(st) - self.frame.SetSize((450, 300)) - self.frame.Show(True) - EVT_CLOSE(self.frame, self.OnCloseWindow) - - - def OnCloseWindow(self, event): - if self.frame is not None: - self.frame.Destroy() - self.frame = None - self.text = None - - - # These methods provide the file-like output behaviour. - def write(self, text): - """ - Create the output window if needed and write the string to it. - If not called in the context of the gui thread then uses - CallAfter to do the work there. - """ - if self.frame is None: - if not wx.Thread_IsMain(): - wx.CallAfter(self.CreateOutputWindow, text) - else: - self.CreateOutputWindow(text) - else: - if not wx.Thread_IsMain(): - wx.CallAfter(self.text.AppendText, text) - else: - self.text.AppendText(text) - - - def close(self): - if self.frame is not None: - wx.CallAfter(self.frame.Close) - - - -#---------------------------------------------------------------------- - -_defRedirect = (wx.Platform == '__WXMSW__' or wx.Platform == '__WXMAC__') - -class App(wx.PyApp): - """ - The main application class. Derive from this and implement an OnInit - method that creates a frame and then calls self.SetTopWindow(frame) - """ - outputWindowClass = PyOnDemandOutputWindow - - def __init__(self, redirect=_defRedirect, filename=None, useBestVisual=False): - wx.PyApp.__init__(self) - - if wx.Platform == "__WXMAC__": - try: - import MacOS - if not MacOS.WMAvailable(): - print """\ -This program needs access to the screen. Please run with 'pythonw', -not 'python', and only when you are logged in on the main display of -your Mac.""" - _sys.exit(1) - except: - pass - - # This has to be done before OnInit - self.SetUseBestVisual(useBestVisual) - - # Set the default handler for SIGINT. This fixes a problem - # where if Ctrl-C is pressed in the console that started this - # app then it will not appear to do anything, (not even send - # KeyboardInterrupt???) but will later segfault on exit. By - # setting the default handler then the app will exit, as - # expected (depending on platform.) - try: - import signal - signal.signal(signal.SIGINT, signal.SIG_DFL) - except: - pass - - # Save and redirect the stdio to a window? - self.stdioWin = None - self.saveStdio = (_sys.stdout, _sys.stderr) - if redirect: - self.RedirectStdio(filename) - - # This finishes the initialization of wxWindows and then calls - # the OnInit that should be present in the derived class - self._BootstrapApp() - - - def __del__(self): - try: - self.RestoreStdio() # Just in case the MainLoop was overridden - except: - pass - - - def SetTopWindow(self, frame): - """Set the \"main\" top level window""" - if self.stdioWin: - self.stdioWin.SetParent(frame) - wx.PyApp.SetTopWindow(self, frame) - - - def MainLoop(self): - """Execute the main GUI event loop""" - wx.PyApp.MainLoop(self) - self.RestoreStdio() - - - def RedirectStdio(self, filename=None): - """Redirect sys.stdout and sys.stderr to a file or a popup window.""" - if filename: - _sys.stdout = _sys.stderr = open(filename, 'a') - else: - self.stdioWin = self.outputWindowClass() - _sys.stdout = _sys.stderr = self.stdioWin - - - def RestoreStdio(self): - _sys.stdout, _sys.stderr = self.saveStdio - - - -# change from wxPyApp_ to wxApp_ -App_GetMacSupportPCMenuShortcuts = _core.PyApp_GetMacSupportPCMenuShortcuts -App_GetMacAboutMenuItemId = _core.PyApp_GetMacAboutMenuItemId -App_GetMacPreferencesMenuItemId = _core.PyApp_GetMacPreferencesMenuItemId -App_GetMacExitMenuItemId = _core.PyApp_GetMacExitMenuItemId -App_GetMacHelpMenuTitleName = _core.PyApp_GetMacHelpMenuTitleName -App_SetMacSupportPCMenuShortcuts = _core.PyApp_SetMacSupportPCMenuShortcuts -App_SetMacAboutMenuItemId = _core.PyApp_SetMacAboutMenuItemId -App_SetMacPreferencesMenuItemId = _core.PyApp_SetMacPreferencesMenuItemId -App_SetMacExitMenuItemId = _core.PyApp_SetMacExitMenuItemId -App_SetMacHelpMenuTitleName = _core.PyApp_SetMacHelpMenuTitleName -App_GetComCtl32Version = _core.PyApp_GetComCtl32Version - -#---------------------------------------------------------------------------- - -class PySimpleApp(wx.App): - """ - A simple application class. You can just create one of these and - then then make your top level windows later, and not have to worry - about OnInit.""" - - def __init__(self, redirect=False, filename=None, useBestVisual=False): - wx.App.__init__(self, redirect, filename, useBestVisual) - - def OnInit(self): - wx.InitAllImageHandlers() - return True - - -# Is anybody using this one? -class PyWidgetTester(wx.App): - def __init__(self, size = (250, 100)): - self.size = size - wx.App.__init__(self, 0) - - def OnInit(self): - self.frame = wx.Frame(None, -1, "Widget Tester", pos=(0,0), size=self.size) - self.SetTopWindow(self.frame) - return True - - def SetWidget(self, widgetClass, *args): - w = widgetClass(self.frame, *args) - self.frame.Show(True) - -#---------------------------------------------------------------------------- -# DO NOT hold any other references to this object. This is how we -# know when to cleanup system resources that wxWin is holding. When -# the sys module is unloaded, the refcount on sys.__wxPythonCleanup -# goes to zero and it calls the wxApp_CleanUp function. - -class __wxPyCleanup: - def __init__(self): - self.cleanup = _core.App_CleanUp - def __del__(self): - self.cleanup() - -_sys.__wxPythonCleanup = __wxPyCleanup() - -## # another possible solution, but it gets called too early... -## if sys.version[0] == '2': -## import atexit -## atexit.register(_core.wxApp_CleanUp) -## else: -## sys.exitfunc = _core.wxApp_CleanUp - - -#---------------------------------------------------------------------------- - -#--------------------------------------------------------------------------- - -class AcceleratorEntry(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxAcceleratorEntry instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int flags=0, int keyCode=0, int cmd=0, MenuItem item=None) -> AcceleratorEntry""" - newobj = _core.new_AcceleratorEntry(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_core.delete_AcceleratorEntry): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Set(*args, **kwargs): - """Set(self, int flags, int keyCode, int cmd, MenuItem item=None)""" - return _core.AcceleratorEntry_Set(*args, **kwargs) - - def SetMenuItem(*args, **kwargs): - """SetMenuItem(self, MenuItem item)""" - return _core.AcceleratorEntry_SetMenuItem(*args, **kwargs) - - def GetMenuItem(*args, **kwargs): - """GetMenuItem(self) -> MenuItem""" - return _core.AcceleratorEntry_GetMenuItem(*args, **kwargs) - - def GetFlags(*args, **kwargs): - """GetFlags(self) -> int""" - return _core.AcceleratorEntry_GetFlags(*args, **kwargs) - - def GetKeyCode(*args, **kwargs): - """GetKeyCode(self) -> int""" - return _core.AcceleratorEntry_GetKeyCode(*args, **kwargs) - - def GetCommand(*args, **kwargs): - """GetCommand(self) -> int""" - return _core.AcceleratorEntry_GetCommand(*args, **kwargs) - - -class AcceleratorEntryPtr(AcceleratorEntry): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = AcceleratorEntry -_core.AcceleratorEntry_swigregister(AcceleratorEntryPtr) - -class AcceleratorTable(Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxAcceleratorTable instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(entries) -> AcceleratorTable - - Construct an AcceleratorTable from a list of AcceleratorEntry items or - 3-tuples (flags, keyCode, cmdID) - """ - newobj = _core.new_AcceleratorTable(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_core.delete_AcceleratorTable): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Ok(*args, **kwargs): - """Ok(self) -> bool""" - return _core.AcceleratorTable_Ok(*args, **kwargs) - - -class AcceleratorTablePtr(AcceleratorTable): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = AcceleratorTable -_core.AcceleratorTable_swigregister(AcceleratorTablePtr) - - -def GetAccelFromString(*args, **kwargs): - """GetAccelFromString(String label) -> AcceleratorEntry""" - return _core.GetAccelFromString(*args, **kwargs) -#--------------------------------------------------------------------------- - -class VisualAttributes(object): - """struct containing all the visual attributes of a control""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxVisualAttributes instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self) -> VisualAttributes - - struct containing all the visual attributes of a control - """ - newobj = _core.new_VisualAttributes(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_core.delete_VisualAttributes): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - font = property(_core.VisualAttributes_font_get, _core.VisualAttributes_font_set) - colFg = property(_core.VisualAttributes_colFg_get, _core.VisualAttributes_colFg_set) - colBg = property(_core.VisualAttributes_colBg_get, _core.VisualAttributes_colBg_set) - -class VisualAttributesPtr(VisualAttributes): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = VisualAttributes -_core.VisualAttributes_swigregister(VisualAttributesPtr) -NullAcceleratorTable = cvar.NullAcceleratorTable -PanelNameStr = cvar.PanelNameStr - -WINDOW_VARIANT_NORMAL = _core.WINDOW_VARIANT_NORMAL -WINDOW_VARIANT_SMALL = _core.WINDOW_VARIANT_SMALL -WINDOW_VARIANT_MINI = _core.WINDOW_VARIANT_MINI -WINDOW_VARIANT_LARGE = _core.WINDOW_VARIANT_LARGE -WINDOW_VARIANT_MAX = _core.WINDOW_VARIANT_MAX -class Window(EvtHandler): - """ - wx.Window is the base class for all windows and represents any visible - object on the screen. All controls, top level windows and so on are - wx.Windows. Sizers and device contexts are not however, as they don't - appear on screen themselves. - - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, String name=PanelNameStr) -> Window - - Construct and show a generic Window. - """ - newobj = _core.new_Window(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool - - Create the GUI part of the Window for 2-phase creation mode. - """ - return _core.Window_Create(*args, **kwargs) - - def Close(*args, **kwargs): - """ - Close(self, bool force=False) -> bool - - This function simply generates a EVT_CLOSE event whose handler usually - tries to close the window. It doesn't close the window itself, - however. If force is False (the default) then the window's close - handler will be allowed to veto the destruction of the window. - - Usually Close is only used with the top level windows (wx.Frame and - wx.Dialog classes) as the others are not supposed to have any special - EVT_CLOSE logic. - - The close handler should check whether the window is being deleted - forcibly, using wx.CloseEvent.GetForce, in which case it should - destroy the window using wx.Window.Destroy. - - Note that calling Close does not guarantee that the window will be - destroyed; but it provides a way to simulate a manual close of a - window, which may or may not be implemented by destroying the - window. The default EVT_CLOSE handler for wx.Dialog does not - necessarily delete the dialog, since it will simply simulate an - wxID_CANCEL event which is handled by the appropriate button event - handler and may do anything at all. - - To guarantee that the window will be destroyed, call wx.Window.Destroy - instead. - """ - return _core.Window_Close(*args, **kwargs) - - def Destroy(*args, **kwargs): - """ - Destroy(self) -> bool - - Destroys the window safely. Frames and dialogs are not destroyed - immediately when this function is called -- they are added to a list - of windows to be deleted on idle time, when all the window's events - have been processed. This prevents problems with events being sent to - non-existent windows. - - Returns True if the window has either been successfully deleted, or it - has been added to the list of windows pending real deletion. - """ - return _core.Window_Destroy(*args, **kwargs) - - def DestroyChildren(*args, **kwargs): - """ - DestroyChildren(self) -> bool - - Destroys all children of a window. Called automatically by the destructor. - """ - return _core.Window_DestroyChildren(*args, **kwargs) - - def IsBeingDeleted(*args, **kwargs): - """ - IsBeingDeleted(self) -> bool - - Is the window in the process of being deleted? - """ - return _core.Window_IsBeingDeleted(*args, **kwargs) - - def SetTitle(*args, **kwargs): - """ - SetTitle(self, String title) - - Sets the window's title. Applicable only to frames and dialogs. - """ - return _core.Window_SetTitle(*args, **kwargs) - - def GetTitle(*args, **kwargs): - """ - GetTitle(self) -> String - - Gets the window's title. Applicable only to frames and dialogs. - """ - return _core.Window_GetTitle(*args, **kwargs) - - def SetLabel(*args, **kwargs): - """ - SetLabel(self, String label) - - Set the text which the window shows in its label if applicable. - """ - return _core.Window_SetLabel(*args, **kwargs) - - def GetLabel(*args, **kwargs): - """ - GetLabel(self) -> String - - Generic way of getting a label from any window, for - identification purposes. The interpretation of this function - differs from class to class. For frames and dialogs, the value - returned is the title. For buttons or static text controls, it is - the button text. This function can be useful for meta-programs - such as testing tools or special-needs access programs)which - need to identify windows by name. - """ - return _core.Window_GetLabel(*args, **kwargs) - - def SetName(*args, **kwargs): - """ - SetName(self, String name) - - Sets the window's name. The window name is used for ressource - setting in X, it is not the same as the window title/label - """ - return _core.Window_SetName(*args, **kwargs) - - def GetName(*args, **kwargs): - """ - GetName(self) -> String - - Returns the windows name. This name is not guaranteed to be - unique; it is up to the programmer to supply an appropriate name - in the window constructor or via wx.Window.SetName. - """ - return _core.Window_GetName(*args, **kwargs) - - def SetWindowVariant(*args, **kwargs): - """ - SetWindowVariant(self, int variant) - - Sets the variant of the window/font size to use for this window, - if the platform supports variants, for example, wxMac. Variant values are: - - wx.WINDOW_VARIANT_NORMAL Normal size - wx.WINDOW_VARIANT_SMALL Smaller size (about 25 % smaller than normal) - wx.WINDOW_VARIANT_MINI Mini size (about 33 % smaller than normal) - wx.WINDOW_VARIANT_LARGE Large size (about 25 % larger than normal) - - """ - return _core.Window_SetWindowVariant(*args, **kwargs) - - def GetWindowVariant(*args, **kwargs): - """GetWindowVariant(self) -> int""" - return _core.Window_GetWindowVariant(*args, **kwargs) - - def SetId(*args, **kwargs): - """ - SetId(self, int winid) - - Sets the identifier of the window. Each window has an integer - identifier. If the application has not provided one, an identifier - will be generated. Normally, the identifier should be provided on - creation and should not be modified subsequently. - """ - return _core.Window_SetId(*args, **kwargs) - - def GetId(*args, **kwargs): - """ - GetId(self) -> int - - Returns the identifier of the window. Each window has an integer - identifier. If the application has not provided one (or the default Id - -1 is used) then an unique identifier with a negative value will be - generated. - """ - return _core.Window_GetId(*args, **kwargs) - - def NewControlId(*args, **kwargs): - """ - Window.NewControlId() -> int - - Generate a control id for the controls which were not given one. - """ - return _core.Window_NewControlId(*args, **kwargs) - - NewControlId = staticmethod(NewControlId) - def NextControlId(*args, **kwargs): - """ - Window.NextControlId(int winid) -> int - - Get the id of the control following the one with the given - (autogenerated) id - """ - return _core.Window_NextControlId(*args, **kwargs) - - NextControlId = staticmethod(NextControlId) - def PrevControlId(*args, **kwargs): - """ - Window.PrevControlId(int winid) -> int - - Get the id of the control preceding the one with the given - (autogenerated) id - """ - return _core.Window_PrevControlId(*args, **kwargs) - - PrevControlId = staticmethod(PrevControlId) - def SetSize(*args, **kwargs): - """ - SetSize(self, Size size) - - Sets the size of the window in pixels. - """ - return _core.Window_SetSize(*args, **kwargs) - - def SetDimensions(*args, **kwargs): - """ - SetDimensions(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO) - - Sets the position and size of the window in pixels. The sizeFlags - parameter indicates the interpretation of the other params if they are - -1. wx.SIZE_AUTO*: a -1 indicates that a class-specific default - shoudl be used. wx.SIZE_USE_EXISTING: existing dimensions should be - used if -1 values are supplied. wxSIZE_ALLOW_MINUS_ONE: allow - dimensions of -1 and less to be interpreted as real dimensions, not - default values. - """ - return _core.Window_SetDimensions(*args, **kwargs) - - def SetRect(*args, **kwargs): - """ - SetRect(self, Rect rect, int sizeFlags=SIZE_AUTO) - - Sets the position and size of the window in pixels using a wx.Rect. - """ - return _core.Window_SetRect(*args, **kwargs) - - def SetSizeWH(*args, **kwargs): - """ - SetSizeWH(self, int width, int height) - - Sets the size of the window in pixels. - """ - return _core.Window_SetSizeWH(*args, **kwargs) - - def Move(*args, **kwargs): - """ - Move(self, Point pt, int flags=SIZE_USE_EXISTING) - - Moves the window to the given position. - """ - return _core.Window_Move(*args, **kwargs) - - SetPosition = Move - def MoveXY(*args, **kwargs): - """ - MoveXY(self, int x, int y, int flags=SIZE_USE_EXISTING) - - Moves the window to the given position. - """ - return _core.Window_MoveXY(*args, **kwargs) - - def Raise(*args, **kwargs): - """ - Raise(self) - - Raises the window to the top of the window hierarchy if it is a - managed window (dialog or frame). - """ - return _core.Window_Raise(*args, **kwargs) - - def Lower(*args, **kwargs): - """ - Lower(self) - - Lowers the window to the bottom of the window hierarchy if it is a - managed window (dialog or frame). - """ - return _core.Window_Lower(*args, **kwargs) - - def SetClientSize(*args, **kwargs): - """ - SetClientSize(self, Size size) - - This sets the size of the window client area in pixels. Using this - function to size a window tends to be more device-independent than - wx.Window.SetSize, since the application need not worry about what - dimensions the border or title bar have when trying to fit the window - around panel items, for example. - """ - return _core.Window_SetClientSize(*args, **kwargs) - - def SetClientSizeWH(*args, **kwargs): - """ - SetClientSizeWH(self, int width, int height) - - This sets the size of the window client area in pixels. Using this - function to size a window tends to be more device-independent than - wx.Window.SetSize, since the application need not worry about what - dimensions the border or title bar have when trying to fit the window - around panel items, for example. - """ - return _core.Window_SetClientSizeWH(*args, **kwargs) - - def SetClientRect(*args, **kwargs): - """ - SetClientRect(self, Rect rect) - - This sets the size of the window client area in pixels. Using this - function to size a window tends to be more device-independent than - wx.Window.SetSize, since the application need not worry about what - dimensions the border or title bar have when trying to fit the window - around panel items, for example. - """ - return _core.Window_SetClientRect(*args, **kwargs) - - def GetPosition(*args, **kwargs): - """ - GetPosition(self) -> Point - - Get the window's position. - """ - return _core.Window_GetPosition(*args, **kwargs) - - def GetPositionTuple(*args, **kwargs): - """ - GetPositionTuple() -> (x,y) - - Get the window's position. - """ - return _core.Window_GetPositionTuple(*args, **kwargs) - - def GetSize(*args, **kwargs): - """ - GetSize(self) -> Size - - Get the window size. - """ - return _core.Window_GetSize(*args, **kwargs) - - def GetSizeTuple(*args, **kwargs): - """ - GetSizeTuple() -> (width, height) - - Get the window size. - """ - return _core.Window_GetSizeTuple(*args, **kwargs) - - def GetRect(*args, **kwargs): - """ - GetRect(self) -> Rect - - Returns the size and position of the window as a wx.Rect object. - """ - return _core.Window_GetRect(*args, **kwargs) - - def GetClientSize(*args, **kwargs): - """ - GetClientSize(self) -> Size - - This gets the size of the window's 'client area' in pixels. The client - area is the area which may be drawn on by the programmer, excluding - title bar, border, scrollbars, etc. - """ - return _core.Window_GetClientSize(*args, **kwargs) - - def GetClientSizeTuple(*args, **kwargs): - """ - GetClientSizeTuple() -> (width, height) - - This gets the size of the window's 'client area' in pixels. The client - area is the area which may be drawn on by the programmer, excluding - title bar, border, scrollbars, etc. - """ - return _core.Window_GetClientSizeTuple(*args, **kwargs) - - def GetClientAreaOrigin(*args, **kwargs): - """ - GetClientAreaOrigin(self) -> Point - - Get the origin of the client area of the window relative to the - window's top left corner (the client area may be shifted because of - the borders, scrollbars, other decorations...) - """ - return _core.Window_GetClientAreaOrigin(*args, **kwargs) - - def GetClientRect(*args, **kwargs): - """ - GetClientRect(self) -> Rect - - Get the client area position and size as a wx.Rect object. - """ - return _core.Window_GetClientRect(*args, **kwargs) - - def GetBestSize(*args, **kwargs): - """ - GetBestSize(self) -> Size - - This functions returns the best acceptable minimal size for the - window, if applicable. For example, for a static text control, it will be - the minimal size such that the control label is not truncated. For - windows containing subwindows (suzh aswx.Panel), the size returned - by this function will be the same as the size the window would have - had after calling Fit. - """ - return _core.Window_GetBestSize(*args, **kwargs) - - def GetBestSizeTuple(*args, **kwargs): - """ - GetBestSizeTuple() -> (width, height) - - This functions returns the best acceptable minimal size for the - window, if applicable. For example, for a static text control, it will be - the minimal size such that the control label is not truncated. For - windows containing subwindows (suzh aswx.Panel), the size returned - by this function will be the same as the size the window would have - had after calling Fit. - """ - return _core.Window_GetBestSizeTuple(*args, **kwargs) - - def GetAdjustedBestSize(*args, **kwargs): - """ - GetAdjustedBestSize(self) -> Size - - This method is similar to GetBestSize, except in one - thing. GetBestSize should return the minimum untruncated size of the - window, while this method will return the largest of BestSize and any - user specified minimum size. ie. it is the minimum size the window - should currently be drawn at, not the minimal size it can possibly - tolerate. - """ - return _core.Window_GetAdjustedBestSize(*args, **kwargs) - - def Center(*args, **kwargs): - """ - Center(self, int direction=BOTH) - - Centers the window. The parameter specifies the direction for - cetering, and may be wx.HORIZONTAL, wx.VERTICAL or wx.BOTH. It may - also include wx.CENTER_ON_SCREEN flag if you want to center the window - on the entire screen and not on its parent window. If it is a - top-level window and has no parent then it will always be centered - relative to the screen. - """ - return _core.Window_Center(*args, **kwargs) - - Centre = Center - def CenterOnScreen(*args, **kwargs): - """ - CenterOnScreen(self, int dir=BOTH) - - Center on screen (only works for top level windows) - """ - return _core.Window_CenterOnScreen(*args, **kwargs) - - CentreOnScreen = CenterOnScreen - def CenterOnParent(*args, **kwargs): - """ - CenterOnParent(self, int dir=BOTH) - - Center with respect to the the parent window - """ - return _core.Window_CenterOnParent(*args, **kwargs) - - CentreOnParent = CenterOnParent - def Fit(*args, **kwargs): - """ - Fit(self) - - Sizes the window so that it fits around its subwindows. This function - won't do anything if there are no subwindows and will only really work - correctly if sizers are used for the subwindows layout. Also, if the - window has exactly one subwindow it is better (faster and the result - is more precise as Fit adds some margin to account for fuzziness of - its calculations) to call window.SetClientSize(child.GetSize()) - instead of calling Fit. - """ - return _core.Window_Fit(*args, **kwargs) - - def FitInside(*args, **kwargs): - """ - FitInside(self) - - Similar to Fit, but sizes the interior (virtual) size of a - window. Mainly useful with scrolled windows to reset scrollbars after - sizing changes that do not trigger a size event, and/or scrolled - windows without an interior sizer. This function similarly won't do - anything if there are no subwindows. - """ - return _core.Window_FitInside(*args, **kwargs) - - def SetSizeHints(*args): - """ - SetSizeHints(self, int minW, int minH, int maxW=-1, int maxH=-1, int incW=-1, - int incH=-1) - SetSizeHints(self, Size minSize, Size maxSize=DefaultSize, Size incSize=DefaultSize) - - Allows specification of minimum and maximum window sizes, and window - size increments. If a pair of values is not set (or set to -1), the - default values will be used. If this function is called, the user - will not be able to size the window outside the given bounds. The - resizing increments are only significant under Motif or Xt. - """ - return _core.Window_SetSizeHints(*args) - - def SetVirtualSizeHints(*args): - """ - SetVirtualSizeHints(self, int minW, int minH, int maxW=-1, int maxH=-1) - SetVirtualSizeHints(self, Size minSize, Size maxSize=DefaultSize) - - Allows specification of minimum and maximum virtual window sizes. If a - pair of values is not set (or set to -1), the default values will be - used. If this function is called, the user will not be able to size - the virtual area of the window outside the given bounds. - """ - return _core.Window_SetVirtualSizeHints(*args) - - def GetMinWidth(*args, **kwargs): - """GetMinWidth(self) -> int""" - return _core.Window_GetMinWidth(*args, **kwargs) - - def GetMinHeight(*args, **kwargs): - """GetMinHeight(self) -> int""" - return _core.Window_GetMinHeight(*args, **kwargs) - - def GetMaxWidth(*args, **kwargs): - """GetMaxWidth(self) -> int""" - return _core.Window_GetMaxWidth(*args, **kwargs) - - def GetMaxHeight(*args, **kwargs): - """GetMaxHeight(self) -> int""" - return _core.Window_GetMaxHeight(*args, **kwargs) - - def GetMaxSize(*args, **kwargs): - """GetMaxSize(self) -> Size""" - return _core.Window_GetMaxSize(*args, **kwargs) - - def GetMinSize(*args, **kwargs): - """GetMinSize(self) -> Size""" - return _core.Window_GetMinSize(*args, **kwargs) - - def SetVirtualSize(*args, **kwargs): - """ - SetVirtualSize(self, Size size) - - Set the the virtual size of a window in pixels. For most windows this - is just the client area of the window, but for some like scrolled - windows it is more or less independent of the screen window size. - """ - return _core.Window_SetVirtualSize(*args, **kwargs) - - def SetVirtualSizeWH(*args, **kwargs): - """ - SetVirtualSizeWH(self, int w, int h) - - Set the the virtual size of a window in pixels. For most windows this - is just the client area of the window, but for some like scrolled - windows it is more or less independent of the screen window size. - """ - return _core.Window_SetVirtualSizeWH(*args, **kwargs) - - def GetVirtualSize(*args, **kwargs): - """ - GetVirtualSize(self) -> Size - - Get the the virtual size of the window in pixels. For most windows - this is just the client area of the window, but for some like scrolled - windows it is more or less independent of the screen window size. - """ - return _core.Window_GetVirtualSize(*args, **kwargs) - - def GetVirtualSizeTuple(*args, **kwargs): - """ - GetVirtualSizeTuple() -> (width, height) - - Get the the virtual size of the window in pixels. For most windows - this is just the client area of the window, but for some like scrolled - windows it is more or less independent of the screen window size. - """ - return _core.Window_GetVirtualSizeTuple(*args, **kwargs) - - def GetBestVirtualSize(*args, **kwargs): - """ - GetBestVirtualSize(self) -> Size - - Return the largest of ClientSize and BestSize (as determined by a - sizer, interior children, or other means) - """ - return _core.Window_GetBestVirtualSize(*args, **kwargs) - - def Show(*args, **kwargs): - """ - Show(self, bool show=True) -> bool - - Shows or hides the window. You may need to call Raise for a top level - window if you want to bring it to top, although this is not needed if - Show is called immediately after the frame creation. Returns True if - the window has been shown or hidden or False if nothing was done - because it already was in the requested state. - """ - return _core.Window_Show(*args, **kwargs) - - def Hide(*args, **kwargs): - """ - Hide(self) -> bool - - Equivalent to calling Show(False). - """ - return _core.Window_Hide(*args, **kwargs) - - def Enable(*args, **kwargs): - """ - Enable(self, bool enable=True) -> bool - - Enable or disable the window for user input. Note that when a parent - window is disabled, all of its children are disabled as well and they - are reenabled again when the parent is. Returns true if the window - has been enabled or disabled, false if nothing was done, i.e. if the - window had already been in the specified state. - """ - return _core.Window_Enable(*args, **kwargs) - - def Disable(*args, **kwargs): - """ - Disable(self) -> bool - - Disables the window, same as Enable(false). - """ - return _core.Window_Disable(*args, **kwargs) - - def IsShown(*args, **kwargs): - """ - IsShown(self) -> bool - - Returns true if the window is shown, false if it has been hidden. - """ - return _core.Window_IsShown(*args, **kwargs) - - def IsEnabled(*args, **kwargs): - """ - IsEnabled(self) -> bool - - Returns true if the window is enabled for input, false otherwise. - """ - return _core.Window_IsEnabled(*args, **kwargs) - - def SetWindowStyleFlag(*args, **kwargs): - """ - SetWindowStyleFlag(self, long style) - - Sets the style of the window. Please note that some styles cannot - be changed after the window creation and that Refresh() might - need to be called after changing the others for the change to - take place immediately. - """ - return _core.Window_SetWindowStyleFlag(*args, **kwargs) - - def GetWindowStyleFlag(*args, **kwargs): - """ - GetWindowStyleFlag(self) -> long - - Gets the window style that was passed to the constructor or Create - method. - """ - return _core.Window_GetWindowStyleFlag(*args, **kwargs) - - SetWindowStyle = SetWindowStyleFlag; GetWindowStyle = GetWindowStyleFlag - def HasFlag(*args, **kwargs): - """ - HasFlag(self, int flag) -> bool - - Test if the given style is set for this window. - """ - return _core.Window_HasFlag(*args, **kwargs) - - def IsRetained(*args, **kwargs): - """ - IsRetained(self) -> bool - - Returns true if the window is retained, false otherwise. Retained - windows are only available on X platforms. - """ - return _core.Window_IsRetained(*args, **kwargs) - - def SetExtraStyle(*args, **kwargs): - """ - SetExtraStyle(self, long exStyle) - - Sets the extra style bits for the window. Extra styles are the less - often used style bits which can't be set with the constructor or with - SetWindowStyleFlag() - """ - return _core.Window_SetExtraStyle(*args, **kwargs) - - def GetExtraStyle(*args, **kwargs): - """ - GetExtraStyle(self) -> long - - Returns the extra style bits for the window. - """ - return _core.Window_GetExtraStyle(*args, **kwargs) - - def MakeModal(*args, **kwargs): - """ - MakeModal(self, bool modal=True) - - Disables all other windows in the application so that the user can - only interact with this window. Passing False will reverse this - effect. - """ - return _core.Window_MakeModal(*args, **kwargs) - - def SetThemeEnabled(*args, **kwargs): - """ - SetThemeEnabled(self, bool enableTheme) - - This function tells a window if it should use the system's "theme" - code to draw the windows' background instead if its own background - drawing code. This will only have an effect on platforms that support - the notion of themes in user defined windows. One such platform is - GTK+ where windows can have (very colourful) backgrounds defined by a - user's selected theme. - - Dialogs, notebook pages and the status bar have this flag set to true - by default so that the default look and feel is simulated best. - """ - return _core.Window_SetThemeEnabled(*args, **kwargs) - - def GetThemeEnabled(*args, **kwargs): - """ - GetThemeEnabled(self) -> bool - - Return the themeEnabled flag. - """ - return _core.Window_GetThemeEnabled(*args, **kwargs) - - def SetFocus(*args, **kwargs): - """ - SetFocus(self) - - Set's the focus to this window, allowing it to receive keyboard input. - """ - return _core.Window_SetFocus(*args, **kwargs) - - def SetFocusFromKbd(*args, **kwargs): - """ - SetFocusFromKbd(self) - - Set focus to this window as the result of a keyboard action. Normally - only called internally. - """ - return _core.Window_SetFocusFromKbd(*args, **kwargs) - - def FindFocus(*args, **kwargs): - """ - Window.FindFocus() -> Window - - Returns the window or control that currently has the keyboard focus, - or None. - """ - return _core.Window_FindFocus(*args, **kwargs) - - FindFocus = staticmethod(FindFocus) - def AcceptsFocus(*args, **kwargs): - """ - AcceptsFocus(self) -> bool - - Can this window have focus? - """ - return _core.Window_AcceptsFocus(*args, **kwargs) - - def AcceptsFocusFromKeyboard(*args, **kwargs): - """ - AcceptsFocusFromKeyboard(self) -> bool - - Can this window be given focus by keyboard navigation? if not, the - only way to give it focus (provided it accepts it at all) is to click - it. - """ - return _core.Window_AcceptsFocusFromKeyboard(*args, **kwargs) - - def GetDefaultItem(*args, **kwargs): - """ - GetDefaultItem(self) -> Window - - Get the default child of this parent, i.e. the one which is activated - by pressing such as the OK button on a wx.Dialog. - """ - return _core.Window_GetDefaultItem(*args, **kwargs) - - def SetDefaultItem(*args, **kwargs): - """ - SetDefaultItem(self, Window child) -> Window - - Set this child as default, return the old default. - """ - return _core.Window_SetDefaultItem(*args, **kwargs) - - def SetTmpDefaultItem(*args, **kwargs): - """ - SetTmpDefaultItem(self, Window win) - - Set this child as temporary default - """ - return _core.Window_SetTmpDefaultItem(*args, **kwargs) - - def GetChildren(*args, **kwargs): - """ - GetChildren(self) -> PyObject - - Returns a list of the window's children. NOTE: Currently this is a - copy of the child window list maintained by the window, so the return - value of this function is only valid as long as the window's children - do not change. - """ - return _core.Window_GetChildren(*args, **kwargs) - - def GetParent(*args, **kwargs): - """ - GetParent(self) -> Window - - Returns the parent window of this window, or None if there isn't one. - """ - return _core.Window_GetParent(*args, **kwargs) - - def GetGrandParent(*args, **kwargs): - """ - GetGrandParent(self) -> Window - - Returns the parent of the parent of this window, or None if there isn't one. - """ - return _core.Window_GetGrandParent(*args, **kwargs) - - def IsTopLevel(*args, **kwargs): - """ - IsTopLevel(self) -> bool - - Returns true if the given window is a top-level one. Currently all - frames and dialogs are always considered to be top-level windows (even - if they have a parent window). - """ - return _core.Window_IsTopLevel(*args, **kwargs) - - def Reparent(*args, **kwargs): - """ - Reparent(self, Window newParent) -> bool - - Reparents the window, i.e the window will be removed from its current - parent window (e.g. a non-standard toolbar in a wxFrame) and then - re-inserted into another. Available on Windows and GTK. Returns True - if the parent was changed, False otherwise (error or newParent == - oldParent) - """ - return _core.Window_Reparent(*args, **kwargs) - - def AddChild(*args, **kwargs): - """ - AddChild(self, Window child) - - Adds a child window. This is called automatically by window creation - functions so should not be required by the application programmer. - """ - return _core.Window_AddChild(*args, **kwargs) - - def RemoveChild(*args, **kwargs): - """ - RemoveChild(self, Window child) - - Removes a child window. This is called automatically by window - deletion functions so should not be required by the application - programmer. - """ - return _core.Window_RemoveChild(*args, **kwargs) - - def FindWindowById(*args, **kwargs): - """ - FindWindowById(self, long winid) -> Window - - Find a chld of this window by window ID - """ - return _core.Window_FindWindowById(*args, **kwargs) - - def FindWindowByName(*args, **kwargs): - """ - FindWindowByName(self, String name) -> Window - - Find a child of this window by name - """ - return _core.Window_FindWindowByName(*args, **kwargs) - - def GetEventHandler(*args, **kwargs): - """ - GetEventHandler(self) -> EvtHandler - - Returns the event handler for this window. By default, the window is - its own event handler. - """ - return _core.Window_GetEventHandler(*args, **kwargs) - - def SetEventHandler(*args, **kwargs): - """ - SetEventHandler(self, EvtHandler handler) - - Sets the event handler for this window. An event handler is an object - that is capable of processing the events sent to a window. By default, - the window is its own event handler, but an application may wish to - substitute another, for example to allow central implementation of - event-handling for a variety of different window classes. - - It is usually better to use wx.Window.PushEventHandler since this sets - up a chain of event handlers, where an event not handled by one event - handler is handed to the next one in the chain. - """ - return _core.Window_SetEventHandler(*args, **kwargs) - - def PushEventHandler(*args, **kwargs): - """ - PushEventHandler(self, EvtHandler handler) - - Pushes this event handler onto the event handler stack for the window. - An event handler is an object that is capable of processing the events - sent to a window. By default, the window is its own event handler, but - an application may wish to substitute another, for example to allow - central implementation of event-handling for a variety of different - window classes. - - wx.Window.PushEventHandler allows an application to set up a chain of - event handlers, where an event not handled by one event handler is - handed to the next one in the chain. Use wx.Window.PopEventHandler to - remove the event handler. - """ - return _core.Window_PushEventHandler(*args, **kwargs) - - def PopEventHandler(*args, **kwargs): - """ - PopEventHandler(self, bool deleteHandler=False) -> EvtHandler - - Removes and returns the top-most event handler on the event handler - stack. If deleteHandler is True then the wx.EvtHandler object will be - destroyed after it is popped. - """ - return _core.Window_PopEventHandler(*args, **kwargs) - - def RemoveEventHandler(*args, **kwargs): - """ - RemoveEventHandler(self, EvtHandler handler) -> bool - - Find the given handler in the event handler chain and remove (but - not delete) it from the event handler chain, return True if it was - found and False otherwise (this also results in an assert failure so - this function should only be called when the handler is supposed to - be there.) - """ - return _core.Window_RemoveEventHandler(*args, **kwargs) - - def SetValidator(*args, **kwargs): - """ - SetValidator(self, Validator validator) - - Deletes the current validator (if any) and sets the window validator, - having called wx.Validator.Clone to create a new validator of this - type. - """ - return _core.Window_SetValidator(*args, **kwargs) - - def GetValidator(*args, **kwargs): - """ - GetValidator(self) -> Validator - - Returns a pointer to the current validator for the window, or None if - there is none. - """ - return _core.Window_GetValidator(*args, **kwargs) - - def Validate(*args, **kwargs): - """ - Validate(self) -> bool - - Validates the current values of the child controls using their - validators. If the window has wx.WS_EX_VALIDATE_RECURSIVELY - extra style flag set, the method will also call Validate() of all - child windows. Returns false if any of the validations failed. - """ - return _core.Window_Validate(*args, **kwargs) - - def TransferDataToWindow(*args, **kwargs): - """ - TransferDataToWindow(self) -> bool - - Transfers values to child controls from data areas specified by - their validators. If the window has wx.WS_EX_VALIDATE_RECURSIVELY - extra style flag set, the method will also call - TransferDataToWindow() of all child windows. - """ - return _core.Window_TransferDataToWindow(*args, **kwargs) - - def TransferDataFromWindow(*args, **kwargs): - """ - TransferDataFromWindow(self) -> bool - - Transfers values from child controls to data areas specified by - their validators. Returns false if a transfer failed. If the - window has wx.WS_EX_VALIDATE_RECURSIVELY extra style flag set, the - method will also call TransferDataFromWindow() of all child - windows. - """ - return _core.Window_TransferDataFromWindow(*args, **kwargs) - - def InitDialog(*args, **kwargs): - """ - InitDialog(self) - - Sends an EVT_INIT_DIALOG event, whose handler usually transfers - data to the dialog via validators. - """ - return _core.Window_InitDialog(*args, **kwargs) - - def SetAcceleratorTable(*args, **kwargs): - """ - SetAcceleratorTable(self, AcceleratorTable accel) - - Sets the accelerator table for this window. - """ - return _core.Window_SetAcceleratorTable(*args, **kwargs) - - def GetAcceleratorTable(*args, **kwargs): - """ - GetAcceleratorTable(self) -> AcceleratorTable - - Gets the accelerator table for this window. - """ - return _core.Window_GetAcceleratorTable(*args, **kwargs) - - def RegisterHotKey(*args, **kwargs): - """ - RegisterHotKey(self, int hotkeyId, int modifiers, int keycode) -> bool - - Registers a system wide hotkey. Every time the user presses the hotkey - registered here, this window will receive a hotkey event. It will - receive the event even if the application is in the background and - does not have the input focus because the user is working with some - other application. To bind an event handler function to this hotkey - use EVT_HOTKEY with an id equal to hotkeyId. Returns True if the - hotkey was registered successfully. - """ - return _core.Window_RegisterHotKey(*args, **kwargs) - - def UnregisterHotKey(*args, **kwargs): - """ - UnregisterHotKey(self, int hotkeyId) -> bool - - Unregisters a system wide hotkey. - """ - return _core.Window_UnregisterHotKey(*args, **kwargs) - - def ConvertDialogPointToPixels(*args, **kwargs): - """ - ConvertDialogPointToPixels(self, Point pt) -> Point - - Converts a point or size from dialog units to pixels. Dialog units - are used for maintaining a dialog's proportions even if the font - changes. For the x dimension, the dialog units are multiplied by the - average character width and then divided by 4. For the y dimension, - the dialog units are multiplied by the average character height and - then divided by 8. - """ - return _core.Window_ConvertDialogPointToPixels(*args, **kwargs) - - def ConvertDialogSizeToPixels(*args, **kwargs): - """ - ConvertDialogSizeToPixels(self, Size sz) -> Size - - Converts a point or size from dialog units to pixels. Dialog units - are used for maintaining a dialog's proportions even if the font - changes. For the x dimension, the dialog units are multiplied by the - average character width and then divided by 4. For the y dimension, - the dialog units are multiplied by the average character height and - then divided by 8. - """ - return _core.Window_ConvertDialogSizeToPixels(*args, **kwargs) - - def DLG_PNT(*args, **kwargs): - """ - DLG_PNT(self, Point pt) -> Point - - Converts a point or size from dialog units to pixels. Dialog units - are used for maintaining a dialog's proportions even if the font - changes. For the x dimension, the dialog units are multiplied by the - average character width and then divided by 4. For the y dimension, - the dialog units are multiplied by the average character height and - then divided by 8. - """ - return _core.Window_DLG_PNT(*args, **kwargs) - - def DLG_SZE(*args, **kwargs): - """ - DLG_SZE(self, Size sz) -> Size - - Converts a point or size from dialog units to pixels. Dialog units - are used for maintaining a dialog's proportions even if the font - changes. For the x dimension, the dialog units are multiplied by the - average character width and then divided by 4. For the y dimension, - the dialog units are multiplied by the average character height and - then divided by 8. - """ - return _core.Window_DLG_SZE(*args, **kwargs) - - def ConvertPixelPointToDialog(*args, **kwargs): - """ConvertPixelPointToDialog(self, Point pt) -> Point""" - return _core.Window_ConvertPixelPointToDialog(*args, **kwargs) - - def ConvertPixelSizeToDialog(*args, **kwargs): - """ConvertPixelSizeToDialog(self, Size sz) -> Size""" - return _core.Window_ConvertPixelSizeToDialog(*args, **kwargs) - - def WarpPointer(*args, **kwargs): - """ - WarpPointer(self, int x, int y) - - Moves the pointer to the given position on the window. - - NOTE: This function is not supported under Mac because Apple Human - Interface Guidelines forbid moving the mouse cursor programmatically. - """ - return _core.Window_WarpPointer(*args, **kwargs) - - def CaptureMouse(*args, **kwargs): - """ - CaptureMouse(self) - - Directs all mouse input to this window. Call wx.Window.ReleaseMouse to - release the capture. - - Note that wxWindows maintains the stack of windows having captured the - mouse and when the mouse is released the capture returns to the window - which had had captured it previously and it is only really released if - there were no previous window. In particular, this means that you must - release the mouse as many times as you capture it. - """ - return _core.Window_CaptureMouse(*args, **kwargs) - - def ReleaseMouse(*args, **kwargs): - """ - ReleaseMouse(self) - - Releases mouse input captured with wx.Window.CaptureMouse. - """ - return _core.Window_ReleaseMouse(*args, **kwargs) - - def GetCapture(*args, **kwargs): - """ - Window.GetCapture() -> Window - - Returns the window which currently captures the mouse or None - """ - return _core.Window_GetCapture(*args, **kwargs) - - GetCapture = staticmethod(GetCapture) - def HasCapture(*args, **kwargs): - """ - HasCapture(self) -> bool - - Returns true if this window has the current mouse capture. - """ - return _core.Window_HasCapture(*args, **kwargs) - - def Refresh(*args, **kwargs): - """ - Refresh(self, bool eraseBackground=True, Rect rect=None) - - Mark the specified rectangle (or the whole window) as "dirty" so it - will be repainted. Causes an EVT_PAINT event to be generated and sent - to the window. - """ - return _core.Window_Refresh(*args, **kwargs) - - def RefreshRect(*args, **kwargs): - """ - RefreshRect(self, Rect rect) - - Redraws the contents of the given rectangle: the area inside it will - be repainted. This is the same as Refresh but has a nicer syntax. - """ - return _core.Window_RefreshRect(*args, **kwargs) - - def Update(*args, **kwargs): - """ - Update(self) - - Calling this method immediately repaints the invalidated area of the - window instead of waiting for the EVT_PAINT event to happen, (normally - this would usually only happen when the flow of control returns to the - event loop.) Notice that this function doesn't refresh the window and - does nothing if the window has been already repainted. Use Refresh - first if you want to immediately redraw the window (or some portion of - it) unconditionally. - """ - return _core.Window_Update(*args, **kwargs) - - def ClearBackground(*args, **kwargs): - """ - ClearBackground(self) - - Clears the window by filling it with the current background - colour. Does not cause an erase background event to be generated. - """ - return _core.Window_ClearBackground(*args, **kwargs) - - def Freeze(*args, **kwargs): - """ - Freeze(self) - - Freezes the window or, in other words, prevents any updates from taking place - on screen, the window is not redrawn at all. Thaw must be called to reenable - window redrawing. Calls to Freeze/Thaw may be nested, with the actual Thaw - being delayed until all the nesting has been undone. - - This method is useful for visual appearance optimization (for example, - it is a good idea to use it before inserting large amount of text into - a wxTextCtrl under wxGTK) but is not implemented on all platforms nor - for all controls so it is mostly just a hint to wxWindows and not a - mandatory directive. - """ - return _core.Window_Freeze(*args, **kwargs) - - def Thaw(*args, **kwargs): - """ - Thaw(self) - - Reenables window updating after a previous call to Freeze. Calls to - Freeze/Thaw may be nested, so Thaw must be called the same number of times - that Freeze was before the window will be updated. - """ - return _core.Window_Thaw(*args, **kwargs) - - def PrepareDC(*args, **kwargs): - """ - PrepareDC(self, DC dc) - - Call this function to prepare the device context for drawing a - scrolled image. It sets the device origin according to the current - scroll position. - """ - return _core.Window_PrepareDC(*args, **kwargs) - - def GetUpdateRegion(*args, **kwargs): - """ - GetUpdateRegion(self) -> Region - - Returns the region specifying which parts of the window have been - damaged. Should only be called within an EVT_PAINT handler. - """ - return _core.Window_GetUpdateRegion(*args, **kwargs) - - def GetUpdateClientRect(*args, **kwargs): - """ - GetUpdateClientRect(self) -> Rect - - Get the update rectangle region bounding box in client coords. - """ - return _core.Window_GetUpdateClientRect(*args, **kwargs) - - def IsExposed(*args, **kwargs): - """ - IsExposed(self, int x, int y, int w=1, int h=1) -> bool - - Returns true if the given point or rectangle area has been exposed - since the last repaint. Call this in an paint event handler to - optimize redrawing by only redrawing those areas, which have been - exposed. - """ - return _core.Window_IsExposed(*args, **kwargs) - - def IsExposedPoint(*args, **kwargs): - """ - IsExposedPoint(self, Point pt) -> bool - - Returns true if the given point or rectangle area has been exposed - since the last repaint. Call this in an paint event handler to - optimize redrawing by only redrawing those areas, which have been - exposed. - """ - return _core.Window_IsExposedPoint(*args, **kwargs) - - def IsExposedRect(*args, **kwargs): - """ - IsExposedRect(self, Rect rect) -> bool - - Returns true if the given point or rectangle area has been exposed - since the last repaint. Call this in an paint event handler to - optimize redrawing by only redrawing those areas, which have been - exposed. - """ - return _core.Window_IsExposedRect(*args, **kwargs) - - def GetDefaultAttributes(*args, **kwargs): - """ - GetDefaultAttributes(self) -> VisualAttributes - - Get the default attributes for an instance of this class. This - is useful if you want to use the same font or colour in your own - control as in a standard control -- which is a much better idea - than hard coding specific colours or fonts which might look - completely out of place on the users system, especially if it - uses themes. - """ - return _core.Window_GetDefaultAttributes(*args, **kwargs) - - def GetClassDefaultAttributes(*args, **kwargs): - """ - Window.GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes - - Get the default attributes for this class. This is useful if - you want to use the same font or colour in your own control as - in a standard control -- which is a much better idea than hard - coding specific colours or fonts which might look completely out - of place on the users system, especially if it uses themes. - - The variant parameter is only relevant under Mac currently and is - ignore under other platforms. Under Mac, it will change the size of the - returned font. See SetWindowVariant for more about this. - """ - return _core.Window_GetClassDefaultAttributes(*args, **kwargs) - - GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) - def SetBackgroundColour(*args, **kwargs): - """ - SetBackgroundColour(self, Colour colour) -> bool - - Sets the background colour of the window. Returns True if the colour - was changed. The background colour is usually painted by the default - EVT_ERASE_BACKGROUND event handler function under Windows and - automatically under GTK. - - Note that setting the background colour does not cause an immediate - refresh, so you may wish to call ClearBackground or Refresh after - calling this function. - - Use this function with care under GTK+ as the new appearance of the - window might not look equally well when used with themes, i.e GTK+'s - ability to change its look as the user wishes with run-time loadable - modules. - """ - return _core.Window_SetBackgroundColour(*args, **kwargs) - - def SetDefaultBackgroundColour(*args, **kwargs): - """SetDefaultBackgroundColour(self, Colour colour)""" - return _core.Window_SetDefaultBackgroundColour(*args, **kwargs) - - def SetForegroundColour(*args, **kwargs): - """ - SetForegroundColour(self, Colour colour) -> bool - - Sets the foreground colour of the window. Returns True is the colour - was changed. The interpretation of foreground colour is dependent on - the window class; it may be the text colour or other colour, or it may - not be used at all. - """ - return _core.Window_SetForegroundColour(*args, **kwargs) - - def SetDefaultForegroundColour(*args, **kwargs): - """SetDefaultForegroundColour(self, Colour colour)""" - return _core.Window_SetDefaultForegroundColour(*args, **kwargs) - - def GetBackgroundColour(*args, **kwargs): - """ - GetBackgroundColour(self) -> Colour - - Returns the background colour of the window. - """ - return _core.Window_GetBackgroundColour(*args, **kwargs) - - def GetForegroundColour(*args, **kwargs): - """ - GetForegroundColour(self) -> Colour - - Returns the foreground colour of the window. The interpretation of - foreground colour is dependent on the window class; it may be the text - colour or other colour, or it may not be used at all. - """ - return _core.Window_GetForegroundColour(*args, **kwargs) - - def SetCursor(*args, **kwargs): - """ - SetCursor(self, Cursor cursor) -> bool - - Sets the window's cursor. Notice that the window cursor also sets it - for the children of the window implicitly. - - The cursor may be wx.NullCursor in which case the window cursor will - be reset back to default. - """ - return _core.Window_SetCursor(*args, **kwargs) - - def GetCursor(*args, **kwargs): - """ - GetCursor(self) -> Cursor - - Return the cursor associated with this window. - """ - return _core.Window_GetCursor(*args, **kwargs) - - def SetFont(*args, **kwargs): - """ - SetFont(self, Font font) -> bool - - Sets the font for this window. - """ - return _core.Window_SetFont(*args, **kwargs) - - def SetDefaultFont(*args, **kwargs): - """SetDefaultFont(self, Font font)""" - return _core.Window_SetDefaultFont(*args, **kwargs) - - def GetFont(*args, **kwargs): - """ - GetFont(self) -> Font - - Returns the default font used for this window. - """ - return _core.Window_GetFont(*args, **kwargs) - - def SetCaret(*args, **kwargs): - """ - SetCaret(self, Caret caret) - - Sets the caret associated with the window. - """ - return _core.Window_SetCaret(*args, **kwargs) - - def GetCaret(*args, **kwargs): - """ - GetCaret(self) -> Caret - - Returns the caret associated with the window. - """ - return _core.Window_GetCaret(*args, **kwargs) - - def GetCharHeight(*args, **kwargs): - """ - GetCharHeight(self) -> int - - Get the (average) character size for the current font. - """ - return _core.Window_GetCharHeight(*args, **kwargs) - - def GetCharWidth(*args, **kwargs): - """ - GetCharWidth(self) -> int - - Get the (average) character size for the current font. - """ - return _core.Window_GetCharWidth(*args, **kwargs) - - def GetTextExtent(*args, **kwargs): - """ - GetTextExtent(String string) -> (width, height) - - Get the width and height of the text using the current font. - """ - return _core.Window_GetTextExtent(*args, **kwargs) - - def GetFullTextExtent(*args, **kwargs): - """ - GetFullTextExtent(String string, Font font=None) -> - (width, height, descent, externalLeading) - - Get the width, height, decent and leading of the text using the - current or specified font. - """ - return _core.Window_GetFullTextExtent(*args, **kwargs) - - def ClientToScreenXY(*args, **kwargs): - """ - ClientToScreenXY(int x, int y) -> (x,y) - - Converts to screen coordinates from coordinates relative to this window. - """ - return _core.Window_ClientToScreenXY(*args, **kwargs) - - def ScreenToClientXY(*args, **kwargs): - """ - ScreenToClientXY(int x, int y) -> (x,y) - - Converts from screen to client window coordinates. - """ - return _core.Window_ScreenToClientXY(*args, **kwargs) - - def ClientToScreen(*args, **kwargs): - """ - ClientToScreen(self, Point pt) -> Point - - Converts to screen coordinates from coordinates relative to this window. - """ - return _core.Window_ClientToScreen(*args, **kwargs) - - def ScreenToClient(*args, **kwargs): - """ - ScreenToClient(self, Point pt) -> Point - - Converts from screen to client window coordinates. - """ - return _core.Window_ScreenToClient(*args, **kwargs) - - def HitTestXY(*args, **kwargs): - """ - HitTestXY(self, int x, int y) -> int - - Test where the given (in client coords) point lies - """ - return _core.Window_HitTestXY(*args, **kwargs) - - def HitTest(*args, **kwargs): - """ - HitTest(self, Point pt) -> int - - Test where the given (in client coords) point lies - """ - return _core.Window_HitTest(*args, **kwargs) - - def GetBorder(*args): - """ - GetBorder(self, long flags) -> int - GetBorder(self) -> int - - Get border for the flags of this window - """ - return _core.Window_GetBorder(*args) - - def UpdateWindowUI(*args, **kwargs): - """ - UpdateWindowUI(self, long flags=UPDATE_UI_NONE) - - This function sends EVT_UPDATE_UI events to the window. The particular - implementation depends on the window; for example a wx.ToolBar will - send an update UI event for each toolbar button, and a wx.Frame will - send an update UI event for each menubar menu item. You can call this - function from your application to ensure that your UI is up-to-date at - a particular point in time (as far as your EVT_UPDATE_UI handlers are - concerned). This may be necessary if you have called - wx.UpdateUIEvent.SetMode or wx.UpdateUIEvent.SetUpdateInterval to - limit the overhead that wxWindows incurs by sending update UI events - in idle time. - - The flags should be a bitlist of one or more of the following values: - - wx.UPDATE_UI_NONE No particular value - wx.UPDATE_UI_RECURSE Call the function for descendants - wx.UPDATE_UI_FROMIDLE Invoked from OnIdle - - If you are calling this function from an OnIdle function, make sure - you pass the wx.UPDATE_UI_FROMIDLE flag, since this tells the window to - only update the UI elements that need to be updated in idle time. Some - windows update their elements only when necessary, for example when a - menu is about to be shown. The following is an example of how to call - UpdateWindowUI from an idle function. - - def OnIdle(self, evt): - if wx.UpdateUIEvent.CanUpdate(self): - self.UpdateWindowUI(wx.UPDATE_UI_FROMIDLE); - - """ - return _core.Window_UpdateWindowUI(*args, **kwargs) - - def PopupMenuXY(*args, **kwargs): - """ - PopupMenuXY(self, Menu menu, int x, int y) -> bool - - Pops up the given menu at the specified coordinates, relative to this - window, and returns control when the user has dismissed the menu. If a - menu item is selected, the corresponding menu event is generated and - will be processed as usual. - """ - return _core.Window_PopupMenuXY(*args, **kwargs) - - def PopupMenu(*args, **kwargs): - """ - PopupMenu(self, Menu menu, Point pos) -> bool - - Pops up the given menu at the specified coordinates, relative to this - window, and returns control when the user has dismissed the menu. If a - menu item is selected, the corresponding menu event is generated and - will be processed as usual. - """ - return _core.Window_PopupMenu(*args, **kwargs) - - def GetHandle(*args, **kwargs): - """ - GetHandle(self) -> long - - Returns the platform-specific handle (as a long integer) of the - physical window. Currently on wxMac it returns the handle of the - toplevel parent of the window. - """ - return _core.Window_GetHandle(*args, **kwargs) - - def HasScrollbar(*args, **kwargs): - """ - HasScrollbar(self, int orient) -> bool - - Does the window have the scrollbar for this orientation? - """ - return _core.Window_HasScrollbar(*args, **kwargs) - - def SetScrollbar(*args, **kwargs): - """ - SetScrollbar(self, int orientation, int pos, int thumbvisible, int range, - bool refresh=True) - - Sets the scrollbar properties of a built-in scrollbar. - - orientation: Determines the scrollbar whose page size is to be - set. May be wx.HORIZONTAL or wx.VERTICAL. - - position: The position of the scrollbar in scroll units. - - thumbSize: The size of the thumb, or visible portion of the - scrollbar, in scroll units. - - range: The maximum position of the scrollbar. - - refresh: True to redraw the scrollbar, false otherwise. - """ - return _core.Window_SetScrollbar(*args, **kwargs) - - def SetScrollPos(*args, **kwargs): - """ - SetScrollPos(self, int orientation, int pos, bool refresh=True) - - Sets the position of one of the built-in scrollbars. - """ - return _core.Window_SetScrollPos(*args, **kwargs) - - def GetScrollPos(*args, **kwargs): - """ - GetScrollPos(self, int orientation) -> int - - Returns the built-in scrollbar position. - """ - return _core.Window_GetScrollPos(*args, **kwargs) - - def GetScrollThumb(*args, **kwargs): - """ - GetScrollThumb(self, int orientation) -> int - - Returns the built-in scrollbar thumb size. - """ - return _core.Window_GetScrollThumb(*args, **kwargs) - - def GetScrollRange(*args, **kwargs): - """ - GetScrollRange(self, int orientation) -> int - - Returns the built-in scrollbar range. - """ - return _core.Window_GetScrollRange(*args, **kwargs) - - def ScrollWindow(*args, **kwargs): - """ - ScrollWindow(self, int dx, int dy, Rect rect=None) - - Physically scrolls the pixels in the window and move child windows - accordingly. Use this function to optimise your scrolling - implementations, to minimise the area that must be redrawn. Note that - it is rarely required to call this function from a user program. - - dx: Amount to scroll horizontally. - - dy: Amount to scroll vertically. - - rect: Rectangle to invalidate. If this is None, the whole window - is invalidated. If you pass a rectangle corresponding to the - area of the window exposed by the scroll, your painting - handler can optimize painting by checking for the - invalidated region. - """ - return _core.Window_ScrollWindow(*args, **kwargs) - - def ScrollLines(*args, **kwargs): - """ - ScrollLines(self, int lines) -> bool - - If the platform and window class supports it, scrolls the window by - the given number of lines down, if lines is positive, or up if lines - is negative. Returns True if the window was scrolled, False if it was - already on top/bottom and nothing was done. - """ - return _core.Window_ScrollLines(*args, **kwargs) - - def ScrollPages(*args, **kwargs): - """ - ScrollPages(self, int pages) -> bool - - If the platform and window class supports it, scrolls the window by - the given number of pages down, if pages is positive, or up if pages - is negative. Returns True if the window was scrolled, False if it was - already on top/bottom and nothing was done. - """ - return _core.Window_ScrollPages(*args, **kwargs) - - def LineUp(*args, **kwargs): - """ - LineUp(self) -> bool - - This is just a wrapper for ScrollLines(-1). - """ - return _core.Window_LineUp(*args, **kwargs) - - def LineDown(*args, **kwargs): - """ - LineDown(self) -> bool - - This is just a wrapper for ScrollLines(1). - """ - return _core.Window_LineDown(*args, **kwargs) - - def PageUp(*args, **kwargs): - """ - PageUp(self) -> bool - - This is just a wrapper for ScrollPages(-1). - """ - return _core.Window_PageUp(*args, **kwargs) - - def PageDown(*args, **kwargs): - """ - PageDown(self) -> bool - - This is just a wrapper for ScrollPages(1). - """ - return _core.Window_PageDown(*args, **kwargs) - - def SetHelpText(*args, **kwargs): - """ - SetHelpText(self, String text) - - Sets the help text to be used as context-sensitive help for this - window. Note that the text is actually stored by the current - wxHelpProvider implementation, and not in the window object itself. - """ - return _core.Window_SetHelpText(*args, **kwargs) - - def SetHelpTextForId(*args, **kwargs): - """ - SetHelpTextForId(self, String text) - - Associate this help text with all windows with the same id as this - one. - """ - return _core.Window_SetHelpTextForId(*args, **kwargs) - - def GetHelpText(*args, **kwargs): - """ - GetHelpText(self) -> String - - Gets the help text to be used as context-sensitive help for this - window. Note that the text is actually stored by the current - wxHelpProvider implementation, and not in the window object itself. - """ - return _core.Window_GetHelpText(*args, **kwargs) - - def SetToolTipString(*args, **kwargs): - """ - SetToolTipString(self, String tip) - - Attach a tooltip to the window. - """ - return _core.Window_SetToolTipString(*args, **kwargs) - - def SetToolTip(*args, **kwargs): - """ - SetToolTip(self, ToolTip tip) - - Attach a tooltip to the window. - """ - return _core.Window_SetToolTip(*args, **kwargs) - - def GetToolTip(*args, **kwargs): - """ - GetToolTip(self) -> ToolTip - - get the associated tooltip or None if none - """ - return _core.Window_GetToolTip(*args, **kwargs) - - def SetDropTarget(*args, **kwargs): - """ - SetDropTarget(self, DropTarget dropTarget) - - Associates a drop target with this window. If the window already has - a drop target, it is deleted. - """ - return _core.Window_SetDropTarget(*args, **kwargs) - - def GetDropTarget(*args, **kwargs): - """ - GetDropTarget(self) -> DropTarget - - Returns the associated drop target, which may be None. - """ - return _core.Window_GetDropTarget(*args, **kwargs) - - def SetConstraints(*args, **kwargs): - """ - SetConstraints(self, LayoutConstraints constraints) - - Sets the window to have the given layout constraints. If an existing - layout constraints object is already owned by the window, it will be - deleted. Pass None to disassociate and delete the window's current - constraints. - - You must call SetAutoLayout to tell a window to use the constraints - automatically in its default EVT_SIZE handler; otherwise, you must - handle EVT_SIZE yourself and call Layout() explicitly. When setting - both a wx.LayoutConstraints and a wx.Sizer, only the sizer will have - effect. - """ - return _core.Window_SetConstraints(*args, **kwargs) - - def GetConstraints(*args, **kwargs): - """ - GetConstraints(self) -> LayoutConstraints - - Returns a pointer to the window's layout constraints, or None if there - are none. - """ - return _core.Window_GetConstraints(*args, **kwargs) - - def SetAutoLayout(*args, **kwargs): - """ - SetAutoLayout(self, bool autoLayout) - - Determines whether the Layout function will be called automatically - when the window is resized. It is called implicitly by SetSizer but - if you use SetConstraints you should call it manually or otherwise the - window layout won't be correctly updated when its size changes. - """ - return _core.Window_SetAutoLayout(*args, **kwargs) - - def GetAutoLayout(*args, **kwargs): - """ - GetAutoLayout(self) -> bool - - Returns the current autoLayout setting - """ - return _core.Window_GetAutoLayout(*args, **kwargs) - - def Layout(*args, **kwargs): - """ - Layout(self) -> bool - - Invokes the constraint-based layout algorithm or the sizer-based - algorithm for this window. See SetAutoLayout: when auto layout is on, - this function gets called automatically by the default EVT_SIZE - handler when the window is resized. - """ - return _core.Window_Layout(*args, **kwargs) - - def SetSizer(*args, **kwargs): - """ - SetSizer(self, Sizer sizer, bool deleteOld=True) - - Sets the window to have the given layout sizer. The window will then - own the object, and will take care of its deletion. If an existing - layout sizer object is already owned by the window, it will be deleted - if the deleteOld parameter is true. Note that this function will also - call SetAutoLayout implicitly with a True parameter if the sizer is - non-NoneL and False otherwise. - """ - return _core.Window_SetSizer(*args, **kwargs) - - def SetSizerAndFit(*args, **kwargs): - """ - SetSizerAndFit(self, Sizer sizer, bool deleteOld=True) - - The same as SetSizer, except it also sets the size hints for the - window based on the sizer's minimum size. - """ - return _core.Window_SetSizerAndFit(*args, **kwargs) - - def GetSizer(*args, **kwargs): - """ - GetSizer(self) -> Sizer - - Return the sizer associated with the window by a previous call to - SetSizer or None if there isn't one. - """ - return _core.Window_GetSizer(*args, **kwargs) - - def SetContainingSizer(*args, **kwargs): - """ - SetContainingSizer(self, Sizer sizer) - - This normally does not need to be called by application code. It is - called internally when a window is added to a sizer, and is used so - the window can remove itself from the sizer when it is destroyed. - """ - return _core.Window_SetContainingSizer(*args, **kwargs) - - def GetContainingSizer(*args, **kwargs): - """ - GetContainingSizer(self) -> Sizer - - Return the sizer that this window is a member of, if any, otherwise None. - """ - return _core.Window_GetContainingSizer(*args, **kwargs) - - def InheritAttributes(*args, **kwargs): - """ - InheritAttributes(self) - - This function is (or should be, in case of custom controls) - called during window creation to intelligently set up the window - visual attributes, that is the font and the foreground and - background colours. - - By 'intelligently' the following is meant: by default, all - windows use their own default attributes. However if some of the - parent's attributes are explicitly changed (that is, using - SetFont and not SetDefaultFont) and if the corresponding - attribute hadn't been explicitly set for this window itself, then - this window takes the same value as used by the parent. In - addition, if the window overrides ShouldInheritColours to return - false, the colours will not be changed no matter what and only - the font might. - - This rather complicated logic is necessary in order to accomodate - the different usage scenarius. The most common one is when all - default attributes are used and in this case, nothing should be - inherited as in modern GUIs different controls use different - fonts (and colours) than their siblings so they can't inherit the - same value from the parent. However it was also deemed desirable - to allow to simply change the attributes of all children at once - by just changing the font or colour of their common parent, hence - in this case we do inherit the parents attributes. - """ - return _core.Window_InheritAttributes(*args, **kwargs) - - def ShouldInheritColours(*args, **kwargs): - """ - ShouldInheritColours(self) -> bool - - Return true from here to allow the colours of this window to be - changed by InheritAttributes, returning false forbids inheriting - them from the parent window. - - The base class version returns false, but this method is - overridden in wxControl where it returns true. - """ - return _core.Window_ShouldInheritColours(*args, **kwargs) - - def PostCreate(self, pre): - """ - Phase 3 of the 2-phase create - Call this method after precreating the window with the 2-phase create method. - """ - self.this = pre.this - self.thisown = pre.thisown - pre.thisown = 0 - if hasattr(self, '_setOORInfo'): - self._setOORInfo(self) - if hasattr(self, '_setCallbackInfo'): - self._setCallbackInfo(self, self.__class__) - - -class WindowPtr(Window): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Window -_core.Window_swigregister(WindowPtr) - -def PreWindow(*args, **kwargs): - """ - PreWindow() -> Window - - Precreate a Window for 2-phase creation. - """ - val = _core.new_PreWindow(*args, **kwargs) - val.thisown = 1 - return val - -def Window_NewControlId(*args, **kwargs): - """ - Window_NewControlId() -> int - - Generate a control id for the controls which were not given one. - """ - return _core.Window_NewControlId(*args, **kwargs) - -def Window_NextControlId(*args, **kwargs): - """ - Window_NextControlId(int winid) -> int - - Get the id of the control following the one with the given - (autogenerated) id - """ - return _core.Window_NextControlId(*args, **kwargs) - -def Window_PrevControlId(*args, **kwargs): - """ - Window_PrevControlId(int winid) -> int - - Get the id of the control preceding the one with the given - (autogenerated) id - """ - return _core.Window_PrevControlId(*args, **kwargs) - -def Window_FindFocus(*args, **kwargs): - """ - Window_FindFocus() -> Window - - Returns the window or control that currently has the keyboard focus, - or None. - """ - return _core.Window_FindFocus(*args, **kwargs) - -def Window_GetCapture(*args, **kwargs): - """ - Window_GetCapture() -> Window - - Returns the window which currently captures the mouse or None - """ - return _core.Window_GetCapture(*args, **kwargs) - -def Window_GetClassDefaultAttributes(*args, **kwargs): - """ - Window_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes - - Get the default attributes for this class. This is useful if - you want to use the same font or colour in your own control as - in a standard control -- which is a much better idea than hard - coding specific colours or fonts which might look completely out - of place on the users system, especially if it uses themes. - - The variant parameter is only relevant under Mac currently and is - ignore under other platforms. Under Mac, it will change the size of the - returned font. See SetWindowVariant for more about this. - """ - return _core.Window_GetClassDefaultAttributes(*args, **kwargs) - -def DLG_PNT(win, point_or_x, y=None): - """ - Convenience function for converting a Point or (x,y) in - dialog units to pixel units. - """ - if y is None: - return win.ConvertDialogPointToPixels(point_or_x) - else: - return win.ConvertDialogPointToPixels(wx.Point(point_or_x, y)) - -def DLG_SZE(win, size_width, height=None): - """ - Convenience function for converting a Size or (w,h) in - dialog units to pixel units. - """ - if height is None: - return win.ConvertDialogSizeToPixels(size_width) - else: - return win.ConvertDialogSizeToPixels(wx.Size(size_width, height)) - - -def FindWindowById(*args, **kwargs): - """ - FindWindowById(long id, Window parent=None) -> Window - - Find the first window in the application with the given id. If parent - is None, the search will start from all top-level frames and dialog - boxes; if non-None, the search will be limited to the given window - hierarchy. The search is recursive in both cases. - """ - return _core.FindWindowById(*args, **kwargs) - -def FindWindowByName(*args, **kwargs): - """ - FindWindowByName(String name, Window parent=None) -> Window - - Find a window by its name (as given in a window constructor or Create - function call). If parent is None, the search will start from all - top-level frames and dialog boxes; if non-None, the search will be - limited to the given window hierarchy. The search is recursive in both - cases. - - If no window with such name is found, wx.FindWindowByLabel is called. - """ - return _core.FindWindowByName(*args, **kwargs) - -def FindWindowByLabel(*args, **kwargs): - """ - FindWindowByLabel(String label, Window parent=None) -> Window - - Find a window by its label. Depending on the type of window, the label - may be a window title or panel item label. If parent is None, the - search will start from all top-level frames and dialog boxes; if - non-None, the search will be limited to the given window - hierarchy. The search is recursive in both cases. - """ - return _core.FindWindowByLabel(*args, **kwargs) - -def Window_FromHWND(*args, **kwargs): - """Window_FromHWND(Window parent, unsigned long _hWnd) -> Window""" - return _core.Window_FromHWND(*args, **kwargs) -#--------------------------------------------------------------------------- - -class Validator(EvtHandler): - def __repr__(self): - return "<%s.%s; proxy of C++ wxValidator instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> Validator""" - newobj = _core.new_Validator(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Clone(*args, **kwargs): - """Clone(self) -> Validator""" - return _core.Validator_Clone(*args, **kwargs) - - def Validate(*args, **kwargs): - """Validate(self, Window parent) -> bool""" - return _core.Validator_Validate(*args, **kwargs) - - def TransferToWindow(*args, **kwargs): - """TransferToWindow(self) -> bool""" - return _core.Validator_TransferToWindow(*args, **kwargs) - - def TransferFromWindow(*args, **kwargs): - """TransferFromWindow(self) -> bool""" - return _core.Validator_TransferFromWindow(*args, **kwargs) - - def GetWindow(*args, **kwargs): - """GetWindow(self) -> Window""" - return _core.Validator_GetWindow(*args, **kwargs) - - def SetWindow(*args, **kwargs): - """SetWindow(self, Window window)""" - return _core.Validator_SetWindow(*args, **kwargs) - - def IsSilent(*args, **kwargs): - """Validator.IsSilent() -> bool""" - return _core.Validator_IsSilent(*args, **kwargs) - - IsSilent = staticmethod(IsSilent) - def SetBellOnError(*args, **kwargs): - """Validator.SetBellOnError(int doIt=True)""" - return _core.Validator_SetBellOnError(*args, **kwargs) - - SetBellOnError = staticmethod(SetBellOnError) - -class ValidatorPtr(Validator): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Validator -_core.Validator_swigregister(ValidatorPtr) - -def Validator_IsSilent(*args, **kwargs): - """Validator_IsSilent() -> bool""" - return _core.Validator_IsSilent(*args, **kwargs) - -def Validator_SetBellOnError(*args, **kwargs): - """Validator_SetBellOnError(int doIt=True)""" - return _core.Validator_SetBellOnError(*args, **kwargs) - -class PyValidator(Validator): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyValidator instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> PyValidator""" - newobj = _core.new_PyValidator(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - - self._setCallbackInfo(self, PyValidator, 1) - self._setOORInfo(self) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class, int incref=True)""" - return _core.PyValidator__setCallbackInfo(*args, **kwargs) - - -class PyValidatorPtr(PyValidator): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PyValidator -_core.PyValidator_swigregister(PyValidatorPtr) - -#--------------------------------------------------------------------------- - -class Menu(EvtHandler): - def __repr__(self): - return "<%s.%s; proxy of C++ wxMenu instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, String title=EmptyString, long style=0) -> Menu""" - newobj = _core.new_Menu(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Append(*args, **kwargs): - """Append(self, int id, String text, String help=EmptyString, int kind=ITEM_NORMAL) -> MenuItem""" - return _core.Menu_Append(*args, **kwargs) - - def AppendSeparator(*args, **kwargs): - """AppendSeparator(self) -> MenuItem""" - return _core.Menu_AppendSeparator(*args, **kwargs) - - def AppendCheckItem(*args, **kwargs): - """AppendCheckItem(self, int id, String text, String help=EmptyString) -> MenuItem""" - return _core.Menu_AppendCheckItem(*args, **kwargs) - - def AppendRadioItem(*args, **kwargs): - """AppendRadioItem(self, int id, String text, String help=EmptyString) -> MenuItem""" - return _core.Menu_AppendRadioItem(*args, **kwargs) - - def AppendMenu(*args, **kwargs): - """AppendMenu(self, int id, String text, Menu submenu, String help=EmptyString) -> MenuItem""" - return _core.Menu_AppendMenu(*args, **kwargs) - - def AppendItem(*args, **kwargs): - """AppendItem(self, MenuItem item) -> MenuItem""" - return _core.Menu_AppendItem(*args, **kwargs) - - def Break(*args, **kwargs): - """Break(self)""" - return _core.Menu_Break(*args, **kwargs) - - def InsertItem(*args, **kwargs): - """InsertItem(self, size_t pos, MenuItem item) -> MenuItem""" - return _core.Menu_InsertItem(*args, **kwargs) - - def Insert(*args, **kwargs): - """ - Insert(self, size_t pos, int id, String text, String help=EmptyString, - int kind=ITEM_NORMAL) -> MenuItem - """ - return _core.Menu_Insert(*args, **kwargs) - - def InsertSeparator(*args, **kwargs): - """InsertSeparator(self, size_t pos) -> MenuItem""" - return _core.Menu_InsertSeparator(*args, **kwargs) - - def InsertCheckItem(*args, **kwargs): - """InsertCheckItem(self, size_t pos, int id, String text, String help=EmptyString) -> MenuItem""" - return _core.Menu_InsertCheckItem(*args, **kwargs) - - def InsertRadioItem(*args, **kwargs): - """InsertRadioItem(self, size_t pos, int id, String text, String help=EmptyString) -> MenuItem""" - return _core.Menu_InsertRadioItem(*args, **kwargs) - - def InsertMenu(*args, **kwargs): - """InsertMenu(self, size_t pos, int id, String text, Menu submenu, String help=EmptyString) -> MenuItem""" - return _core.Menu_InsertMenu(*args, **kwargs) - - def PrependItem(*args, **kwargs): - """PrependItem(self, MenuItem item) -> MenuItem""" - return _core.Menu_PrependItem(*args, **kwargs) - - def Prepend(*args, **kwargs): - """Prepend(self, int id, String text, String help=EmptyString, int kind=ITEM_NORMAL) -> MenuItem""" - return _core.Menu_Prepend(*args, **kwargs) - - def PrependSeparator(*args, **kwargs): - """PrependSeparator(self) -> MenuItem""" - return _core.Menu_PrependSeparator(*args, **kwargs) - - def PrependCheckItem(*args, **kwargs): - """PrependCheckItem(self, int id, String text, String help=EmptyString) -> MenuItem""" - return _core.Menu_PrependCheckItem(*args, **kwargs) - - def PrependRadioItem(*args, **kwargs): - """PrependRadioItem(self, int id, String text, String help=EmptyString) -> MenuItem""" - return _core.Menu_PrependRadioItem(*args, **kwargs) - - def PrependMenu(*args, **kwargs): - """PrependMenu(self, int id, String text, Menu submenu, String help=EmptyString) -> MenuItem""" - return _core.Menu_PrependMenu(*args, **kwargs) - - def Remove(*args, **kwargs): - """Remove(self, int id) -> MenuItem""" - return _core.Menu_Remove(*args, **kwargs) - - def RemoveItem(*args, **kwargs): - """RemoveItem(self, MenuItem item) -> MenuItem""" - return _core.Menu_RemoveItem(*args, **kwargs) - - def Delete(*args, **kwargs): - """Delete(self, int id) -> bool""" - return _core.Menu_Delete(*args, **kwargs) - - def DeleteItem(*args, **kwargs): - """DeleteItem(self, MenuItem item) -> bool""" - return _core.Menu_DeleteItem(*args, **kwargs) - - def Destroy(*args, **kwargs): - """ - Destroy(self) - - Deletes the C++ object this Python object is a proxy for. - """ - return _core.Menu_Destroy(*args, **kwargs) - - def DestroyId(*args, **kwargs): - """ - DestroyId(self, int id) -> bool - - Deletes the C++ object this Python object is a proxy for. - """ - return _core.Menu_DestroyId(*args, **kwargs) - - def DestroyItem(*args, **kwargs): - """ - DestroyItem(self, MenuItem item) -> bool - - Deletes the C++ object this Python object is a proxy for. - """ - return _core.Menu_DestroyItem(*args, **kwargs) - - def GetMenuItemCount(*args, **kwargs): - """GetMenuItemCount(self) -> size_t""" - return _core.Menu_GetMenuItemCount(*args, **kwargs) - - def GetMenuItems(*args, **kwargs): - """GetMenuItems(self) -> PyObject""" - return _core.Menu_GetMenuItems(*args, **kwargs) - - def FindItem(*args, **kwargs): - """FindItem(self, String item) -> int""" - return _core.Menu_FindItem(*args, **kwargs) - - def FindItemById(*args, **kwargs): - """FindItemById(self, int id) -> MenuItem""" - return _core.Menu_FindItemById(*args, **kwargs) - - def FindItemByPosition(*args, **kwargs): - """FindItemByPosition(self, size_t position) -> MenuItem""" - return _core.Menu_FindItemByPosition(*args, **kwargs) - - def Enable(*args, **kwargs): - """Enable(self, int id, bool enable)""" - return _core.Menu_Enable(*args, **kwargs) - - def IsEnabled(*args, **kwargs): - """IsEnabled(self, int id) -> bool""" - return _core.Menu_IsEnabled(*args, **kwargs) - - def Check(*args, **kwargs): - """Check(self, int id, bool check)""" - return _core.Menu_Check(*args, **kwargs) - - def IsChecked(*args, **kwargs): - """IsChecked(self, int id) -> bool""" - return _core.Menu_IsChecked(*args, **kwargs) - - def SetLabel(*args, **kwargs): - """SetLabel(self, int id, String label)""" - return _core.Menu_SetLabel(*args, **kwargs) - - def GetLabel(*args, **kwargs): - """GetLabel(self, int id) -> String""" - return _core.Menu_GetLabel(*args, **kwargs) - - def SetHelpString(*args, **kwargs): - """SetHelpString(self, int id, String helpString)""" - return _core.Menu_SetHelpString(*args, **kwargs) - - def GetHelpString(*args, **kwargs): - """GetHelpString(self, int id) -> String""" - return _core.Menu_GetHelpString(*args, **kwargs) - - def SetTitle(*args, **kwargs): - """SetTitle(self, String title)""" - return _core.Menu_SetTitle(*args, **kwargs) - - def GetTitle(*args, **kwargs): - """GetTitle(self) -> String""" - return _core.Menu_GetTitle(*args, **kwargs) - - def SetEventHandler(*args, **kwargs): - """SetEventHandler(self, EvtHandler handler)""" - return _core.Menu_SetEventHandler(*args, **kwargs) - - def GetEventHandler(*args, **kwargs): - """GetEventHandler(self) -> EvtHandler""" - return _core.Menu_GetEventHandler(*args, **kwargs) - - def SetInvokingWindow(*args, **kwargs): - """SetInvokingWindow(self, Window win)""" - return _core.Menu_SetInvokingWindow(*args, **kwargs) - - def GetInvokingWindow(*args, **kwargs): - """GetInvokingWindow(self) -> Window""" - return _core.Menu_GetInvokingWindow(*args, **kwargs) - - def GetStyle(*args, **kwargs): - """GetStyle(self) -> long""" - return _core.Menu_GetStyle(*args, **kwargs) - - def UpdateUI(*args, **kwargs): - """UpdateUI(self, EvtHandler source=None)""" - return _core.Menu_UpdateUI(*args, **kwargs) - - def GetMenuBar(*args, **kwargs): - """GetMenuBar(self) -> MenuBar""" - return _core.Menu_GetMenuBar(*args, **kwargs) - - def Attach(*args, **kwargs): - """Attach(self, wxMenuBarBase menubar)""" - return _core.Menu_Attach(*args, **kwargs) - - def Detach(*args, **kwargs): - """Detach(self)""" - return _core.Menu_Detach(*args, **kwargs) - - def IsAttached(*args, **kwargs): - """IsAttached(self) -> bool""" - return _core.Menu_IsAttached(*args, **kwargs) - - def SetParent(*args, **kwargs): - """SetParent(self, Menu parent)""" - return _core.Menu_SetParent(*args, **kwargs) - - def GetParent(*args, **kwargs): - """GetParent(self) -> Menu""" - return _core.Menu_GetParent(*args, **kwargs) - - -class MenuPtr(Menu): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Menu -_core.Menu_swigregister(MenuPtr) -DefaultValidator = cvar.DefaultValidator - -#--------------------------------------------------------------------------- - -class MenuBar(Window): - def __repr__(self): - return "<%s.%s; proxy of C++ wxMenuBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, long style=0) -> MenuBar""" - newobj = _core.new_MenuBar(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Append(*args, **kwargs): - """Append(self, Menu menu, String title) -> bool""" - return _core.MenuBar_Append(*args, **kwargs) - - def Insert(*args, **kwargs): - """Insert(self, size_t pos, Menu menu, String title) -> bool""" - return _core.MenuBar_Insert(*args, **kwargs) - - def GetMenuCount(*args, **kwargs): - """GetMenuCount(self) -> size_t""" - return _core.MenuBar_GetMenuCount(*args, **kwargs) - - def GetMenu(*args, **kwargs): - """GetMenu(self, size_t pos) -> Menu""" - return _core.MenuBar_GetMenu(*args, **kwargs) - - def Replace(*args, **kwargs): - """Replace(self, size_t pos, Menu menu, String title) -> Menu""" - return _core.MenuBar_Replace(*args, **kwargs) - - def Remove(*args, **kwargs): - """Remove(self, size_t pos) -> Menu""" - return _core.MenuBar_Remove(*args, **kwargs) - - def EnableTop(*args, **kwargs): - """EnableTop(self, size_t pos, bool enable)""" - return _core.MenuBar_EnableTop(*args, **kwargs) - - def IsEnabledTop(*args, **kwargs): - """IsEnabledTop(self, size_t pos) -> bool""" - return _core.MenuBar_IsEnabledTop(*args, **kwargs) - - def SetLabelTop(*args, **kwargs): - """SetLabelTop(self, size_t pos, String label)""" - return _core.MenuBar_SetLabelTop(*args, **kwargs) - - def GetLabelTop(*args, **kwargs): - """GetLabelTop(self, size_t pos) -> String""" - return _core.MenuBar_GetLabelTop(*args, **kwargs) - - def FindMenuItem(*args, **kwargs): - """FindMenuItem(self, String menu, String item) -> int""" - return _core.MenuBar_FindMenuItem(*args, **kwargs) - - def FindItemById(*args, **kwargs): - """FindItemById(self, int id) -> MenuItem""" - return _core.MenuBar_FindItemById(*args, **kwargs) - - def FindMenu(*args, **kwargs): - """FindMenu(self, String title) -> int""" - return _core.MenuBar_FindMenu(*args, **kwargs) - - def Enable(*args, **kwargs): - """Enable(self, int id, bool enable)""" - return _core.MenuBar_Enable(*args, **kwargs) - - def Check(*args, **kwargs): - """Check(self, int id, bool check)""" - return _core.MenuBar_Check(*args, **kwargs) - - def IsChecked(*args, **kwargs): - """IsChecked(self, int id) -> bool""" - return _core.MenuBar_IsChecked(*args, **kwargs) - - def IsEnabled(*args, **kwargs): - """IsEnabled(self, int id) -> bool""" - return _core.MenuBar_IsEnabled(*args, **kwargs) - - def SetLabel(*args, **kwargs): - """SetLabel(self, int id, String label)""" - return _core.MenuBar_SetLabel(*args, **kwargs) - - def GetLabel(*args, **kwargs): - """GetLabel(self, int id) -> String""" - return _core.MenuBar_GetLabel(*args, **kwargs) - - def SetHelpString(*args, **kwargs): - """SetHelpString(self, int id, String helpString)""" - return _core.MenuBar_SetHelpString(*args, **kwargs) - - def GetHelpString(*args, **kwargs): - """GetHelpString(self, int id) -> String""" - return _core.MenuBar_GetHelpString(*args, **kwargs) - - def GetFrame(*args, **kwargs): - """GetFrame(self) -> wxFrame""" - return _core.MenuBar_GetFrame(*args, **kwargs) - - def IsAttached(*args, **kwargs): - """IsAttached(self) -> bool""" - return _core.MenuBar_IsAttached(*args, **kwargs) - - def Attach(*args, **kwargs): - """Attach(self, wxFrame frame)""" - return _core.MenuBar_Attach(*args, **kwargs) - - def Detach(*args, **kwargs): - """Detach(self)""" - return _core.MenuBar_Detach(*args, **kwargs) - - -class MenuBarPtr(MenuBar): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = MenuBar -_core.MenuBar_swigregister(MenuBarPtr) - -#--------------------------------------------------------------------------- - -class MenuItem(Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxMenuItem instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Menu parentMenu=None, int id=ID_ANY, String text=EmptyString, - String help=EmptyString, int kind=ITEM_NORMAL, - Menu subMenu=None) -> MenuItem - """ - newobj = _core.new_MenuItem(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetMenu(*args, **kwargs): - """GetMenu(self) -> Menu""" - return _core.MenuItem_GetMenu(*args, **kwargs) - - def SetMenu(*args, **kwargs): - """SetMenu(self, Menu menu)""" - return _core.MenuItem_SetMenu(*args, **kwargs) - - def SetId(*args, **kwargs): - """SetId(self, int id)""" - return _core.MenuItem_SetId(*args, **kwargs) - - def GetId(*args, **kwargs): - """GetId(self) -> int""" - return _core.MenuItem_GetId(*args, **kwargs) - - def IsSeparator(*args, **kwargs): - """IsSeparator(self) -> bool""" - return _core.MenuItem_IsSeparator(*args, **kwargs) - - def SetText(*args, **kwargs): - """SetText(self, String str)""" - return _core.MenuItem_SetText(*args, **kwargs) - - def GetLabel(*args, **kwargs): - """GetLabel(self) -> String""" - return _core.MenuItem_GetLabel(*args, **kwargs) - - def GetText(*args, **kwargs): - """GetText(self) -> String""" - return _core.MenuItem_GetText(*args, **kwargs) - - def GetLabelFromText(*args, **kwargs): - """MenuItem.GetLabelFromText(String text) -> String""" - return _core.MenuItem_GetLabelFromText(*args, **kwargs) - - GetLabelFromText = staticmethod(GetLabelFromText) - def GetKind(*args, **kwargs): - """GetKind(self) -> int""" - return _core.MenuItem_GetKind(*args, **kwargs) - - def SetKind(*args, **kwargs): - """SetKind(self, int kind)""" - return _core.MenuItem_SetKind(*args, **kwargs) - - def SetCheckable(*args, **kwargs): - """SetCheckable(self, bool checkable)""" - return _core.MenuItem_SetCheckable(*args, **kwargs) - - def IsCheckable(*args, **kwargs): - """IsCheckable(self) -> bool""" - return _core.MenuItem_IsCheckable(*args, **kwargs) - - def IsSubMenu(*args, **kwargs): - """IsSubMenu(self) -> bool""" - return _core.MenuItem_IsSubMenu(*args, **kwargs) - - def SetSubMenu(*args, **kwargs): - """SetSubMenu(self, Menu menu)""" - return _core.MenuItem_SetSubMenu(*args, **kwargs) - - def GetSubMenu(*args, **kwargs): - """GetSubMenu(self) -> Menu""" - return _core.MenuItem_GetSubMenu(*args, **kwargs) - - def Enable(*args, **kwargs): - """Enable(self, bool enable=True)""" - return _core.MenuItem_Enable(*args, **kwargs) - - def IsEnabled(*args, **kwargs): - """IsEnabled(self) -> bool""" - return _core.MenuItem_IsEnabled(*args, **kwargs) - - def Check(*args, **kwargs): - """Check(self, bool check=True)""" - return _core.MenuItem_Check(*args, **kwargs) - - def IsChecked(*args, **kwargs): - """IsChecked(self) -> bool""" - return _core.MenuItem_IsChecked(*args, **kwargs) - - def Toggle(*args, **kwargs): - """Toggle(self)""" - return _core.MenuItem_Toggle(*args, **kwargs) - - def SetHelp(*args, **kwargs): - """SetHelp(self, String str)""" - return _core.MenuItem_SetHelp(*args, **kwargs) - - def GetHelp(*args, **kwargs): - """GetHelp(self) -> String""" - return _core.MenuItem_GetHelp(*args, **kwargs) - - def GetAccel(*args, **kwargs): - """GetAccel(self) -> AcceleratorEntry""" - return _core.MenuItem_GetAccel(*args, **kwargs) - - def SetAccel(*args, **kwargs): - """SetAccel(self, AcceleratorEntry accel)""" - return _core.MenuItem_SetAccel(*args, **kwargs) - - def GetDefaultMarginWidth(*args, **kwargs): - """MenuItem.GetDefaultMarginWidth() -> int""" - return _core.MenuItem_GetDefaultMarginWidth(*args, **kwargs) - - GetDefaultMarginWidth = staticmethod(GetDefaultMarginWidth) - def SetBitmap(*args, **kwargs): - """SetBitmap(self, Bitmap bitmap)""" - return _core.MenuItem_SetBitmap(*args, **kwargs) - - def GetBitmap(*args, **kwargs): - """GetBitmap(self) -> Bitmap""" - return _core.MenuItem_GetBitmap(*args, **kwargs) - - -class MenuItemPtr(MenuItem): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = MenuItem -_core.MenuItem_swigregister(MenuItemPtr) - -def MenuItem_GetLabelFromText(*args, **kwargs): - """MenuItem_GetLabelFromText(String text) -> String""" - return _core.MenuItem_GetLabelFromText(*args, **kwargs) - -def MenuItem_GetDefaultMarginWidth(*args, **kwargs): - """MenuItem_GetDefaultMarginWidth() -> int""" - return _core.MenuItem_GetDefaultMarginWidth(*args, **kwargs) - -#--------------------------------------------------------------------------- - -class Control(Window): - """ - This is the base class for a control or 'widget'. - - A control is generally a small window which processes user input and/or - displays one or more item of data. - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxControl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - long style=0, Validator validator=DefaultValidator, - String name=ControlNameStr) -> Control - - Create a Control. Normally you should only call this from a - subclass' __init__ as a plain old wx.Control is not very useful. - """ - newobj = _core.new_Control(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - long style=0, Validator validator=DefaultValidator, - String name=ControlNameStr) -> bool - - Do the 2nd phase and create the GUI control. - """ - return _core.Control_Create(*args, **kwargs) - - def Command(*args, **kwargs): - """ - Command(self, CommandEvent event) - - Simulates the effect of the user issuing a command to the - item. See wx.CommandEvent. - """ - return _core.Control_Command(*args, **kwargs) - - def GetLabel(*args, **kwargs): - """ - GetLabel(self) -> String - - Return a control's text. - """ - return _core.Control_GetLabel(*args, **kwargs) - - def SetLabel(*args, **kwargs): - """ - SetLabel(self, String label) - - Sets the item's text. - """ - return _core.Control_SetLabel(*args, **kwargs) - - def GetClassDefaultAttributes(*args, **kwargs): - """ - Control.GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes - - Get the default attributes for this class. This is useful if - you want to use the same font or colour in your own control as - in a standard control -- which is a much better idea than hard - coding specific colours or fonts which might look completely out - of place on the users system, especially if it uses themes. - - The variant parameter is only relevant under Mac currently and is - ignore under other platforms. Under Mac, it will change the size of the - returned font. See SetWindowVariant for more about this. - """ - return _core.Control_GetClassDefaultAttributes(*args, **kwargs) - - GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) - -class ControlPtr(Control): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Control -_core.Control_swigregister(ControlPtr) -ControlNameStr = cvar.ControlNameStr - -def PreControl(*args, **kwargs): - """ - PreControl() -> Control - - Precreate a Control control for 2-phase creation - """ - val = _core.new_PreControl(*args, **kwargs) - val.thisown = 1 - return val - -def Control_GetClassDefaultAttributes(*args, **kwargs): - """ - Control_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes - - Get the default attributes for this class. This is useful if - you want to use the same font or colour in your own control as - in a standard control -- which is a much better idea than hard - coding specific colours or fonts which might look completely out - of place on the users system, especially if it uses themes. - - The variant parameter is only relevant under Mac currently and is - ignore under other platforms. Under Mac, it will change the size of the - returned font. See SetWindowVariant for more about this. - """ - return _core.Control_GetClassDefaultAttributes(*args, **kwargs) - -#--------------------------------------------------------------------------- - -class ItemContainer(object): - """ - wx.ItemContainer defines an interface which is implemented by all - controls which have string subitems, each of which may be - selected, such as wx.ListBox, wx.CheckListBox, wx.Choice and - wx.ComboBox (which implements an extended interface deriving from - this one) - - It defines the methods for accessing the control's items and - although each of the derived classes implements them differently, - they still all conform to the same interface. - - The items in a wx.ItemContainer have (non empty) string labels - and, optionally, client data associated with them. - - """ - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxItemContainer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def Append(*args, **kwargs): - """ - Append(self, String item, PyObject clientData=None) -> int - - Adds the item to the control, associating the given data with the - item if not None. The return value is the index of the newly - added item which may be different from the last one if the - control is sorted (e.g. has wx.LB_SORT or wx.CB_SORT style). - """ - return _core.ItemContainer_Append(*args, **kwargs) - - def AppendItems(*args, **kwargs): - """ - AppendItems(self, wxArrayString strings) - - Apend several items at once to the control. Notice that calling - this method may be much faster than appending the items one by - one if you need to add a lot of items. - """ - return _core.ItemContainer_AppendItems(*args, **kwargs) - - def Insert(*args, **kwargs): - """ - Insert(self, String item, int pos, PyObject clientData=None) -> int - - Insert an item into the control before the item at the pos index, - optionally associating some data object with the item. - """ - return _core.ItemContainer_Insert(*args, **kwargs) - - def Clear(*args, **kwargs): - """ - Clear(self) - - Removes all items from the control. - """ - return _core.ItemContainer_Clear(*args, **kwargs) - - def Delete(*args, **kwargs): - """ - Delete(self, int n) - - Deletes the item at the zero-based index 'n' from the control. - Note that it is an error (signalled by a PyAssertionError - exception if enabled) to remove an item with the index negative - or greater or equal than the number of items in the control. - """ - return _core.ItemContainer_Delete(*args, **kwargs) - - def GetCount(*args, **kwargs): - """ - GetCount(self) -> int - - Returns the number of items in the control. - """ - return _core.ItemContainer_GetCount(*args, **kwargs) - - def IsEmpty(*args, **kwargs): - """ - IsEmpty(self) -> bool - - Returns True if the control is empty or False if it has some items. - """ - return _core.ItemContainer_IsEmpty(*args, **kwargs) - - def GetString(*args, **kwargs): - """ - GetString(self, int n) -> String - - Returns the label of the item with the given index. - """ - return _core.ItemContainer_GetString(*args, **kwargs) - - def GetStrings(*args, **kwargs): - """GetStrings(self) -> wxArrayString""" - return _core.ItemContainer_GetStrings(*args, **kwargs) - - def SetString(*args, **kwargs): - """ - SetString(self, int n, String s) - - Sets the label for the given item. - """ - return _core.ItemContainer_SetString(*args, **kwargs) - - def FindString(*args, **kwargs): - """ - FindString(self, String s) -> int - - Finds an item whose label matches the given string. Returns the - zero-based position of the item, or wx.NOT_FOUND if the string - was not found. - """ - return _core.ItemContainer_FindString(*args, **kwargs) - - def Select(*args, **kwargs): - """ - Select(self, int n) - - Sets the item at index 'n' to be the selected item. - """ - return _core.ItemContainer_Select(*args, **kwargs) - - SetSelection = Select - def GetSelection(*args, **kwargs): - """ - GetSelection(self) -> int - - Returns the index of the selected item or wx.NOT_FOUND if no item is selected. - """ - return _core.ItemContainer_GetSelection(*args, **kwargs) - - def GetStringSelection(*args, **kwargs): - """ - GetStringSelection(self) -> String - - Returns the label of the selected item or an empty string if no item is selected. - """ - return _core.ItemContainer_GetStringSelection(*args, **kwargs) - - def GetClientData(*args, **kwargs): - """ - GetClientData(self, int n) -> PyObject - - Returns the client data associated with the given item, (if any.) - """ - return _core.ItemContainer_GetClientData(*args, **kwargs) - - def SetClientData(*args, **kwargs): - """ - SetClientData(self, int n, PyObject clientData) - - Associate the given client data with the item at position n. - """ - return _core.ItemContainer_SetClientData(*args, **kwargs) - - -class ItemContainerPtr(ItemContainer): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ItemContainer -_core.ItemContainer_swigregister(ItemContainerPtr) - -#--------------------------------------------------------------------------- - -class ControlWithItems(Control,ItemContainer): - """ - wx.ControlWithItems combines the wx.ItemContainer class with the - wx.Control class, and is used for the base class of various - controls that have items. - """ - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxControlWithItems instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - -class ControlWithItemsPtr(ControlWithItems): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ControlWithItems -_core.ControlWithItems_swigregister(ControlWithItemsPtr) - -#--------------------------------------------------------------------------- - -class SizerItem(Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxSizerItem instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> SizerItem""" - newobj = _core.new_SizerItem(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def DeleteWindows(*args, **kwargs): - """DeleteWindows(self)""" - return _core.SizerItem_DeleteWindows(*args, **kwargs) - - def DetachSizer(*args, **kwargs): - """DetachSizer(self)""" - return _core.SizerItem_DetachSizer(*args, **kwargs) - - def GetSize(*args, **kwargs): - """GetSize(self) -> Size""" - return _core.SizerItem_GetSize(*args, **kwargs) - - def CalcMin(*args, **kwargs): - """CalcMin(self) -> Size""" - return _core.SizerItem_CalcMin(*args, **kwargs) - - def SetDimension(*args, **kwargs): - """SetDimension(self, Point pos, Size size)""" - return _core.SizerItem_SetDimension(*args, **kwargs) - - def GetMinSize(*args, **kwargs): - """GetMinSize(self) -> Size""" - return _core.SizerItem_GetMinSize(*args, **kwargs) - - def SetInitSize(*args, **kwargs): - """SetInitSize(self, int x, int y)""" - return _core.SizerItem_SetInitSize(*args, **kwargs) - - def SetRatioWH(*args, **kwargs): - """SetRatioWH(self, int width, int height)""" - return _core.SizerItem_SetRatioWH(*args, **kwargs) - - def SetRatioSize(*args, **kwargs): - """SetRatioSize(self, Size size)""" - return _core.SizerItem_SetRatioSize(*args, **kwargs) - - def SetRatio(*args, **kwargs): - """SetRatio(self, float ratio)""" - return _core.SizerItem_SetRatio(*args, **kwargs) - - def GetRatio(*args, **kwargs): - """GetRatio(self) -> float""" - return _core.SizerItem_GetRatio(*args, **kwargs) - - def IsWindow(*args, **kwargs): - """IsWindow(self) -> bool""" - return _core.SizerItem_IsWindow(*args, **kwargs) - - def IsSizer(*args, **kwargs): - """IsSizer(self) -> bool""" - return _core.SizerItem_IsSizer(*args, **kwargs) - - def IsSpacer(*args, **kwargs): - """IsSpacer(self) -> bool""" - return _core.SizerItem_IsSpacer(*args, **kwargs) - - def SetProportion(*args, **kwargs): - """SetProportion(self, int proportion)""" - return _core.SizerItem_SetProportion(*args, **kwargs) - - def GetProportion(*args, **kwargs): - """GetProportion(self) -> int""" - return _core.SizerItem_GetProportion(*args, **kwargs) - - SetOption = SetProportion - GetOption = GetProportion - def SetFlag(*args, **kwargs): - """SetFlag(self, int flag)""" - return _core.SizerItem_SetFlag(*args, **kwargs) - - def GetFlag(*args, **kwargs): - """GetFlag(self) -> int""" - return _core.SizerItem_GetFlag(*args, **kwargs) - - def SetBorder(*args, **kwargs): - """SetBorder(self, int border)""" - return _core.SizerItem_SetBorder(*args, **kwargs) - - def GetBorder(*args, **kwargs): - """GetBorder(self) -> int""" - return _core.SizerItem_GetBorder(*args, **kwargs) - - def GetWindow(*args, **kwargs): - """GetWindow(self) -> Window""" - return _core.SizerItem_GetWindow(*args, **kwargs) - - def SetWindow(*args, **kwargs): - """SetWindow(self, Window window)""" - return _core.SizerItem_SetWindow(*args, **kwargs) - - def GetSizer(*args, **kwargs): - """GetSizer(self) -> Sizer""" - return _core.SizerItem_GetSizer(*args, **kwargs) - - def SetSizer(*args, **kwargs): - """SetSizer(self, Sizer sizer)""" - return _core.SizerItem_SetSizer(*args, **kwargs) - - def GetSpacer(*args, **kwargs): - """GetSpacer(self) -> Size""" - return _core.SizerItem_GetSpacer(*args, **kwargs) - - def SetSpacer(*args, **kwargs): - """SetSpacer(self, Size size)""" - return _core.SizerItem_SetSpacer(*args, **kwargs) - - def Show(*args, **kwargs): - """Show(self, bool show)""" - return _core.SizerItem_Show(*args, **kwargs) - - def IsShown(*args, **kwargs): - """IsShown(self) -> bool""" - return _core.SizerItem_IsShown(*args, **kwargs) - - def GetPosition(*args, **kwargs): - """GetPosition(self) -> Point""" - return _core.SizerItem_GetPosition(*args, **kwargs) - - def GetUserData(*args, **kwargs): - """GetUserData(self) -> PyObject""" - return _core.SizerItem_GetUserData(*args, **kwargs) - - -class SizerItemPtr(SizerItem): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = SizerItem -_core.SizerItem_swigregister(SizerItemPtr) - -def SizerItemSpacer(*args, **kwargs): - """ - SizerItemSpacer(int width, int height, int proportion, int flag, int border, - Object userData) -> SizerItem - """ - val = _core.new_SizerItemSpacer(*args, **kwargs) - val.thisown = 1 - return val - -def SizerItemWindow(*args, **kwargs): - """ - SizerItemWindow(Window window, int proportion, int flag, int border, - Object userData) -> SizerItem - """ - val = _core.new_SizerItemWindow(*args, **kwargs) - val.thisown = 1 - return val - -def SizerItemSizer(*args, **kwargs): - """ - SizerItemSizer(Sizer sizer, int proportion, int flag, int border, - Object userData) -> SizerItem - """ - val = _core.new_SizerItemSizer(*args, **kwargs) - val.thisown = 1 - return val - -class Sizer(Object): - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def _setOORInfo(*args, **kwargs): - """_setOORInfo(self, PyObject _self)""" - return _core.Sizer__setOORInfo(*args, **kwargs) - - def Add(*args, **kwargs): - """ - Add(self, PyObject item, int proportion=0, int flag=0, int border=0, - PyObject userData=None) - """ - return _core.Sizer_Add(*args, **kwargs) - - def Insert(*args, **kwargs): - """ - Insert(self, int before, PyObject item, int proportion=0, int flag=0, - int border=0, PyObject userData=None) - """ - return _core.Sizer_Insert(*args, **kwargs) - - def Prepend(*args, **kwargs): - """ - Prepend(self, PyObject item, int proportion=0, int flag=0, int border=0, - PyObject userData=None) - """ - return _core.Sizer_Prepend(*args, **kwargs) - - def Remove(*args, **kwargs): - """Remove(self, PyObject item) -> bool""" - return _core.Sizer_Remove(*args, **kwargs) - - def _SetItemMinSize(*args, **kwargs): - """_SetItemMinSize(self, PyObject item, Size size)""" - return _core.Sizer__SetItemMinSize(*args, **kwargs) - - def AddItem(*args, **kwargs): - """AddItem(self, SizerItem item)""" - return _core.Sizer_AddItem(*args, **kwargs) - - def InsertItem(*args, **kwargs): - """InsertItem(self, size_t index, SizerItem item)""" - return _core.Sizer_InsertItem(*args, **kwargs) - - def PrependItem(*args, **kwargs): - """PrependItem(self, SizerItem item)""" - return _core.Sizer_PrependItem(*args, **kwargs) - - def AddMany(self, widgets): - for childinfo in widgets: - if type(childinfo) != type(()) or (len(childinfo) == 2 and type(childinfo[0]) == type(1)): - childinfo = (childinfo, ) - self.Add(*childinfo) - - # for backwards compatibility only, please do not use in new code - AddWindow = AddSizer = AddSpacer = Add - PrependWindow = PrependSizer = PrependSpacer = Prepend - InsertWindow = InsertSizer = InsertSpacer = Insert - RemoveWindow = RemoveSizer = RemovePos = Remove - - - def SetItemMinSize(self, item, *args): - if len(args) == 2: - return self._SetItemMinSize(item, args) - else: - return self._SetItemMinSize(item, args[0]) - - def SetDimension(*args, **kwargs): - """SetDimension(self, int x, int y, int width, int height)""" - return _core.Sizer_SetDimension(*args, **kwargs) - - def SetMinSize(*args, **kwargs): - """SetMinSize(self, Size size)""" - return _core.Sizer_SetMinSize(*args, **kwargs) - - def GetSize(*args, **kwargs): - """GetSize(self) -> Size""" - return _core.Sizer_GetSize(*args, **kwargs) - - def GetPosition(*args, **kwargs): - """GetPosition(self) -> Point""" - return _core.Sizer_GetPosition(*args, **kwargs) - - def GetMinSize(*args, **kwargs): - """GetMinSize(self) -> Size""" - return _core.Sizer_GetMinSize(*args, **kwargs) - - def GetSizeTuple(self): - return self.GetSize().asTuple() - def GetPositionTuple(self): - return self.GetPosition().asTuple() - def GetMinSizeTuple(self): - return self.GetMinSize().asTuple() - - def RecalcSizes(*args, **kwargs): - """RecalcSizes(self)""" - return _core.Sizer_RecalcSizes(*args, **kwargs) - - def CalcMin(*args, **kwargs): - """CalcMin(self) -> Size""" - return _core.Sizer_CalcMin(*args, **kwargs) - - def Layout(*args, **kwargs): - """Layout(self)""" - return _core.Sizer_Layout(*args, **kwargs) - - def Fit(*args, **kwargs): - """Fit(self, Window window) -> Size""" - return _core.Sizer_Fit(*args, **kwargs) - - def FitInside(*args, **kwargs): - """FitInside(self, Window window)""" - return _core.Sizer_FitInside(*args, **kwargs) - - def SetSizeHints(*args, **kwargs): - """SetSizeHints(self, Window window)""" - return _core.Sizer_SetSizeHints(*args, **kwargs) - - def SetVirtualSizeHints(*args, **kwargs): - """SetVirtualSizeHints(self, Window window)""" - return _core.Sizer_SetVirtualSizeHints(*args, **kwargs) - - def Clear(*args, **kwargs): - """Clear(self, bool delete_windows=False)""" - return _core.Sizer_Clear(*args, **kwargs) - - def DeleteWindows(*args, **kwargs): - """DeleteWindows(self)""" - return _core.Sizer_DeleteWindows(*args, **kwargs) - - def GetChildren(*args, **kwargs): - """GetChildren(self) -> PyObject""" - return _core.Sizer_GetChildren(*args, **kwargs) - - def Show(*args, **kwargs): - """Show(self, PyObject item, bool show=True)""" - return _core.Sizer_Show(*args, **kwargs) - - def Hide(*args, **kwargs): - """Hide(self, PyObject item)""" - return _core.Sizer_Hide(*args, **kwargs) - - def IsShown(*args, **kwargs): - """IsShown(self, PyObject item) -> bool""" - return _core.Sizer_IsShown(*args, **kwargs) - - def ShowItems(*args, **kwargs): - """ShowItems(self, bool show)""" - return _core.Sizer_ShowItems(*args, **kwargs) - - -class SizerPtr(Sizer): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Sizer -_core.Sizer_swigregister(SizerPtr) - -class PySizer(Sizer): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPySizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> PySizer""" - newobj = _core.new_PySizer(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setCallbackInfo(self, PySizer);self._setOORInfo(self) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _core.PySizer__setCallbackInfo(*args, **kwargs) - - -class PySizerPtr(PySizer): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PySizer -_core.PySizer_swigregister(PySizerPtr) - -#--------------------------------------------------------------------------- - -class BoxSizer(Sizer): - def __repr__(self): - return "<%s.%s; proxy of C++ wxBoxSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int orient=HORIZONTAL) -> BoxSizer""" - newobj = _core.new_BoxSizer(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def GetOrientation(*args, **kwargs): - """GetOrientation(self) -> int""" - return _core.BoxSizer_GetOrientation(*args, **kwargs) - - def SetOrientation(*args, **kwargs): - """SetOrientation(self, int orient)""" - return _core.BoxSizer_SetOrientation(*args, **kwargs) - - def RecalcSizes(*args, **kwargs): - """RecalcSizes(self)""" - return _core.BoxSizer_RecalcSizes(*args, **kwargs) - - def CalcMin(*args, **kwargs): - """CalcMin(self) -> Size""" - return _core.BoxSizer_CalcMin(*args, **kwargs) - - -class BoxSizerPtr(BoxSizer): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = BoxSizer -_core.BoxSizer_swigregister(BoxSizerPtr) - -#--------------------------------------------------------------------------- - -class StaticBoxSizer(BoxSizer): - def __repr__(self): - return "<%s.%s; proxy of C++ wxStaticBoxSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, wxStaticBox box, int orient=HORIZONTAL) -> StaticBoxSizer""" - newobj = _core.new_StaticBoxSizer(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def GetStaticBox(*args, **kwargs): - """GetStaticBox(self) -> wxStaticBox""" - return _core.StaticBoxSizer_GetStaticBox(*args, **kwargs) - - def RecalcSizes(*args, **kwargs): - """RecalcSizes(self)""" - return _core.StaticBoxSizer_RecalcSizes(*args, **kwargs) - - def CalcMin(*args, **kwargs): - """CalcMin(self) -> Size""" - return _core.StaticBoxSizer_CalcMin(*args, **kwargs) - - -class StaticBoxSizerPtr(StaticBoxSizer): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = StaticBoxSizer -_core.StaticBoxSizer_swigregister(StaticBoxSizerPtr) - -#--------------------------------------------------------------------------- - -class GridSizer(Sizer): - def __repr__(self): - return "<%s.%s; proxy of C++ wxGridSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int rows=1, int cols=0, int vgap=0, int hgap=0) -> GridSizer""" - newobj = _core.new_GridSizer(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def RecalcSizes(*args, **kwargs): - """RecalcSizes(self)""" - return _core.GridSizer_RecalcSizes(*args, **kwargs) - - def CalcMin(*args, **kwargs): - """CalcMin(self) -> Size""" - return _core.GridSizer_CalcMin(*args, **kwargs) - - def SetCols(*args, **kwargs): - """SetCols(self, int cols)""" - return _core.GridSizer_SetCols(*args, **kwargs) - - def SetRows(*args, **kwargs): - """SetRows(self, int rows)""" - return _core.GridSizer_SetRows(*args, **kwargs) - - def SetVGap(*args, **kwargs): - """SetVGap(self, int gap)""" - return _core.GridSizer_SetVGap(*args, **kwargs) - - def SetHGap(*args, **kwargs): - """SetHGap(self, int gap)""" - return _core.GridSizer_SetHGap(*args, **kwargs) - - def GetCols(*args, **kwargs): - """GetCols(self) -> int""" - return _core.GridSizer_GetCols(*args, **kwargs) - - def GetRows(*args, **kwargs): - """GetRows(self) -> int""" - return _core.GridSizer_GetRows(*args, **kwargs) - - def GetVGap(*args, **kwargs): - """GetVGap(self) -> int""" - return _core.GridSizer_GetVGap(*args, **kwargs) - - def GetHGap(*args, **kwargs): - """GetHGap(self) -> int""" - return _core.GridSizer_GetHGap(*args, **kwargs) - - -class GridSizerPtr(GridSizer): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = GridSizer -_core.GridSizer_swigregister(GridSizerPtr) - -#--------------------------------------------------------------------------- - -FLEX_GROWMODE_NONE = _core.FLEX_GROWMODE_NONE -FLEX_GROWMODE_SPECIFIED = _core.FLEX_GROWMODE_SPECIFIED -FLEX_GROWMODE_ALL = _core.FLEX_GROWMODE_ALL -class FlexGridSizer(GridSizer): - def __repr__(self): - return "<%s.%s; proxy of C++ wxFlexGridSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int rows=1, int cols=0, int vgap=0, int hgap=0) -> FlexGridSizer""" - newobj = _core.new_FlexGridSizer(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def RecalcSizes(*args, **kwargs): - """RecalcSizes(self)""" - return _core.FlexGridSizer_RecalcSizes(*args, **kwargs) - - def CalcMin(*args, **kwargs): - """CalcMin(self) -> Size""" - return _core.FlexGridSizer_CalcMin(*args, **kwargs) - - def AddGrowableRow(*args, **kwargs): - """AddGrowableRow(self, size_t idx, int proportion=0)""" - return _core.FlexGridSizer_AddGrowableRow(*args, **kwargs) - - def RemoveGrowableRow(*args, **kwargs): - """RemoveGrowableRow(self, size_t idx)""" - return _core.FlexGridSizer_RemoveGrowableRow(*args, **kwargs) - - def AddGrowableCol(*args, **kwargs): - """AddGrowableCol(self, size_t idx, int proportion=0)""" - return _core.FlexGridSizer_AddGrowableCol(*args, **kwargs) - - def RemoveGrowableCol(*args, **kwargs): - """RemoveGrowableCol(self, size_t idx)""" - return _core.FlexGridSizer_RemoveGrowableCol(*args, **kwargs) - - def SetFlexibleDirection(*args, **kwargs): - """SetFlexibleDirection(self, int direction)""" - return _core.FlexGridSizer_SetFlexibleDirection(*args, **kwargs) - - def GetFlexibleDirection(*args, **kwargs): - """GetFlexibleDirection(self) -> int""" - return _core.FlexGridSizer_GetFlexibleDirection(*args, **kwargs) - - def SetNonFlexibleGrowMode(*args, **kwargs): - """SetNonFlexibleGrowMode(self, int mode)""" - return _core.FlexGridSizer_SetNonFlexibleGrowMode(*args, **kwargs) - - def GetNonFlexibleGrowMode(*args, **kwargs): - """GetNonFlexibleGrowMode(self) -> int""" - return _core.FlexGridSizer_GetNonFlexibleGrowMode(*args, **kwargs) - - def GetRowHeights(*args, **kwargs): - """GetRowHeights(self) -> wxArrayInt""" - return _core.FlexGridSizer_GetRowHeights(*args, **kwargs) - - def GetColWidths(*args, **kwargs): - """GetColWidths(self) -> wxArrayInt""" - return _core.FlexGridSizer_GetColWidths(*args, **kwargs) - - -class FlexGridSizerPtr(FlexGridSizer): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = FlexGridSizer -_core.FlexGridSizer_swigregister(FlexGridSizerPtr) - -#--------------------------------------------------------------------------- - -class GBPosition(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxGBPosition instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int row=0, int col=0) -> GBPosition""" - newobj = _core.new_GBPosition(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetRow(*args, **kwargs): - """GetRow(self) -> int""" - return _core.GBPosition_GetRow(*args, **kwargs) - - def GetCol(*args, **kwargs): - """GetCol(self) -> int""" - return _core.GBPosition_GetCol(*args, **kwargs) - - def SetRow(*args, **kwargs): - """SetRow(self, int row)""" - return _core.GBPosition_SetRow(*args, **kwargs) - - def SetCol(*args, **kwargs): - """SetCol(self, int col)""" - return _core.GBPosition_SetCol(*args, **kwargs) - - def __eq__(*args, **kwargs): - """__eq__(self, GBPosition other) -> bool""" - return _core.GBPosition___eq__(*args, **kwargs) - - def __ne__(*args, **kwargs): - """__ne__(self, GBPosition other) -> bool""" - return _core.GBPosition___ne__(*args, **kwargs) - - def Set(*args, **kwargs): - """Set(self, int row=0, int col=0)""" - return _core.GBPosition_Set(*args, **kwargs) - - def Get(*args, **kwargs): - """Get(self) -> PyObject""" - return _core.GBPosition_Get(*args, **kwargs) - - asTuple = Get - def __str__(self): return str(self.Get()) - def __repr__(self): return 'wx.GBPosition'+str(self.Get()) - def __len__(self): return len(self.Get()) - def __getitem__(self, index): return self.Get()[index] - def __setitem__(self, index, val): - if index == 0: self.SetRow(val) - elif index == 1: self.SetCol(val) - else: raise IndexError - def __nonzero__(self): return self.Get() != (0,0) - __safe_for_unpickling__ = True - def __reduce__(self): return (wx.GBPosition, self.Get()) - - row = property(GetRow, SetRow) - col = property(GetCol, SetCol) - - -class GBPositionPtr(GBPosition): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = GBPosition -_core.GBPosition_swigregister(GBPositionPtr) - -class GBSpan(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxGBSpan instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int rowspan=1, int colspan=1) -> GBSpan""" - newobj = _core.new_GBSpan(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetRowspan(*args, **kwargs): - """GetRowspan(self) -> int""" - return _core.GBSpan_GetRowspan(*args, **kwargs) - - def GetColspan(*args, **kwargs): - """GetColspan(self) -> int""" - return _core.GBSpan_GetColspan(*args, **kwargs) - - def SetRowspan(*args, **kwargs): - """SetRowspan(self, int rowspan)""" - return _core.GBSpan_SetRowspan(*args, **kwargs) - - def SetColspan(*args, **kwargs): - """SetColspan(self, int colspan)""" - return _core.GBSpan_SetColspan(*args, **kwargs) - - def __eq__(*args, **kwargs): - """__eq__(self, GBSpan other) -> bool""" - return _core.GBSpan___eq__(*args, **kwargs) - - def __ne__(*args, **kwargs): - """__ne__(self, GBSpan other) -> bool""" - return _core.GBSpan___ne__(*args, **kwargs) - - def Set(*args, **kwargs): - """Set(self, int rowspan=1, int colspan=1)""" - return _core.GBSpan_Set(*args, **kwargs) - - def Get(*args, **kwargs): - """Get(self) -> PyObject""" - return _core.GBSpan_Get(*args, **kwargs) - - asTuple = Get - def __str__(self): return str(self.Get()) - def __repr__(self): return 'wx.GBSpan'+str(self.Get()) - def __len__(self): return len(self.Get()) - def __getitem__(self, index): return self.Get()[index] - def __setitem__(self, index, val): - if index == 0: self.SetRowspan(val) - elif index == 1: self.SetColspan(val) - else: raise IndexError - def __nonzero__(self): return self.Get() != (0,0) - __safe_for_unpickling__ = True - def __reduce__(self): return (wx.GBSpan, self.Get()) - - rowspan = property(GetRowspan, SetRowspan) - colspan = property(GetColspan, SetColspan) - - -class GBSpanPtr(GBSpan): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = GBSpan -_core.GBSpan_swigregister(GBSpanPtr) - -class GBSizerItem(SizerItem): - def __repr__(self): - return "<%s.%s; proxy of C++ wxGBSizerItem instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> GBSizerItem""" - newobj = _core.new_GBSizerItem(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetPos(*args, **kwargs): - """GetPos(self) -> GBPosition""" - return _core.GBSizerItem_GetPos(*args, **kwargs) - - def GetPosTuple(self): return self.GetPos().Get() - def GetSpan(*args, **kwargs): - """GetSpan(self) -> GBSpan""" - return _core.GBSizerItem_GetSpan(*args, **kwargs) - - def GetSpanTuple(self): return self.GetSpan().Get() - def SetPos(*args, **kwargs): - """SetPos(self, GBPosition pos) -> bool""" - return _core.GBSizerItem_SetPos(*args, **kwargs) - - def SetSpan(*args, **kwargs): - """SetSpan(self, GBSpan span) -> bool""" - return _core.GBSizerItem_SetSpan(*args, **kwargs) - - def Intersects(*args): - """ - Intersects(self, GBSizerItem other) -> bool - Intersects(self, GBPosition pos, GBSpan span) -> bool - """ - return _core.GBSizerItem_Intersects(*args) - - def GetEndPos(*args, **kwargs): - """GetEndPos(self, int row, int col)""" - return _core.GBSizerItem_GetEndPos(*args, **kwargs) - - def GetGBSizer(*args, **kwargs): - """GetGBSizer(self) -> GridBagSizer""" - return _core.GBSizerItem_GetGBSizer(*args, **kwargs) - - def SetGBSizer(*args, **kwargs): - """SetGBSizer(self, GridBagSizer sizer)""" - return _core.GBSizerItem_SetGBSizer(*args, **kwargs) - - -class GBSizerItemPtr(GBSizerItem): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = GBSizerItem -_core.GBSizerItem_swigregister(GBSizerItemPtr) -DefaultSpan = cvar.DefaultSpan - -def GBSizerItemWindow(*args, **kwargs): - """ - GBSizerItemWindow(Window window, GBPosition pos, GBSpan span, int flag, - int border, Object userData) -> GBSizerItem - """ - val = _core.new_GBSizerItemWindow(*args, **kwargs) - val.thisown = 1 - return val - -def GBSizerItemSizer(*args, **kwargs): - """ - GBSizerItemSizer(Sizer sizer, GBPosition pos, GBSpan span, int flag, - int border, Object userData) -> GBSizerItem - """ - val = _core.new_GBSizerItemSizer(*args, **kwargs) - val.thisown = 1 - return val - -def GBSizerItemSpacer(*args, **kwargs): - """ - GBSizerItemSpacer(int width, int height, GBPosition pos, GBSpan span, - int flag, int border, Object userData) -> GBSizerItem - """ - val = _core.new_GBSizerItemSpacer(*args, **kwargs) - val.thisown = 1 - return val - -class GridBagSizer(FlexGridSizer): - def __repr__(self): - return "<%s.%s; proxy of C++ wxGridBagSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int vgap=0, int hgap=0) -> GridBagSizer""" - newobj = _core.new_GridBagSizer(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def Add(*args, **kwargs): - """ - Add(self, PyObject item, GBPosition pos, GBSpan span=DefaultSpan, - int flag=0, int border=0, PyObject userData=None) -> bool - """ - return _core.GridBagSizer_Add(*args, **kwargs) - - def AddItem(*args, **kwargs): - """AddItem(self, GBSizerItem item) -> bool""" - return _core.GridBagSizer_AddItem(*args, **kwargs) - - def GetEmptyCellSize(*args, **kwargs): - """GetEmptyCellSize(self) -> Size""" - return _core.GridBagSizer_GetEmptyCellSize(*args, **kwargs) - - def SetEmptyCellSize(*args, **kwargs): - """SetEmptyCellSize(self, Size sz)""" - return _core.GridBagSizer_SetEmptyCellSize(*args, **kwargs) - - def GetItemPosition(*args): - """ - GetItemPosition(self, Window window) -> GBPosition - GetItemPosition(self, Sizer sizer) -> GBPosition - GetItemPosition(self, size_t index) -> GBPosition - """ - return _core.GridBagSizer_GetItemPosition(*args) - - def SetItemPosition(*args): - """ - SetItemPosition(self, Window window, GBPosition pos) -> bool - SetItemPosition(self, Sizer sizer, GBPosition pos) -> bool - SetItemPosition(self, size_t index, GBPosition pos) -> bool - """ - return _core.GridBagSizer_SetItemPosition(*args) - - def GetItemSpan(*args): - """ - GetItemSpan(self, Window window) -> GBSpan - GetItemSpan(self, Sizer sizer) -> GBSpan - GetItemSpan(self, size_t index) -> GBSpan - """ - return _core.GridBagSizer_GetItemSpan(*args) - - def SetItemSpan(*args): - """ - SetItemSpan(self, Window window, GBSpan span) -> bool - SetItemSpan(self, Sizer sizer, GBSpan span) -> bool - SetItemSpan(self, size_t index, GBSpan span) -> bool - """ - return _core.GridBagSizer_SetItemSpan(*args) - - def FindItem(*args): - """ - FindItem(self, Window window) -> GBSizerItem - FindItem(self, Sizer sizer) -> GBSizerItem - """ - return _core.GridBagSizer_FindItem(*args) - - def FindItemAtPosition(*args, **kwargs): - """FindItemAtPosition(self, GBPosition pos) -> GBSizerItem""" - return _core.GridBagSizer_FindItemAtPosition(*args, **kwargs) - - def FindItemAtPoint(*args, **kwargs): - """FindItemAtPoint(self, Point pt) -> GBSizerItem""" - return _core.GridBagSizer_FindItemAtPoint(*args, **kwargs) - - def FindItemWithData(*args, **kwargs): - """FindItemWithData(self, Object userData) -> GBSizerItem""" - return _core.GridBagSizer_FindItemWithData(*args, **kwargs) - - def RecalcSizes(*args, **kwargs): - """RecalcSizes(self)""" - return _core.GridBagSizer_RecalcSizes(*args, **kwargs) - - def CalcMin(*args, **kwargs): - """CalcMin(self) -> Size""" - return _core.GridBagSizer_CalcMin(*args, **kwargs) - - def CheckForIntersection(*args): - """ - CheckForIntersection(self, GBSizerItem item, GBSizerItem excludeItem=None) -> bool - CheckForIntersection(self, GBPosition pos, GBSpan span, GBSizerItem excludeItem=None) -> bool - """ - return _core.GridBagSizer_CheckForIntersection(*args) - - -class GridBagSizerPtr(GridBagSizer): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = GridBagSizer -_core.GridBagSizer_swigregister(GridBagSizerPtr) - -#--------------------------------------------------------------------------- - -Left = _core.Left -Top = _core.Top -Right = _core.Right -Bottom = _core.Bottom -Width = _core.Width -Height = _core.Height -Centre = _core.Centre -Center = _core.Center -CentreX = _core.CentreX -CentreY = _core.CentreY -Unconstrained = _core.Unconstrained -AsIs = _core.AsIs -PercentOf = _core.PercentOf -Above = _core.Above -Below = _core.Below -LeftOf = _core.LeftOf -RightOf = _core.RightOf -SameAs = _core.SameAs -Absolute = _core.Absolute -class IndividualLayoutConstraint(Object): - """ - Objects of this class are stored in the wx.LayoutConstraint class as one of - eight possible constraints that a window can be involved in. You will never - need to create an instance of wx.IndividualLayoutConstraint, rather you should - use create a wx.LayoutContstraints instance and use the individual contstraints - that it contains. - - Constraints are initially set to have the relationship wx.Unconstrained, which - means that their values should be calculated by looking at known constraints. - - The Edge specifies the type of edge or dimension of a window. - - Edges - - wx.Left The left edge. - wx.Top The top edge. - wx.Right The right edge. - wx.Bottom The bottom edge. - wx.CentreX The x-coordinate of the centre of the window. - wx.CentreY The y-coordinate of the centre of the window. - - - The Relationship specifies the relationship that this edge or dimension has - with another specified edge or dimension. Normally, the user doesn't use these - directly because functions such as Below and RightOf are a convenience for - using the more general Set function. - - Relationships - - wx.Unconstrained The edge or dimension is unconstrained - (the default for edges.) - wx.AsIs The edge or dimension is to be taken from the current - window position or size (the default for dimensions.) - wx.Above The edge should be above another edge. - wx.Below The edge should be below another edge. - wx.LeftOf The edge should be to the left of another edge. - wx.RightOf The edge should be to the right of another edge. - wx.SameAs The edge or dimension should be the same as another edge - or dimension. - wx.PercentOf The edge or dimension should be a percentage of another - edge or dimension. - wx.Absolute The edge or dimension should be a given absolute value. - - - """ - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxIndividualLayoutConstraint instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def Set(*args, **kwargs): - """Set(self, int rel, Window otherW, int otherE, int val=0, int marg=wxLAYOUT_DEFAULT_MARGIN)""" - return _core.IndividualLayoutConstraint_Set(*args, **kwargs) - - def LeftOf(*args, **kwargs): - """ - LeftOf(self, Window sibling, int marg=0) - - Sibling relationship - """ - return _core.IndividualLayoutConstraint_LeftOf(*args, **kwargs) - - def RightOf(*args, **kwargs): - """ - RightOf(self, Window sibling, int marg=0) - - Sibling relationship - """ - return _core.IndividualLayoutConstraint_RightOf(*args, **kwargs) - - def Above(*args, **kwargs): - """ - Above(self, Window sibling, int marg=0) - - Sibling relationship - """ - return _core.IndividualLayoutConstraint_Above(*args, **kwargs) - - def Below(*args, **kwargs): - """ - Below(self, Window sibling, int marg=0) - - Sibling relationship - """ - return _core.IndividualLayoutConstraint_Below(*args, **kwargs) - - def SameAs(*args, **kwargs): - """ - SameAs(self, Window otherW, int edge, int marg=0) - - 'Same edge' alignment - """ - return _core.IndividualLayoutConstraint_SameAs(*args, **kwargs) - - def PercentOf(*args, **kwargs): - """ - PercentOf(self, Window otherW, int wh, int per) - - The edge is a percentage of the other window's edge - """ - return _core.IndividualLayoutConstraint_PercentOf(*args, **kwargs) - - def Absolute(*args, **kwargs): - """ - Absolute(self, int val) - - Edge has absolute value - """ - return _core.IndividualLayoutConstraint_Absolute(*args, **kwargs) - - def Unconstrained(*args, **kwargs): - """ - Unconstrained(self) - - Dimension is unconstrained - """ - return _core.IndividualLayoutConstraint_Unconstrained(*args, **kwargs) - - def AsIs(*args, **kwargs): - """ - AsIs(self) - - Dimension is 'as is' (use current size settings) - """ - return _core.IndividualLayoutConstraint_AsIs(*args, **kwargs) - - def GetOtherWindow(*args, **kwargs): - """GetOtherWindow(self) -> Window""" - return _core.IndividualLayoutConstraint_GetOtherWindow(*args, **kwargs) - - def GetMyEdge(*args, **kwargs): - """GetMyEdge(self) -> int""" - return _core.IndividualLayoutConstraint_GetMyEdge(*args, **kwargs) - - def SetEdge(*args, **kwargs): - """SetEdge(self, int which)""" - return _core.IndividualLayoutConstraint_SetEdge(*args, **kwargs) - - def SetValue(*args, **kwargs): - """SetValue(self, int v)""" - return _core.IndividualLayoutConstraint_SetValue(*args, **kwargs) - - def GetMargin(*args, **kwargs): - """GetMargin(self) -> int""" - return _core.IndividualLayoutConstraint_GetMargin(*args, **kwargs) - - def SetMargin(*args, **kwargs): - """SetMargin(self, int m)""" - return _core.IndividualLayoutConstraint_SetMargin(*args, **kwargs) - - def GetValue(*args, **kwargs): - """GetValue(self) -> int""" - return _core.IndividualLayoutConstraint_GetValue(*args, **kwargs) - - def GetPercent(*args, **kwargs): - """GetPercent(self) -> int""" - return _core.IndividualLayoutConstraint_GetPercent(*args, **kwargs) - - def GetOtherEdge(*args, **kwargs): - """GetOtherEdge(self) -> int""" - return _core.IndividualLayoutConstraint_GetOtherEdge(*args, **kwargs) - - def GetDone(*args, **kwargs): - """GetDone(self) -> bool""" - return _core.IndividualLayoutConstraint_GetDone(*args, **kwargs) - - def SetDone(*args, **kwargs): - """SetDone(self, bool d)""" - return _core.IndividualLayoutConstraint_SetDone(*args, **kwargs) - - def GetRelationship(*args, **kwargs): - """GetRelationship(self) -> int""" - return _core.IndividualLayoutConstraint_GetRelationship(*args, **kwargs) - - def SetRelationship(*args, **kwargs): - """SetRelationship(self, int r)""" - return _core.IndividualLayoutConstraint_SetRelationship(*args, **kwargs) - - def ResetIfWin(*args, **kwargs): - """ - ResetIfWin(self, Window otherW) -> bool - - Reset constraint if it mentions otherWin - """ - return _core.IndividualLayoutConstraint_ResetIfWin(*args, **kwargs) - - def SatisfyConstraint(*args, **kwargs): - """ - SatisfyConstraint(self, LayoutConstraints constraints, Window win) -> bool - - Try to satisfy constraint - """ - return _core.IndividualLayoutConstraint_SatisfyConstraint(*args, **kwargs) - - def GetEdge(*args, **kwargs): - """ - GetEdge(self, int which, Window thisWin, Window other) -> int - - Get the value of this edge or dimension, or if this - is not determinable, -1. - """ - return _core.IndividualLayoutConstraint_GetEdge(*args, **kwargs) - - -class IndividualLayoutConstraintPtr(IndividualLayoutConstraint): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = IndividualLayoutConstraint -_core.IndividualLayoutConstraint_swigregister(IndividualLayoutConstraintPtr) - -class LayoutConstraints(Object): - """ - Note: constraints are now deprecated and you should use sizers instead. - - Objects of this class can be associated with a window to define its layout - constraints, with respect to siblings or its parent. - - The class consists of the following eight constraints of class - wx.IndividualLayoutConstraint, some or all of which should be accessed - directly to set the appropriate constraints. - - * left: represents the left hand edge of the window - * right: represents the right hand edge of the window - * top: represents the top edge of the window - * bottom: represents the bottom edge of the window - * width: represents the width of the window - * height: represents the height of the window - * centreX: represents the horizontal centre point of the window - * centreY: represents the vertical centre point of the window - - Most constraints are initially set to have the relationship wxUnconstrained, - which means that their values should be calculated by looking at known - constraints. The exceptions are width and height, which are set to wxAsIs to - ensure that if the user does not specify a constraint, the existing width and - height will be used, to be compatible with panel items which often have take a - default size. If the constraint is wxAsIs, the dimension will not be changed. - - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxLayoutConstraints instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - left = property(_core.LayoutConstraints_left_get) - top = property(_core.LayoutConstraints_top_get) - right = property(_core.LayoutConstraints_right_get) - bottom = property(_core.LayoutConstraints_bottom_get) - width = property(_core.LayoutConstraints_width_get) - height = property(_core.LayoutConstraints_height_get) - centreX = property(_core.LayoutConstraints_centreX_get) - centreY = property(_core.LayoutConstraints_centreY_get) - def __init__(self, *args, **kwargs): - """__init__(self) -> LayoutConstraints""" - newobj = _core.new_LayoutConstraints(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def SatisfyConstraints(*args, **kwargs): - """SatisfyConstraints(Window win) -> (areSatisfied, noChanges)""" - return _core.LayoutConstraints_SatisfyConstraints(*args, **kwargs) - - def AreSatisfied(*args, **kwargs): - """AreSatisfied(self) -> bool""" - return _core.LayoutConstraints_AreSatisfied(*args, **kwargs) - - -class LayoutConstraintsPtr(LayoutConstraints): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = LayoutConstraints -_core.LayoutConstraints_swigregister(LayoutConstraintsPtr) - -#---------------------------------------------------------------------------- - -# Use Python's bool constants if available, make some if not -try: - True -except NameError: - __builtins__.True = 1==1 - __builtins__.False = 1==0 - def bool(value): return not not value - __builtins__.bool = bool - - - -# workarounds for bad wxRTTI names -__wxPyPtrTypeMap['wxGauge95'] = 'wxGauge' -__wxPyPtrTypeMap['wxSlider95'] = 'wxSlider' -__wxPyPtrTypeMap['wxStatusBar95'] = 'wxStatusBar' - - -#---------------------------------------------------------------------------- -# Load version numbers from __version__... Ensure that major and minor -# versions are the same for both wxPython and wxWindows. - -from __version__ import * -__version__ = VERSION_STRING - -assert MAJOR_VERSION == _core.MAJOR_VERSION, "wxPython/wxWindows version mismatch" -assert MINOR_VERSION == _core.MINOR_VERSION, "wxPython/wxWindows version mismatch" -if RELEASE_VERSION != _core.RELEASE_VERSION: - import warnings - warnings.warn("wxPython/wxWindows release number mismatch") - -#---------------------------------------------------------------------------- - -class PyDeadObjectError(AttributeError): - pass - -class _wxPyDeadObject(object): - """ - Instances of wx objects that are OOR capable will have their __class__ - changed to this class when the C++ object is deleted. This should help - prevent crashes due to referencing a bogus C++ pointer. - """ - reprStr = "wxPython wrapper for DELETED %s object! (The C++ object no longer exists.)" - attrStr = "The C++ part of the %s object has been deleted, attribute access no longer allowed." - - def __repr__(self): - if not hasattr(self, "_name"): - self._name = "[unknown]" - return self.reprStr % self._name - - def __getattr__(self, *args): - if not hasattr(self, "_name"): - self._name = "[unknown]" - raise PyDeadObjectError(self.attrStr % self._name) - - def __nonzero__(self): - return 0 - - - -class PyUnbornObjectError(AttributeError): - pass - -class _wxPyUnbornObject(object): - """ - Some stock objects are created when the wx.core module is - imported, but their C++ instance is not created until the wx.App - object is created and initialized. These object instances will - temporarily have their __class__ changed to this class so an - exception will be raised if they are used before the C++ instance - is ready. - """ - - reprStr = "wxPython wrapper for UNBORN object! (The C++ object is not initialized yet.)" - attrStr = "The C++ part of this object has not been initialized, attribute access not allowed." - - def __repr__(self): - #if not hasattr(self, "_name"): - # self._name = "[unknown]" - return self.reprStr #% self._name - - def __getattr__(self, *args): - #if not hasattr(self, "_name"): - # self._name = "[unknown]" - raise PyUnbornObjectError(self.attrStr) # % self._name ) - - def __nonzero__(self): - return 0 - - -#---------------------------------------------------------------------------- -_wxPyCallAfterId = None - -def CallAfter(callable, *args, **kw): - """ - Call the specified function after the current and pending event - handlers have been completed. This is also good for making GUI - method calls from non-GUI threads. - """ - app = wx.GetApp() - assert app, 'No wxApp created yet' - - global _wxPyCallAfterId - if _wxPyCallAfterId is None: - _wxPyCallAfterId = wx.NewEventType() - app.Connect(-1, -1, _wxPyCallAfterId, - lambda event: event.callable(*event.args, **event.kw) ) - evt = wx.PyEvent() - evt.SetEventType(_wxPyCallAfterId) - evt.callable = callable - evt.args = args - evt.kw = kw - wx.PostEvent(app, evt) - - -#---------------------------------------------------------------------------- - - -class FutureCall: - """ - A convenience class for wx.Timer, that calls the given callable - object once after the given amount of milliseconds, passing any - positional or keyword args. The return value of the callable is - availbale after it has been run with the GetResult method. - - If you don't need to get the return value or restart the timer - then there is no need to hold a reference to this object. It will - hold a reference to itself while the timer is running (the timer - has a reference to self.Notify) but the cycle will be broken when - the timer completes, automatically cleaning up the wx.FutureCall - object. - """ - def __init__(self, millis, callable, *args, **kwargs): - self.millis = millis - self.callable = callable - self.SetArgs(*args, **kwargs) - self.runCount = 0 - self.running = False - self.hasRun = False - self.result = None - self.timer = None - self.Start() - - def __del__(self): - self.Stop() - - - def Start(self, millis=None, *args, **kwargs): - """ - (Re)start the timer - """ - self.hasRun = False - if millis is not None: - self.millis = millis - if args or kwargs: - self.SetArgs(*args, **kwargs) - self.Stop() - self.timer = wx.PyTimer(self.Notify) - self.timer.Start(self.millis, wx.TIMER_ONE_SHOT) - self.running = True - Restart = Start - - - def Stop(self): - """ - Stop and destroy the timer. - """ - if self.timer is not None: - self.timer.Stop() - self.timer = None - - - def GetInterval(self): - if self.timer is not None: - return self.timer.GetInterval() - else: - return 0 - - - def IsRunning(self): - return self.timer is not None and self.timer.IsRunning() - - - def SetArgs(self, *args, **kwargs): - """ - (Re)set the args passed to the callable object. This is - useful in conjunction with Restart if you want to schedule a - new call to the same callable object but with different - parameters. - """ - self.args = args - self.kwargs = kwargs - - - def HasRun(self): - return self.hasRun - - def GetResult(self): - return self.result - - def Notify(self): - """ - The timer has expired so call the callable. - """ - if self.callable and getattr(self.callable, 'im_self', True): - self.runCount += 1 - self.running = False - self.result = self.callable(*self.args, **self.kwargs) - self.hasRun = True - if not self.running: - # if it wasn't restarted, then cleanup - wx.CallAfter(self.Stop) - - - -#---------------------------------------------------------------------------- -# Control which items in this module should be documented by epydoc. -# We allow only classes and functions, which will help reduce the size -# of the docs by filtering out the zillions of constants, EVT objects, -# and etc that don't make much sense by themselves, but are instead -# documented (or will be) as part of the classes/functions/methods -# where they should be used. - -def __docfilter__(name): - import types - obj = globals().get(name, None) - if type(obj) not in [type, types.ClassType, types.FunctionType, types.BuiltinFunctionType]: - return False - if name.startswith('_') or name.endswith('Ptr') or name.startswith('EVT'): - return False - return True - -#---------------------------------------------------------------------------- -#---------------------------------------------------------------------------- - -# Import other modules in this package that should show up in the -# "core" wx namespace -from gdi import * -from windows import * -from controls import * -from misc import * - - -# Fixup the stock objects since they can't be used yet. (They will be -# restored in wx.PyApp.OnInit.) -_core._wxPyFixStockObjects() - -#---------------------------------------------------------------------------- -#---------------------------------------------------------------------------- - - diff --git a/wxPython/src/mac/gdi.py b/wxPython/src/mac/gdi.py deleted file mode 100644 index e0c262f7f4..0000000000 --- a/wxPython/src/mac/gdi.py +++ /dev/null @@ -1,3831 +0,0 @@ -# This file was created automatically by SWIG. -# Don't modify this file, modify the SWIG interface instead. - -import _gdi - -import core -wx = core -__docfilter__ = wx.__docfilter__ -#--------------------------------------------------------------------------- - -class GDIObject(core.Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxGDIObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> GDIObject""" - newobj = _gdi.new_GDIObject(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_gdi.delete_GDIObject): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def GetVisible(*args, **kwargs): - """GetVisible(self) -> bool""" - return _gdi.GDIObject_GetVisible(*args, **kwargs) - - def SetVisible(*args, **kwargs): - """SetVisible(self, bool visible)""" - return _gdi.GDIObject_SetVisible(*args, **kwargs) - - def IsNull(*args, **kwargs): - """IsNull(self) -> bool""" - return _gdi.GDIObject_IsNull(*args, **kwargs) - - -class GDIObjectPtr(GDIObject): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = GDIObject -_gdi.GDIObject_swigregister(GDIObjectPtr) - -#--------------------------------------------------------------------------- - -class Colour(core.Object): - """ - A colour is an object representing a combination of Red, Green, and Blue (RGB) - intensity values, and is used to determine drawing colours, window colours, - etc. Valid RGB values are in the range 0 to 255. - - In wxPython there are typemaps that will automatically convert from a colour - name, or from a '#RRGGBB' colour hex value string to a wx.Colour object when - calling C++ methods that expect a wxColour. This means that the following are - all equivallent: - - win.SetBackgroundColour(wxColour(0,0,255)) - win.SetBackgroundColour('BLUE') - win.SetBackgroundColour('#0000FF') - - You can retrieve the various current system colour settings with - wx.SystemSettings.GetColour. - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxColour instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, unsigned char red=0, unsigned char green=0, unsigned char blue=0) -> Colour - - Constructs a colour from red, green and blue values. - """ - newobj = _gdi.new_Colour(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_gdi.delete_Colour): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Red(*args, **kwargs): - """ - Red(self) -> unsigned char - - Returns the red intensity. - """ - return _gdi.Colour_Red(*args, **kwargs) - - def Green(*args, **kwargs): - """ - Green(self) -> unsigned char - - Returns the green intensity. - """ - return _gdi.Colour_Green(*args, **kwargs) - - def Blue(*args, **kwargs): - """ - Blue(self) -> unsigned char - - Returns the blue intensity. - """ - return _gdi.Colour_Blue(*args, **kwargs) - - def Ok(*args, **kwargs): - """ - Ok(self) -> bool - - Returns True if the colour object is valid (the colour has been - initialised with RGB values). - """ - return _gdi.Colour_Ok(*args, **kwargs) - - def Set(*args, **kwargs): - """ - Set(self, unsigned char red, unsigned char green, unsigned char blue) - - Sets the RGB intensity values. - """ - return _gdi.Colour_Set(*args, **kwargs) - - def SetRGB(*args, **kwargs): - """ - SetRGB(self, unsigned long colRGB) - - Sets the RGB intensity values from a packed RGB value. - """ - return _gdi.Colour_SetRGB(*args, **kwargs) - - def SetFromName(*args, **kwargs): - """ - SetFromName(self, String colourName) - - Sets the RGB intensity values using a colour name listed in wx.TheColourDatabase. - """ - return _gdi.Colour_SetFromName(*args, **kwargs) - - def GetPixel(*args, **kwargs): - """ - GetPixel(self) -> long - - Returns a pixel value which is platform-dependent. On Windows, a - COLORREF is returned. On X, an allocated pixel value is returned. - -1 is returned if the pixel is invalid (on X, unallocated). - """ - return _gdi.Colour_GetPixel(*args, **kwargs) - - def __eq__(*args, **kwargs): - """ - __eq__(self, Colour colour) -> bool - - Compare colours for equality - """ - return _gdi.Colour___eq__(*args, **kwargs) - - def __ne__(*args, **kwargs): - """ - __ne__(self, Colour colour) -> bool - - Compare colours for inequality - """ - return _gdi.Colour___ne__(*args, **kwargs) - - def Get(*args, **kwargs): - """ - Get() -> (r, g, b) - - Returns the RGB intensity values as a tuple. - """ - return _gdi.Colour_Get(*args, **kwargs) - - def GetRGB(*args, **kwargs): - """ - GetRGB(self) -> unsigned long - - Return the colour as a packed RGB value - """ - return _gdi.Colour_GetRGB(*args, **kwargs) - - asTuple = Get - def __str__(self): return str(self.asTuple()) - def __repr__(self): return 'wx.Colour' + str(self.asTuple()) - def __nonzero__(self): return self.Ok() - __safe_for_unpickling__ = True - def __reduce__(self): return (Colour, self.Get()) - - -class ColourPtr(Colour): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Colour -_gdi.Colour_swigregister(ColourPtr) - -def NamedColour(*args, **kwargs): - """ - NamedColour(String colorName) -> Colour - - Constructs a colour object using a colour name listed in wx.TheColourDatabase. - """ - val = _gdi.new_NamedColour(*args, **kwargs) - val.thisown = 1 - return val - -def ColourRGB(*args, **kwargs): - """ - ColourRGB(unsigned long colRGB) -> Colour - - Constructs a colour from a packed RGB value. - """ - val = _gdi.new_ColourRGB(*args, **kwargs) - val.thisown = 1 - return val - -Color = Colour -NamedColor = NamedColour -ColorRGB = ColourRGB - -class Palette(GDIObject): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPalette instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int n, unsigned char red, unsigned char green, unsigned char blue) -> Palette""" - newobj = _gdi.new_Palette(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_gdi.delete_Palette): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def GetPixel(*args, **kwargs): - """GetPixel(self, byte red, byte green, byte blue) -> int""" - return _gdi.Palette_GetPixel(*args, **kwargs) - - def GetRGB(*args, **kwargs): - """GetRGB(int pixel) -> (R,G,B)""" - return _gdi.Palette_GetRGB(*args, **kwargs) - - def Ok(*args, **kwargs): - """Ok(self) -> bool""" - return _gdi.Palette_Ok(*args, **kwargs) - - def __nonzero__(self): return self.Ok() - -class PalettePtr(Palette): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Palette -_gdi.Palette_swigregister(PalettePtr) - -#--------------------------------------------------------------------------- - -class Pen(GDIObject): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPen instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Colour colour, int width=1, int style=SOLID) -> Pen""" - newobj = _gdi.new_Pen(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_gdi.delete_Pen): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def GetCap(*args, **kwargs): - """GetCap(self) -> int""" - return _gdi.Pen_GetCap(*args, **kwargs) - - def GetColour(*args, **kwargs): - """GetColour(self) -> Colour""" - return _gdi.Pen_GetColour(*args, **kwargs) - - def GetJoin(*args, **kwargs): - """GetJoin(self) -> int""" - return _gdi.Pen_GetJoin(*args, **kwargs) - - def GetStyle(*args, **kwargs): - """GetStyle(self) -> int""" - return _gdi.Pen_GetStyle(*args, **kwargs) - - def GetWidth(*args, **kwargs): - """GetWidth(self) -> int""" - return _gdi.Pen_GetWidth(*args, **kwargs) - - def Ok(*args, **kwargs): - """Ok(self) -> bool""" - return _gdi.Pen_Ok(*args, **kwargs) - - def SetCap(*args, **kwargs): - """SetCap(self, int cap_style)""" - return _gdi.Pen_SetCap(*args, **kwargs) - - def SetColour(*args, **kwargs): - """SetColour(self, Colour colour)""" - return _gdi.Pen_SetColour(*args, **kwargs) - - def SetJoin(*args, **kwargs): - """SetJoin(self, int join_style)""" - return _gdi.Pen_SetJoin(*args, **kwargs) - - def SetStyle(*args, **kwargs): - """SetStyle(self, int style)""" - return _gdi.Pen_SetStyle(*args, **kwargs) - - def SetWidth(*args, **kwargs): - """SetWidth(self, int width)""" - return _gdi.Pen_SetWidth(*args, **kwargs) - - def SetDashes(*args, **kwargs): - """SetDashes(self, int dashes, wxDash dashes_array)""" - return _gdi.Pen_SetDashes(*args, **kwargs) - - def GetDashes(*args, **kwargs): - """GetDashes(self) -> PyObject""" - return _gdi.Pen_GetDashes(*args, **kwargs) - - def __eq__(*args, **kwargs): - """__eq__(self, Pen other) -> bool""" - return _gdi.Pen___eq__(*args, **kwargs) - - def __ne__(*args, **kwargs): - """__ne__(self, Pen other) -> bool""" - return _gdi.Pen___ne__(*args, **kwargs) - - def __nonzero__(self): return self.Ok() - -class PenPtr(Pen): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Pen -_gdi.Pen_swigregister(PenPtr) - -class PyPen(Pen): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyPen instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Colour colour, int width=1, int style=SOLID) -> PyPen""" - newobj = _gdi.new_PyPen(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_gdi.delete_PyPen): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def SetDashes(*args, **kwargs): - """SetDashes(self, int dashes, wxDash dashes_array)""" - return _gdi.PyPen_SetDashes(*args, **kwargs) - - -class PyPenPtr(PyPen): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PyPen -_gdi.PyPen_swigregister(PyPenPtr) - -Pen = PyPen -#--------------------------------------------------------------------------- - -class Brush(GDIObject): - """ - A brush is a drawing tool for filling in areas. It is used for painting the - background of rectangles, ellipses, etc. It has a colour and a style. - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxBrush instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Colour colour, int style=SOLID) -> Brush - - Constructs a brush from a colour object and style. - """ - newobj = _gdi.new_Brush(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_gdi.delete_Brush): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def SetColour(*args, **kwargs): - """SetColour(self, Colour col)""" - return _gdi.Brush_SetColour(*args, **kwargs) - - def SetStyle(*args, **kwargs): - """SetStyle(self, int style)""" - return _gdi.Brush_SetStyle(*args, **kwargs) - - def SetStipple(*args, **kwargs): - """SetStipple(self, Bitmap stipple)""" - return _gdi.Brush_SetStipple(*args, **kwargs) - - def GetColour(*args, **kwargs): - """GetColour(self) -> Colour""" - return _gdi.Brush_GetColour(*args, **kwargs) - - def GetStyle(*args, **kwargs): - """GetStyle(self) -> int""" - return _gdi.Brush_GetStyle(*args, **kwargs) - - def GetStipple(*args, **kwargs): - """GetStipple(self) -> Bitmap""" - return _gdi.Brush_GetStipple(*args, **kwargs) - - def Ok(*args, **kwargs): - """Ok(self) -> bool""" - return _gdi.Brush_Ok(*args, **kwargs) - - def MacGetTheme(*args, **kwargs): - """MacGetTheme(self) -> short""" - return _gdi.Brush_MacGetTheme(*args, **kwargs) - - def MacSetTheme(*args, **kwargs): - """MacSetTheme(self, short macThemeBrush)""" - return _gdi.Brush_MacSetTheme(*args, **kwargs) - - def __nonzero__(self): return self.Ok() - -class BrushPtr(Brush): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Brush -_gdi.Brush_swigregister(BrushPtr) - -class Bitmap(GDIObject): - def __repr__(self): - return "<%s.%s; proxy of C++ wxBitmap instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, String name, int type=BITMAP_TYPE_ANY) -> Bitmap - - Loads a bitmap from a file. - """ - newobj = _gdi.new_Bitmap(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_gdi.delete_Bitmap): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Ok(*args, **kwargs): - """Ok(self) -> bool""" - return _gdi.Bitmap_Ok(*args, **kwargs) - - def GetWidth(*args, **kwargs): - """ - GetWidth(self) -> int - - Gets the width of the bitmap in pixels. - """ - return _gdi.Bitmap_GetWidth(*args, **kwargs) - - def GetHeight(*args, **kwargs): - """ - GetHeight(self) -> int - - Gets the height of the bitmap in pixels. - """ - return _gdi.Bitmap_GetHeight(*args, **kwargs) - - def GetDepth(*args, **kwargs): - """ - GetDepth(self) -> int - - Gets the colour depth of the bitmap. A value of 1 indicates a - monochrome bitmap. - """ - return _gdi.Bitmap_GetDepth(*args, **kwargs) - - def GetSize(*args, **kwargs): - """ - GetSize(self) -> Size - - Get the size of the bitmap. - """ - return _gdi.Bitmap_GetSize(*args, **kwargs) - - def ConvertToImage(*args, **kwargs): - """ - ConvertToImage(self) -> Image - - Creates a platform-independent image from a platform-dependent bitmap. This - preserves mask information so that bitmaps and images can be converted back - and forth without loss in that respect. - """ - return _gdi.Bitmap_ConvertToImage(*args, **kwargs) - - def GetMask(*args, **kwargs): - """ - GetMask(self) -> Mask - - Gets the associated mask (if any) which may have been loaded from a file - or explpicitly set for the bitmap. - """ - return _gdi.Bitmap_GetMask(*args, **kwargs) - - def SetMask(*args, **kwargs): - """ - SetMask(self, Mask mask) - - Sets the mask for this bitmap. - """ - return _gdi.Bitmap_SetMask(*args, **kwargs) - - def SetMaskColour(*args, **kwargs): - """ - SetMaskColour(self, Colour colour) - - Create a Mask based on a specified colour in the Bitmap. - """ - return _gdi.Bitmap_SetMaskColour(*args, **kwargs) - - def GetSubBitmap(*args, **kwargs): - """ - GetSubBitmap(self, Rect rect) -> Bitmap - - Returns a sub bitmap of the current one as long as the rect belongs entirely - to the bitmap. This function preserves bit depth and mask information. - """ - return _gdi.Bitmap_GetSubBitmap(*args, **kwargs) - - def SaveFile(*args, **kwargs): - """ - SaveFile(self, String name, int type, Palette palette=(wxPalette *) NULL) -> bool - - Saves a bitmap in the named file. - """ - return _gdi.Bitmap_SaveFile(*args, **kwargs) - - def LoadFile(*args, **kwargs): - """ - LoadFile(self, String name, int type) -> bool - - Loads a bitmap from a file - """ - return _gdi.Bitmap_LoadFile(*args, **kwargs) - - def CopyFromIcon(*args, **kwargs): - """CopyFromIcon(self, Icon icon) -> bool""" - return _gdi.Bitmap_CopyFromIcon(*args, **kwargs) - - def SetHeight(*args, **kwargs): - """ - SetHeight(self, int height) - - Set the height property (does not affect the bitmap data). - """ - return _gdi.Bitmap_SetHeight(*args, **kwargs) - - def SetWidth(*args, **kwargs): - """ - SetWidth(self, int width) - - Set the width property (does not affect the bitmap data). - """ - return _gdi.Bitmap_SetWidth(*args, **kwargs) - - def SetDepth(*args, **kwargs): - """ - SetDepth(self, int depth) - - Set the depth property (does not affect the bitmap data). - """ - return _gdi.Bitmap_SetDepth(*args, **kwargs) - - def SetSize(*args, **kwargs): - """ - SetSize(self, Size size) - - Set the bitmap size - """ - return _gdi.Bitmap_SetSize(*args, **kwargs) - - def __nonzero__(self): return self.Ok() - def __eq__(*args, **kwargs): - """__eq__(self, Bitmap other) -> bool""" - return _gdi.Bitmap___eq__(*args, **kwargs) - - def __ne__(*args, **kwargs): - """__ne__(self, Bitmap other) -> bool""" - return _gdi.Bitmap___ne__(*args, **kwargs) - - -class BitmapPtr(Bitmap): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Bitmap -_gdi.Bitmap_swigregister(BitmapPtr) - -def BitmapFromIcon(*args, **kwargs): - """ - BitmapFromIcon(Icon icon) -> Bitmap - - Create a new bitmap from an Icon object. - """ - val = _gdi.new_BitmapFromIcon(*args, **kwargs) - val.thisown = 1 - return val - -def BitmapFromImage(*args, **kwargs): - """ - BitmapFromImage(Image image, int depth=-1) -> Bitmap - - Creates bitmap object from the image. This has to be done to actually display - an image as you cannot draw an image directly on a window. The resulting - bitmap will use the provided colour depth (or that of the current system if - depth is -1) which entails that a colour reduction has to take place. - """ - val = _gdi.new_BitmapFromImage(*args, **kwargs) - val.thisown = 1 - return val - -def BitmapFromXPMData(*args, **kwargs): - """ - BitmapFromXPMData(PyObject listOfStrings) -> Bitmap - - Construct a Bitmap from a list of strings formatted as XPM data. - """ - val = _gdi.new_BitmapFromXPMData(*args, **kwargs) - val.thisown = 1 - return val - -def BitmapFromBits(*args, **kwargs): - """ - BitmapFromBits(PyObject bits, int width, int height, int depth=1) -> Bitmap - - Creates a bitmap from an array of bits. You should only use this function for - monochrome bitmaps (depth 1) in portable programs: in this case the bits - parameter should contain an XBM image. For other bit depths, the behaviour is - platform dependent. - """ - val = _gdi.new_BitmapFromBits(*args, **kwargs) - val.thisown = 1 - return val - -def EmptyBitmap(*args): - """ - EmptyBitmap(int width, int height, int depth=-1) -> Bitmap - EmptyBitmap(Size size, int depth=-1) -> Bitmap - - Creates a new bitmap of the given size. A depth of -1 indicates - the depth of the current screen or visual. Some platforms only - support 1 for monochrome and -1 for the current colour setting. - """ - val = _gdi.new_EmptyBitmap(*args) - val.thisown = 1 - return val - -class Mask(core.Object): - """ - This class encapsulates a monochrome mask bitmap, where the masked area is - black and the unmasked area is white. When associated with a bitmap and drawn - in a device context, the unmasked area of the bitmap will be drawn, and the - masked area will not be drawn. - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxMask instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Bitmap bitmap, Colour colour=NullColour) -> Mask - - Constructs a mask from a bitmap and a colour in that bitmap that indicates - the transparent portions of the mask, by default BLACK is used. - """ - newobj = _gdi.new_Mask(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class MaskPtr(Mask): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Mask -_gdi.Mask_swigregister(MaskPtr) - -MaskColour = Mask -class Icon(GDIObject): - def __repr__(self): - return "<%s.%s; proxy of C++ wxIcon instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, String name, int type, int desiredWidth=-1, int desiredHeight=-1) -> Icon""" - newobj = _gdi.new_Icon(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_gdi.delete_Icon): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Ok(*args, **kwargs): - """Ok(self) -> bool""" - return _gdi.Icon_Ok(*args, **kwargs) - - def GetWidth(*args, **kwargs): - """GetWidth(self) -> int""" - return _gdi.Icon_GetWidth(*args, **kwargs) - - def GetHeight(*args, **kwargs): - """GetHeight(self) -> int""" - return _gdi.Icon_GetHeight(*args, **kwargs) - - def GetDepth(*args, **kwargs): - """GetDepth(self) -> int""" - return _gdi.Icon_GetDepth(*args, **kwargs) - - def SetWidth(*args, **kwargs): - """SetWidth(self, int w)""" - return _gdi.Icon_SetWidth(*args, **kwargs) - - def SetHeight(*args, **kwargs): - """SetHeight(self, int h)""" - return _gdi.Icon_SetHeight(*args, **kwargs) - - def SetDepth(*args, **kwargs): - """SetDepth(self, int d)""" - return _gdi.Icon_SetDepth(*args, **kwargs) - - def CopyFromBitmap(*args, **kwargs): - """CopyFromBitmap(self, Bitmap bmp)""" - return _gdi.Icon_CopyFromBitmap(*args, **kwargs) - - def __nonzero__(self): return self.Ok() - -class IconPtr(Icon): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Icon -_gdi.Icon_swigregister(IconPtr) - -def EmptyIcon(*args, **kwargs): - """EmptyIcon() -> Icon""" - val = _gdi.new_EmptyIcon(*args, **kwargs) - val.thisown = 1 - return val - -def IconFromLocation(*args, **kwargs): - """IconFromLocation(IconLocation loc) -> Icon""" - val = _gdi.new_IconFromLocation(*args, **kwargs) - val.thisown = 1 - return val - -def IconFromBitmap(*args, **kwargs): - """IconFromBitmap(Bitmap bmp) -> Icon""" - val = _gdi.new_IconFromBitmap(*args, **kwargs) - val.thisown = 1 - return val - -def IconFromXPMData(*args, **kwargs): - """IconFromXPMData(PyObject listOfStrings) -> Icon""" - val = _gdi.new_IconFromXPMData(*args, **kwargs) - val.thisown = 1 - return val - -class IconLocation(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxIconLocation instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, String filename=&wxPyEmptyString, int num=0) -> IconLocation""" - newobj = _gdi.new_IconLocation(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_gdi.delete_IconLocation): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def IsOk(*args, **kwargs): - """IsOk(self) -> bool""" - return _gdi.IconLocation_IsOk(*args, **kwargs) - - def __nonzero__(self): return self.Ok() - def SetFileName(*args, **kwargs): - """SetFileName(self, String filename)""" - return _gdi.IconLocation_SetFileName(*args, **kwargs) - - def GetFileName(*args, **kwargs): - """GetFileName(self) -> String""" - return _gdi.IconLocation_GetFileName(*args, **kwargs) - - def SetIndex(*args, **kwargs): - """SetIndex(self, int num)""" - return _gdi.IconLocation_SetIndex(*args, **kwargs) - - def GetIndex(*args, **kwargs): - """GetIndex(self) -> int""" - return _gdi.IconLocation_GetIndex(*args, **kwargs) - - -class IconLocationPtr(IconLocation): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = IconLocation -_gdi.IconLocation_swigregister(IconLocationPtr) - -class IconBundle(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxIconBundle instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> IconBundle""" - newobj = _gdi.new_IconBundle(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_gdi.delete_IconBundle): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def AddIcon(*args, **kwargs): - """AddIcon(self, Icon icon)""" - return _gdi.IconBundle_AddIcon(*args, **kwargs) - - def AddIconFromFile(*args, **kwargs): - """AddIconFromFile(self, String file, long type)""" - return _gdi.IconBundle_AddIconFromFile(*args, **kwargs) - - def GetIcon(*args, **kwargs): - """GetIcon(self, Size size) -> Icon""" - return _gdi.IconBundle_GetIcon(*args, **kwargs) - - -class IconBundlePtr(IconBundle): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = IconBundle -_gdi.IconBundle_swigregister(IconBundlePtr) - -def IconBundleFromFile(*args, **kwargs): - """IconBundleFromFile(String file, long type) -> IconBundle""" - val = _gdi.new_IconBundleFromFile(*args, **kwargs) - val.thisown = 1 - return val - -def IconBundleFromIcon(*args, **kwargs): - """IconBundleFromIcon(Icon icon) -> IconBundle""" - val = _gdi.new_IconBundleFromIcon(*args, **kwargs) - val.thisown = 1 - return val - -class Cursor(GDIObject): - """ - A cursor is a small bitmap usually used for denoting where the - mouse pointer is, with a picture that might indicate the - interpretation of a mouse click. - - A single cursor object may be used in many windows (any subwindow - type). The wxWindows convention is to set the cursor for a - window, as in X, rather than to set it globally as in MS Windows, - although a global wx.SetCursor function is also available for use - on MS Windows. - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxCursor instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, String cursorName, long type, int hotSpotX=0, int hotSpotY=0) -> Cursor - - Construct a Cursor from a file. Specify the type of file using - wx.BITAMP_TYPE* constants, and specify the hotspot if not using a - .cur file. - - This cursor is not available on wxGTK, use wx.StockCursor, - wx.CursorFromImage, or wx.CursorFromBits instead. - """ - newobj = _gdi.new_Cursor(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_gdi.delete_Cursor): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Ok(*args, **kwargs): - """Ok(self) -> bool""" - return _gdi.Cursor_Ok(*args, **kwargs) - - def __nonzero__(self): return self.Ok() - -class CursorPtr(Cursor): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Cursor -_gdi.Cursor_swigregister(CursorPtr) - -def StockCursor(*args, **kwargs): - """ - StockCursor(int id) -> Cursor - - Create a cursor using one of the stock cursors. Note that not - all cursors are available on all platforms. - """ - val = _gdi.new_StockCursor(*args, **kwargs) - val.thisown = 1 - return val - -def CursorFromImage(*args, **kwargs): - """ - CursorFromImage(Image image) -> Cursor - - Constructs a cursor from a wxImage. The cursor is monochrome, - colors with the RGB elements all greater than 127 will be - foreground, colors less than this background. The mask (if any) - will be used as transparent. - - In MSW the foreground will be white and the background black. The - cursor is resized to 32x32 In GTK, the two most frequent colors - will be used for foreground and background. The cursor will be - displayed at the size of the image. On MacOS the cursor is - resized to 16x16 and currently only shown as black/white (mask - respected). - """ - val = _gdi.new_CursorFromImage(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -OutRegion = _gdi.OutRegion -PartRegion = _gdi.PartRegion -InRegion = _gdi.InRegion -class Region(GDIObject): - def __repr__(self): - return "<%s.%s; proxy of C++ wxRegion instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int x=0, int y=0, int width=0, int height=0) -> Region""" - newobj = _gdi.new_Region(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_gdi.delete_Region): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Clear(*args, **kwargs): - """Clear(self)""" - return _gdi.Region_Clear(*args, **kwargs) - - def Contains(*args, **kwargs): - """Contains(self, int x, int y) -> int""" - return _gdi.Region_Contains(*args, **kwargs) - - def ContainsPoint(*args, **kwargs): - """ContainsPoint(self, Point pt) -> int""" - return _gdi.Region_ContainsPoint(*args, **kwargs) - - def ContainsRect(*args, **kwargs): - """ContainsRect(self, Rect rect) -> int""" - return _gdi.Region_ContainsRect(*args, **kwargs) - - def ContainsRectDim(*args, **kwargs): - """ContainsRectDim(self, int x, int y, int w, int h) -> int""" - return _gdi.Region_ContainsRectDim(*args, **kwargs) - - def GetBox(*args, **kwargs): - """GetBox(self) -> Rect""" - return _gdi.Region_GetBox(*args, **kwargs) - - def Intersect(*args, **kwargs): - """Intersect(self, int x, int y, int width, int height) -> bool""" - return _gdi.Region_Intersect(*args, **kwargs) - - def IntersectRect(*args, **kwargs): - """IntersectRect(self, Rect rect) -> bool""" - return _gdi.Region_IntersectRect(*args, **kwargs) - - def IntersectRegion(*args, **kwargs): - """IntersectRegion(self, Region region) -> bool""" - return _gdi.Region_IntersectRegion(*args, **kwargs) - - def IsEmpty(*args, **kwargs): - """IsEmpty(self) -> bool""" - return _gdi.Region_IsEmpty(*args, **kwargs) - - def Union(*args, **kwargs): - """Union(self, int x, int y, int width, int height) -> bool""" - return _gdi.Region_Union(*args, **kwargs) - - def UnionRect(*args, **kwargs): - """UnionRect(self, Rect rect) -> bool""" - return _gdi.Region_UnionRect(*args, **kwargs) - - def UnionRegion(*args, **kwargs): - """UnionRegion(self, Region region) -> bool""" - return _gdi.Region_UnionRegion(*args, **kwargs) - - def Subtract(*args, **kwargs): - """Subtract(self, int x, int y, int width, int height) -> bool""" - return _gdi.Region_Subtract(*args, **kwargs) - - def SubtractRect(*args, **kwargs): - """SubtractRect(self, Rect rect) -> bool""" - return _gdi.Region_SubtractRect(*args, **kwargs) - - def SubtractRegion(*args, **kwargs): - """SubtractRegion(self, Region region) -> bool""" - return _gdi.Region_SubtractRegion(*args, **kwargs) - - def Xor(*args, **kwargs): - """Xor(self, int x, int y, int width, int height) -> bool""" - return _gdi.Region_Xor(*args, **kwargs) - - def XorRect(*args, **kwargs): - """XorRect(self, Rect rect) -> bool""" - return _gdi.Region_XorRect(*args, **kwargs) - - def XorRegion(*args, **kwargs): - """XorRegion(self, Region region) -> bool""" - return _gdi.Region_XorRegion(*args, **kwargs) - - def ConvertToBitmap(*args, **kwargs): - """ConvertToBitmap(self) -> Bitmap""" - return _gdi.Region_ConvertToBitmap(*args, **kwargs) - - def UnionBitmap(*args, **kwargs): - """UnionBitmap(self, Bitmap bmp, Colour transColour=NullColour, int tolerance=0) -> bool""" - return _gdi.Region_UnionBitmap(*args, **kwargs) - - -class RegionPtr(Region): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Region -_gdi.Region_swigregister(RegionPtr) - -def RegionFromBitmap(*args, **kwargs): - """RegionFromBitmap(Bitmap bmp, Colour transColour=NullColour, int tolerance=0) -> Region""" - val = _gdi.new_RegionFromBitmap(*args, **kwargs) - val.thisown = 1 - return val - -def RegionFromPoints(*args, **kwargs): - """RegionFromPoints(int points, Point points_array, int fillStyle=WINDING_RULE) -> Region""" - val = _gdi.new_RegionFromPoints(*args, **kwargs) - val.thisown = 1 - return val - -class RegionIterator(core.Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxRegionIterator instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Region region) -> RegionIterator""" - newobj = _gdi.new_RegionIterator(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_gdi.delete_RegionIterator): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def GetX(*args, **kwargs): - """GetX(self) -> int""" - return _gdi.RegionIterator_GetX(*args, **kwargs) - - def GetY(*args, **kwargs): - """GetY(self) -> int""" - return _gdi.RegionIterator_GetY(*args, **kwargs) - - def GetW(*args, **kwargs): - """GetW(self) -> int""" - return _gdi.RegionIterator_GetW(*args, **kwargs) - - def GetWidth(*args, **kwargs): - """GetWidth(self) -> int""" - return _gdi.RegionIterator_GetWidth(*args, **kwargs) - - def GetH(*args, **kwargs): - """GetH(self) -> int""" - return _gdi.RegionIterator_GetH(*args, **kwargs) - - def GetHeight(*args, **kwargs): - """GetHeight(self) -> int""" - return _gdi.RegionIterator_GetHeight(*args, **kwargs) - - def GetRect(*args, **kwargs): - """GetRect(self) -> Rect""" - return _gdi.RegionIterator_GetRect(*args, **kwargs) - - def HaveRects(*args, **kwargs): - """HaveRects(self) -> bool""" - return _gdi.RegionIterator_HaveRects(*args, **kwargs) - - def Reset(*args, **kwargs): - """Reset(self)""" - return _gdi.RegionIterator_Reset(*args, **kwargs) - - def Next(*args, **kwargs): - """Next(self)""" - return _gdi.RegionIterator_Next(*args, **kwargs) - - def __nonzero__(*args, **kwargs): - """__nonzero__(self) -> bool""" - return _gdi.RegionIterator___nonzero__(*args, **kwargs) - - -class RegionIteratorPtr(RegionIterator): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = RegionIterator -_gdi.RegionIterator_swigregister(RegionIteratorPtr) - -#--------------------------------------------------------------------------- - -FONTFAMILY_DEFAULT = _gdi.FONTFAMILY_DEFAULT -FONTFAMILY_DECORATIVE = _gdi.FONTFAMILY_DECORATIVE -FONTFAMILY_ROMAN = _gdi.FONTFAMILY_ROMAN -FONTFAMILY_SCRIPT = _gdi.FONTFAMILY_SCRIPT -FONTFAMILY_SWISS = _gdi.FONTFAMILY_SWISS -FONTFAMILY_MODERN = _gdi.FONTFAMILY_MODERN -FONTFAMILY_TELETYPE = _gdi.FONTFAMILY_TELETYPE -FONTFAMILY_MAX = _gdi.FONTFAMILY_MAX -FONTFAMILY_UNKNOWN = _gdi.FONTFAMILY_UNKNOWN -FONTSTYLE_NORMAL = _gdi.FONTSTYLE_NORMAL -FONTSTYLE_ITALIC = _gdi.FONTSTYLE_ITALIC -FONTSTYLE_SLANT = _gdi.FONTSTYLE_SLANT -FONTSTYLE_MAX = _gdi.FONTSTYLE_MAX -FONTWEIGHT_NORMAL = _gdi.FONTWEIGHT_NORMAL -FONTWEIGHT_LIGHT = _gdi.FONTWEIGHT_LIGHT -FONTWEIGHT_BOLD = _gdi.FONTWEIGHT_BOLD -FONTWEIGHT_MAX = _gdi.FONTWEIGHT_MAX -FONTFLAG_DEFAULT = _gdi.FONTFLAG_DEFAULT -FONTFLAG_ITALIC = _gdi.FONTFLAG_ITALIC -FONTFLAG_SLANT = _gdi.FONTFLAG_SLANT -FONTFLAG_LIGHT = _gdi.FONTFLAG_LIGHT -FONTFLAG_BOLD = _gdi.FONTFLAG_BOLD -FONTFLAG_ANTIALIASED = _gdi.FONTFLAG_ANTIALIASED -FONTFLAG_NOT_ANTIALIASED = _gdi.FONTFLAG_NOT_ANTIALIASED -FONTFLAG_UNDERLINED = _gdi.FONTFLAG_UNDERLINED -FONTFLAG_STRIKETHROUGH = _gdi.FONTFLAG_STRIKETHROUGH -FONTFLAG_MASK = _gdi.FONTFLAG_MASK -FONTENCODING_SYSTEM = _gdi.FONTENCODING_SYSTEM -FONTENCODING_DEFAULT = _gdi.FONTENCODING_DEFAULT -FONTENCODING_ISO8859_1 = _gdi.FONTENCODING_ISO8859_1 -FONTENCODING_ISO8859_2 = _gdi.FONTENCODING_ISO8859_2 -FONTENCODING_ISO8859_3 = _gdi.FONTENCODING_ISO8859_3 -FONTENCODING_ISO8859_4 = _gdi.FONTENCODING_ISO8859_4 -FONTENCODING_ISO8859_5 = _gdi.FONTENCODING_ISO8859_5 -FONTENCODING_ISO8859_6 = _gdi.FONTENCODING_ISO8859_6 -FONTENCODING_ISO8859_7 = _gdi.FONTENCODING_ISO8859_7 -FONTENCODING_ISO8859_8 = _gdi.FONTENCODING_ISO8859_8 -FONTENCODING_ISO8859_9 = _gdi.FONTENCODING_ISO8859_9 -FONTENCODING_ISO8859_10 = _gdi.FONTENCODING_ISO8859_10 -FONTENCODING_ISO8859_11 = _gdi.FONTENCODING_ISO8859_11 -FONTENCODING_ISO8859_12 = _gdi.FONTENCODING_ISO8859_12 -FONTENCODING_ISO8859_13 = _gdi.FONTENCODING_ISO8859_13 -FONTENCODING_ISO8859_14 = _gdi.FONTENCODING_ISO8859_14 -FONTENCODING_ISO8859_15 = _gdi.FONTENCODING_ISO8859_15 -FONTENCODING_ISO8859_MAX = _gdi.FONTENCODING_ISO8859_MAX -FONTENCODING_KOI8 = _gdi.FONTENCODING_KOI8 -FONTENCODING_KOI8_U = _gdi.FONTENCODING_KOI8_U -FONTENCODING_ALTERNATIVE = _gdi.FONTENCODING_ALTERNATIVE -FONTENCODING_BULGARIAN = _gdi.FONTENCODING_BULGARIAN -FONTENCODING_CP437 = _gdi.FONTENCODING_CP437 -FONTENCODING_CP850 = _gdi.FONTENCODING_CP850 -FONTENCODING_CP852 = _gdi.FONTENCODING_CP852 -FONTENCODING_CP855 = _gdi.FONTENCODING_CP855 -FONTENCODING_CP866 = _gdi.FONTENCODING_CP866 -FONTENCODING_CP874 = _gdi.FONTENCODING_CP874 -FONTENCODING_CP932 = _gdi.FONTENCODING_CP932 -FONTENCODING_CP936 = _gdi.FONTENCODING_CP936 -FONTENCODING_CP949 = _gdi.FONTENCODING_CP949 -FONTENCODING_CP950 = _gdi.FONTENCODING_CP950 -FONTENCODING_CP1250 = _gdi.FONTENCODING_CP1250 -FONTENCODING_CP1251 = _gdi.FONTENCODING_CP1251 -FONTENCODING_CP1252 = _gdi.FONTENCODING_CP1252 -FONTENCODING_CP1253 = _gdi.FONTENCODING_CP1253 -FONTENCODING_CP1254 = _gdi.FONTENCODING_CP1254 -FONTENCODING_CP1255 = _gdi.FONTENCODING_CP1255 -FONTENCODING_CP1256 = _gdi.FONTENCODING_CP1256 -FONTENCODING_CP1257 = _gdi.FONTENCODING_CP1257 -FONTENCODING_CP12_MAX = _gdi.FONTENCODING_CP12_MAX -FONTENCODING_UTF7 = _gdi.FONTENCODING_UTF7 -FONTENCODING_UTF8 = _gdi.FONTENCODING_UTF8 -FONTENCODING_EUC_JP = _gdi.FONTENCODING_EUC_JP -FONTENCODING_UTF16BE = _gdi.FONTENCODING_UTF16BE -FONTENCODING_UTF16LE = _gdi.FONTENCODING_UTF16LE -FONTENCODING_UTF32BE = _gdi.FONTENCODING_UTF32BE -FONTENCODING_UTF32LE = _gdi.FONTENCODING_UTF32LE -FONTENCODING_MACROMAN = _gdi.FONTENCODING_MACROMAN -FONTENCODING_MACJAPANESE = _gdi.FONTENCODING_MACJAPANESE -FONTENCODING_MACCHINESETRAD = _gdi.FONTENCODING_MACCHINESETRAD -FONTENCODING_MACKOREAN = _gdi.FONTENCODING_MACKOREAN -FONTENCODING_MACARABIC = _gdi.FONTENCODING_MACARABIC -FONTENCODING_MACHEBREW = _gdi.FONTENCODING_MACHEBREW -FONTENCODING_MACGREEK = _gdi.FONTENCODING_MACGREEK -FONTENCODING_MACCYRILLIC = _gdi.FONTENCODING_MACCYRILLIC -FONTENCODING_MACDEVANAGARI = _gdi.FONTENCODING_MACDEVANAGARI -FONTENCODING_MACGURMUKHI = _gdi.FONTENCODING_MACGURMUKHI -FONTENCODING_MACGUJARATI = _gdi.FONTENCODING_MACGUJARATI -FONTENCODING_MACORIYA = _gdi.FONTENCODING_MACORIYA -FONTENCODING_MACBENGALI = _gdi.FONTENCODING_MACBENGALI -FONTENCODING_MACTAMIL = _gdi.FONTENCODING_MACTAMIL -FONTENCODING_MACTELUGU = _gdi.FONTENCODING_MACTELUGU -FONTENCODING_MACKANNADA = _gdi.FONTENCODING_MACKANNADA -FONTENCODING_MACMALAJALAM = _gdi.FONTENCODING_MACMALAJALAM -FONTENCODING_MACSINHALESE = _gdi.FONTENCODING_MACSINHALESE -FONTENCODING_MACBURMESE = _gdi.FONTENCODING_MACBURMESE -FONTENCODING_MACKHMER = _gdi.FONTENCODING_MACKHMER -FONTENCODING_MACTHAI = _gdi.FONTENCODING_MACTHAI -FONTENCODING_MACLAOTIAN = _gdi.FONTENCODING_MACLAOTIAN -FONTENCODING_MACGEORGIAN = _gdi.FONTENCODING_MACGEORGIAN -FONTENCODING_MACARMENIAN = _gdi.FONTENCODING_MACARMENIAN -FONTENCODING_MACCHINESESIMP = _gdi.FONTENCODING_MACCHINESESIMP -FONTENCODING_MACTIBETAN = _gdi.FONTENCODING_MACTIBETAN -FONTENCODING_MACMONGOLIAN = _gdi.FONTENCODING_MACMONGOLIAN -FONTENCODING_MACETHIOPIC = _gdi.FONTENCODING_MACETHIOPIC -FONTENCODING_MACCENTRALEUR = _gdi.FONTENCODING_MACCENTRALEUR -FONTENCODING_MACVIATNAMESE = _gdi.FONTENCODING_MACVIATNAMESE -FONTENCODING_MACARABICEXT = _gdi.FONTENCODING_MACARABICEXT -FONTENCODING_MACSYMBOL = _gdi.FONTENCODING_MACSYMBOL -FONTENCODING_MACDINGBATS = _gdi.FONTENCODING_MACDINGBATS -FONTENCODING_MACTURKISH = _gdi.FONTENCODING_MACTURKISH -FONTENCODING_MACCROATIAN = _gdi.FONTENCODING_MACCROATIAN -FONTENCODING_MACICELANDIC = _gdi.FONTENCODING_MACICELANDIC -FONTENCODING_MACROMANIAN = _gdi.FONTENCODING_MACROMANIAN -FONTENCODING_MACCELTIC = _gdi.FONTENCODING_MACCELTIC -FONTENCODING_MACGAELIC = _gdi.FONTENCODING_MACGAELIC -FONTENCODING_MACKEYBOARD = _gdi.FONTENCODING_MACKEYBOARD -FONTENCODING_MACMIN = _gdi.FONTENCODING_MACMIN -FONTENCODING_MACMAX = _gdi.FONTENCODING_MACMAX -FONTENCODING_MAX = _gdi.FONTENCODING_MAX -FONTENCODING_UTF16 = _gdi.FONTENCODING_UTF16 -FONTENCODING_UTF32 = _gdi.FONTENCODING_UTF32 -FONTENCODING_UNICODE = _gdi.FONTENCODING_UNICODE -FONTENCODING_GB2312 = _gdi.FONTENCODING_GB2312 -FONTENCODING_BIG5 = _gdi.FONTENCODING_BIG5 -FONTENCODING_SHIFT_JIS = _gdi.FONTENCODING_SHIFT_JIS -#--------------------------------------------------------------------------- - -class NativeFontInfo(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxNativeFontInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> NativeFontInfo""" - newobj = _gdi.new_NativeFontInfo(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_gdi.delete_NativeFontInfo): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Init(*args, **kwargs): - """Init(self)""" - return _gdi.NativeFontInfo_Init(*args, **kwargs) - - def InitFromFont(*args, **kwargs): - """InitFromFont(self, Font font)""" - return _gdi.NativeFontInfo_InitFromFont(*args, **kwargs) - - def GetPointSize(*args, **kwargs): - """GetPointSize(self) -> int""" - return _gdi.NativeFontInfo_GetPointSize(*args, **kwargs) - - def GetStyle(*args, **kwargs): - """GetStyle(self) -> int""" - return _gdi.NativeFontInfo_GetStyle(*args, **kwargs) - - def GetWeight(*args, **kwargs): - """GetWeight(self) -> int""" - return _gdi.NativeFontInfo_GetWeight(*args, **kwargs) - - def GetUnderlined(*args, **kwargs): - """GetUnderlined(self) -> bool""" - return _gdi.NativeFontInfo_GetUnderlined(*args, **kwargs) - - def GetFaceName(*args, **kwargs): - """GetFaceName(self) -> String""" - return _gdi.NativeFontInfo_GetFaceName(*args, **kwargs) - - def GetFamily(*args, **kwargs): - """GetFamily(self) -> int""" - return _gdi.NativeFontInfo_GetFamily(*args, **kwargs) - - def GetEncoding(*args, **kwargs): - """GetEncoding(self) -> int""" - return _gdi.NativeFontInfo_GetEncoding(*args, **kwargs) - - def SetPointSize(*args, **kwargs): - """SetPointSize(self, int pointsize)""" - return _gdi.NativeFontInfo_SetPointSize(*args, **kwargs) - - def SetStyle(*args, **kwargs): - """SetStyle(self, int style)""" - return _gdi.NativeFontInfo_SetStyle(*args, **kwargs) - - def SetWeight(*args, **kwargs): - """SetWeight(self, int weight)""" - return _gdi.NativeFontInfo_SetWeight(*args, **kwargs) - - def SetUnderlined(*args, **kwargs): - """SetUnderlined(self, bool underlined)""" - return _gdi.NativeFontInfo_SetUnderlined(*args, **kwargs) - - def SetFaceName(*args, **kwargs): - """SetFaceName(self, String facename)""" - return _gdi.NativeFontInfo_SetFaceName(*args, **kwargs) - - def SetFamily(*args, **kwargs): - """SetFamily(self, int family)""" - return _gdi.NativeFontInfo_SetFamily(*args, **kwargs) - - def SetEncoding(*args, **kwargs): - """SetEncoding(self, int encoding)""" - return _gdi.NativeFontInfo_SetEncoding(*args, **kwargs) - - def FromString(*args, **kwargs): - """FromString(self, String s) -> bool""" - return _gdi.NativeFontInfo_FromString(*args, **kwargs) - - def ToString(*args, **kwargs): - """ToString(self) -> String""" - return _gdi.NativeFontInfo_ToString(*args, **kwargs) - - def __str__(*args, **kwargs): - """__str__(self) -> String""" - return _gdi.NativeFontInfo___str__(*args, **kwargs) - - def FromUserString(*args, **kwargs): - """FromUserString(self, String s) -> bool""" - return _gdi.NativeFontInfo_FromUserString(*args, **kwargs) - - def ToUserString(*args, **kwargs): - """ToUserString(self) -> String""" - return _gdi.NativeFontInfo_ToUserString(*args, **kwargs) - - -class NativeFontInfoPtr(NativeFontInfo): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = NativeFontInfo -_gdi.NativeFontInfo_swigregister(NativeFontInfoPtr) - -class NativeEncodingInfo(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxNativeEncodingInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - facename = property(_gdi.NativeEncodingInfo_facename_get, _gdi.NativeEncodingInfo_facename_set) - encoding = property(_gdi.NativeEncodingInfo_encoding_get, _gdi.NativeEncodingInfo_encoding_set) - def __init__(self, *args, **kwargs): - """__init__(self) -> NativeEncodingInfo""" - newobj = _gdi.new_NativeEncodingInfo(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_gdi.delete_NativeEncodingInfo): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def FromString(*args, **kwargs): - """FromString(self, String s) -> bool""" - return _gdi.NativeEncodingInfo_FromString(*args, **kwargs) - - def ToString(*args, **kwargs): - """ToString(self) -> String""" - return _gdi.NativeEncodingInfo_ToString(*args, **kwargs) - - -class NativeEncodingInfoPtr(NativeEncodingInfo): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = NativeEncodingInfo -_gdi.NativeEncodingInfo_swigregister(NativeEncodingInfoPtr) - - -def GetNativeFontEncoding(*args, **kwargs): - """GetNativeFontEncoding(int encoding) -> NativeEncodingInfo""" - return _gdi.GetNativeFontEncoding(*args, **kwargs) - -def TestFontEncoding(*args, **kwargs): - """TestFontEncoding(NativeEncodingInfo info) -> bool""" - return _gdi.TestFontEncoding(*args, **kwargs) -#--------------------------------------------------------------------------- - -class FontMapper(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxFontMapper instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> FontMapper""" - newobj = _gdi.new_FontMapper(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_gdi.delete_FontMapper): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Get(*args, **kwargs): - """FontMapper.Get() -> FontMapper""" - return _gdi.FontMapper_Get(*args, **kwargs) - - Get = staticmethod(Get) - def Set(*args, **kwargs): - """FontMapper.Set(FontMapper mapper) -> FontMapper""" - return _gdi.FontMapper_Set(*args, **kwargs) - - Set = staticmethod(Set) - def CharsetToEncoding(*args, **kwargs): - """CharsetToEncoding(self, String charset, bool interactive=True) -> int""" - return _gdi.FontMapper_CharsetToEncoding(*args, **kwargs) - - def GetSupportedEncodingsCount(*args, **kwargs): - """FontMapper.GetSupportedEncodingsCount() -> size_t""" - return _gdi.FontMapper_GetSupportedEncodingsCount(*args, **kwargs) - - GetSupportedEncodingsCount = staticmethod(GetSupportedEncodingsCount) - def GetEncoding(*args, **kwargs): - """FontMapper.GetEncoding(size_t n) -> int""" - return _gdi.FontMapper_GetEncoding(*args, **kwargs) - - GetEncoding = staticmethod(GetEncoding) - def GetEncodingName(*args, **kwargs): - """FontMapper.GetEncodingName(int encoding) -> String""" - return _gdi.FontMapper_GetEncodingName(*args, **kwargs) - - GetEncodingName = staticmethod(GetEncodingName) - def GetEncodingDescription(*args, **kwargs): - """FontMapper.GetEncodingDescription(int encoding) -> String""" - return _gdi.FontMapper_GetEncodingDescription(*args, **kwargs) - - GetEncodingDescription = staticmethod(GetEncodingDescription) - def GetEncodingFromName(*args, **kwargs): - """FontMapper.GetEncodingFromName(String name) -> int""" - return _gdi.FontMapper_GetEncodingFromName(*args, **kwargs) - - GetEncodingFromName = staticmethod(GetEncodingFromName) - def SetConfig(*args, **kwargs): - """SetConfig(self, ConfigBase config)""" - return _gdi.FontMapper_SetConfig(*args, **kwargs) - - def SetConfigPath(*args, **kwargs): - """SetConfigPath(self, String prefix)""" - return _gdi.FontMapper_SetConfigPath(*args, **kwargs) - - def GetDefaultConfigPath(*args, **kwargs): - """FontMapper.GetDefaultConfigPath() -> String""" - return _gdi.FontMapper_GetDefaultConfigPath(*args, **kwargs) - - GetDefaultConfigPath = staticmethod(GetDefaultConfigPath) - def GetAltForEncoding(*args, **kwargs): - """GetAltForEncoding(self, int encoding, String facename=EmptyString, bool interactive=True) -> PyObject""" - return _gdi.FontMapper_GetAltForEncoding(*args, **kwargs) - - def IsEncodingAvailable(*args, **kwargs): - """IsEncodingAvailable(self, int encoding, String facename=EmptyString) -> bool""" - return _gdi.FontMapper_IsEncodingAvailable(*args, **kwargs) - - def SetDialogParent(*args, **kwargs): - """SetDialogParent(self, Window parent)""" - return _gdi.FontMapper_SetDialogParent(*args, **kwargs) - - def SetDialogTitle(*args, **kwargs): - """SetDialogTitle(self, String title)""" - return _gdi.FontMapper_SetDialogTitle(*args, **kwargs) - - -class FontMapperPtr(FontMapper): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = FontMapper -_gdi.FontMapper_swigregister(FontMapperPtr) - -def FontMapper_Get(*args, **kwargs): - """FontMapper_Get() -> FontMapper""" - return _gdi.FontMapper_Get(*args, **kwargs) - -def FontMapper_Set(*args, **kwargs): - """FontMapper_Set(FontMapper mapper) -> FontMapper""" - return _gdi.FontMapper_Set(*args, **kwargs) - -def FontMapper_GetSupportedEncodingsCount(*args, **kwargs): - """FontMapper_GetSupportedEncodingsCount() -> size_t""" - return _gdi.FontMapper_GetSupportedEncodingsCount(*args, **kwargs) - -def FontMapper_GetEncoding(*args, **kwargs): - """FontMapper_GetEncoding(size_t n) -> int""" - return _gdi.FontMapper_GetEncoding(*args, **kwargs) - -def FontMapper_GetEncodingName(*args, **kwargs): - """FontMapper_GetEncodingName(int encoding) -> String""" - return _gdi.FontMapper_GetEncodingName(*args, **kwargs) - -def FontMapper_GetEncodingDescription(*args, **kwargs): - """FontMapper_GetEncodingDescription(int encoding) -> String""" - return _gdi.FontMapper_GetEncodingDescription(*args, **kwargs) - -def FontMapper_GetEncodingFromName(*args, **kwargs): - """FontMapper_GetEncodingFromName(String name) -> int""" - return _gdi.FontMapper_GetEncodingFromName(*args, **kwargs) - -def FontMapper_GetDefaultConfigPath(*args, **kwargs): - """FontMapper_GetDefaultConfigPath() -> String""" - return _gdi.FontMapper_GetDefaultConfigPath(*args, **kwargs) - -#--------------------------------------------------------------------------- - -class Font(GDIObject): - def __repr__(self): - return "<%s.%s; proxy of C++ wxFont instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, int pointSize, int family, int style, int weight, bool underline=False, - String face=EmptyString, - int encoding=FONTENCODING_DEFAULT) -> Font - """ - newobj = _gdi.new_Font(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_gdi.delete_Font): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Ok(*args, **kwargs): - """Ok(self) -> bool""" - return _gdi.Font_Ok(*args, **kwargs) - - def __nonzero__(self): return self.Ok() - def __eq__(*args, **kwargs): - """__eq__(self, Font other) -> bool""" - return _gdi.Font___eq__(*args, **kwargs) - - def __ne__(*args, **kwargs): - """__ne__(self, Font other) -> bool""" - return _gdi.Font___ne__(*args, **kwargs) - - def GetPointSize(*args, **kwargs): - """GetPointSize(self) -> int""" - return _gdi.Font_GetPointSize(*args, **kwargs) - - def GetFamily(*args, **kwargs): - """GetFamily(self) -> int""" - return _gdi.Font_GetFamily(*args, **kwargs) - - def GetStyle(*args, **kwargs): - """GetStyle(self) -> int""" - return _gdi.Font_GetStyle(*args, **kwargs) - - def GetWeight(*args, **kwargs): - """GetWeight(self) -> int""" - return _gdi.Font_GetWeight(*args, **kwargs) - - def GetUnderlined(*args, **kwargs): - """GetUnderlined(self) -> bool""" - return _gdi.Font_GetUnderlined(*args, **kwargs) - - def GetFaceName(*args, **kwargs): - """GetFaceName(self) -> String""" - return _gdi.Font_GetFaceName(*args, **kwargs) - - def GetEncoding(*args, **kwargs): - """GetEncoding(self) -> int""" - return _gdi.Font_GetEncoding(*args, **kwargs) - - def GetNativeFontInfo(*args, **kwargs): - """GetNativeFontInfo(self) -> NativeFontInfo""" - return _gdi.Font_GetNativeFontInfo(*args, **kwargs) - - def IsFixedWidth(*args, **kwargs): - """IsFixedWidth(self) -> bool""" - return _gdi.Font_IsFixedWidth(*args, **kwargs) - - def GetNativeFontInfoDesc(*args, **kwargs): - """GetNativeFontInfoDesc(self) -> String""" - return _gdi.Font_GetNativeFontInfoDesc(*args, **kwargs) - - def GetNativeFontInfoUserDesc(*args, **kwargs): - """GetNativeFontInfoUserDesc(self) -> String""" - return _gdi.Font_GetNativeFontInfoUserDesc(*args, **kwargs) - - def SetPointSize(*args, **kwargs): - """SetPointSize(self, int pointSize)""" - return _gdi.Font_SetPointSize(*args, **kwargs) - - def SetFamily(*args, **kwargs): - """SetFamily(self, int family)""" - return _gdi.Font_SetFamily(*args, **kwargs) - - def SetStyle(*args, **kwargs): - """SetStyle(self, int style)""" - return _gdi.Font_SetStyle(*args, **kwargs) - - def SetWeight(*args, **kwargs): - """SetWeight(self, int weight)""" - return _gdi.Font_SetWeight(*args, **kwargs) - - def SetFaceName(*args, **kwargs): - """SetFaceName(self, String faceName)""" - return _gdi.Font_SetFaceName(*args, **kwargs) - - def SetUnderlined(*args, **kwargs): - """SetUnderlined(self, bool underlined)""" - return _gdi.Font_SetUnderlined(*args, **kwargs) - - def SetEncoding(*args, **kwargs): - """SetEncoding(self, int encoding)""" - return _gdi.Font_SetEncoding(*args, **kwargs) - - def SetNativeFontInfo(*args, **kwargs): - """SetNativeFontInfo(self, NativeFontInfo info)""" - return _gdi.Font_SetNativeFontInfo(*args, **kwargs) - - def SetNativeFontInfoFromString(*args, **kwargs): - """SetNativeFontInfoFromString(self, String info)""" - return _gdi.Font_SetNativeFontInfoFromString(*args, **kwargs) - - def SetNativeFontInfoUserDesc(*args, **kwargs): - """SetNativeFontInfoUserDesc(self, String info)""" - return _gdi.Font_SetNativeFontInfoUserDesc(*args, **kwargs) - - def GetFamilyString(*args, **kwargs): - """GetFamilyString(self) -> String""" - return _gdi.Font_GetFamilyString(*args, **kwargs) - - def GetStyleString(*args, **kwargs): - """GetStyleString(self) -> String""" - return _gdi.Font_GetStyleString(*args, **kwargs) - - def GetWeightString(*args, **kwargs): - """GetWeightString(self) -> String""" - return _gdi.Font_GetWeightString(*args, **kwargs) - - def SetNoAntiAliasing(*args, **kwargs): - """SetNoAntiAliasing(self, bool no=True)""" - return _gdi.Font_SetNoAntiAliasing(*args, **kwargs) - - def GetNoAntiAliasing(*args, **kwargs): - """GetNoAntiAliasing(self) -> bool""" - return _gdi.Font_GetNoAntiAliasing(*args, **kwargs) - - def GetDefaultEncoding(*args, **kwargs): - """Font.GetDefaultEncoding() -> int""" - return _gdi.Font_GetDefaultEncoding(*args, **kwargs) - - GetDefaultEncoding = staticmethod(GetDefaultEncoding) - def SetDefaultEncoding(*args, **kwargs): - """Font.SetDefaultEncoding(int encoding)""" - return _gdi.Font_SetDefaultEncoding(*args, **kwargs) - - SetDefaultEncoding = staticmethod(SetDefaultEncoding) - -class FontPtr(Font): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Font -_gdi.Font_swigregister(FontPtr) - -def FontFromNativeInfo(*args, **kwargs): - """FontFromNativeInfo(NativeFontInfo info) -> Font""" - val = _gdi.new_FontFromNativeInfo(*args, **kwargs) - val.thisown = 1 - return val - -def FontFromNativeInfoString(*args, **kwargs): - """FontFromNativeInfoString(String info) -> Font""" - val = _gdi.new_FontFromNativeInfoString(*args, **kwargs) - val.thisown = 1 - return val - -def Font2(*args, **kwargs): - """ - Font2(int pointSize, int family, int flags=FONTFLAG_DEFAULT, - String face=EmptyString, int encoding=FONTENCODING_DEFAULT) -> Font - """ - val = _gdi.new_Font2(*args, **kwargs) - val.thisown = 1 - return val - -def Font_GetDefaultEncoding(*args, **kwargs): - """Font_GetDefaultEncoding() -> int""" - return _gdi.Font_GetDefaultEncoding(*args, **kwargs) - -def Font_SetDefaultEncoding(*args, **kwargs): - """Font_SetDefaultEncoding(int encoding)""" - return _gdi.Font_SetDefaultEncoding(*args, **kwargs) - -#--------------------------------------------------------------------------- - -class FontEnumerator(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyFontEnumerator instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> FontEnumerator""" - newobj = _gdi.new_FontEnumerator(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setCallbackInfo(self, FontEnumerator, 0) - - def __del__(self, destroy=_gdi.delete_FontEnumerator): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class, bool incref)""" - return _gdi.FontEnumerator__setCallbackInfo(*args, **kwargs) - - def EnumerateFacenames(*args, **kwargs): - """EnumerateFacenames(self, int encoding=FONTENCODING_SYSTEM, bool fixedWidthOnly=False) -> bool""" - return _gdi.FontEnumerator_EnumerateFacenames(*args, **kwargs) - - def EnumerateEncodings(*args, **kwargs): - """EnumerateEncodings(self, String facename=EmptyString) -> bool""" - return _gdi.FontEnumerator_EnumerateEncodings(*args, **kwargs) - - def GetEncodings(*args, **kwargs): - """GetEncodings(self) -> PyObject""" - return _gdi.FontEnumerator_GetEncodings(*args, **kwargs) - - def GetFacenames(*args, **kwargs): - """GetFacenames(self) -> PyObject""" - return _gdi.FontEnumerator_GetFacenames(*args, **kwargs) - - -class FontEnumeratorPtr(FontEnumerator): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = FontEnumerator -_gdi.FontEnumerator_swigregister(FontEnumeratorPtr) - -#--------------------------------------------------------------------------- - -LANGUAGE_DEFAULT = _gdi.LANGUAGE_DEFAULT -LANGUAGE_UNKNOWN = _gdi.LANGUAGE_UNKNOWN -LANGUAGE_ABKHAZIAN = _gdi.LANGUAGE_ABKHAZIAN -LANGUAGE_AFAR = _gdi.LANGUAGE_AFAR -LANGUAGE_AFRIKAANS = _gdi.LANGUAGE_AFRIKAANS -LANGUAGE_ALBANIAN = _gdi.LANGUAGE_ALBANIAN -LANGUAGE_AMHARIC = _gdi.LANGUAGE_AMHARIC -LANGUAGE_ARABIC = _gdi.LANGUAGE_ARABIC -LANGUAGE_ARABIC_ALGERIA = _gdi.LANGUAGE_ARABIC_ALGERIA -LANGUAGE_ARABIC_BAHRAIN = _gdi.LANGUAGE_ARABIC_BAHRAIN -LANGUAGE_ARABIC_EGYPT = _gdi.LANGUAGE_ARABIC_EGYPT -LANGUAGE_ARABIC_IRAQ = _gdi.LANGUAGE_ARABIC_IRAQ -LANGUAGE_ARABIC_JORDAN = _gdi.LANGUAGE_ARABIC_JORDAN -LANGUAGE_ARABIC_KUWAIT = _gdi.LANGUAGE_ARABIC_KUWAIT -LANGUAGE_ARABIC_LEBANON = _gdi.LANGUAGE_ARABIC_LEBANON -LANGUAGE_ARABIC_LIBYA = _gdi.LANGUAGE_ARABIC_LIBYA -LANGUAGE_ARABIC_MOROCCO = _gdi.LANGUAGE_ARABIC_MOROCCO -LANGUAGE_ARABIC_OMAN = _gdi.LANGUAGE_ARABIC_OMAN -LANGUAGE_ARABIC_QATAR = _gdi.LANGUAGE_ARABIC_QATAR -LANGUAGE_ARABIC_SAUDI_ARABIA = _gdi.LANGUAGE_ARABIC_SAUDI_ARABIA -LANGUAGE_ARABIC_SUDAN = _gdi.LANGUAGE_ARABIC_SUDAN -LANGUAGE_ARABIC_SYRIA = _gdi.LANGUAGE_ARABIC_SYRIA -LANGUAGE_ARABIC_TUNISIA = _gdi.LANGUAGE_ARABIC_TUNISIA -LANGUAGE_ARABIC_UAE = _gdi.LANGUAGE_ARABIC_UAE -LANGUAGE_ARABIC_YEMEN = _gdi.LANGUAGE_ARABIC_YEMEN -LANGUAGE_ARMENIAN = _gdi.LANGUAGE_ARMENIAN -LANGUAGE_ASSAMESE = _gdi.LANGUAGE_ASSAMESE -LANGUAGE_AYMARA = _gdi.LANGUAGE_AYMARA -LANGUAGE_AZERI = _gdi.LANGUAGE_AZERI -LANGUAGE_AZERI_CYRILLIC = _gdi.LANGUAGE_AZERI_CYRILLIC -LANGUAGE_AZERI_LATIN = _gdi.LANGUAGE_AZERI_LATIN -LANGUAGE_BASHKIR = _gdi.LANGUAGE_BASHKIR -LANGUAGE_BASQUE = _gdi.LANGUAGE_BASQUE -LANGUAGE_BELARUSIAN = _gdi.LANGUAGE_BELARUSIAN -LANGUAGE_BENGALI = _gdi.LANGUAGE_BENGALI -LANGUAGE_BHUTANI = _gdi.LANGUAGE_BHUTANI -LANGUAGE_BIHARI = _gdi.LANGUAGE_BIHARI -LANGUAGE_BISLAMA = _gdi.LANGUAGE_BISLAMA -LANGUAGE_BRETON = _gdi.LANGUAGE_BRETON -LANGUAGE_BULGARIAN = _gdi.LANGUAGE_BULGARIAN -LANGUAGE_BURMESE = _gdi.LANGUAGE_BURMESE -LANGUAGE_CAMBODIAN = _gdi.LANGUAGE_CAMBODIAN -LANGUAGE_CATALAN = _gdi.LANGUAGE_CATALAN -LANGUAGE_CHINESE = _gdi.LANGUAGE_CHINESE -LANGUAGE_CHINESE_SIMPLIFIED = _gdi.LANGUAGE_CHINESE_SIMPLIFIED -LANGUAGE_CHINESE_TRADITIONAL = _gdi.LANGUAGE_CHINESE_TRADITIONAL -LANGUAGE_CHINESE_HONGKONG = _gdi.LANGUAGE_CHINESE_HONGKONG -LANGUAGE_CHINESE_MACAU = _gdi.LANGUAGE_CHINESE_MACAU -LANGUAGE_CHINESE_SINGAPORE = _gdi.LANGUAGE_CHINESE_SINGAPORE -LANGUAGE_CHINESE_TAIWAN = _gdi.LANGUAGE_CHINESE_TAIWAN -LANGUAGE_CORSICAN = _gdi.LANGUAGE_CORSICAN -LANGUAGE_CROATIAN = _gdi.LANGUAGE_CROATIAN -LANGUAGE_CZECH = _gdi.LANGUAGE_CZECH -LANGUAGE_DANISH = _gdi.LANGUAGE_DANISH -LANGUAGE_DUTCH = _gdi.LANGUAGE_DUTCH -LANGUAGE_DUTCH_BELGIAN = _gdi.LANGUAGE_DUTCH_BELGIAN -LANGUAGE_ENGLISH = _gdi.LANGUAGE_ENGLISH -LANGUAGE_ENGLISH_UK = _gdi.LANGUAGE_ENGLISH_UK -LANGUAGE_ENGLISH_US = _gdi.LANGUAGE_ENGLISH_US -LANGUAGE_ENGLISH_AUSTRALIA = _gdi.LANGUAGE_ENGLISH_AUSTRALIA -LANGUAGE_ENGLISH_BELIZE = _gdi.LANGUAGE_ENGLISH_BELIZE -LANGUAGE_ENGLISH_BOTSWANA = _gdi.LANGUAGE_ENGLISH_BOTSWANA -LANGUAGE_ENGLISH_CANADA = _gdi.LANGUAGE_ENGLISH_CANADA -LANGUAGE_ENGLISH_CARIBBEAN = _gdi.LANGUAGE_ENGLISH_CARIBBEAN -LANGUAGE_ENGLISH_DENMARK = _gdi.LANGUAGE_ENGLISH_DENMARK -LANGUAGE_ENGLISH_EIRE = _gdi.LANGUAGE_ENGLISH_EIRE -LANGUAGE_ENGLISH_JAMAICA = _gdi.LANGUAGE_ENGLISH_JAMAICA -LANGUAGE_ENGLISH_NEW_ZEALAND = _gdi.LANGUAGE_ENGLISH_NEW_ZEALAND -LANGUAGE_ENGLISH_PHILIPPINES = _gdi.LANGUAGE_ENGLISH_PHILIPPINES -LANGUAGE_ENGLISH_SOUTH_AFRICA = _gdi.LANGUAGE_ENGLISH_SOUTH_AFRICA -LANGUAGE_ENGLISH_TRINIDAD = _gdi.LANGUAGE_ENGLISH_TRINIDAD -LANGUAGE_ENGLISH_ZIMBABWE = _gdi.LANGUAGE_ENGLISH_ZIMBABWE -LANGUAGE_ESPERANTO = _gdi.LANGUAGE_ESPERANTO -LANGUAGE_ESTONIAN = _gdi.LANGUAGE_ESTONIAN -LANGUAGE_FAEROESE = _gdi.LANGUAGE_FAEROESE -LANGUAGE_FARSI = _gdi.LANGUAGE_FARSI -LANGUAGE_FIJI = _gdi.LANGUAGE_FIJI -LANGUAGE_FINNISH = _gdi.LANGUAGE_FINNISH -LANGUAGE_FRENCH = _gdi.LANGUAGE_FRENCH -LANGUAGE_FRENCH_BELGIAN = _gdi.LANGUAGE_FRENCH_BELGIAN -LANGUAGE_FRENCH_CANADIAN = _gdi.LANGUAGE_FRENCH_CANADIAN -LANGUAGE_FRENCH_LUXEMBOURG = _gdi.LANGUAGE_FRENCH_LUXEMBOURG -LANGUAGE_FRENCH_MONACO = _gdi.LANGUAGE_FRENCH_MONACO -LANGUAGE_FRENCH_SWISS = _gdi.LANGUAGE_FRENCH_SWISS -LANGUAGE_FRISIAN = _gdi.LANGUAGE_FRISIAN -LANGUAGE_GALICIAN = _gdi.LANGUAGE_GALICIAN -LANGUAGE_GEORGIAN = _gdi.LANGUAGE_GEORGIAN -LANGUAGE_GERMAN = _gdi.LANGUAGE_GERMAN -LANGUAGE_GERMAN_AUSTRIAN = _gdi.LANGUAGE_GERMAN_AUSTRIAN -LANGUAGE_GERMAN_BELGIUM = _gdi.LANGUAGE_GERMAN_BELGIUM -LANGUAGE_GERMAN_LIECHTENSTEIN = _gdi.LANGUAGE_GERMAN_LIECHTENSTEIN -LANGUAGE_GERMAN_LUXEMBOURG = _gdi.LANGUAGE_GERMAN_LUXEMBOURG -LANGUAGE_GERMAN_SWISS = _gdi.LANGUAGE_GERMAN_SWISS -LANGUAGE_GREEK = _gdi.LANGUAGE_GREEK -LANGUAGE_GREENLANDIC = _gdi.LANGUAGE_GREENLANDIC -LANGUAGE_GUARANI = _gdi.LANGUAGE_GUARANI -LANGUAGE_GUJARATI = _gdi.LANGUAGE_GUJARATI -LANGUAGE_HAUSA = _gdi.LANGUAGE_HAUSA -LANGUAGE_HEBREW = _gdi.LANGUAGE_HEBREW -LANGUAGE_HINDI = _gdi.LANGUAGE_HINDI -LANGUAGE_HUNGARIAN = _gdi.LANGUAGE_HUNGARIAN -LANGUAGE_ICELANDIC = _gdi.LANGUAGE_ICELANDIC -LANGUAGE_INDONESIAN = _gdi.LANGUAGE_INDONESIAN -LANGUAGE_INTERLINGUA = _gdi.LANGUAGE_INTERLINGUA -LANGUAGE_INTERLINGUE = _gdi.LANGUAGE_INTERLINGUE -LANGUAGE_INUKTITUT = _gdi.LANGUAGE_INUKTITUT -LANGUAGE_INUPIAK = _gdi.LANGUAGE_INUPIAK -LANGUAGE_IRISH = _gdi.LANGUAGE_IRISH -LANGUAGE_ITALIAN = _gdi.LANGUAGE_ITALIAN -LANGUAGE_ITALIAN_SWISS = _gdi.LANGUAGE_ITALIAN_SWISS -LANGUAGE_JAPANESE = _gdi.LANGUAGE_JAPANESE -LANGUAGE_JAVANESE = _gdi.LANGUAGE_JAVANESE -LANGUAGE_KANNADA = _gdi.LANGUAGE_KANNADA -LANGUAGE_KASHMIRI = _gdi.LANGUAGE_KASHMIRI -LANGUAGE_KASHMIRI_INDIA = _gdi.LANGUAGE_KASHMIRI_INDIA -LANGUAGE_KAZAKH = _gdi.LANGUAGE_KAZAKH -LANGUAGE_KERNEWEK = _gdi.LANGUAGE_KERNEWEK -LANGUAGE_KINYARWANDA = _gdi.LANGUAGE_KINYARWANDA -LANGUAGE_KIRGHIZ = _gdi.LANGUAGE_KIRGHIZ -LANGUAGE_KIRUNDI = _gdi.LANGUAGE_KIRUNDI -LANGUAGE_KONKANI = _gdi.LANGUAGE_KONKANI -LANGUAGE_KOREAN = _gdi.LANGUAGE_KOREAN -LANGUAGE_KURDISH = _gdi.LANGUAGE_KURDISH -LANGUAGE_LAOTHIAN = _gdi.LANGUAGE_LAOTHIAN -LANGUAGE_LATIN = _gdi.LANGUAGE_LATIN -LANGUAGE_LATVIAN = _gdi.LANGUAGE_LATVIAN -LANGUAGE_LINGALA = _gdi.LANGUAGE_LINGALA -LANGUAGE_LITHUANIAN = _gdi.LANGUAGE_LITHUANIAN -LANGUAGE_MACEDONIAN = _gdi.LANGUAGE_MACEDONIAN -LANGUAGE_MALAGASY = _gdi.LANGUAGE_MALAGASY -LANGUAGE_MALAY = _gdi.LANGUAGE_MALAY -LANGUAGE_MALAYALAM = _gdi.LANGUAGE_MALAYALAM -LANGUAGE_MALAY_BRUNEI_DARUSSALAM = _gdi.LANGUAGE_MALAY_BRUNEI_DARUSSALAM -LANGUAGE_MALAY_MALAYSIA = _gdi.LANGUAGE_MALAY_MALAYSIA -LANGUAGE_MALTESE = _gdi.LANGUAGE_MALTESE -LANGUAGE_MANIPURI = _gdi.LANGUAGE_MANIPURI -LANGUAGE_MAORI = _gdi.LANGUAGE_MAORI -LANGUAGE_MARATHI = _gdi.LANGUAGE_MARATHI -LANGUAGE_MOLDAVIAN = _gdi.LANGUAGE_MOLDAVIAN -LANGUAGE_MONGOLIAN = _gdi.LANGUAGE_MONGOLIAN -LANGUAGE_NAURU = _gdi.LANGUAGE_NAURU -LANGUAGE_NEPALI = _gdi.LANGUAGE_NEPALI -LANGUAGE_NEPALI_INDIA = _gdi.LANGUAGE_NEPALI_INDIA -LANGUAGE_NORWEGIAN_BOKMAL = _gdi.LANGUAGE_NORWEGIAN_BOKMAL -LANGUAGE_NORWEGIAN_NYNORSK = _gdi.LANGUAGE_NORWEGIAN_NYNORSK -LANGUAGE_OCCITAN = _gdi.LANGUAGE_OCCITAN -LANGUAGE_ORIYA = _gdi.LANGUAGE_ORIYA -LANGUAGE_OROMO = _gdi.LANGUAGE_OROMO -LANGUAGE_PASHTO = _gdi.LANGUAGE_PASHTO -LANGUAGE_POLISH = _gdi.LANGUAGE_POLISH -LANGUAGE_PORTUGUESE = _gdi.LANGUAGE_PORTUGUESE -LANGUAGE_PORTUGUESE_BRAZILIAN = _gdi.LANGUAGE_PORTUGUESE_BRAZILIAN -LANGUAGE_PUNJABI = _gdi.LANGUAGE_PUNJABI -LANGUAGE_QUECHUA = _gdi.LANGUAGE_QUECHUA -LANGUAGE_RHAETO_ROMANCE = _gdi.LANGUAGE_RHAETO_ROMANCE -LANGUAGE_ROMANIAN = _gdi.LANGUAGE_ROMANIAN -LANGUAGE_RUSSIAN = _gdi.LANGUAGE_RUSSIAN -LANGUAGE_RUSSIAN_UKRAINE = _gdi.LANGUAGE_RUSSIAN_UKRAINE -LANGUAGE_SAMOAN = _gdi.LANGUAGE_SAMOAN -LANGUAGE_SANGHO = _gdi.LANGUAGE_SANGHO -LANGUAGE_SANSKRIT = _gdi.LANGUAGE_SANSKRIT -LANGUAGE_SCOTS_GAELIC = _gdi.LANGUAGE_SCOTS_GAELIC -LANGUAGE_SERBIAN = _gdi.LANGUAGE_SERBIAN -LANGUAGE_SERBIAN_CYRILLIC = _gdi.LANGUAGE_SERBIAN_CYRILLIC -LANGUAGE_SERBIAN_LATIN = _gdi.LANGUAGE_SERBIAN_LATIN -LANGUAGE_SERBO_CROATIAN = _gdi.LANGUAGE_SERBO_CROATIAN -LANGUAGE_SESOTHO = _gdi.LANGUAGE_SESOTHO -LANGUAGE_SETSWANA = _gdi.LANGUAGE_SETSWANA -LANGUAGE_SHONA = _gdi.LANGUAGE_SHONA -LANGUAGE_SINDHI = _gdi.LANGUAGE_SINDHI -LANGUAGE_SINHALESE = _gdi.LANGUAGE_SINHALESE -LANGUAGE_SISWATI = _gdi.LANGUAGE_SISWATI -LANGUAGE_SLOVAK = _gdi.LANGUAGE_SLOVAK -LANGUAGE_SLOVENIAN = _gdi.LANGUAGE_SLOVENIAN -LANGUAGE_SOMALI = _gdi.LANGUAGE_SOMALI -LANGUAGE_SPANISH = _gdi.LANGUAGE_SPANISH -LANGUAGE_SPANISH_ARGENTINA = _gdi.LANGUAGE_SPANISH_ARGENTINA -LANGUAGE_SPANISH_BOLIVIA = _gdi.LANGUAGE_SPANISH_BOLIVIA -LANGUAGE_SPANISH_CHILE = _gdi.LANGUAGE_SPANISH_CHILE -LANGUAGE_SPANISH_COLOMBIA = _gdi.LANGUAGE_SPANISH_COLOMBIA -LANGUAGE_SPANISH_COSTA_RICA = _gdi.LANGUAGE_SPANISH_COSTA_RICA -LANGUAGE_SPANISH_DOMINICAN_REPUBLIC = _gdi.LANGUAGE_SPANISH_DOMINICAN_REPUBLIC -LANGUAGE_SPANISH_ECUADOR = _gdi.LANGUAGE_SPANISH_ECUADOR -LANGUAGE_SPANISH_EL_SALVADOR = _gdi.LANGUAGE_SPANISH_EL_SALVADOR -LANGUAGE_SPANISH_GUATEMALA = _gdi.LANGUAGE_SPANISH_GUATEMALA -LANGUAGE_SPANISH_HONDURAS = _gdi.LANGUAGE_SPANISH_HONDURAS -LANGUAGE_SPANISH_MEXICAN = _gdi.LANGUAGE_SPANISH_MEXICAN -LANGUAGE_SPANISH_MODERN = _gdi.LANGUAGE_SPANISH_MODERN -LANGUAGE_SPANISH_NICARAGUA = _gdi.LANGUAGE_SPANISH_NICARAGUA -LANGUAGE_SPANISH_PANAMA = _gdi.LANGUAGE_SPANISH_PANAMA -LANGUAGE_SPANISH_PARAGUAY = _gdi.LANGUAGE_SPANISH_PARAGUAY -LANGUAGE_SPANISH_PERU = _gdi.LANGUAGE_SPANISH_PERU -LANGUAGE_SPANISH_PUERTO_RICO = _gdi.LANGUAGE_SPANISH_PUERTO_RICO -LANGUAGE_SPANISH_URUGUAY = _gdi.LANGUAGE_SPANISH_URUGUAY -LANGUAGE_SPANISH_US = _gdi.LANGUAGE_SPANISH_US -LANGUAGE_SPANISH_VENEZUELA = _gdi.LANGUAGE_SPANISH_VENEZUELA -LANGUAGE_SUNDANESE = _gdi.LANGUAGE_SUNDANESE -LANGUAGE_SWAHILI = _gdi.LANGUAGE_SWAHILI -LANGUAGE_SWEDISH = _gdi.LANGUAGE_SWEDISH -LANGUAGE_SWEDISH_FINLAND = _gdi.LANGUAGE_SWEDISH_FINLAND -LANGUAGE_TAGALOG = _gdi.LANGUAGE_TAGALOG -LANGUAGE_TAJIK = _gdi.LANGUAGE_TAJIK -LANGUAGE_TAMIL = _gdi.LANGUAGE_TAMIL -LANGUAGE_TATAR = _gdi.LANGUAGE_TATAR -LANGUAGE_TELUGU = _gdi.LANGUAGE_TELUGU -LANGUAGE_THAI = _gdi.LANGUAGE_THAI -LANGUAGE_TIBETAN = _gdi.LANGUAGE_TIBETAN -LANGUAGE_TIGRINYA = _gdi.LANGUAGE_TIGRINYA -LANGUAGE_TONGA = _gdi.LANGUAGE_TONGA -LANGUAGE_TSONGA = _gdi.LANGUAGE_TSONGA -LANGUAGE_TURKISH = _gdi.LANGUAGE_TURKISH -LANGUAGE_TURKMEN = _gdi.LANGUAGE_TURKMEN -LANGUAGE_TWI = _gdi.LANGUAGE_TWI -LANGUAGE_UIGHUR = _gdi.LANGUAGE_UIGHUR -LANGUAGE_UKRAINIAN = _gdi.LANGUAGE_UKRAINIAN -LANGUAGE_URDU = _gdi.LANGUAGE_URDU -LANGUAGE_URDU_INDIA = _gdi.LANGUAGE_URDU_INDIA -LANGUAGE_URDU_PAKISTAN = _gdi.LANGUAGE_URDU_PAKISTAN -LANGUAGE_UZBEK = _gdi.LANGUAGE_UZBEK -LANGUAGE_UZBEK_CYRILLIC = _gdi.LANGUAGE_UZBEK_CYRILLIC -LANGUAGE_UZBEK_LATIN = _gdi.LANGUAGE_UZBEK_LATIN -LANGUAGE_VIETNAMESE = _gdi.LANGUAGE_VIETNAMESE -LANGUAGE_VOLAPUK = _gdi.LANGUAGE_VOLAPUK -LANGUAGE_WELSH = _gdi.LANGUAGE_WELSH -LANGUAGE_WOLOF = _gdi.LANGUAGE_WOLOF -LANGUAGE_XHOSA = _gdi.LANGUAGE_XHOSA -LANGUAGE_YIDDISH = _gdi.LANGUAGE_YIDDISH -LANGUAGE_YORUBA = _gdi.LANGUAGE_YORUBA -LANGUAGE_ZHUANG = _gdi.LANGUAGE_ZHUANG -LANGUAGE_ZULU = _gdi.LANGUAGE_ZULU -LANGUAGE_USER_DEFINED = _gdi.LANGUAGE_USER_DEFINED -class LanguageInfo(object): - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxLanguageInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - Language = property(_gdi.LanguageInfo_Language_get, _gdi.LanguageInfo_Language_set) - CanonicalName = property(_gdi.LanguageInfo_CanonicalName_get, _gdi.LanguageInfo_CanonicalName_set) - Description = property(_gdi.LanguageInfo_Description_get, _gdi.LanguageInfo_Description_set) - -class LanguageInfoPtr(LanguageInfo): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = LanguageInfo -_gdi.LanguageInfo_swigregister(LanguageInfoPtr) - -LOCALE_CAT_NUMBER = _gdi.LOCALE_CAT_NUMBER -LOCALE_CAT_DATE = _gdi.LOCALE_CAT_DATE -LOCALE_CAT_MONEY = _gdi.LOCALE_CAT_MONEY -LOCALE_CAT_MAX = _gdi.LOCALE_CAT_MAX -LOCALE_THOUSANDS_SEP = _gdi.LOCALE_THOUSANDS_SEP -LOCALE_DECIMAL_POINT = _gdi.LOCALE_DECIMAL_POINT -LOCALE_LOAD_DEFAULT = _gdi.LOCALE_LOAD_DEFAULT -LOCALE_CONV_ENCODING = _gdi.LOCALE_CONV_ENCODING -class Locale(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxLocale instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int language=LANGUAGE_DEFAULT, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> Locale""" - newobj = _gdi.new_Locale(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_gdi.delete_Locale): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Init1(*args, **kwargs): - """ - Init1(self, String szName, String szShort=EmptyString, String szLocale=EmptyString, - bool bLoadDefault=True, - bool bConvertEncoding=False) -> bool - """ - return _gdi.Locale_Init1(*args, **kwargs) - - def Init2(*args, **kwargs): - """Init2(self, int language=LANGUAGE_DEFAULT, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> bool""" - return _gdi.Locale_Init2(*args, **kwargs) - - def Init(self, *_args, **_kwargs): - if type(_args[0]) in [type(''), type(u'')]: - val = self.Init1(*_args, **_kwargs) - else: - val = self.Init2(*_args, **_kwargs) - return val - - def GetSystemLanguage(*args, **kwargs): - """Locale.GetSystemLanguage() -> int""" - return _gdi.Locale_GetSystemLanguage(*args, **kwargs) - - GetSystemLanguage = staticmethod(GetSystemLanguage) - def GetSystemEncoding(*args, **kwargs): - """Locale.GetSystemEncoding() -> int""" - return _gdi.Locale_GetSystemEncoding(*args, **kwargs) - - GetSystemEncoding = staticmethod(GetSystemEncoding) - def GetSystemEncodingName(*args, **kwargs): - """Locale.GetSystemEncodingName() -> String""" - return _gdi.Locale_GetSystemEncodingName(*args, **kwargs) - - GetSystemEncodingName = staticmethod(GetSystemEncodingName) - def IsOk(*args, **kwargs): - """IsOk(self) -> bool""" - return _gdi.Locale_IsOk(*args, **kwargs) - - def __nonzero__(self): return self.IsOk() - def GetLocale(*args, **kwargs): - """GetLocale(self) -> String""" - return _gdi.Locale_GetLocale(*args, **kwargs) - - def GetLanguage(*args, **kwargs): - """GetLanguage(self) -> int""" - return _gdi.Locale_GetLanguage(*args, **kwargs) - - def GetSysName(*args, **kwargs): - """GetSysName(self) -> String""" - return _gdi.Locale_GetSysName(*args, **kwargs) - - def GetCanonicalName(*args, **kwargs): - """GetCanonicalName(self) -> String""" - return _gdi.Locale_GetCanonicalName(*args, **kwargs) - - def AddCatalogLookupPathPrefix(*args, **kwargs): - """Locale.AddCatalogLookupPathPrefix(String prefix)""" - return _gdi.Locale_AddCatalogLookupPathPrefix(*args, **kwargs) - - AddCatalogLookupPathPrefix = staticmethod(AddCatalogLookupPathPrefix) - def AddCatalog(*args, **kwargs): - """AddCatalog(self, String szDomain) -> bool""" - return _gdi.Locale_AddCatalog(*args, **kwargs) - - def IsLoaded(*args, **kwargs): - """IsLoaded(self, String szDomain) -> bool""" - return _gdi.Locale_IsLoaded(*args, **kwargs) - - def GetLanguageInfo(*args, **kwargs): - """Locale.GetLanguageInfo(int lang) -> LanguageInfo""" - return _gdi.Locale_GetLanguageInfo(*args, **kwargs) - - GetLanguageInfo = staticmethod(GetLanguageInfo) - def GetLanguageName(*args, **kwargs): - """Locale.GetLanguageName(int lang) -> String""" - return _gdi.Locale_GetLanguageName(*args, **kwargs) - - GetLanguageName = staticmethod(GetLanguageName) - def FindLanguageInfo(*args, **kwargs): - """Locale.FindLanguageInfo(String locale) -> LanguageInfo""" - return _gdi.Locale_FindLanguageInfo(*args, **kwargs) - - FindLanguageInfo = staticmethod(FindLanguageInfo) - def AddLanguage(*args, **kwargs): - """Locale.AddLanguage(LanguageInfo info)""" - return _gdi.Locale_AddLanguage(*args, **kwargs) - - AddLanguage = staticmethod(AddLanguage) - def GetString(*args, **kwargs): - """GetString(self, String szOrigString, String szDomain=EmptyString) -> String""" - return _gdi.Locale_GetString(*args, **kwargs) - - def GetName(*args, **kwargs): - """GetName(self) -> String""" - return _gdi.Locale_GetName(*args, **kwargs) - - -class LocalePtr(Locale): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Locale -_gdi.Locale_swigregister(LocalePtr) - -def Locale_GetSystemLanguage(*args, **kwargs): - """Locale_GetSystemLanguage() -> int""" - return _gdi.Locale_GetSystemLanguage(*args, **kwargs) - -def Locale_GetSystemEncoding(*args, **kwargs): - """Locale_GetSystemEncoding() -> int""" - return _gdi.Locale_GetSystemEncoding(*args, **kwargs) - -def Locale_GetSystemEncodingName(*args, **kwargs): - """Locale_GetSystemEncodingName() -> String""" - return _gdi.Locale_GetSystemEncodingName(*args, **kwargs) - -def Locale_AddCatalogLookupPathPrefix(*args, **kwargs): - """Locale_AddCatalogLookupPathPrefix(String prefix)""" - return _gdi.Locale_AddCatalogLookupPathPrefix(*args, **kwargs) - -def Locale_GetLanguageInfo(*args, **kwargs): - """Locale_GetLanguageInfo(int lang) -> LanguageInfo""" - return _gdi.Locale_GetLanguageInfo(*args, **kwargs) - -def Locale_GetLanguageName(*args, **kwargs): - """Locale_GetLanguageName(int lang) -> String""" - return _gdi.Locale_GetLanguageName(*args, **kwargs) - -def Locale_FindLanguageInfo(*args, **kwargs): - """Locale_FindLanguageInfo(String locale) -> LanguageInfo""" - return _gdi.Locale_FindLanguageInfo(*args, **kwargs) - -def Locale_AddLanguage(*args, **kwargs): - """Locale_AddLanguage(LanguageInfo info)""" - return _gdi.Locale_AddLanguage(*args, **kwargs) - - -def GetLocale(*args, **kwargs): - """GetLocale() -> Locale""" - return _gdi.GetLocale(*args, **kwargs) -#--------------------------------------------------------------------------- - -CONVERT_STRICT = _gdi.CONVERT_STRICT -CONVERT_SUBSTITUTE = _gdi.CONVERT_SUBSTITUTE -PLATFORM_CURRENT = _gdi.PLATFORM_CURRENT -PLATFORM_UNIX = _gdi.PLATFORM_UNIX -PLATFORM_WINDOWS = _gdi.PLATFORM_WINDOWS -PLATFORM_OS2 = _gdi.PLATFORM_OS2 -PLATFORM_MAC = _gdi.PLATFORM_MAC -class EncodingConverter(core.Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxEncodingConverter instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> EncodingConverter""" - newobj = _gdi.new_EncodingConverter(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_gdi.delete_EncodingConverter): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Init(*args, **kwargs): - """Init(self, int input_enc, int output_enc, int method=CONVERT_STRICT) -> bool""" - return _gdi.EncodingConverter_Init(*args, **kwargs) - - def Convert(*args, **kwargs): - """Convert(self, String input) -> String""" - return _gdi.EncodingConverter_Convert(*args, **kwargs) - - def GetPlatformEquivalents(*args, **kwargs): - """EncodingConverter.GetPlatformEquivalents(int enc, int platform=PLATFORM_CURRENT) -> wxFontEncodingArray""" - return _gdi.EncodingConverter_GetPlatformEquivalents(*args, **kwargs) - - GetPlatformEquivalents = staticmethod(GetPlatformEquivalents) - def GetAllEquivalents(*args, **kwargs): - """EncodingConverter.GetAllEquivalents(int enc) -> wxFontEncodingArray""" - return _gdi.EncodingConverter_GetAllEquivalents(*args, **kwargs) - - GetAllEquivalents = staticmethod(GetAllEquivalents) - def CanConvert(*args, **kwargs): - """EncodingConverter.CanConvert(int encIn, int encOut) -> bool""" - return _gdi.EncodingConverter_CanConvert(*args, **kwargs) - - CanConvert = staticmethod(CanConvert) - def __nonzero__(self): return self.IsOk() - -class EncodingConverterPtr(EncodingConverter): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = EncodingConverter -_gdi.EncodingConverter_swigregister(EncodingConverterPtr) - -def GetTranslation(*args): - """ - GetTranslation(String str) -> String - GetTranslation(String str, String strPlural, size_t n) -> String - """ - return _gdi.GetTranslation(*args) - -def EncodingConverter_GetPlatformEquivalents(*args, **kwargs): - """EncodingConverter_GetPlatformEquivalents(int enc, int platform=PLATFORM_CURRENT) -> wxFontEncodingArray""" - return _gdi.EncodingConverter_GetPlatformEquivalents(*args, **kwargs) - -def EncodingConverter_GetAllEquivalents(*args, **kwargs): - """EncodingConverter_GetAllEquivalents(int enc) -> wxFontEncodingArray""" - return _gdi.EncodingConverter_GetAllEquivalents(*args, **kwargs) - -def EncodingConverter_CanConvert(*args, **kwargs): - """EncodingConverter_CanConvert(int encIn, int encOut) -> bool""" - return _gdi.EncodingConverter_CanConvert(*args, **kwargs) - -#---------------------------------------------------------------------------- -# wxGTK sets the locale when initialized. Doing this at the Python -# level should set it up to match what GTK is doing at the C level. -if wx.Platform == "__WXGTK__": - try: - import locale - locale.setlocale(locale.LC_ALL, "") - except: - pass - -# On MSW add the directory where the wxWindows catalogs were installed -# to the default catalog path. -if wx.Platform == "__WXMSW__": - import os - localedir = os.path.join(os.path.split(__file__)[0], "locale") - Locale_AddCatalogLookupPathPrefix(localedir) - del os - -#---------------------------------------------------------------------------- - -#--------------------------------------------------------------------------- - -class DC(core.Object): - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __del__(self, destroy=_gdi.delete_DC): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def BeginDrawing(*args, **kwargs): - """BeginDrawing(self)""" - return _gdi.DC_BeginDrawing(*args, **kwargs) - - def EndDrawing(*args, **kwargs): - """EndDrawing(self)""" - return _gdi.DC_EndDrawing(*args, **kwargs) - - def FloodFillXY(*args, **kwargs): - """FloodFillXY(self, int x, int y, Colour col, int style=FLOOD_SURFACE) -> bool""" - return _gdi.DC_FloodFillXY(*args, **kwargs) - - def FloodFill(*args, **kwargs): - """FloodFill(self, Point pt, Colour col, int style=FLOOD_SURFACE) -> bool""" - return _gdi.DC_FloodFill(*args, **kwargs) - - def GetPixelXY(*args, **kwargs): - """GetPixelXY(self, int x, int y) -> Colour""" - return _gdi.DC_GetPixelXY(*args, **kwargs) - - def GetPixel(*args, **kwargs): - """GetPixel(self, Point pt) -> Colour""" - return _gdi.DC_GetPixel(*args, **kwargs) - - def DrawLineXY(*args, **kwargs): - """DrawLineXY(self, int x1, int y1, int x2, int y2)""" - return _gdi.DC_DrawLineXY(*args, **kwargs) - - def DrawLine(*args, **kwargs): - """DrawLine(self, Point pt1, Point pt2)""" - return _gdi.DC_DrawLine(*args, **kwargs) - - def CrossHairXY(*args, **kwargs): - """CrossHairXY(self, int x, int y)""" - return _gdi.DC_CrossHairXY(*args, **kwargs) - - def CrossHair(*args, **kwargs): - """CrossHair(self, Point pt)""" - return _gdi.DC_CrossHair(*args, **kwargs) - - def DrawArcXY(*args, **kwargs): - """DrawArcXY(self, int x1, int y1, int x2, int y2, int xc, int yc)""" - return _gdi.DC_DrawArcXY(*args, **kwargs) - - def DrawArc(*args, **kwargs): - """DrawArc(self, Point pt1, Point pt2, Point centre)""" - return _gdi.DC_DrawArc(*args, **kwargs) - - def DrawCheckMarkXY(*args, **kwargs): - """DrawCheckMarkXY(self, int x, int y, int width, int height)""" - return _gdi.DC_DrawCheckMarkXY(*args, **kwargs) - - def DrawCheckMark(*args, **kwargs): - """DrawCheckMark(self, Rect rect)""" - return _gdi.DC_DrawCheckMark(*args, **kwargs) - - def DrawEllipticArcXY(*args, **kwargs): - """DrawEllipticArcXY(self, int x, int y, int w, int h, double sa, double ea)""" - return _gdi.DC_DrawEllipticArcXY(*args, **kwargs) - - def DrawEllipticArc(*args, **kwargs): - """DrawEllipticArc(self, Point pt, Size sz, double sa, double ea)""" - return _gdi.DC_DrawEllipticArc(*args, **kwargs) - - def DrawPointXY(*args, **kwargs): - """DrawPointXY(self, int x, int y)""" - return _gdi.DC_DrawPointXY(*args, **kwargs) - - def DrawPoint(*args, **kwargs): - """DrawPoint(self, Point pt)""" - return _gdi.DC_DrawPoint(*args, **kwargs) - - def DrawRectangleXY(*args, **kwargs): - """DrawRectangleXY(self, int x, int y, int width, int height)""" - return _gdi.DC_DrawRectangleXY(*args, **kwargs) - - def DrawRectangle(*args, **kwargs): - """DrawRectangle(self, Point pt, Size sz)""" - return _gdi.DC_DrawRectangle(*args, **kwargs) - - def DrawRectangleRect(*args, **kwargs): - """DrawRectangleRect(self, Rect rect)""" - return _gdi.DC_DrawRectangleRect(*args, **kwargs) - - def DrawRoundedRectangleXY(*args, **kwargs): - """DrawRoundedRectangleXY(self, int x, int y, int width, int height, double radius)""" - return _gdi.DC_DrawRoundedRectangleXY(*args, **kwargs) - - def DrawRoundedRectangle(*args, **kwargs): - """DrawRoundedRectangle(self, Point pt, Size sz, double radius)""" - return _gdi.DC_DrawRoundedRectangle(*args, **kwargs) - - def DrawRoundedRectangleRect(*args, **kwargs): - """DrawRoundedRectangleRect(self, Rect r, double radius)""" - return _gdi.DC_DrawRoundedRectangleRect(*args, **kwargs) - - def DrawCircleXY(*args, **kwargs): - """DrawCircleXY(self, int x, int y, int radius)""" - return _gdi.DC_DrawCircleXY(*args, **kwargs) - - def DrawCircle(*args, **kwargs): - """DrawCircle(self, Point pt, int radius)""" - return _gdi.DC_DrawCircle(*args, **kwargs) - - def DrawEllipseXY(*args, **kwargs): - """DrawEllipseXY(self, int x, int y, int width, int height)""" - return _gdi.DC_DrawEllipseXY(*args, **kwargs) - - def DrawEllipse(*args, **kwargs): - """DrawEllipse(self, Point pt, Size sz)""" - return _gdi.DC_DrawEllipse(*args, **kwargs) - - def DrawEllipseRect(*args, **kwargs): - """DrawEllipseRect(self, Rect rect)""" - return _gdi.DC_DrawEllipseRect(*args, **kwargs) - - def DrawIconXY(*args, **kwargs): - """DrawIconXY(self, Icon icon, int x, int y)""" - return _gdi.DC_DrawIconXY(*args, **kwargs) - - def DrawIcon(*args, **kwargs): - """DrawIcon(self, Icon icon, Point pt)""" - return _gdi.DC_DrawIcon(*args, **kwargs) - - def DrawBitmapXY(*args, **kwargs): - """DrawBitmapXY(self, Bitmap bmp, int x, int y, bool useMask=False)""" - return _gdi.DC_DrawBitmapXY(*args, **kwargs) - - def DrawBitmap(*args, **kwargs): - """DrawBitmap(self, Bitmap bmp, Point pt, bool useMask=False)""" - return _gdi.DC_DrawBitmap(*args, **kwargs) - - def DrawTextXY(*args, **kwargs): - """DrawTextXY(self, String text, int x, int y)""" - return _gdi.DC_DrawTextXY(*args, **kwargs) - - def DrawText(*args, **kwargs): - """DrawText(self, String text, Point pt)""" - return _gdi.DC_DrawText(*args, **kwargs) - - def DrawRotatedTextXY(*args, **kwargs): - """DrawRotatedTextXY(self, String text, int x, int y, double angle)""" - return _gdi.DC_DrawRotatedTextXY(*args, **kwargs) - - def DrawRotatedText(*args, **kwargs): - """DrawRotatedText(self, String text, Point pt, double angle)""" - return _gdi.DC_DrawRotatedText(*args, **kwargs) - - def BlitXY(*args, **kwargs): - """ - BlitXY(self, int xdest, int ydest, int width, int height, DC source, - int xsrc, int ysrc, int rop=COPY, bool useMask=False, - int xsrcMask=-1, int ysrcMask=-1) -> bool - """ - return _gdi.DC_BlitXY(*args, **kwargs) - - def Blit(*args, **kwargs): - """ - Blit(self, Point destPt, Size sz, DC source, Point srcPt, int rop=COPY, - bool useMask=False, Point srcPtMask=DefaultPosition) -> bool - """ - return _gdi.DC_Blit(*args, **kwargs) - - def DrawLines(*args, **kwargs): - """DrawLines(self, int points, Point points_array, int xoffset=0, int yoffset=0)""" - return _gdi.DC_DrawLines(*args, **kwargs) - - def DrawPolygon(*args, **kwargs): - """ - DrawPolygon(self, int points, Point points_array, int xoffset=0, int yoffset=0, - int fillStyle=ODDEVEN_RULE) - """ - return _gdi.DC_DrawPolygon(*args, **kwargs) - - def DrawLabel(*args, **kwargs): - """ - DrawLabel(self, String text, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP, - int indexAccel=-1) - """ - return _gdi.DC_DrawLabel(*args, **kwargs) - - def DrawImageLabel(*args, **kwargs): - """ - DrawImageLabel(self, String text, Bitmap image, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP, - int indexAccel=-1) -> Rect - """ - return _gdi.DC_DrawImageLabel(*args, **kwargs) - - def DrawSpline(*args, **kwargs): - """DrawSpline(self, int points, Point points_array)""" - return _gdi.DC_DrawSpline(*args, **kwargs) - - def Clear(*args, **kwargs): - """Clear(self)""" - return _gdi.DC_Clear(*args, **kwargs) - - def StartDoc(*args, **kwargs): - """StartDoc(self, String message) -> bool""" - return _gdi.DC_StartDoc(*args, **kwargs) - - def EndDoc(*args, **kwargs): - """EndDoc(self)""" - return _gdi.DC_EndDoc(*args, **kwargs) - - def StartPage(*args, **kwargs): - """StartPage(self)""" - return _gdi.DC_StartPage(*args, **kwargs) - - def EndPage(*args, **kwargs): - """EndPage(self)""" - return _gdi.DC_EndPage(*args, **kwargs) - - def SetFont(*args, **kwargs): - """SetFont(self, Font font)""" - return _gdi.DC_SetFont(*args, **kwargs) - - def SetPen(*args, **kwargs): - """SetPen(self, Pen pen)""" - return _gdi.DC_SetPen(*args, **kwargs) - - def SetBrush(*args, **kwargs): - """SetBrush(self, Brush brush)""" - return _gdi.DC_SetBrush(*args, **kwargs) - - def SetBackground(*args, **kwargs): - """SetBackground(self, Brush brush)""" - return _gdi.DC_SetBackground(*args, **kwargs) - - def SetBackgroundMode(*args, **kwargs): - """SetBackgroundMode(self, int mode)""" - return _gdi.DC_SetBackgroundMode(*args, **kwargs) - - def SetPalette(*args, **kwargs): - """SetPalette(self, Palette palette)""" - return _gdi.DC_SetPalette(*args, **kwargs) - - def SetClippingRegionXY(*args, **kwargs): - """SetClippingRegionXY(self, int x, int y, int width, int height)""" - return _gdi.DC_SetClippingRegionXY(*args, **kwargs) - - def SetClippingRegion(*args, **kwargs): - """SetClippingRegion(self, Point pt, Size sz)""" - return _gdi.DC_SetClippingRegion(*args, **kwargs) - - def SetClippingRect(*args, **kwargs): - """SetClippingRect(self, Rect rect)""" - return _gdi.DC_SetClippingRect(*args, **kwargs) - - def SetClippingRegionAsRegion(*args, **kwargs): - """SetClippingRegionAsRegion(self, Region region)""" - return _gdi.DC_SetClippingRegionAsRegion(*args, **kwargs) - - def DestroyClippingRegion(*args, **kwargs): - """DestroyClippingRegion(self)""" - return _gdi.DC_DestroyClippingRegion(*args, **kwargs) - - def GetClippingBox(*args, **kwargs): - """GetClippingBox() -> (x, y, width, height)""" - return _gdi.DC_GetClippingBox(*args, **kwargs) - - def GetClippingRect(*args, **kwargs): - """GetClippingRect(self) -> Rect""" - return _gdi.DC_GetClippingRect(*args, **kwargs) - - def GetCharHeight(*args, **kwargs): - """GetCharHeight(self) -> int""" - return _gdi.DC_GetCharHeight(*args, **kwargs) - - def GetCharWidth(*args, **kwargs): - """GetCharWidth(self) -> int""" - return _gdi.DC_GetCharWidth(*args, **kwargs) - - def GetTextExtent(*args, **kwargs): - """ - GetTextExtent(wxString string) -> (width, height) - - Get the width and height of the text using the current font. - Only works for single line strings. - """ - return _gdi.DC_GetTextExtent(*args, **kwargs) - - def GetFullTextExtent(*args, **kwargs): - """ - GetFullTextExtent(wxString string, Font font=None) -> - (width, height, descent, externalLeading) - - Get the width, height, decent and leading of the text using the current or specified font. - Only works for single line strings. - """ - return _gdi.DC_GetFullTextExtent(*args, **kwargs) - - def GetMultiLineTextExtent(*args, **kwargs): - """ - GetMultiLineTextExtent(wxString string, Font font=None) -> - (width, height, descent, externalLeading) - - Get the width, height, decent and leading of the text using the current or specified font. - Works for single as well as multi-line strings. - """ - return _gdi.DC_GetMultiLineTextExtent(*args, **kwargs) - - def GetPartialTextExtents(*args, **kwargs): - """GetPartialTextExtents(self, String text) -> wxArrayInt""" - return _gdi.DC_GetPartialTextExtents(*args, **kwargs) - - def GetSize(*args, **kwargs): - """ - GetSize(self) -> Size - - Get the DC size in device units. - """ - return _gdi.DC_GetSize(*args, **kwargs) - - def GetSizeTuple(*args, **kwargs): - """ - GetSizeTuple() -> (width, height) - - Get the DC size in device units. - """ - return _gdi.DC_GetSizeTuple(*args, **kwargs) - - def GetSizeMM(*args, **kwargs): - """ - GetSizeMM(self) -> Size - - Get the DC size in milimeters. - """ - return _gdi.DC_GetSizeMM(*args, **kwargs) - - def GetSizeMMTuple(*args, **kwargs): - """ - GetSizeMMTuple() -> (width, height) - - Get the DC size in milimeters. - """ - return _gdi.DC_GetSizeMMTuple(*args, **kwargs) - - def DeviceToLogicalX(*args, **kwargs): - """DeviceToLogicalX(self, int x) -> int""" - return _gdi.DC_DeviceToLogicalX(*args, **kwargs) - - def DeviceToLogicalY(*args, **kwargs): - """DeviceToLogicalY(self, int y) -> int""" - return _gdi.DC_DeviceToLogicalY(*args, **kwargs) - - def DeviceToLogicalXRel(*args, **kwargs): - """DeviceToLogicalXRel(self, int x) -> int""" - return _gdi.DC_DeviceToLogicalXRel(*args, **kwargs) - - def DeviceToLogicalYRel(*args, **kwargs): - """DeviceToLogicalYRel(self, int y) -> int""" - return _gdi.DC_DeviceToLogicalYRel(*args, **kwargs) - - def LogicalToDeviceX(*args, **kwargs): - """LogicalToDeviceX(self, int x) -> int""" - return _gdi.DC_LogicalToDeviceX(*args, **kwargs) - - def LogicalToDeviceY(*args, **kwargs): - """LogicalToDeviceY(self, int y) -> int""" - return _gdi.DC_LogicalToDeviceY(*args, **kwargs) - - def LogicalToDeviceXRel(*args, **kwargs): - """LogicalToDeviceXRel(self, int x) -> int""" - return _gdi.DC_LogicalToDeviceXRel(*args, **kwargs) - - def LogicalToDeviceYRel(*args, **kwargs): - """LogicalToDeviceYRel(self, int y) -> int""" - return _gdi.DC_LogicalToDeviceYRel(*args, **kwargs) - - def CanDrawBitmap(*args, **kwargs): - """CanDrawBitmap(self) -> bool""" - return _gdi.DC_CanDrawBitmap(*args, **kwargs) - - def CanGetTextExtent(*args, **kwargs): - """CanGetTextExtent(self) -> bool""" - return _gdi.DC_CanGetTextExtent(*args, **kwargs) - - def GetDepth(*args, **kwargs): - """GetDepth(self) -> int""" - return _gdi.DC_GetDepth(*args, **kwargs) - - def GetPPI(*args, **kwargs): - """GetPPI(self) -> Size""" - return _gdi.DC_GetPPI(*args, **kwargs) - - def Ok(*args, **kwargs): - """Ok(self) -> bool""" - return _gdi.DC_Ok(*args, **kwargs) - - def GetBackgroundMode(*args, **kwargs): - """GetBackgroundMode(self) -> int""" - return _gdi.DC_GetBackgroundMode(*args, **kwargs) - - def GetBackground(*args, **kwargs): - """GetBackground(self) -> Brush""" - return _gdi.DC_GetBackground(*args, **kwargs) - - def GetBrush(*args, **kwargs): - """GetBrush(self) -> Brush""" - return _gdi.DC_GetBrush(*args, **kwargs) - - def GetFont(*args, **kwargs): - """GetFont(self) -> Font""" - return _gdi.DC_GetFont(*args, **kwargs) - - def GetPen(*args, **kwargs): - """GetPen(self) -> Pen""" - return _gdi.DC_GetPen(*args, **kwargs) - - def GetTextBackground(*args, **kwargs): - """GetTextBackground(self) -> Colour""" - return _gdi.DC_GetTextBackground(*args, **kwargs) - - def GetTextForeground(*args, **kwargs): - """GetTextForeground(self) -> Colour""" - return _gdi.DC_GetTextForeground(*args, **kwargs) - - def SetTextForeground(*args, **kwargs): - """SetTextForeground(self, Colour colour)""" - return _gdi.DC_SetTextForeground(*args, **kwargs) - - def SetTextBackground(*args, **kwargs): - """SetTextBackground(self, Colour colour)""" - return _gdi.DC_SetTextBackground(*args, **kwargs) - - def GetMapMode(*args, **kwargs): - """GetMapMode(self) -> int""" - return _gdi.DC_GetMapMode(*args, **kwargs) - - def SetMapMode(*args, **kwargs): - """SetMapMode(self, int mode)""" - return _gdi.DC_SetMapMode(*args, **kwargs) - - def GetUserScale(*args, **kwargs): - """GetUserScale() -> (xScale, yScale)""" - return _gdi.DC_GetUserScale(*args, **kwargs) - - def SetUserScale(*args, **kwargs): - """SetUserScale(self, double x, double y)""" - return _gdi.DC_SetUserScale(*args, **kwargs) - - def GetLogicalScale(*args, **kwargs): - """GetLogicalScale() -> (xScale, yScale)""" - return _gdi.DC_GetLogicalScale(*args, **kwargs) - - def SetLogicalScale(*args, **kwargs): - """SetLogicalScale(self, double x, double y)""" - return _gdi.DC_SetLogicalScale(*args, **kwargs) - - def GetLogicalOrigin(*args, **kwargs): - """GetLogicalOrigin(self) -> Point""" - return _gdi.DC_GetLogicalOrigin(*args, **kwargs) - - def GetLogicalOriginTuple(*args, **kwargs): - """GetLogicalOriginTuple() -> (x,y)""" - return _gdi.DC_GetLogicalOriginTuple(*args, **kwargs) - - def SetLogicalOrigin(*args, **kwargs): - """SetLogicalOrigin(self, int x, int y)""" - return _gdi.DC_SetLogicalOrigin(*args, **kwargs) - - def GetDeviceOrigin(*args, **kwargs): - """GetDeviceOrigin(self) -> Point""" - return _gdi.DC_GetDeviceOrigin(*args, **kwargs) - - def GetDeviceOriginTuple(*args, **kwargs): - """GetDeviceOriginTuple() -> (x,y)""" - return _gdi.DC_GetDeviceOriginTuple(*args, **kwargs) - - def SetDeviceOrigin(*args, **kwargs): - """SetDeviceOrigin(self, int x, int y)""" - return _gdi.DC_SetDeviceOrigin(*args, **kwargs) - - def SetAxisOrientation(*args, **kwargs): - """SetAxisOrientation(self, bool xLeftRight, bool yBottomUp)""" - return _gdi.DC_SetAxisOrientation(*args, **kwargs) - - def GetLogicalFunction(*args, **kwargs): - """GetLogicalFunction(self) -> int""" - return _gdi.DC_GetLogicalFunction(*args, **kwargs) - - def SetLogicalFunction(*args, **kwargs): - """SetLogicalFunction(self, int function)""" - return _gdi.DC_SetLogicalFunction(*args, **kwargs) - - def SetOptimization(*args, **kwargs): - """SetOptimization(self, bool opt)""" - return _gdi.DC_SetOptimization(*args, **kwargs) - - def GetOptimization(*args, **kwargs): - """GetOptimization(self) -> bool""" - return _gdi.DC_GetOptimization(*args, **kwargs) - - def CalcBoundingBox(*args, **kwargs): - """CalcBoundingBox(self, int x, int y)""" - return _gdi.DC_CalcBoundingBox(*args, **kwargs) - - def ResetBoundingBox(*args, **kwargs): - """ResetBoundingBox(self)""" - return _gdi.DC_ResetBoundingBox(*args, **kwargs) - - def MinX(*args, **kwargs): - """MinX(self) -> int""" - return _gdi.DC_MinX(*args, **kwargs) - - def MaxX(*args, **kwargs): - """MaxX(self) -> int""" - return _gdi.DC_MaxX(*args, **kwargs) - - def MinY(*args, **kwargs): - """MinY(self) -> int""" - return _gdi.DC_MinY(*args, **kwargs) - - def MaxY(*args, **kwargs): - """MaxY(self) -> int""" - return _gdi.DC_MaxY(*args, **kwargs) - - def GetBoundingBox(*args, **kwargs): - """GetBoundingBox() -> (x1,y1, x2,y2)""" - return _gdi.DC_GetBoundingBox(*args, **kwargs) - - def __nonzero__(self): return self.Ok() - def _DrawPointList(*args, **kwargs): - """_DrawPointList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject""" - return _gdi.DC__DrawPointList(*args, **kwargs) - - def _DrawLineList(*args, **kwargs): - """_DrawLineList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject""" - return _gdi.DC__DrawLineList(*args, **kwargs) - - def _DrawRectangleList(*args, **kwargs): - """_DrawRectangleList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject""" - return _gdi.DC__DrawRectangleList(*args, **kwargs) - - def _DrawEllipseList(*args, **kwargs): - """_DrawEllipseList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject""" - return _gdi.DC__DrawEllipseList(*args, **kwargs) - - def _DrawPolygonList(*args, **kwargs): - """_DrawPolygonList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject""" - return _gdi.DC__DrawPolygonList(*args, **kwargs) - - def _DrawTextList(*args, **kwargs): - """ - _DrawTextList(self, PyObject textList, PyObject pyPoints, PyObject foregroundList, - PyObject backgroundList) -> PyObject - """ - return _gdi.DC__DrawTextList(*args, **kwargs) - - def DrawPointList(self, points, pens=None): - if pens is None: - pens = [] - elif isinstance(pens, wx.Pen): - pens = [pens] - elif len(pens) != len(points): - raise ValueError('points and pens must have same length') - return self._DrawPointList(points, pens, []) - - - def DrawLineList(self, lines, pens=None): - if pens is None: - pens = [] - elif isinstance(pens, wx.Pen): - pens = [pens] - elif len(pens) != len(lines): - raise ValueError('lines and pens must have same length') - return self._DrawLineList(lines, pens, []) - - - def DrawRectangleList(self, rectangles, pens=None, brushes=None): - if pens is None: - pens = [] - elif isinstance(pens, wx.Pen): - pens = [pens] - elif len(pens) != len(rectangles): - raise ValueError('rectangles and pens must have same length') - if brushes is None: - brushes = [] - elif isinstance(brushes, wx.Brush): - brushes = [brushes] - elif len(brushes) != len(rectangles): - raise ValueError('rectangles and brushes must have same length') - return self._DrawRectangleList(rectangles, pens, brushes) - - - def DrawEllipseList(self, ellipses, pens=None, brushes=None): - if pens is None: - pens = [] - elif isinstance(pens, wx.Pen): - pens = [pens] - elif len(pens) != len(ellipses): - raise ValueError('ellipses and pens must have same length') - if brushes is None: - brushes = [] - elif isinstance(brushes, wx.Brush): - brushes = [brushes] - elif len(brushes) != len(ellipses): - raise ValueError('ellipses and brushes must have same length') - return self._DrawEllipseList(ellipses, pens, brushes) - - - def DrawPolygonList(self, polygons, pens=None, brushes=None): - ## Note: This does not currently support fill style or offset - ## you can always use the non-List version if need be. - if pens is None: - pens = [] - elif isinstance(pens, wx.Pen): - pens = [pens] - elif len(pens) != len(polygons): - raise ValueError('polygons and pens must have same length') - if brushes is None: - brushes = [] - elif isinstance(brushes, wx.Brush): - brushes = [brushes] - elif len(brushes) != len(polygons): - raise ValueError('polygons and brushes must have same length') - return self._DrawPolygonList(polygons, pens, brushes) - - - def DrawTextList(self, textList, coords, foregrounds = None, backgrounds = None, fonts = None): - ## NOTE: this does not currently support changing the font - ## Make sure you set Background mode to wxSolid (DC.SetBackgroundMode) - ## If you want backgounds to do anything. - if type(textList) == type(''): - textList = [textList] - elif len(textList) != len(coords): - raise ValueError('textlist and coords must have same length') - if foregrounds is None: - foregrounds = [] - elif isinstance(foregrounds, wx.Colour): - foregrounds = [foregrounds] - elif len(foregrounds) != len(coords): - raise ValueError('foregrounds and coords must have same length') - if backgrounds is None: - backgrounds = [] - elif isinstance(backgrounds, wx.Colour): - backgrounds = [backgrounds] - elif len(backgrounds) != len(coords): - raise ValueError('backgrounds and coords must have same length') - return self._DrawTextList(textList, coords, foregrounds, backgrounds) - - -class DCPtr(DC): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = DC -_gdi.DC_swigregister(DCPtr) - -#--------------------------------------------------------------------------- - -class MemoryDC(DC): - def __repr__(self): - return "<%s.%s; proxy of C++ wxMemoryDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> MemoryDC""" - newobj = _gdi.new_MemoryDC(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def SelectObject(*args, **kwargs): - """SelectObject(self, Bitmap bitmap)""" - return _gdi.MemoryDC_SelectObject(*args, **kwargs) - - -class MemoryDCPtr(MemoryDC): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = MemoryDC -_gdi.MemoryDC_swigregister(MemoryDCPtr) - -def MemoryDCFromDC(*args, **kwargs): - """MemoryDCFromDC(DC oldDC) -> MemoryDC""" - val = _gdi.new_MemoryDCFromDC(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -class BufferedDC(MemoryDC): - def __repr__(self): - return "<%s.%s; proxy of C++ wxBufferedDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args): - """ - __init__(self, DC dc, Bitmap buffer) -> BufferedDC - __init__(self, DC dc, Size area) -> BufferedDC - """ - newobj = _gdi.new_BufferedDC(*args) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._dc = args[0] # save a ref so the other dc will not be deleted before self - - def __del__(self, destroy=_gdi.delete_BufferedDC): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def UnMask(*args, **kwargs): - """UnMask(self)""" - return _gdi.BufferedDC_UnMask(*args, **kwargs) - - -class BufferedDCPtr(BufferedDC): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = BufferedDC -_gdi.BufferedDC_swigregister(BufferedDCPtr) - -def BufferedDCInternalBuffer(*args): - """BufferedDCInternalBuffer(DC dc, Size area) -> BufferedDC""" - val = _gdi.new_BufferedDCInternalBuffer(*args) - val.thisown = 1 - val._dc = args[0] # save a ref so the other dc will not be deleted before self - return val - -class BufferedPaintDC(BufferedDC): - def __repr__(self): - return "<%s.%s; proxy of C++ wxBufferedPaintDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Window window, Bitmap buffer=NullBitmap) -> BufferedPaintDC""" - newobj = _gdi.new_BufferedPaintDC(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class BufferedPaintDCPtr(BufferedPaintDC): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = BufferedPaintDC -_gdi.BufferedPaintDC_swigregister(BufferedPaintDCPtr) - -#--------------------------------------------------------------------------- - -class ScreenDC(DC): - def __repr__(self): - return "<%s.%s; proxy of C++ wxScreenDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> ScreenDC""" - newobj = _gdi.new_ScreenDC(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def StartDrawingOnTopWin(*args, **kwargs): - """StartDrawingOnTopWin(self, Window window) -> bool""" - return _gdi.ScreenDC_StartDrawingOnTopWin(*args, **kwargs) - - def StartDrawingOnTop(*args, **kwargs): - """StartDrawingOnTop(self, Rect rect=None) -> bool""" - return _gdi.ScreenDC_StartDrawingOnTop(*args, **kwargs) - - def EndDrawingOnTop(*args, **kwargs): - """EndDrawingOnTop(self) -> bool""" - return _gdi.ScreenDC_EndDrawingOnTop(*args, **kwargs) - - -class ScreenDCPtr(ScreenDC): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ScreenDC -_gdi.ScreenDC_swigregister(ScreenDCPtr) - -#--------------------------------------------------------------------------- - -class ClientDC(DC): - def __repr__(self): - return "<%s.%s; proxy of C++ wxClientDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Window win) -> ClientDC""" - newobj = _gdi.new_ClientDC(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class ClientDCPtr(ClientDC): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ClientDC -_gdi.ClientDC_swigregister(ClientDCPtr) - -#--------------------------------------------------------------------------- - -class PaintDC(DC): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPaintDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Window win) -> PaintDC""" - newobj = _gdi.new_PaintDC(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class PaintDCPtr(PaintDC): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PaintDC -_gdi.PaintDC_swigregister(PaintDCPtr) - -#--------------------------------------------------------------------------- - -class WindowDC(DC): - def __repr__(self): - return "<%s.%s; proxy of C++ wxWindowDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Window win) -> WindowDC""" - newobj = _gdi.new_WindowDC(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class WindowDCPtr(WindowDC): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = WindowDC -_gdi.WindowDC_swigregister(WindowDCPtr) - -#--------------------------------------------------------------------------- - -class MirrorDC(DC): - def __repr__(self): - return "<%s.%s; proxy of C++ wxMirrorDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, DC dc, bool mirror) -> MirrorDC""" - newobj = _gdi.new_MirrorDC(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class MirrorDCPtr(MirrorDC): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = MirrorDC -_gdi.MirrorDC_swigregister(MirrorDCPtr) - -#--------------------------------------------------------------------------- - -class PostScriptDC(DC): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPostScriptDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, wxPrintData printData) -> PostScriptDC""" - newobj = _gdi.new_PostScriptDC(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetPrintData(*args, **kwargs): - """GetPrintData(self) -> wxPrintData""" - return _gdi.PostScriptDC_GetPrintData(*args, **kwargs) - - def SetPrintData(*args, **kwargs): - """SetPrintData(self, wxPrintData data)""" - return _gdi.PostScriptDC_SetPrintData(*args, **kwargs) - - def SetResolution(*args, **kwargs): - """PostScriptDC.SetResolution(int ppi)""" - return _gdi.PostScriptDC_SetResolution(*args, **kwargs) - - SetResolution = staticmethod(SetResolution) - def GetResolution(*args, **kwargs): - """PostScriptDC.GetResolution() -> int""" - return _gdi.PostScriptDC_GetResolution(*args, **kwargs) - - GetResolution = staticmethod(GetResolution) - -class PostScriptDCPtr(PostScriptDC): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PostScriptDC -_gdi.PostScriptDC_swigregister(PostScriptDCPtr) - -def PostScriptDC_SetResolution(*args, **kwargs): - """PostScriptDC_SetResolution(int ppi)""" - return _gdi.PostScriptDC_SetResolution(*args, **kwargs) - -def PostScriptDC_GetResolution(*args, **kwargs): - """PostScriptDC_GetResolution() -> int""" - return _gdi.PostScriptDC_GetResolution(*args, **kwargs) - -#--------------------------------------------------------------------------- - -class MetaFile(core.Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxMetaFile instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, String filename=EmptyString) -> MetaFile""" - newobj = _gdi.new_MetaFile(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_gdi.delete_MetaFile): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Ok(*args, **kwargs): - """Ok(self) -> bool""" - return _gdi.MetaFile_Ok(*args, **kwargs) - - def SetClipboard(*args, **kwargs): - """SetClipboard(self, int width=0, int height=0) -> bool""" - return _gdi.MetaFile_SetClipboard(*args, **kwargs) - - def GetSize(*args, **kwargs): - """GetSize(self) -> Size""" - return _gdi.MetaFile_GetSize(*args, **kwargs) - - def GetWidth(*args, **kwargs): - """GetWidth(self) -> int""" - return _gdi.MetaFile_GetWidth(*args, **kwargs) - - def GetHeight(*args, **kwargs): - """GetHeight(self) -> int""" - return _gdi.MetaFile_GetHeight(*args, **kwargs) - - def __nonzero__(self): return self.Ok() - -class MetaFilePtr(MetaFile): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = MetaFile -_gdi.MetaFile_swigregister(MetaFilePtr) - -class MetaFileDC(DC): - def __repr__(self): - return "<%s.%s; proxy of C++ wxMetaFileDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, String filename=EmptyString, int width=0, int height=0, - String description=EmptyString) -> MetaFileDC - """ - newobj = _gdi.new_MetaFileDC(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def Close(*args, **kwargs): - """Close(self) -> MetaFile""" - return _gdi.MetaFileDC_Close(*args, **kwargs) - - -class MetaFileDCPtr(MetaFileDC): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = MetaFileDC -_gdi.MetaFileDC_swigregister(MetaFileDCPtr) - -class PrinterDC(DC): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPrinterDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, wxPrintData printData) -> PrinterDC""" - newobj = _gdi.new_PrinterDC(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class PrinterDCPtr(PrinterDC): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PrinterDC -_gdi.PrinterDC_swigregister(PrinterDCPtr) - -class DC_old(DC): - """DC class that has methods with 2.4 compatible parameters.""" - FloodFill = DC.FloodFillXY - GetPixel = DC.GetPixelXY - DrawLine = DC.DrawLineXY - CrossHair = DC.CrossHairXY - DrawArc = DC.DrawArcXY - DrawCheckMark = DC.DrawCheckMarkXY - DrawEllipticArc = DC.DrawEllipticArcXY - DrawPoint = DC.DrawPointXY - DrawRectangle = DC.DrawRectangleXY - DrawRoundedRectangle = DC.DrawRoundedRectangleXY - DrawCircle = DC.DrawCircleXY - DrawEllipse = DC.DrawEllipseXY - DrawIcon = DC.DrawIconXY - DrawBitmap = DC.DrawBitmapXY - DrawText = DC.DrawTextXY - DrawRotatedText = DC.DrawRotatedTextXY - Blit = DC.BlitXY - -class MemoryDC_old(MemoryDC): - """DC class that has methods with 2.4 compatible parameters.""" - FloodFill = MemoryDC.FloodFillXY - GetPixel = MemoryDC.GetPixelXY - DrawLine = MemoryDC.DrawLineXY - CrossHair = MemoryDC.CrossHairXY - DrawArc = MemoryDC.DrawArcXY - DrawCheckMark = MemoryDC.DrawCheckMarkXY - DrawEllipticArc = MemoryDC.DrawEllipticArcXY - DrawPoint = MemoryDC.DrawPointXY - DrawRectangle = MemoryDC.DrawRectangleXY - DrawRoundedRectangle = MemoryDC.DrawRoundedRectangleXY - DrawCircle = MemoryDC.DrawCircleXY - DrawEllipse = MemoryDC.DrawEllipseXY - DrawIcon = MemoryDC.DrawIconXY - DrawBitmap = MemoryDC.DrawBitmapXY - DrawText = MemoryDC.DrawTextXY - DrawRotatedText = MemoryDC.DrawRotatedTextXY - Blit = MemoryDC.BlitXY - -class BufferedDC_old(BufferedDC): - """DC class that has methods with 2.4 compatible parameters.""" - FloodFill = BufferedDC.FloodFillXY - GetPixel = BufferedDC.GetPixelXY - DrawLine = BufferedDC.DrawLineXY - CrossHair = BufferedDC.CrossHairXY - DrawArc = BufferedDC.DrawArcXY - DrawCheckMark = BufferedDC.DrawCheckMarkXY - DrawEllipticArc = BufferedDC.DrawEllipticArcXY - DrawPoint = BufferedDC.DrawPointXY - DrawRectangle = BufferedDC.DrawRectangleXY - DrawRoundedRectangle = BufferedDC.DrawRoundedRectangleXY - DrawCircle = BufferedDC.DrawCircleXY - DrawEllipse = BufferedDC.DrawEllipseXY - DrawIcon = BufferedDC.DrawIconXY - DrawBitmap = BufferedDC.DrawBitmapXY - DrawText = BufferedDC.DrawTextXY - DrawRotatedText = BufferedDC.DrawRotatedTextXY - Blit = BufferedDC.BlitXY - -class BufferedPaintDC_old(BufferedPaintDC): - """DC class that has methods with 2.4 compatible parameters.""" - FloodFill = BufferedPaintDC.FloodFillXY - GetPixel = BufferedPaintDC.GetPixelXY - DrawLine = BufferedPaintDC.DrawLineXY - CrossHair = BufferedPaintDC.CrossHairXY - DrawArc = BufferedPaintDC.DrawArcXY - DrawCheckMark = BufferedPaintDC.DrawCheckMarkXY - DrawEllipticArc = BufferedPaintDC.DrawEllipticArcXY - DrawPoint = BufferedPaintDC.DrawPointXY - DrawRectangle = BufferedPaintDC.DrawRectangleXY - DrawRoundedRectangle = BufferedPaintDC.DrawRoundedRectangleXY - DrawCircle = BufferedPaintDC.DrawCircleXY - DrawEllipse = BufferedPaintDC.DrawEllipseXY - DrawIcon = BufferedPaintDC.DrawIconXY - DrawBitmap = BufferedPaintDC.DrawBitmapXY - DrawText = BufferedPaintDC.DrawTextXY - DrawRotatedText = BufferedPaintDC.DrawRotatedTextXY - Blit = BufferedPaintDC.BlitXY - -class ScreenDC_old(ScreenDC): - """DC class that has methods with 2.4 compatible parameters.""" - FloodFill = ScreenDC.FloodFillXY - GetPixel = ScreenDC.GetPixelXY - DrawLine = ScreenDC.DrawLineXY - CrossHair = ScreenDC.CrossHairXY - DrawArc = ScreenDC.DrawArcXY - DrawCheckMark = ScreenDC.DrawCheckMarkXY - DrawEllipticArc = ScreenDC.DrawEllipticArcXY - DrawPoint = ScreenDC.DrawPointXY - DrawRectangle = ScreenDC.DrawRectangleXY - DrawRoundedRectangle = ScreenDC.DrawRoundedRectangleXY - DrawCircle = ScreenDC.DrawCircleXY - DrawEllipse = ScreenDC.DrawEllipseXY - DrawIcon = ScreenDC.DrawIconXY - DrawBitmap = ScreenDC.DrawBitmapXY - DrawText = ScreenDC.DrawTextXY - DrawRotatedText = ScreenDC.DrawRotatedTextXY - Blit = ScreenDC.BlitXY - -class ClientDC_old(ClientDC): - """DC class that has methods with 2.4 compatible parameters.""" - FloodFill = ClientDC.FloodFillXY - GetPixel = ClientDC.GetPixelXY - DrawLine = ClientDC.DrawLineXY - CrossHair = ClientDC.CrossHairXY - DrawArc = ClientDC.DrawArcXY - DrawCheckMark = ClientDC.DrawCheckMarkXY - DrawEllipticArc = ClientDC.DrawEllipticArcXY - DrawPoint = ClientDC.DrawPointXY - DrawRectangle = ClientDC.DrawRectangleXY - DrawRoundedRectangle = ClientDC.DrawRoundedRectangleXY - DrawCircle = ClientDC.DrawCircleXY - DrawEllipse = ClientDC.DrawEllipseXY - DrawIcon = ClientDC.DrawIconXY - DrawBitmap = ClientDC.DrawBitmapXY - DrawText = ClientDC.DrawTextXY - DrawRotatedText = ClientDC.DrawRotatedTextXY - Blit = ClientDC.BlitXY - -class PaintDC_old(PaintDC): - """DC class that has methods with 2.4 compatible parameters.""" - FloodFill = PaintDC.FloodFillXY - GetPixel = PaintDC.GetPixelXY - DrawLine = PaintDC.DrawLineXY - CrossHair = PaintDC.CrossHairXY - DrawArc = PaintDC.DrawArcXY - DrawCheckMark = PaintDC.DrawCheckMarkXY - DrawEllipticArc = PaintDC.DrawEllipticArcXY - DrawPoint = PaintDC.DrawPointXY - DrawRectangle = PaintDC.DrawRectangleXY - DrawRoundedRectangle = PaintDC.DrawRoundedRectangleXY - DrawCircle = PaintDC.DrawCircleXY - DrawEllipse = PaintDC.DrawEllipseXY - DrawIcon = PaintDC.DrawIconXY - DrawBitmap = PaintDC.DrawBitmapXY - DrawText = PaintDC.DrawTextXY - DrawRotatedText = PaintDC.DrawRotatedTextXY - Blit = PaintDC.BlitXY - -class WindowDC_old(WindowDC): - """DC class that has methods with 2.4 compatible parameters.""" - FloodFill = WindowDC.FloodFillXY - GetPixel = WindowDC.GetPixelXY - DrawLine = WindowDC.DrawLineXY - CrossHair = WindowDC.CrossHairXY - DrawArc = WindowDC.DrawArcXY - DrawCheckMark = WindowDC.DrawCheckMarkXY - DrawEllipticArc = WindowDC.DrawEllipticArcXY - DrawPoint = WindowDC.DrawPointXY - DrawRectangle = WindowDC.DrawRectangleXY - DrawRoundedRectangle = WindowDC.DrawRoundedRectangleXY - DrawCircle = WindowDC.DrawCircleXY - DrawEllipse = WindowDC.DrawEllipseXY - DrawIcon = WindowDC.DrawIconXY - DrawBitmap = WindowDC.DrawBitmapXY - DrawText = WindowDC.DrawTextXY - DrawRotatedText = WindowDC.DrawRotatedTextXY - Blit = WindowDC.BlitXY - -class MirrorDC_old(MirrorDC): - """DC class that has methods with 2.4 compatible parameters.""" - FloodFill = MirrorDC.FloodFillXY - GetPixel = MirrorDC.GetPixelXY - DrawLine = MirrorDC.DrawLineXY - CrossHair = MirrorDC.CrossHairXY - DrawArc = MirrorDC.DrawArcXY - DrawCheckMark = MirrorDC.DrawCheckMarkXY - DrawEllipticArc = MirrorDC.DrawEllipticArcXY - DrawPoint = MirrorDC.DrawPointXY - DrawRectangle = MirrorDC.DrawRectangleXY - DrawRoundedRectangle = MirrorDC.DrawRoundedRectangleXY - DrawCircle = MirrorDC.DrawCircleXY - DrawEllipse = MirrorDC.DrawEllipseXY - DrawIcon = MirrorDC.DrawIconXY - DrawBitmap = MirrorDC.DrawBitmapXY - DrawText = MirrorDC.DrawTextXY - DrawRotatedText = MirrorDC.DrawRotatedTextXY - Blit = MirrorDC.BlitXY - -class PostScriptDC_old(PostScriptDC): - """DC class that has methods with 2.4 compatible parameters.""" - FloodFill = PostScriptDC.FloodFillXY - GetPixel = PostScriptDC.GetPixelXY - DrawLine = PostScriptDC.DrawLineXY - CrossHair = PostScriptDC.CrossHairXY - DrawArc = PostScriptDC.DrawArcXY - DrawCheckMark = PostScriptDC.DrawCheckMarkXY - DrawEllipticArc = PostScriptDC.DrawEllipticArcXY - DrawPoint = PostScriptDC.DrawPointXY - DrawRectangle = PostScriptDC.DrawRectangleXY - DrawRoundedRectangle = PostScriptDC.DrawRoundedRectangleXY - DrawCircle = PostScriptDC.DrawCircleXY - DrawEllipse = PostScriptDC.DrawEllipseXY - DrawIcon = PostScriptDC.DrawIconXY - DrawBitmap = PostScriptDC.DrawBitmapXY - DrawText = PostScriptDC.DrawTextXY - DrawRotatedText = PostScriptDC.DrawRotatedTextXY - Blit = PostScriptDC.BlitXY - -class MetaFileDC_old(MetaFileDC): - """DC class that has methods with 2.4 compatible parameters.""" - FloodFill = MetaFileDC.FloodFillXY - GetPixel = MetaFileDC.GetPixelXY - DrawLine = MetaFileDC.DrawLineXY - CrossHair = MetaFileDC.CrossHairXY - DrawArc = MetaFileDC.DrawArcXY - DrawCheckMark = MetaFileDC.DrawCheckMarkXY - DrawEllipticArc = MetaFileDC.DrawEllipticArcXY - DrawPoint = MetaFileDC.DrawPointXY - DrawRectangle = MetaFileDC.DrawRectangleXY - DrawRoundedRectangle = MetaFileDC.DrawRoundedRectangleXY - DrawCircle = MetaFileDC.DrawCircleXY - DrawEllipse = MetaFileDC.DrawEllipseXY - DrawIcon = MetaFileDC.DrawIconXY - DrawBitmap = MetaFileDC.DrawBitmapXY - DrawText = MetaFileDC.DrawTextXY - DrawRotatedText = MetaFileDC.DrawRotatedTextXY - Blit = MetaFileDC.BlitXY - -class PrinterDC_old(PrinterDC): - """DC class that has methods with 2.4 compatible parameters.""" - FloodFill = PrinterDC.FloodFillXY - GetPixel = PrinterDC.GetPixelXY - DrawLine = PrinterDC.DrawLineXY - CrossHair = PrinterDC.CrossHairXY - DrawArc = PrinterDC.DrawArcXY - DrawCheckMark = PrinterDC.DrawCheckMarkXY - DrawEllipticArc = PrinterDC.DrawEllipticArcXY - DrawPoint = PrinterDC.DrawPointXY - DrawRectangle = PrinterDC.DrawRectangleXY - DrawRoundedRectangle = PrinterDC.DrawRoundedRectangleXY - DrawCircle = PrinterDC.DrawCircleXY - DrawEllipse = PrinterDC.DrawEllipseXY - DrawIcon = PrinterDC.DrawIconXY - DrawBitmap = PrinterDC.DrawBitmapXY - DrawText = PrinterDC.DrawTextXY - DrawRotatedText = PrinterDC.DrawRotatedTextXY - Blit = PrinterDC.BlitXY - -#--------------------------------------------------------------------------- - -IMAGELIST_DRAW_NORMAL = _gdi.IMAGELIST_DRAW_NORMAL -IMAGELIST_DRAW_TRANSPARENT = _gdi.IMAGELIST_DRAW_TRANSPARENT -IMAGELIST_DRAW_SELECTED = _gdi.IMAGELIST_DRAW_SELECTED -IMAGELIST_DRAW_FOCUSED = _gdi.IMAGELIST_DRAW_FOCUSED -IMAGE_LIST_NORMAL = _gdi.IMAGE_LIST_NORMAL -IMAGE_LIST_SMALL = _gdi.IMAGE_LIST_SMALL -IMAGE_LIST_STATE = _gdi.IMAGE_LIST_STATE -class ImageList(core.Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxImageList instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int width, int height, int mask=True, int initialCount=1) -> ImageList""" - newobj = _gdi.new_ImageList(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_gdi.delete_ImageList): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Add(*args, **kwargs): - """Add(self, Bitmap bitmap, Bitmap mask=NullBitmap) -> int""" - return _gdi.ImageList_Add(*args, **kwargs) - - def AddWithColourMask(*args, **kwargs): - """AddWithColourMask(self, Bitmap bitmap, Colour maskColour) -> int""" - return _gdi.ImageList_AddWithColourMask(*args, **kwargs) - - def AddIcon(*args, **kwargs): - """AddIcon(self, Icon icon) -> int""" - return _gdi.ImageList_AddIcon(*args, **kwargs) - - def Replace(*args, **kwargs): - """Replace(self, int index, Bitmap bitmap) -> bool""" - return _gdi.ImageList_Replace(*args, **kwargs) - - def Draw(*args, **kwargs): - """ - Draw(self, int index, DC dc, int x, int x, int flags=IMAGELIST_DRAW_NORMAL, - bool solidBackground=False) -> bool - """ - return _gdi.ImageList_Draw(*args, **kwargs) - - def GetImageCount(*args, **kwargs): - """GetImageCount(self) -> int""" - return _gdi.ImageList_GetImageCount(*args, **kwargs) - - def Remove(*args, **kwargs): - """Remove(self, int index) -> bool""" - return _gdi.ImageList_Remove(*args, **kwargs) - - def RemoveAll(*args, **kwargs): - """RemoveAll(self) -> bool""" - return _gdi.ImageList_RemoveAll(*args, **kwargs) - - def GetSize(*args, **kwargs): - """GetSize() -> (width,height)""" - return _gdi.ImageList_GetSize(*args, **kwargs) - - -class ImageListPtr(ImageList): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ImageList -_gdi.ImageList_swigregister(ImageListPtr) - -#--------------------------------------------------------------------------- - -class PenList(core.Object): - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxPenList instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def AddPen(*args, **kwargs): - """AddPen(self, Pen pen)""" - return _gdi.PenList_AddPen(*args, **kwargs) - - def FindOrCreatePen(*args, **kwargs): - """FindOrCreatePen(self, Colour colour, int width, int style) -> Pen""" - return _gdi.PenList_FindOrCreatePen(*args, **kwargs) - - def RemovePen(*args, **kwargs): - """RemovePen(self, Pen pen)""" - return _gdi.PenList_RemovePen(*args, **kwargs) - - def GetCount(*args, **kwargs): - """GetCount(self) -> int""" - return _gdi.PenList_GetCount(*args, **kwargs) - - -class PenListPtr(PenList): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PenList -_gdi.PenList_swigregister(PenListPtr) -cvar = _gdi.cvar -NORMAL_FONT = cvar.NORMAL_FONT -SMALL_FONT = cvar.SMALL_FONT -ITALIC_FONT = cvar.ITALIC_FONT -SWISS_FONT = cvar.SWISS_FONT -RED_PEN = cvar.RED_PEN -CYAN_PEN = cvar.CYAN_PEN -GREEN_PEN = cvar.GREEN_PEN -BLACK_PEN = cvar.BLACK_PEN -WHITE_PEN = cvar.WHITE_PEN -TRANSPARENT_PEN = cvar.TRANSPARENT_PEN -BLACK_DASHED_PEN = cvar.BLACK_DASHED_PEN -GREY_PEN = cvar.GREY_PEN -MEDIUM_GREY_PEN = cvar.MEDIUM_GREY_PEN -LIGHT_GREY_PEN = cvar.LIGHT_GREY_PEN -BLUE_BRUSH = cvar.BLUE_BRUSH -GREEN_BRUSH = cvar.GREEN_BRUSH -WHITE_BRUSH = cvar.WHITE_BRUSH -BLACK_BRUSH = cvar.BLACK_BRUSH -TRANSPARENT_BRUSH = cvar.TRANSPARENT_BRUSH -CYAN_BRUSH = cvar.CYAN_BRUSH -RED_BRUSH = cvar.RED_BRUSH -GREY_BRUSH = cvar.GREY_BRUSH -MEDIUM_GREY_BRUSH = cvar.MEDIUM_GREY_BRUSH -LIGHT_GREY_BRUSH = cvar.LIGHT_GREY_BRUSH -BLACK = cvar.BLACK -WHITE = cvar.WHITE -RED = cvar.RED -BLUE = cvar.BLUE -GREEN = cvar.GREEN -CYAN = cvar.CYAN -LIGHT_GREY = cvar.LIGHT_GREY -STANDARD_CURSOR = cvar.STANDARD_CURSOR -HOURGLASS_CURSOR = cvar.HOURGLASS_CURSOR -CROSS_CURSOR = cvar.CROSS_CURSOR -NullBitmap = cvar.NullBitmap -NullIcon = cvar.NullIcon -NullCursor = cvar.NullCursor -NullPen = cvar.NullPen -NullBrush = cvar.NullBrush -NullPalette = cvar.NullPalette -NullFont = cvar.NullFont -NullColour = cvar.NullColour - -class BrushList(core.Object): - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxBrushList instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def AddBrush(*args, **kwargs): - """AddBrush(self, Brush brush)""" - return _gdi.BrushList_AddBrush(*args, **kwargs) - - def FindOrCreateBrush(*args, **kwargs): - """FindOrCreateBrush(self, Colour colour, int style) -> Brush""" - return _gdi.BrushList_FindOrCreateBrush(*args, **kwargs) - - def RemoveBrush(*args, **kwargs): - """RemoveBrush(self, Brush brush)""" - return _gdi.BrushList_RemoveBrush(*args, **kwargs) - - def GetCount(*args, **kwargs): - """GetCount(self) -> int""" - return _gdi.BrushList_GetCount(*args, **kwargs) - - -class BrushListPtr(BrushList): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = BrushList -_gdi.BrushList_swigregister(BrushListPtr) - -class ColourDatabase(core.Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxColourDatabase instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> ColourDatabase""" - newobj = _gdi.new_ColourDatabase(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_gdi.delete_ColourDatabase): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Find(*args, **kwargs): - """Find(self, String name) -> Colour""" - return _gdi.ColourDatabase_Find(*args, **kwargs) - - def FindName(*args, **kwargs): - """FindName(self, Colour colour) -> String""" - return _gdi.ColourDatabase_FindName(*args, **kwargs) - - FindColour = Find - def AddColour(*args, **kwargs): - """AddColour(self, String name, Colour colour)""" - return _gdi.ColourDatabase_AddColour(*args, **kwargs) - - def Append(*args, **kwargs): - """Append(self, String name, int red, int green, int blue)""" - return _gdi.ColourDatabase_Append(*args, **kwargs) - - -class ColourDatabasePtr(ColourDatabase): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ColourDatabase -_gdi.ColourDatabase_swigregister(ColourDatabasePtr) - -class FontList(core.Object): - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxFontList instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def AddFont(*args, **kwargs): - """AddFont(self, Font font)""" - return _gdi.FontList_AddFont(*args, **kwargs) - - def FindOrCreateFont(*args, **kwargs): - """ - FindOrCreateFont(self, int point_size, int family, int style, int weight, - bool underline=False, String facename=EmptyString, - int encoding=FONTENCODING_DEFAULT) -> Font - """ - return _gdi.FontList_FindOrCreateFont(*args, **kwargs) - - def RemoveFont(*args, **kwargs): - """RemoveFont(self, Font font)""" - return _gdi.FontList_RemoveFont(*args, **kwargs) - - def GetCount(*args, **kwargs): - """GetCount(self) -> int""" - return _gdi.FontList_GetCount(*args, **kwargs) - - -class FontListPtr(FontList): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = FontList -_gdi.FontList_swigregister(FontListPtr) - -#--------------------------------------------------------------------------- - -NullColor = NullColour -#--------------------------------------------------------------------------- - -class Effects(core.Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxEffects instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> Effects""" - newobj = _gdi.new_Effects(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetHighlightColour(*args, **kwargs): - """GetHighlightColour(self) -> Colour""" - return _gdi.Effects_GetHighlightColour(*args, **kwargs) - - def GetLightShadow(*args, **kwargs): - """GetLightShadow(self) -> Colour""" - return _gdi.Effects_GetLightShadow(*args, **kwargs) - - def GetFaceColour(*args, **kwargs): - """GetFaceColour(self) -> Colour""" - return _gdi.Effects_GetFaceColour(*args, **kwargs) - - def GetMediumShadow(*args, **kwargs): - """GetMediumShadow(self) -> Colour""" - return _gdi.Effects_GetMediumShadow(*args, **kwargs) - - def GetDarkShadow(*args, **kwargs): - """GetDarkShadow(self) -> Colour""" - return _gdi.Effects_GetDarkShadow(*args, **kwargs) - - def SetHighlightColour(*args, **kwargs): - """SetHighlightColour(self, Colour c)""" - return _gdi.Effects_SetHighlightColour(*args, **kwargs) - - def SetLightShadow(*args, **kwargs): - """SetLightShadow(self, Colour c)""" - return _gdi.Effects_SetLightShadow(*args, **kwargs) - - def SetFaceColour(*args, **kwargs): - """SetFaceColour(self, Colour c)""" - return _gdi.Effects_SetFaceColour(*args, **kwargs) - - def SetMediumShadow(*args, **kwargs): - """SetMediumShadow(self, Colour c)""" - return _gdi.Effects_SetMediumShadow(*args, **kwargs) - - def SetDarkShadow(*args, **kwargs): - """SetDarkShadow(self, Colour c)""" - return _gdi.Effects_SetDarkShadow(*args, **kwargs) - - def Set(*args, **kwargs): - """ - Set(self, Colour highlightColour, Colour lightShadow, Colour faceColour, - Colour mediumShadow, Colour darkShadow) - """ - return _gdi.Effects_Set(*args, **kwargs) - - def DrawSunkenEdge(*args, **kwargs): - """DrawSunkenEdge(self, DC dc, Rect rect, int borderSize=1)""" - return _gdi.Effects_DrawSunkenEdge(*args, **kwargs) - - def TileBitmap(*args, **kwargs): - """TileBitmap(self, Rect rect, DC dc, Bitmap bitmap) -> bool""" - return _gdi.Effects_TileBitmap(*args, **kwargs) - - -class EffectsPtr(Effects): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Effects -_gdi.Effects_swigregister(EffectsPtr) -TheFontList = cvar.TheFontList -ThePenList = cvar.ThePenList -TheBrushList = cvar.TheBrushList -TheColourDatabase = cvar.TheColourDatabase - - diff --git a/wxPython/src/mac/gdi_wrap.cpp b/wxPython/src/mac/gdi_wrap.cpp deleted file mode 100644 index c68ffb309c..0000000000 --- a/wxPython/src/mac/gdi_wrap.cpp +++ /dev/null @@ -1,19835 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.22 - * - * This file is not intended to be easily readable and contains a number of - * coding conventions designed to improve portability and efficiency. Do not make - * changes to this file unless you know what you are doing--modify the SWIG - * interface file instead. - * ----------------------------------------------------------------------------- */ - -#define SWIGPYTHON -#define SWIG_NOINCLUDE - -#ifdef __cplusplus -template class SwigValueWrapper { - T *tt; -public: - SwigValueWrapper() : tt(0) { } - SwigValueWrapper(const SwigValueWrapper& rhs) : tt(new T(*rhs.tt)) { } - SwigValueWrapper(const T& t) : tt(new T(t)) { } - ~SwigValueWrapper() { delete tt; } - SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } - operator T&() const { return *tt; } - T *operator&() { return tt; } -private: - SwigValueWrapper& operator=(const SwigValueWrapper& rhs); -}; -#endif - - -#include "Python.h" - -/*************************************************************** -*- c -*- - * python/precommon.swg - * - * Rename all exported symbols from common.swg, to avoid symbol - * clashes if multiple interpreters are included - * - ************************************************************************/ - -#define SWIG_TypeRegister SWIG_Python_TypeRegister -#define SWIG_TypeCheck SWIG_Python_TypeCheck -#define SWIG_TypeCast SWIG_Python_TypeCast -#define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast -#define SWIG_TypeName SWIG_Python_TypeName -#define SWIG_TypeQuery SWIG_Python_TypeQuery -#define SWIG_TypeClientData SWIG_Python_TypeClientData -#define SWIG_PackData SWIG_Python_PackData -#define SWIG_UnpackData SWIG_Python_UnpackData - - -/*********************************************************************** - * common.swg for wxPython - * - * Include only the function prototypes and such from SWIG's common.swg, - * but not the runtime functions themselves. This helps keep the - * wrapper files clean of unnecessary stuff that is in the libpy.c file - * anyway. - * - ************************************************************************/ - -#include - -#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) -# if defined(_MSC_VER) || defined(__GNUC__) -# if defined(STATIC_LINKED) -# define SWIGEXPORT(a) a -# define SWIGIMPORT(a) extern a -# else -# define SWIGEXPORT(a) __declspec(dllexport) a -# define SWIGIMPORT(a) extern a -# endif -# else -# if defined(__BORLANDC__) -# define SWIGEXPORT(a) a _export -# define SWIGIMPORT(a) a _export -# else -# define SWIGEXPORT(a) a -# define SWIGIMPORT(a) a -# endif -# endif -#else -# define SWIGEXPORT(a) a -# define SWIGIMPORT(a) a -#endif - -#ifdef SWIG_GLOBAL -# define SWIGRUNTIME(a) SWIGEXPORT(a) -#else -# define SWIGRUNTIME(a) static a -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -typedef void *(*swig_converter_func)(void *); -typedef struct swig_type_info *(*swig_dycast_func)(void **); - -typedef struct swig_type_info { - const char *name; - swig_converter_func converter; - const char *str; - void *clientdata; - swig_dycast_func dcast; - struct swig_type_info *next; - struct swig_type_info *prev; -} swig_type_info; - - -SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); -SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); -SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); -SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); -SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); -SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); -SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); -SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); -SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); - - -#ifdef __cplusplus -} -#endif - -/*********************************************************************** - * pyrun.swg for wxPython - * - * Include only the function prototypes and such from SWIG's pyrun.swg, - * but not the runtime functions themselves. This helps keep the - * wrapper files clean of unnecessary stuff that is in the libpy.c file - * anyway. - * - ************************************************************************/ - -#include "Python.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define SWIG_PY_INT 1 -#define SWIG_PY_FLOAT 2 -#define SWIG_PY_STRING 3 -#define SWIG_PY_POINTER 4 -#define SWIG_PY_BINARY 5 - -/* Flags for pointer conversion */ - -#define SWIG_POINTER_EXCEPTION 0x1 -#define SWIG_POINTER_DISOWN 0x2 - -/* Exception handling in wrappers */ -#define SWIG_fail goto fail - -/* Constant information structure */ -typedef struct swig_const_info { - int type; - char *name; - long lvalue; - double dvalue; - void *pvalue; - swig_type_info **ptype; -} swig_const_info; - -/* Common SWIG API */ -#define SWIG_ConvertPtr(obj, pp, type, flags) \ - SWIG_Python_ConvertPtr(obj, pp, type, flags) -#define SWIG_NewPointerObj(p, type, flags) \ - SWIG_Python_NewPointerObj(p, type, flags) -#define SWIG_MustGetPtr(p, type, argnum, flags) \ - SWIG_Python_MustGetPtr(p, type, argnum, flags) - -/* Python-specific SWIG API */ -#define SWIG_newvarlink() \ - SWIG_Python_newvarlink() -#define SWIG_addvarlink(p, name, get_attr, set_attr) \ - SWIG_Python_addvarlink(p, name, get_attr, set_attr) -#define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ - SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) -#define SWIG_NewPackedObj(ptr, sz, type) \ - SWIG_Python_NewPackedObj(ptr, sz, type) -#define SWIG_InstallConstants(d, constants) \ - SWIG_Python_InstallConstants(d, constants) - -typedef double (*py_objasdbl_conv)(PyObject *obj); - -SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); -SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); -SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); -SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); -SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); -SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); -SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); -SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); - - -/* Contract support */ - -#define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else - -#ifdef __cplusplus -} -#endif - - -/* -------- TYPES TABLE (BEGIN) -------- */ - -#define SWIGTYPE_p_wxPostScriptDC swig_types[0] -#define SWIGTYPE_p_wxBrush swig_types[1] -#define SWIGTYPE_p_wxColour swig_types[2] -#define SWIGTYPE_p_wxDC swig_types[3] -#define SWIGTYPE_p_wxMirrorDC swig_types[4] -#define SWIGTYPE_p_byte swig_types[5] -#define SWIGTYPE_p_wxPyFontEnumerator swig_types[6] -#define SWIGTYPE_p_char swig_types[7] -#define SWIGTYPE_p_wxIconLocation swig_types[8] -#define SWIGTYPE_p_wxImage swig_types[9] -#define SWIGTYPE_p_wxMetaFileDC swig_types[10] -#define SWIGTYPE_p_wxMask swig_types[11] -#define SWIGTYPE_p_wxSize swig_types[12] -#define SWIGTYPE_p_wxFont swig_types[13] -#define SWIGTYPE_p_wxWindow swig_types[14] -#define SWIGTYPE_p_double swig_types[15] -#define SWIGTYPE_p_wxMemoryDC swig_types[16] -#define SWIGTYPE_p_wxFontMapper swig_types[17] -#define SWIGTYPE_p_wxEffects swig_types[18] -#define SWIGTYPE_p_wxNativeEncodingInfo swig_types[19] -#define SWIGTYPE_p_wxPalette swig_types[20] -#define SWIGTYPE_p_wxBitmap swig_types[21] -#define SWIGTYPE_p_wxObject swig_types[22] -#define SWIGTYPE_p_wxRegionIterator swig_types[23] -#define SWIGTYPE_p_wxRect swig_types[24] -#define SWIGTYPE_p_wxString swig_types[25] -#define SWIGTYPE_p_wxPrinterDC swig_types[26] -#define SWIGTYPE_p_wxIconBundle swig_types[27] -#define SWIGTYPE_p_wxPoint swig_types[28] -#define SWIGTYPE_p_wxDash swig_types[29] -#define SWIGTYPE_p_wxScreenDC swig_types[30] -#define SWIGTYPE_p_wxCursor swig_types[31] -#define SWIGTYPE_p_wxClientDC swig_types[32] -#define SWIGTYPE_p_wxBufferedDC swig_types[33] -#define SWIGTYPE_p_wxImageList swig_types[34] -#define SWIGTYPE_p_unsigned_char swig_types[35] -#define SWIGTYPE_p_wxGDIObject swig_types[36] -#define SWIGTYPE_p_wxIcon swig_types[37] -#define SWIGTYPE_p_wxLocale swig_types[38] -#define SWIGTYPE_p_wxRegion swig_types[39] -#define SWIGTYPE_p_wxConfigBase swig_types[40] -#define SWIGTYPE_p_wxLanguageInfo swig_types[41] -#define SWIGTYPE_p_wxWindowDC swig_types[42] -#define SWIGTYPE_p_wxPrintData swig_types[43] -#define SWIGTYPE_p_wxBrushList swig_types[44] -#define SWIGTYPE_p_wxFontList swig_types[45] -#define SWIGTYPE_p_wxPen swig_types[46] -#define SWIGTYPE_p_wxBufferedPaintDC swig_types[47] -#define SWIGTYPE_p_wxPaintDC swig_types[48] -#define SWIGTYPE_p_wxPenList swig_types[49] -#define SWIGTYPE_p_wxPyPen swig_types[50] -#define SWIGTYPE_p_int swig_types[51] -#define SWIGTYPE_p_wxMetaFile swig_types[52] -#define SWIGTYPE_p_wxNativeFontInfo swig_types[53] -#define SWIGTYPE_p_wxEncodingConverter swig_types[54] -#define SWIGTYPE_p_wxColourDatabase swig_types[55] -static swig_type_info *swig_types[57]; - -/* -------- TYPES TABLE (END) -------- */ - - -/*----------------------------------------------- - @(target):= _gdi.so - ------------------------------------------------*/ -#define SWIG_init init_gdi - -#define SWIG_name "_gdi" - -/* Auxiliar swig macros */ - -#ifdef __cplusplus -#define SWIGSTATICINLINE(a) static inline a -#define SWIGSTATIC(a) static a -#define swig_new_array(type, size) (new type[(size)]) -#define swig_delete_array(cptr) delete[] cptr -#define swig_const_cast(type,a) const_cast(a) -#define swig_static_cast(type,a) static_cast(a) -#define swig_reinterpret_cast(type,a) reinterpret_cast(a) - -#ifdef HAVE_NUMERIC_CAST -#define swig_numeric_cast(type,a) numeric_cast(a) -#else -#define swig_numeric_cast(type,a) static_cast(a) -#endif - -#else /* C case */ - -#define SWIGSTATICINLINE(a) static a -#define SWIGSTATIC(a) static a -#define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type))) -#define swig_delete_array(cptr) free((char*)cptr) -#define swig_const_cast(type,a) (type)(a) -#define swig_static_cast(type,a) (type)(a) -#define swig_reinterpret_cast(type,a) (type)(a) -#define swig_numeric_cast(type,a) (type)(a) - -#endif /* __cplusplus */ - - -#define SWIG_FromSignedChar PyInt_FromLong -#define SWIG_FromUnsignedChar PyInt_FromLong -#define SWIG_FromShort PyInt_FromLong -#define SWIG_FromUnsignedShort PyInt_FromLong -#define SWIG_FromInt PyInt_FromLong -#define SWIG_FromLong PyInt_FromLong -#define SWIG_FromFloat PyFloat_FromDouble -#define SWIG_FromDouble PyFloat_FromDouble -#define SWIG_FromFloat PyFloat_FromDouble -#define SWIG_FromDouble PyFloat_FromDouble - - -#include "wx/wxPython/wxPython.h" -#include "wx/wxPython/pyclasses.h" - - - static const wxString wxPyEmptyString(wxEmptyString); - -SWIGSTATICINLINE(bool) -SWIG_AsBool(PyObject *obj) -{ - return PyObject_IsTrue(obj) ? true : false; -} - - -SWIGSTATICINLINE(int) -SWIG_CheckBool(PyObject* obj) -{ - SWIG_AsBool(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - - -#include - - -SWIGSTATICINLINE(unsigned long) -SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type, - unsigned long max_value) -{ - if (!PyErr_Occurred()) { - if (value > max_value) { - PyObject *err = - PyString_FromFormat("value %ld is greater than '%s' minimum %ld", - value, type, max_value); - PyErr_SetObject(PyExc_OverflowError, err); - Py_DECREF(err); - } - } - return value; -} - - -SWIGSTATICINLINE(long) -SWIG_AsLong(PyObject * obj) -{ - if (PyNumber_Check(obj)) - return PyInt_AsLong(obj); - else { - PyObject* errmsg = PyString_FromFormat("Expected number, got %s", - obj->ob_type->tp_name); - PyErr_SetObject(PyExc_TypeError, errmsg); - Py_DECREF(errmsg); - return 0; - } -} - - -SWIGSTATICINLINE(unsigned long) -SWIG_AsUnsignedLong(PyObject * obj) -{ - if (PyLong_Check(obj)) { - return PyLong_AsUnsignedLong(obj); - } else { - long i = SWIG_AsLong(obj); - if ( !PyErr_Occurred() && (i < 0)) { - PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); - } - return i; - } -} - - -SWIGSTATICINLINE(unsigned char) -SWIG_AsUnsignedChar(PyObject *obj) -{ - return swig_numeric_cast(unsigned char, - SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), - "unsigned char", UCHAR_MAX)); -} - - -SWIGSTATICINLINE(int) -SWIG_CheckUnsignedChar(PyObject* obj) -{ - SWIG_AsUnsignedChar(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - - -SWIGSTATICINLINE(int) -SWIG_CheckUnsignedLong(PyObject* obj) -{ - SWIG_AsUnsignedLong(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - -PyObject *wxColour_Get(wxColour *self){ - PyObject* rv = PyTuple_New(3); - int red = -1; - int green = -1; - int blue = -1; - if (self->Ok()) { - red = self->Red(); - green = self->Green(); - blue = self->Blue(); - } - PyTuple_SetItem(rv, 0, PyInt_FromLong(red)); - PyTuple_SetItem(rv, 1, PyInt_FromLong(green)); - PyTuple_SetItem(rv, 2, PyInt_FromLong(blue)); - return rv; - } -unsigned long wxColour_GetRGB(wxColour *self){ - return self->Red() | (self->Green() << 8) | (self->Blue() << 16); - } - -SWIGSTATICINLINE(PyObject* ) -SWIG_FromUnsignedLong(unsigned long value) -{ - return (value > LONG_MAX) ? - PyLong_FromUnsignedLong(value) - : PyInt_FromLong(swig_numeric_cast(long,value)); -} - - -SWIGSTATICINLINE(long) -SWIG_CheckLongInRange(long value, const char* type, - long min_value, long max_value) -{ - if (!PyErr_Occurred()) { - if (value < min_value) { - PyObject *err = - PyString_FromFormat("value %ld is less than '%s' minimum %ld", - value, type, min_value); - - PyErr_SetObject(PyExc_OverflowError, err); - Py_DECREF(err); - } else if (value > max_value) { - PyObject *err = - PyString_FromFormat("value %ld is greater than '%s' maximum %ld", - value, type, max_value); - PyErr_SetObject(PyExc_OverflowError, err); - Py_DECREF(err); - } - } - return value; -} - - -#if INT_MAX != LONG_MAX -SWIGSTATICINLINE(int) -SWIG_AsInt(PyObject *obj) -{ - return swig_numeric_cast(int, - SWIG_CheckLongInRange(SWIG_AsLong(obj), - "int", INT_MIN, INT_MAX)); -} -#else -#define SWIG_AsInt SWIG_AsLong -#endif - - -SWIGSTATICINLINE(int) -SWIG_CheckInt(PyObject* obj) -{ - SWIG_AsInt(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - - -static PyObject* t_output_helper(PyObject* target, PyObject* o) { - PyObject* o2; - PyObject* o3; - - if (!target) { - target = o; - } else if (target == Py_None) { - Py_DECREF(Py_None); - target = o; - } else { - if (!PyTuple_Check(target)) { - o2 = target; - target = PyTuple_New(1); - PyTuple_SetItem(target, 0, o2); - } - o3 = PyTuple_New(1); - PyTuple_SetItem(o3, 0, o); - - o2 = target; - target = PySequence_Concat(o2, o3); - Py_DECREF(o2); - Py_DECREF(o3); - } - return target; -} - -PyObject *wxPen_GetDashes(wxPen *self){ - wxDash* dashes; - int count = self->GetDashes(&dashes); - bool blocked = wxPyBeginBlockThreads(); - PyObject* retval = PyList_New(0); - for (int x=0; x - - static char** ConvertListOfStrings(PyObject* listOfStrings) { - char** cArray = NULL; - int count; - - if (!PyList_Check(listOfStrings)) { - PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); - return NULL; - } - count = PyList_Size(listOfStrings); - cArray = new char*[count]; - - for(int x=0; xGetWidth(), self->GetHeight()); - return size; - } -void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){ - wxMask *mask = new wxMask(*self, colour); - self->SetMask(mask); - } -void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){ - self->SetWidth(size.x); - self->SetHeight(size.y); - } -bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : False; } -bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : True; } -wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){ - if ( !colour.Ok() ) - return new wxMask(bitmap, *wxBLACK); - else - return new wxMask(bitmap, colour); - } - -#include - -wxIcon *new_wxIcon(wxBitmap const &bmp){ - wxIcon* icon = new wxIcon(); - icon->CopyFromBitmap(bmp); - return icon; - } -wxIcon *new_wxIcon(PyObject *listOfStrings){ - char** cArray = NULL; - wxIcon* icon; - - cArray = ConvertListOfStrings(listOfStrings); - if (! cArray) - return NULL; - icon = new wxIcon(cArray); - delete [] cArray; - return icon; - } -wxIconLocation *new_wxIconLocation(wxString const *filename,int num){ - - - - return new wxIconLocation(*filename); - - } -void wxIconLocation_SetIndex(wxIconLocation *self,int num){ - - - - // do nothing - - } -int wxIconLocation_GetIndex(wxIconLocation *self){ - - - - return -1; - - } - -SWIGSTATICINLINE(int) -SWIG_CheckLong(PyObject* obj) -{ - SWIG_AsLong(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - -wxCursor *new_wxCursor(wxString const *cursorName,long type,int hotSpotX,int hotSpotY){ -#ifdef __WXGTK__ - wxCHECK_MSG(False, NULL, - wxT("wx.Cursor constructor not implemented for wxGTK, use wx.StockCursor, wx.CursorFromImage, or wx.CursorFromBits instead.")); -#else - return new wxCursor(*cursorName, type, hotSpotX, hotSpotY); -#endif - } - - -wxRegion *new_wxRegion(int points,wxPoint *points_array,int fillStyle){ - wxPyRaiseNotImplemented(); - return NULL; - } -void wxRegionIterator_Next(wxRegionIterator *self){ - (*self) ++; - } -bool wxRegionIterator___nonzero__(wxRegionIterator *self){ - return self->operator bool(); - } - -#include -#include -#include - -wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){ - return self->ToString(); - } - - wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) { - static wxNativeEncodingInfo info; - if ( wxGetNativeFontEncoding(encoding, &info) ) - return &info; - else - return NULL; - } - -PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){ - wxFontEncoding alt_enc; - if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) - return PyInt_FromLong(alt_enc); - else { - Py_INCREF(Py_None); - return Py_None; - } - } -wxFont *new_wxFont(wxString const &info){ - wxNativeFontInfo nfi; - nfi.FromString(info); - return new wxFont(nfi); - } -wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){ - return wxFont::New(pointSize, family, flags, face, encoding); - } -bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : False; } -bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : True; } - -class wxPyFontEnumerator : public wxFontEnumerator { -public: - wxPyFontEnumerator() {} - ~wxPyFontEnumerator() {} - - DEC_PYCALLBACK_BOOL_STRING(OnFacename); - DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); - - PYPRIVATE; -}; - -IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); -IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); - - -PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){ - wxArrayString* arr = self->GetEncodings(); - return wxArrayString2PyList_helper(*arr); - } -PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){ - wxArrayString* arr = self->GetFacenames(); - return wxArrayString2PyList_helper(*arr); - } - - - -#include "wx/wxPython/pydrawxxx.h" - -wxColour wxDC_GetPixelXY(wxDC *self,int x,int y){ - wxColour col; - self->GetPixel(x, y, &col); - return col; - } -wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){ - wxColour col; - self->GetPixel(pt, &col); - return col; - } - -SWIGSTATICINLINE(double) -SWIG_AsDouble(PyObject *obj) -{ - if (PyNumber_Check(obj)) - return PyFloat_AsDouble(obj); - else { - PyObject* errmsg = PyString_FromFormat("Expected number, got %s", - obj->ob_type->tp_name); - PyErr_SetObject(PyExc_TypeError, errmsg); - Py_DECREF(errmsg); - return 0; - } -} - - -SWIGSTATICINLINE(int) -SWIG_CheckDouble(PyObject* obj) -{ - SWIG_AsDouble(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - -wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){ - wxRect rv; - self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); - return rv; - } -wxRect wxDC_GetClippingRect(wxDC *self){ - wxRect rect; - self->GetClippingBox(rect); - return rect; - } -wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){ - wxArrayInt widths; - self->GetPartialTextExtents(text, widths); - return widths; - } -PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ - return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes); - } -PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ - return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes); - } -PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ - return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes); - } -PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ - return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes); - } -PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ - return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes); - } -PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){ - return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList); - } - -static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { - *x1 = dc->MinX(); - *y1 = dc->MinY(); - *x2 = dc->MaxX(); - *y2 = dc->MaxY(); -} - - -#include - - -#include - - -#include - - - -void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){ - self->AddColour(name, wxColour(red, green, blue)); - } - -#include - -#ifdef __cplusplus -extern "C" { -#endif -static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGDIObject *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGDIObject *)new wxGDIObject(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGDIObject *arg1 = (wxGDIObject *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGDIObject *arg1 = (wxGDIObject *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetVisible(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGDIObject *arg1 = (wxGDIObject *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "visible", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetVisible(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGDIObject *arg1 = (wxGDIObject *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->IsNull(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - unsigned char arg1 = (unsigned char) 0 ; - unsigned char arg2 = (unsigned char) 0 ; - unsigned char arg3 = (unsigned char) 0 ; - wxColour *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "red",(char *) "green",(char *) "blue", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail; - if (obj0) { - arg1 = (unsigned char) SWIG_AsUnsignedChar(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxColour *)new wxColour(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxColour *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "colorName", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxColour *)new wxColour((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - unsigned long arg1 ; - wxColour *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "colRGB", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail; - arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxColour *)new wxColour(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColour *arg1 = (wxColour *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColour *arg1 = (wxColour *) 0 ; - unsigned char result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (unsigned char)(arg1)->Red(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedChar((unsigned char)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColour *arg1 = (wxColour *) 0 ; - unsigned char result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (unsigned char)(arg1)->Green(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedChar((unsigned char)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColour *arg1 = (wxColour *) 0 ; - unsigned char result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (unsigned char)(arg1)->Blue(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedChar((unsigned char)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColour *arg1 = (wxColour *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Ok(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColour *arg1 = (wxColour *) 0 ; - unsigned char arg2 ; - unsigned char arg3 ; - unsigned char arg4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Set(arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColour *arg1 = (wxColour *) 0 ; - unsigned long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colRGB", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Set(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Colour_SetFromName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColour *arg1 = (wxColour *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colourName", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->InitFromName((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Colour_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColour *arg1 = (wxColour *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxColour const *)arg1)->GetPixel(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColour *arg1 = (wxColour *) 0 ; - wxColour *arg2 = 0 ; - bool result; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colour", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColour *arg1 = (wxColour *) 0 ; - wxColour *arg2 = 0 ; - bool result; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colour", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColour *arg1 = (wxColour *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxColour_Get(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Colour_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColour *arg1 = (wxColour *) 0 ; - unsigned long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (unsigned long)wxColour_GetRGB(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * Colour_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - unsigned char *arg2 = (unsigned char *) 0 ; - unsigned char *arg3 = (unsigned char *) 0 ; - unsigned char *arg4 = (unsigned char *) 0 ; - wxPalette *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPalette *arg1 = (wxPalette *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPalette *arg1 = (wxPalette *) 0 ; - byte arg2 ; - byte arg3 ; - byte arg4 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (byte) SWIG_AsUnsignedChar(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (byte) SWIG_AsUnsignedChar(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (byte) SWIG_AsUnsignedChar(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetPixel(arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPalette *arg1 = (wxPalette *) 0 ; - int arg2 ; - byte *arg3 = (byte *) 0 ; - byte *arg4 = (byte *) 0 ; - byte *arg5 = (byte *) 0 ; - bool result; - byte temp3 ; - byte temp4 ; - byte temp5 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pixel", NULL - }; - - arg3 = &temp3; - arg4 = &temp4; - arg5 = &temp5; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg4)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg5)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPalette *arg1 = (wxPalette *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Ok(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * Palette_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColour *arg1 = 0 ; - int arg2 = (int) 1 ; - int arg3 = (int) wxSOLID ; - wxPen *result; - wxColour temp1 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "colour",(char *) "width",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail; - { - arg1 = &temp1; - if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPen *)new wxPen(*arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPen *arg1 = (wxPen *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPen *arg1 = (wxPen *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetCap(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPen *arg1 = (wxPen *) 0 ; - wxColour result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetColour(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPen *arg1 = (wxPen *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetJoin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPen *arg1 = (wxPen *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetStyle(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPen *arg1 = (wxPen *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetWidth(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPen *arg1 = (wxPen *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Ok(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPen *arg1 = (wxPen *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "cap_style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetCap(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPen *arg1 = (wxPen *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colour", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetColour(*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPen *arg1 = (wxPen *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "join_style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetJoin(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPen *arg1 = (wxPen *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetStyle(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPen *arg1 = (wxPen *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "width", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetWidth(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPen *arg1 = (wxPen *) 0 ; - int arg2 ; - wxDash *arg3 = (wxDash *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "dashes", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = PyList_Size(obj1); - arg3 = (wxDash*)byte_LIST_helper(obj1); - if (arg3 == NULL) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDashes(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (arg3) delete [] arg3; - } - return resultobj; - fail: - { - if (arg3) delete [] arg3; - } - return NULL; -} - - -static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPen *arg1 = (wxPen *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxPen_GetDashes(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Pen___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPen *arg1 = (wxPen *) 0 ; - wxPen *arg2 = (wxPen *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Pen___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPen *arg1 = (wxPen *) 0 ; - wxPen *arg2 = (wxPen *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * Pen_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColour *arg1 = 0 ; - int arg2 = (int) 1 ; - int arg3 = (int) wxSOLID ; - wxPyPen *result; - wxColour temp1 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "colour",(char *) "width",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_PyPen",kwnames,&obj0,&obj1,&obj2)) goto fail; - { - arg1 = &temp1; - if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPen, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPen *arg1 = (wxPyPen *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPen *arg1 = (wxPyPen *) 0 ; - int arg2 ; - wxDash *arg3 = (wxDash *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "dashes", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = PyList_Size(obj1); - arg3 = (wxDash*)byte_LIST_helper(obj1); - if (arg3 == NULL) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDashes(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (arg3) delete [] arg3; - } - return resultobj; - fail: - { - if (arg3) delete [] arg3; - } - return NULL; -} - - -static PyObject * PyPen_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColour *arg1 = 0 ; - int arg2 = (int) wxSOLID ; - wxBrush *result; - wxColour temp1 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "colour",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail; - { - arg1 = &temp1; - if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBrush *arg1 = (wxBrush *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBrush *arg1 = (wxBrush *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "col", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetColour((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBrush *arg1 = (wxBrush *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetStyle(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBrush *arg1 = (wxBrush *) 0 ; - wxBitmap *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "stipple", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetStipple((wxBitmap const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBrush *arg1 = (wxBrush *) 0 ; - wxColour result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxBrush const *)arg1)->GetColour(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBrush *arg1 = (wxBrush *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxBrush const *)arg1)->GetStyle(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBrush *arg1 = (wxBrush *) 0 ; - wxBitmap *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBrush *arg1 = (wxBrush *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Ok(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Brush_MacGetTheme(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBrush *arg1 = (wxBrush *) 0 ; - short result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_MacGetTheme",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (short)(arg1)->MacGetTheme(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromShort((short)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Brush_MacSetTheme(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBrush *arg1 = (wxBrush *) 0 ; - short arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "macThemeBrush", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (short) SWIG_AsShort(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->MacSetTheme(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * Brush_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - int arg2 = (int) wxBITMAP_TYPE_ANY ; - wxBitmap *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "name",(char *) "type", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - if (obj1) { - arg2 = (wxBitmapType) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = (wxBitmap *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIcon *arg1 = 0 ; - wxBitmap *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "icon", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = 0 ; - int arg2 = (int) -1 ; - wxBitmap *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "image",(char *) "depth", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - PyObject *arg1 = (PyObject *) 0 ; - wxBitmap *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "listOfStrings", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail; - arg1 = obj0; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxBitmap *)new_wxBitmap(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - PyObject *arg1 = (PyObject *) 0 ; - int arg2 ; - int arg3 ; - int arg4 = (int) 1 ; - wxBitmap *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - arg1 = obj0; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_EmptyBitmap__SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - int arg1 ; - int arg2 ; - int arg3 = (int) -1 ; - wxBitmap *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO|O:new_EmptyBitmap",&obj0,&obj1,&obj2)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxBitmap *)new_wxBitmap__SWIG_0(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_EmptyBitmap__SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxSize *arg1 = 0 ; - int arg2 = (int) -1 ; - wxBitmap *result; - wxSize temp1 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"O|O:new_EmptyBitmap",&obj0,&obj1)) goto fail; - { - arg1 = &temp1; - if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxBitmap *)new_wxBitmap__SWIG_1((wxSize const &)*arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if ((argc >= 1) && (argc <= 2)) { - int _v; - { - _v = wxPySimple_typecheck(argv[0], wxT("wxSize"), 2); - } - if (_v) { - if (argc <= 1) { - return _wrap_new_EmptyBitmap__SWIG_1(self,args); - } - _v = SWIG_CheckInt(argv[1]); - if (_v) { - return _wrap_new_EmptyBitmap__SWIG_1(self,args); - } - } - } - if ((argc >= 2) && (argc <= 3)) { - int _v; - _v = SWIG_CheckInt(argv[0]); - if (_v) { - _v = SWIG_CheckInt(argv[1]); - if (_v) { - if (argc <= 2) { - return _wrap_new_EmptyBitmap__SWIG_0(self,args); - } - _v = SWIG_CheckInt(argv[2]); - if (_v) { - return _wrap_new_EmptyBitmap__SWIG_0(self,args); - } - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_EmptyBitmap'"); - return NULL; -} - - -static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = (wxBitmap *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Ok(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = (wxBitmap *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetWidth(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = (wxBitmap *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetHeight(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = (wxBitmap *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetDepth(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Bitmap_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = (wxBitmap *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxBitmap_GetSize(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = (wxBitmap *) 0 ; - SwigValueWrapper< wxImage > result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxBitmap const *)arg1)->ConvertToImage(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxImage * resultptr; - resultptr = new wxImage((wxImage &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = (wxBitmap *) 0 ; - wxMask *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMask *)((wxBitmap const *)arg1)->GetMask(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = (wxBitmap *) 0 ; - wxMask *arg2 = (wxMask *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "mask", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMask(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = (wxBitmap *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colour", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = (wxBitmap *) 0 ; - wxRect *arg2 = 0 ; - SwigValueWrapper< wxBitmap > result; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxBitmap * resultptr; - resultptr = new wxBitmap((wxBitmap &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = (wxBitmap *) 0 ; - wxString *arg2 = 0 ; - int arg3 ; - wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - arg3 = (wxBitmapType) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = (wxBitmap *) 0 ; - wxString *arg2 = 0 ; - int arg3 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name",(char *) "type", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - arg3 = (wxBitmapType) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = (wxBitmap *) 0 ; - wxIcon *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "icon", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = (wxBitmap *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetHeight(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = (wxBitmap *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "width", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetWidth(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = (wxBitmap *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "depth", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDepth(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Bitmap_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = (wxBitmap *) 0 ; - wxSize *arg2 = 0 ; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxBitmap_SetSize(arg1,(wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Bitmap___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = (wxBitmap *) 0 ; - wxBitmap *arg2 = (wxBitmap *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Bitmap___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = (wxBitmap *) 0 ; - wxBitmap *arg2 = (wxBitmap *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = 0 ; - wxColour const &arg2_defvalue = wxNullColour ; - wxColour *arg2 = (wxColour *) &arg2_defvalue ; - wxMask *result; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "bitmap",(char *) "colour", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if (obj1) { - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * Mask_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - int arg2 ; - int arg3 = (int) -1 ; - int arg4 = (int) -1 ; - wxIcon *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - arg2 = (wxBitmapType) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIcon *arg1 = (wxIcon *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIcon *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxIcon *)new wxIcon(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIconLocation *arg1 = 0 ; - wxIcon *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "loc", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = 0 ; - wxIcon *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "bmp", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - PyObject *arg1 = (PyObject *) 0 ; - wxIcon *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "listOfStrings", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail; - arg1 = obj0; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxIcon *)new_wxIcon(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIcon *arg1 = (wxIcon *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Ok(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIcon *arg1 = (wxIcon *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetWidth(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIcon *arg1 = (wxIcon *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetHeight(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIcon *arg1 = (wxIcon *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetDepth(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIcon *arg1 = (wxIcon *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "w", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetWidth(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIcon *arg1 = (wxIcon *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "h", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetHeight(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIcon *arg1 = (wxIcon *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "d", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDepth(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIcon *arg1 = (wxIcon *) 0 ; - wxBitmap *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bmp", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->CopyFromBitmap((wxBitmap const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * Icon_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = (wxString *) &wxPyEmptyString ; - int arg2 = (int) 0 ; - wxIconLocation *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "filename",(char *) "num", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1); - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIconLocation *arg1 = (wxIconLocation *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIconLocation *arg1 = (wxIconLocation *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxIconLocation const *)arg1)->IsOk(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIconLocation *arg1 = (wxIconLocation *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "filename", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFileName((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIconLocation *arg1 = (wxIconLocation *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIconLocation *arg1 = (wxIconLocation *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "num", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxIconLocation_SetIndex(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIconLocation *arg1 = (wxIconLocation *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxIconLocation_GetIndex(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIconBundle *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxIconBundle *)new wxIconBundle(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - long arg2 ; - wxIconBundle *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "file",(char *) "type", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIcon *arg1 = 0 ; - wxIconBundle *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "icon", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIconBundle *arg1 = (wxIconBundle *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIconBundle *arg1 = (wxIconBundle *) 0 ; - wxIcon *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "icon", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AddIcon((wxIcon const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIconBundle *arg1 = (wxIconBundle *) 0 ; - wxString *arg2 = 0 ; - long arg3 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "file",(char *) "type", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AddIcon((wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIconBundle *arg1 = (wxIconBundle *) 0 ; - wxSize *arg2 = 0 ; - wxIcon *result; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2); - result = (wxIcon *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxIcon* resultptr = new wxIcon(*result); - resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = (wxString *) 0 ; - long arg2 ; - int arg3 = (int) 0 ; - int arg4 = (int) 0 ; - wxCursor *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCursor *arg1 = (wxCursor *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - wxCursor *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxCursor *)new wxCursor(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = 0 ; - wxCursor *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "image", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxCursor *)new wxCursor((wxImage const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCursor *arg1 = (wxCursor *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Ok(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - int arg2 = (int) 0 ; - int arg3 = (int) 0 ; - int arg4 = (int) 0 ; - wxRegion *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = 0 ; - wxColour const &arg2_defvalue = wxNullColour ; - wxColour *arg2 = (wxColour *) &arg2_defvalue ; - int arg3 = (int) 0 ; - wxRegion *result; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_RegionFromBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if (obj1) { - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - wxPoint *arg2 = (wxPoint *) 0 ; - int arg3 = (int) wxWINDING_RULE ; - wxRegion *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "points",(char *) "fillStyle", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail; - { - arg2 = wxPoint_LIST_helper(obj0, &arg1); - if (arg2 == NULL) SWIG_fail; - } - if (obj1) { - arg3 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxRegion *)new_wxRegion(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); - { - if (arg2) delete [] arg2; - } - return resultobj; - fail: - { - if (arg2) delete [] arg2; - } - return NULL; -} - - -static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegion *arg1 = (wxRegion *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegion *arg1 = (wxRegion *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Clear(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegion *arg1 = (wxRegion *) 0 ; - int arg2 ; - int arg3 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->Contains(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegion *arg1 = (wxRegion *) 0 ; - wxPoint *arg2 = 0 ; - int result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->Contains((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegion *arg1 = (wxRegion *) 0 ; - wxRect *arg2 = 0 ; - int result; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->Contains((wxRect const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegion *arg1 = (wxRegion *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegion *arg1 = (wxRegion *) 0 ; - wxRect result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetBox(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxRect * resultptr; - resultptr = new wxRect((wxRect &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegion *arg1 = (wxRegion *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegion *arg1 = (wxRegion *) 0 ; - wxRect *arg2 = 0 ; - bool result; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Intersect((wxRect const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegion *arg1 = (wxRegion *) 0 ; - wxRegion *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "region", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Intersect((wxRegion const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegion *arg1 = (wxRegion *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->IsEmpty(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegion *arg1 = (wxRegion *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegion *arg1 = (wxRegion *) 0 ; - wxRect *arg2 = 0 ; - bool result; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Union((wxRect const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegion *arg1 = (wxRegion *) 0 ; - wxRegion *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "region", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Union((wxRegion const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegion *arg1 = (wxRegion *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegion *arg1 = (wxRegion *) 0 ; - wxRect *arg2 = 0 ; - bool result; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Subtract((wxRect const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegion *arg1 = (wxRegion *) 0 ; - wxRegion *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "region", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Subtract((wxRegion const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegion *arg1 = (wxRegion *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegion *arg1 = (wxRegion *) 0 ; - wxRect *arg2 = 0 ; - bool result; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Xor((wxRect const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegion *arg1 = (wxRegion *) 0 ; - wxRegion *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "region", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Xor((wxRegion const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegion *arg1 = (wxRegion *) 0 ; - SwigValueWrapper< wxBitmap > result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->ConvertToBitmap(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxBitmap * resultptr; - resultptr = new wxBitmap((wxBitmap &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegion *arg1 = (wxRegion *) 0 ; - wxBitmap *arg2 = 0 ; - wxColour const &arg3_defvalue = wxNullColour ; - wxColour *arg3 = (wxColour *) &arg3_defvalue ; - int arg4 = (int) 0 ; - bool result; - wxColour temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if (obj2) { - { - arg3 = &temp3; - if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * Region_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegion *arg1 = 0 ; - wxRegionIterator *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "region", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetX(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetY(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetW(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetWidth(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetH(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetHeight(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; - wxRect result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetRect(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxRect * resultptr; - resultptr = new wxRect((wxRect &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->HaveRects(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Reset(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxRegionIterator_Next(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxRegionIterator___nonzero__(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeFontInfo *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxNativeFontInfo *)new wxNativeFontInfo(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Init(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; - wxFont *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "font", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->InitFromFont((wxFont const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxNativeFontInfo const *)arg1)->GetStyle(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxNativeFontInfo const *)arg1)->GetWeight(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxNativeFontInfo const *)arg1)->GetFaceName(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxNativeFontInfo const *)arg1)->GetFamily(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pointsize", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPointSize(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxFontStyle) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetStyle((wxFontStyle )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "weight", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxFontWeight) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetWeight((wxFontWeight )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "underlined", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetUnderlined(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; - wxString arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "facename", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - wxString* sptr = wxString_in_helper(obj1); - if (sptr == NULL) SWIG_fail; - arg2 = *sptr; - delete sptr; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFaceName(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "family", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxFontFamily) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFamily((wxFontFamily )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "encoding", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxFontEncoding) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetEncoding((wxFontEncoding )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; - wxString *arg2 = 0 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "s", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->FromString((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxNativeFontInfo const *)arg1)->ToString(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxNativeFontInfo___str__(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 - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; - wxString *arg2 = 0 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "s", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->FromUserString((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxNativeFontInfo const *)arg1)->ToUserString(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; - wxString *arg2 = (wxString *) 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "facename", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (arg1) (arg1)->facename = *arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (wxString *)& ((arg1)->facename); - - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "encoding", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxFontEncoding) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->encoding = (wxFontEncoding )arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->encoding); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeEncodingInfo *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; - wxString *arg2 = 0 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "s", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->FromString((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxNativeEncodingInfo const *)arg1)->ToString(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - wxNativeEncodingInfo *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "encoding", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail; - arg1 = (wxFontEncoding) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeEncodingInfo *arg1 = 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "info", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontMapper *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFontMapper *)new wxFontMapper(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontMapper *arg1 = (wxFontMapper *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontMapper *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFontMapper *)wxFontMapper::Get(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontMapper *arg1 = (wxFontMapper *) 0 ; - wxFontMapper *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "mapper", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFontMapper *)wxFontMapper::Set(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontMapper *arg1 = (wxFontMapper *) 0 ; - wxString *arg2 = 0 ; - bool arg3 = (bool) True ; - int result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "charset",(char *) "interactive", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - size_t result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (size_t)wxFontMapper::GetSupportedEncodingsCount(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - size_t arg1 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail; - arg1 = (size_t) SWIG_AsUnsignedLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxFontMapper::GetEncoding(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "encoding", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail; - arg1 = (wxFontEncoding) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxFontMapper::GetEncodingName((wxFontEncoding )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 - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "encoding", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail; - arg1 = (wxFontEncoding) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxFontMapper::GetEncodingDescription((wxFontEncoding )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 - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - int result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxFontMapper::GetEncodingFromName((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontMapper *arg1 = (wxFontMapper *) 0 ; - wxConfigBase *arg2 = (wxConfigBase *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "config", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetConfig(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontMapper *arg1 = (wxFontMapper *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "prefix", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetConfigPath((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxFontMapper::GetDefaultConfigPath(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontMapper *arg1 = (wxFontMapper *) 0 ; - int arg2 ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - bool arg4 = (bool) True ; - PyObject *result; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxFontEncoding) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - if (obj3) { - arg4 = (bool) SWIG_AsBool(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontMapper *arg1 = (wxFontMapper *) 0 ; - int arg2 ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - bool result; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "encoding",(char *) "facename", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxFontEncoding) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontMapper *arg1 = (wxFontMapper *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDialogParent(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontMapper *arg1 = (wxFontMapper *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "title", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDialogTitle((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - int arg2 ; - int arg3 ; - int arg4 ; - bool arg5 = (bool) False ; - wxString const &arg6_defvalue = wxPyEmptyString ; - wxString *arg6 = (wxString *) &arg6_defvalue ; - int arg7 = (int) wxFONTENCODING_DEFAULT ; - wxFont *result; - bool temp6 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - if (obj4) { - arg5 = (bool) SWIG_AsBool(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - { - arg6 = wxString_in_helper(obj5); - if (arg6 == NULL) SWIG_fail; - temp6 = True; - } - } - if (obj6) { - arg7 = (wxFontEncoding) SWIG_AsInt(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); - { - if (temp6) - delete arg6; - } - return resultobj; - fail: - { - if (temp6) - delete arg6; - } - return NULL; -} - - -static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeFontInfo *arg1 = 0 ; - wxFont *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "info", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxFont *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "info", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFont *)new_wxFont((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - int arg2 ; - int arg3 = (int) wxFONTFLAG_DEFAULT ; - wxString const &arg4_defvalue = wxPyEmptyString ; - wxString *arg4 = (wxString *) &arg4_defvalue ; - int arg5 = (int) wxFONTENCODING_DEFAULT ; - wxFont *result; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - arg2 = (wxFontFamily) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - } - if (obj4) { - arg5 = (wxFontEncoding) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxFont const *)arg1)->Ok(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - wxFont *arg2 = (wxFont *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - wxFont *arg2 = (wxFont *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxFont const *)arg1)->GetPointSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxFont const *)arg1)->GetFamily(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxFont const *)arg1)->GetStyle(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxFont const *)arg1)->GetWeight(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxFont const *)arg1)->GetUnderlined(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxFont const *)arg1)->GetFaceName(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxFont const *)arg1)->GetEncoding(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - wxNativeFontInfo *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxFont const *)arg1)->IsFixedWidth(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxFont const *)arg1)->GetNativeFontInfoDesc(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pointSize", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPointSize(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "family", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFamily(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetStyle(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "weight", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetWeight(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "faceName", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFaceName((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "underlined", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetUnderlined(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "encoding", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxFontEncoding) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetEncoding((wxFontEncoding )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - wxNativeFontInfo *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "info", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "info", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetNativeFontInfo((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "info", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxFont const *)arg1)->GetFamilyString(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxFont const *)arg1)->GetStyleString(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxFont const *)arg1)->GetWeightString(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - bool arg2 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "no", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetNoAntiAliasing(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetNoAntiAliasing(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxFont::GetDefaultEncoding(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "encoding", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail; - arg1 = (wxFontEncoding) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxFont::SetDefaultEncoding((wxFontEncoding )arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * Font_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFontEnumerator *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyFontEnumerator *)new wxPyFontEnumerator(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - bool arg4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - arg4 = (bool) SWIG_AsBool(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; - int arg2 = (int) wxFONTENCODING_SYSTEM ; - bool arg3 = (bool) False ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (wxFontEncoding) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; - wxString const &arg2_defvalue = wxPyEmptyString ; - wxString *arg2 = (wxString *) &arg2_defvalue ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "facename", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "Language", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->Language = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->Language); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; - wxString *arg2 = (wxString *) 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "CanonicalName", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (arg1) (arg1)->CanonicalName = *arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (wxString *)& ((arg1)->CanonicalName); - - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; - wxString *arg2 = (wxString *) 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "Description", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (arg1) (arg1)->Description = *arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (wxString *)& ((arg1)->Description); - - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) wxLANGUAGE_DEFAULT ; - int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; - wxLocale *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "language",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxLocale *)new wxLocale(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLocale *arg1 = (wxLocale *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLocale *arg1 = (wxLocale *) 0 ; - wxString *arg2 = 0 ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - wxString const &arg4_defvalue = wxPyEmptyString ; - wxString *arg4 = (wxString *) &arg4_defvalue ; - bool arg5 = (bool) True ; - bool arg6 = (bool) False ; - bool result; - bool temp2 = False ; - bool temp3 = False ; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - if (obj3) { - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - } - if (obj4) { - arg5 = (bool) SWIG_AsBool(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - arg6 = (bool) SWIG_AsBool(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLocale *arg1 = (wxLocale *) 0 ; - int arg2 = (int) wxLANGUAGE_DEFAULT ; - int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "language",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Init(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxLocale::GetSystemLanguage(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxLocale::GetSystemEncoding(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxLocale::GetSystemEncodingName(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLocale *arg1 = (wxLocale *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxLocale const *)arg1)->IsOk(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLocale *arg1 = (wxLocale *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxLocale const *)arg1)->GetLocale(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLocale *arg1 = (wxLocale *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxLocale const *)arg1)->GetLanguage(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLocale *arg1 = (wxLocale *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxLocale const *)arg1)->GetSysName(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLocale *arg1 = (wxLocale *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxLocale const *)arg1)->GetCanonicalName(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "prefix", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLocale *arg1 = (wxLocale *) 0 ; - wxString *arg2 = 0 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "szDomain", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->AddCatalog((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLocale *arg1 = (wxLocale *) 0 ; - wxString *arg2 = 0 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "szDomain", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - wxLanguageInfo *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "lang", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "lang", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxLocale::GetLanguageName(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 - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxLanguageInfo *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "locale", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0); - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLanguageInfo *arg1 = 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "info", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLocale::AddLanguage((wxLanguageInfo const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLocale *arg1 = (wxLocale *) 0 ; - wxString *arg2 = 0 ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - wxString result; - bool temp2 = False ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3); - - 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 (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLocale *arg1 = (wxLocale *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = ((wxLocale const *)arg1)->GetName(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * Locale_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLocale *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxLocale *)wxGetLocale(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxGetTranslation((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; -} - - -static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString *arg2 = 0 ; - size_t arg3 ; - wxString result; - bool temp1 = False ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - arg3 = (size_t) SWIG_AsUnsignedLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3); - - 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; - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if (argc == 1) { - int _v; - { - _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); - } - if (_v) { - return _wrap_GetTranslation__SWIG_0(self,args); - } - } - if (argc == 3) { - int _v; - { - _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); - } - if (_v) { - { - _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); - } - if (_v) { - _v = SWIG_CheckUnsignedLong(argv[2]); - if (_v) { - return _wrap_GetTranslation__SWIG_1(self,args); - } - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'"); - return NULL; -} - - -static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEncodingConverter *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxEncodingConverter *)new wxEncodingConverter(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; - int arg2 ; - int arg3 ; - int arg4 = (int) wxCONVERT_STRICT ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxFontEncoding) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (wxFontEncoding) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; - wxString *arg2 = 0 ; - wxString result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "input", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->Convert((wxString const &)*arg2); - - 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 (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - int arg2 = (int) wxPLATFORM_CURRENT ; - wxFontEncodingArray result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "enc",(char *) "platform", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail; - arg1 = (wxFontEncoding) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = PyList_New(0); - for (size_t i=0; i < (&result)->GetCount(); i++) { - PyObject* number = PyInt_FromLong((&result)->Item(i)); - PyList_Append(resultobj, number); - Py_DECREF(number); - } - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - wxFontEncodingArray result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "enc", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail; - arg1 = (wxFontEncoding) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = PyList_New(0); - for (size_t i=0; i < (&result)->GetCount(); i++) { - PyObject* number = PyInt_FromLong((&result)->Item(i)); - PyList_Append(resultobj, number); - Py_DECREF(number); - } - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "encIn",(char *) "encOut", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail; - arg1 = (wxFontEncoding) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - arg2 = (wxFontEncoding) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->BeginDrawing(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->EndDrawing(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int arg3 ; - wxColour *arg4 = 0 ; - int arg5 = (int) wxFLOOD_SURFACE ; - bool result; - wxColour temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFillXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - arg4 = &temp4; - if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxPoint *arg2 = 0 ; - wxColour *arg3 = 0 ; - int arg4 = (int) wxFLOOD_SURFACE ; - bool result; - wxPoint temp2 ; - wxColour temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - arg3 = &temp3; - if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int arg3 ; - wxColour result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixelXY",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDC_GetPixelXY(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxPoint *arg2 = 0 ; - wxColour result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLineXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawLine(arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint *arg3 = 0 ; - wxPoint temp2 ; - wxPoint temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt1",(char *) "pt2", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHairXY",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->CrossHair(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->CrossHair((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - arg6 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - arg7 = (int) SWIG_AsInt(obj6); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint *arg3 = 0 ; - wxPoint *arg4 = 0 ; - wxPoint temp2 ; - wxPoint temp3 ; - wxPoint temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMarkXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxRect *arg2 = 0 ; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawCheckMark((wxRect const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - double arg6 ; - double arg7 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - arg6 = (double) SWIG_AsDouble(obj5); - if (PyErr_Occurred()) SWIG_fail; - arg7 = (double) SWIG_AsDouble(obj6); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxPoint *arg2 = 0 ; - wxSize *arg3 = 0 ; - double arg4 ; - double arg5 ; - wxPoint temp2 ; - wxSize temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - arg3 = &temp3; - if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; - } - arg4 = (double) SWIG_AsDouble(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (double) SWIG_AsDouble(obj4); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPointXY",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawPoint(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawPoint((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxPoint *arg2 = 0 ; - wxSize *arg3 = 0 ; - wxPoint temp2 ; - wxSize temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt",(char *) "sz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - arg3 = &temp3; - if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxRect *arg2 = 0 ; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawRectangle((wxRect const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - double arg6 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - arg6 = (double) SWIG_AsDouble(obj5); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxPoint *arg2 = 0 ; - wxSize *arg3 = 0 ; - double arg4 ; - wxPoint temp2 ; - wxSize temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - arg3 = &temp3; - if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; - } - arg4 = (double) SWIG_AsDouble(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxRect *arg2 = 0 ; - double arg3 ; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "r",(char *) "radius", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - arg3 = (double) SWIG_AsDouble(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircleXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawCircle(arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxPoint *arg2 = 0 ; - int arg3 ; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt",(char *) "radius", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipseXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxPoint *arg2 = 0 ; - wxSize *arg3 = 0 ; - wxPoint temp2 ; - wxSize temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt",(char *) "sz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - arg3 = &temp3; - if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxRect *arg2 = 0 ; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawEllipse((wxRect const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxIcon *arg2 = 0 ; - int arg3 ; - int arg4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIconXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxIcon *arg2 = 0 ; - wxPoint *arg3 = 0 ; - wxPoint temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "icon",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxBitmap *arg2 = 0 ; - int arg3 ; - int arg4 ; - bool arg5 = (bool) False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - if (obj4) { - arg5 = (bool) SWIG_AsBool(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxBitmap *arg2 = 0 ; - wxPoint *arg3 = 0 ; - bool arg4 = (bool) False ; - wxPoint temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - if (obj3) { - arg4 = (bool) SWIG_AsBool(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxString *arg2 = 0 ; - int arg3 ; - int arg4 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawTextXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxString *arg2 = 0 ; - wxPoint *arg3 = 0 ; - bool temp2 = False ; - wxPoint temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "text",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxString *arg2 = 0 ; - int arg3 ; - int arg4 ; - double arg5 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (double) SWIG_AsDouble(obj4); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxString *arg2 = 0 ; - wxPoint *arg3 = 0 ; - double arg4 ; - bool temp2 = False ; - wxPoint temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - arg4 = (double) SWIG_AsDouble(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - wxDC *arg6 = (wxDC *) 0 ; - int arg7 ; - int arg8 ; - int arg9 = (int) wxCOPY ; - bool arg10 = (bool) False ; - int arg11 = (int) -1 ; - int arg12 = (int) -1 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - PyObject * obj9 = 0 ; - PyObject * obj10 = 0 ; - PyObject * obj11 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "xdest",(char *) "ydest",(char *) "width",(char *) "height",(char *) "source",(char *) "xsrc",(char *) "ysrc",(char *) "rop",(char *) "useMask",(char *) "xsrcMask",(char *) "ysrcMask", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO|OOOO:DC_BlitXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg7 = (int) SWIG_AsInt(obj6); - if (PyErr_Occurred()) SWIG_fail; - arg8 = (int) SWIG_AsInt(obj7); - if (PyErr_Occurred()) SWIG_fail; - if (obj8) { - arg9 = (int) SWIG_AsInt(obj8); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj9) { - arg10 = (bool) SWIG_AsBool(obj9); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj10) { - arg11 = (int) SWIG_AsInt(obj10); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj11) { - arg12 = (int) SWIG_AsInt(obj11); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxPoint *arg2 = 0 ; - wxSize *arg3 = 0 ; - wxDC *arg4 = (wxDC *) 0 ; - wxPoint *arg5 = 0 ; - int arg6 = (int) wxCOPY ; - bool arg7 = (bool) False ; - wxPoint const &arg8_defvalue = wxDefaultPosition ; - wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; - bool result; - wxPoint temp2 ; - wxSize temp3 ; - wxPoint temp5 ; - wxPoint temp8 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - arg3 = &temp3; - if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; - } - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg5 = &temp5; - if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; - } - if (obj5) { - arg6 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - arg7 = (bool) SWIG_AsBool(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - { - arg8 = &temp8; - if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - wxPoint *arg3 = (wxPoint *) 0 ; - int arg4 = (int) 0 ; - int arg5 = (int) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg3 = wxPoint_LIST_helper(obj1, &arg2); - if (arg3 == NULL) SWIG_fail; - } - if (obj2) { - arg4 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg5 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawLines(arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (arg3) delete [] arg3; - } - return resultobj; - fail: - { - if (arg3) delete [] arg3; - } - return NULL; -} - - -static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - wxPoint *arg3 = (wxPoint *) 0 ; - int arg4 = (int) 0 ; - int arg5 = (int) 0 ; - int arg6 = (int) wxODDEVEN_RULE ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg3 = wxPoint_LIST_helper(obj1, &arg2); - if (arg3 == NULL) SWIG_fail; - } - if (obj2) { - arg4 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg5 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj4) { - arg6 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (arg3) delete [] arg3; - } - return resultobj; - fail: - { - if (arg3) delete [] arg3; - } - return NULL; -} - - -static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxString *arg2 = 0 ; - wxRect *arg3 = 0 ; - int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; - int arg5 = (int) -1 ; - bool temp2 = False ; - wxRect temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - arg3 = &temp3; - if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxString *arg2 = 0 ; - wxBitmap *arg3 = 0 ; - wxRect *arg4 = 0 ; - int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; - int arg6 = (int) -1 ; - wxRect result; - bool temp2 = False ; - wxRect temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - arg4 = &temp4; - if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - arg6 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxRect * resultptr; - resultptr = new wxRect((wxRect &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - wxPoint *arg3 = (wxPoint *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "points", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg3 = wxPoint_LIST_helper(obj1, &arg2); - if (arg3 == NULL) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawSpline(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (arg3) delete [] arg3; - } - return resultobj; - fail: - { - if (arg3) delete [] arg3; - } - return NULL; -} - - -static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Clear(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxString *arg2 = 0 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "message", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->StartDoc((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->EndDoc(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->StartPage(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->EndPage(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxFont *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "font", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFont((wxFont const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxPen *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pen", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPen((wxPen const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxBrush *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "brush", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetBrush((wxBrush const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxBrush *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "brush", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetBackground((wxBrush const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "mode", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetBackgroundMode(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxPalette *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "palette", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPalette((wxPalette const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegionXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxPoint *arg2 = 0 ; - wxSize *arg3 = 0 ; - wxPoint temp2 ; - wxSize temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt",(char *) "sz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - arg3 = &temp3; - if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxRect *arg2 = 0 ; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetClippingRegion((wxRect const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxRegion *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "region", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetClippingRegion((wxRegion const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DestroyClippingRegion(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int *arg4 = (int *) 0 ; - int *arg5 = (int *) 0 ; - int temp2 ; - int temp3 ; - int temp4 ; - int temp5 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - arg4 = &temp4; - arg5 = &temp5; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg4)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg5)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxRect result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDC_GetClippingRect(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxRect * resultptr; - resultptr = new wxRect((wxRect &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDC const *)arg1)->GetCharHeight(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDC const *)arg1)->GetCharWidth(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxString *arg2 = 0 ; - int *arg3 = (int *) 0 ; - int *arg4 = (int *) 0 ; - bool temp2 = False ; - int temp3 ; - int temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "string", NULL - }; - - arg3 = &temp3; - arg4 = &temp4; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg4)); - resultobj = t_output_helper(resultobj,o); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxString *arg2 = 0 ; - int *arg3 = (int *) 0 ; - int *arg4 = (int *) 0 ; - int *arg5 = (int *) 0 ; - int *arg6 = (int *) 0 ; - wxFont *arg7 = (wxFont *) NULL ; - bool temp2 = False ; - int temp3 ; - int temp4 ; - int temp5 ; - int temp6 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "string",(char *) "font", NULL - }; - - arg3 = &temp3; - arg4 = &temp4; - arg5 = &temp5; - arg6 = &temp6; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg4)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg5)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg6)); - resultobj = t_output_helper(resultobj,o); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxString *arg2 = 0 ; - int *arg3 = (int *) 0 ; - int *arg4 = (int *) 0 ; - int *arg5 = (int *) 0 ; - wxFont *arg6 = (wxFont *) NULL ; - bool temp2 = False ; - int temp3 ; - int temp4 ; - int temp5 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "text",(char *) "font", NULL - }; - - arg3 = &temp3; - arg4 = &temp4; - arg5 = &temp5; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg4)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg5)); - resultobj = t_output_helper(resultobj,o); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxString *arg2 = 0 ; - wxArrayInt result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "text", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = PyList_New(0); - size_t idx; - for (idx = 0; idx < (&result)->GetCount(); idx += 1) { - PyObject* val = PyInt_FromLong( (&result)->Item(idx) ); - PyList_Append(resultobj, val); - Py_DECREF(val); - } - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->GetSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxDC const *)arg1)->GetSizeMM(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxDC const *)arg1)->GetSizeMM(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxDC const *)arg1)->CanDrawBitmap(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxDC const *)arg1)->CanGetTextExtent(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDC const *)arg1)->GetDepth(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxDC const *)arg1)->GetPPI(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxDC const *)arg1)->Ok(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDC const *)arg1)->GetBackgroundMode(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxBrush *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground(); - result = (wxBrush *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxBrush* resultptr = new wxBrush(*result); - resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxBrush *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush(); - result = (wxBrush *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxBrush* resultptr = new wxBrush(*result); - resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxFont *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont(); - result = (wxFont *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxFont* resultptr = new wxFont(*result); - resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxPen *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen(); - result = (wxPen *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPen* resultptr = new wxPen(*result); - resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxColour *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground(); - result = (wxColour *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxColour *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground(); - result = (wxColour *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colour", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetTextForeground((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colour", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetTextBackground((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDC const *)arg1)->GetMapMode(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "mode", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMapMode(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - double *arg2 = (double *) 0 ; - double *arg3 = (double *) 0 ; - double temp2 ; - double temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxDC const *)arg1)->GetUserScale(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyFloat_FromDouble((double) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyFloat_FromDouble((double) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - double arg2 ; - double arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (double) SWIG_AsDouble(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (double) SWIG_AsDouble(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetUserScale(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - double *arg2 = (double *) 0 ; - double *arg3 = (double *) 0 ; - double temp2 ; - double temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->GetLogicalScale(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyFloat_FromDouble((double) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyFloat_FromDouble((double) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - double arg2 ; - double arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (double) SWIG_AsDouble(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (double) SWIG_AsDouble(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetLogicalScale(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxDC const *)arg1)->GetLogicalOrigin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetLogicalOrigin(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxDC const *)arg1)->GetDeviceOrigin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDeviceOrigin(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - bool arg2 ; - bool arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetAxisOrientation(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDC const *)arg1)->GetLogicalFunction(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "function", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetLogicalFunction(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "opt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetOptimization(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetOptimization(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->CalcBoundingBox(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ResetBoundingBox(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDC const *)arg1)->MinX(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDC const *)arg1)->MaxX(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDC const *)arg1)->MinY(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDC const *)arg1)->MaxY(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int *arg4 = (int *) 0 ; - int *arg5 = (int *) 0 ; - int temp2 ; - int temp3 ; - int temp4 ; - int temp5 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - arg4 = &temp4; - arg5 = &temp5; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg4)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg5)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject *arg4 = (PyObject *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - arg4 = obj3; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject *arg4 = (PyObject *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - arg4 = obj3; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject *arg4 = (PyObject *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - arg4 = obj3; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject *arg4 = (PyObject *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - arg4 = obj3; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject *arg4 = (PyObject *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - arg4 = obj3; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject *arg4 = (PyObject *) 0 ; - PyObject *arg5 = (PyObject *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - arg4 = obj3; - arg5 = obj4; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject * DC_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMemoryDC *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMemoryDC *)new wxMemoryDC(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxMemoryDC *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "oldDC", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMemoryDC *)new wxMemoryDC(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; - wxBitmap *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bitmap", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SelectObject((wxBitmap const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxBitmap *arg2 = 0 ; - wxBufferedDC *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxSize *arg2 = 0 ; - wxBufferedDC *result; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_new_BufferedDC__SWIG_0(self,args); - } - } - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2); - } - if (_v) { - return _wrap_new_BufferedDC__SWIG_1(self,args); - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'"); - return NULL; -} - - -static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxSize *arg2 = 0 ; - wxBufferedDC *result; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDCInternalBuffer",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->UnMask(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxBitmap const &arg2_defvalue = wxNullBitmap ; - wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; - wxBufferedPaintDC *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "window",(char *) "buffer", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScreenDC *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxScreenDC *)new wxScreenDC(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScreenDC *arg1 = (wxScreenDC *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "window", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->StartDrawingOnTop(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScreenDC *arg1 = (wxScreenDC *) 0 ; - wxRect *arg2 = (wxRect *) NULL ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->StartDrawingOnTop(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScreenDC *arg1 = (wxScreenDC *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->EndDrawingOnTop(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxClientDC *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "win", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxClientDC *)new wxClientDC(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxPaintDC *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "win", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPaintDC *)new wxPaintDC(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxWindowDC *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "win", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindowDC *)new wxWindowDC(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = 0 ; - bool arg2 ; - wxMirrorDC *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "dc",(char *) "mirror", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = 0 ; - wxPostScriptDC *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "printData", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; - wxPrintData *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxPrintData &_result_ref = (arg1)->GetPrintData(); - result = (wxPrintData *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; - wxPrintData *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPrintData((wxPrintData const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "ppi", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxPostScriptDC::SetResolution(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxPostScriptDC::GetResolution(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString const &arg1_defvalue = wxPyEmptyString ; - wxString *arg1 = (wxString *) &arg1_defvalue ; - wxMetaFile *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "filename", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail; - if (obj0) { - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1); - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_delete_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMetaFile *arg1 = (wxMetaFile *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMetaFile *arg1 = (wxMetaFile *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Ok(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMetaFile *arg1 = (wxMetaFile *) 0 ; - int arg2 = (int) 0 ; - int arg3 = (int) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetClipboard(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMetaFile *arg1 = (wxMetaFile *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMetaFile *arg1 = (wxMetaFile *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetWidth(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMetaFile *arg1 = (wxMetaFile *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetHeight(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString const &arg1_defvalue = wxPyEmptyString ; - wxString *arg1 = (wxString *) &arg1_defvalue ; - int arg2 = (int) 0 ; - int arg3 = (int) 0 ; - wxString const &arg4_defvalue = wxPyEmptyString ; - wxString *arg4 = (wxString *) &arg4_defvalue ; - wxMetaFileDC *result; - bool temp1 = False ; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if (obj0) { - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1); - { - if (temp1) - delete arg1; - } - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_MetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ; - wxMetaFile *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFileDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMetaFile *)(arg1)->Close(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = 0 ; - wxPrinterDC *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "printData", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - int arg2 ; - int arg3 = (int) True ; - int arg4 = (int) 1 ; - wxImageList *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImageList *arg1 = (wxImageList *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImageList *arg1 = (wxImageList *) 0 ; - wxBitmap *arg2 = 0 ; - wxBitmap const &arg3_defvalue = wxNullBitmap ; - wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bitmap",(char *) "mask", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if (obj2) { - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImageList *arg1 = (wxImageList *) 0 ; - wxBitmap *arg2 = 0 ; - wxColour *arg3 = 0 ; - int result; - wxColour temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - arg3 = &temp3; - if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImageList *arg1 = (wxImageList *) 0 ; - wxIcon *arg2 = 0 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "icon", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->Add((wxIcon const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImageList *arg1 = (wxImageList *) 0 ; - int arg2 ; - wxBitmap *arg3 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "index",(char *) "bitmap", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImageList *arg1 = (wxImageList *) 0 ; - int arg2 ; - wxDC *arg3 = 0 ; - int arg4 ; - int arg5 ; - int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ; - bool arg7 = (bool) (bool)False ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - if (obj5) { - arg6 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - arg7 = (bool const) SWIG_AsBool(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImageList *arg1 = (wxImageList *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetImageCount(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImageList *arg1 = (wxImageList *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "index", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Remove(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImageList *arg1 = (wxImageList *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->RemoveAll(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImageList *arg1 = (wxImageList *) 0 ; - int arg2 ; - int *arg3 = 0 ; - int *arg4 = 0 ; - int temp3 ; - int temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "index", NULL - }; - - arg3 = &temp3; - arg4 = &temp4; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->GetSize(arg2,*arg3,*arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg4)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_NORMAL_FONT_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only."); - return 1; -} - - -static PyObject *_wrap_NORMAL_FONT_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0); - return pyobj; -} - - -static int _wrap_SMALL_FONT_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only."); - return 1; -} - - -static PyObject *_wrap_SMALL_FONT_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0); - return pyobj; -} - - -static int _wrap_ITALIC_FONT_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only."); - return 1; -} - - -static PyObject *_wrap_ITALIC_FONT_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0); - return pyobj; -} - - -static int _wrap_SWISS_FONT_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only."); - return 1; -} - - -static PyObject *_wrap_SWISS_FONT_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0); - return pyobj; -} - - -static int _wrap_RED_PEN_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only."); - return 1; -} - - -static PyObject *_wrap_RED_PEN_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0); - return pyobj; -} - - -static int _wrap_CYAN_PEN_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only."); - return 1; -} - - -static PyObject *_wrap_CYAN_PEN_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0); - return pyobj; -} - - -static int _wrap_GREEN_PEN_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only."); - return 1; -} - - -static PyObject *_wrap_GREEN_PEN_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0); - return pyobj; -} - - -static int _wrap_BLACK_PEN_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only."); - return 1; -} - - -static PyObject *_wrap_BLACK_PEN_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0); - return pyobj; -} - - -static int _wrap_WHITE_PEN_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only."); - return 1; -} - - -static PyObject *_wrap_WHITE_PEN_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0); - return pyobj; -} - - -static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only."); - return 1; -} - - -static PyObject *_wrap_TRANSPARENT_PEN_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0); - return pyobj; -} - - -static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only."); - return 1; -} - - -static PyObject *_wrap_BLACK_DASHED_PEN_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0); - return pyobj; -} - - -static int _wrap_GREY_PEN_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only."); - return 1; -} - - -static PyObject *_wrap_GREY_PEN_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0); - return pyobj; -} - - -static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only."); - return 1; -} - - -static PyObject *_wrap_MEDIUM_GREY_PEN_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0); - return pyobj; -} - - -static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only."); - return 1; -} - - -static PyObject *_wrap_LIGHT_GREY_PEN_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0); - return pyobj; -} - - -static int _wrap_BLUE_BRUSH_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only."); - return 1; -} - - -static PyObject *_wrap_BLUE_BRUSH_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0); - return pyobj; -} - - -static int _wrap_GREEN_BRUSH_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only."); - return 1; -} - - -static PyObject *_wrap_GREEN_BRUSH_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0); - return pyobj; -} - - -static int _wrap_WHITE_BRUSH_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only."); - return 1; -} - - -static PyObject *_wrap_WHITE_BRUSH_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0); - return pyobj; -} - - -static int _wrap_BLACK_BRUSH_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only."); - return 1; -} - - -static PyObject *_wrap_BLACK_BRUSH_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0); - return pyobj; -} - - -static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only."); - return 1; -} - - -static PyObject *_wrap_TRANSPARENT_BRUSH_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0); - return pyobj; -} - - -static int _wrap_CYAN_BRUSH_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only."); - return 1; -} - - -static PyObject *_wrap_CYAN_BRUSH_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0); - return pyobj; -} - - -static int _wrap_RED_BRUSH_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only."); - return 1; -} - - -static PyObject *_wrap_RED_BRUSH_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0); - return pyobj; -} - - -static int _wrap_GREY_BRUSH_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only."); - return 1; -} - - -static PyObject *_wrap_GREY_BRUSH_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0); - return pyobj; -} - - -static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only."); - return 1; -} - - -static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0); - return pyobj; -} - - -static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only."); - return 1; -} - - -static PyObject *_wrap_LIGHT_GREY_BRUSH_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0); - return pyobj; -} - - -static int _wrap_BLACK_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only."); - return 1; -} - - -static PyObject *_wrap_BLACK_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0); - return pyobj; -} - - -static int _wrap_WHITE_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only."); - return 1; -} - - -static PyObject *_wrap_WHITE_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0); - return pyobj; -} - - -static int _wrap_RED_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable RED is read-only."); - return 1; -} - - -static PyObject *_wrap_RED_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0); - return pyobj; -} - - -static int _wrap_BLUE_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only."); - return 1; -} - - -static PyObject *_wrap_BLUE_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0); - return pyobj; -} - - -static int _wrap_GREEN_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only."); - return 1; -} - - -static PyObject *_wrap_GREEN_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0); - return pyobj; -} - - -static int _wrap_CYAN_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only."); - return 1; -} - - -static PyObject *_wrap_CYAN_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0); - return pyobj; -} - - -static int _wrap_LIGHT_GREY_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only."); - return 1; -} - - -static PyObject *_wrap_LIGHT_GREY_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0); - return pyobj; -} - - -static int _wrap_STANDARD_CURSOR_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only."); - return 1; -} - - -static PyObject *_wrap_STANDARD_CURSOR_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0); - return pyobj; -} - - -static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only."); - return 1; -} - - -static PyObject *_wrap_HOURGLASS_CURSOR_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0); - return pyobj; -} - - -static int _wrap_CROSS_CURSOR_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only."); - return 1; -} - - -static PyObject *_wrap_CROSS_CURSOR_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0); - return pyobj; -} - - -static int _wrap_NullBitmap_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only."); - return 1; -} - - -static PyObject *_wrap_NullBitmap_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0); - return pyobj; -} - - -static int _wrap_NullIcon_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only."); - return 1; -} - - -static PyObject *_wrap_NullIcon_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0); - return pyobj; -} - - -static int _wrap_NullCursor_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only."); - return 1; -} - - -static PyObject *_wrap_NullCursor_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0); - return pyobj; -} - - -static int _wrap_NullPen_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only."); - return 1; -} - - -static PyObject *_wrap_NullPen_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0); - return pyobj; -} - - -static int _wrap_NullBrush_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only."); - return 1; -} - - -static PyObject *_wrap_NullBrush_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0); - return pyobj; -} - - -static int _wrap_NullPalette_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only."); - return 1; -} - - -static PyObject *_wrap_NullPalette_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0); - return pyobj; -} - - -static int _wrap_NullFont_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only."); - return 1; -} - - -static PyObject *_wrap_NullFont_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0); - return pyobj; -} - - -static int _wrap_NullColour_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only."); - return 1; -} - - -static PyObject *_wrap_NullColour_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0); - return pyobj; -} - - -static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPenList *arg1 = (wxPenList *) 0 ; - wxPen *arg2 = (wxPen *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pen", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AddPen(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPenList *arg1 = (wxPenList *) 0 ; - wxColour *arg2 = 0 ; - int arg3 ; - int arg4 ; - wxPen *result; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPenList *arg1 = (wxPenList *) 0 ; - wxPen *arg2 = (wxPen *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pen", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RemovePen(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPenList *arg1 = (wxPenList *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetCount(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * PenList_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBrushList *arg1 = (wxBrushList *) 0 ; - wxBrush *arg2 = (wxBrush *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "brush", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AddBrush(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBrushList *arg1 = (wxBrushList *) 0 ; - wxColour *arg2 = 0 ; - int arg3 ; - wxBrush *result; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colour",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBrushList *arg1 = (wxBrushList *) 0 ; - wxBrush *arg2 = (wxBrush *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "brush", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RemoveBrush(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBrushList *arg1 = (wxBrushList *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetCount(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColourDatabase *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxColourDatabase *)new wxColourDatabase(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; - wxString *arg2 = 0 ; - wxColour result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; - wxColour *arg2 = 0 ; - wxString result; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colour", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; - wxString *arg2 = 0 ; - wxColour *arg3 = 0 ; - bool temp2 = False ; - wxColour temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name",(char *) "colour", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - arg3 = &temp3; - if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; - wxString *arg2 = 0 ; - int arg3 ; - int arg4 ; - int arg5 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontList *arg1 = (wxFontList *) 0 ; - wxFont *arg2 = (wxFont *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "font", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AddFont(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontList *arg1 = (wxFontList *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - bool arg6 = (bool) False ; - wxString const &arg7_defvalue = wxPyEmptyString ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - int arg8 = (int) wxFONTENCODING_DEFAULT ; - wxFont *result; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - if (obj5) { - arg6 = (bool) SWIG_AsBool(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - if (obj7) { - arg8 = (wxFontEncoding) SWIG_AsInt(obj7); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0); - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontList *arg1 = (wxFontList *) 0 ; - wxFont *arg2 = (wxFont *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "font", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RemoveFont(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontList *arg1 = (wxFontList *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetCount(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * FontList_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_TheFontList_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only."); - return 1; -} - - -static PyObject *_wrap_TheFontList_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0); - return pyobj; -} - - -static int _wrap_ThePenList_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only."); - return 1; -} - - -static PyObject *_wrap_ThePenList_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0); - return pyobj; -} - - -static int _wrap_TheBrushList_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only."); - return 1; -} - - -static PyObject *_wrap_TheBrushList_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0); - return pyobj; -} - - -static int _wrap_TheColourDatabase_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only."); - return 1; -} - - -static PyObject *_wrap_TheColourDatabase_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0); - return pyobj; -} - - -static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEffects *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxEffects *)new wxEffects(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEffects *arg1 = (wxEffects *) 0 ; - wxColour result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxEffects const *)arg1)->GetHighlightColour(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEffects *arg1 = (wxEffects *) 0 ; - wxColour result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxEffects const *)arg1)->GetLightShadow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEffects *arg1 = (wxEffects *) 0 ; - wxColour result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxEffects const *)arg1)->GetFaceColour(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEffects *arg1 = (wxEffects *) 0 ; - wxColour result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxEffects const *)arg1)->GetMediumShadow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEffects *arg1 = (wxEffects *) 0 ; - wxColour result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxEffects const *)arg1)->GetDarkShadow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEffects *arg1 = (wxEffects *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "c", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetHighlightColour((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEffects *arg1 = (wxEffects *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "c", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetLightShadow((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEffects *arg1 = (wxEffects *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "c", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFaceColour((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEffects *arg1 = (wxEffects *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "c", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMediumShadow((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEffects *arg1 = (wxEffects *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "c", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDarkShadow((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEffects *arg1 = (wxEffects *) 0 ; - wxColour *arg2 = 0 ; - wxColour *arg3 = 0 ; - wxColour *arg4 = 0 ; - wxColour *arg5 = 0 ; - wxColour *arg6 = 0 ; - wxColour temp2 ; - wxColour temp3 ; - wxColour temp4 ; - wxColour temp5 ; - wxColour temp6 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - arg3 = &temp3; - if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; - } - { - arg4 = &temp4; - if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; - } - { - arg5 = &temp5; - if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail; - } - { - arg6 = &temp6; - if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEffects *arg1 = (wxEffects *) 0 ; - wxDC *arg2 = 0 ; - wxRect *arg3 = 0 ; - int arg4 = (int) 1 ; - wxRect temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - arg3 = &temp3; - if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEffects *arg1 = (wxEffects *) 0 ; - wxRect *arg2 = 0 ; - wxDC *arg3 = 0 ; - wxBitmap *arg4 = 0 ; - bool result; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg4 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * Effects_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyMethodDef SwigMethods[] = { - { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS }, - { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS }, - { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS }, - { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS }, - { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS }, - { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Brush_MacGetTheme", (PyCFunction) _wrap_Brush_MacGetTheme, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS }, - { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_EmptyBitmap", _wrap_new_EmptyBitmap, METH_VARARGS }, - { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS }, - { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS }, - { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS }, - { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS }, - { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS }, - { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS }, - { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS }, - { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS }, - { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS }, - { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS }, - { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS }, - { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS }, - { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS }, - { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS }, - { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS }, - { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS }, - { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS }, - { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS }, - { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS }, - { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS }, - { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS }, - { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS }, - { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS }, - { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS }, - { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS }, - { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS }, - { (char *)"new_BufferedDCInternalBuffer", _wrap_new_BufferedDCInternalBuffer, METH_VARARGS }, - { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS }, - { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS }, - { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS }, - { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS }, - { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS }, - { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS }, - { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS }, - { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS }, - { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS }, - { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS }, - { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS }, - { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS }, - { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS }, - { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS }, - { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS }, - { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS }, - { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS }, - { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS }, - { NULL, NULL } -}; - - -/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ - -static void *_p_wxControlTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) ((wxControl *) x)); -} -static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); -} -static void *_p_wxMenuBarTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) ((wxMenuBar *) x)); -} -static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) { - return (void *)((wxMemoryDC *) ((wxBufferedDC *) x)); -} -static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) { - return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x)); -} -static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxLayoutConstraints *) x)); -} -static void *_p_wxPenTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x)); -} -static void *_p_wxRegionIteratorTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxRegionIterator *) x)); -} -static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); -} -static void *_p_wxSizerItemTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxSizerItem *) x)); -} -static void *_p_wxColourDatabaseTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxColourDatabase *) x)); -} -static void *_p_wxScrollEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); -} -static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); -} -static void *_p_wxIconTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x)); -} -static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); -} -static void *_p_wxBoxSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); -} -static void *_p_wxSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxSizer *) x)); -} -static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); -} -static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); -} -static void *_p_wxPenListTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxPenList *) x)); -} -static void *_p_wxEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxEvent *) x)); -} -static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); -} -static void *_p_wxGridSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); -} -static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); -} -static void *_p_wxPaintEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); -} -static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); -} -static void *_p_wxDCTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxDC *) x)); -} -static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); -} -static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); -} -static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); -} -static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); -} -static void *_p_wxControlTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); -} -static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); -} -static void *_p_wxClientDCTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x)); -} -static void *_p_wxFSFileTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxFSFile *) x)); -} -static void *_p_wxMemoryDCTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x)); -} -static void *_p_wxRegionTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x)); -} -static void *_p_wxPySizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); -} -static void *_p_wxWindowDCTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x)); -} -static void *_p_wxGDIObjectTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxGDIObject *) x)); -} -static void *_p_wxEffectsTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxEffects *) x)); -} -static void *_p_wxPyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); -} -static void *_p_wxNotifyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); -} -static void *_p_wxPostScriptDCTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x)); -} -static void *_p_wxShowEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); -} -static void *_p_wxMenuItemTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxMenuItem *) x)); -} -static void *_p_wxIdleEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); -} -static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); -} -static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); -} -static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); -} -static void *_p_wxIconizeEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); -} -static void *_p_wxSizeEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); -} -static void *_p_wxMoveEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); -} -static void *_p_wxActivateEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); -} -static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); -} -static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); -} -static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); -} -static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); -} -static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); -} -static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); -} -static void *_p_wxANIHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); -} -static void *_p_wxCURHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); -} -static void *_p_wxICOHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); -} -static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); -} -static void *_p_wxImageHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxImageHandler *) x)); -} -static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); -} -static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxEvtHandler *) x)); -} -static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); -} -static void *_p_wxPaintDCTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x)); -} -static void *_p_wxPrinterDCTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x)); -} -static void *_p_wxScreenDCTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x)); -} -static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxAcceleratorTable *) x)); -} -static void *_p_wxImageTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxImage *) x)); -} -static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); -} -static void *_p_wxPaletteTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x)); -} -static void *_p_wxBufferedDCTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); -} -static void *_p_wxImageListTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxImageList *) x)); -} -static void *_p_wxCursorTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x)); -} -static void *_p_wxEncodingConverterTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxEncodingConverter *) x)); -} -static void *_p_wxMirrorDCTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x)); -} -static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); -} -static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); -} -static void *_p_wxKeyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); -} -static void *_p_wxWindowTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); -} -static void *_p_wxMenuTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); -} -static void *_p_wxMenuBarTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); -} -static void *_p_wxMetaFileDCTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x)); -} -static void *_p_wxBrushListTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxBrushList *) x)); -} -static void *_p_wxPyPenTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x)); -} -static void *_p_wxFileSystemTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxFileSystem *) x)); -} -static void *_p_wxBitmapTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x)); -} -static void *_p_wxMaskTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxMask *) x)); -} -static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); -} -static void *_p_wxMenuEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); -} -static void *_p_wxPyAppTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); -} -static void *_p_wxCloseEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); -} -static void *_p_wxMouseEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); -} -static void *_p_wxEraseEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); -} -static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); -} -static void *_p_wxCommandEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); -} -static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); -} -static void *_p_wxFocusEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); -} -static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); -} -static void *_p_wxFontTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x)); -} -static void *_p_wxBrushTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x)); -} -static void *_p_wxMetaFileTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxMetaFile *) x)); -} -static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); -} -static void *_p_wxColourTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxColour *) x)); -} -static void *_p_wxFontListTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxFontList *) x)); -} -static void *_p_wxPyValidatorTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); -} -static void *_p_wxValidatorTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); -} -static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) { - return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x)); -} -static void *_p_wxBufferedDCTo_p_wxDC(void *x) { - return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x)); -} -static void *_p_wxScreenDCTo_p_wxDC(void *x) { - return (void *)((wxDC *) ((wxScreenDC *) x)); -} -static void *_p_wxMirrorDCTo_p_wxDC(void *x) { - return (void *)((wxDC *) ((wxMirrorDC *) x)); -} -static void *_p_wxMemoryDCTo_p_wxDC(void *x) { - return (void *)((wxDC *) ((wxMemoryDC *) x)); -} -static void *_p_wxWindowDCTo_p_wxDC(void *x) { - return (void *)((wxDC *) ((wxWindowDC *) x)); -} -static void *_p_wxMetaFileDCTo_p_wxDC(void *x) { - return (void *)((wxDC *) ((wxMetaFileDC *) x)); -} -static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) { - return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); -} -static void *_p_wxClientDCTo_p_wxDC(void *x) { - return (void *)((wxDC *) ((wxClientDC *) x)); -} -static void *_p_wxPaintDCTo_p_wxDC(void *x) { - return (void *)((wxDC *) ((wxPaintDC *) x)); -} -static void *_p_wxPostScriptDCTo_p_wxDC(void *x) { - return (void *)((wxDC *) ((wxPostScriptDC *) x)); -} -static void *_p_wxPrinterDCTo_p_wxDC(void *x) { - return (void *)((wxDC *) ((wxPrinterDC *) x)); -} -static void *_p_wxPyPenTo_p_wxGDIObject(void *x) { - return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x)); -} -static void *_p_wxIconTo_p_wxGDIObject(void *x) { - return (void *)((wxGDIObject *) ((wxIcon *) x)); -} -static void *_p_wxPaletteTo_p_wxGDIObject(void *x) { - return (void *)((wxGDIObject *) ((wxPalette *) x)); -} -static void *_p_wxPenTo_p_wxGDIObject(void *x) { - return (void *)((wxGDIObject *) ((wxPen *) x)); -} -static void *_p_wxFontTo_p_wxGDIObject(void *x) { - return (void *)((wxGDIObject *) ((wxFont *) x)); -} -static void *_p_wxCursorTo_p_wxGDIObject(void *x) { - return (void *)((wxGDIObject *) ((wxCursor *) x)); -} -static void *_p_wxBitmapTo_p_wxGDIObject(void *x) { - return (void *)((wxGDIObject *) ((wxBitmap *) x)); -} -static void *_p_wxRegionTo_p_wxGDIObject(void *x) { - return (void *)((wxGDIObject *) ((wxRegion *) x)); -} -static void *_p_wxBrushTo_p_wxGDIObject(void *x) { - return (void *)((wxGDIObject *) ((wxBrush *) x)); -} -static void *_p_wxPyPenTo_p_wxPen(void *x) { - return (void *)((wxPen *) ((wxPyPen *) x)); -} -static swig_type_info _swigt__p_wxPostScriptDC[] = {{"_p_wxPostScriptDC", 0, "wxPostScriptDC *", 0, 0, 0, 0},{"_p_wxPostScriptDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxBrush[] = {{"_p_wxBrush", 0, "wxBrush *", 0, 0, 0, 0},{"_p_wxBrush", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0, 0, 0, 0},{"_p_wxColour", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0, 0, 0, 0},{"_p_wxBufferedDC", _p_wxBufferedDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxScreenDC", _p_wxScreenDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxMirrorDC", _p_wxMirrorDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxMemoryDC", _p_wxMemoryDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxWindowDC", _p_wxWindowDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxDC", 0, 0, 0, 0, 0, 0},{"_p_wxMetaFileDC", _p_wxMetaFileDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxClientDC", _p_wxClientDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxPaintDC", _p_wxPaintDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxPostScriptDC", _p_wxPostScriptDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxPrinterDC", _p_wxPrinterDCTo_p_wxDC, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMirrorDC[] = {{"_p_wxMirrorDC", 0, "wxMirrorDC *", 0, 0, 0, 0},{"_p_wxMirrorDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "unsigned char *|byte *", 0, 0, 0, 0},{"_p_unsigned_char", 0, 0, 0, 0, 0, 0},{"_p_byte", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyFontEnumerator[] = {{"_p_wxPyFontEnumerator", 0, "wxPyFontEnumerator *", 0, 0, 0, 0},{"_p_wxPyFontEnumerator", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxIconLocation[] = {{"_p_wxIconLocation", 0, "wxIconLocation *", 0, 0, 0, 0},{"_p_wxIconLocation", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0, 0, 0, 0},{"_p_wxImage", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMetaFileDC[] = {{"_p_wxMetaFileDC", 0, "wxMetaFileDC *", 0, 0, 0, 0},{"_p_wxMetaFileDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMask[] = {{"_p_wxMask", 0, "wxMask *", 0, 0, 0, 0},{"_p_wxMask", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0, 0, 0, 0},{"_p_wxSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0, 0, 0, 0},{"_p_wxFont", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_double[] = {{"_p_double", 0, "double *", 0, 0, 0, 0},{"_p_double", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMemoryDC[] = {{"_p_wxMemoryDC", 0, "wxMemoryDC *", 0, 0, 0, 0},{"_p_wxBufferedDC", _p_wxBufferedDCTo_p_wxMemoryDC, 0, 0, 0, 0, 0},{"_p_wxMemoryDC", 0, 0, 0, 0, 0, 0},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxMemoryDC, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFontMapper[] = {{"_p_wxFontMapper", 0, "wxFontMapper *", 0, 0, 0, 0},{"_p_wxFontMapper", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxEffects[] = {{"_p_wxEffects", 0, "wxEffects *", 0, 0, 0, 0},{"_p_wxEffects", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxNativeEncodingInfo[] = {{"_p_wxNativeEncodingInfo", 0, "wxNativeEncodingInfo *", 0, 0, 0, 0},{"_p_wxNativeEncodingInfo", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPalette[] = {{"_p_wxPalette", 0, "wxPalette *", 0, 0, 0, 0},{"_p_wxPalette", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0, 0, 0, 0},{"_p_wxBitmap", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRegionIterator", _p_wxRegionIteratorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPen", _p_wxPenTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxColourDatabase", _p_wxColourDatabaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPenList", _p_wxPenListTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMask", _p_wxMaskTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFont", _p_wxFontTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxClientDC", _p_wxClientDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMemoryDC", _p_wxMemoryDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRegion", _p_wxRegionTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDC", _p_wxDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIcon", _p_wxIconTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDC", _p_wxWindowDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGDIObject", _p_wxGDIObjectTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEffects", _p_wxEffectsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPostScriptDC", _p_wxPostScriptDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintDC", _p_wxPaintDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPrinterDC", _p_wxPrinterDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScreenDC", _p_wxScreenDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBufferedDC", _p_wxBufferedDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPalette", _p_wxPaletteTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageList", _p_wxImageListTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCursor", _p_wxCursorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxMirrorDC", _p_wxMirrorDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEncodingConverter", _p_wxEncodingConverterTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMetaFileDC", _p_wxMetaFileDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBrushList", _p_wxBrushListTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyPen", _p_wxPyPenTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBitmap", _p_wxBitmapTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBrush", _p_wxBrushTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMetaFile", _p_wxMetaFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxColour", _p_wxColourTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFontList", _p_wxFontListTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxRegionIterator[] = {{"_p_wxRegionIterator", 0, "wxRegionIterator *", 0, 0, 0, 0},{"_p_wxRegionIterator", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0, 0, 0, 0},{"_p_wxRect", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0, 0, 0, 0},{"_p_wxString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPrinterDC[] = {{"_p_wxPrinterDC", 0, "wxPrinterDC *", 0, 0, 0, 0},{"_p_wxPrinterDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxIconBundle[] = {{"_p_wxIconBundle", 0, "wxIconBundle *", 0, 0, 0, 0},{"_p_wxIconBundle", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0, 0, 0, 0},{"_p_wxPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxDash[] = {{"_p_wxDash", 0, "wxDash *", 0, 0, 0, 0},{"_p_wxDash", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxScreenDC[] = {{"_p_wxScreenDC", 0, "wxScreenDC *", 0, 0, 0, 0},{"_p_wxScreenDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0, 0, 0, 0},{"_p_wxCursor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxClientDC[] = {{"_p_wxClientDC", 0, "wxClientDC *", 0, 0, 0, 0},{"_p_wxClientDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxBufferedDC[] = {{"_p_wxBufferedDC", 0, "wxBufferedDC *", 0, 0, 0, 0},{"_p_wxBufferedDC", 0, 0, 0, 0, 0, 0},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxBufferedDC, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0, 0, 0, 0},{"_p_wxImageList", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0, 0, 0, 0},{"_p_unsigned_char", 0, 0, 0, 0, 0, 0},{"_p_byte", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxGDIObject[] = {{"_p_wxGDIObject", 0, "wxGDIObject *", 0, 0, 0, 0},{"_p_wxIcon", _p_wxIconTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxPyPen", _p_wxPyPenTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxPen", _p_wxPenTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxFont", _p_wxFontTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxPalette", _p_wxPaletteTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxGDIObject", 0, 0, 0, 0, 0, 0},{"_p_wxCursor", _p_wxCursorTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxBitmap", _p_wxBitmapTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxRegion", _p_wxRegionTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxBrush", _p_wxBrushTo_p_wxGDIObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0, 0, 0, 0},{"_p_wxIcon", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxLocale[] = {{"_p_wxLocale", 0, "wxLocale *", 0, 0, 0, 0},{"_p_wxLocale", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0, 0, 0, 0},{"_p_wxRegion", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0, 0, 0, 0},{"_p_wxConfigBase", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxLanguageInfo[] = {{"_p_wxLanguageInfo", 0, "wxLanguageInfo *", 0, 0, 0, 0},{"_p_wxLanguageInfo", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxWindowDC[] = {{"_p_wxWindowDC", 0, "wxWindowDC *", 0, 0, 0, 0},{"_p_wxWindowDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPrintData[] = {{"_p_wxPrintData", 0, "wxPrintData *", 0, 0, 0, 0},{"_p_wxPrintData", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxBrushList[] = {{"_p_wxBrushList", 0, "wxBrushList *", 0, 0, 0, 0},{"_p_wxBrushList", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFontList[] = {{"_p_wxFontList", 0, "wxFontList *", 0, 0, 0, 0},{"_p_wxFontList", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0, 0, 0, 0},{"_p_wxPyPen", _p_wxPyPenTo_p_wxPen, 0, 0, 0, 0, 0},{"_p_wxPen", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxBufferedPaintDC[] = {{"_p_wxBufferedPaintDC", 0, "wxBufferedPaintDC *", 0, 0, 0, 0},{"_p_wxBufferedPaintDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPaintDC[] = {{"_p_wxPaintDC", 0, "wxPaintDC *", 0, 0, 0, 0},{"_p_wxPaintDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPenList[] = {{"_p_wxPenList", 0, "wxPenList *", 0, 0, 0, 0},{"_p_wxPenList", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyPen[] = {{"_p_wxPyPen", 0, "wxPyPen *", 0, 0, 0, 0},{"_p_wxPyPen", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0, 0, 0, 0},{"_p_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMetaFile[] = {{"_p_wxMetaFile", 0, "wxMetaFile *", 0, 0, 0, 0},{"_p_wxMetaFile", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxNativeFontInfo[] = {{"_p_wxNativeFontInfo", 0, "wxNativeFontInfo *", 0, 0, 0, 0},{"_p_wxNativeFontInfo", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxEncodingConverter[] = {{"_p_wxEncodingConverter", 0, "wxEncodingConverter *", 0, 0, 0, 0},{"_p_wxEncodingConverter", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxColourDatabase[] = {{"_p_wxColourDatabase", 0, "wxColourDatabase *", 0, 0, 0, 0},{"_p_wxColourDatabase", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; - -static swig_type_info *swig_types_initial[] = { -_swigt__p_wxPostScriptDC, -_swigt__p_wxBrush, -_swigt__p_wxColour, -_swigt__p_wxDC, -_swigt__p_wxMirrorDC, -_swigt__p_byte, -_swigt__p_wxPyFontEnumerator, -_swigt__p_char, -_swigt__p_wxIconLocation, -_swigt__p_wxImage, -_swigt__p_wxMetaFileDC, -_swigt__p_wxMask, -_swigt__p_wxSize, -_swigt__p_wxFont, -_swigt__p_wxWindow, -_swigt__p_double, -_swigt__p_wxMemoryDC, -_swigt__p_wxFontMapper, -_swigt__p_wxEffects, -_swigt__p_wxNativeEncodingInfo, -_swigt__p_wxPalette, -_swigt__p_wxBitmap, -_swigt__p_wxObject, -_swigt__p_wxRegionIterator, -_swigt__p_wxRect, -_swigt__p_wxString, -_swigt__p_wxPrinterDC, -_swigt__p_wxIconBundle, -_swigt__p_wxPoint, -_swigt__p_wxDash, -_swigt__p_wxScreenDC, -_swigt__p_wxCursor, -_swigt__p_wxClientDC, -_swigt__p_wxBufferedDC, -_swigt__p_wxImageList, -_swigt__p_unsigned_char, -_swigt__p_wxGDIObject, -_swigt__p_wxIcon, -_swigt__p_wxLocale, -_swigt__p_wxRegion, -_swigt__p_wxConfigBase, -_swigt__p_wxLanguageInfo, -_swigt__p_wxWindowDC, -_swigt__p_wxPrintData, -_swigt__p_wxBrushList, -_swigt__p_wxFontList, -_swigt__p_wxPen, -_swigt__p_wxBufferedPaintDC, -_swigt__p_wxPaintDC, -_swigt__p_wxPenList, -_swigt__p_wxPyPen, -_swigt__p_int, -_swigt__p_wxMetaFile, -_swigt__p_wxNativeFontInfo, -_swigt__p_wxEncodingConverter, -_swigt__p_wxColourDatabase, -0 -}; - - -/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ - -static swig_const_info swig_const_table[] = { -{0}}; - -#ifdef __cplusplus -} -#endif - -#ifdef __cplusplus -extern "C" -#endif -SWIGEXPORT(void) SWIG_init(void) { - static PyObject *SWIG_globals = 0; - static int typeinit = 0; - PyObject *m, *d; - int i; - if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); - m = Py_InitModule((char *) SWIG_name, SwigMethods); - d = PyModule_GetDict(m); - - if (!typeinit) { - for (i = 0; swig_types_initial[i]; i++) { - swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); - } - typeinit = 1; - } - SWIG_InstallConstants(d,swig_const_table); - - PyDict_SetItemString(d,"OutRegion", SWIG_FromInt((int)wxOutRegion)); - PyDict_SetItemString(d,"PartRegion", SWIG_FromInt((int)wxPartRegion)); - PyDict_SetItemString(d,"InRegion", SWIG_FromInt((int)wxInRegion)); - PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_FromInt((int)wxFONTFAMILY_DEFAULT)); - PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_FromInt((int)wxFONTFAMILY_DECORATIVE)); - PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_FromInt((int)wxFONTFAMILY_ROMAN)); - PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_FromInt((int)wxFONTFAMILY_SCRIPT)); - PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_FromInt((int)wxFONTFAMILY_SWISS)); - PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_FromInt((int)wxFONTFAMILY_MODERN)); - PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_FromInt((int)wxFONTFAMILY_TELETYPE)); - PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_FromInt((int)wxFONTFAMILY_MAX)); - PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_FromInt((int)wxFONTFAMILY_UNKNOWN)); - PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_FromInt((int)wxFONTSTYLE_NORMAL)); - PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_FromInt((int)wxFONTSTYLE_ITALIC)); - PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_FromInt((int)wxFONTSTYLE_SLANT)); - PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_FromInt((int)wxFONTSTYLE_MAX)); - PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_FromInt((int)wxFONTWEIGHT_NORMAL)); - PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_FromInt((int)wxFONTWEIGHT_LIGHT)); - PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_FromInt((int)wxFONTWEIGHT_BOLD)); - PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_FromInt((int)wxFONTWEIGHT_MAX)); - PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_FromInt((int)wxFONTFLAG_DEFAULT)); - PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_FromInt((int)wxFONTFLAG_ITALIC)); - PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_FromInt((int)wxFONTFLAG_SLANT)); - PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_FromInt((int)wxFONTFLAG_LIGHT)); - PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_FromInt((int)wxFONTFLAG_BOLD)); - PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_ANTIALIASED)); - PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED)); - PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_FromInt((int)wxFONTFLAG_UNDERLINED)); - PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_FromInt((int)wxFONTFLAG_STRIKETHROUGH)); - PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_FromInt((int)wxFONTFLAG_MASK)); - PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_FromInt((int)wxFONTENCODING_SYSTEM)); - PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_FromInt((int)wxFONTENCODING_DEFAULT)); - PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_FromInt((int)wxFONTENCODING_ISO8859_1)); - PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_FromInt((int)wxFONTENCODING_ISO8859_2)); - PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_FromInt((int)wxFONTENCODING_ISO8859_3)); - PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_FromInt((int)wxFONTENCODING_ISO8859_4)); - PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_FromInt((int)wxFONTENCODING_ISO8859_5)); - PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_FromInt((int)wxFONTENCODING_ISO8859_6)); - PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_FromInt((int)wxFONTENCODING_ISO8859_7)); - PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_FromInt((int)wxFONTENCODING_ISO8859_8)); - PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_FromInt((int)wxFONTENCODING_ISO8859_9)); - PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_FromInt((int)wxFONTENCODING_ISO8859_10)); - PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_FromInt((int)wxFONTENCODING_ISO8859_11)); - PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_FromInt((int)wxFONTENCODING_ISO8859_12)); - PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_FromInt((int)wxFONTENCODING_ISO8859_13)); - PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_FromInt((int)wxFONTENCODING_ISO8859_14)); - PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_FromInt((int)wxFONTENCODING_ISO8859_15)); - PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_FromInt((int)wxFONTENCODING_ISO8859_MAX)); - PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_FromInt((int)wxFONTENCODING_KOI8)); - PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_FromInt((int)wxFONTENCODING_KOI8_U)); - PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_FromInt((int)wxFONTENCODING_ALTERNATIVE)); - PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_FromInt((int)wxFONTENCODING_BULGARIAN)); - PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_FromInt((int)wxFONTENCODING_CP437)); - PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_FromInt((int)wxFONTENCODING_CP850)); - PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_FromInt((int)wxFONTENCODING_CP852)); - PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_FromInt((int)wxFONTENCODING_CP855)); - PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_FromInt((int)wxFONTENCODING_CP866)); - PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_FromInt((int)wxFONTENCODING_CP874)); - PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_FromInt((int)wxFONTENCODING_CP932)); - PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_FromInt((int)wxFONTENCODING_CP936)); - PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_FromInt((int)wxFONTENCODING_CP949)); - PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_FromInt((int)wxFONTENCODING_CP950)); - PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_FromInt((int)wxFONTENCODING_CP1250)); - PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_FromInt((int)wxFONTENCODING_CP1251)); - PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_FromInt((int)wxFONTENCODING_CP1252)); - PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_FromInt((int)wxFONTENCODING_CP1253)); - PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_FromInt((int)wxFONTENCODING_CP1254)); - PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_FromInt((int)wxFONTENCODING_CP1255)); - PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_FromInt((int)wxFONTENCODING_CP1256)); - PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_FromInt((int)wxFONTENCODING_CP1257)); - PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_FromInt((int)wxFONTENCODING_CP12_MAX)); - PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_FromInt((int)wxFONTENCODING_UTF7)); - PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_FromInt((int)wxFONTENCODING_UTF8)); - PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_FromInt((int)wxFONTENCODING_EUC_JP)); - PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_FromInt((int)wxFONTENCODING_UTF16BE)); - PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_FromInt((int)wxFONTENCODING_UTF16LE)); - PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_FromInt((int)wxFONTENCODING_UTF32BE)); - PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_FromInt((int)wxFONTENCODING_UTF32LE)); - PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_FromInt((int)wxFONTENCODING_MACROMAN)); - PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_FromInt((int)wxFONTENCODING_MACJAPANESE)); - PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_FromInt((int)wxFONTENCODING_MACCHINESETRAD)); - PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_FromInt((int)wxFONTENCODING_MACKOREAN)); - PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_FromInt((int)wxFONTENCODING_MACARABIC)); - PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_FromInt((int)wxFONTENCODING_MACHEBREW)); - PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_FromInt((int)wxFONTENCODING_MACGREEK)); - PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_FromInt((int)wxFONTENCODING_MACCYRILLIC)); - PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_FromInt((int)wxFONTENCODING_MACDEVANAGARI)); - PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_FromInt((int)wxFONTENCODING_MACGURMUKHI)); - PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_FromInt((int)wxFONTENCODING_MACGUJARATI)); - PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_FromInt((int)wxFONTENCODING_MACORIYA)); - PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_FromInt((int)wxFONTENCODING_MACBENGALI)); - PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_FromInt((int)wxFONTENCODING_MACTAMIL)); - PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_FromInt((int)wxFONTENCODING_MACTELUGU)); - PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_FromInt((int)wxFONTENCODING_MACKANNADA)); - PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_FromInt((int)wxFONTENCODING_MACMALAJALAM)); - PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_FromInt((int)wxFONTENCODING_MACSINHALESE)); - PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_FromInt((int)wxFONTENCODING_MACBURMESE)); - PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_FromInt((int)wxFONTENCODING_MACKHMER)); - PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_FromInt((int)wxFONTENCODING_MACTHAI)); - PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_FromInt((int)wxFONTENCODING_MACLAOTIAN)); - PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_FromInt((int)wxFONTENCODING_MACGEORGIAN)); - PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_FromInt((int)wxFONTENCODING_MACARMENIAN)); - PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_FromInt((int)wxFONTENCODING_MACCHINESESIMP)); - PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_FromInt((int)wxFONTENCODING_MACTIBETAN)); - PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_FromInt((int)wxFONTENCODING_MACMONGOLIAN)); - PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_FromInt((int)wxFONTENCODING_MACETHIOPIC)); - PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_FromInt((int)wxFONTENCODING_MACCENTRALEUR)); - PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_FromInt((int)wxFONTENCODING_MACVIATNAMESE)); - PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_FromInt((int)wxFONTENCODING_MACARABICEXT)); - PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_FromInt((int)wxFONTENCODING_MACSYMBOL)); - PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_FromInt((int)wxFONTENCODING_MACDINGBATS)); - PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_FromInt((int)wxFONTENCODING_MACTURKISH)); - PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_FromInt((int)wxFONTENCODING_MACCROATIAN)); - PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_FromInt((int)wxFONTENCODING_MACICELANDIC)); - PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_FromInt((int)wxFONTENCODING_MACROMANIAN)); - PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_FromInt((int)wxFONTENCODING_MACCELTIC)); - PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_FromInt((int)wxFONTENCODING_MACGAELIC)); - PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_FromInt((int)wxFONTENCODING_MACKEYBOARD)); - PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_FromInt((int)wxFONTENCODING_MACMIN)); - PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_FromInt((int)wxFONTENCODING_MACMAX)); - PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_FromInt((int)wxFONTENCODING_MAX)); - PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_FromInt((int)wxFONTENCODING_UTF16)); - PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_FromInt((int)wxFONTENCODING_UTF32)); - PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_FromInt((int)wxFONTENCODING_UNICODE)); - PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_FromInt((int)wxFONTENCODING_GB2312)); - PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_FromInt((int)wxFONTENCODING_BIG5)); - PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_FromInt((int)wxFONTENCODING_SHIFT_JIS)); - - wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); - - PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_FromInt((int)wxLANGUAGE_DEFAULT)); - PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_FromInt((int)wxLANGUAGE_UNKNOWN)); - PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_FromInt((int)wxLANGUAGE_ABKHAZIAN)); - PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_FromInt((int)wxLANGUAGE_AFAR)); - PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_FromInt((int)wxLANGUAGE_AFRIKAANS)); - PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_FromInt((int)wxLANGUAGE_ALBANIAN)); - PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_FromInt((int)wxLANGUAGE_AMHARIC)); - PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_FromInt((int)wxLANGUAGE_ARABIC)); - PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA)); - PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN)); - PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_EGYPT)); - PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_FromInt((int)wxLANGUAGE_ARABIC_IRAQ)); - PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_JORDAN)); - PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT)); - PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LEBANON)); - PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LIBYA)); - PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO)); - PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_OMAN)); - PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_FromInt((int)wxLANGUAGE_ARABIC_QATAR)); - PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA)); - PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SUDAN)); - PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SYRIA)); - PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA)); - PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_FromInt((int)wxLANGUAGE_ARABIC_UAE)); - PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_YEMEN)); - PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_FromInt((int)wxLANGUAGE_ARMENIAN)); - PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_FromInt((int)wxLANGUAGE_ASSAMESE)); - PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_FromInt((int)wxLANGUAGE_AYMARA)); - PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_FromInt((int)wxLANGUAGE_AZERI)); - PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC)); - PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_FromInt((int)wxLANGUAGE_AZERI_LATIN)); - PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_FromInt((int)wxLANGUAGE_BASHKIR)); - PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_FromInt((int)wxLANGUAGE_BASQUE)); - PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_FromInt((int)wxLANGUAGE_BELARUSIAN)); - PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_FromInt((int)wxLANGUAGE_BENGALI)); - PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_FromInt((int)wxLANGUAGE_BHUTANI)); - PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_FromInt((int)wxLANGUAGE_BIHARI)); - PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_FromInt((int)wxLANGUAGE_BISLAMA)); - PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_FromInt((int)wxLANGUAGE_BRETON)); - PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_FromInt((int)wxLANGUAGE_BULGARIAN)); - PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_FromInt((int)wxLANGUAGE_BURMESE)); - PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_FromInt((int)wxLANGUAGE_CAMBODIAN)); - PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_FromInt((int)wxLANGUAGE_CATALAN)); - PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_FromInt((int)wxLANGUAGE_CHINESE)); - PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED)); - PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL)); - PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG)); - PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_FromInt((int)wxLANGUAGE_CHINESE_MACAU)); - PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE)); - PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN)); - PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_FromInt((int)wxLANGUAGE_CORSICAN)); - PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_CROATIAN)); - PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_FromInt((int)wxLANGUAGE_CZECH)); - PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_FromInt((int)wxLANGUAGE_DANISH)); - PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_FromInt((int)wxLANGUAGE_DUTCH)); - PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN)); - PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_FromInt((int)wxLANGUAGE_ENGLISH)); - PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_UK)); - PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_US)); - PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA)); - PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE)); - PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA)); - PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CANADA)); - PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN)); - PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK)); - PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_EIRE)); - PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA)); - PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND)); - PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES)); - PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA)); - PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD)); - PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE)); - PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_FromInt((int)wxLANGUAGE_ESPERANTO)); - PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_FromInt((int)wxLANGUAGE_ESTONIAN)); - PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_FromInt((int)wxLANGUAGE_FAEROESE)); - PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_FromInt((int)wxLANGUAGE_FARSI)); - PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_FromInt((int)wxLANGUAGE_FIJI)); - PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_FromInt((int)wxLANGUAGE_FINNISH)); - PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_FromInt((int)wxLANGUAGE_FRENCH)); - PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN)); - PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN)); - PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG)); - PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_FromInt((int)wxLANGUAGE_FRENCH_MONACO)); - PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_FromInt((int)wxLANGUAGE_FRENCH_SWISS)); - PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_FromInt((int)wxLANGUAGE_FRISIAN)); - PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_FromInt((int)wxLANGUAGE_GALICIAN)); - PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_FromInt((int)wxLANGUAGE_GEORGIAN)); - PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN)); - PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN)); - PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM)); - PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN)); - PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG)); - PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_GERMAN_SWISS)); - PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_FromInt((int)wxLANGUAGE_GREEK)); - PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_FromInt((int)wxLANGUAGE_GREENLANDIC)); - PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_FromInt((int)wxLANGUAGE_GUARANI)); - PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_FromInt((int)wxLANGUAGE_GUJARATI)); - PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_FromInt((int)wxLANGUAGE_HAUSA)); - PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_FromInt((int)wxLANGUAGE_HEBREW)); - PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_FromInt((int)wxLANGUAGE_HINDI)); - PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_FromInt((int)wxLANGUAGE_HUNGARIAN)); - PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_FromInt((int)wxLANGUAGE_ICELANDIC)); - PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_FromInt((int)wxLANGUAGE_INDONESIAN)); - PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUA)); - PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUE)); - PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_FromInt((int)wxLANGUAGE_INUKTITUT)); - PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_FromInt((int)wxLANGUAGE_INUPIAK)); - PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_FromInt((int)wxLANGUAGE_IRISH)); - PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_FromInt((int)wxLANGUAGE_ITALIAN)); - PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_ITALIAN_SWISS)); - PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_FromInt((int)wxLANGUAGE_JAPANESE)); - PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_FromInt((int)wxLANGUAGE_JAVANESE)); - PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_FromInt((int)wxLANGUAGE_KANNADA)); - PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI)); - PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA)); - PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_FromInt((int)wxLANGUAGE_KAZAKH)); - PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_FromInt((int)wxLANGUAGE_KERNEWEK)); - PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_FromInt((int)wxLANGUAGE_KINYARWANDA)); - PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_FromInt((int)wxLANGUAGE_KIRGHIZ)); - PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_FromInt((int)wxLANGUAGE_KIRUNDI)); - PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_FromInt((int)wxLANGUAGE_KONKANI)); - PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_FromInt((int)wxLANGUAGE_KOREAN)); - PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_FromInt((int)wxLANGUAGE_KURDISH)); - PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_FromInt((int)wxLANGUAGE_LAOTHIAN)); - PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_FromInt((int)wxLANGUAGE_LATIN)); - PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_FromInt((int)wxLANGUAGE_LATVIAN)); - PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_FromInt((int)wxLANGUAGE_LINGALA)); - PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_FromInt((int)wxLANGUAGE_LITHUANIAN)); - PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_FromInt((int)wxLANGUAGE_MACEDONIAN)); - PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_FromInt((int)wxLANGUAGE_MALAGASY)); - PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_FromInt((int)wxLANGUAGE_MALAY)); - PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_FromInt((int)wxLANGUAGE_MALAYALAM)); - PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)); - PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA)); - PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_FromInt((int)wxLANGUAGE_MALTESE)); - PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_FromInt((int)wxLANGUAGE_MANIPURI)); - PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_FromInt((int)wxLANGUAGE_MAORI)); - PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_FromInt((int)wxLANGUAGE_MARATHI)); - PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_FromInt((int)wxLANGUAGE_MOLDAVIAN)); - PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_FromInt((int)wxLANGUAGE_MONGOLIAN)); - PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_FromInt((int)wxLANGUAGE_NAURU)); - PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_FromInt((int)wxLANGUAGE_NEPALI)); - PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_FromInt((int)wxLANGUAGE_NEPALI_INDIA)); - PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL)); - PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK)); - PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_FromInt((int)wxLANGUAGE_OCCITAN)); - PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_FromInt((int)wxLANGUAGE_ORIYA)); - PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_FromInt((int)wxLANGUAGE_OROMO)); - PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_FromInt((int)wxLANGUAGE_PASHTO)); - PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_FromInt((int)wxLANGUAGE_POLISH)); - PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE)); - PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN)); - PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_FromInt((int)wxLANGUAGE_PUNJABI)); - PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_FromInt((int)wxLANGUAGE_QUECHUA)); - PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE)); - PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_FromInt((int)wxLANGUAGE_ROMANIAN)); - PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN)); - PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE)); - PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_FromInt((int)wxLANGUAGE_SAMOAN)); - PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_FromInt((int)wxLANGUAGE_SANGHO)); - PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_FromInt((int)wxLANGUAGE_SANSKRIT)); - PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_FromInt((int)wxLANGUAGE_SCOTS_GAELIC)); - PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN)); - PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC)); - PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_LATIN)); - PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_SERBO_CROATIAN)); - PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_FromInt((int)wxLANGUAGE_SESOTHO)); - PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_FromInt((int)wxLANGUAGE_SETSWANA)); - PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_FromInt((int)wxLANGUAGE_SHONA)); - PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_FromInt((int)wxLANGUAGE_SINDHI)); - PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_FromInt((int)wxLANGUAGE_SINHALESE)); - PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_FromInt((int)wxLANGUAGE_SISWATI)); - PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_FromInt((int)wxLANGUAGE_SLOVAK)); - PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_FromInt((int)wxLANGUAGE_SLOVENIAN)); - PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_FromInt((int)wxLANGUAGE_SOMALI)); - PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_FromInt((int)wxLANGUAGE_SPANISH)); - PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA)); - PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA)); - PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_FromInt((int)wxLANGUAGE_SPANISH_CHILE)); - PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA)); - PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA)); - PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)); - PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR)); - PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR)); - PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA)); - PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS)); - PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN)); - PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MODERN)); - PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA)); - PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PANAMA)); - PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY)); - PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PERU)); - PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO)); - PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY)); - PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_FromInt((int)wxLANGUAGE_SPANISH_US)); - PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA)); - PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_FromInt((int)wxLANGUAGE_SUNDANESE)); - PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_FromInt((int)wxLANGUAGE_SWAHILI)); - PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_FromInt((int)wxLANGUAGE_SWEDISH)); - PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND)); - PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_FromInt((int)wxLANGUAGE_TAGALOG)); - PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_FromInt((int)wxLANGUAGE_TAJIK)); - PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_FromInt((int)wxLANGUAGE_TAMIL)); - PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_FromInt((int)wxLANGUAGE_TATAR)); - PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_FromInt((int)wxLANGUAGE_TELUGU)); - PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_FromInt((int)wxLANGUAGE_THAI)); - PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_FromInt((int)wxLANGUAGE_TIBETAN)); - PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_FromInt((int)wxLANGUAGE_TIGRINYA)); - PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_FromInt((int)wxLANGUAGE_TONGA)); - PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_FromInt((int)wxLANGUAGE_TSONGA)); - PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_FromInt((int)wxLANGUAGE_TURKISH)); - PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_FromInt((int)wxLANGUAGE_TURKMEN)); - PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_FromInt((int)wxLANGUAGE_TWI)); - PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_FromInt((int)wxLANGUAGE_UIGHUR)); - PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_FromInt((int)wxLANGUAGE_UKRAINIAN)); - PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_FromInt((int)wxLANGUAGE_URDU)); - PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_FromInt((int)wxLANGUAGE_URDU_INDIA)); - PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_FromInt((int)wxLANGUAGE_URDU_PAKISTAN)); - PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_FromInt((int)wxLANGUAGE_UZBEK)); - PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC)); - PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_FromInt((int)wxLANGUAGE_UZBEK_LATIN)); - PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_FromInt((int)wxLANGUAGE_VIETNAMESE)); - PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_FromInt((int)wxLANGUAGE_VOLAPUK)); - PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_FromInt((int)wxLANGUAGE_WELSH)); - PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_FromInt((int)wxLANGUAGE_WOLOF)); - PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_FromInt((int)wxLANGUAGE_XHOSA)); - PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_FromInt((int)wxLANGUAGE_YIDDISH)); - PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_FromInt((int)wxLANGUAGE_YORUBA)); - PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_FromInt((int)wxLANGUAGE_ZHUANG)); - PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_FromInt((int)wxLANGUAGE_ZULU)); - PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_FromInt((int)wxLANGUAGE_USER_DEFINED)); - PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_FromInt((int)wxLOCALE_CAT_NUMBER)); - PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_FromInt((int)wxLOCALE_CAT_DATE)); - PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_FromInt((int)wxLOCALE_CAT_MONEY)); - PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_FromInt((int)wxLOCALE_CAT_MAX)); - PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_FromInt((int)wxLOCALE_THOUSANDS_SEP)); - PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_FromInt((int)wxLOCALE_DECIMAL_POINT)); - PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_FromInt((int)wxLOCALE_LOAD_DEFAULT)); - PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_FromInt((int)wxLOCALE_CONV_ENCODING)); - PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_FromInt((int)wxCONVERT_STRICT)); - PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_FromInt((int)wxCONVERT_SUBSTITUTE)); - PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_FromInt((int)wxPLATFORM_CURRENT)); - PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_FromInt((int)wxPLATFORM_UNIX)); - PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_FromInt((int)wxPLATFORM_WINDOWS)); - PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_FromInt((int)wxPLATFORM_OS2)); - PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_FromInt((int)wxPLATFORM_MAC)); - PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_FromInt((int)wxIMAGELIST_DRAW_NORMAL)); - PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT)); - PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_FromInt((int)wxIMAGELIST_DRAW_SELECTED)); - PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_FromInt((int)wxIMAGELIST_DRAW_FOCUSED)); - PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_FromInt((int)wxIMAGE_LIST_NORMAL)); - PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_FromInt((int)wxIMAGE_LIST_SMALL)); - PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_FromInt((int)wxIMAGE_LIST_STATE)); - PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); - SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set); - SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set); - SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set); - SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set); - SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set); - SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set); - SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set); - SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set); - SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set); - SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set); - SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set); - SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set); - SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set); - SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set); - SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set); - SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set); - SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set); - SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set); - SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set); - SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set); - SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set); - SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set); - SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set); - SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set); - SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set); - SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set); - SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set); - SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set); - SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set); - SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set); - SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set); - SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set); - SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set); - SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set); - SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set); - SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set); - SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set); - SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set); - SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set); - SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set); - SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set); - SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set); - SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set); - SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set); - SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set); - SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set); - - // Work around a chicken/egg problem in drawlist.cpp - wxPyDrawList_SetAPIPtr(); - -} - diff --git a/wxPython/src/mac/misc.py b/wxPython/src/mac/misc.py deleted file mode 100644 index 32315bff23..0000000000 --- a/wxPython/src/mac/misc.py +++ /dev/null @@ -1,5281 +0,0 @@ -# This file was created automatically by SWIG. -# Don't modify this file, modify the SWIG interface instead. - -import _misc - -import core -wx = core -__docfilter__ = wx.__docfilter__ -#--------------------------------------------------------------------------- - -SYS_OEM_FIXED_FONT = _misc.SYS_OEM_FIXED_FONT -SYS_ANSI_FIXED_FONT = _misc.SYS_ANSI_FIXED_FONT -SYS_ANSI_VAR_FONT = _misc.SYS_ANSI_VAR_FONT -SYS_SYSTEM_FONT = _misc.SYS_SYSTEM_FONT -SYS_DEVICE_DEFAULT_FONT = _misc.SYS_DEVICE_DEFAULT_FONT -SYS_DEFAULT_PALETTE = _misc.SYS_DEFAULT_PALETTE -SYS_SYSTEM_FIXED_FONT = _misc.SYS_SYSTEM_FIXED_FONT -SYS_DEFAULT_GUI_FONT = _misc.SYS_DEFAULT_GUI_FONT -SYS_ICONTITLE_FONT = _misc.SYS_ICONTITLE_FONT -SYS_COLOUR_SCROLLBAR = _misc.SYS_COLOUR_SCROLLBAR -SYS_COLOUR_BACKGROUND = _misc.SYS_COLOUR_BACKGROUND -SYS_COLOUR_DESKTOP = _misc.SYS_COLOUR_DESKTOP -SYS_COLOUR_ACTIVECAPTION = _misc.SYS_COLOUR_ACTIVECAPTION -SYS_COLOUR_INACTIVECAPTION = _misc.SYS_COLOUR_INACTIVECAPTION -SYS_COLOUR_MENU = _misc.SYS_COLOUR_MENU -SYS_COLOUR_WINDOW = _misc.SYS_COLOUR_WINDOW -SYS_COLOUR_WINDOWFRAME = _misc.SYS_COLOUR_WINDOWFRAME -SYS_COLOUR_MENUTEXT = _misc.SYS_COLOUR_MENUTEXT -SYS_COLOUR_WINDOWTEXT = _misc.SYS_COLOUR_WINDOWTEXT -SYS_COLOUR_CAPTIONTEXT = _misc.SYS_COLOUR_CAPTIONTEXT -SYS_COLOUR_ACTIVEBORDER = _misc.SYS_COLOUR_ACTIVEBORDER -SYS_COLOUR_INACTIVEBORDER = _misc.SYS_COLOUR_INACTIVEBORDER -SYS_COLOUR_APPWORKSPACE = _misc.SYS_COLOUR_APPWORKSPACE -SYS_COLOUR_HIGHLIGHT = _misc.SYS_COLOUR_HIGHLIGHT -SYS_COLOUR_HIGHLIGHTTEXT = _misc.SYS_COLOUR_HIGHLIGHTTEXT -SYS_COLOUR_BTNFACE = _misc.SYS_COLOUR_BTNFACE -SYS_COLOUR_3DFACE = _misc.SYS_COLOUR_3DFACE -SYS_COLOUR_BTNSHADOW = _misc.SYS_COLOUR_BTNSHADOW -SYS_COLOUR_3DSHADOW = _misc.SYS_COLOUR_3DSHADOW -SYS_COLOUR_GRAYTEXT = _misc.SYS_COLOUR_GRAYTEXT -SYS_COLOUR_BTNTEXT = _misc.SYS_COLOUR_BTNTEXT -SYS_COLOUR_INACTIVECAPTIONTEXT = _misc.SYS_COLOUR_INACTIVECAPTIONTEXT -SYS_COLOUR_BTNHIGHLIGHT = _misc.SYS_COLOUR_BTNHIGHLIGHT -SYS_COLOUR_BTNHILIGHT = _misc.SYS_COLOUR_BTNHILIGHT -SYS_COLOUR_3DHIGHLIGHT = _misc.SYS_COLOUR_3DHIGHLIGHT -SYS_COLOUR_3DHILIGHT = _misc.SYS_COLOUR_3DHILIGHT -SYS_COLOUR_3DDKSHADOW = _misc.SYS_COLOUR_3DDKSHADOW -SYS_COLOUR_3DLIGHT = _misc.SYS_COLOUR_3DLIGHT -SYS_COLOUR_INFOTEXT = _misc.SYS_COLOUR_INFOTEXT -SYS_COLOUR_INFOBK = _misc.SYS_COLOUR_INFOBK -SYS_COLOUR_LISTBOX = _misc.SYS_COLOUR_LISTBOX -SYS_COLOUR_HOTLIGHT = _misc.SYS_COLOUR_HOTLIGHT -SYS_COLOUR_GRADIENTACTIVECAPTION = _misc.SYS_COLOUR_GRADIENTACTIVECAPTION -SYS_COLOUR_GRADIENTINACTIVECAPTION = _misc.SYS_COLOUR_GRADIENTINACTIVECAPTION -SYS_COLOUR_MENUHILIGHT = _misc.SYS_COLOUR_MENUHILIGHT -SYS_COLOUR_MENUBAR = _misc.SYS_COLOUR_MENUBAR -SYS_COLOUR_MAX = _misc.SYS_COLOUR_MAX -SYS_MOUSE_BUTTONS = _misc.SYS_MOUSE_BUTTONS -SYS_BORDER_X = _misc.SYS_BORDER_X -SYS_BORDER_Y = _misc.SYS_BORDER_Y -SYS_CURSOR_X = _misc.SYS_CURSOR_X -SYS_CURSOR_Y = _misc.SYS_CURSOR_Y -SYS_DCLICK_X = _misc.SYS_DCLICK_X -SYS_DCLICK_Y = _misc.SYS_DCLICK_Y -SYS_DRAG_X = _misc.SYS_DRAG_X -SYS_DRAG_Y = _misc.SYS_DRAG_Y -SYS_EDGE_X = _misc.SYS_EDGE_X -SYS_EDGE_Y = _misc.SYS_EDGE_Y -SYS_HSCROLL_ARROW_X = _misc.SYS_HSCROLL_ARROW_X -SYS_HSCROLL_ARROW_Y = _misc.SYS_HSCROLL_ARROW_Y -SYS_HTHUMB_X = _misc.SYS_HTHUMB_X -SYS_ICON_X = _misc.SYS_ICON_X -SYS_ICON_Y = _misc.SYS_ICON_Y -SYS_ICONSPACING_X = _misc.SYS_ICONSPACING_X -SYS_ICONSPACING_Y = _misc.SYS_ICONSPACING_Y -SYS_WINDOWMIN_X = _misc.SYS_WINDOWMIN_X -SYS_WINDOWMIN_Y = _misc.SYS_WINDOWMIN_Y -SYS_SCREEN_X = _misc.SYS_SCREEN_X -SYS_SCREEN_Y = _misc.SYS_SCREEN_Y -SYS_FRAMESIZE_X = _misc.SYS_FRAMESIZE_X -SYS_FRAMESIZE_Y = _misc.SYS_FRAMESIZE_Y -SYS_SMALLICON_X = _misc.SYS_SMALLICON_X -SYS_SMALLICON_Y = _misc.SYS_SMALLICON_Y -SYS_HSCROLL_Y = _misc.SYS_HSCROLL_Y -SYS_VSCROLL_X = _misc.SYS_VSCROLL_X -SYS_VSCROLL_ARROW_X = _misc.SYS_VSCROLL_ARROW_X -SYS_VSCROLL_ARROW_Y = _misc.SYS_VSCROLL_ARROW_Y -SYS_VTHUMB_Y = _misc.SYS_VTHUMB_Y -SYS_CAPTION_Y = _misc.SYS_CAPTION_Y -SYS_MENU_Y = _misc.SYS_MENU_Y -SYS_NETWORK_PRESENT = _misc.SYS_NETWORK_PRESENT -SYS_PENWINDOWS_PRESENT = _misc.SYS_PENWINDOWS_PRESENT -SYS_SHOW_SOUNDS = _misc.SYS_SHOW_SOUNDS -SYS_SWAP_BUTTONS = _misc.SYS_SWAP_BUTTONS -SYS_CAN_DRAW_FRAME_DECORATIONS = _misc.SYS_CAN_DRAW_FRAME_DECORATIONS -SYS_CAN_ICONIZE_FRAME = _misc.SYS_CAN_ICONIZE_FRAME -SYS_SCREEN_NONE = _misc.SYS_SCREEN_NONE -SYS_SCREEN_TINY = _misc.SYS_SCREEN_TINY -SYS_SCREEN_PDA = _misc.SYS_SCREEN_PDA -SYS_SCREEN_SMALL = _misc.SYS_SCREEN_SMALL -SYS_SCREEN_DESKTOP = _misc.SYS_SCREEN_DESKTOP -class SystemSettings(object): - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxSystemSettings instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def GetColour(*args, **kwargs): - """SystemSettings.GetColour(int index) -> Colour""" - return _misc.SystemSettings_GetColour(*args, **kwargs) - - GetColour = staticmethod(GetColour) - def GetFont(*args, **kwargs): - """SystemSettings.GetFont(int index) -> Font""" - return _misc.SystemSettings_GetFont(*args, **kwargs) - - GetFont = staticmethod(GetFont) - def GetMetric(*args, **kwargs): - """SystemSettings.GetMetric(int index) -> int""" - return _misc.SystemSettings_GetMetric(*args, **kwargs) - - GetMetric = staticmethod(GetMetric) - def HasFeature(*args, **kwargs): - """SystemSettings.HasFeature(int index) -> bool""" - return _misc.SystemSettings_HasFeature(*args, **kwargs) - - HasFeature = staticmethod(HasFeature) - def GetScreenType(*args, **kwargs): - """SystemSettings.GetScreenType() -> int""" - return _misc.SystemSettings_GetScreenType(*args, **kwargs) - - GetScreenType = staticmethod(GetScreenType) - def SetScreenType(*args, **kwargs): - """SystemSettings.SetScreenType(int screen)""" - return _misc.SystemSettings_SetScreenType(*args, **kwargs) - - SetScreenType = staticmethod(SetScreenType) - -class SystemSettingsPtr(SystemSettings): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = SystemSettings -_misc.SystemSettings_swigregister(SystemSettingsPtr) - -def SystemSettings_GetColour(*args, **kwargs): - """SystemSettings_GetColour(int index) -> Colour""" - return _misc.SystemSettings_GetColour(*args, **kwargs) - -def SystemSettings_GetFont(*args, **kwargs): - """SystemSettings_GetFont(int index) -> Font""" - return _misc.SystemSettings_GetFont(*args, **kwargs) - -def SystemSettings_GetMetric(*args, **kwargs): - """SystemSettings_GetMetric(int index) -> int""" - return _misc.SystemSettings_GetMetric(*args, **kwargs) - -def SystemSettings_HasFeature(*args, **kwargs): - """SystemSettings_HasFeature(int index) -> bool""" - return _misc.SystemSettings_HasFeature(*args, **kwargs) - -def SystemSettings_GetScreenType(*args, **kwargs): - """SystemSettings_GetScreenType() -> int""" - return _misc.SystemSettings_GetScreenType(*args, **kwargs) - -def SystemSettings_SetScreenType(*args, **kwargs): - """SystemSettings_SetScreenType(int screen)""" - return _misc.SystemSettings_SetScreenType(*args, **kwargs) - -class SystemOptions(core.Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxSystemOptions instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> SystemOptions""" - newobj = _misc.new_SystemOptions(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def SetOption(*args, **kwargs): - """SystemOptions.SetOption(String name, String value)""" - return _misc.SystemOptions_SetOption(*args, **kwargs) - - SetOption = staticmethod(SetOption) - def SetOptionInt(*args, **kwargs): - """SystemOptions.SetOptionInt(String name, int value)""" - return _misc.SystemOptions_SetOptionInt(*args, **kwargs) - - SetOptionInt = staticmethod(SetOptionInt) - def GetOption(*args, **kwargs): - """SystemOptions.GetOption(String name) -> String""" - return _misc.SystemOptions_GetOption(*args, **kwargs) - - GetOption = staticmethod(GetOption) - def GetOptionInt(*args, **kwargs): - """SystemOptions.GetOptionInt(String name) -> int""" - return _misc.SystemOptions_GetOptionInt(*args, **kwargs) - - GetOptionInt = staticmethod(GetOptionInt) - def HasOption(*args, **kwargs): - """SystemOptions.HasOption(String name) -> bool""" - return _misc.SystemOptions_HasOption(*args, **kwargs) - - HasOption = staticmethod(HasOption) - -class SystemOptionsPtr(SystemOptions): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = SystemOptions -_misc.SystemOptions_swigregister(SystemOptionsPtr) - -def SystemOptions_SetOption(*args, **kwargs): - """SystemOptions_SetOption(String name, String value)""" - return _misc.SystemOptions_SetOption(*args, **kwargs) - -def SystemOptions_SetOptionInt(*args, **kwargs): - """SystemOptions_SetOptionInt(String name, int value)""" - return _misc.SystemOptions_SetOptionInt(*args, **kwargs) - -def SystemOptions_GetOption(*args, **kwargs): - """SystemOptions_GetOption(String name) -> String""" - return _misc.SystemOptions_GetOption(*args, **kwargs) - -def SystemOptions_GetOptionInt(*args, **kwargs): - """SystemOptions_GetOptionInt(String name) -> int""" - return _misc.SystemOptions_GetOptionInt(*args, **kwargs) - -def SystemOptions_HasOption(*args, **kwargs): - """SystemOptions_HasOption(String name) -> bool""" - return _misc.SystemOptions_HasOption(*args, **kwargs) - -#--------------------------------------------------------------------------- - - -def NewId(*args, **kwargs): - """NewId() -> long""" - return _misc.NewId(*args, **kwargs) - -def RegisterId(*args, **kwargs): - """RegisterId(long id)""" - return _misc.RegisterId(*args, **kwargs) - -def GetCurrentId(*args, **kwargs): - """GetCurrentId() -> long""" - return _misc.GetCurrentId(*args, **kwargs) - -def Bell(*args, **kwargs): - """Bell()""" - return _misc.Bell(*args, **kwargs) - -def EndBusyCursor(*args, **kwargs): - """EndBusyCursor()""" - return _misc.EndBusyCursor(*args, **kwargs) - -def GetElapsedTime(*args, **kwargs): - """GetElapsedTime(bool resetTimer=True) -> long""" - return _misc.GetElapsedTime(*args, **kwargs) - -def GetMousePosition(*args, **kwargs): - """GetMousePosition() -> (x,y)""" - return _misc.GetMousePosition(*args, **kwargs) - -def IsBusy(*args, **kwargs): - """IsBusy() -> bool""" - return _misc.IsBusy(*args, **kwargs) - -def Now(*args, **kwargs): - """Now() -> String""" - return _misc.Now(*args, **kwargs) - -def Shell(*args, **kwargs): - """Shell(String command=EmptyString) -> bool""" - return _misc.Shell(*args, **kwargs) - -def StartTimer(*args, **kwargs): - """StartTimer()""" - return _misc.StartTimer(*args, **kwargs) - -def GetOsVersion(*args, **kwargs): - """GetOsVersion() -> (platform, major, minor)""" - return _misc.GetOsVersion(*args, **kwargs) - -def GetOsDescription(*args, **kwargs): - """GetOsDescription() -> String""" - return _misc.GetOsDescription(*args, **kwargs) - -def GetFreeMemory(*args, **kwargs): - """GetFreeMemory() -> long""" - return _misc.GetFreeMemory(*args, **kwargs) -SHUTDOWN_POWEROFF = _misc.SHUTDOWN_POWEROFF -SHUTDOWN_REBOOT = _misc.SHUTDOWN_REBOOT - -def Shutdown(*args, **kwargs): - """Shutdown(int wFlags) -> bool""" - return _misc.Shutdown(*args, **kwargs) - -def Sleep(*args, **kwargs): - """Sleep(int secs)""" - return _misc.Sleep(*args, **kwargs) - -def Usleep(*args, **kwargs): - """Usleep(unsigned long milliseconds)""" - return _misc.Usleep(*args, **kwargs) - -def EnableTopLevelWindows(*args, **kwargs): - """EnableTopLevelWindows(bool enable)""" - return _misc.EnableTopLevelWindows(*args, **kwargs) - -def StripMenuCodes(*args, **kwargs): - """StripMenuCodes(String in) -> String""" - return _misc.StripMenuCodes(*args, **kwargs) - -def GetEmailAddress(*args, **kwargs): - """GetEmailAddress() -> String""" - return _misc.GetEmailAddress(*args, **kwargs) - -def GetHostName(*args, **kwargs): - """GetHostName() -> String""" - return _misc.GetHostName(*args, **kwargs) - -def GetFullHostName(*args, **kwargs): - """GetFullHostName() -> String""" - return _misc.GetFullHostName(*args, **kwargs) - -def GetUserId(*args, **kwargs): - """GetUserId() -> String""" - return _misc.GetUserId(*args, **kwargs) - -def GetUserName(*args, **kwargs): - """GetUserName() -> String""" - return _misc.GetUserName(*args, **kwargs) - -def GetHomeDir(*args, **kwargs): - """GetHomeDir() -> String""" - return _misc.GetHomeDir(*args, **kwargs) - -def GetUserHome(*args, **kwargs): - """GetUserHome(String user=EmptyString) -> String""" - return _misc.GetUserHome(*args, **kwargs) - -def GetProcessId(*args, **kwargs): - """GetProcessId() -> unsigned long""" - return _misc.GetProcessId(*args, **kwargs) - -def Trap(*args, **kwargs): - """Trap()""" - return _misc.Trap(*args, **kwargs) - -def FileSelector(*args, **kwargs): - """ - FileSelector(String message=FileSelectorPromptStr, String default_path=EmptyString, - String default_filename=EmptyString, - String default_extension=EmptyString, - String wildcard=FileSelectorDefaultWildcardStr, - int flags=0, Window parent=None, int x=-1, - int y=-1) -> String - """ - return _misc.FileSelector(*args, **kwargs) - -def LoadFileSelector(*args, **kwargs): - """ - LoadFileSelector(String what, String extension, String default_name=EmptyString, - Window parent=None) -> String - """ - return _misc.LoadFileSelector(*args, **kwargs) - -def SaveFileSelector(*args, **kwargs): - """ - SaveFileSelector(String what, String extension, String default_name=EmptyString, - Window parent=None) -> String - """ - return _misc.SaveFileSelector(*args, **kwargs) - -def DirSelector(*args, **kwargs): - """ - DirSelector(String message=DirSelectorPromptStr, String defaultPath=EmptyString, - long style=DD_DEFAULT_STYLE, - Point pos=DefaultPosition, Window parent=None) -> String - """ - return _misc.DirSelector(*args, **kwargs) - -def GetTextFromUser(*args, **kwargs): - """ - GetTextFromUser(String message, String caption=EmptyString, String default_value=EmptyString, - Window parent=None, - int x=-1, int y=-1, bool centre=True) -> String - """ - return _misc.GetTextFromUser(*args, **kwargs) - -def GetPasswordFromUser(*args, **kwargs): - """ - GetPasswordFromUser(String message, String caption=EmptyString, String default_value=EmptyString, - Window parent=None) -> String - """ - return _misc.GetPasswordFromUser(*args, **kwargs) - -def GetSingleChoice(*args, **kwargs): - """ - GetSingleChoice(String message, String caption, int choices, String choices_array, - Window parent=None, int x=-1, - int y=-1, bool centre=True, int width=150, int height=200) -> String - """ - return _misc.GetSingleChoice(*args, **kwargs) - -def GetSingleChoiceIndex(*args, **kwargs): - """ - GetSingleChoiceIndex(String message, String caption, int choices, String choices_array, - Window parent=None, int x=-1, - int y=-1, bool centre=True, int width=150, int height=200) -> int - """ - return _misc.GetSingleChoiceIndex(*args, **kwargs) - -def MessageBox(*args, **kwargs): - """ - MessageBox(String message, String caption=EmptyString, int style=wxOK|wxCENTRE, - Window parent=None, int x=-1, - int y=-1) -> int - """ - return _misc.MessageBox(*args, **kwargs) - -def GetNumberFromUser(*args, **kwargs): - """ - GetNumberFromUser(String message, String prompt, String caption, long value, - long min=0, long max=100, Window parent=None, - Point pos=DefaultPosition) -> long - """ - return _misc.GetNumberFromUser(*args, **kwargs) - -def ColourDisplay(*args, **kwargs): - """ColourDisplay() -> bool""" - return _misc.ColourDisplay(*args, **kwargs) - -def DisplayDepth(*args, **kwargs): - """DisplayDepth() -> int""" - return _misc.DisplayDepth(*args, **kwargs) - -def GetDisplayDepth(*args, **kwargs): - """GetDisplayDepth() -> int""" - return _misc.GetDisplayDepth(*args, **kwargs) - -def DisplaySize(*args, **kwargs): - """DisplaySize() -> (width, height)""" - return _misc.DisplaySize(*args, **kwargs) - -def GetDisplaySize(*args, **kwargs): - """GetDisplaySize() -> Size""" - return _misc.GetDisplaySize(*args, **kwargs) - -def DisplaySizeMM(*args, **kwargs): - """DisplaySizeMM() -> (width, height)""" - return _misc.DisplaySizeMM(*args, **kwargs) - -def GetDisplaySizeMM(*args, **kwargs): - """GetDisplaySizeMM() -> Size""" - return _misc.GetDisplaySizeMM(*args, **kwargs) - -def ClientDisplayRect(*args, **kwargs): - """ClientDisplayRect() -> (x, y, width, height)""" - return _misc.ClientDisplayRect(*args, **kwargs) - -def GetClientDisplayRect(*args, **kwargs): - """GetClientDisplayRect() -> Rect""" - return _misc.GetClientDisplayRect(*args, **kwargs) - -def SetCursor(*args, **kwargs): - """SetCursor(Cursor cursor)""" - return _misc.SetCursor(*args, **kwargs) - -def BeginBusyCursor(*args, **kwargs): - """BeginBusyCursor(Cursor cursor=wxHOURGLASS_CURSOR)""" - return _misc.BeginBusyCursor(*args, **kwargs) - -def GetActiveWindow(*args, **kwargs): - """GetActiveWindow() -> Window""" - return _misc.GetActiveWindow(*args, **kwargs) - -def GenericFindWindowAtPoint(*args, **kwargs): - """GenericFindWindowAtPoint(Point pt) -> Window""" - return _misc.GenericFindWindowAtPoint(*args, **kwargs) - -def FindWindowAtPoint(*args, **kwargs): - """FindWindowAtPoint(Point pt) -> Window""" - return _misc.FindWindowAtPoint(*args, **kwargs) - -def GetTopLevelParent(*args, **kwargs): - """GetTopLevelParent(Window win) -> Window""" - return _misc.GetTopLevelParent(*args, **kwargs) - -def GetKeyState(*args, **kwargs): - """GetKeyState(int key) -> bool""" - return _misc.GetKeyState(*args, **kwargs) - -def WakeUpMainThread(*args, **kwargs): - """WakeUpMainThread()""" - return _misc.WakeUpMainThread(*args, **kwargs) - -def MutexGuiEnter(*args, **kwargs): - """MutexGuiEnter()""" - return _misc.MutexGuiEnter(*args, **kwargs) - -def MutexGuiLeave(*args, **kwargs): - """MutexGuiLeave()""" - return _misc.MutexGuiLeave(*args, **kwargs) -class MutexGuiLocker(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxMutexGuiLocker instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> MutexGuiLocker""" - newobj = _misc.new_MutexGuiLocker(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_misc.delete_MutexGuiLocker): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - -class MutexGuiLockerPtr(MutexGuiLocker): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = MutexGuiLocker -_misc.MutexGuiLocker_swigregister(MutexGuiLockerPtr) -cvar = _misc.cvar -FileSelectorPromptStr = cvar.FileSelectorPromptStr -FileSelectorDefaultWildcardStr = cvar.FileSelectorDefaultWildcardStr -DirSelectorPromptStr = cvar.DirSelectorPromptStr - - -def Thread_IsMain(*args, **kwargs): - """Thread_IsMain() -> bool""" - return _misc.Thread_IsMain(*args, **kwargs) -#--------------------------------------------------------------------------- - -class ToolTip(core.Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxToolTip instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, String tip) -> ToolTip""" - newobj = _misc.new_ToolTip(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def SetTip(*args, **kwargs): - """SetTip(self, String tip)""" - return _misc.ToolTip_SetTip(*args, **kwargs) - - def GetTip(*args, **kwargs): - """GetTip(self) -> String""" - return _misc.ToolTip_GetTip(*args, **kwargs) - - def GetWindow(*args, **kwargs): - """GetWindow(self) -> Window""" - return _misc.ToolTip_GetWindow(*args, **kwargs) - - def Enable(*args, **kwargs): - """ToolTip.Enable(bool flag)""" - return _misc.ToolTip_Enable(*args, **kwargs) - - Enable = staticmethod(Enable) - def SetDelay(*args, **kwargs): - """ToolTip.SetDelay(long milliseconds)""" - return _misc.ToolTip_SetDelay(*args, **kwargs) - - SetDelay = staticmethod(SetDelay) - -class ToolTipPtr(ToolTip): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ToolTip -_misc.ToolTip_swigregister(ToolTipPtr) - -def ToolTip_Enable(*args, **kwargs): - """ToolTip_Enable(bool flag)""" - return _misc.ToolTip_Enable(*args, **kwargs) - -def ToolTip_SetDelay(*args, **kwargs): - """ToolTip_SetDelay(long milliseconds)""" - return _misc.ToolTip_SetDelay(*args, **kwargs) - -class Caret(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxCaret instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Window window, Size size) -> Caret""" - newobj = _misc.new_Caret(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_misc.delete_Caret): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def IsOk(*args, **kwargs): - """IsOk(self) -> bool""" - return _misc.Caret_IsOk(*args, **kwargs) - - def IsVisible(*args, **kwargs): - """IsVisible(self) -> bool""" - return _misc.Caret_IsVisible(*args, **kwargs) - - def GetPosition(*args, **kwargs): - """GetPosition(self) -> Point""" - return _misc.Caret_GetPosition(*args, **kwargs) - - def GetPositionTuple(*args, **kwargs): - """GetPositionTuple() -> (x,y)""" - return _misc.Caret_GetPositionTuple(*args, **kwargs) - - def GetSize(*args, **kwargs): - """GetSize(self) -> Size""" - return _misc.Caret_GetSize(*args, **kwargs) - - def GetSizeTuple(*args, **kwargs): - """GetSizeTuple() -> (width, height)""" - return _misc.Caret_GetSizeTuple(*args, **kwargs) - - def GetWindow(*args, **kwargs): - """GetWindow(self) -> Window""" - return _misc.Caret_GetWindow(*args, **kwargs) - - def MoveXY(*args, **kwargs): - """MoveXY(self, int x, int y)""" - return _misc.Caret_MoveXY(*args, **kwargs) - - def Move(*args, **kwargs): - """Move(self, Point pt)""" - return _misc.Caret_Move(*args, **kwargs) - - def SetSizeWH(*args, **kwargs): - """SetSizeWH(self, int width, int height)""" - return _misc.Caret_SetSizeWH(*args, **kwargs) - - def SetSize(*args, **kwargs): - """SetSize(self, Size size)""" - return _misc.Caret_SetSize(*args, **kwargs) - - def Show(*args, **kwargs): - """Show(self, int show=True)""" - return _misc.Caret_Show(*args, **kwargs) - - def Hide(*args, **kwargs): - """Hide(self)""" - return _misc.Caret_Hide(*args, **kwargs) - - def __nonzero__(self): return self.IsOk() - -class CaretPtr(Caret): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Caret -_misc.Caret_swigregister(CaretPtr) - - -def Caret_GetBlinkTime(*args, **kwargs): - """Caret_GetBlinkTime() -> int""" - return _misc.Caret_GetBlinkTime(*args, **kwargs) - -def Caret_SetBlinkTime(*args, **kwargs): - """Caret_SetBlinkTime(int milliseconds)""" - return _misc.Caret_SetBlinkTime(*args, **kwargs) -class BusyCursor(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxBusyCursor instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Cursor cursor=wxHOURGLASS_CURSOR) -> BusyCursor""" - newobj = _misc.new_BusyCursor(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_misc.delete_BusyCursor): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - -class BusyCursorPtr(BusyCursor): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = BusyCursor -_misc.BusyCursor_swigregister(BusyCursorPtr) - -class WindowDisabler(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxWindowDisabler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Window winToSkip=None) -> WindowDisabler""" - newobj = _misc.new_WindowDisabler(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_misc.delete_WindowDisabler): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - -class WindowDisablerPtr(WindowDisabler): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = WindowDisabler -_misc.WindowDisabler_swigregister(WindowDisablerPtr) - -class BusyInfo(core.Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxBusyInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, String message) -> BusyInfo""" - newobj = _misc.new_BusyInfo(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_misc.delete_BusyInfo): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - -class BusyInfoPtr(BusyInfo): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = BusyInfo -_misc.BusyInfo_swigregister(BusyInfoPtr) - -class StopWatch(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxStopWatch instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> StopWatch""" - newobj = _misc.new_StopWatch(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def Start(*args, **kwargs): - """Start(self, long t0=0)""" - return _misc.StopWatch_Start(*args, **kwargs) - - def Pause(*args, **kwargs): - """Pause(self)""" - return _misc.StopWatch_Pause(*args, **kwargs) - - def Resume(*args, **kwargs): - """Resume(self)""" - return _misc.StopWatch_Resume(*args, **kwargs) - - def Time(*args, **kwargs): - """Time(self) -> long""" - return _misc.StopWatch_Time(*args, **kwargs) - - -class StopWatchPtr(StopWatch): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = StopWatch -_misc.StopWatch_swigregister(StopWatchPtr) - -class FileHistory(core.Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxFileHistory instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int maxFiles=9) -> FileHistory""" - newobj = _misc.new_FileHistory(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_misc.delete_FileHistory): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def AddFileToHistory(*args, **kwargs): - """AddFileToHistory(self, String file)""" - return _misc.FileHistory_AddFileToHistory(*args, **kwargs) - - def RemoveFileFromHistory(*args, **kwargs): - """RemoveFileFromHistory(self, int i)""" - return _misc.FileHistory_RemoveFileFromHistory(*args, **kwargs) - - def GetMaxFiles(*args, **kwargs): - """GetMaxFiles(self) -> int""" - return _misc.FileHistory_GetMaxFiles(*args, **kwargs) - - def UseMenu(*args, **kwargs): - """UseMenu(self, Menu menu)""" - return _misc.FileHistory_UseMenu(*args, **kwargs) - - def RemoveMenu(*args, **kwargs): - """RemoveMenu(self, Menu menu)""" - return _misc.FileHistory_RemoveMenu(*args, **kwargs) - - def Load(*args, **kwargs): - """Load(self, ConfigBase config)""" - return _misc.FileHistory_Load(*args, **kwargs) - - def Save(*args, **kwargs): - """Save(self, ConfigBase config)""" - return _misc.FileHistory_Save(*args, **kwargs) - - def AddFilesToMenu(*args, **kwargs): - """AddFilesToMenu(self)""" - return _misc.FileHistory_AddFilesToMenu(*args, **kwargs) - - def AddFilesToThisMenu(*args, **kwargs): - """AddFilesToThisMenu(self, Menu menu)""" - return _misc.FileHistory_AddFilesToThisMenu(*args, **kwargs) - - def GetHistoryFile(*args, **kwargs): - """GetHistoryFile(self, int i) -> String""" - return _misc.FileHistory_GetHistoryFile(*args, **kwargs) - - def GetCount(*args, **kwargs): - """GetCount(self) -> int""" - return _misc.FileHistory_GetCount(*args, **kwargs) - - GetNoHistoryFiles = GetCount - -class FileHistoryPtr(FileHistory): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = FileHistory -_misc.FileHistory_swigregister(FileHistoryPtr) - -class SingleInstanceChecker(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxSingleInstanceChecker instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, String name, String path=EmptyString) -> SingleInstanceChecker""" - newobj = _misc.new_SingleInstanceChecker(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_misc.delete_SingleInstanceChecker): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Create(*args, **kwargs): - """Create(self, String name, String path=EmptyString) -> bool""" - return _misc.SingleInstanceChecker_Create(*args, **kwargs) - - def IsAnotherRunning(*args, **kwargs): - """IsAnotherRunning(self) -> bool""" - return _misc.SingleInstanceChecker_IsAnotherRunning(*args, **kwargs) - - -class SingleInstanceCheckerPtr(SingleInstanceChecker): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = SingleInstanceChecker -_misc.SingleInstanceChecker_swigregister(SingleInstanceCheckerPtr) - -def PreSingleInstanceChecker(*args, **kwargs): - """PreSingleInstanceChecker() -> SingleInstanceChecker""" - val = _misc.new_PreSingleInstanceChecker(*args, **kwargs) - val.thisown = 1 - return val - - -def DrawWindowOnDC(*args, **kwargs): - """DrawWindowOnDC(Window window, DC dc, int method)""" - return _misc.DrawWindowOnDC(*args, **kwargs) -#--------------------------------------------------------------------------- - -class TipProvider(object): - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxTipProvider instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __del__(self, destroy=_misc.delete_TipProvider): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def GetTip(*args, **kwargs): - """GetTip(self) -> String""" - return _misc.TipProvider_GetTip(*args, **kwargs) - - def GetCurrentTip(*args, **kwargs): - """GetCurrentTip(self) -> size_t""" - return _misc.TipProvider_GetCurrentTip(*args, **kwargs) - - def PreprocessTip(*args, **kwargs): - """PreprocessTip(self, String tip) -> String""" - return _misc.TipProvider_PreprocessTip(*args, **kwargs) - - -class TipProviderPtr(TipProvider): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = TipProvider -_misc.TipProvider_swigregister(TipProviderPtr) - -class PyTipProvider(TipProvider): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyTipProvider instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, size_t currentTip) -> PyTipProvider""" - newobj = _misc.new_PyTipProvider(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _misc.PyTipProvider__setCallbackInfo(*args, **kwargs) - - -class PyTipProviderPtr(PyTipProvider): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PyTipProvider -_misc.PyTipProvider_swigregister(PyTipProviderPtr) - - -def ShowTip(*args, **kwargs): - """ShowTip(Window parent, TipProvider tipProvider, bool showAtStartup=True) -> bool""" - return _misc.ShowTip(*args, **kwargs) - -def CreateFileTipProvider(*args, **kwargs): - """CreateFileTipProvider(String filename, size_t currentTip) -> TipProvider""" - return _misc.CreateFileTipProvider(*args, **kwargs) -#--------------------------------------------------------------------------- - -TIMER_CONTINUOUS = _misc.TIMER_CONTINUOUS -TIMER_ONE_SHOT = _misc.TIMER_ONE_SHOT -wxEVT_TIMER = _misc.wxEVT_TIMER -class Timer(core.EvtHandler): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyTimer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, EvtHandler owner=None, int id=-1) -> Timer""" - newobj = _misc.new_Timer(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setCallbackInfo(self, Timer, 0) - - def __del__(self, destroy=_misc.delete_Timer): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class, int incref=1)""" - return _misc.Timer__setCallbackInfo(*args, **kwargs) - - def SetOwner(*args, **kwargs): - """SetOwner(self, EvtHandler owner, int id=-1)""" - return _misc.Timer_SetOwner(*args, **kwargs) - - def Start(*args, **kwargs): - """Start(self, int milliseconds=-1, bool oneShot=False) -> bool""" - return _misc.Timer_Start(*args, **kwargs) - - def Stop(*args, **kwargs): - """Stop(self)""" - return _misc.Timer_Stop(*args, **kwargs) - - def IsRunning(*args, **kwargs): - """IsRunning(self) -> bool""" - return _misc.Timer_IsRunning(*args, **kwargs) - - def GetInterval(*args, **kwargs): - """GetInterval(self) -> int""" - return _misc.Timer_GetInterval(*args, **kwargs) - - def IsOneShot(*args, **kwargs): - """IsOneShot(self) -> bool""" - return _misc.Timer_IsOneShot(*args, **kwargs) - - def GetId(*args, **kwargs): - """GetId(self) -> int""" - return _misc.Timer_GetId(*args, **kwargs) - - -class TimerPtr(Timer): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Timer -_misc.Timer_swigregister(TimerPtr) - -# For backwards compatibility with 2.4 -class PyTimer(Timer): - def __init__(self, notify): - Timer.__init__(self) - self.notify = notify - - def Notify(self): - if self.notify: - self.notify() - - -EVT_TIMER = wx.PyEventBinder( wxEVT_TIMER, 1 ) - - -class TimerEvent(core.Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxTimerEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int timerid=0, int interval=0) -> TimerEvent""" - newobj = _misc.new_TimerEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetInterval(*args, **kwargs): - """GetInterval(self) -> int""" - return _misc.TimerEvent_GetInterval(*args, **kwargs) - - -class TimerEventPtr(TimerEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = TimerEvent -_misc.TimerEvent_swigregister(TimerEventPtr) - -class TimerRunner(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxTimerRunner instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args): - """ - __init__(self, wxTimer timer) -> TimerRunner - __init__(self, wxTimer timer, int milli, bool oneShot=False) -> TimerRunner - """ - newobj = _misc.new_TimerRunner(*args) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_misc.delete_TimerRunner): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Start(*args, **kwargs): - """Start(self, int milli, bool oneShot=False)""" - return _misc.TimerRunner_Start(*args, **kwargs) - - -class TimerRunnerPtr(TimerRunner): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = TimerRunner -_misc.TimerRunner_swigregister(TimerRunnerPtr) - -#--------------------------------------------------------------------------- - -LOG_FatalError = _misc.LOG_FatalError -LOG_Error = _misc.LOG_Error -LOG_Warning = _misc.LOG_Warning -LOG_Message = _misc.LOG_Message -LOG_Status = _misc.LOG_Status -LOG_Info = _misc.LOG_Info -LOG_Debug = _misc.LOG_Debug -LOG_Trace = _misc.LOG_Trace -LOG_Progress = _misc.LOG_Progress -LOG_User = _misc.LOG_User -LOG_Max = _misc.LOG_Max -TRACE_MemAlloc = _misc.TRACE_MemAlloc -TRACE_Messages = _misc.TRACE_Messages -TRACE_ResAlloc = _misc.TRACE_ResAlloc -TRACE_RefCount = _misc.TRACE_RefCount -TRACE_OleCalls = _misc.TRACE_OleCalls -TraceMemAlloc = _misc.TraceMemAlloc -TraceMessages = _misc.TraceMessages -TraceResAlloc = _misc.TraceResAlloc -TraceRefCount = _misc.TraceRefCount -TraceOleCalls = _misc.TraceOleCalls -class Log(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxLog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> Log""" - newobj = _misc.new_Log(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def IsEnabled(*args, **kwargs): - """Log.IsEnabled() -> bool""" - return _misc.Log_IsEnabled(*args, **kwargs) - - IsEnabled = staticmethod(IsEnabled) - def EnableLogging(*args, **kwargs): - """Log.EnableLogging(bool doIt=True) -> bool""" - return _misc.Log_EnableLogging(*args, **kwargs) - - EnableLogging = staticmethod(EnableLogging) - def OnLog(*args, **kwargs): - """Log.OnLog(wxLogLevel level, wxChar szString, time_t t)""" - return _misc.Log_OnLog(*args, **kwargs) - - OnLog = staticmethod(OnLog) - def Flush(*args, **kwargs): - """Flush(self)""" - return _misc.Log_Flush(*args, **kwargs) - - def FlushActive(*args, **kwargs): - """Log.FlushActive()""" - return _misc.Log_FlushActive(*args, **kwargs) - - FlushActive = staticmethod(FlushActive) - def GetActiveTarget(*args, **kwargs): - """Log.GetActiveTarget() -> Log""" - return _misc.Log_GetActiveTarget(*args, **kwargs) - - GetActiveTarget = staticmethod(GetActiveTarget) - def SetActiveTarget(*args, **kwargs): - """Log.SetActiveTarget(Log pLogger) -> Log""" - return _misc.Log_SetActiveTarget(*args, **kwargs) - - SetActiveTarget = staticmethod(SetActiveTarget) - def Suspend(*args, **kwargs): - """Log.Suspend()""" - return _misc.Log_Suspend(*args, **kwargs) - - Suspend = staticmethod(Suspend) - def Resume(*args, **kwargs): - """Log.Resume()""" - return _misc.Log_Resume(*args, **kwargs) - - Resume = staticmethod(Resume) - def SetVerbose(*args, **kwargs): - """Log.SetVerbose(bool bVerbose=True)""" - return _misc.Log_SetVerbose(*args, **kwargs) - - SetVerbose = staticmethod(SetVerbose) - def SetLogLevel(*args, **kwargs): - """Log.SetLogLevel(wxLogLevel logLevel)""" - return _misc.Log_SetLogLevel(*args, **kwargs) - - SetLogLevel = staticmethod(SetLogLevel) - def DontCreateOnDemand(*args, **kwargs): - """Log.DontCreateOnDemand()""" - return _misc.Log_DontCreateOnDemand(*args, **kwargs) - - DontCreateOnDemand = staticmethod(DontCreateOnDemand) - def SetTraceMask(*args, **kwargs): - """Log.SetTraceMask(wxTraceMask ulMask)""" - return _misc.Log_SetTraceMask(*args, **kwargs) - - SetTraceMask = staticmethod(SetTraceMask) - def AddTraceMask(*args, **kwargs): - """Log.AddTraceMask(String str)""" - return _misc.Log_AddTraceMask(*args, **kwargs) - - AddTraceMask = staticmethod(AddTraceMask) - def RemoveTraceMask(*args, **kwargs): - """Log.RemoveTraceMask(String str)""" - return _misc.Log_RemoveTraceMask(*args, **kwargs) - - RemoveTraceMask = staticmethod(RemoveTraceMask) - def ClearTraceMasks(*args, **kwargs): - """Log.ClearTraceMasks()""" - return _misc.Log_ClearTraceMasks(*args, **kwargs) - - ClearTraceMasks = staticmethod(ClearTraceMasks) - def GetTraceMasks(*args, **kwargs): - """Log.GetTraceMasks() -> wxArrayString""" - return _misc.Log_GetTraceMasks(*args, **kwargs) - - GetTraceMasks = staticmethod(GetTraceMasks) - def SetTimestamp(*args, **kwargs): - """Log.SetTimestamp(wxChar ts)""" - return _misc.Log_SetTimestamp(*args, **kwargs) - - SetTimestamp = staticmethod(SetTimestamp) - def GetVerbose(*args, **kwargs): - """Log.GetVerbose() -> bool""" - return _misc.Log_GetVerbose(*args, **kwargs) - - GetVerbose = staticmethod(GetVerbose) - def GetTraceMask(*args, **kwargs): - """Log.GetTraceMask() -> wxTraceMask""" - return _misc.Log_GetTraceMask(*args, **kwargs) - - GetTraceMask = staticmethod(GetTraceMask) - def IsAllowedTraceMask(*args, **kwargs): - """Log.IsAllowedTraceMask(wxChar mask) -> bool""" - return _misc.Log_IsAllowedTraceMask(*args, **kwargs) - - IsAllowedTraceMask = staticmethod(IsAllowedTraceMask) - def GetLogLevel(*args, **kwargs): - """Log.GetLogLevel() -> wxLogLevel""" - return _misc.Log_GetLogLevel(*args, **kwargs) - - GetLogLevel = staticmethod(GetLogLevel) - def GetTimestamp(*args, **kwargs): - """Log.GetTimestamp() -> wxChar""" - return _misc.Log_GetTimestamp(*args, **kwargs) - - GetTimestamp = staticmethod(GetTimestamp) - def TimeStamp(*args, **kwargs): - """Log.TimeStamp() -> String""" - return _misc.Log_TimeStamp(*args, **kwargs) - - TimeStamp = staticmethod(TimeStamp) - def Destroy(*args, **kwargs): - """Destroy(self)""" - return _misc.Log_Destroy(*args, **kwargs) - - -class LogPtr(Log): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Log -_misc.Log_swigregister(LogPtr) - -def Log_IsEnabled(*args, **kwargs): - """Log_IsEnabled() -> bool""" - return _misc.Log_IsEnabled(*args, **kwargs) - -def Log_EnableLogging(*args, **kwargs): - """Log_EnableLogging(bool doIt=True) -> bool""" - return _misc.Log_EnableLogging(*args, **kwargs) - -def Log_OnLog(*args, **kwargs): - """Log_OnLog(wxLogLevel level, wxChar szString, time_t t)""" - return _misc.Log_OnLog(*args, **kwargs) - -def Log_FlushActive(*args, **kwargs): - """Log_FlushActive()""" - return _misc.Log_FlushActive(*args, **kwargs) - -def Log_GetActiveTarget(*args, **kwargs): - """Log_GetActiveTarget() -> Log""" - return _misc.Log_GetActiveTarget(*args, **kwargs) - -def Log_SetActiveTarget(*args, **kwargs): - """Log_SetActiveTarget(Log pLogger) -> Log""" - return _misc.Log_SetActiveTarget(*args, **kwargs) - -def Log_Suspend(*args, **kwargs): - """Log_Suspend()""" - return _misc.Log_Suspend(*args, **kwargs) - -def Log_Resume(*args, **kwargs): - """Log_Resume()""" - return _misc.Log_Resume(*args, **kwargs) - -def Log_SetVerbose(*args, **kwargs): - """Log_SetVerbose(bool bVerbose=True)""" - return _misc.Log_SetVerbose(*args, **kwargs) - -def Log_SetLogLevel(*args, **kwargs): - """Log_SetLogLevel(wxLogLevel logLevel)""" - return _misc.Log_SetLogLevel(*args, **kwargs) - -def Log_DontCreateOnDemand(*args, **kwargs): - """Log_DontCreateOnDemand()""" - return _misc.Log_DontCreateOnDemand(*args, **kwargs) - -def Log_SetTraceMask(*args, **kwargs): - """Log_SetTraceMask(wxTraceMask ulMask)""" - return _misc.Log_SetTraceMask(*args, **kwargs) - -def Log_AddTraceMask(*args, **kwargs): - """Log_AddTraceMask(String str)""" - return _misc.Log_AddTraceMask(*args, **kwargs) - -def Log_RemoveTraceMask(*args, **kwargs): - """Log_RemoveTraceMask(String str)""" - return _misc.Log_RemoveTraceMask(*args, **kwargs) - -def Log_ClearTraceMasks(*args, **kwargs): - """Log_ClearTraceMasks()""" - return _misc.Log_ClearTraceMasks(*args, **kwargs) - -def Log_GetTraceMasks(*args, **kwargs): - """Log_GetTraceMasks() -> wxArrayString""" - return _misc.Log_GetTraceMasks(*args, **kwargs) - -def Log_SetTimestamp(*args, **kwargs): - """Log_SetTimestamp(wxChar ts)""" - return _misc.Log_SetTimestamp(*args, **kwargs) - -def Log_GetVerbose(*args, **kwargs): - """Log_GetVerbose() -> bool""" - return _misc.Log_GetVerbose(*args, **kwargs) - -def Log_GetTraceMask(*args, **kwargs): - """Log_GetTraceMask() -> wxTraceMask""" - return _misc.Log_GetTraceMask(*args, **kwargs) - -def Log_IsAllowedTraceMask(*args, **kwargs): - """Log_IsAllowedTraceMask(wxChar mask) -> bool""" - return _misc.Log_IsAllowedTraceMask(*args, **kwargs) - -def Log_GetLogLevel(*args, **kwargs): - """Log_GetLogLevel() -> wxLogLevel""" - return _misc.Log_GetLogLevel(*args, **kwargs) - -def Log_GetTimestamp(*args, **kwargs): - """Log_GetTimestamp() -> wxChar""" - return _misc.Log_GetTimestamp(*args, **kwargs) - -def Log_TimeStamp(*args, **kwargs): - """Log_TimeStamp() -> String""" - return _misc.Log_TimeStamp(*args, **kwargs) - -class LogStderr(Log): - def __repr__(self): - return "<%s.%s; proxy of C++ wxLogStderr instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> LogStderr""" - newobj = _misc.new_LogStderr(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class LogStderrPtr(LogStderr): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = LogStderr -_misc.LogStderr_swigregister(LogStderrPtr) - -class LogTextCtrl(Log): - def __repr__(self): - return "<%s.%s; proxy of C++ wxLogTextCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, wxTextCtrl pTextCtrl) -> LogTextCtrl""" - newobj = _misc.new_LogTextCtrl(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class LogTextCtrlPtr(LogTextCtrl): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = LogTextCtrl -_misc.LogTextCtrl_swigregister(LogTextCtrlPtr) - -class LogGui(Log): - def __repr__(self): - return "<%s.%s; proxy of C++ wxLogGui instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> LogGui""" - newobj = _misc.new_LogGui(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class LogGuiPtr(LogGui): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = LogGui -_misc.LogGui_swigregister(LogGuiPtr) - -class LogWindow(Log): - def __repr__(self): - return "<%s.%s; proxy of C++ wxLogWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, wxFrame pParent, String szTitle, bool bShow=True, bool bPassToOld=True) -> LogWindow""" - newobj = _misc.new_LogWindow(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def Show(*args, **kwargs): - """Show(self, bool bShow=True)""" - return _misc.LogWindow_Show(*args, **kwargs) - - def GetFrame(*args, **kwargs): - """GetFrame(self) -> wxFrame""" - return _misc.LogWindow_GetFrame(*args, **kwargs) - - def GetOldLog(*args, **kwargs): - """GetOldLog(self) -> Log""" - return _misc.LogWindow_GetOldLog(*args, **kwargs) - - def IsPassingMessages(*args, **kwargs): - """IsPassingMessages(self) -> bool""" - return _misc.LogWindow_IsPassingMessages(*args, **kwargs) - - def PassMessages(*args, **kwargs): - """PassMessages(self, bool bDoPass)""" - return _misc.LogWindow_PassMessages(*args, **kwargs) - - -class LogWindowPtr(LogWindow): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = LogWindow -_misc.LogWindow_swigregister(LogWindowPtr) - -class LogChain(Log): - def __repr__(self): - return "<%s.%s; proxy of C++ wxLogChain instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Log logger) -> LogChain""" - newobj = _misc.new_LogChain(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def SetLog(*args, **kwargs): - """SetLog(self, Log logger)""" - return _misc.LogChain_SetLog(*args, **kwargs) - - def PassMessages(*args, **kwargs): - """PassMessages(self, bool bDoPass)""" - return _misc.LogChain_PassMessages(*args, **kwargs) - - def IsPassingMessages(*args, **kwargs): - """IsPassingMessages(self) -> bool""" - return _misc.LogChain_IsPassingMessages(*args, **kwargs) - - def GetOldLog(*args, **kwargs): - """GetOldLog(self) -> Log""" - return _misc.LogChain_GetOldLog(*args, **kwargs) - - -class LogChainPtr(LogChain): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = LogChain -_misc.LogChain_swigregister(LogChainPtr) - - -def SysErrorCode(*args, **kwargs): - """SysErrorCode() -> unsigned long""" - return _misc.SysErrorCode(*args, **kwargs) - -def SysErrorMsg(*args, **kwargs): - """SysErrorMsg(unsigned long nErrCode=0) -> String""" - return _misc.SysErrorMsg(*args, **kwargs) - -def LogFatalError(*args, **kwargs): - """LogFatalError(String msg)""" - return _misc.LogFatalError(*args, **kwargs) - -def LogError(*args, **kwargs): - """LogError(String msg)""" - return _misc.LogError(*args, **kwargs) - -def LogWarning(*args, **kwargs): - """LogWarning(String msg)""" - return _misc.LogWarning(*args, **kwargs) - -def LogMessage(*args, **kwargs): - """LogMessage(String msg)""" - return _misc.LogMessage(*args, **kwargs) - -def LogInfo(*args, **kwargs): - """LogInfo(String msg)""" - return _misc.LogInfo(*args, **kwargs) - -def LogDebug(*args, **kwargs): - """LogDebug(String msg)""" - return _misc.LogDebug(*args, **kwargs) - -def LogVerbose(*args, **kwargs): - """LogVerbose(String msg)""" - return _misc.LogVerbose(*args, **kwargs) - -def LogStatus(*args, **kwargs): - """LogStatus(String msg)""" - return _misc.LogStatus(*args, **kwargs) - -def LogStatusFrame(*args, **kwargs): - """LogStatusFrame(wxFrame pFrame, String msg)""" - return _misc.LogStatusFrame(*args, **kwargs) - -def LogSysError(*args, **kwargs): - """LogSysError(String msg)""" - return _misc.LogSysError(*args, **kwargs) - -def LogGeneric(*args, **kwargs): - """LogGeneric(unsigned long level, String msg)""" - return _misc.LogGeneric(*args, **kwargs) - -def SafeShowMessage(*args, **kwargs): - """SafeShowMessage(String title, String text)""" - return _misc.SafeShowMessage(*args, **kwargs) -class LogNull(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxLogNull instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> LogNull""" - newobj = _misc.new_LogNull(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_misc.delete_LogNull): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - -class LogNullPtr(LogNull): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = LogNull -_misc.LogNull_swigregister(LogNullPtr) - -def LogTrace(*args): - """ - LogTrace(unsigned long mask, String msg) - LogTrace(String mask, String msg) - """ - return _misc.LogTrace(*args) - -class PyLog(Log): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyLog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> PyLog""" - newobj = _misc.new_PyLog(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setCallbackInfo(self, PyLog) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _misc.PyLog__setCallbackInfo(*args, **kwargs) - - -class PyLogPtr(PyLog): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PyLog -_misc.PyLog_swigregister(PyLogPtr) - -#--------------------------------------------------------------------------- - -PROCESS_DEFAULT = _misc.PROCESS_DEFAULT -PROCESS_REDIRECT = _misc.PROCESS_REDIRECT -KILL_OK = _misc.KILL_OK -KILL_BAD_SIGNAL = _misc.KILL_BAD_SIGNAL -KILL_ACCESS_DENIED = _misc.KILL_ACCESS_DENIED -KILL_NO_PROCESS = _misc.KILL_NO_PROCESS -KILL_ERROR = _misc.KILL_ERROR -SIGNONE = _misc.SIGNONE -SIGHUP = _misc.SIGHUP -SIGINT = _misc.SIGINT -SIGQUIT = _misc.SIGQUIT -SIGILL = _misc.SIGILL -SIGTRAP = _misc.SIGTRAP -SIGABRT = _misc.SIGABRT -SIGIOT = _misc.SIGIOT -SIGEMT = _misc.SIGEMT -SIGFPE = _misc.SIGFPE -SIGKILL = _misc.SIGKILL -SIGBUS = _misc.SIGBUS -SIGSEGV = _misc.SIGSEGV -SIGSYS = _misc.SIGSYS -SIGPIPE = _misc.SIGPIPE -SIGALRM = _misc.SIGALRM -SIGTERM = _misc.SIGTERM -class Process(core.EvtHandler): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyProcess instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def Kill(*args, **kwargs): - """Process.Kill(int pid, int sig=SIGTERM) -> int""" - return _misc.Process_Kill(*args, **kwargs) - - Kill = staticmethod(Kill) - def Exists(*args, **kwargs): - """Process.Exists(int pid) -> bool""" - return _misc.Process_Exists(*args, **kwargs) - - Exists = staticmethod(Exists) - def Open(*args, **kwargs): - """Process.Open(String cmd, int flags=EXEC_ASYNC) -> Process""" - return _misc.Process_Open(*args, **kwargs) - - Open = staticmethod(Open) - def __init__(self, *args, **kwargs): - """__init__(self, EvtHandler parent=None, int id=-1) -> Process""" - newobj = _misc.new_Process(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setCallbackInfo(self, Process) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _misc.Process__setCallbackInfo(*args, **kwargs) - - def base_OnTerminate(*args, **kwargs): - """base_OnTerminate(self, int pid, int status)""" - return _misc.Process_base_OnTerminate(*args, **kwargs) - - def Redirect(*args, **kwargs): - """Redirect(self)""" - return _misc.Process_Redirect(*args, **kwargs) - - def IsRedirected(*args, **kwargs): - """IsRedirected(self) -> bool""" - return _misc.Process_IsRedirected(*args, **kwargs) - - def Detach(*args, **kwargs): - """Detach(self)""" - return _misc.Process_Detach(*args, **kwargs) - - def GetInputStream(*args, **kwargs): - """GetInputStream(self) -> InputStream""" - return _misc.Process_GetInputStream(*args, **kwargs) - - def GetErrorStream(*args, **kwargs): - """GetErrorStream(self) -> InputStream""" - return _misc.Process_GetErrorStream(*args, **kwargs) - - def GetOutputStream(*args, **kwargs): - """GetOutputStream(self) -> OutputStream""" - return _misc.Process_GetOutputStream(*args, **kwargs) - - def CloseOutput(*args, **kwargs): - """CloseOutput(self)""" - return _misc.Process_CloseOutput(*args, **kwargs) - - def IsInputOpened(*args, **kwargs): - """IsInputOpened(self) -> bool""" - return _misc.Process_IsInputOpened(*args, **kwargs) - - def IsInputAvailable(*args, **kwargs): - """IsInputAvailable(self) -> bool""" - return _misc.Process_IsInputAvailable(*args, **kwargs) - - def IsErrorAvailable(*args, **kwargs): - """IsErrorAvailable(self) -> bool""" - return _misc.Process_IsErrorAvailable(*args, **kwargs) - - -class ProcessPtr(Process): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Process -_misc.Process_swigregister(ProcessPtr) - -def Process_Kill(*args, **kwargs): - """Process_Kill(int pid, int sig=SIGTERM) -> int""" - return _misc.Process_Kill(*args, **kwargs) - -def Process_Exists(*args, **kwargs): - """Process_Exists(int pid) -> bool""" - return _misc.Process_Exists(*args, **kwargs) - -def Process_Open(*args, **kwargs): - """Process_Open(String cmd, int flags=EXEC_ASYNC) -> Process""" - return _misc.Process_Open(*args, **kwargs) - -class ProcessEvent(core.Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxProcessEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int id=0, int pid=0, int exitcode=0) -> ProcessEvent""" - newobj = _misc.new_ProcessEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetPid(*args, **kwargs): - """GetPid(self) -> int""" - return _misc.ProcessEvent_GetPid(*args, **kwargs) - - def GetExitCode(*args, **kwargs): - """GetExitCode(self) -> int""" - return _misc.ProcessEvent_GetExitCode(*args, **kwargs) - - m_pid = property(_misc.ProcessEvent_m_pid_get, _misc.ProcessEvent_m_pid_set) - m_exitcode = property(_misc.ProcessEvent_m_exitcode_get, _misc.ProcessEvent_m_exitcode_set) - -class ProcessEventPtr(ProcessEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ProcessEvent -_misc.ProcessEvent_swigregister(ProcessEventPtr) - -wxEVT_END_PROCESS = _misc.wxEVT_END_PROCESS -EVT_END_PROCESS = wx.PyEventBinder( wxEVT_END_PROCESS, 1 ) - -EXEC_ASYNC = _misc.EXEC_ASYNC -EXEC_SYNC = _misc.EXEC_SYNC -EXEC_NOHIDE = _misc.EXEC_NOHIDE -EXEC_MAKE_GROUP_LEADER = _misc.EXEC_MAKE_GROUP_LEADER - -def Execute(*args, **kwargs): - """Execute(String command, int flags=EXEC_ASYNC, Process process=None) -> long""" - return _misc.Execute(*args, **kwargs) -#--------------------------------------------------------------------------- - -JOYSTICK1 = _misc.JOYSTICK1 -JOYSTICK2 = _misc.JOYSTICK2 -JOY_BUTTON_ANY = _misc.JOY_BUTTON_ANY -JOY_BUTTON1 = _misc.JOY_BUTTON1 -JOY_BUTTON2 = _misc.JOY_BUTTON2 -JOY_BUTTON3 = _misc.JOY_BUTTON3 -JOY_BUTTON4 = _misc.JOY_BUTTON4 -class Joystick(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxJoystick instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int joystick=JOYSTICK1) -> Joystick""" - newobj = _misc.new_Joystick(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_misc.delete_Joystick): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def GetPosition(*args, **kwargs): - """GetPosition(self) -> Point""" - return _misc.Joystick_GetPosition(*args, **kwargs) - - def GetZPosition(*args, **kwargs): - """GetZPosition(self) -> int""" - return _misc.Joystick_GetZPosition(*args, **kwargs) - - def GetButtonState(*args, **kwargs): - """GetButtonState(self) -> int""" - return _misc.Joystick_GetButtonState(*args, **kwargs) - - def GetPOVPosition(*args, **kwargs): - """GetPOVPosition(self) -> int""" - return _misc.Joystick_GetPOVPosition(*args, **kwargs) - - def GetPOVCTSPosition(*args, **kwargs): - """GetPOVCTSPosition(self) -> int""" - return _misc.Joystick_GetPOVCTSPosition(*args, **kwargs) - - def GetRudderPosition(*args, **kwargs): - """GetRudderPosition(self) -> int""" - return _misc.Joystick_GetRudderPosition(*args, **kwargs) - - def GetUPosition(*args, **kwargs): - """GetUPosition(self) -> int""" - return _misc.Joystick_GetUPosition(*args, **kwargs) - - def GetVPosition(*args, **kwargs): - """GetVPosition(self) -> int""" - return _misc.Joystick_GetVPosition(*args, **kwargs) - - def GetMovementThreshold(*args, **kwargs): - """GetMovementThreshold(self) -> int""" - return _misc.Joystick_GetMovementThreshold(*args, **kwargs) - - def SetMovementThreshold(*args, **kwargs): - """SetMovementThreshold(self, int threshold)""" - return _misc.Joystick_SetMovementThreshold(*args, **kwargs) - - def IsOk(*args, **kwargs): - """IsOk(self) -> bool""" - return _misc.Joystick_IsOk(*args, **kwargs) - - def GetNumberJoysticks(*args, **kwargs): - """GetNumberJoysticks(self) -> int""" - return _misc.Joystick_GetNumberJoysticks(*args, **kwargs) - - def GetManufacturerId(*args, **kwargs): - """GetManufacturerId(self) -> int""" - return _misc.Joystick_GetManufacturerId(*args, **kwargs) - - def GetProductId(*args, **kwargs): - """GetProductId(self) -> int""" - return _misc.Joystick_GetProductId(*args, **kwargs) - - def GetProductName(*args, **kwargs): - """GetProductName(self) -> String""" - return _misc.Joystick_GetProductName(*args, **kwargs) - - def GetXMin(*args, **kwargs): - """GetXMin(self) -> int""" - return _misc.Joystick_GetXMin(*args, **kwargs) - - def GetYMin(*args, **kwargs): - """GetYMin(self) -> int""" - return _misc.Joystick_GetYMin(*args, **kwargs) - - def GetZMin(*args, **kwargs): - """GetZMin(self) -> int""" - return _misc.Joystick_GetZMin(*args, **kwargs) - - def GetXMax(*args, **kwargs): - """GetXMax(self) -> int""" - return _misc.Joystick_GetXMax(*args, **kwargs) - - def GetYMax(*args, **kwargs): - """GetYMax(self) -> int""" - return _misc.Joystick_GetYMax(*args, **kwargs) - - def GetZMax(*args, **kwargs): - """GetZMax(self) -> int""" - return _misc.Joystick_GetZMax(*args, **kwargs) - - def GetNumberButtons(*args, **kwargs): - """GetNumberButtons(self) -> int""" - return _misc.Joystick_GetNumberButtons(*args, **kwargs) - - def GetNumberAxes(*args, **kwargs): - """GetNumberAxes(self) -> int""" - return _misc.Joystick_GetNumberAxes(*args, **kwargs) - - def GetMaxButtons(*args, **kwargs): - """GetMaxButtons(self) -> int""" - return _misc.Joystick_GetMaxButtons(*args, **kwargs) - - def GetMaxAxes(*args, **kwargs): - """GetMaxAxes(self) -> int""" - return _misc.Joystick_GetMaxAxes(*args, **kwargs) - - def GetPollingMin(*args, **kwargs): - """GetPollingMin(self) -> int""" - return _misc.Joystick_GetPollingMin(*args, **kwargs) - - def GetPollingMax(*args, **kwargs): - """GetPollingMax(self) -> int""" - return _misc.Joystick_GetPollingMax(*args, **kwargs) - - def GetRudderMin(*args, **kwargs): - """GetRudderMin(self) -> int""" - return _misc.Joystick_GetRudderMin(*args, **kwargs) - - def GetRudderMax(*args, **kwargs): - """GetRudderMax(self) -> int""" - return _misc.Joystick_GetRudderMax(*args, **kwargs) - - def GetUMin(*args, **kwargs): - """GetUMin(self) -> int""" - return _misc.Joystick_GetUMin(*args, **kwargs) - - def GetUMax(*args, **kwargs): - """GetUMax(self) -> int""" - return _misc.Joystick_GetUMax(*args, **kwargs) - - def GetVMin(*args, **kwargs): - """GetVMin(self) -> int""" - return _misc.Joystick_GetVMin(*args, **kwargs) - - def GetVMax(*args, **kwargs): - """GetVMax(self) -> int""" - return _misc.Joystick_GetVMax(*args, **kwargs) - - def HasRudder(*args, **kwargs): - """HasRudder(self) -> bool""" - return _misc.Joystick_HasRudder(*args, **kwargs) - - def HasZ(*args, **kwargs): - """HasZ(self) -> bool""" - return _misc.Joystick_HasZ(*args, **kwargs) - - def HasU(*args, **kwargs): - """HasU(self) -> bool""" - return _misc.Joystick_HasU(*args, **kwargs) - - def HasV(*args, **kwargs): - """HasV(self) -> bool""" - return _misc.Joystick_HasV(*args, **kwargs) - - def HasPOV(*args, **kwargs): - """HasPOV(self) -> bool""" - return _misc.Joystick_HasPOV(*args, **kwargs) - - def HasPOV4Dir(*args, **kwargs): - """HasPOV4Dir(self) -> bool""" - return _misc.Joystick_HasPOV4Dir(*args, **kwargs) - - def HasPOVCTS(*args, **kwargs): - """HasPOVCTS(self) -> bool""" - return _misc.Joystick_HasPOVCTS(*args, **kwargs) - - def SetCapture(*args, **kwargs): - """SetCapture(self, Window win, int pollingFreq=0) -> bool""" - return _misc.Joystick_SetCapture(*args, **kwargs) - - def ReleaseCapture(*args, **kwargs): - """ReleaseCapture(self) -> bool""" - return _misc.Joystick_ReleaseCapture(*args, **kwargs) - - def __nonzero__(self): return self.IsOk() - -class JoystickPtr(Joystick): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Joystick -_misc.Joystick_swigregister(JoystickPtr) - -wxEVT_JOY_BUTTON_DOWN = _misc.wxEVT_JOY_BUTTON_DOWN -wxEVT_JOY_BUTTON_UP = _misc.wxEVT_JOY_BUTTON_UP -wxEVT_JOY_MOVE = _misc.wxEVT_JOY_MOVE -wxEVT_JOY_ZMOVE = _misc.wxEVT_JOY_ZMOVE -class JoystickEvent(core.Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxJoystickEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - m_pos = property(_misc.JoystickEvent_m_pos_get, _misc.JoystickEvent_m_pos_set) - m_zPosition = property(_misc.JoystickEvent_m_zPosition_get, _misc.JoystickEvent_m_zPosition_set) - m_buttonChange = property(_misc.JoystickEvent_m_buttonChange_get, _misc.JoystickEvent_m_buttonChange_set) - m_buttonState = property(_misc.JoystickEvent_m_buttonState_get, _misc.JoystickEvent_m_buttonState_set) - m_joyStick = property(_misc.JoystickEvent_m_joyStick_get, _misc.JoystickEvent_m_joyStick_set) - def __init__(self, *args, **kwargs): - """ - __init__(self, wxEventType type=wxEVT_NULL, int state=0, int joystick=JOYSTICK1, - int change=0) -> JoystickEvent - """ - newobj = _misc.new_JoystickEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetPosition(*args, **kwargs): - """GetPosition(self) -> Point""" - return _misc.JoystickEvent_GetPosition(*args, **kwargs) - - def GetZPosition(*args, **kwargs): - """GetZPosition(self) -> int""" - return _misc.JoystickEvent_GetZPosition(*args, **kwargs) - - def GetButtonState(*args, **kwargs): - """GetButtonState(self) -> int""" - return _misc.JoystickEvent_GetButtonState(*args, **kwargs) - - def GetButtonChange(*args, **kwargs): - """GetButtonChange(self) -> int""" - return _misc.JoystickEvent_GetButtonChange(*args, **kwargs) - - def GetJoystick(*args, **kwargs): - """GetJoystick(self) -> int""" - return _misc.JoystickEvent_GetJoystick(*args, **kwargs) - - def SetJoystick(*args, **kwargs): - """SetJoystick(self, int stick)""" - return _misc.JoystickEvent_SetJoystick(*args, **kwargs) - - def SetButtonState(*args, **kwargs): - """SetButtonState(self, int state)""" - return _misc.JoystickEvent_SetButtonState(*args, **kwargs) - - def SetButtonChange(*args, **kwargs): - """SetButtonChange(self, int change)""" - return _misc.JoystickEvent_SetButtonChange(*args, **kwargs) - - def SetPosition(*args, **kwargs): - """SetPosition(self, Point pos)""" - return _misc.JoystickEvent_SetPosition(*args, **kwargs) - - def SetZPosition(*args, **kwargs): - """SetZPosition(self, int zPos)""" - return _misc.JoystickEvent_SetZPosition(*args, **kwargs) - - def IsButton(*args, **kwargs): - """IsButton(self) -> bool""" - return _misc.JoystickEvent_IsButton(*args, **kwargs) - - def IsMove(*args, **kwargs): - """IsMove(self) -> bool""" - return _misc.JoystickEvent_IsMove(*args, **kwargs) - - def IsZMove(*args, **kwargs): - """IsZMove(self) -> bool""" - return _misc.JoystickEvent_IsZMove(*args, **kwargs) - - def ButtonDown(*args, **kwargs): - """ButtonDown(self, int but=JOY_BUTTON_ANY) -> bool""" - return _misc.JoystickEvent_ButtonDown(*args, **kwargs) - - def ButtonUp(*args, **kwargs): - """ButtonUp(self, int but=JOY_BUTTON_ANY) -> bool""" - return _misc.JoystickEvent_ButtonUp(*args, **kwargs) - - def ButtonIsDown(*args, **kwargs): - """ButtonIsDown(self, int but=JOY_BUTTON_ANY) -> bool""" - return _misc.JoystickEvent_ButtonIsDown(*args, **kwargs) - - -class JoystickEventPtr(JoystickEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = JoystickEvent -_misc.JoystickEvent_swigregister(JoystickEventPtr) - -EVT_JOY_BUTTON_DOWN = wx.PyEventBinder( wxEVT_JOY_BUTTON_DOWN ) -EVT_JOY_BUTTON_UP = wx.PyEventBinder( wxEVT_JOY_BUTTON_UP ) -EVT_JOY_MOVE = wx.PyEventBinder( wxEVT_JOY_MOVE ) -EVT_JOY_ZMOVE = wx.PyEventBinder( wxEVT_JOY_ZMOVE ) - -EVT_JOYSTICK_EVENTS = wx.PyEventBinder([ wxEVT_JOY_BUTTON_DOWN, - wxEVT_JOY_BUTTON_UP, - wxEVT_JOY_MOVE, - wxEVT_JOY_ZMOVE, - ]) - - -#--------------------------------------------------------------------------- - -SOUND_SYNC = _misc.SOUND_SYNC -SOUND_ASYNC = _misc.SOUND_ASYNC -SOUND_LOOP = _misc.SOUND_LOOP -class Sound(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxSound instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args): - """ - __init__(self) -> Sound - __init__(self, String fileName, bool isResource=false) -> Sound - __init__(self, int size, wxByte data) -> Sound - """ - newobj = _misc.new_Sound(*args) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_misc.delete_Sound): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Create(*args): - """ - Create(self, String fileName, bool isResource=false) -> bool - Create(self, int size, wxByte data) -> bool - """ - return _misc.Sound_Create(*args) - - def IsOk(*args, **kwargs): - """IsOk(self) -> bool""" - return _misc.Sound_IsOk(*args, **kwargs) - - def Play(*args): - """Play(self, unsigned int flags=SOUND_ASYNC) -> bool""" - return _misc.Sound_Play(*args) - - def PlaySound(*args): - """Sound.PlaySound(String filename, unsigned int flags=SOUND_ASYNC) -> bool""" - return _misc.Sound_PlaySound(*args) - - PlaySound = staticmethod(PlaySound) - def Stop(*args, **kwargs): - """Sound.Stop()""" - return _misc.Sound_Stop(*args, **kwargs) - - Stop = staticmethod(Stop) - def __nonzero__(self): return self.IsOk() - -class SoundPtr(Sound): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Sound -_misc.Sound_swigregister(SoundPtr) - -def Sound_PlaySound(*args): - """Sound_PlaySound(String filename, unsigned int flags=SOUND_ASYNC) -> bool""" - return _misc.Sound_PlaySound(*args) - -def Sound_Stop(*args, **kwargs): - """Sound_Stop()""" - return _misc.Sound_Stop(*args, **kwargs) - -#--------------------------------------------------------------------------- - -MAILCAP_STANDARD = _misc.MAILCAP_STANDARD -MAILCAP_NETSCAPE = _misc.MAILCAP_NETSCAPE -MAILCAP_KDE = _misc.MAILCAP_KDE -MAILCAP_GNOME = _misc.MAILCAP_GNOME -MAILCAP_ALL = _misc.MAILCAP_ALL -class FileTypeInfo(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxFileTypeInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, String mimeType, String openCmd, String printCmd, String desc) -> FileTypeInfo""" - newobj = _misc.new_FileTypeInfo(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def IsValid(*args, **kwargs): - """IsValid(self) -> bool""" - return _misc.FileTypeInfo_IsValid(*args, **kwargs) - - def SetIcon(*args, **kwargs): - """SetIcon(self, String iconFile, int iconIndex=0)""" - return _misc.FileTypeInfo_SetIcon(*args, **kwargs) - - def SetShortDesc(*args, **kwargs): - """SetShortDesc(self, String shortDesc)""" - return _misc.FileTypeInfo_SetShortDesc(*args, **kwargs) - - def GetMimeType(*args, **kwargs): - """GetMimeType(self) -> String""" - return _misc.FileTypeInfo_GetMimeType(*args, **kwargs) - - def GetOpenCommand(*args, **kwargs): - """GetOpenCommand(self) -> String""" - return _misc.FileTypeInfo_GetOpenCommand(*args, **kwargs) - - def GetPrintCommand(*args, **kwargs): - """GetPrintCommand(self) -> String""" - return _misc.FileTypeInfo_GetPrintCommand(*args, **kwargs) - - def GetShortDesc(*args, **kwargs): - """GetShortDesc(self) -> String""" - return _misc.FileTypeInfo_GetShortDesc(*args, **kwargs) - - def GetDescription(*args, **kwargs): - """GetDescription(self) -> String""" - return _misc.FileTypeInfo_GetDescription(*args, **kwargs) - - def GetExtensions(*args, **kwargs): - """GetExtensions(self) -> wxArrayString""" - return _misc.FileTypeInfo_GetExtensions(*args, **kwargs) - - def GetExtensionsCount(*args, **kwargs): - """GetExtensionsCount(self) -> int""" - return _misc.FileTypeInfo_GetExtensionsCount(*args, **kwargs) - - def GetIconFile(*args, **kwargs): - """GetIconFile(self) -> String""" - return _misc.FileTypeInfo_GetIconFile(*args, **kwargs) - - def GetIconIndex(*args, **kwargs): - """GetIconIndex(self) -> int""" - return _misc.FileTypeInfo_GetIconIndex(*args, **kwargs) - - -class FileTypeInfoPtr(FileTypeInfo): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = FileTypeInfo -_misc.FileTypeInfo_swigregister(FileTypeInfoPtr) - -def FileTypeInfoSequence(*args, **kwargs): - """FileTypeInfoSequence(wxArrayString sArray) -> FileTypeInfo""" - val = _misc.new_FileTypeInfoSequence(*args, **kwargs) - val.thisown = 1 - return val - -def NullFileTypeInfo(*args, **kwargs): - """NullFileTypeInfo() -> FileTypeInfo""" - val = _misc.new_NullFileTypeInfo(*args, **kwargs) - val.thisown = 1 - return val - -class FileType(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxFileType instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, FileTypeInfo ftInfo) -> FileType""" - newobj = _misc.new_FileType(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_misc.delete_FileType): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def GetMimeType(*args, **kwargs): - """GetMimeType(self) -> PyObject""" - return _misc.FileType_GetMimeType(*args, **kwargs) - - def GetMimeTypes(*args, **kwargs): - """GetMimeTypes(self) -> PyObject""" - return _misc.FileType_GetMimeTypes(*args, **kwargs) - - def GetExtensions(*args, **kwargs): - """GetExtensions(self) -> PyObject""" - return _misc.FileType_GetExtensions(*args, **kwargs) - - def GetIcon(*args, **kwargs): - """GetIcon(self) -> Icon""" - return _misc.FileType_GetIcon(*args, **kwargs) - - def GetIconInfo(*args, **kwargs): - """GetIconInfo(self) -> PyObject""" - return _misc.FileType_GetIconInfo(*args, **kwargs) - - def GetDescription(*args, **kwargs): - """GetDescription(self) -> PyObject""" - return _misc.FileType_GetDescription(*args, **kwargs) - - def GetOpenCommand(*args, **kwargs): - """GetOpenCommand(self, String filename, String mimetype=EmptyString) -> PyObject""" - return _misc.FileType_GetOpenCommand(*args, **kwargs) - - def GetPrintCommand(*args, **kwargs): - """GetPrintCommand(self, String filename, String mimetype=EmptyString) -> PyObject""" - return _misc.FileType_GetPrintCommand(*args, **kwargs) - - def GetAllCommands(*args, **kwargs): - """GetAllCommands(self, String filename, String mimetype=EmptyString) -> PyObject""" - return _misc.FileType_GetAllCommands(*args, **kwargs) - - def SetCommand(*args, **kwargs): - """SetCommand(self, String cmd, String verb, bool overwriteprompt=True) -> bool""" - return _misc.FileType_SetCommand(*args, **kwargs) - - def SetDefaultIcon(*args, **kwargs): - """SetDefaultIcon(self, String cmd=EmptyString, int index=0) -> bool""" - return _misc.FileType_SetDefaultIcon(*args, **kwargs) - - def Unassociate(*args, **kwargs): - """Unassociate(self) -> bool""" - return _misc.FileType_Unassociate(*args, **kwargs) - - def ExpandCommand(*args, **kwargs): - """FileType.ExpandCommand(String command, String filename, String mimetype=EmptyString) -> String""" - return _misc.FileType_ExpandCommand(*args, **kwargs) - - ExpandCommand = staticmethod(ExpandCommand) - -class FileTypePtr(FileType): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = FileType -_misc.FileType_swigregister(FileTypePtr) - -def FileType_ExpandCommand(*args, **kwargs): - """FileType_ExpandCommand(String command, String filename, String mimetype=EmptyString) -> String""" - return _misc.FileType_ExpandCommand(*args, **kwargs) - -class MimeTypesManager(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxMimeTypesManager instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def IsOfType(*args, **kwargs): - """MimeTypesManager.IsOfType(String mimeType, String wildcard) -> bool""" - return _misc.MimeTypesManager_IsOfType(*args, **kwargs) - - IsOfType = staticmethod(IsOfType) - def __init__(self, *args, **kwargs): - """__init__(self) -> MimeTypesManager""" - newobj = _misc.new_MimeTypesManager(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def Initialize(*args, **kwargs): - """Initialize(self, int mailcapStyle=MAILCAP_ALL, String extraDir=EmptyString)""" - return _misc.MimeTypesManager_Initialize(*args, **kwargs) - - def ClearData(*args, **kwargs): - """ClearData(self)""" - return _misc.MimeTypesManager_ClearData(*args, **kwargs) - - def GetFileTypeFromExtension(*args, **kwargs): - """GetFileTypeFromExtension(self, String ext) -> FileType""" - return _misc.MimeTypesManager_GetFileTypeFromExtension(*args, **kwargs) - - def GetFileTypeFromMimeType(*args, **kwargs): - """GetFileTypeFromMimeType(self, String mimeType) -> FileType""" - return _misc.MimeTypesManager_GetFileTypeFromMimeType(*args, **kwargs) - - def ReadMailcap(*args, **kwargs): - """ReadMailcap(self, String filename, bool fallback=False) -> bool""" - return _misc.MimeTypesManager_ReadMailcap(*args, **kwargs) - - def ReadMimeTypes(*args, **kwargs): - """ReadMimeTypes(self, String filename) -> bool""" - return _misc.MimeTypesManager_ReadMimeTypes(*args, **kwargs) - - def EnumAllFileTypes(*args, **kwargs): - """EnumAllFileTypes(self) -> PyObject""" - return _misc.MimeTypesManager_EnumAllFileTypes(*args, **kwargs) - - def AddFallback(*args, **kwargs): - """AddFallback(self, FileTypeInfo ft)""" - return _misc.MimeTypesManager_AddFallback(*args, **kwargs) - - def Associate(*args, **kwargs): - """Associate(self, FileTypeInfo ftInfo) -> FileType""" - return _misc.MimeTypesManager_Associate(*args, **kwargs) - - def Unassociate(*args, **kwargs): - """Unassociate(self, FileType ft) -> bool""" - return _misc.MimeTypesManager_Unassociate(*args, **kwargs) - - def __del__(self, destroy=_misc.delete_MimeTypesManager): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - -class MimeTypesManagerPtr(MimeTypesManager): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = MimeTypesManager -_misc.MimeTypesManager_swigregister(MimeTypesManagerPtr) -TheMimeTypesManager = cvar.TheMimeTypesManager - -def MimeTypesManager_IsOfType(*args, **kwargs): - """MimeTypesManager_IsOfType(String mimeType, String wildcard) -> bool""" - return _misc.MimeTypesManager_IsOfType(*args, **kwargs) - -#--------------------------------------------------------------------------- - -class ArtProvider(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyArtProvider instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> ArtProvider""" - newobj = _misc.new_ArtProvider(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setCallbackInfo(self, ArtProvider) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _misc.ArtProvider__setCallbackInfo(*args, **kwargs) - - def PushProvider(*args, **kwargs): - """ - ArtProvider.PushProvider(ArtProvider provider) - - Add new provider to the top of providers stack. - """ - return _misc.ArtProvider_PushProvider(*args, **kwargs) - - PushProvider = staticmethod(PushProvider) - def PopProvider(*args, **kwargs): - """ - ArtProvider.PopProvider() -> bool - - Remove latest added provider and delete it. - """ - return _misc.ArtProvider_PopProvider(*args, **kwargs) - - PopProvider = staticmethod(PopProvider) - def RemoveProvider(*args, **kwargs): - """ - ArtProvider.RemoveProvider(ArtProvider provider) -> bool - - Remove provider. The provider must have been added previously! - The provider is _not_ deleted. - """ - return _misc.ArtProvider_RemoveProvider(*args, **kwargs) - - RemoveProvider = staticmethod(RemoveProvider) - def GetBitmap(*args, **kwargs): - """ - ArtProvider.GetBitmap(String id, String client=ART_OTHER, Size size=DefaultSize) -> Bitmap - - Query the providers for bitmap with given ID and return it. Return - wx.NullBitmap if no provider provides it. - """ - return _misc.ArtProvider_GetBitmap(*args, **kwargs) - - GetBitmap = staticmethod(GetBitmap) - def GetIcon(*args, **kwargs): - """ - ArtProvider.GetIcon(String id, String client=ART_OTHER, Size size=DefaultSize) -> Icon - - Query the providers for icon with given ID and return it. Return - wx.NullIcon if no provider provides it. - """ - return _misc.ArtProvider_GetIcon(*args, **kwargs) - - GetIcon = staticmethod(GetIcon) - def Destroy(*args, **kwargs): - """Destroy(self)""" - return _misc.ArtProvider_Destroy(*args, **kwargs) - - -class ArtProviderPtr(ArtProvider): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ArtProvider -_misc.ArtProvider_swigregister(ArtProviderPtr) -ART_TOOLBAR = cvar.ART_TOOLBAR -ART_MENU = cvar.ART_MENU -ART_FRAME_ICON = cvar.ART_FRAME_ICON -ART_CMN_DIALOG = cvar.ART_CMN_DIALOG -ART_HELP_BROWSER = cvar.ART_HELP_BROWSER -ART_MESSAGE_BOX = cvar.ART_MESSAGE_BOX -ART_OTHER = cvar.ART_OTHER -ART_ADD_BOOKMARK = cvar.ART_ADD_BOOKMARK -ART_DEL_BOOKMARK = cvar.ART_DEL_BOOKMARK -ART_HELP_SIDE_PANEL = cvar.ART_HELP_SIDE_PANEL -ART_HELP_SETTINGS = cvar.ART_HELP_SETTINGS -ART_HELP_BOOK = cvar.ART_HELP_BOOK -ART_HELP_FOLDER = cvar.ART_HELP_FOLDER -ART_HELP_PAGE = cvar.ART_HELP_PAGE -ART_GO_BACK = cvar.ART_GO_BACK -ART_GO_FORWARD = cvar.ART_GO_FORWARD -ART_GO_UP = cvar.ART_GO_UP -ART_GO_DOWN = cvar.ART_GO_DOWN -ART_GO_TO_PARENT = cvar.ART_GO_TO_PARENT -ART_GO_HOME = cvar.ART_GO_HOME -ART_FILE_OPEN = cvar.ART_FILE_OPEN -ART_PRINT = cvar.ART_PRINT -ART_HELP = cvar.ART_HELP -ART_TIP = cvar.ART_TIP -ART_REPORT_VIEW = cvar.ART_REPORT_VIEW -ART_LIST_VIEW = cvar.ART_LIST_VIEW -ART_NEW_DIR = cvar.ART_NEW_DIR -ART_FOLDER = cvar.ART_FOLDER -ART_GO_DIR_UP = cvar.ART_GO_DIR_UP -ART_EXECUTABLE_FILE = cvar.ART_EXECUTABLE_FILE -ART_NORMAL_FILE = cvar.ART_NORMAL_FILE -ART_TICK_MARK = cvar.ART_TICK_MARK -ART_CROSS_MARK = cvar.ART_CROSS_MARK -ART_ERROR = cvar.ART_ERROR -ART_QUESTION = cvar.ART_QUESTION -ART_WARNING = cvar.ART_WARNING -ART_INFORMATION = cvar.ART_INFORMATION -ART_MISSING_IMAGE = cvar.ART_MISSING_IMAGE - -def ArtProvider_PushProvider(*args, **kwargs): - """ - ArtProvider_PushProvider(ArtProvider provider) - - Add new provider to the top of providers stack. - """ - return _misc.ArtProvider_PushProvider(*args, **kwargs) - -def ArtProvider_PopProvider(*args, **kwargs): - """ - ArtProvider_PopProvider() -> bool - - Remove latest added provider and delete it. - """ - return _misc.ArtProvider_PopProvider(*args, **kwargs) - -def ArtProvider_RemoveProvider(*args, **kwargs): - """ - ArtProvider_RemoveProvider(ArtProvider provider) -> bool - - Remove provider. The provider must have been added previously! - The provider is _not_ deleted. - """ - return _misc.ArtProvider_RemoveProvider(*args, **kwargs) - -def ArtProvider_GetBitmap(*args, **kwargs): - """ - ArtProvider_GetBitmap(String id, String client=ART_OTHER, Size size=DefaultSize) -> Bitmap - - Query the providers for bitmap with given ID and return it. Return - wx.NullBitmap if no provider provides it. - """ - return _misc.ArtProvider_GetBitmap(*args, **kwargs) - -def ArtProvider_GetIcon(*args, **kwargs): - """ - ArtProvider_GetIcon(String id, String client=ART_OTHER, Size size=DefaultSize) -> Icon - - Query the providers for icon with given ID and return it. Return - wx.NullIcon if no provider provides it. - """ - return _misc.ArtProvider_GetIcon(*args, **kwargs) - -#--------------------------------------------------------------------------- - -CONFIG_USE_LOCAL_FILE = _misc.CONFIG_USE_LOCAL_FILE -CONFIG_USE_GLOBAL_FILE = _misc.CONFIG_USE_GLOBAL_FILE -CONFIG_USE_RELATIVE_PATH = _misc.CONFIG_USE_RELATIVE_PATH -CONFIG_USE_NO_ESCAPE_CHARACTERS = _misc.CONFIG_USE_NO_ESCAPE_CHARACTERS -class ConfigBase(object): - """ - wx.ConfigBase class defines the basic interface of all config - classes. It can not be used by itself (it is an abstract base - class) and you will always use one of its derivations: wx.Config - or wx.FileConfig. - - wx.ConfigBase organizes the items in a tree-like structure, - modeled after the Unix/Dos filesystem. There are groups that act - like directories and entries, key/value pairs that act like - files. There is always one current group given by the current - path. As in the file system case, to specify a key in the config - class you must use a path to it. Config classes also support the - notion of the current group, which makes it possible to use - relative paths. - - Keys are pairs "key_name = value" where value may be of string, - integer floating point or boolean, you can not store binary data - without first encoding it as a string. For performance reasons - items should be kept small, no more than a couple kilobytes. - - """ - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxConfigBase instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __del__(self, destroy=_misc.delete_ConfigBase): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - Type_Unknown = _misc.ConfigBase_Type_Unknown - Type_String = _misc.ConfigBase_Type_String - Type_Boolean = _misc.ConfigBase_Type_Boolean - Type_Integer = _misc.ConfigBase_Type_Integer - Type_Float = _misc.ConfigBase_Type_Float - def Set(*args, **kwargs): - """ - ConfigBase.Set(ConfigBase config) -> ConfigBase - - Sets the global config object (the one returned by Get) and - returns a reference to the previous global config object. - """ - return _misc.ConfigBase_Set(*args, **kwargs) - - Set = staticmethod(Set) - def Get(*args, **kwargs): - """ - ConfigBase.Get(bool createOnDemand=True) -> ConfigBase - - Returns the current global config object, creating one if neccessary. - """ - return _misc.ConfigBase_Get(*args, **kwargs) - - Get = staticmethod(Get) - def Create(*args, **kwargs): - """ - ConfigBase.Create() -> ConfigBase - - Create and return a new global config object. This function will - create the "best" implementation of wx.Config available for the - current platform. - """ - return _misc.ConfigBase_Create(*args, **kwargs) - - Create = staticmethod(Create) - def DontCreateOnDemand(*args, **kwargs): - """ - ConfigBase.DontCreateOnDemand() - - Should Get() try to create a new log object if there isn't a current one? - """ - return _misc.ConfigBase_DontCreateOnDemand(*args, **kwargs) - - DontCreateOnDemand = staticmethod(DontCreateOnDemand) - def SetPath(*args, **kwargs): - """ - SetPath(self, String path) - - Set current path: if the first character is '/', it's the absolute path, - otherwise it's a relative path. '..' is supported. If the strPath - doesn't exist it is created. - """ - return _misc.ConfigBase_SetPath(*args, **kwargs) - - def GetPath(*args, **kwargs): - """ - GetPath(self) -> String - - Retrieve the current path (always as absolute path) - """ - return _misc.ConfigBase_GetPath(*args, **kwargs) - - def GetFirstGroup(*args, **kwargs): - """ - GetFirstGroup() -> (more, value, index) - - Allows enumerating the subgroups in a config object. Returns - a tuple containing a flag indicating there are more items, the - name of the current item, and an index to pass to GetNextGroup to - fetch the next item. - """ - return _misc.ConfigBase_GetFirstGroup(*args, **kwargs) - - def GetNextGroup(*args, **kwargs): - """ - GetNextGroup(long index) -> (more, value, index) - - Allows enumerating the subgroups in a config object. Returns - a tuple containing a flag indicating there are more items, the - name of the current item, and an index to pass to GetNextGroup to - fetch the next item. - """ - return _misc.ConfigBase_GetNextGroup(*args, **kwargs) - - def GetFirstEntry(*args, **kwargs): - """ - GetFirstEntry() -> (more, value, index) - - Allows enumerating the entries in the current group in a config - object. Returns a tuple containing a flag indicating there are - more items, the name of the current item, and an index to pass to - GetNextGroup to fetch the next item. - """ - return _misc.ConfigBase_GetFirstEntry(*args, **kwargs) - - def GetNextEntry(*args, **kwargs): - """ - GetNextEntry(long index) -> (more, value, index) - - Allows enumerating the entries in the current group in a config - object. Returns a tuple containing a flag indicating there are - more items, the name of the current item, and an index to pass to - GetNextGroup to fetch the next item. - """ - return _misc.ConfigBase_GetNextEntry(*args, **kwargs) - - def GetNumberOfEntries(*args, **kwargs): - """ - GetNumberOfEntries(self, bool recursive=False) -> size_t - - Get the number of entries in the current group, with or - without its subgroups. - """ - return _misc.ConfigBase_GetNumberOfEntries(*args, **kwargs) - - def GetNumberOfGroups(*args, **kwargs): - """ - GetNumberOfGroups(self, bool recursive=False) -> size_t - - Get the number of subgroups in the current group, with or - without its subgroups. - """ - return _misc.ConfigBase_GetNumberOfGroups(*args, **kwargs) - - def HasGroup(*args, **kwargs): - """ - HasGroup(self, String name) -> bool - - Returns True if the group by this name exists - """ - return _misc.ConfigBase_HasGroup(*args, **kwargs) - - def HasEntry(*args, **kwargs): - """ - HasEntry(self, String name) -> bool - - Returns True if the entry by this name exists - """ - return _misc.ConfigBase_HasEntry(*args, **kwargs) - - def Exists(*args, **kwargs): - """ - Exists(self, String name) -> bool - - Returns True if either a group or an entry with a given name exists - """ - return _misc.ConfigBase_Exists(*args, **kwargs) - - def GetEntryType(*args, **kwargs): - """ - GetEntryType(self, String name) -> int - - Get the type of the entry. Returns one of the wx.Config.Type_XXX values. - """ - return _misc.ConfigBase_GetEntryType(*args, **kwargs) - - def Read(*args, **kwargs): - """ - Read(self, String key, String defaultVal=EmptyString) -> String - - Returns the value of key if it exists, defaultVal otherwise. - """ - return _misc.ConfigBase_Read(*args, **kwargs) - - def ReadInt(*args, **kwargs): - """ - ReadInt(self, String key, long defaultVal=0) -> long - - Returns the value of key if it exists, defaultVal otherwise. - """ - return _misc.ConfigBase_ReadInt(*args, **kwargs) - - def ReadFloat(*args, **kwargs): - """ - ReadFloat(self, String key, double defaultVal=0.0) -> double - - Returns the value of key if it exists, defaultVal otherwise. - """ - return _misc.ConfigBase_ReadFloat(*args, **kwargs) - - def ReadBool(*args, **kwargs): - """ - ReadBool(self, String key, bool defaultVal=False) -> bool - - Returns the value of key if it exists, defaultVal otherwise. - """ - return _misc.ConfigBase_ReadBool(*args, **kwargs) - - def Write(*args, **kwargs): - """ - Write(self, String key, String value) -> bool - - write the value (return True on success) - """ - return _misc.ConfigBase_Write(*args, **kwargs) - - def WriteInt(*args, **kwargs): - """ - WriteInt(self, String key, long value) -> bool - - write the value (return True on success) - """ - return _misc.ConfigBase_WriteInt(*args, **kwargs) - - def WriteFloat(*args, **kwargs): - """ - WriteFloat(self, String key, double value) -> bool - - write the value (return True on success) - """ - return _misc.ConfigBase_WriteFloat(*args, **kwargs) - - def WriteBool(*args, **kwargs): - """ - WriteBool(self, String key, bool value) -> bool - - write the value (return True on success) - """ - return _misc.ConfigBase_WriteBool(*args, **kwargs) - - def Flush(*args, **kwargs): - """ - Flush(self, bool currentOnly=False) -> bool - - permanently writes all changes - """ - return _misc.ConfigBase_Flush(*args, **kwargs) - - def RenameEntry(*args, **kwargs): - """ - RenameEntry(self, String oldName, String newName) -> bool - - Rename an entry. Returns False on failure (probably because the new - name is already taken by an existing entry) - """ - return _misc.ConfigBase_RenameEntry(*args, **kwargs) - - def RenameGroup(*args, **kwargs): - """ - RenameGroup(self, String oldName, String newName) -> bool - - Rename aa group. Returns False on failure (probably because the new - name is already taken by an existing entry) - """ - return _misc.ConfigBase_RenameGroup(*args, **kwargs) - - def DeleteEntry(*args, **kwargs): - """ - DeleteEntry(self, String key, bool deleteGroupIfEmpty=True) -> bool - - Deletes the specified entry and the group it belongs to if - it was the last key in it and the second parameter is True - """ - return _misc.ConfigBase_DeleteEntry(*args, **kwargs) - - def DeleteGroup(*args, **kwargs): - """ - DeleteGroup(self, String key) -> bool - - Delete the group (with all subgroups) - """ - return _misc.ConfigBase_DeleteGroup(*args, **kwargs) - - def DeleteAll(*args, **kwargs): - """ - DeleteAll(self) -> bool - - Delete the whole underlying object (disk file, registry key, ...) - primarly intended for use by desinstallation routine. - """ - return _misc.ConfigBase_DeleteAll(*args, **kwargs) - - def SetExpandEnvVars(*args, **kwargs): - """ - SetExpandEnvVars(self, bool doIt=True) - - We can automatically expand environment variables in the config entries - (this option is on by default, you can turn it on/off at any time) - """ - return _misc.ConfigBase_SetExpandEnvVars(*args, **kwargs) - - def IsExpandingEnvVars(*args, **kwargs): - """ - IsExpandingEnvVars(self) -> bool - - Are we currently expanding environment variables? - """ - return _misc.ConfigBase_IsExpandingEnvVars(*args, **kwargs) - - def SetRecordDefaults(*args, **kwargs): - """ - SetRecordDefaults(self, bool doIt=True) - - Set whether the config objec should record default values. - """ - return _misc.ConfigBase_SetRecordDefaults(*args, **kwargs) - - def IsRecordingDefaults(*args, **kwargs): - """ - IsRecordingDefaults(self) -> bool - - Are we currently recording default values? - """ - return _misc.ConfigBase_IsRecordingDefaults(*args, **kwargs) - - def ExpandEnvVars(*args, **kwargs): - """ - ExpandEnvVars(self, String str) -> String - - Expand any environment variables in str and return the result - """ - return _misc.ConfigBase_ExpandEnvVars(*args, **kwargs) - - def GetAppName(*args, **kwargs): - """GetAppName(self) -> String""" - return _misc.ConfigBase_GetAppName(*args, **kwargs) - - def GetVendorName(*args, **kwargs): - """GetVendorName(self) -> String""" - return _misc.ConfigBase_GetVendorName(*args, **kwargs) - - def SetAppName(*args, **kwargs): - """SetAppName(self, String appName)""" - return _misc.ConfigBase_SetAppName(*args, **kwargs) - - def SetVendorName(*args, **kwargs): - """SetVendorName(self, String vendorName)""" - return _misc.ConfigBase_SetVendorName(*args, **kwargs) - - def SetStyle(*args, **kwargs): - """SetStyle(self, long style)""" - return _misc.ConfigBase_SetStyle(*args, **kwargs) - - def GetStyle(*args, **kwargs): - """GetStyle(self) -> long""" - return _misc.ConfigBase_GetStyle(*args, **kwargs) - - -class ConfigBasePtr(ConfigBase): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ConfigBase -_misc.ConfigBase_swigregister(ConfigBasePtr) - -def ConfigBase_Set(*args, **kwargs): - """ - ConfigBase_Set(ConfigBase config) -> ConfigBase - - Sets the global config object (the one returned by Get) and - returns a reference to the previous global config object. - """ - return _misc.ConfigBase_Set(*args, **kwargs) - -def ConfigBase_Get(*args, **kwargs): - """ - ConfigBase_Get(bool createOnDemand=True) -> ConfigBase - - Returns the current global config object, creating one if neccessary. - """ - return _misc.ConfigBase_Get(*args, **kwargs) - -def ConfigBase_Create(*args, **kwargs): - """ - ConfigBase_Create() -> ConfigBase - - Create and return a new global config object. This function will - create the "best" implementation of wx.Config available for the - current platform. - """ - return _misc.ConfigBase_Create(*args, **kwargs) - -def ConfigBase_DontCreateOnDemand(*args, **kwargs): - """ - ConfigBase_DontCreateOnDemand() - - Should Get() try to create a new log object if there isn't a current one? - """ - return _misc.ConfigBase_DontCreateOnDemand(*args, **kwargs) - -class Config(ConfigBase): - """ - This ConfigBase-derived class will use the registry on Windows, - and will be a wx.FileConfig on other platforms. - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxConfig instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, String appName=EmptyString, String vendorName=EmptyString, - String localFilename=EmptyString, String globalFilename=EmptyString, - long style=wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE) -> Config - """ - newobj = _misc.new_Config(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_misc.delete_Config): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - -class ConfigPtr(Config): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Config -_misc.Config_swigregister(ConfigPtr) - -class FileConfig(ConfigBase): - """This config class will use a file for storage on all platforms.""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxFileConfig instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, String appName=EmptyString, String vendorName=EmptyString, - String localFilename=EmptyString, String globalFilename=EmptyString, - long style=wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE) -> FileConfig - """ - newobj = _misc.new_FileConfig(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_misc.delete_FileConfig): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - -class FileConfigPtr(FileConfig): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = FileConfig -_misc.FileConfig_swigregister(FileConfigPtr) - -class ConfigPathChanger(object): - """ - A handy little class which changes current path to the path of - given entry and restores it in the destructoir: so if you declare - a local variable of this type, you work in the entry directory - and the path is automatically restored when the function returns. - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxConfigPathChanger instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, ConfigBase config, String entry) -> ConfigPathChanger""" - newobj = _misc.new_ConfigPathChanger(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_misc.delete_ConfigPathChanger): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Name(*args, **kwargs): - """ - Name(self) -> String - - Get the key name - """ - return _misc.ConfigPathChanger_Name(*args, **kwargs) - - -class ConfigPathChangerPtr(ConfigPathChanger): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ConfigPathChanger -_misc.ConfigPathChanger_swigregister(ConfigPathChangerPtr) - - -def ExpandEnvVars(*args, **kwargs): - """ - ExpandEnvVars(String sz) -> String - - Replace environment variables ($SOMETHING) with their values. The - format is $VARNAME or ${VARNAME} where VARNAME contains - alphanumeric characters and '_' only. '$' must be escaped ('\$') - in order to be taken literally. - """ - return _misc.ExpandEnvVars(*args, **kwargs) -#--------------------------------------------------------------------------- - -class DateTime(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxDateTime instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - Local = _misc.DateTime_Local - GMT_12 = _misc.DateTime_GMT_12 - GMT_11 = _misc.DateTime_GMT_11 - GMT_10 = _misc.DateTime_GMT_10 - GMT_9 = _misc.DateTime_GMT_9 - GMT_8 = _misc.DateTime_GMT_8 - GMT_7 = _misc.DateTime_GMT_7 - GMT_6 = _misc.DateTime_GMT_6 - GMT_5 = _misc.DateTime_GMT_5 - GMT_4 = _misc.DateTime_GMT_4 - GMT_3 = _misc.DateTime_GMT_3 - GMT_2 = _misc.DateTime_GMT_2 - GMT_1 = _misc.DateTime_GMT_1 - GMT0 = _misc.DateTime_GMT0 - GMT1 = _misc.DateTime_GMT1 - GMT2 = _misc.DateTime_GMT2 - GMT3 = _misc.DateTime_GMT3 - GMT4 = _misc.DateTime_GMT4 - GMT5 = _misc.DateTime_GMT5 - GMT6 = _misc.DateTime_GMT6 - GMT7 = _misc.DateTime_GMT7 - GMT8 = _misc.DateTime_GMT8 - GMT9 = _misc.DateTime_GMT9 - GMT10 = _misc.DateTime_GMT10 - GMT11 = _misc.DateTime_GMT11 - GMT12 = _misc.DateTime_GMT12 - WET = _misc.DateTime_WET - WEST = _misc.DateTime_WEST - CET = _misc.DateTime_CET - CEST = _misc.DateTime_CEST - EET = _misc.DateTime_EET - EEST = _misc.DateTime_EEST - MSK = _misc.DateTime_MSK - MSD = _misc.DateTime_MSD - AST = _misc.DateTime_AST - ADT = _misc.DateTime_ADT - EST = _misc.DateTime_EST - EDT = _misc.DateTime_EDT - CST = _misc.DateTime_CST - CDT = _misc.DateTime_CDT - MST = _misc.DateTime_MST - MDT = _misc.DateTime_MDT - PST = _misc.DateTime_PST - PDT = _misc.DateTime_PDT - HST = _misc.DateTime_HST - AKST = _misc.DateTime_AKST - AKDT = _misc.DateTime_AKDT - A_WST = _misc.DateTime_A_WST - A_CST = _misc.DateTime_A_CST - A_EST = _misc.DateTime_A_EST - A_ESST = _misc.DateTime_A_ESST - UTC = _misc.DateTime_UTC - Gregorian = _misc.DateTime_Gregorian - Julian = _misc.DateTime_Julian - Gr_Unknown = _misc.DateTime_Gr_Unknown - Gr_Standard = _misc.DateTime_Gr_Standard - Gr_Alaska = _misc.DateTime_Gr_Alaska - Gr_Albania = _misc.DateTime_Gr_Albania - Gr_Austria = _misc.DateTime_Gr_Austria - Gr_Austria_Brixen = _misc.DateTime_Gr_Austria_Brixen - Gr_Austria_Salzburg = _misc.DateTime_Gr_Austria_Salzburg - Gr_Austria_Tyrol = _misc.DateTime_Gr_Austria_Tyrol - Gr_Austria_Carinthia = _misc.DateTime_Gr_Austria_Carinthia - Gr_Austria_Styria = _misc.DateTime_Gr_Austria_Styria - Gr_Belgium = _misc.DateTime_Gr_Belgium - Gr_Bulgaria = _misc.DateTime_Gr_Bulgaria - Gr_Bulgaria_1 = _misc.DateTime_Gr_Bulgaria_1 - Gr_Bulgaria_2 = _misc.DateTime_Gr_Bulgaria_2 - Gr_Bulgaria_3 = _misc.DateTime_Gr_Bulgaria_3 - Gr_Canada = _misc.DateTime_Gr_Canada - Gr_China = _misc.DateTime_Gr_China - Gr_China_1 = _misc.DateTime_Gr_China_1 - Gr_China_2 = _misc.DateTime_Gr_China_2 - Gr_Czechoslovakia = _misc.DateTime_Gr_Czechoslovakia - Gr_Denmark = _misc.DateTime_Gr_Denmark - Gr_Egypt = _misc.DateTime_Gr_Egypt - Gr_Estonia = _misc.DateTime_Gr_Estonia - Gr_Finland = _misc.DateTime_Gr_Finland - Gr_France = _misc.DateTime_Gr_France - Gr_France_Alsace = _misc.DateTime_Gr_France_Alsace - Gr_France_Lorraine = _misc.DateTime_Gr_France_Lorraine - Gr_France_Strasbourg = _misc.DateTime_Gr_France_Strasbourg - Gr_Germany = _misc.DateTime_Gr_Germany - Gr_Germany_Catholic = _misc.DateTime_Gr_Germany_Catholic - Gr_Germany_Prussia = _misc.DateTime_Gr_Germany_Prussia - Gr_Germany_Protestant = _misc.DateTime_Gr_Germany_Protestant - Gr_GreatBritain = _misc.DateTime_Gr_GreatBritain - Gr_Greece = _misc.DateTime_Gr_Greece - Gr_Hungary = _misc.DateTime_Gr_Hungary - Gr_Ireland = _misc.DateTime_Gr_Ireland - Gr_Italy = _misc.DateTime_Gr_Italy - Gr_Japan = _misc.DateTime_Gr_Japan - Gr_Japan_1 = _misc.DateTime_Gr_Japan_1 - Gr_Japan_2 = _misc.DateTime_Gr_Japan_2 - Gr_Japan_3 = _misc.DateTime_Gr_Japan_3 - Gr_Latvia = _misc.DateTime_Gr_Latvia - Gr_Lithuania = _misc.DateTime_Gr_Lithuania - Gr_Luxemburg = _misc.DateTime_Gr_Luxemburg - Gr_Netherlands = _misc.DateTime_Gr_Netherlands - Gr_Netherlands_Groningen = _misc.DateTime_Gr_Netherlands_Groningen - Gr_Netherlands_Gelderland = _misc.DateTime_Gr_Netherlands_Gelderland - Gr_Netherlands_Utrecht = _misc.DateTime_Gr_Netherlands_Utrecht - Gr_Netherlands_Friesland = _misc.DateTime_Gr_Netherlands_Friesland - Gr_Norway = _misc.DateTime_Gr_Norway - Gr_Poland = _misc.DateTime_Gr_Poland - Gr_Portugal = _misc.DateTime_Gr_Portugal - Gr_Romania = _misc.DateTime_Gr_Romania - Gr_Russia = _misc.DateTime_Gr_Russia - Gr_Scotland = _misc.DateTime_Gr_Scotland - Gr_Spain = _misc.DateTime_Gr_Spain - Gr_Sweden = _misc.DateTime_Gr_Sweden - Gr_Switzerland = _misc.DateTime_Gr_Switzerland - Gr_Switzerland_Catholic = _misc.DateTime_Gr_Switzerland_Catholic - Gr_Switzerland_Protestant = _misc.DateTime_Gr_Switzerland_Protestant - Gr_Turkey = _misc.DateTime_Gr_Turkey - Gr_USA = _misc.DateTime_Gr_USA - Gr_Wales = _misc.DateTime_Gr_Wales - Gr_Yugoslavia = _misc.DateTime_Gr_Yugoslavia - Country_Unknown = _misc.DateTime_Country_Unknown - Country_Default = _misc.DateTime_Country_Default - Country_WesternEurope_Start = _misc.DateTime_Country_WesternEurope_Start - Country_EEC = _misc.DateTime_Country_EEC - France = _misc.DateTime_France - Germany = _misc.DateTime_Germany - UK = _misc.DateTime_UK - Country_WesternEurope_End = _misc.DateTime_Country_WesternEurope_End - Russia = _misc.DateTime_Russia - USA = _misc.DateTime_USA - Jan = _misc.DateTime_Jan - Feb = _misc.DateTime_Feb - Mar = _misc.DateTime_Mar - Apr = _misc.DateTime_Apr - May = _misc.DateTime_May - Jun = _misc.DateTime_Jun - Jul = _misc.DateTime_Jul - Aug = _misc.DateTime_Aug - Sep = _misc.DateTime_Sep - Oct = _misc.DateTime_Oct - Nov = _misc.DateTime_Nov - Dec = _misc.DateTime_Dec - Inv_Month = _misc.DateTime_Inv_Month - Sun = _misc.DateTime_Sun - Mon = _misc.DateTime_Mon - Tue = _misc.DateTime_Tue - Wed = _misc.DateTime_Wed - Thu = _misc.DateTime_Thu - Fri = _misc.DateTime_Fri - Sat = _misc.DateTime_Sat - Inv_WeekDay = _misc.DateTime_Inv_WeekDay - Inv_Year = _misc.DateTime_Inv_Year - Name_Full = _misc.DateTime_Name_Full - Name_Abbr = _misc.DateTime_Name_Abbr - Default_First = _misc.DateTime_Default_First - Monday_First = _misc.DateTime_Monday_First - Sunday_First = _misc.DateTime_Sunday_First - def SetCountry(*args, **kwargs): - """DateTime.SetCountry(int country)""" - return _misc.DateTime_SetCountry(*args, **kwargs) - - SetCountry = staticmethod(SetCountry) - def GetCountry(*args, **kwargs): - """DateTime.GetCountry() -> int""" - return _misc.DateTime_GetCountry(*args, **kwargs) - - GetCountry = staticmethod(GetCountry) - def IsWestEuropeanCountry(*args, **kwargs): - """DateTime.IsWestEuropeanCountry(int country=Country_Default) -> bool""" - return _misc.DateTime_IsWestEuropeanCountry(*args, **kwargs) - - IsWestEuropeanCountry = staticmethod(IsWestEuropeanCountry) - def GetCurrentYear(*args, **kwargs): - """DateTime.GetCurrentYear(int cal=Gregorian) -> int""" - return _misc.DateTime_GetCurrentYear(*args, **kwargs) - - GetCurrentYear = staticmethod(GetCurrentYear) - def ConvertYearToBC(*args, **kwargs): - """DateTime.ConvertYearToBC(int year) -> int""" - return _misc.DateTime_ConvertYearToBC(*args, **kwargs) - - ConvertYearToBC = staticmethod(ConvertYearToBC) - def GetCurrentMonth(*args, **kwargs): - """DateTime.GetCurrentMonth(int cal=Gregorian) -> int""" - return _misc.DateTime_GetCurrentMonth(*args, **kwargs) - - GetCurrentMonth = staticmethod(GetCurrentMonth) - def IsLeapYear(*args, **kwargs): - """DateTime.IsLeapYear(int year=Inv_Year, int cal=Gregorian) -> bool""" - return _misc.DateTime_IsLeapYear(*args, **kwargs) - - IsLeapYear = staticmethod(IsLeapYear) - def GetCentury(*args, **kwargs): - """DateTime.GetCentury(int year=Inv_Year) -> int""" - return _misc.DateTime_GetCentury(*args, **kwargs) - - GetCentury = staticmethod(GetCentury) - def GetNumberOfDaysinYear(*args, **kwargs): - """DateTime.GetNumberOfDaysinYear(int year, int cal=Gregorian) -> int""" - return _misc.DateTime_GetNumberOfDaysinYear(*args, **kwargs) - - GetNumberOfDaysinYear = staticmethod(GetNumberOfDaysinYear) - def GetNumberOfDaysInMonth(*args, **kwargs): - """DateTime.GetNumberOfDaysInMonth(int month, int year=Inv_Year, int cal=Gregorian) -> int""" - return _misc.DateTime_GetNumberOfDaysInMonth(*args, **kwargs) - - GetNumberOfDaysInMonth = staticmethod(GetNumberOfDaysInMonth) - def GetMonthName(*args, **kwargs): - """DateTime.GetMonthName(int month, int flags=Name_Full) -> String""" - return _misc.DateTime_GetMonthName(*args, **kwargs) - - GetMonthName = staticmethod(GetMonthName) - def GetWeekDayName(*args, **kwargs): - """DateTime.GetWeekDayName(int weekday, int flags=Name_Full) -> String""" - return _misc.DateTime_GetWeekDayName(*args, **kwargs) - - GetWeekDayName = staticmethod(GetWeekDayName) - def GetAmPmStrings(*args, **kwargs): - """ - GetAmPmStrings() -> (am, pm) - - Get the AM and PM strings in the current locale (may be empty) - """ - return _misc.DateTime_GetAmPmStrings(*args, **kwargs) - - GetAmPmStrings = staticmethod(GetAmPmStrings) - def IsDSTApplicable(*args, **kwargs): - """DateTime.IsDSTApplicable(int year=Inv_Year, int country=Country_Default) -> bool""" - return _misc.DateTime_IsDSTApplicable(*args, **kwargs) - - IsDSTApplicable = staticmethod(IsDSTApplicable) - def GetBeginDST(*args, **kwargs): - """DateTime.GetBeginDST(int year=Inv_Year, int country=Country_Default) -> DateTime""" - return _misc.DateTime_GetBeginDST(*args, **kwargs) - - GetBeginDST = staticmethod(GetBeginDST) - def GetEndDST(*args, **kwargs): - """DateTime.GetEndDST(int year=Inv_Year, int country=Country_Default) -> DateTime""" - return _misc.DateTime_GetEndDST(*args, **kwargs) - - GetEndDST = staticmethod(GetEndDST) - def Now(*args, **kwargs): - """DateTime.Now() -> DateTime""" - return _misc.DateTime_Now(*args, **kwargs) - - Now = staticmethod(Now) - def UNow(*args, **kwargs): - """DateTime.UNow() -> DateTime""" - return _misc.DateTime_UNow(*args, **kwargs) - - UNow = staticmethod(UNow) - def Today(*args, **kwargs): - """DateTime.Today() -> DateTime""" - return _misc.DateTime_Today(*args, **kwargs) - - Today = staticmethod(Today) - def __init__(self, *args, **kwargs): - """__init__(self) -> DateTime""" - newobj = _misc.new_DateTime(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_misc.delete_DateTime): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def SetToCurrent(*args, **kwargs): - """SetToCurrent(self) -> DateTime""" - return _misc.DateTime_SetToCurrent(*args, **kwargs) - - def SetTimeT(*args, **kwargs): - """SetTimeT(self, time_t timet) -> DateTime""" - return _misc.DateTime_SetTimeT(*args, **kwargs) - - def SetJDN(*args, **kwargs): - """SetJDN(self, double jdn) -> DateTime""" - return _misc.DateTime_SetJDN(*args, **kwargs) - - def SetHMS(*args, **kwargs): - """SetHMS(self, int hour, int minute=0, int second=0, int millisec=0) -> DateTime""" - return _misc.DateTime_SetHMS(*args, **kwargs) - - def Set(*args, **kwargs): - """ - Set(self, int day, int month=Inv_Month, int year=Inv_Year, int hour=0, - int minute=0, int second=0, int millisec=0) -> DateTime - """ - return _misc.DateTime_Set(*args, **kwargs) - - def ResetTime(*args, **kwargs): - """ResetTime(self) -> DateTime""" - return _misc.DateTime_ResetTime(*args, **kwargs) - - def SetYear(*args, **kwargs): - """SetYear(self, int year) -> DateTime""" - return _misc.DateTime_SetYear(*args, **kwargs) - - def SetMonth(*args, **kwargs): - """SetMonth(self, int month) -> DateTime""" - return _misc.DateTime_SetMonth(*args, **kwargs) - - def SetDay(*args, **kwargs): - """SetDay(self, int day) -> DateTime""" - return _misc.DateTime_SetDay(*args, **kwargs) - - def SetHour(*args, **kwargs): - """SetHour(self, int hour) -> DateTime""" - return _misc.DateTime_SetHour(*args, **kwargs) - - def SetMinute(*args, **kwargs): - """SetMinute(self, int minute) -> DateTime""" - return _misc.DateTime_SetMinute(*args, **kwargs) - - def SetSecond(*args, **kwargs): - """SetSecond(self, int second) -> DateTime""" - return _misc.DateTime_SetSecond(*args, **kwargs) - - def SetMillisecond(*args, **kwargs): - """SetMillisecond(self, int millisecond) -> DateTime""" - return _misc.DateTime_SetMillisecond(*args, **kwargs) - - def SetToWeekDayInSameWeek(*args, **kwargs): - """SetToWeekDayInSameWeek(self, int weekday, int flags=Monday_First) -> DateTime""" - return _misc.DateTime_SetToWeekDayInSameWeek(*args, **kwargs) - - def GetWeekDayInSameWeek(*args, **kwargs): - """GetWeekDayInSameWeek(self, int weekday, int flags=Monday_First) -> DateTime""" - return _misc.DateTime_GetWeekDayInSameWeek(*args, **kwargs) - - def SetToNextWeekDay(*args, **kwargs): - """SetToNextWeekDay(self, int weekday) -> DateTime""" - return _misc.DateTime_SetToNextWeekDay(*args, **kwargs) - - def GetNextWeekDay(*args, **kwargs): - """GetNextWeekDay(self, int weekday) -> DateTime""" - return _misc.DateTime_GetNextWeekDay(*args, **kwargs) - - def SetToPrevWeekDay(*args, **kwargs): - """SetToPrevWeekDay(self, int weekday) -> DateTime""" - return _misc.DateTime_SetToPrevWeekDay(*args, **kwargs) - - def GetPrevWeekDay(*args, **kwargs): - """GetPrevWeekDay(self, int weekday) -> DateTime""" - return _misc.DateTime_GetPrevWeekDay(*args, **kwargs) - - def SetToWeekDay(*args, **kwargs): - """SetToWeekDay(self, int weekday, int n=1, int month=Inv_Month, int year=Inv_Year) -> bool""" - return _misc.DateTime_SetToWeekDay(*args, **kwargs) - - def SetToLastWeekDay(*args, **kwargs): - """SetToLastWeekDay(self, int weekday, int month=Inv_Month, int year=Inv_Year) -> bool""" - return _misc.DateTime_SetToLastWeekDay(*args, **kwargs) - - def GetLastWeekDay(*args, **kwargs): - """GetLastWeekDay(self, int weekday, int month=Inv_Month, int year=Inv_Year) -> DateTime""" - return _misc.DateTime_GetLastWeekDay(*args, **kwargs) - - def SetToTheWeek(*args, **kwargs): - """SetToTheWeek(self, int numWeek, int weekday=Mon, int flags=Monday_First) -> bool""" - return _misc.DateTime_SetToTheWeek(*args, **kwargs) - - def GetWeek(*args, **kwargs): - """GetWeek(self, int numWeek, int weekday=Mon, int flags=Monday_First) -> DateTime""" - return _misc.DateTime_GetWeek(*args, **kwargs) - - def SetToLastMonthDay(*args, **kwargs): - """SetToLastMonthDay(self, int month=Inv_Month, int year=Inv_Year) -> DateTime""" - return _misc.DateTime_SetToLastMonthDay(*args, **kwargs) - - def GetLastMonthDay(*args, **kwargs): - """GetLastMonthDay(self, int month=Inv_Month, int year=Inv_Year) -> DateTime""" - return _misc.DateTime_GetLastMonthDay(*args, **kwargs) - - def SetToYearDay(*args, **kwargs): - """SetToYearDay(self, int yday) -> DateTime""" - return _misc.DateTime_SetToYearDay(*args, **kwargs) - - def GetYearDay(*args, **kwargs): - """GetYearDay(self, int yday) -> DateTime""" - return _misc.DateTime_GetYearDay(*args, **kwargs) - - def GetJulianDayNumber(*args, **kwargs): - """GetJulianDayNumber(self) -> double""" - return _misc.DateTime_GetJulianDayNumber(*args, **kwargs) - - def GetJDN(*args, **kwargs): - """GetJDN(self) -> double""" - return _misc.DateTime_GetJDN(*args, **kwargs) - - def GetModifiedJulianDayNumber(*args, **kwargs): - """GetModifiedJulianDayNumber(self) -> double""" - return _misc.DateTime_GetModifiedJulianDayNumber(*args, **kwargs) - - def GetMJD(*args, **kwargs): - """GetMJD(self) -> double""" - return _misc.DateTime_GetMJD(*args, **kwargs) - - def GetRataDie(*args, **kwargs): - """GetRataDie(self) -> double""" - return _misc.DateTime_GetRataDie(*args, **kwargs) - - def ToTimezone(*args, **kwargs): - """ToTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime""" - return _misc.DateTime_ToTimezone(*args, **kwargs) - - def MakeTimezone(*args, **kwargs): - """MakeTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime""" - return _misc.DateTime_MakeTimezone(*args, **kwargs) - - def ToGMT(*args, **kwargs): - """ToGMT(self, bool noDST=False) -> DateTime""" - return _misc.DateTime_ToGMT(*args, **kwargs) - - def MakeGMT(*args, **kwargs): - """MakeGMT(self, bool noDST=False) -> DateTime""" - return _misc.DateTime_MakeGMT(*args, **kwargs) - - def IsDST(*args, **kwargs): - """IsDST(self, int country=Country_Default) -> int""" - return _misc.DateTime_IsDST(*args, **kwargs) - - def IsValid(*args, **kwargs): - """IsValid(self) -> bool""" - return _misc.DateTime_IsValid(*args, **kwargs) - - Ok = IsValid - def __nonzero__(self): return self.Ok() - def GetTicks(*args, **kwargs): - """GetTicks(self) -> time_t""" - return _misc.DateTime_GetTicks(*args, **kwargs) - - def GetYear(*args, **kwargs): - """GetYear(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" - return _misc.DateTime_GetYear(*args, **kwargs) - - def GetMonth(*args, **kwargs): - """GetMonth(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" - return _misc.DateTime_GetMonth(*args, **kwargs) - - def GetDay(*args, **kwargs): - """GetDay(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" - return _misc.DateTime_GetDay(*args, **kwargs) - - def GetWeekDay(*args, **kwargs): - """GetWeekDay(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" - return _misc.DateTime_GetWeekDay(*args, **kwargs) - - def GetHour(*args, **kwargs): - """GetHour(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" - return _misc.DateTime_GetHour(*args, **kwargs) - - def GetMinute(*args, **kwargs): - """GetMinute(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" - return _misc.DateTime_GetMinute(*args, **kwargs) - - def GetSecond(*args, **kwargs): - """GetSecond(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" - return _misc.DateTime_GetSecond(*args, **kwargs) - - def GetMillisecond(*args, **kwargs): - """GetMillisecond(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" - return _misc.DateTime_GetMillisecond(*args, **kwargs) - - def GetDayOfYear(*args, **kwargs): - """GetDayOfYear(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" - return _misc.DateTime_GetDayOfYear(*args, **kwargs) - - def GetWeekOfYear(*args, **kwargs): - """GetWeekOfYear(self, int flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" - return _misc.DateTime_GetWeekOfYear(*args, **kwargs) - - def GetWeekOfMonth(*args, **kwargs): - """GetWeekOfMonth(self, int flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" - return _misc.DateTime_GetWeekOfMonth(*args, **kwargs) - - def IsWorkDay(*args, **kwargs): - """IsWorkDay(self, int country=Country_Default) -> bool""" - return _misc.DateTime_IsWorkDay(*args, **kwargs) - - def IsEqualTo(*args, **kwargs): - """IsEqualTo(self, DateTime datetime) -> bool""" - return _misc.DateTime_IsEqualTo(*args, **kwargs) - - def IsEarlierThan(*args, **kwargs): - """IsEarlierThan(self, DateTime datetime) -> bool""" - return _misc.DateTime_IsEarlierThan(*args, **kwargs) - - def IsLaterThan(*args, **kwargs): - """IsLaterThan(self, DateTime datetime) -> bool""" - return _misc.DateTime_IsLaterThan(*args, **kwargs) - - def IsStrictlyBetween(*args, **kwargs): - """IsStrictlyBetween(self, DateTime t1, DateTime t2) -> bool""" - return _misc.DateTime_IsStrictlyBetween(*args, **kwargs) - - def IsBetween(*args, **kwargs): - """IsBetween(self, DateTime t1, DateTime t2) -> bool""" - return _misc.DateTime_IsBetween(*args, **kwargs) - - def IsSameDate(*args, **kwargs): - """IsSameDate(self, DateTime dt) -> bool""" - return _misc.DateTime_IsSameDate(*args, **kwargs) - - def IsSameTime(*args, **kwargs): - """IsSameTime(self, DateTime dt) -> bool""" - return _misc.DateTime_IsSameTime(*args, **kwargs) - - def IsEqualUpTo(*args, **kwargs): - """IsEqualUpTo(self, DateTime dt, TimeSpan ts) -> bool""" - return _misc.DateTime_IsEqualUpTo(*args, **kwargs) - - def AddTS(*args, **kwargs): - """AddTS(self, TimeSpan diff) -> DateTime""" - return _misc.DateTime_AddTS(*args, **kwargs) - - def AddDS(*args, **kwargs): - """AddDS(self, DateSpan diff) -> DateTime""" - return _misc.DateTime_AddDS(*args, **kwargs) - - def SubtractTS(*args, **kwargs): - """SubtractTS(self, TimeSpan diff) -> DateTime""" - return _misc.DateTime_SubtractTS(*args, **kwargs) - - def SubtractDS(*args, **kwargs): - """SubtractDS(self, DateSpan diff) -> DateTime""" - return _misc.DateTime_SubtractDS(*args, **kwargs) - - def Subtract(*args, **kwargs): - """Subtract(self, DateTime dt) -> TimeSpan""" - return _misc.DateTime_Subtract(*args, **kwargs) - - def __iadd__(*args): - """ - __iadd__(self, TimeSpan diff) -> DateTime - __iadd__(self, DateSpan diff) -> DateTime - """ - return _misc.DateTime___iadd__(*args) - - def __isub__(*args): - """ - __isub__(self, TimeSpan diff) -> DateTime - __isub__(self, DateSpan diff) -> DateTime - """ - return _misc.DateTime___isub__(*args) - - def __add__(*args): - """ - __add__(self, TimeSpan other) -> DateTime - __add__(self, DateSpan other) -> DateTime - """ - return _misc.DateTime___add__(*args) - - def __sub__(*args): - """ - __sub__(self, DateTime other) -> TimeSpan - __sub__(self, TimeSpan other) -> DateTime - __sub__(self, DateSpan other) -> DateTime - """ - return _misc.DateTime___sub__(*args) - - def __lt__(*args): - """__lt__(self, DateTime other) -> bool""" - return _misc.DateTime___lt__(*args) - - def __le__(*args): - """__le__(self, DateTime other) -> bool""" - return _misc.DateTime___le__(*args) - - def __gt__(*args): - """__gt__(self, DateTime other) -> bool""" - return _misc.DateTime___gt__(*args) - - def __ge__(*args): - """__ge__(self, DateTime other) -> bool""" - return _misc.DateTime___ge__(*args) - - def __eq__(*args): - """__eq__(self, DateTime other) -> bool""" - return _misc.DateTime___eq__(*args) - - def __ne__(*args): - """__ne__(self, DateTime other) -> bool""" - return _misc.DateTime___ne__(*args) - - def ParseRfc822Date(*args, **kwargs): - """ParseRfc822Date(self, String date) -> int""" - return _misc.DateTime_ParseRfc822Date(*args, **kwargs) - - def ParseFormat(*args, **kwargs): - """ParseFormat(self, String date, String format=DateFormatStr, DateTime dateDef=DefaultDateTime) -> int""" - return _misc.DateTime_ParseFormat(*args, **kwargs) - - def ParseDateTime(*args, **kwargs): - """ParseDateTime(self, String datetime) -> int""" - return _misc.DateTime_ParseDateTime(*args, **kwargs) - - def ParseDate(*args, **kwargs): - """ParseDate(self, String date) -> int""" - return _misc.DateTime_ParseDate(*args, **kwargs) - - def ParseTime(*args, **kwargs): - """ParseTime(self, String time) -> int""" - return _misc.DateTime_ParseTime(*args, **kwargs) - - def Format(*args, **kwargs): - """Format(self, String format=DateFormatStr, wxDateTime::TimeZone tz=LOCAL_TZ) -> String""" - return _misc.DateTime_Format(*args, **kwargs) - - def FormatDate(*args, **kwargs): - """FormatDate(self) -> String""" - return _misc.DateTime_FormatDate(*args, **kwargs) - - def FormatTime(*args, **kwargs): - """FormatTime(self) -> String""" - return _misc.DateTime_FormatTime(*args, **kwargs) - - def FormatISODate(*args, **kwargs): - """FormatISODate(self) -> String""" - return _misc.DateTime_FormatISODate(*args, **kwargs) - - def FormatISOTime(*args, **kwargs): - """FormatISOTime(self) -> String""" - return _misc.DateTime_FormatISOTime(*args, **kwargs) - - def __repr__(self): - if self.IsValid(): - return '' % ( self.Format(), self.this) - else: - return '' % self.this - def __str__(self): - if self.IsValid(): - return self.Format() - else: - return "INVALID DateTime" - - -class DateTimePtr(DateTime): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = DateTime -_misc.DateTime_swigregister(DateTimePtr) -DateFormatStr = cvar.DateFormatStr -TimeSpanFormatStr = cvar.TimeSpanFormatStr - -def DateTime_SetCountry(*args, **kwargs): - """DateTime_SetCountry(int country)""" - return _misc.DateTime_SetCountry(*args, **kwargs) - -def DateTime_GetCountry(*args, **kwargs): - """DateTime_GetCountry() -> int""" - return _misc.DateTime_GetCountry(*args, **kwargs) - -def DateTime_IsWestEuropeanCountry(*args, **kwargs): - """DateTime_IsWestEuropeanCountry(int country=Country_Default) -> bool""" - return _misc.DateTime_IsWestEuropeanCountry(*args, **kwargs) - -def DateTime_GetCurrentYear(*args, **kwargs): - """DateTime_GetCurrentYear(int cal=Gregorian) -> int""" - return _misc.DateTime_GetCurrentYear(*args, **kwargs) - -def DateTime_ConvertYearToBC(*args, **kwargs): - """DateTime_ConvertYearToBC(int year) -> int""" - return _misc.DateTime_ConvertYearToBC(*args, **kwargs) - -def DateTime_GetCurrentMonth(*args, **kwargs): - """DateTime_GetCurrentMonth(int cal=Gregorian) -> int""" - return _misc.DateTime_GetCurrentMonth(*args, **kwargs) - -def DateTime_IsLeapYear(*args, **kwargs): - """DateTime_IsLeapYear(int year=Inv_Year, int cal=Gregorian) -> bool""" - return _misc.DateTime_IsLeapYear(*args, **kwargs) - -def DateTime_GetCentury(*args, **kwargs): - """DateTime_GetCentury(int year=Inv_Year) -> int""" - return _misc.DateTime_GetCentury(*args, **kwargs) - -def DateTime_GetNumberOfDaysinYear(*args, **kwargs): - """DateTime_GetNumberOfDaysinYear(int year, int cal=Gregorian) -> int""" - return _misc.DateTime_GetNumberOfDaysinYear(*args, **kwargs) - -def DateTime_GetNumberOfDaysInMonth(*args, **kwargs): - """DateTime_GetNumberOfDaysInMonth(int month, int year=Inv_Year, int cal=Gregorian) -> int""" - return _misc.DateTime_GetNumberOfDaysInMonth(*args, **kwargs) - -def DateTime_GetMonthName(*args, **kwargs): - """DateTime_GetMonthName(int month, int flags=Name_Full) -> String""" - return _misc.DateTime_GetMonthName(*args, **kwargs) - -def DateTime_GetWeekDayName(*args, **kwargs): - """DateTime_GetWeekDayName(int weekday, int flags=Name_Full) -> String""" - return _misc.DateTime_GetWeekDayName(*args, **kwargs) - -def DateTime_GetAmPmStrings(*args, **kwargs): - """ - GetAmPmStrings() -> (am, pm) - - Get the AM and PM strings in the current locale (may be empty) - """ - return _misc.DateTime_GetAmPmStrings(*args, **kwargs) - -def DateTime_IsDSTApplicable(*args, **kwargs): - """DateTime_IsDSTApplicable(int year=Inv_Year, int country=Country_Default) -> bool""" - return _misc.DateTime_IsDSTApplicable(*args, **kwargs) - -def DateTime_GetBeginDST(*args, **kwargs): - """DateTime_GetBeginDST(int year=Inv_Year, int country=Country_Default) -> DateTime""" - return _misc.DateTime_GetBeginDST(*args, **kwargs) - -def DateTime_GetEndDST(*args, **kwargs): - """DateTime_GetEndDST(int year=Inv_Year, int country=Country_Default) -> DateTime""" - return _misc.DateTime_GetEndDST(*args, **kwargs) - -def DateTime_Now(*args, **kwargs): - """DateTime_Now() -> DateTime""" - return _misc.DateTime_Now(*args, **kwargs) - -def DateTime_UNow(*args, **kwargs): - """DateTime_UNow() -> DateTime""" - return _misc.DateTime_UNow(*args, **kwargs) - -def DateTime_Today(*args, **kwargs): - """DateTime_Today() -> DateTime""" - return _misc.DateTime_Today(*args, **kwargs) - -def DateTimeFromTimeT(*args, **kwargs): - """DateTimeFromTimeT(time_t timet) -> DateTime""" - val = _misc.new_DateTimeFromTimeT(*args, **kwargs) - val.thisown = 1 - return val - -def DateTimeFromJDN(*args, **kwargs): - """DateTimeFromJDN(double jdn) -> DateTime""" - val = _misc.new_DateTimeFromJDN(*args, **kwargs) - val.thisown = 1 - return val - -def DateTimeFromHMS(*args, **kwargs): - """DateTimeFromHMS(int hour, int minute=0, int second=0, int millisec=0) -> DateTime""" - val = _misc.new_DateTimeFromHMS(*args, **kwargs) - val.thisown = 1 - return val - -def DateTimeFromDMY(*args, **kwargs): - """ - DateTimeFromDMY(int day, int month=Inv_Month, int year=Inv_Year, int hour=0, - int minute=0, int second=0, int millisec=0) -> DateTime - """ - val = _misc.new_DateTimeFromDMY(*args, **kwargs) - val.thisown = 1 - return val - -class TimeSpan(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxTimeSpan instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def Seconds(*args, **kwargs): - """TimeSpan.Seconds(long sec) -> TimeSpan""" - return _misc.TimeSpan_Seconds(*args, **kwargs) - - Seconds = staticmethod(Seconds) - def Second(*args, **kwargs): - """TimeSpan.Second() -> TimeSpan""" - return _misc.TimeSpan_Second(*args, **kwargs) - - Second = staticmethod(Second) - def Minutes(*args, **kwargs): - """TimeSpan.Minutes(long min) -> TimeSpan""" - return _misc.TimeSpan_Minutes(*args, **kwargs) - - Minutes = staticmethod(Minutes) - def Minute(*args, **kwargs): - """TimeSpan.Minute() -> TimeSpan""" - return _misc.TimeSpan_Minute(*args, **kwargs) - - Minute = staticmethod(Minute) - def Hours(*args, **kwargs): - """TimeSpan.Hours(long hours) -> TimeSpan""" - return _misc.TimeSpan_Hours(*args, **kwargs) - - Hours = staticmethod(Hours) - def Hour(*args, **kwargs): - """TimeSpan.Hour() -> TimeSpan""" - return _misc.TimeSpan_Hour(*args, **kwargs) - - Hour = staticmethod(Hour) - def Days(*args, **kwargs): - """TimeSpan.Days(long days) -> TimeSpan""" - return _misc.TimeSpan_Days(*args, **kwargs) - - Days = staticmethod(Days) - def Day(*args, **kwargs): - """TimeSpan.Day() -> TimeSpan""" - return _misc.TimeSpan_Day(*args, **kwargs) - - Day = staticmethod(Day) - def Weeks(*args, **kwargs): - """TimeSpan.Weeks(long days) -> TimeSpan""" - return _misc.TimeSpan_Weeks(*args, **kwargs) - - Weeks = staticmethod(Weeks) - def Week(*args, **kwargs): - """TimeSpan.Week() -> TimeSpan""" - return _misc.TimeSpan_Week(*args, **kwargs) - - Week = staticmethod(Week) - def __init__(self, *args, **kwargs): - """__init__(self, long hours=0, long minutes=0, long seconds=0, long milliseconds=0) -> TimeSpan""" - newobj = _misc.new_TimeSpan(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_misc.delete_TimeSpan): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Add(*args, **kwargs): - """Add(self, TimeSpan diff) -> TimeSpan""" - return _misc.TimeSpan_Add(*args, **kwargs) - - def Subtract(*args, **kwargs): - """Subtract(self, TimeSpan diff) -> TimeSpan""" - return _misc.TimeSpan_Subtract(*args, **kwargs) - - def Multiply(*args, **kwargs): - """Multiply(self, int n) -> TimeSpan""" - return _misc.TimeSpan_Multiply(*args, **kwargs) - - def Neg(*args, **kwargs): - """Neg(self) -> TimeSpan""" - return _misc.TimeSpan_Neg(*args, **kwargs) - - def Abs(*args, **kwargs): - """Abs(self) -> TimeSpan""" - return _misc.TimeSpan_Abs(*args, **kwargs) - - def __iadd__(*args, **kwargs): - """__iadd__(self, TimeSpan diff) -> TimeSpan""" - return _misc.TimeSpan___iadd__(*args, **kwargs) - - def __isub__(*args, **kwargs): - """__isub__(self, TimeSpan diff) -> TimeSpan""" - return _misc.TimeSpan___isub__(*args, **kwargs) - - def __imul__(*args, **kwargs): - """__imul__(self, int n) -> TimeSpan""" - return _misc.TimeSpan___imul__(*args, **kwargs) - - def __neg__(*args, **kwargs): - """__neg__(self) -> TimeSpan""" - return _misc.TimeSpan___neg__(*args, **kwargs) - - def __add__(*args, **kwargs): - """__add__(self, TimeSpan other) -> TimeSpan""" - return _misc.TimeSpan___add__(*args, **kwargs) - - def __sub__(*args, **kwargs): - """__sub__(self, TimeSpan other) -> TimeSpan""" - return _misc.TimeSpan___sub__(*args, **kwargs) - - def __mul__(*args, **kwargs): - """__mul__(self, int n) -> TimeSpan""" - return _misc.TimeSpan___mul__(*args, **kwargs) - - def __rmul__(*args, **kwargs): - """__rmul__(self, int n) -> TimeSpan""" - return _misc.TimeSpan___rmul__(*args, **kwargs) - - def __lt__(*args, **kwargs): - """__lt__(self, TimeSpan other) -> bool""" - return _misc.TimeSpan___lt__(*args, **kwargs) - - def __le__(*args, **kwargs): - """__le__(self, TimeSpan other) -> bool""" - return _misc.TimeSpan___le__(*args, **kwargs) - - def __gt__(*args, **kwargs): - """__gt__(self, TimeSpan other) -> bool""" - return _misc.TimeSpan___gt__(*args, **kwargs) - - def __ge__(*args, **kwargs): - """__ge__(self, TimeSpan other) -> bool""" - return _misc.TimeSpan___ge__(*args, **kwargs) - - def __eq__(*args, **kwargs): - """__eq__(self, TimeSpan other) -> bool""" - return _misc.TimeSpan___eq__(*args, **kwargs) - - def __ne__(*args, **kwargs): - """__ne__(self, TimeSpan other) -> bool""" - return _misc.TimeSpan___ne__(*args, **kwargs) - - def IsNull(*args, **kwargs): - """IsNull(self) -> bool""" - return _misc.TimeSpan_IsNull(*args, **kwargs) - - def IsPositive(*args, **kwargs): - """IsPositive(self) -> bool""" - return _misc.TimeSpan_IsPositive(*args, **kwargs) - - def IsNegative(*args, **kwargs): - """IsNegative(self) -> bool""" - return _misc.TimeSpan_IsNegative(*args, **kwargs) - - def IsEqualTo(*args, **kwargs): - """IsEqualTo(self, TimeSpan ts) -> bool""" - return _misc.TimeSpan_IsEqualTo(*args, **kwargs) - - def IsLongerThan(*args, **kwargs): - """IsLongerThan(self, TimeSpan ts) -> bool""" - return _misc.TimeSpan_IsLongerThan(*args, **kwargs) - - def IsShorterThan(*args, **kwargs): - """IsShorterThan(self, TimeSpan t) -> bool""" - return _misc.TimeSpan_IsShorterThan(*args, **kwargs) - - def GetWeeks(*args, **kwargs): - """GetWeeks(self) -> int""" - return _misc.TimeSpan_GetWeeks(*args, **kwargs) - - def GetDays(*args, **kwargs): - """GetDays(self) -> int""" - return _misc.TimeSpan_GetDays(*args, **kwargs) - - def GetHours(*args, **kwargs): - """GetHours(self) -> int""" - return _misc.TimeSpan_GetHours(*args, **kwargs) - - def GetMinutes(*args, **kwargs): - """GetMinutes(self) -> int""" - return _misc.TimeSpan_GetMinutes(*args, **kwargs) - - def GetSeconds(*args, **kwargs): - """GetSeconds(self) -> wxLongLong""" - return _misc.TimeSpan_GetSeconds(*args, **kwargs) - - def GetMilliseconds(*args, **kwargs): - """GetMilliseconds(self) -> wxLongLong""" - return _misc.TimeSpan_GetMilliseconds(*args, **kwargs) - - def Format(*args, **kwargs): - """Format(self, String format=TimeSpanFormatStr) -> String""" - return _misc.TimeSpan_Format(*args, **kwargs) - - def __repr__(self): - return '' % ( self.Format(), self.this) - def __str__(self): - return self.Format() - - -class TimeSpanPtr(TimeSpan): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = TimeSpan -_misc.TimeSpan_swigregister(TimeSpanPtr) - -def TimeSpan_Seconds(*args, **kwargs): - """TimeSpan_Seconds(long sec) -> TimeSpan""" - return _misc.TimeSpan_Seconds(*args, **kwargs) - -def TimeSpan_Second(*args, **kwargs): - """TimeSpan_Second() -> TimeSpan""" - return _misc.TimeSpan_Second(*args, **kwargs) - -def TimeSpan_Minutes(*args, **kwargs): - """TimeSpan_Minutes(long min) -> TimeSpan""" - return _misc.TimeSpan_Minutes(*args, **kwargs) - -def TimeSpan_Minute(*args, **kwargs): - """TimeSpan_Minute() -> TimeSpan""" - return _misc.TimeSpan_Minute(*args, **kwargs) - -def TimeSpan_Hours(*args, **kwargs): - """TimeSpan_Hours(long hours) -> TimeSpan""" - return _misc.TimeSpan_Hours(*args, **kwargs) - -def TimeSpan_Hour(*args, **kwargs): - """TimeSpan_Hour() -> TimeSpan""" - return _misc.TimeSpan_Hour(*args, **kwargs) - -def TimeSpan_Days(*args, **kwargs): - """TimeSpan_Days(long days) -> TimeSpan""" - return _misc.TimeSpan_Days(*args, **kwargs) - -def TimeSpan_Day(*args, **kwargs): - """TimeSpan_Day() -> TimeSpan""" - return _misc.TimeSpan_Day(*args, **kwargs) - -def TimeSpan_Weeks(*args, **kwargs): - """TimeSpan_Weeks(long days) -> TimeSpan""" - return _misc.TimeSpan_Weeks(*args, **kwargs) - -def TimeSpan_Week(*args, **kwargs): - """TimeSpan_Week() -> TimeSpan""" - return _misc.TimeSpan_Week(*args, **kwargs) - -class DateSpan(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxDateSpan instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int years=0, int months=0, int weeks=0, int days=0) -> DateSpan""" - newobj = _misc.new_DateSpan(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_misc.delete_DateSpan): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Days(*args, **kwargs): - """DateSpan.Days(int days) -> DateSpan""" - return _misc.DateSpan_Days(*args, **kwargs) - - Days = staticmethod(Days) - def Day(*args, **kwargs): - """DateSpan.Day() -> DateSpan""" - return _misc.DateSpan_Day(*args, **kwargs) - - Day = staticmethod(Day) - def Weeks(*args, **kwargs): - """DateSpan.Weeks(int weeks) -> DateSpan""" - return _misc.DateSpan_Weeks(*args, **kwargs) - - Weeks = staticmethod(Weeks) - def Week(*args, **kwargs): - """DateSpan.Week() -> DateSpan""" - return _misc.DateSpan_Week(*args, **kwargs) - - Week = staticmethod(Week) - def Months(*args, **kwargs): - """DateSpan.Months(int mon) -> DateSpan""" - return _misc.DateSpan_Months(*args, **kwargs) - - Months = staticmethod(Months) - def Month(*args, **kwargs): - """DateSpan.Month() -> DateSpan""" - return _misc.DateSpan_Month(*args, **kwargs) - - Month = staticmethod(Month) - def Years(*args, **kwargs): - """DateSpan.Years(int years) -> DateSpan""" - return _misc.DateSpan_Years(*args, **kwargs) - - Years = staticmethod(Years) - def Year(*args, **kwargs): - """DateSpan.Year() -> DateSpan""" - return _misc.DateSpan_Year(*args, **kwargs) - - Year = staticmethod(Year) - def SetYears(*args, **kwargs): - """SetYears(self, int n) -> DateSpan""" - return _misc.DateSpan_SetYears(*args, **kwargs) - - def SetMonths(*args, **kwargs): - """SetMonths(self, int n) -> DateSpan""" - return _misc.DateSpan_SetMonths(*args, **kwargs) - - def SetWeeks(*args, **kwargs): - """SetWeeks(self, int n) -> DateSpan""" - return _misc.DateSpan_SetWeeks(*args, **kwargs) - - def SetDays(*args, **kwargs): - """SetDays(self, int n) -> DateSpan""" - return _misc.DateSpan_SetDays(*args, **kwargs) - - def GetYears(*args, **kwargs): - """GetYears(self) -> int""" - return _misc.DateSpan_GetYears(*args, **kwargs) - - def GetMonths(*args, **kwargs): - """GetMonths(self) -> int""" - return _misc.DateSpan_GetMonths(*args, **kwargs) - - def GetWeeks(*args, **kwargs): - """GetWeeks(self) -> int""" - return _misc.DateSpan_GetWeeks(*args, **kwargs) - - def GetDays(*args, **kwargs): - """GetDays(self) -> int""" - return _misc.DateSpan_GetDays(*args, **kwargs) - - def GetTotalDays(*args, **kwargs): - """GetTotalDays(self) -> int""" - return _misc.DateSpan_GetTotalDays(*args, **kwargs) - - def Add(*args, **kwargs): - """Add(self, DateSpan other) -> DateSpan""" - return _misc.DateSpan_Add(*args, **kwargs) - - def Subtract(*args, **kwargs): - """Subtract(self, DateSpan other) -> DateSpan""" - return _misc.DateSpan_Subtract(*args, **kwargs) - - def Neg(*args, **kwargs): - """Neg(self) -> DateSpan""" - return _misc.DateSpan_Neg(*args, **kwargs) - - def Multiply(*args, **kwargs): - """Multiply(self, int factor) -> DateSpan""" - return _misc.DateSpan_Multiply(*args, **kwargs) - - def __iadd__(*args, **kwargs): - """__iadd__(self, DateSpan other) -> DateSpan""" - return _misc.DateSpan___iadd__(*args, **kwargs) - - def __isub__(*args, **kwargs): - """__isub__(self, DateSpan other) -> DateSpan""" - return _misc.DateSpan___isub__(*args, **kwargs) - - def __neg__(*args, **kwargs): - """__neg__(self) -> DateSpan""" - return _misc.DateSpan___neg__(*args, **kwargs) - - def __imul__(*args, **kwargs): - """__imul__(self, int factor) -> DateSpan""" - return _misc.DateSpan___imul__(*args, **kwargs) - - def __add__(*args, **kwargs): - """__add__(self, DateSpan other) -> DateSpan""" - return _misc.DateSpan___add__(*args, **kwargs) - - def __sub__(*args, **kwargs): - """__sub__(self, DateSpan other) -> DateSpan""" - return _misc.DateSpan___sub__(*args, **kwargs) - - def __mul__(*args, **kwargs): - """__mul__(self, int n) -> DateSpan""" - return _misc.DateSpan___mul__(*args, **kwargs) - - def __rmul__(*args, **kwargs): - """__rmul__(self, int n) -> DateSpan""" - return _misc.DateSpan___rmul__(*args, **kwargs) - - def __eq__(*args, **kwargs): - """__eq__(self, DateSpan other) -> bool""" - return _misc.DateSpan___eq__(*args, **kwargs) - - def __ne__(*args, **kwargs): - """__ne__(self, DateSpan other) -> bool""" - return _misc.DateSpan___ne__(*args, **kwargs) - - -class DateSpanPtr(DateSpan): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = DateSpan -_misc.DateSpan_swigregister(DateSpanPtr) - -def DateSpan_Days(*args, **kwargs): - """DateSpan_Days(int days) -> DateSpan""" - return _misc.DateSpan_Days(*args, **kwargs) - -def DateSpan_Day(*args, **kwargs): - """DateSpan_Day() -> DateSpan""" - return _misc.DateSpan_Day(*args, **kwargs) - -def DateSpan_Weeks(*args, **kwargs): - """DateSpan_Weeks(int weeks) -> DateSpan""" - return _misc.DateSpan_Weeks(*args, **kwargs) - -def DateSpan_Week(*args, **kwargs): - """DateSpan_Week() -> DateSpan""" - return _misc.DateSpan_Week(*args, **kwargs) - -def DateSpan_Months(*args, **kwargs): - """DateSpan_Months(int mon) -> DateSpan""" - return _misc.DateSpan_Months(*args, **kwargs) - -def DateSpan_Month(*args, **kwargs): - """DateSpan_Month() -> DateSpan""" - return _misc.DateSpan_Month(*args, **kwargs) - -def DateSpan_Years(*args, **kwargs): - """DateSpan_Years(int years) -> DateSpan""" - return _misc.DateSpan_Years(*args, **kwargs) - -def DateSpan_Year(*args, **kwargs): - """DateSpan_Year() -> DateSpan""" - return _misc.DateSpan_Year(*args, **kwargs) - - -def GetLocalTime(*args, **kwargs): - """GetLocalTime() -> long""" - return _misc.GetLocalTime(*args, **kwargs) - -def GetUTCTime(*args, **kwargs): - """GetUTCTime() -> long""" - return _misc.GetUTCTime(*args, **kwargs) - -def GetCurrentTime(*args, **kwargs): - """GetCurrentTime() -> long""" - return _misc.GetCurrentTime(*args, **kwargs) - -def GetLocalTimeMillis(*args, **kwargs): - """GetLocalTimeMillis() -> wxLongLong""" - return _misc.GetLocalTimeMillis(*args, **kwargs) -#--------------------------------------------------------------------------- - -DF_INVALID = _misc.DF_INVALID -DF_TEXT = _misc.DF_TEXT -DF_BITMAP = _misc.DF_BITMAP -DF_METAFILE = _misc.DF_METAFILE -DF_SYLK = _misc.DF_SYLK -DF_DIF = _misc.DF_DIF -DF_TIFF = _misc.DF_TIFF -DF_OEMTEXT = _misc.DF_OEMTEXT -DF_DIB = _misc.DF_DIB -DF_PALETTE = _misc.DF_PALETTE -DF_PENDATA = _misc.DF_PENDATA -DF_RIFF = _misc.DF_RIFF -DF_WAVE = _misc.DF_WAVE -DF_UNICODETEXT = _misc.DF_UNICODETEXT -DF_ENHMETAFILE = _misc.DF_ENHMETAFILE -DF_FILENAME = _misc.DF_FILENAME -DF_LOCALE = _misc.DF_LOCALE -DF_PRIVATE = _misc.DF_PRIVATE -DF_HTML = _misc.DF_HTML -DF_MAX = _misc.DF_MAX -class DataFormat(object): - """ - A wx.DataFormat is an encapsulation of a platform-specific format - handle which is used by the system for the clipboard and drag and - drop operations. The applications are usually only interested in, - for example, pasting data from the clipboard only if the data is - in a format the program understands. A data format is is used to - uniquely identify this format. - - On the system level, a data format is usually just a number - (CLIPFORMAT under Windows or Atom under X11, for example). - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxDataFormat instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, int type) -> DataFormat - - Constructs a data format object for one of the standard data - formats or an empty data object (use SetType or SetId later in - this case) - """ - newobj = _misc.new_DataFormat(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_misc.delete_DataFormat): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def __eq__(*args): - """ - __eq__(self, int format) -> bool - __eq__(self, DataFormat format) -> bool - """ - return _misc.DataFormat___eq__(*args) - - def __ne__(*args): - """ - __ne__(self, int format) -> bool - __ne__(self, DataFormat format) -> bool - """ - return _misc.DataFormat___ne__(*args) - - def SetType(*args, **kwargs): - """ - SetType(self, int format) - - Sets the format to the given value, which should be one of wx.DF_XXX constants. - """ - return _misc.DataFormat_SetType(*args, **kwargs) - - def GetType(*args, **kwargs): - """ - GetType(self) -> int - - Returns the platform-specific number identifying the format. - """ - return _misc.DataFormat_GetType(*args, **kwargs) - - def GetId(*args, **kwargs): - """ - GetId(self) -> String - - Returns the name of a custom format (this function will fail for a standard format). - """ - return _misc.DataFormat_GetId(*args, **kwargs) - - def SetId(*args, **kwargs): - """ - SetId(self, String format) - - Sets the format to be the custom format identified by the given name. - """ - return _misc.DataFormat_SetId(*args, **kwargs) - - -class DataFormatPtr(DataFormat): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = DataFormat -_misc.DataFormat_swigregister(DataFormatPtr) -DefaultDateTime = cvar.DefaultDateTime - -def CustomDataFormat(*args, **kwargs): - """ - CustomDataFormat(String format) -> DataFormat - - Constructs a data format object for a custom format identified by its name. - """ - val = _misc.new_CustomDataFormat(*args, **kwargs) - val.thisown = 1 - return val - -class DataObject(object): - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - Get = _misc.DataObject_Get - Set = _misc.DataObject_Set - Both = _misc.DataObject_Both - def __del__(self, destroy=_misc.delete_DataObject): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def GetPreferredFormat(*args, **kwargs): - """GetPreferredFormat(self, int dir=Get) -> DataFormat""" - return _misc.DataObject_GetPreferredFormat(*args, **kwargs) - - def GetFormatCount(*args, **kwargs): - """GetFormatCount(self, int dir=Get) -> size_t""" - return _misc.DataObject_GetFormatCount(*args, **kwargs) - - def IsSupported(*args, **kwargs): - """IsSupported(self, DataFormat format, int dir=Get) -> bool""" - return _misc.DataObject_IsSupported(*args, **kwargs) - - def GetDataSize(*args, **kwargs): - """GetDataSize(self, DataFormat format) -> size_t""" - return _misc.DataObject_GetDataSize(*args, **kwargs) - - def GetAllFormats(*args, **kwargs): - """GetAllFormats(self, DataFormat formats, int dir=Get)""" - return _misc.DataObject_GetAllFormats(*args, **kwargs) - - def GetDataHere(*args, **kwargs): - """GetDataHere(self, DataFormat format, void buf) -> bool""" - return _misc.DataObject_GetDataHere(*args, **kwargs) - - def SetData(*args, **kwargs): - """SetData(self, DataFormat format, size_t len, void buf) -> bool""" - return _misc.DataObject_SetData(*args, **kwargs) - - -class DataObjectPtr(DataObject): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = DataObject -_misc.DataObject_swigregister(DataObjectPtr) -FormatInvalid = cvar.FormatInvalid - -class DataObjectSimple(DataObject): - def __repr__(self): - return "<%s.%s; proxy of C++ wxDataObjectSimple instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, DataFormat format=FormatInvalid) -> DataObjectSimple""" - newobj = _misc.new_DataObjectSimple(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetFormat(*args, **kwargs): - """GetFormat(self) -> DataFormat""" - return _misc.DataObjectSimple_GetFormat(*args, **kwargs) - - def SetFormat(*args, **kwargs): - """SetFormat(self, DataFormat format)""" - return _misc.DataObjectSimple_SetFormat(*args, **kwargs) - - -class DataObjectSimplePtr(DataObjectSimple): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = DataObjectSimple -_misc.DataObjectSimple_swigregister(DataObjectSimplePtr) - -class PyDataObjectSimple(DataObjectSimple): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyDataObjectSimple instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, DataFormat format=FormatInvalid) -> PyDataObjectSimple""" - newobj = _misc.new_PyDataObjectSimple(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setCallbackInfo(self, PyDataObjectSimple) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _misc.PyDataObjectSimple__setCallbackInfo(*args, **kwargs) - - -class PyDataObjectSimplePtr(PyDataObjectSimple): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PyDataObjectSimple -_misc.PyDataObjectSimple_swigregister(PyDataObjectSimplePtr) - -class DataObjectComposite(DataObject): - def __repr__(self): - return "<%s.%s; proxy of C++ wxDataObjectComposite instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> DataObjectComposite""" - newobj = _misc.new_DataObjectComposite(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def Add(*args, **kwargs): - """Add(self, DataObjectSimple dataObject, int preferred=False)""" - return _misc.DataObjectComposite_Add(*args, **kwargs) - - -class DataObjectCompositePtr(DataObjectComposite): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = DataObjectComposite -_misc.DataObjectComposite_swigregister(DataObjectCompositePtr) - -class TextDataObject(DataObjectSimple): - def __repr__(self): - return "<%s.%s; proxy of C++ wxTextDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, String text=EmptyString) -> TextDataObject""" - newobj = _misc.new_TextDataObject(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetTextLength(*args, **kwargs): - """GetTextLength(self) -> size_t""" - return _misc.TextDataObject_GetTextLength(*args, **kwargs) - - def GetText(*args, **kwargs): - """GetText(self) -> String""" - return _misc.TextDataObject_GetText(*args, **kwargs) - - def SetText(*args, **kwargs): - """SetText(self, String text)""" - return _misc.TextDataObject_SetText(*args, **kwargs) - - -class TextDataObjectPtr(TextDataObject): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = TextDataObject -_misc.TextDataObject_swigregister(TextDataObjectPtr) - -class PyTextDataObject(TextDataObject): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyTextDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, String text=EmptyString) -> PyTextDataObject""" - newobj = _misc.new_PyTextDataObject(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setCallbackInfo(self, PyTextDataObject) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _misc.PyTextDataObject__setCallbackInfo(*args, **kwargs) - - -class PyTextDataObjectPtr(PyTextDataObject): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PyTextDataObject -_misc.PyTextDataObject_swigregister(PyTextDataObjectPtr) - -class BitmapDataObject(DataObjectSimple): - def __repr__(self): - return "<%s.%s; proxy of C++ wxBitmapDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Bitmap bitmap=wxNullBitmap) -> BitmapDataObject""" - newobj = _misc.new_BitmapDataObject(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetBitmap(*args, **kwargs): - """GetBitmap(self) -> Bitmap""" - return _misc.BitmapDataObject_GetBitmap(*args, **kwargs) - - def SetBitmap(*args, **kwargs): - """SetBitmap(self, Bitmap bitmap)""" - return _misc.BitmapDataObject_SetBitmap(*args, **kwargs) - - -class BitmapDataObjectPtr(BitmapDataObject): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = BitmapDataObject -_misc.BitmapDataObject_swigregister(BitmapDataObjectPtr) - -class PyBitmapDataObject(BitmapDataObject): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyBitmapDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Bitmap bitmap=wxNullBitmap) -> PyBitmapDataObject""" - newobj = _misc.new_PyBitmapDataObject(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setCallbackInfo(self, PyBitmapDataObject) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _misc.PyBitmapDataObject__setCallbackInfo(*args, **kwargs) - - -class PyBitmapDataObjectPtr(PyBitmapDataObject): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PyBitmapDataObject -_misc.PyBitmapDataObject_swigregister(PyBitmapDataObjectPtr) - -class FileDataObject(DataObjectSimple): - def __repr__(self): - return "<%s.%s; proxy of C++ wxFileDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> FileDataObject""" - newobj = _misc.new_FileDataObject(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetFilenames(*args, **kwargs): - """GetFilenames(self) -> wxArrayString""" - return _misc.FileDataObject_GetFilenames(*args, **kwargs) - - def AddFile(*args, **kwargs): - """AddFile(self, String filename)""" - return _misc.FileDataObject_AddFile(*args, **kwargs) - - -class FileDataObjectPtr(FileDataObject): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = FileDataObject -_misc.FileDataObject_swigregister(FileDataObjectPtr) - -class CustomDataObject(DataObjectSimple): - def __repr__(self): - return "<%s.%s; proxy of C++ wxCustomDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, DataFormat format=FormatInvalid) -> CustomDataObject""" - newobj = _misc.new_CustomDataObject(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def TakeData(*args, **kwargs): - """TakeData(self, PyObject data)""" - return _misc.CustomDataObject_TakeData(*args, **kwargs) - - def SetData(*args, **kwargs): - """SetData(self, PyObject data) -> bool""" - return _misc.CustomDataObject_SetData(*args, **kwargs) - - def GetSize(*args, **kwargs): - """GetSize(self) -> size_t""" - return _misc.CustomDataObject_GetSize(*args, **kwargs) - - def GetData(*args, **kwargs): - """GetData(self) -> PyObject""" - return _misc.CustomDataObject_GetData(*args, **kwargs) - - -class CustomDataObjectPtr(CustomDataObject): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = CustomDataObject -_misc.CustomDataObject_swigregister(CustomDataObjectPtr) - -class URLDataObject(DataObjectComposite): - def __repr__(self): - return "<%s.%s; proxy of C++ wxURLDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> URLDataObject""" - newobj = _misc.new_URLDataObject(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetURL(*args, **kwargs): - """GetURL(self) -> String""" - return _misc.URLDataObject_GetURL(*args, **kwargs) - - def SetURL(*args, **kwargs): - """SetURL(self, String url)""" - return _misc.URLDataObject_SetURL(*args, **kwargs) - - -class URLDataObjectPtr(URLDataObject): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = URLDataObject -_misc.URLDataObject_swigregister(URLDataObjectPtr) - -class MetafileDataObject(DataObjectSimple): - def __repr__(self): - return "<%s.%s; proxy of C++ wxMetafileDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> MetafileDataObject""" - newobj = _misc.new_MetafileDataObject(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def SetMetafile(*args, **kwargs): - """SetMetafile(self, wxMetafile metafile)""" - return _misc.MetafileDataObject_SetMetafile(*args, **kwargs) - - def GetMetafile(*args, **kwargs): - """GetMetafile(self) -> wxMetafile""" - return _misc.MetafileDataObject_GetMetafile(*args, **kwargs) - - -class MetafileDataObjectPtr(MetafileDataObject): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = MetafileDataObject -_misc.MetafileDataObject_swigregister(MetafileDataObjectPtr) - -#--------------------------------------------------------------------------- - -Drag_CopyOnly = _misc.Drag_CopyOnly -Drag_AllowMove = _misc.Drag_AllowMove -Drag_DefaultMove = _misc.Drag_DefaultMove -DragError = _misc.DragError -DragNone = _misc.DragNone -DragCopy = _misc.DragCopy -DragMove = _misc.DragMove -DragLink = _misc.DragLink -DragCancel = _misc.DragCancel - -def IsDragResultOk(*args, **kwargs): - """IsDragResultOk(int res) -> bool""" - return _misc.IsDragResultOk(*args, **kwargs) -class DropSource(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyDropSource instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window win, Cursor copy=wxNullCursor, Cursor move=wxNullCursor, - Cursor none=wxNullCursor) -> DropSource - """ - newobj = _misc.new_DropSource(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)""" - return _misc.DropSource__setCallbackInfo(*args, **kwargs) - - def __del__(self, destroy=_misc.delete_DropSource): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def SetData(*args, **kwargs): - """SetData(self, DataObject data)""" - return _misc.DropSource_SetData(*args, **kwargs) - - def GetDataObject(*args, **kwargs): - """GetDataObject(self) -> DataObject""" - return _misc.DropSource_GetDataObject(*args, **kwargs) - - def SetCursor(*args, **kwargs): - """SetCursor(self, int res, Cursor cursor)""" - return _misc.DropSource_SetCursor(*args, **kwargs) - - def DoDragDrop(*args, **kwargs): - """DoDragDrop(self, int flags=Drag_CopyOnly) -> int""" - return _misc.DropSource_DoDragDrop(*args, **kwargs) - - def base_GiveFeedback(*args, **kwargs): - """base_GiveFeedback(self, int effect) -> bool""" - return _misc.DropSource_base_GiveFeedback(*args, **kwargs) - - -class DropSourcePtr(DropSource): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = DropSource -_misc.DropSource_swigregister(DropSourcePtr) - -class DropTarget(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyDropTarget instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, DataObject dataObject=None) -> DropTarget""" - newobj = _misc.new_DropTarget(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setCallbackInfo(self, DropTarget) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _misc.DropTarget__setCallbackInfo(*args, **kwargs) - - def __del__(self, destroy=_misc.delete_DropTarget): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def GetDataObject(*args, **kwargs): - """GetDataObject(self) -> DataObject""" - return _misc.DropTarget_GetDataObject(*args, **kwargs) - - def SetDataObject(*args, **kwargs): - """SetDataObject(self, DataObject dataObject)""" - return _misc.DropTarget_SetDataObject(*args, **kwargs) - - def base_OnEnter(*args, **kwargs): - """base_OnEnter(self, int x, int y, int def) -> int""" - return _misc.DropTarget_base_OnEnter(*args, **kwargs) - - def base_OnDragOver(*args, **kwargs): - """base_OnDragOver(self, int x, int y, int def) -> int""" - return _misc.DropTarget_base_OnDragOver(*args, **kwargs) - - def base_OnLeave(*args, **kwargs): - """base_OnLeave(self)""" - return _misc.DropTarget_base_OnLeave(*args, **kwargs) - - def base_OnDrop(*args, **kwargs): - """base_OnDrop(self, int x, int y) -> bool""" - return _misc.DropTarget_base_OnDrop(*args, **kwargs) - - def GetData(*args, **kwargs): - """GetData(self) -> bool""" - return _misc.DropTarget_GetData(*args, **kwargs) - - -class DropTargetPtr(DropTarget): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = DropTarget -_misc.DropTarget_swigregister(DropTargetPtr) - -PyDropTarget = DropTarget -class TextDropTarget(DropTarget): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyTextDropTarget instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> TextDropTarget""" - newobj = _misc.new_TextDropTarget(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setCallbackInfo(self, TextDropTarget) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _misc.TextDropTarget__setCallbackInfo(*args, **kwargs) - - def base_OnEnter(*args, **kwargs): - """base_OnEnter(self, int x, int y, int def) -> int""" - return _misc.TextDropTarget_base_OnEnter(*args, **kwargs) - - def base_OnDragOver(*args, **kwargs): - """base_OnDragOver(self, int x, int y, int def) -> int""" - return _misc.TextDropTarget_base_OnDragOver(*args, **kwargs) - - def base_OnLeave(*args, **kwargs): - """base_OnLeave(self)""" - return _misc.TextDropTarget_base_OnLeave(*args, **kwargs) - - def base_OnDrop(*args, **kwargs): - """base_OnDrop(self, int x, int y) -> bool""" - return _misc.TextDropTarget_base_OnDrop(*args, **kwargs) - - def base_OnData(*args, **kwargs): - """base_OnData(self, int x, int y, int def) -> int""" - return _misc.TextDropTarget_base_OnData(*args, **kwargs) - - -class TextDropTargetPtr(TextDropTarget): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = TextDropTarget -_misc.TextDropTarget_swigregister(TextDropTargetPtr) - -class FileDropTarget(DropTarget): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyFileDropTarget instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> FileDropTarget""" - newobj = _misc.new_FileDropTarget(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setCallbackInfo(self, FileDropTarget) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _misc.FileDropTarget__setCallbackInfo(*args, **kwargs) - - def base_OnEnter(*args, **kwargs): - """base_OnEnter(self, int x, int y, int def) -> int""" - return _misc.FileDropTarget_base_OnEnter(*args, **kwargs) - - def base_OnDragOver(*args, **kwargs): - """base_OnDragOver(self, int x, int y, int def) -> int""" - return _misc.FileDropTarget_base_OnDragOver(*args, **kwargs) - - def base_OnLeave(*args, **kwargs): - """base_OnLeave(self)""" - return _misc.FileDropTarget_base_OnLeave(*args, **kwargs) - - def base_OnDrop(*args, **kwargs): - """base_OnDrop(self, int x, int y) -> bool""" - return _misc.FileDropTarget_base_OnDrop(*args, **kwargs) - - def base_OnData(*args, **kwargs): - """base_OnData(self, int x, int y, int def) -> int""" - return _misc.FileDropTarget_base_OnData(*args, **kwargs) - - -class FileDropTargetPtr(FileDropTarget): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = FileDropTarget -_misc.FileDropTarget_swigregister(FileDropTargetPtr) - -#--------------------------------------------------------------------------- - -class Clipboard(core.Object): - """ - wx.Clipboard represents the system clipboard and provides methods to copy data - to or paste data from it. Normally, you should only use wx.TheClipboard which - is a reference to a global wx.Clipboard instance. - - Call wx.TheClipboard.Open to get ownership of the clipboard. If this operation - returns True, you now own the clipboard. Call wx.TheClipboard.SetData to put - data on the clipboard, or wx.TheClipboard.GetData to retrieve data from the - clipboard. Call wx.TheClipboard.Close to close the clipboard and relinquish - ownership. You should keep the clipboard open only momentarily. - - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxClipboard instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> Clipboard""" - newobj = _misc.new_Clipboard(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_misc.delete_Clipboard): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Open(*args, **kwargs): - """ - Open(self) -> bool - - Call this function to open the clipboard before calling SetData - and GetData. Call Close when you have finished with the clipboard. - You should keep the clipboard open for only a very short time. - Returns true on success. - """ - return _misc.Clipboard_Open(*args, **kwargs) - - def Close(*args, **kwargs): - """ - Close(self) - - Closes the clipboard. - """ - return _misc.Clipboard_Close(*args, **kwargs) - - def IsOpened(*args, **kwargs): - """ - IsOpened(self) -> bool - - Query whether the clipboard is opened - """ - return _misc.Clipboard_IsOpened(*args, **kwargs) - - def AddData(*args, **kwargs): - """ - AddData(self, DataObject data) -> bool - - Call this function to add the data object to the clipboard. You - may call this function repeatedly after having cleared the clipboard. - After this function has been called, the clipboard owns the data, so - do not delete the data explicitly. - """ - return _misc.Clipboard_AddData(*args, **kwargs) - - def SetData(*args, **kwargs): - """ - SetData(self, DataObject data) -> bool - - Set the clipboard data, this is the same as Clear followed by AddData. - """ - return _misc.Clipboard_SetData(*args, **kwargs) - - def IsSupported(*args, **kwargs): - """ - IsSupported(self, DataFormat format) -> bool - - Returns True if the given format is available in the data object(s) on - the clipboard. - """ - return _misc.Clipboard_IsSupported(*args, **kwargs) - - def GetData(*args, **kwargs): - """ - GetData(self, DataObject data) -> bool - - Call this function to fill data with data on the clipboard, if available - in the required format. Returns true on success. - """ - return _misc.Clipboard_GetData(*args, **kwargs) - - def Clear(*args, **kwargs): - """ - Clear(self) - - Clears data from the clipboard object and also the system's clipboard - if possible. - """ - return _misc.Clipboard_Clear(*args, **kwargs) - - def Flush(*args, **kwargs): - """ - Flush(self) -> bool - - Flushes the clipboard: this means that the data which is currently on - clipboard will stay available even after the application exits (possibly - eating memory), otherwise the clipboard will be emptied on exit. - Returns False if the operation is unsuccesful for any reason. - """ - return _misc.Clipboard_Flush(*args, **kwargs) - - def UsePrimarySelection(*args, **kwargs): - """ - 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. - """ - return _misc.Clipboard_UsePrimarySelection(*args, **kwargs) - - -class ClipboardPtr(Clipboard): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Clipboard -_misc.Clipboard_swigregister(ClipboardPtr) - -class ClipboardLocker(object): - """ - A helpful class for opening the clipboard and automatically closing it when - the locker is destroyed. - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxClipboardLocker instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Clipboard clipboard=None) -> ClipboardLocker - - A helpful class for opening the clipboard and automatically closing it when - the locker is destroyed. - """ - newobj = _misc.new_ClipboardLocker(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_misc.delete_ClipboardLocker): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def __nonzero__(*args, **kwargs): - """ - __nonzero__(self) -> bool - - A ClipboardLocker instance evaluates to True if the clipboard was - successfully opened. - """ - return _misc.ClipboardLocker___nonzero__(*args, **kwargs) - - -class ClipboardLockerPtr(ClipboardLocker): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ClipboardLocker -_misc.ClipboardLocker_swigregister(ClipboardLockerPtr) -TheClipboard = cvar.TheClipboard - -#--------------------------------------------------------------------------- - -class VideoMode(object): - """A simple struct containing video mode parameters for a display""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxVideoMode instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, int width=0, int height=0, int depth=0, int freq=0) -> VideoMode - - A simple struct containing video mode parameters for a display - """ - newobj = _misc.new_VideoMode(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_misc.delete_VideoMode): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Matches(*args, **kwargs): - """ - Matches(self, VideoMode other) -> bool - - Returns true if this mode matches the other one in the sense that - all non zero fields of the other mode have the same value in this - one (except for refresh which is allowed to have a greater value) - """ - return _misc.VideoMode_Matches(*args, **kwargs) - - def GetWidth(*args, **kwargs): - """ - GetWidth(self) -> int - - Returns the screen width in pixels (e.g. 640*480), 0 means - unspecified - """ - return _misc.VideoMode_GetWidth(*args, **kwargs) - - def GetHeight(*args, **kwargs): - """ - GetHeight(self) -> int - - Returns the screen width in pixels (e.g. 640*480), 0 means - unspecified - """ - return _misc.VideoMode_GetHeight(*args, **kwargs) - - def GetDepth(*args, **kwargs): - """ - GetDepth(self) -> int - - Returns the screen's bits per pixel (e.g. 32), 1 is monochrome - and 0 means unspecified/known - """ - return _misc.VideoMode_GetDepth(*args, **kwargs) - - def IsOk(*args, **kwargs): - """ - IsOk(self) -> bool - - returns true if the object has been initialized - """ - return _misc.VideoMode_IsOk(*args, **kwargs) - - def __nonzero__(self): return self.IsOk() - def __eq__(*args, **kwargs): - """__eq__(self, VideoMode other) -> bool""" - return _misc.VideoMode___eq__(*args, **kwargs) - - def __ne__(*args, **kwargs): - """__ne__(self, VideoMode other) -> bool""" - return _misc.VideoMode___ne__(*args, **kwargs) - - w = property(_misc.VideoMode_w_get, _misc.VideoMode_w_set) - h = property(_misc.VideoMode_h_get, _misc.VideoMode_h_set) - bpp = property(_misc.VideoMode_bpp_get, _misc.VideoMode_bpp_set) - refresh = property(_misc.VideoMode_refresh_get, _misc.VideoMode_refresh_set) - -class VideoModePtr(VideoMode): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = VideoMode -_misc.VideoMode_swigregister(VideoModePtr) - -class Display(object): - """Represents a display/monitor attached to the system""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxDisplay instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, size_t index=0) -> Display - - Set up a Display instance with the specified display. The - displays are numbered from 0 to GetCount() - 1, 0 is always the - primary display and the only one which is always supported - """ - newobj = _misc.new_Display(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_misc.delete_Display): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def GetCount(*args, **kwargs): - """ - Display.GetCount() -> size_t - - Return the number of available displays. - """ - return _misc.Display_GetCount(*args, **kwargs) - - GetCount = staticmethod(GetCount) - def GetFromPoint(*args, **kwargs): - """ - Display.GetFromPoint(Point pt) -> int - - Find the display where the given point lies, return wx.NOT_FOUND - if it doesn't belong to any display - """ - return _misc.Display_GetFromPoint(*args, **kwargs) - - GetFromPoint = staticmethod(GetFromPoint) - def GetFromWindow(*args, **kwargs): - """ - Display.GetFromWindow(Window window) -> int - - Find the display where the given window lies, return wx.NOT_FOUND - if it is not shown at all. - """ - return _misc.Display_GetFromWindow(*args, **kwargs) - - GetFromWindow = staticmethod(GetFromWindow) - def IsOk(*args, **kwargs): - """ - IsOk(self) -> bool - - Return true if the object was initialized successfully - """ - return _misc.Display_IsOk(*args, **kwargs) - - def __nonzero__(self): return self.IsOk() - def GetGeometry(*args, **kwargs): - """ - GetGeometry(self) -> Rect - - Returns the bounding rectangle of the display whose index was - passed to the constructor. - """ - return _misc.Display_GetGeometry(*args, **kwargs) - - def GetName(*args, **kwargs): - """ - GetName(self) -> String - - Returns the display's name. A name is not available on all platforms. - """ - return _misc.Display_GetName(*args, **kwargs) - - def IsPrimary(*args, **kwargs): - """ - IsPrimary(self) -> bool - - Returns true if the display is the primary display. The primary - display is the one whose index is 0. - """ - return _misc.Display_IsPrimary(*args, **kwargs) - - def GetModes(*args, **kwargs): - """ - GetModes(VideoMode mode=DefaultVideoMode) -> [videoMode...] - - Enumerate all video modes supported by this display matching the - given one (in the sense of VideoMode.Match()). - - As any mode matches the default value of the argument and there - is always at least one video mode supported by display, the - returned array is only empty for the default value of the - argument if this function is not supported at all on this - platform. - """ - return _misc.Display_GetModes(*args, **kwargs) - - def GetCurrentMode(*args, **kwargs): - """ - GetCurrentMode(self) -> VideoMode - - Get the current video mode. - """ - return _misc.Display_GetCurrentMode(*args, **kwargs) - - def ChangeMode(*args, **kwargs): - """ - ChangeMode(self, VideoMode mode=DefaultVideoMode) -> bool - - Change current mode, return true if succeeded, false otherwise - """ - return _misc.Display_ChangeMode(*args, **kwargs) - - def ResetMode(*args, **kwargs): - """ - ResetMode(self) - - Restore the default video mode (just a more readable synonym) - """ - return _misc.Display_ResetMode(*args, **kwargs) - - -class DisplayPtr(Display): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Display -_misc.Display_swigregister(DisplayPtr) -DefaultVideoMode = cvar.DefaultVideoMode - -def Display_GetCount(*args, **kwargs): - """ - Display_GetCount() -> size_t - - Return the number of available displays. - """ - return _misc.Display_GetCount(*args, **kwargs) - -def Display_GetFromPoint(*args, **kwargs): - """ - Display_GetFromPoint(Point pt) -> int - - Find the display where the given point lies, return wx.NOT_FOUND - if it doesn't belong to any display - """ - return _misc.Display_GetFromPoint(*args, **kwargs) - -def Display_GetFromWindow(*args, **kwargs): - """ - Display_GetFromWindow(Window window) -> int - - Find the display where the given window lies, return wx.NOT_FOUND - if it is not shown at all. - """ - return _misc.Display_GetFromWindow(*args, **kwargs) - - diff --git a/wxPython/src/mac/misc_wrap.cpp b/wxPython/src/mac/misc_wrap.cpp deleted file mode 100644 index 223542fe90..0000000000 --- a/wxPython/src/mac/misc_wrap.cpp +++ /dev/null @@ -1,30028 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.22 - * - * This file is not intended to be easily readable and contains a number of - * coding conventions designed to improve portability and efficiency. Do not make - * changes to this file unless you know what you are doing--modify the SWIG - * interface file instead. - * ----------------------------------------------------------------------------- */ - -#define SWIGPYTHON -#define SWIG_NOINCLUDE - -#ifdef __cplusplus -template class SwigValueWrapper { - T *tt; -public: - SwigValueWrapper() : tt(0) { } - SwigValueWrapper(const SwigValueWrapper& rhs) : tt(new T(*rhs.tt)) { } - SwigValueWrapper(const T& t) : tt(new T(t)) { } - ~SwigValueWrapper() { delete tt; } - SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } - operator T&() const { return *tt; } - T *operator&() { return tt; } -private: - SwigValueWrapper& operator=(const SwigValueWrapper& rhs); -}; -#endif - - -#include "Python.h" - -/*************************************************************** -*- c -*- - * python/precommon.swg - * - * Rename all exported symbols from common.swg, to avoid symbol - * clashes if multiple interpreters are included - * - ************************************************************************/ - -#define SWIG_TypeRegister SWIG_Python_TypeRegister -#define SWIG_TypeCheck SWIG_Python_TypeCheck -#define SWIG_TypeCast SWIG_Python_TypeCast -#define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast -#define SWIG_TypeName SWIG_Python_TypeName -#define SWIG_TypeQuery SWIG_Python_TypeQuery -#define SWIG_TypeClientData SWIG_Python_TypeClientData -#define SWIG_PackData SWIG_Python_PackData -#define SWIG_UnpackData SWIG_Python_UnpackData - - -/*********************************************************************** - * common.swg for wxPython - * - * Include only the function prototypes and such from SWIG's common.swg, - * but not the runtime functions themselves. This helps keep the - * wrapper files clean of unnecessary stuff that is in the libpy.c file - * anyway. - * - ************************************************************************/ - -#include - -#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) -# if defined(_MSC_VER) || defined(__GNUC__) -# if defined(STATIC_LINKED) -# define SWIGEXPORT(a) a -# define SWIGIMPORT(a) extern a -# else -# define SWIGEXPORT(a) __declspec(dllexport) a -# define SWIGIMPORT(a) extern a -# endif -# else -# if defined(__BORLANDC__) -# define SWIGEXPORT(a) a _export -# define SWIGIMPORT(a) a _export -# else -# define SWIGEXPORT(a) a -# define SWIGIMPORT(a) a -# endif -# endif -#else -# define SWIGEXPORT(a) a -# define SWIGIMPORT(a) a -#endif - -#ifdef SWIG_GLOBAL -# define SWIGRUNTIME(a) SWIGEXPORT(a) -#else -# define SWIGRUNTIME(a) static a -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -typedef void *(*swig_converter_func)(void *); -typedef struct swig_type_info *(*swig_dycast_func)(void **); - -typedef struct swig_type_info { - const char *name; - swig_converter_func converter; - const char *str; - void *clientdata; - swig_dycast_func dcast; - struct swig_type_info *next; - struct swig_type_info *prev; -} swig_type_info; - - -SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); -SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); -SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); -SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); -SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); -SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); -SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); -SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); -SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); - - -#ifdef __cplusplus -} -#endif - -/*********************************************************************** - * pyrun.swg for wxPython - * - * Include only the function prototypes and such from SWIG's pyrun.swg, - * but not the runtime functions themselves. This helps keep the - * wrapper files clean of unnecessary stuff that is in the libpy.c file - * anyway. - * - ************************************************************************/ - -#include "Python.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define SWIG_PY_INT 1 -#define SWIG_PY_FLOAT 2 -#define SWIG_PY_STRING 3 -#define SWIG_PY_POINTER 4 -#define SWIG_PY_BINARY 5 - -/* Flags for pointer conversion */ - -#define SWIG_POINTER_EXCEPTION 0x1 -#define SWIG_POINTER_DISOWN 0x2 - -/* Exception handling in wrappers */ -#define SWIG_fail goto fail - -/* Constant information structure */ -typedef struct swig_const_info { - int type; - char *name; - long lvalue; - double dvalue; - void *pvalue; - swig_type_info **ptype; -} swig_const_info; - -/* Common SWIG API */ -#define SWIG_ConvertPtr(obj, pp, type, flags) \ - SWIG_Python_ConvertPtr(obj, pp, type, flags) -#define SWIG_NewPointerObj(p, type, flags) \ - SWIG_Python_NewPointerObj(p, type, flags) -#define SWIG_MustGetPtr(p, type, argnum, flags) \ - SWIG_Python_MustGetPtr(p, type, argnum, flags) - -/* Python-specific SWIG API */ -#define SWIG_newvarlink() \ - SWIG_Python_newvarlink() -#define SWIG_addvarlink(p, name, get_attr, set_attr) \ - SWIG_Python_addvarlink(p, name, get_attr, set_attr) -#define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ - SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) -#define SWIG_NewPackedObj(ptr, sz, type) \ - SWIG_Python_NewPackedObj(ptr, sz, type) -#define SWIG_InstallConstants(d, constants) \ - SWIG_Python_InstallConstants(d, constants) - -typedef double (*py_objasdbl_conv)(PyObject *obj); - -SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); -SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); -SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); -SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); -SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); -SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); -SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); -SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); - - -/* Contract support */ - -#define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else - -#ifdef __cplusplus -} -#endif - - -/* -------- TYPES TABLE (BEGIN) -------- */ - -#define SWIGTYPE_p_wxLogChain swig_types[0] -#define SWIGTYPE_p_wxMutexGuiLocker swig_types[1] -#define SWIGTYPE_p_wxMetafile swig_types[2] -#define SWIGTYPE_p_wxFileHistory swig_types[3] -#define SWIGTYPE_p_wxLog swig_types[4] -#define SWIGTYPE_p_wxDateTime__TimeZone swig_types[5] -#define SWIGTYPE_p_wxMenu swig_types[6] -#define SWIGTYPE_p_wxEvent swig_types[7] -#define SWIGTYPE_p_wxConfigBase swig_types[8] -#define SWIGTYPE_p_wxDisplay swig_types[9] -#define SWIGTYPE_p_wxFileType swig_types[10] -#define SWIGTYPE_p_wxLogGui swig_types[11] -#define SWIGTYPE_p_wxFont swig_types[12] -#define SWIGTYPE_p_wxDataFormat swig_types[13] -#define SWIGTYPE_p_wxTimerEvent swig_types[14] -#define SWIGTYPE_p_wxCaret swig_types[15] -#define SWIGTYPE_p_int swig_types[16] -#define SWIGTYPE_p_wxSize swig_types[17] -#define SWIGTYPE_p_wxClipboard swig_types[18] -#define SWIGTYPE_p_wxStopWatch swig_types[19] -#define SWIGTYPE_p_wxDC swig_types[20] -#define SWIGTYPE_p_wxClipboardLocker swig_types[21] -#define SWIGTYPE_p_wxIcon swig_types[22] -#define SWIGTYPE_p_wxLogStderr swig_types[23] -#define SWIGTYPE_p_wxLogTextCtrl swig_types[24] -#define SWIGTYPE_p_wxTextCtrl swig_types[25] -#define SWIGTYPE_p_wxBusyCursor swig_types[26] -#define SWIGTYPE_p_wxPyTextDataObject swig_types[27] -#define SWIGTYPE_p_wxBitmapDataObject swig_types[28] -#define SWIGTYPE_p_wxTextDataObject swig_types[29] -#define SWIGTYPE_p_wxDataObject swig_types[30] -#define SWIGTYPE_p_wxPyBitmapDataObject swig_types[31] -#define SWIGTYPE_p_wxFileDataObject swig_types[32] -#define SWIGTYPE_p_wxCustomDataObject swig_types[33] -#define SWIGTYPE_p_wxURLDataObject swig_types[34] -#define SWIGTYPE_p_wxMetafileDataObject swig_types[35] -#define SWIGTYPE_p_wxSound swig_types[36] -#define SWIGTYPE_p_wxTimerRunner swig_types[37] -#define SWIGTYPE_p_wxLogWindow swig_types[38] -#define SWIGTYPE_p_wxTimeSpan swig_types[39] -#define SWIGTYPE_p_wxArrayString swig_types[40] -#define SWIGTYPE_p_wxWindowDisabler swig_types[41] -#define SWIGTYPE_p_wxToolTip swig_types[42] -#define SWIGTYPE_p_wxDataObjectComposite swig_types[43] -#define SWIGTYPE_p_wxFileConfig swig_types[44] -#define SWIGTYPE_p_wxSystemSettings swig_types[45] -#define SWIGTYPE_p_wxVideoMode swig_types[46] -#define SWIGTYPE_p_wxPyDataObjectSimple swig_types[47] -#define SWIGTYPE_p_wxDataObjectSimple swig_types[48] -#define SWIGTYPE_p_wxEvtHandler swig_types[49] -#define SWIGTYPE_p_wxRect swig_types[50] -#define SWIGTYPE_p_char swig_types[51] -#define SWIGTYPE_p_wxSingleInstanceChecker swig_types[52] -#define SWIGTYPE_p_wxFileTypeInfo swig_types[53] -#define SWIGTYPE_p_wxFrame swig_types[54] -#define SWIGTYPE_p_wxTimer swig_types[55] -#define SWIGTYPE_p_wxMimeTypesManager swig_types[56] -#define SWIGTYPE_p_wxPyArtProvider swig_types[57] -#define SWIGTYPE_p_wxPyTipProvider swig_types[58] -#define SWIGTYPE_p_wxTipProvider swig_types[59] -#define SWIGTYPE_p_wxJoystick swig_types[60] -#define SWIGTYPE_p_wxSystemOptions swig_types[61] -#define SWIGTYPE_p_wxPoint swig_types[62] -#define SWIGTYPE_p_wxJoystickEvent swig_types[63] -#define SWIGTYPE_p_wxCursor swig_types[64] -#define SWIGTYPE_p_wxObject swig_types[65] -#define SWIGTYPE_p_wxOutputStream swig_types[66] -#define SWIGTYPE_p_wxDateTime swig_types[67] -#define SWIGTYPE_p_wxPyDropSource swig_types[68] -#define SWIGTYPE_p_wxWindow swig_types[69] -#define SWIGTYPE_p_wxString swig_types[70] -#define SWIGTYPE_p_wxPyProcess swig_types[71] -#define SWIGTYPE_p_wxBitmap swig_types[72] -#define SWIGTYPE_p_wxConfig swig_types[73] -#define SWIGTYPE_p_wxChar swig_types[74] -#define SWIGTYPE_p_wxBusyInfo swig_types[75] -#define SWIGTYPE_p_wxPyDropTarget swig_types[76] -#define SWIGTYPE_p_wxPyTextDropTarget swig_types[77] -#define SWIGTYPE_p_wxPyFileDropTarget swig_types[78] -#define SWIGTYPE_p_wxProcessEvent swig_types[79] -#define SWIGTYPE_p_wxPyLog swig_types[80] -#define SWIGTYPE_p_wxLogNull swig_types[81] -#define SWIGTYPE_p_wxColour swig_types[82] -#define SWIGTYPE_p_wxByte swig_types[83] -#define SWIGTYPE_p_wxConfigPathChanger swig_types[84] -#define SWIGTYPE_p_wxPyTimer swig_types[85] -#define SWIGTYPE_p_wxDateSpan swig_types[86] -static swig_type_info *swig_types[88]; - -/* -------- TYPES TABLE (END) -------- */ - - -/*----------------------------------------------- - @(target):= _misc.so - ------------------------------------------------*/ -#define SWIG_init init_misc - -#define SWIG_name "_misc" - -/* Auxiliar swig macros */ - -#ifdef __cplusplus -#define SWIGSTATICINLINE(a) static inline a -#define SWIGSTATIC(a) static a -#define swig_new_array(type, size) (new type[(size)]) -#define swig_delete_array(cptr) delete[] cptr -#define swig_const_cast(type,a) const_cast(a) -#define swig_static_cast(type,a) static_cast(a) -#define swig_reinterpret_cast(type,a) reinterpret_cast(a) - -#ifdef HAVE_NUMERIC_CAST -#define swig_numeric_cast(type,a) numeric_cast(a) -#else -#define swig_numeric_cast(type,a) static_cast(a) -#endif - -#else /* C case */ - -#define SWIGSTATICINLINE(a) static a -#define SWIGSTATIC(a) static a -#define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type))) -#define swig_delete_array(cptr) free((char*)cptr) -#define swig_const_cast(type,a) (type)(a) -#define swig_static_cast(type,a) (type)(a) -#define swig_reinterpret_cast(type,a) (type)(a) -#define swig_numeric_cast(type,a) (type)(a) - -#endif /* __cplusplus */ - - -#define SWIG_FromSignedChar PyInt_FromLong -#define SWIG_FromUnsignedChar PyInt_FromLong -#define SWIG_FromShort PyInt_FromLong -#define SWIG_FromUnsignedShort PyInt_FromLong -#define SWIG_FromInt PyInt_FromLong -#define SWIG_FromLong PyInt_FromLong -#define SWIG_FromFloat PyFloat_FromDouble -#define SWIG_FromDouble PyFloat_FromDouble -#define SWIG_FromFloat PyFloat_FromDouble -#define SWIG_FromDouble PyFloat_FromDouble - - -#include "wx/wxPython/wxPython.h" -#include "wx/wxPython/pyclasses.h" -#include "wx/wxPython/pyistream.h" - - - static const wxString wxPyEmptyString(wxEmptyString); - - - -#include - - -SWIGSTATICINLINE(long) -SWIG_CheckLongInRange(long value, const char* type, - long min_value, long max_value) -{ - if (!PyErr_Occurred()) { - if (value < min_value) { - PyObject *err = - PyString_FromFormat("value %ld is less than '%s' minimum %ld", - value, type, min_value); - - PyErr_SetObject(PyExc_OverflowError, err); - Py_DECREF(err); - } else if (value > max_value) { - PyObject *err = - PyString_FromFormat("value %ld is greater than '%s' maximum %ld", - value, type, max_value); - PyErr_SetObject(PyExc_OverflowError, err); - Py_DECREF(err); - } - } - return value; -} - - -SWIGSTATICINLINE(long) -SWIG_AsLong(PyObject * obj) -{ - if (PyNumber_Check(obj)) - return PyInt_AsLong(obj); - else { - PyObject* errmsg = PyString_FromFormat("Expected number, got %s", - obj->ob_type->tp_name); - PyErr_SetObject(PyExc_TypeError, errmsg); - Py_DECREF(errmsg); - return 0; - } -} - - -#if INT_MAX != LONG_MAX -SWIGSTATICINLINE(int) -SWIG_AsInt(PyObject *obj) -{ - return swig_numeric_cast(int, - SWIG_CheckLongInRange(SWIG_AsLong(obj), - "int", INT_MIN, INT_MAX)); -} -#else -#define SWIG_AsInt SWIG_AsLong -#endif - - -SWIGSTATICINLINE(int) -SWIG_CheckInt(PyObject* obj) -{ - SWIG_AsInt(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - - static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr); - static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr); - static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr); - -SWIGSTATICINLINE(int) -SWIG_CheckLong(PyObject* obj) -{ - SWIG_AsLong(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - - -SWIGSTATICINLINE(bool) -SWIG_AsBool(PyObject *obj) -{ - return PyObject_IsTrue(obj) ? true : false; -} - - -SWIGSTATICINLINE(int) -SWIG_CheckBool(PyObject* obj) -{ - SWIG_AsBool(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - - -static PyObject* t_output_helper(PyObject* target, PyObject* o) { - PyObject* o2; - PyObject* o3; - - if (!target) { - target = o; - } else if (target == Py_None) { - Py_DECREF(Py_None); - target = o; - } else { - if (!PyTuple_Check(target)) { - o2 = target; - target = PyTuple_New(1); - PyTuple_SetItem(target, 0, o2); - } - o3 = PyTuple_New(1); - PyTuple_SetItem(o3, 0, o); - - o2 = target; - target = PySequence_Concat(o2, o3); - Py_DECREF(o2); - Py_DECREF(o3); - } - return target; -} - - -SWIGSTATICINLINE(unsigned long) -SWIG_AsUnsignedLong(PyObject * obj) -{ - if (PyLong_Check(obj)) { - return PyLong_AsUnsignedLong(obj); - } else { - long i = SWIG_AsLong(obj); - if ( !PyErr_Occurred() && (i < 0)) { - PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); - } - return i; - } -} - - -SWIGSTATICINLINE(int) -SWIG_CheckUnsignedLong(PyObject* obj) -{ - SWIG_AsUnsignedLong(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - - -SWIGSTATICINLINE(PyObject* ) -SWIG_FromUnsignedLong(unsigned long value) -{ - return (value > LONG_MAX) ? - PyLong_FromUnsignedLong(value) - : PyInt_FromLong(swig_numeric_cast(long,value)); -} - - - bool wxThread_IsMain() { -#ifdef WXP_WITH_THREAD - return wxThread::IsMain(); -#else - return True; -#endif - } - - - int wxCaret_GetBlinkTime() { - return wxCaret::GetBlinkTime(); - } - - void wxCaret_SetBlinkTime(int milliseconds) { - wxCaret::SetBlinkTime(milliseconds); - } - - -#include - - -#ifdef __WXMSW__ -#include -#include -#endif - - - -void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method) -{ -#ifdef __WXMSW__ - - switch (method) - { - case 1: - // This one only partially works. Appears to be an undocumented - // "standard" convention that not all widgets adhear to. For - // example, for some widgets backgrounds or non-client areas may - // not be painted. - ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0); - break; - - case 2: - // This one works much better, except for on XP. On Win2k nearly - // all widgets and their children are captured correctly[**]. On - // XP with Themes activated most native widgets draw only - // partially, if at all. Without themes it works just like on - // Win2k. - // - // ** For example the radio buttons in a wxRadioBox are not its - // children by default, but you can capture it via the panel - // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp. - ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), - PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | - PRF_ERASEBKGND | PRF_OWNED ); - break; - - case 3: - // This one is only defined in the latest SDK and is only - // available on XP. MSDN says it is similar to sending WM_PRINT - // so I expect that it will work similar to the above. Since it - // is avaialble only on XP, it can't be compiled like this and - // will have to be loaded dynamically. - // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break; - - // fall through - - case 4: - // Use PrintWindow if available, or fallback to WM_PRINT - // otherwise. Unfortunately using PrintWindow is even worse than - // WM_PRINT. For most native widgets nothing is drawn to the dc - // at all, with or without Themes. - typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT); - static bool s_triedToLoad = False; - static PrintWindow_t pfnPrintWindow = NULL; - if ( !s_triedToLoad ) - { - - s_triedToLoad = True; - wxDynamicLibrary dllUser32(_T("user32.dll")); - if ( dllUser32.IsLoaded() ) - { - wxLogNull nolog; // Don't report errors here - pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow")); - } - } - if (pfnPrintWindow) - { - printf("Using PrintWindow\n"); - pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); - } - else - { - printf("Using WM_PRINT\n"); - ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), - PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED ); - } - } -#endif -} - - - -#include - - -class wxPyTipProvider : public wxTipProvider { -public: - wxPyTipProvider(size_t currentTip) - : wxTipProvider(currentTip) {} - - DEC_PYCALLBACK_STRING__pure(GetTip); - DEC_PYCALLBACK_STRING_STRING(PreprocessTip); - PYPRIVATE; -}; - -IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip); -IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip); - - -//IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify); - -void wxPyTimer::Notify() { - bool found; - bool blocked = wxPyBeginBlockThreads(); - if ((found = wxPyCBH_findCallback(m_myInst, "Notify"))) - wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); - wxPyEndBlockThreads(blocked); - if (! found) - wxTimer::Notify(); -} -void wxPyTimer::base_Notify() { - wxTimer::Notify(); -} - - - -SWIGSTATICINLINE(PyObject *) -SWIG_FromCharPtr(const char* cptr) -{ - size_t size = cptr ? strlen(cptr) : 0; - if (cptr) { - if (size > INT_MAX) { - return SWIG_NewPointerObj(swig_const_cast(char*,cptr), - SWIG_TypeQuery("char *"), 0); - } else { - return PyString_FromStringAndSize(cptr, swig_numeric_cast(int,size)); - } - } else { - Py_INCREF(Py_None); - return Py_None; - } -} - - -SWIGSTATICINLINE(unsigned long) -SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type, - unsigned long max_value) -{ - if (!PyErr_Occurred()) { - if (value > max_value) { - PyObject *err = - PyString_FromFormat("value %ld is greater than '%s' minimum %ld", - value, type, max_value); - PyErr_SetObject(PyExc_OverflowError, err); - Py_DECREF(err); - } - } - return value; -} - - -#if UINT_MAX != ULONG_MAX -SWIGSTATICINLINE(unsigned int) -SWIG_AsUnsignedInt(PyObject *obj) -{ - return swig_numeric_cast(unsigned int, - SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), - "unsigned int", UINT_MAX)); -} -#else -#define SWIG_AsUnsignedInt SWIG_AsUnsignedLong -#endif - - -SWIGSTATICINLINE(int) -SWIG_CheckUnsignedInt(PyObject* obj) -{ - SWIG_AsUnsignedInt(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - -wxString Log_TimeStamp(){ - wxString msg; - wxLog::TimeStamp(&msg); - return msg; - } -void wxLog_Destroy(wxLog *self){ delete self; } - -// A wxLog class that can be derived from in wxPython -class wxPyLog : public wxLog { -public: - wxPyLog() : wxLog() {} - - virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) { - bool found; - bool blocked = wxPyBeginBlockThreads(); - if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) { - PyObject* s = wx2PyString(szString); - wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t)); - Py_DECREF(s); - } - wxPyEndBlockThreads(blocked); - if (! found) - wxLog::DoLog(level, szString, t); - } - - virtual void DoLogString(const wxChar *szString, time_t t) { - bool found; - bool blocked = wxPyBeginBlockThreads(); - if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) { - PyObject* s = wx2PyString(szString); - wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t)); - Py_DECREF(s); - } - wxPyEndBlockThreads(blocked); - if (! found) - wxLog::DoLogString(szString, t); - } - - PYPRIVATE; -}; - - - - -IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate); - - -#include - - -#if !wxUSE_JOYSTICK && !defined(__WXMSW__) -// A C++ stub class for wxJoystick for platforms that don't have it. -class wxJoystick : public wxObject { -public: - wxJoystick(int joystick = wxJOYSTICK1) { - bool blocked = wxPyBeginBlockThreads(); - PyErr_SetString(PyExc_NotImplementedError, - "wxJoystick is not available on this platform."); - wxPyEndBlockThreads(blocked); - } - wxPoint GetPosition() { return wxPoint(-1,-1); } - int GetZPosition() { return -1; } - int GetButtonState() { return -1; } - int GetPOVPosition() { return -1; } - int GetPOVCTSPosition() { return -1; } - int GetRudderPosition() { return -1; } - int GetUPosition() { return -1; } - int GetVPosition() { return -1; } - int GetMovementThreshold() { return -1; } - void SetMovementThreshold(int threshold) {} - - bool IsOk(void) { return False; } - int GetNumberJoysticks() { return -1; } - int GetManufacturerId() { return -1; } - int GetProductId() { return -1; } - wxString GetProductName() { return ""; } - int GetXMin() { return -1; } - int GetYMin() { return -1; } - int GetZMin() { return -1; } - int GetXMax() { return -1; } - int GetYMax() { return -1; } - int GetZMax() { return -1; } - int GetNumberButtons() { return -1; } - int GetNumberAxes() { return -1; } - int GetMaxButtons() { return -1; } - int GetMaxAxes() { return -1; } - int GetPollingMin() { return -1; } - int GetPollingMax() { return -1; } - int GetRudderMin() { return -1; } - int GetRudderMax() { return -1; } - int GetUMin() { return -1; } - int GetUMax() { return -1; } - int GetVMin() { return -1; } - int GetVMax() { return -1; } - - bool HasRudder() { return False; } - bool HasZ() { return False; } - bool HasU() { return False; } - bool HasV() { return False; } - bool HasPOV() { return False; } - bool HasPOV4Dir() { return False; } - bool HasPOVCTS() { return False; } - - bool SetCapture(wxWindow* win, int pollingFreq = 0) { return False; } - bool ReleaseCapture() { return False; } -}; -#endif - - -#include - - -#if !wxUSE_SOUND -// A C++ stub class for wxWave for platforms that don't have it. -class wxSound : public wxObject -{ -public: - wxSound() { - bool blocked = wxPyBeginBlockThreads(); - PyErr_SetString(PyExc_NotImplementedError, - "wxSound is not available on this platform."); - wxPyEndBlockThreads(blocked); - } - wxSound(const wxString&, bool) { - bool blocked = wxPyBeginBlockThreads(); - PyErr_SetString(PyExc_NotImplementedError, - "wxSound is not available on this platform."); - wxPyEndBlockThreads(blocked); - } - wxSound(int, const wxByte*) { - bool blocked = wxPyBeginBlockThreads(); - PyErr_SetString(PyExc_NotImplementedError, - "wxSound is not available on this platform."); - wxPyEndBlockThreads(blocked); - } - - ~wxSound() {}; - - bool Create(const wxString&, bool) { return false; } - bool Create(int, const wxByte*) { return false; }; - bool IsOk() { return false; }; - bool Play(unsigned) const { return false; } - static bool Play(const wxString&, unsigned) { return false; } - static void Stop() {} -}; - -#endif - -bool wxSound_Create__SWIG_1(wxSound *self,int size,wxByte const *data){ - bool blocked = wxPyBeginBlockThreads(); - PyErr_SetString(PyExc_NotImplementedError, - "Create from data is not available on this platform."); - wxPyEndBlockThreads(blocked); - return False; - } -void Sound_Stop(){ wxPyRaiseNotImplemented(); } - -#include - -PyObject *wxFileType_GetMimeType(wxFileType *self){ - wxString str; - if (self->GetMimeType(&str)) - return wx2PyString(str); - else - RETURN_NONE(); - } -PyObject *wxFileType_GetMimeTypes(wxFileType *self){ - wxArrayString arr; - if (self->GetMimeTypes(arr)) - return wxArrayString2PyList_helper(arr); - else - RETURN_NONE(); - } -PyObject *wxFileType_GetExtensions(wxFileType *self){ - wxArrayString arr; - if (self->GetExtensions(arr)) - return wxArrayString2PyList_helper(arr); - else - RETURN_NONE(); - } -wxIcon *wxFileType_GetIcon(wxFileType *self){ - wxIconLocation loc; - if (self->GetIcon(&loc)) - return new wxIcon(loc); - else - return NULL; - } -PyObject *wxFileType_GetIconInfo(wxFileType *self){ - wxIconLocation loc; - if (self->GetIcon(&loc)) { - wxString iconFile = loc.GetFileName(); - int iconIndex = -1; - - - - // Make a tuple and put the values in it - bool blocked = wxPyBeginBlockThreads(); - PyObject* tuple = PyTuple_New(3); - PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc), - wxT("wxIcon"), True)); - PyTuple_SetItem(tuple, 1, wx2PyString(iconFile)); - PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex)); - wxPyEndBlockThreads(blocked); - return tuple; - } - else - RETURN_NONE(); - } -PyObject *wxFileType_GetDescription(wxFileType *self){ - wxString str; - if (self->GetDescription(&str)) - return wx2PyString(str); - else - RETURN_NONE(); - } -PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ - wxString str; - if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype))) - return wx2PyString(str); - else - RETURN_NONE(); - } -PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ - wxString str; - if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype))) - return wx2PyString(str); - else - RETURN_NONE(); - } -PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){ - wxArrayString verbs; - wxArrayString commands; - if (self->GetAllCommands(&verbs, &commands, - wxFileType::MessageParameters(filename, mimetype))) { - bool blocked = wxPyBeginBlockThreads(); - PyObject* tuple = PyTuple_New(2); - PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs)); - PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands)); - wxPyEndBlockThreads(blocked); - return tuple; - } - else - RETURN_NONE(); - } -wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){ - return wxFileType::ExpandCommand(command, - wxFileType::MessageParameters(filename, mimetype)); - } -PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){ - wxArrayString arr; - self->EnumAllFileTypes(arr); - return wxArrayString2PyList_helper(arr); - } - -#include - - static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR); - static const wxString wxPyART_MENU(wxART_MENU); - static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON); - static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG); - static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER); - static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX); - static const wxString wxPyART_OTHER(wxART_OTHER); - static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK); - static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK); - static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL); - static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS); - static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK); - static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER); - static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE); - static const wxString wxPyART_GO_BACK(wxART_GO_BACK); - static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD); - static const wxString wxPyART_GO_UP(wxART_GO_UP); - static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN); - static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT); - static const wxString wxPyART_GO_HOME(wxART_GO_HOME); - static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN); - static const wxString wxPyART_PRINT(wxART_PRINT); - static const wxString wxPyART_HELP(wxART_HELP); - static const wxString wxPyART_TIP(wxART_TIP); - static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW); - static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW); - static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR); - static const wxString wxPyART_FOLDER(wxART_FOLDER); - static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP); - static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE); - static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE); - static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK); - static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK); - static const wxString wxPyART_ERROR(wxART_ERROR); - static const wxString wxPyART_QUESTION(wxART_QUESTION); - static const wxString wxPyART_WARNING(wxART_WARNING); - static const wxString wxPyART_INFORMATION(wxART_INFORMATION); - static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE); - // Python aware wxArtProvider -class wxPyArtProvider : public wxArtProvider { -public: - - virtual wxBitmap CreateBitmap(const wxArtID& id, - const wxArtClient& client, - const wxSize& size) { - wxBitmap rval = wxNullBitmap; - bool blocked = wxPyBeginBlockThreads(); - if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) { - PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0); - PyObject* ro; - wxBitmap* ptr; - PyObject* s1, *s2; - s1 = wx2PyString(id); - s2 = wx2PyString(client); - ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so)); - Py_DECREF(so); - Py_DECREF(s1); - Py_DECREF(s2); - if (ro) { - if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap"))) - rval = *ptr; - Py_DECREF(ro); - } - } - wxPyEndBlockThreads(blocked); - return rval; - } - - PYPRIVATE; -}; - -void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; } - - - - static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) { - PyObject* ret = PyTuple_New(3); - if (ret) { - PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag)); - PyTuple_SET_ITEM(ret, 1, wx2PyString(str)); - PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index)); - } - return ret; - } - -PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){ - bool cont; - long index = 0; - wxString value; - - cont = self->GetFirstGroup(value, index); - return __EnumerationHelper(cont, value, index); - } -PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){ - bool cont; - wxString value; - - cont = self->GetNextGroup(value, index); - return __EnumerationHelper(cont, value, index); - } -PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){ - bool cont; - long index = 0; - wxString value; - - cont = self->GetFirstEntry(value, index); - return __EnumerationHelper(cont, value, index); - } -PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){ - bool cont; - wxString value; - - cont = self->GetNextEntry(value, index); - return __EnumerationHelper(cont, value, index); - } -long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){ - long rv; - self->Read(key, &rv, defaultVal); - return rv; - } - -SWIGSTATICINLINE(double) -SWIG_AsDouble(PyObject *obj) -{ - if (PyNumber_Check(obj)) - return PyFloat_AsDouble(obj); - else { - PyObject* errmsg = PyString_FromFormat("Expected number, got %s", - obj->ob_type->tp_name); - PyErr_SetObject(PyExc_TypeError, errmsg); - Py_DECREF(errmsg); - return 0; - } -} - - -SWIGSTATICINLINE(int) -SWIG_CheckDouble(PyObject* obj) -{ - SWIG_AsDouble(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - -double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){ - double rv; - self->Read(key, &rv, defaultVal); - return rv; - } -bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){ - bool rv; - self->Read(key, &rv, defaultVal); - return rv; - } - -#include - - - static const wxString wxPyDateFormatStr(wxT("%c")); - static const wxString wxPyTimeSpanFormatStr(wxT("%H:%M:%S")); - -#define LOCAL_TZ wxDateTime::Local - - -#if UINT_MAX < LONG_MAX -#define SWIG_FromUnsignedInt SWIG_FromLong -#else -#define SWIG_FromUnsignedInt SWIG_FromUnsignedLong -#endif - -wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; } -wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; } -wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; } -wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; } -wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; } -bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){ - if (!other || !self->IsValid() || !other->IsValid()) return self < other; - return (*self < *other); - } -bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){ - if (!other || !self->IsValid() || !other->IsValid()) return self <= other; - return (*self <= *other); - } -bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){ - if (!other || !self->IsValid() || !other->IsValid()) return self > other; - return (*self > *other); - } -bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){ - if (!other || !self->IsValid() || !other->IsValid()) return self >= other; - return (*self >= *other); - } -bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){ - if (!other || !self->IsValid() || !other->IsValid()) return self == other; - return (*self == *other); - } -bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){ - if (!other || !self->IsValid() || !other->IsValid()) return self != other; - return (*self != *other); - } -int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){ - const wxChar* rv; - const wxChar* _date = date; - rv = self->ParseRfc822Date(_date); - if (rv == NULL) return -1; - return rv - _date; - } -int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){ - const wxChar* rv; - const wxChar* _date = date; - rv = self->ParseFormat(_date, format, dateDef); - if (rv == NULL) return -1; - return rv - _date; - } -int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){ - const wxChar* rv; - const wxChar* _datetime = datetime; - rv = self->ParseDateTime(_datetime); - if (rv == NULL) return -1; - return rv - _datetime; - } -int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){ - const wxChar* rv; - const wxChar* _date = date; - rv = self->ParseDate(_date); - if (rv == NULL) return -1; - return rv - _date; - } -int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){ - const wxChar* rv; - const wxChar* _time = time; - rv = self->ParseTime(_time); - if (rv == NULL) return -1; - return rv - _time; - } -wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; } -wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; } -wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; } -wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; } -bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : False; } -bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : False; } -bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : True; } -bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : True; } -bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : False; } -bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : True; } -wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; } -wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; } -wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; } -wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; } -bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : False; } -bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : True; } - -#include - - // Create a new class for wxPython to use -class wxPyDataObjectSimple : public wxDataObjectSimple { -public: - wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid) - : wxDataObjectSimple(format) {} - - DEC_PYCALLBACK_SIZET__const(GetDataSize); - bool GetDataHere(void *buf) const; - bool SetData(size_t len, const void *buf) const; - PYPRIVATE; -}; - -IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize); - -bool wxPyDataObjectSimple::GetDataHere(void *buf) const { - // We need to get the data for this object and write it to buf. I think - // the best way to do this for wxPython is to have the Python method - // return either a string or None and then act appropriately with the - // C++ version. - - bool rval = False; - bool blocked = wxPyBeginBlockThreads(); - if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) { - PyObject* ro; - ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); - if (ro) { - rval = (ro != Py_None && PyString_Check(ro)); - if (rval) - memcpy(buf, PyString_AsString(ro), PyString_Size(ro)); - Py_DECREF(ro); - } - } - wxPyEndBlockThreads(blocked); - return rval; -} - -bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{ - // For this one we simply need to make a string from buf and len - // and send it to the Python method. - bool rval = False; - bool blocked = wxPyBeginBlockThreads(); - if (wxPyCBH_findCallback(m_myInst, "SetData")) { - PyObject* data = PyString_FromStringAndSize((char*)buf, len); - rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data)); - Py_DECREF(data); - } - wxPyEndBlockThreads(blocked); - return rval; -} - - // Create a new class for wxPython to use -class wxPyTextDataObject : public wxTextDataObject { -public: - wxPyTextDataObject(const wxString& text = wxPyEmptyString) - : wxTextDataObject(text) {} - - DEC_PYCALLBACK_SIZET__const(GetTextLength); - DEC_PYCALLBACK_STRING__const(GetText); - DEC_PYCALLBACK__STRING(SetText); - PYPRIVATE; -}; - -IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength); -IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText); -IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText); - - - // Create a new class for wxPython to use -class wxPyBitmapDataObject : public wxBitmapDataObject { -public: - wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap) - : wxBitmapDataObject(bitmap) {} - - wxBitmap GetBitmap() const; - void SetBitmap(const wxBitmap& bitmap); - PYPRIVATE; -}; - -wxBitmap wxPyBitmapDataObject::GetBitmap() const { - wxBitmap* rval = &wxNullBitmap; - bool blocked = wxPyBeginBlockThreads(); - if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) { - PyObject* ro; - wxBitmap* ptr; - ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); - if (ro) { - if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap"))) - rval = ptr; - Py_DECREF(ro); - } - } - wxPyEndBlockThreads(blocked); - return *rval; -} - -void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) { - bool blocked = wxPyBeginBlockThreads(); - if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) { - PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), False); - wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo)); - Py_DECREF(bo); - } - wxPyEndBlockThreads(blocked); -} - -void wxCustomDataObject_TakeData(wxCustomDataObject *self,PyObject *data){ - if (PyString_Check(data)) { - // for Python we just call SetData here since we always need it to make a copy. - self->SetData(PyString_Size(data), PyString_AsString(data)); - } - else { - // raise a TypeError if not a string - PyErr_SetString(PyExc_TypeError, "String expected."); - } - } -bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){ - if (PyString_Check(data)) { - return self->SetData(PyString_Size(data), PyString_AsString(data)); - } - else { - // raise a TypeError if not a string - PyErr_SetString(PyExc_TypeError, "String expected."); - return False; - } - } -PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){ - return PyString_FromStringAndSize((char*)self->GetData(), self->GetSize()); - } - -#include - - -IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback); - - -IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave); -IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter); -IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver); -IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData); -IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop); - - -class wxPyTextDropTarget : public wxTextDropTarget { -public: - wxPyTextDropTarget() {} - - DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText); - - DEC_PYCALLBACK__(OnLeave); - DEC_PYCALLBACK_DR_2WXCDR(OnEnter); - DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); - DEC_PYCALLBACK_DR_2WXCDR(OnData); - DEC_PYCALLBACK_BOOL_INTINT(OnDrop); - - PYPRIVATE; -}; - -IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText); -IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave); -IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter); -IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver); -IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData); -IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop); - - - -class wxPyFileDropTarget : public wxFileDropTarget { -public: - wxPyFileDropTarget() {} - - virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames); - - DEC_PYCALLBACK__(OnLeave); - DEC_PYCALLBACK_DR_2WXCDR(OnEnter); - DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); - DEC_PYCALLBACK_DR_2WXCDR(OnData); - DEC_PYCALLBACK_BOOL_INTINT(OnDrop); - - PYPRIVATE; -}; - -bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y, - const wxArrayString& filenames) { - bool rval = False; - bool blocked = wxPyBeginBlockThreads(); - if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) { - PyObject* list = wxArrayString2PyList_helper(filenames); - rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list)); - Py_DECREF(list); - } - wxPyEndBlockThreads(blocked); - return rval; -} - - - -IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave); -IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter); -IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver); -IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData); -IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop); - - - - -bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); } - -#include "wx/display.h" - -bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : False; } -bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : True; } -int Display_GetFromWindow(wxWindow *window){ wxPyRaiseNotImplemented(); return wxNOT_FOUND; } -PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode){ - PyObject* pyList = NULL; - wxArrayVideoModes arr = self->GetModes(mode); - bool blocked = wxPyBeginBlockThreads(); - pyList = PyList_New(0); - for (int i=0; i < arr.GetCount(); i++) { - wxVideoMode* m = new wxVideoMode(arr.Item(i)); - PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true); - PyList_Append(pyList, pyObj); - } - wxPyEndBlockThreads(blocked); - return pyList; - } -#ifdef __cplusplus -extern "C" { -#endif -static PyObject *_wrap_SystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - wxColour result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "index", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail; - arg1 = (wxSystemColour) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxSystemSettings::GetColour((wxSystemColour )arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - wxFont result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "index", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail; - arg1 = (wxSystemFont) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxSystemSettings::GetFont((wxSystemFont )arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxFont * resultptr; - resultptr = new wxFont((wxFont &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "index", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetMetric",kwnames,&obj0)) goto fail; - arg1 = (wxSystemMetric) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "index", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail; - arg1 = (wxSystemFeature) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxSystemSettings::GetScreenType(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "screen", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail; - arg1 = (wxSystemScreenType) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxSystemSettings::SetScreenType((wxSystemScreenType )arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * SystemSettings_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_SystemOptions(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSystemOptions *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSystemOptions *)new wxSystemOptions(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SystemOptions_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString *arg2 = 0 ; - bool temp1 = False ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "name",(char *) "value", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - int arg2 ; - bool temp1 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "name",(char *) "value", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxSystemOptions::SetOption((wxString const &)*arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_SystemOptions_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxSystemOptions::GetOption((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; -} - - -static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - int result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_SystemOptions_HasOption(PyObject *self, 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_HasOption",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxSystemOptions::HasOption((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 *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_FileSelectorPromptStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only."); - return 1; -} - - -static PyObject *_wrap_FileSelectorPromptStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only."); - return 1; -} - - -static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_DirSelectorPromptStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only."); - return 1; -} - - -static PyObject *_wrap_DirSelectorPromptStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_NewId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - long result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)wxNewId(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RegisterId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - long arg1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail; - arg1 = (long) SWIG_AsLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxRegisterId(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GetCurrentId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - long result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)wxGetCurrentId(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Bell(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxBell(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_EndBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxEndBusyCursor(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GetElapsedTime(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - bool arg1 = (bool) True ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "resetTimer", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (bool) SWIG_AsBool(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)wxGetElapsedTime(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GetMousePosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int *arg1 = (int *) 0 ; - int *arg2 = (int *) 0 ; - int temp1 ; - int temp2 ; - char *kwnames[] = { - NULL - }; - - arg1 = &temp1; - arg2 = &temp2; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxGetMousePosition(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg1)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IsBusy(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - bool result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxIsBusy(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Now(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxNow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Shell(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString const &arg1_defvalue = wxPyEmptyString ; - wxString *arg1 = (wxString *) &arg1_defvalue ; - bool result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "command", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail; - if (obj0) { - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxShell((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 *_wrap_StartTimer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxStartTimer(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GetOsVersion(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int *arg1 = (int *) 0 ; - int *arg2 = (int *) 0 ; - int result; - int temp1 ; - int temp2 ; - char *kwnames[] = { - NULL - }; - - arg1 = &temp1; - arg2 = &temp2; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxGetOsVersion(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - PyObject *o = PyInt_FromLong((long) (*arg1)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GetOsDescription(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxGetOsDescription(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GetFreeMemory(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - long result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)wxGetFreeMemory(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Shutdown(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "wFlags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail; - arg1 = (wxShutdownFlags) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxShutdown((wxShutdownFlags )arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sleep(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "secs", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxSleep(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Usleep(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - unsigned long arg1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "milliseconds", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Usleep",kwnames,&obj0)) goto fail; - arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxUsleep(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_EnableTopLevelWindows(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - bool arg1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "enable", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail; - arg1 = (bool) SWIG_AsBool(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxEnableTopLevelWindows(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_StripMenuCodes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "in", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxStripMenuCodes((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; -} - - -static PyObject *_wrap_GetEmailAddress(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxGetEmailAddress(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GetHostName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxGetHostName(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GetFullHostName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxGetFullHostName(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GetUserId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxGetUserId(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GetUserName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxGetUserName(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GetHomeDir(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxGetHomeDir(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GetUserHome(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString const &arg1_defvalue = wxPyEmptyString ; - wxString *arg1 = (wxString *) &arg1_defvalue ; - wxString result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "user", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail; - if (obj0) { - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxGetUserHome((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; -} - - -static PyObject *_wrap_GetProcessId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - unsigned long result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (unsigned long)wxGetProcessId(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Trap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxTrap(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ; - wxString *arg1 = (wxString *) &arg1_defvalue ; - wxString const &arg2_defvalue = wxPyEmptyString ; - wxString *arg2 = (wxString *) &arg2_defvalue ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - wxString const &arg4_defvalue = wxPyEmptyString ; - wxString *arg4 = (wxString *) &arg4_defvalue ; - wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; - wxString *arg5 = (wxString *) &arg5_defvalue ; - int arg6 = (int) 0 ; - wxWindow *arg7 = (wxWindow *) NULL ; - int arg8 = (int) -1 ; - int arg9 = (int) -1 ; - wxString result; - bool temp1 = False ; - bool temp2 = False ; - bool temp3 = False ; - bool temp4 = False ; - bool temp5 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - char *kwnames[] = { - (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; - if (obj0) { - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - } - if (obj1) { - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - if (obj3) { - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - } - if (obj4) { - { - arg5 = wxString_in_helper(obj4); - if (arg5 == NULL) SWIG_fail; - temp5 = True; - } - } - if (obj5) { - arg6 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - if (obj7) { - arg8 = (int) SWIG_AsInt(obj7); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj8) { - arg9 = (int) SWIG_AsInt(obj8); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9); - - 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; - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - { - if (temp5) - delete arg5; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - { - if (temp5) - delete arg5; - } - return NULL; -} - - -static PyObject *_wrap_LoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString *arg2 = 0 ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - wxWindow *arg4 = (wxWindow *) NULL ; - wxString result; - bool temp1 = False ; - bool temp2 = False ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - if (obj3) { - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); - - 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; - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_SaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString *arg2 = 0 ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - wxWindow *arg4 = (wxWindow *) NULL ; - wxString result; - bool temp1 = False ; - bool temp2 = False ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - if (obj3) { - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); - - 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; - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_DirSelector(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ; - wxString *arg1 = (wxString *) &arg1_defvalue ; - wxString const &arg2_defvalue = wxPyEmptyString ; - wxString *arg2 = (wxString *) &arg2_defvalue ; - long arg3 = (long) wxDD_DEFAULT_STYLE ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxWindow *arg5 = (wxWindow *) NULL ; - wxString result; - bool temp1 = False ; - bool temp2 = False ; - wxPoint temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if (obj0) { - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - } - if (obj1) { - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - } - if (obj2) { - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5); - - 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; - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_GetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString const &arg2_defvalue = wxPyEmptyString ; - wxString *arg2 = (wxString *) &arg2_defvalue ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - wxWindow *arg4 = (wxWindow *) NULL ; - int arg5 = (int) -1 ; - int arg6 = (int) -1 ; - bool arg7 = (bool) True ; - wxString result; - bool temp1 = False ; - bool temp2 = False ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - if (obj1) { - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - if (obj3) { - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - arg6 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - arg7 = (bool) SWIG_AsBool(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7); - - 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; - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_GetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString const &arg2_defvalue = wxPyEmptyString ; - wxString *arg2 = (wxString *) &arg2_defvalue ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - wxWindow *arg4 = (wxWindow *) NULL ; - wxString result; - bool temp1 = False ; - bool temp2 = False ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - if (obj1) { - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - if (obj3) { - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); - - 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; - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_GetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString *arg2 = 0 ; - int arg3 ; - wxString *arg4 = (wxString *) 0 ; - wxWindow *arg5 = (wxWindow *) NULL ; - int arg6 = (int) -1 ; - int arg7 = (int) -1 ; - bool arg8 = (bool) True ; - int arg9 = (int) 150 ; - int arg10 = (int) 200 ; - wxString result; - bool temp1 = False ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - char *kwnames[] = { - (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - arg3 = PyList_Size(obj2); - arg4 = wxString_LIST_helper(obj2); - if (arg4 == NULL) SWIG_fail; - } - if (obj3) { - if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - if (obj4) { - arg6 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - arg7 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - arg8 = (bool) SWIG_AsBool(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - arg9 = (int) SWIG_AsInt(obj7); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj8) { - arg10 = (int) SWIG_AsInt(obj8); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); - - 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; - } - { - if (temp2) - delete arg2; - } - { - if (arg4) delete [] arg4; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - { - if (arg4) delete [] arg4; - } - return NULL; -} - - -static PyObject *_wrap_GetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString *arg2 = 0 ; - int arg3 ; - wxString *arg4 = (wxString *) 0 ; - wxWindow *arg5 = (wxWindow *) NULL ; - int arg6 = (int) -1 ; - int arg7 = (int) -1 ; - bool arg8 = (bool) True ; - int arg9 = (int) 150 ; - int arg10 = (int) 200 ; - int result; - bool temp1 = False ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - char *kwnames[] = { - (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - arg3 = PyList_Size(obj2); - arg4 = wxString_LIST_helper(obj2); - if (arg4 == NULL) SWIG_fail; - } - if (obj3) { - if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - if (obj4) { - arg6 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - arg7 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - arg8 = (bool) SWIG_AsBool(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - arg9 = (int) SWIG_AsInt(obj7); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj8) { - arg10 = (int) SWIG_AsInt(obj8); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - { - if (arg4) delete [] arg4; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - { - if (arg4) delete [] arg4; - } - return NULL; -} - - -static PyObject *_wrap_MessageBox(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString const &arg2_defvalue = wxPyEmptyString ; - wxString *arg2 = (wxString *) &arg2_defvalue ; - int arg3 = (int) wxOK|wxCENTRE ; - wxWindow *arg4 = (wxWindow *) NULL ; - int arg5 = (int) -1 ; - int arg6 = (int) -1 ; - int result; - bool temp1 = False ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - if (obj1) { - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - arg6 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_GetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString *arg2 = 0 ; - wxString *arg3 = 0 ; - long arg4 ; - long arg5 = (long) 0 ; - long arg6 = (long) 100 ; - wxWindow *arg7 = (wxWindow *) NULL ; - wxPoint const &arg8_defvalue = wxDefaultPosition ; - wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; - long result; - bool temp1 = False ; - bool temp2 = False ; - bool temp3 = False ; - wxPoint temp8 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - arg4 = (long) SWIG_AsLong(obj3); - if (PyErr_Occurred()) SWIG_fail; - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - if (obj7) { - { - arg8 = &temp8; - if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_ColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - bool result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxColourDisplay(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxDisplayDepth(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxGetDisplayDepth(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int *arg1 = (int *) 0 ; - int *arg2 = (int *) 0 ; - int temp1 ; - int temp2 ; - char *kwnames[] = { - NULL - }; - - arg1 = &temp1; - arg2 = &temp2; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxDisplaySize(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg1)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSize result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxGetDisplaySize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int *arg1 = (int *) 0 ; - int *arg2 = (int *) 0 ; - int temp1 ; - int temp2 ; - char *kwnames[] = { - NULL - }; - - arg1 = &temp1; - arg2 = &temp2; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxDisplaySizeMM(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg1)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSize result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxGetDisplaySizeMM(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int *arg1 = (int *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int *arg4 = (int *) 0 ; - int temp1 ; - int temp2 ; - int temp3 ; - int temp4 ; - char *kwnames[] = { - NULL - }; - - arg1 = &temp1; - arg2 = &temp2; - arg3 = &temp3; - arg4 = &temp4; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxClientDisplayRect(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg1)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg4)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxGetClientDisplayRect(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxRect * resultptr; - resultptr = new wxRect((wxRect &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCursor *arg1 = 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "cursor", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxSetCursor(*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "cursor", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail; - if (obj0) { - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxBeginBusyCursor(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)wxGetActiveWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint *arg1 = 0 ; - wxWindow *result; - wxPoint temp1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail; - { - arg1 = &temp1; - if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint *arg1 = 0 ; - wxWindow *result; - wxPoint temp1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail; - { - arg1 = &temp1; - if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "win", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)wxGetTopLevelParent(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GetKeyState(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "key", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail; - arg1 = (wxKeyCode) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxGetKeyState((wxKeyCode )arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_WakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxWakeUpMainThread(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxMutexGuiEnter(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxMutexGuiLeave(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMutexGuiLocker *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMutexGuiLocker *)new wxMutexGuiLocker(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMutexGuiLocker, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * MutexGuiLocker_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_Thread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - bool result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxThread_IsMain(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_ToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxToolTip *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "tip", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxToolTip *)new wxToolTip((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_ToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolTip *arg1 = (wxToolTip *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "tip", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetTip((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolTip *arg1 = (wxToolTip *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetTip(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolTip *arg1 = (wxToolTip *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)(arg1)->GetWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - bool arg1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail; - arg1 = (bool) SWIG_AsBool(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxToolTip::Enable(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - long arg1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "milliseconds", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail; - arg1 = (long) SWIG_AsLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxToolTip::SetDelay(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * ToolTip_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Caret(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxSize *arg2 = 0 ; - wxCaret *result; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "window",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_Caret(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCaret *arg1 = (wxCaret *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Caret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCaret *arg1 = (wxCaret *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->IsOk(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Caret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCaret *arg1 = (wxCaret *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->IsVisible(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Caret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCaret *arg1 = (wxCaret *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Caret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCaret *arg1 = (wxCaret *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->GetPosition(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Caret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCaret *arg1 = (wxCaret *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Caret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCaret *arg1 = (wxCaret *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->GetSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Caret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCaret *arg1 = (wxCaret *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)(arg1)->GetWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Caret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCaret *arg1 = (wxCaret *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Move(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Caret_Move(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCaret *arg1 = (wxCaret *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Move((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Caret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCaret *arg1 = (wxCaret *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Caret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCaret *arg1 = (wxCaret *) 0 ; - wxSize *arg2 = 0 ; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSize((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Caret_Show(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCaret *arg1 = (wxCaret *) 0 ; - int arg2 = (int) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "show", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Show(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Caret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCaret *arg1 = (wxCaret *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Hide(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * Caret_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_Caret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxCaret_GetBlinkTime(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Caret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "milliseconds", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxCaret_SetBlinkTime(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; - wxBusyCursor *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "cursor", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail; - if (obj0) { - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxBusyCursor *)new wxBusyCursor(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBusyCursor *arg1 = (wxBusyCursor *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyCursor, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * BusyCursor_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) NULL ; - wxWindowDisabler *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "winToSkip", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail; - if (obj0) { - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindowDisabler *)new wxWindowDisabler(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDisabler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * WindowDisabler_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxBusyInfo *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "message", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1); - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_delete_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBusyInfo *arg1 = (wxBusyInfo *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * BusyInfo_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_StopWatch(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStopWatch *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxStopWatch *)new wxStopWatch(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_StopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStopWatch *arg1 = (wxStopWatch *) 0 ; - long arg2 = (long) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "t0", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Start(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_StopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStopWatch *arg1 = (wxStopWatch *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Pause(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_StopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStopWatch *arg1 = (wxStopWatch *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Resume(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_StopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStopWatch *arg1 = (wxStopWatch *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxStopWatch const *)arg1)->Time(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * StopWatch_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 9 ; - wxFileHistory *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "maxFiles", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FileHistory",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFileHistory *)new wxFileHistory(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileHistory *arg1 = (wxFileHistory *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileHistory *arg1 = (wxFileHistory *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "file", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AddFileToHistory((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileHistory *arg1 = (wxFileHistory *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "i", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RemoveFileFromHistory(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileHistory *arg1 = (wxFileHistory *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxFileHistory const *)arg1)->GetMaxFiles(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileHistory *arg1 = (wxFileHistory *) 0 ; - wxMenu *arg2 = (wxMenu *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "menu", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->UseMenu(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileHistory *arg1 = (wxFileHistory *) 0 ; - wxMenu *arg2 = (wxMenu *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "menu", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RemoveMenu(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileHistory *arg1 = (wxFileHistory *) 0 ; - wxConfigBase *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "config", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Load(*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileHistory *arg1 = (wxFileHistory *) 0 ; - wxConfigBase *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "config", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Save(*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileHistory *arg1 = (wxFileHistory *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AddFilesToMenu(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileHistory *arg1 = (wxFileHistory *) 0 ; - wxMenu *arg2 = (wxMenu *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "menu", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AddFilesToMenu(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileHistory *arg1 = (wxFileHistory *) 0 ; - int arg2 ; - wxString result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "i", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileHistory *arg1 = (wxFileHistory *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxFileHistory const *)arg1)->GetCount(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * FileHistory_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString const &arg2_defvalue = wxPyEmptyString ; - wxString *arg2 = (wxString *) &arg2_defvalue ; - wxSingleInstanceChecker *result; - bool temp1 = False ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "name",(char *) "path", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - if (obj1) { - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1); - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSingleInstanceChecker *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; - wxString *arg2 = 0 ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - bool result; - bool temp2 = False ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name",(char *) "path", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * SingleInstanceChecker_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_DrawWindowOnDC(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxDC *arg2 = 0 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "window",(char *) "dc",(char *) "method", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DrawWindowOnDC",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_TipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTipProvider *arg1 = (wxTipProvider *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTipProvider *arg1 = (wxTipProvider *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetTip(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTipProvider *arg1 = (wxTipProvider *) 0 ; - size_t result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (size_t)(arg1)->GetCurrentTip(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTipProvider *arg1 = (wxTipProvider *) 0 ; - wxString *arg2 = 0 ; - wxString result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "tip", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->PreprocessTip((wxString const &)*arg2); - - 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 (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject * TipProvider_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - size_t arg1 ; - wxPyTipProvider *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "currentTip", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail; - arg1 = (size_t) SWIG_AsUnsignedLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyTipProvider *)new wxPyTipProvider(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTipProvider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * PyTipProvider_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_ShowTip(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxTipProvider *arg2 = (wxTipProvider *) 0 ; - bool arg3 = (bool) True ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTipProvider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxShowTip(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - size_t arg2 ; - wxTipProvider *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "filename",(char *) "currentTip", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1); - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_new_Timer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; - int arg2 = (int) -1 ; - wxPyTimer *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "owner",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyTimer *)new wxPyTimer(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_Timer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTimer *arg1 = (wxPyTimer *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Timer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTimer *arg1 = (wxPyTimer *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - int arg4 = (int) 1 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Timer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTimer *arg1 = (wxPyTimer *) 0 ; - wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; - int arg3 = (int) -1 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "owner",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetOwner(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Timer_Start(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTimer *arg1 = (wxPyTimer *) 0 ; - int arg2 = (int) -1 ; - bool arg3 = (bool) False ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Start(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Timer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTimer *arg1 = (wxPyTimer *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Stop(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Timer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTimer *arg1 = (wxPyTimer *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyTimer const *)arg1)->IsRunning(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Timer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTimer *arg1 = (wxPyTimer *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxPyTimer const *)arg1)->GetInterval(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Timer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTimer *arg1 = (wxPyTimer *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyTimer const *)arg1)->IsOneShot(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Timer_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTimer *arg1 = (wxPyTimer *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxPyTimer const *)arg1)->GetId(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * Timer_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_TimerEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - int arg2 = (int) 0 ; - wxTimerEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "timerid",(char *) "interval", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimerEvent_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimerEvent *arg1 = (wxTimerEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxTimerEvent const *)arg1)->GetInterval(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * TimerEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxTimer *arg1 = 0 ; - wxTimerRunner *result; - PyObject * obj0 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxTimerRunner *)new wxTimerRunner(*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxTimer *arg1 = 0 ; - int arg2 ; - bool arg3 = (bool) False ; - wxTimerRunner *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if (argc == 1) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_new_TimerRunner__SWIG_0(self,args); - } - } - if ((argc >= 2) && (argc <= 3)) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - _v = SWIG_CheckInt(argv[1]); - if (_v) { - if (argc <= 2) { - return _wrap_new_TimerRunner__SWIG_1(self,args); - } - _v = SWIG_CheckBool(argv[2]); - if (_v) { - return _wrap_new_TimerRunner__SWIG_1(self,args); - } - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'"); - return NULL; -} - - -static PyObject *_wrap_delete_TimerRunner(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimerRunner_Start(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; - int arg2 ; - bool arg3 = (bool) False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "milli",(char *) "oneShot", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Start(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * TimerRunner_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Log(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLog *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxLog *)new wxLog(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Log_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - bool result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxLog::IsEnabled(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Log_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - bool arg1 = (bool) True ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "doIt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (bool) SWIG_AsBool(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxLog::EnableLogging(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Log_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLogLevel arg1 ; - wxChar *arg2 = (wxChar *) 0 ; - time_t arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "level",(char *) "szString",(char *) "t", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail; - arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxChar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (time_t) SWIG_AsUnsignedInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLog::OnLog(arg1,(wxChar const *)arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Log_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLog *arg1 = (wxLog *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Flush(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Log_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLog::FlushActive(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Log_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLog *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxLog *)wxLog::GetActiveTarget(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Log_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLog *arg1 = (wxLog *) 0 ; - wxLog *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "pLogger", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxLog *)wxLog::SetActiveTarget(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Log_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLog::Suspend(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Log_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLog::Resume(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Log_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - bool arg1 = (bool) True ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "bVerbose", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (bool) SWIG_AsBool(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLog::SetVerbose(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Log_SetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLogLevel arg1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "logLevel", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail; - arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLog::SetLogLevel(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLog::DontCreateOnDemand(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Log_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTraceMask arg1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "ulMask", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail; - arg1 = (wxTraceMask) SWIG_AsUnsignedLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLog::SetTraceMask(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Log_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "str", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLog::AddTraceMask((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_Log_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "str", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLog::RemoveTraceMask((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_Log_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLog::ClearTraceMasks(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Log_GetTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxArrayString *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxArrayString const &_result_ref = wxLog::GetTraceMasks(); - result = (wxArrayString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxArrayString2PyList_helper(*result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Log_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxChar *arg1 = (wxChar *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "ts", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLog::SetTimestamp((wxChar const *)arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Log_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - bool result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxLog::GetVerbose(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Log_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTraceMask result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxTraceMask)wxLog::GetTraceMask(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxChar *arg1 = (wxChar *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "mask", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Log_GetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLogLevel result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxLogLevel)wxLog::GetLogLevel(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Log_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxChar *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxChar *)wxLog::GetTimestamp(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Log_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = Log_TimeStamp(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Log_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLog *arg1 = (wxLog *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLog_Destroy(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * Log_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_LogStderr(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLogStderr *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxLogStderr *)new wxLogStderr(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * LogStderr_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_LogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - wxLogTextCtrl *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "pTextCtrl", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * LogTextCtrl_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_LogGui(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLogGui *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxLogGui *)new wxLogGui(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * LogGui_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_LogWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFrame *arg1 = (wxFrame *) 0 ; - wxString *arg2 = 0 ; - bool arg3 = (bool) True ; - bool arg4 = (bool) True ; - wxLogWindow *result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (bool) SWIG_AsBool(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1); - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_LogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLogWindow *arg1 = (wxLogWindow *) 0 ; - bool arg2 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bShow", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Show(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_LogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLogWindow *arg1 = (wxLogWindow *) 0 ; - wxFrame *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_LogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLogWindow *arg1 = (wxLogWindow *) 0 ; - wxLog *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLogWindow *arg1 = (wxLogWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_LogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLogWindow *arg1 = (wxLogWindow *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bDoPass", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->PassMessages(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * LogWindow_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_LogChain(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLog *arg1 = (wxLog *) 0 ; - wxLogChain *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "logger", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxLogChain *)new wxLogChain(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_LogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLogChain *arg1 = (wxLogChain *) 0 ; - wxLog *arg2 = (wxLog *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "logger", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetLog(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_LogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLogChain *arg1 = (wxLogChain *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bDoPass", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->PassMessages(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLogChain *arg1 = (wxLogChain *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->IsPassingMessages(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_LogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLogChain *arg1 = (wxLogChain *) 0 ; - wxLog *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxLog *)(arg1)->GetOldLog(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject * LogChain_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_SysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - unsigned long result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (unsigned long)wxSysErrorCode(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - unsigned long arg1 = (unsigned long) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "nErrCode", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxSysErrorMsg(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 - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_LogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "msg", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLogFatalError((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_LogError(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "msg", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLogError((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_LogWarning(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "msg", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLogWarning((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_LogMessage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "msg", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLogMessage((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_LogInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "msg", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLogInfo((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_LogDebug(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "msg", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLogDebug((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_LogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "msg", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLogVerbose((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_LogStatus(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "msg", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLogStatus((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_LogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFrame *arg1 = (wxFrame *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "pFrame",(char *) "msg", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLogStatus(arg1,(wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_LogSysError(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "msg", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLogSysError((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_LogTrace__SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - unsigned long arg1 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; - arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLogTrace(arg1,(wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_LogTrace__SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString *arg2 = 0 ; - bool temp1 = False ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if (argc == 2) { - int _v; - { - _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); - } - if (_v) { - { - _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); - } - if (_v) { - return _wrap_LogTrace__SWIG_1(self,args); - } - } - } - if (argc == 2) { - int _v; - _v = SWIG_CheckUnsignedLong(argv[0]); - if (_v) { - { - _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); - } - if (_v) { - return _wrap_LogTrace__SWIG_0(self,args); - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'"); - return NULL; -} - - -static PyObject *_wrap_LogGeneric(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - unsigned long arg1 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "level",(char *) "msg", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail; - arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLogGeneric(arg1,(wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_SafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString *arg2 = 0 ; - bool temp1 = False ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "title",(char *) "text", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_new_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLogNull *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxLogNull *)new wxLogNull(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLogNull *arg1 = (wxLogNull *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogNull, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * LogNull_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PyLog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyLog *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyLog *)new wxPyLog(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyLog *arg1 = (wxPyLog *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * PyLog_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_Process_Kill(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - int arg2 = (int) wxSIGTERM ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "pid",(char *) "sig", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Kill",kwnames,&obj0,&obj1)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - if (obj1) { - arg2 = (wxSignal) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Process_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "pid", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxPyProcess::Exists(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Process_Open(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - int arg2 = (int) wxEXEC_ASYNC ; - wxPyProcess *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "cmd",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0); - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_new_Process(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; - int arg2 = (int) -1 ; - wxPyProcess *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyProcess *)new wxPyProcess(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Process__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyProcess *arg1 = (wxPyProcess *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Process_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyProcess *arg1 = (wxPyProcess *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pid",(char *) "status", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_OnTerminate(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Process_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyProcess *arg1 = (wxPyProcess *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Redirect(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Process_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyProcess *arg1 = (wxPyProcess *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->IsRedirected(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Process_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyProcess *arg1 = (wxPyProcess *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Detach(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Process_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyProcess *arg1 = (wxPyProcess *) 0 ; - wxInputStream *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxInputStream *)(arg1)->GetInputStream(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPyInputStream * _ptr = NULL; - - if (result) { - _ptr = new wxPyInputStream(result); - } - resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Process_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyProcess *arg1 = (wxPyProcess *) 0 ; - wxInputStream *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxInputStream *)(arg1)->GetErrorStream(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPyInputStream * _ptr = NULL; - - if (result) { - _ptr = new wxPyInputStream(result); - } - resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Process_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyProcess *arg1 = (wxPyProcess *) 0 ; - wxOutputStream *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxOutputStream *)(arg1)->GetOutputStream(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Process_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyProcess *arg1 = (wxPyProcess *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->CloseOutput(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Process_IsInputOpened(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyProcess *arg1 = (wxPyProcess *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyProcess const *)arg1)->IsInputOpened(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Process_IsInputAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyProcess *arg1 = (wxPyProcess *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Process_IsErrorAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyProcess *arg1 = (wxPyProcess *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * Process_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - int arg2 = (int) 0 ; - int arg3 = (int) 0 ; - wxProcessEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "id",(char *) "pid",(char *) "exitcode", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetPid(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetExitCode(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_pid", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_pid = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->m_pid); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_exitcode", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_exitcode = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->m_exitcode); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * ProcessEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_Execute(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - int arg2 = (int) wxEXEC_ASYNC ; - wxPyProcess *arg3 = (wxPyProcess *) NULL ; - long result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "command",(char *) "flags",(char *) "process", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyProcess, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)wxExecute((wxString const &)*arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_new_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) wxJOYSTICK1 ; - wxJoystick *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "joystick", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxJoystick *)new wxJoystick(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetZPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetButtonState(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetPOVPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetPOVCTSPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetRudderPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetUPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetVPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetMovementThreshold(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "threshold", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMovementThreshold(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->IsOk(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetNumberJoysticks(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetManufacturerId(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetProductId(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetProductName(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetXMin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetYMin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetZMin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetXMax(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetYMax(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetZMax(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetNumberButtons(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetNumberAxes(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetMaxButtons(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetMaxAxes(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetPollingMin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetPollingMax(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetRudderMin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetRudderMax(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetUMin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetUMax(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetVMin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetVMax(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->HasRudder(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->HasZ(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->HasU(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->HasV(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->HasPOV(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->HasPOV4Dir(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->HasPOVCTS(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 = (int) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "win",(char *) "pollingFreq", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetCapture(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->ReleaseCapture(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * Joystick_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - wxPoint *arg2 = (wxPoint *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (arg1) (arg1)->m_pos = *arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - wxPoint *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (wxPoint *)& ((arg1)->m_pos); - - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_zPosition", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_zPosition_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_zPosition = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->m_zPosition); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_buttonChange", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_buttonChange = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->m_buttonChange); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_buttonState", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonState_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_buttonState = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->m_buttonState); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_joyStick", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_joyStick_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_joyStick = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->m_joyStick); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_JoystickEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEventType arg1 = (wxEventType) wxEVT_NULL ; - int arg2 = (int) 0 ; - int arg3 = (int) wxJOYSTICK1 ; - int arg4 = (int) 0 ; - wxJoystickEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if (obj0) { - arg1 = (wxEventType) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxJoystickEvent const *)arg1)->GetPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxJoystickEvent const *)arg1)->GetZPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxJoystickEvent const *)arg1)->GetButtonState(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxJoystickEvent const *)arg1)->GetJoystick(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "stick", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetJoystick(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "state", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetButtonState(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "change", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetButtonChange(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPosition((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "zPos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetZPosition(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxJoystickEvent const *)arg1)->IsButton(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_IsMove(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxJoystickEvent const *)arg1)->IsMove(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxJoystickEvent const *)arg1)->IsZMove(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - int arg2 = (int) wxJOY_BUTTON_ANY ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "but", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - int arg2 = (int) wxJOY_BUTTON_ANY ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "but", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - int arg2 = (int) wxJOY_BUTTON_ANY ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "but", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * JoystickEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Sound__SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxSound *result; - - if(!PyArg_ParseTuple(args,(char *)":new_Sound")) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSound *)new wxSound(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_Sound__SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxString *arg1 = 0 ; - bool arg2 = (bool) false ; - wxSound *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"O|O:new_Sound",&obj0,&obj1)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSound *)new wxSound((wxString const &)*arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_new_Sound__SWIG_2(PyObject *self, PyObject *args) { - PyObject *resultobj; - int arg1 ; - wxByte *arg2 = (wxByte *) 0 ; - wxSound *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:new_Sound",&obj0,&obj1)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxByte, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSound *)new wxSound(arg1,(wxByte const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_Sound(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if (argc == 0) { - return _wrap_new_Sound__SWIG_0(self,args); - } - if ((argc >= 1) && (argc <= 2)) { - int _v; - { - _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); - } - if (_v) { - if (argc <= 1) { - return _wrap_new_Sound__SWIG_1(self,args); - } - _v = SWIG_CheckBool(argv[1]); - if (_v) { - return _wrap_new_Sound__SWIG_1(self,args); - } - } - } - if (argc == 2) { - int _v; - _v = SWIG_CheckInt(argv[0]); - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxByte, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_new_Sound__SWIG_2(self,args); - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_Sound'"); - return NULL; -} - - -static PyObject *_wrap_delete_Sound(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSound *arg1 = (wxSound *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sound_Create__SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxSound *arg1 = (wxSound *) 0 ; - wxString *arg2 = 0 ; - bool arg3 = (bool) false ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO|O:Sound_Create",&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create((wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Sound_Create__SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxSound *arg1 = (wxSound *) 0 ; - int arg2 ; - wxByte *arg3 = (wxByte *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OOO:Sound_Create",&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxByte, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxSound_Create__SWIG_1(arg1,arg2,(wxByte const *)arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sound_Create(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if ((argc >= 2) && (argc <= 3)) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxSound, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); - } - if (_v) { - if (argc <= 2) { - return _wrap_Sound_Create__SWIG_0(self,args); - } - _v = SWIG_CheckBool(argv[2]); - if (_v) { - return _wrap_Sound_Create__SWIG_0(self,args); - } - } - } - } - if (argc == 3) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxSound, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - _v = SWIG_CheckInt(argv[1]); - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxByte, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_Sound_Create__SWIG_1(self,args); - } - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Sound_Create'"); - return NULL; -} - - -static PyObject *_wrap_Sound_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSound *arg1 = (wxSound *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->IsOk(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sound_Play(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxSound *arg1 = (wxSound *) 0 ; - unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"O|O:Sound_Play",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxSound const *)arg1)->Play(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sound_PlaySound(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxString *arg1 = 0 ; - unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; - bool result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"O|O:Sound_PlaySound",&obj0,&obj1)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - if (obj1) { - arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxSound::Play((wxString const &)*arg1,arg2); - - 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 *_wrap_Sound_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - Sound_Stop(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * Sound_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_FileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString *arg2 = 0 ; - wxString *arg3 = 0 ; - wxString *arg4 = 0 ; - wxFileTypeInfo *result; - bool temp1 = False ; - bool temp2 = False ; - bool temp3 = False ; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxArrayString *arg1 = 0 ; - wxFileTypeInfo *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "sArray", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail; - { - if (! PySequence_Check(obj0)) { - PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); - SWIG_fail; - } - arg1 = new wxArrayString; - temp1 = True; - int i, len=PySequence_Length(obj0); - for (i=0; iAdd(Py2wxString(str)); - Py_DECREF(item); - Py_DECREF(str); - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); - { - if (temp1) delete arg1; - } - return resultobj; - fail: - { - if (temp1) delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_new_NullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileTypeInfo *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFileTypeInfo *)new wxFileTypeInfo(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxFileTypeInfo const *)arg1)->IsValid(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; - wxString *arg2 = 0 ; - int arg3 = (int) 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetIcon((wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "shortDesc", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetShortDesc((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; - wxArrayString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions(); - result = (wxArrayString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxArrayString2PyList_helper(*result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * FileTypeInfo_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_FileType(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileTypeInfo *arg1 = 0 ; - wxFileType *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "ftInfo", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_FileType(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileType *arg1 = (wxFileType *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileType *arg1 = (wxFileType *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxFileType_GetMimeType(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileType *arg1 = (wxFileType *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxFileType_GetMimeTypes(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileType *arg1 = (wxFileType *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxFileType_GetExtensions(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileType *arg1 = (wxFileType *) 0 ; - wxIcon *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxIcon *)wxFileType_GetIcon(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileType *arg1 = (wxFileType *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxFileType_GetIconInfo(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileType *arg1 = (wxFileType *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxFileType_GetDescription(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileType *arg1 = (wxFileType *) 0 ; - wxString *arg2 = 0 ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - PyObject *result; - bool temp2 = False ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "filename",(char *) "mimetype", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_FileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileType *arg1 = (wxFileType *) 0 ; - wxString *arg2 = 0 ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - PyObject *result; - bool temp2 = False ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "filename",(char *) "mimetype", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_FileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileType *arg1 = (wxFileType *) 0 ; - wxString *arg2 = 0 ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - PyObject *result; - bool temp2 = False ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "filename",(char *) "mimetype", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_FileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileType *arg1 = (wxFileType *) 0 ; - wxString *arg2 = 0 ; - wxString *arg3 = 0 ; - bool arg4 = (bool) True ; - bool result; - bool temp2 = False ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - arg4 = (bool) SWIG_AsBool(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileType *arg1 = (wxFileType *) 0 ; - wxString const &arg2_defvalue = wxPyEmptyString ; - wxString *arg2 = (wxString *) &arg2_defvalue ; - int arg3 = (int) 0 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "cmd",(char *) "index", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_FileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileType *arg1 = (wxFileType *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Unassociate(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString *arg2 = 0 ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - wxString result; - bool temp1 = False ; - bool temp2 = False ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "command",(char *) "filename",(char *) "mimetype", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3); - - 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; - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject * FileType_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_TheMimeTypesManager_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only."); - return 1; -} - - -static PyObject *_wrap_TheMimeTypesManager_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0); - return pyobj; -} - - -static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString *arg2 = 0 ; - bool result; - bool temp1 = False ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "mimeType",(char *) "wildcard", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_new_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMimeTypesManager *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMimeTypesManager *)new wxMimeTypesManager(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; - int arg2 = (int) wxMAILCAP_ALL ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Initialize(arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ClearData(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; - wxString *arg2 = 0 ; - wxFileType *result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "ext", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; - wxString *arg2 = 0 ; - wxFileType *result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "mimeType", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; - wxString *arg2 = 0 ; - bool arg3 = (bool) False ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "filename",(char *) "fallback", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; - wxString *arg2 = 0 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "filename", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; - wxFileTypeInfo *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "ft", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AddFallback((wxFileTypeInfo const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; - wxFileTypeInfo *arg2 = 0 ; - wxFileType *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "ftInfo", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; - wxFileType *arg2 = (wxFileType *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "ft", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileType, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Unassociate(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * MimeTypesManager_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_ART_TOOLBAR_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_TOOLBAR_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_MENU_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_MENU_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_FRAME_ICON_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_FRAME_ICON_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_CMN_DIALOG_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_CMN_DIALOG_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_HELP_BROWSER_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_HELP_BROWSER_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_MESSAGE_BOX_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_MESSAGE_BOX_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_OTHER_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_OTHER_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_ADD_BOOKMARK_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_ADD_BOOKMARK_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_DEL_BOOKMARK_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_DEL_BOOKMARK_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_HELP_SETTINGS_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_HELP_SETTINGS_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_HELP_BOOK_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_HELP_BOOK_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_HELP_FOLDER_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_HELP_FOLDER_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_HELP_PAGE_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_HELP_PAGE_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_GO_BACK_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_GO_BACK_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_GO_FORWARD_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_GO_FORWARD_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_GO_UP_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_GO_UP_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_GO_DOWN_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_GO_DOWN_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_GO_TO_PARENT_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_GO_TO_PARENT_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_GO_HOME_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_GO_HOME_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_FILE_OPEN_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_FILE_OPEN_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_PRINT_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_PRINT_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_HELP_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_HELP_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_TIP_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_TIP_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_REPORT_VIEW_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_REPORT_VIEW_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_LIST_VIEW_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_LIST_VIEW_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_NEW_DIR_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_NEW_DIR_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_FOLDER_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_FOLDER_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_GO_DIR_UP_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_GO_DIR_UP_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_EXECUTABLE_FILE_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_NORMAL_FILE_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_NORMAL_FILE_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_TICK_MARK_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_TICK_MARK_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_CROSS_MARK_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_CROSS_MARK_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_ERROR_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_ERROR_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_QUESTION_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_QUESTION_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_WARNING_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_WARNING_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_INFORMATION_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_INFORMATION_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_MISSING_IMAGE_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_MISSING_IMAGE_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_ArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyArtProvider *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyArtProvider *)new wxPyArtProvider(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "provider", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxPyArtProvider::PushProvider(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - bool result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxPyArtProvider::PopProvider(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "provider", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxPyArtProvider::RemoveProvider(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString const &arg2_defvalue = wxPyART_OTHER ; - wxString *arg2 = (wxString *) &arg2_defvalue ; - wxSize const &arg3_defvalue = wxDefaultSize ; - wxSize *arg3 = (wxSize *) &arg3_defvalue ; - wxBitmap result; - bool temp1 = False ; - bool temp2 = False ; - wxSize temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "id",(char *) "client",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - if (obj1) { - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - } - if (obj2) { - { - arg3 = &temp3; - if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxBitmap * resultptr; - resultptr = new wxBitmap((wxBitmap &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); - } - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString const &arg2_defvalue = wxPyART_OTHER ; - wxString *arg2 = (wxString *) &arg2_defvalue ; - wxSize const &arg3_defvalue = wxDefaultSize ; - wxSize *arg3 = (wxSize *) &arg3_defvalue ; - wxIcon result; - bool temp1 = False ; - bool temp2 = False ; - wxSize temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "id",(char *) "client",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - if (obj1) { - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - } - if (obj2) { - { - arg3 = &temp3; - if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxIcon * resultptr; - resultptr = new wxIcon((wxIcon &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1); - } - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ArtProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxPyArtProvider_Destroy(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * ArtProvider_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_delete_ConfigBase(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ConfigBase_Set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxConfigBase *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "config", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxConfigBase *)wxConfigBase::Set(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ConfigBase_Get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - bool arg1 = (bool) True ; - wxConfigBase *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "createOnDemand", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (bool) SWIG_AsBool(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxConfigBase *)wxConfigBase::Get(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ConfigBase_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxConfigBase *)wxConfigBase::Create(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxConfigBase::DontCreateOnDemand(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ConfigBase_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "path", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPath((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ConfigBase_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxConfigBase_GetFirstGroup(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - long arg2 ; - PyObject *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "index", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxConfigBase_GetFirstEntry(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - long arg2 ; - PyObject *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "index", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - bool arg2 = (bool) False ; - size_t result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "recursive", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - bool arg2 = (bool) False ; - size_t result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "recursive", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ConfigBase_HasGroup(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxString *arg2 = 0 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ConfigBase_HasEntry(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxString *arg2 = 0 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ConfigBase_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxString *arg2 = 0 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxString *arg2 = 0 ; - int result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ConfigBase_Read(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxString *arg2 = 0 ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - wxString result; - bool temp2 = False ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "key",(char *) "defaultVal", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3); - - 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 (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_ConfigBase_ReadInt(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxString *arg2 = 0 ; - long arg3 = (long) 0 ; - long result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "key",(char *) "defaultVal", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxString *arg2 = 0 ; - double arg3 = (double) 0.0 ; - double result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "key",(char *) "defaultVal", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (double) SWIG_AsDouble(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromDouble((double)result); - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ConfigBase_ReadBool(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxString *arg2 = 0 ; - bool arg3 = (bool) False ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "key",(char *) "defaultVal", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ConfigBase_Write(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxString *arg2 = 0 ; - wxString *arg3 = 0 ; - bool result; - bool temp2 = False ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "key",(char *) "value", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_ConfigBase_WriteInt(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxString *arg2 = 0 ; - long arg3 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "key",(char *) "value", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxString *arg2 = 0 ; - double arg3 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "key",(char *) "value", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - arg3 = (double) SWIG_AsDouble(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ConfigBase_WriteBool(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxString *arg2 = 0 ; - bool arg3 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "key",(char *) "value", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ConfigBase_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - bool arg2 = (bool) False ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "currentOnly", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Flush(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxString *arg2 = 0 ; - wxString *arg3 = 0 ; - bool result; - bool temp2 = False ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "oldName",(char *) "newName", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxString *arg2 = 0 ; - wxString *arg3 = 0 ; - bool result; - bool temp2 = False ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "oldName",(char *) "newName", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxString *arg2 = 0 ; - bool arg3 = (bool) True ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxString *arg2 = 0 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "key", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->DeleteAll(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - bool arg2 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "doIt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetExpandEnvVars(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - bool arg2 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "doIt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetRecordDefaults(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxString *arg2 = 0 ; - wxString result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "str", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2); - - 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 (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ConfigBase_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxConfigBase const *)arg1)->GetAppName(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxConfigBase const *)arg1)->GetVendorName(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ConfigBase_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "appName", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetAppName((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "vendorName", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetVendorName((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ConfigBase_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetStyle(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ConfigBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxConfigBase const *)arg1)->GetStyle(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * ConfigBase_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Config(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString const &arg1_defvalue = wxPyEmptyString ; - wxString *arg1 = (wxString *) &arg1_defvalue ; - wxString const &arg2_defvalue = wxPyEmptyString ; - wxString *arg2 = (wxString *) &arg2_defvalue ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - wxString const &arg4_defvalue = wxPyEmptyString ; - wxString *arg4 = (wxString *) &arg4_defvalue ; - long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ; - wxConfig *result; - bool temp1 = False ; - bool temp2 = False ; - bool temp3 = False ; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if (obj0) { - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - } - if (obj1) { - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - if (obj3) { - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1); - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_delete_Config(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfig *arg1 = (wxConfig *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfig, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * Config_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString const &arg1_defvalue = wxPyEmptyString ; - wxString *arg1 = (wxString *) &arg1_defvalue ; - wxString const &arg2_defvalue = wxPyEmptyString ; - wxString *arg2 = (wxString *) &arg2_defvalue ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - wxString const &arg4_defvalue = wxPyEmptyString ; - wxString *arg4 = (wxString *) &arg4_defvalue ; - long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ; - wxFileConfig *result; - bool temp1 = False ; - bool temp2 = False ; - bool temp3 = False ; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if (obj0) { - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - } - if (obj1) { - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - if (obj3) { - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1); - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_delete_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileConfig *arg1 = (wxFileConfig *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileConfig, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * FileConfig_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxString *arg2 = 0 ; - wxConfigPathChanger *result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "config",(char *) "entry", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1); - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_delete_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ConfigPathChanger_Name(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * ConfigPathChanger_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "sz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxExpandEnvVars((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; -} - - -static int _wrap_DateFormatStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only."); - return 1; -} - - -static PyObject *_wrap_DateFormatStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_TimeSpanFormatStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only."); - return 1; -} - - -static PyObject *_wrap_TimeSpanFormatStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_DateTime_SetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "country", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail; - arg1 = (wxDateTime::Country) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxDateTime::SetCountry((wxDateTime::Country )arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxDateTime::GetCountry(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) wxDateTime::Country_Default ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "country", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (wxDateTime::Country) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) wxDateTime::Gregorian ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "cal", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "year", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxDateTime::ConvertYearToBC(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) wxDateTime::Gregorian ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "cal", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_IsLeapYear(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) wxDateTime::Inv_Year ; - int arg2 = (int) wxDateTime::Gregorian ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "year",(char *) "cal", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetCentury(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) wxDateTime::Inv_Year ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "year", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxDateTime::GetCentury(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - int arg2 = (int) wxDateTime::Gregorian ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "year",(char *) "cal", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - if (obj1) { - arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - int arg2 = (int) wxDateTime::Inv_Year ; - int arg3 = (int) wxDateTime::Gregorian ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "month",(char *) "year",(char *) "cal", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; - arg1 = (wxDateTime::Month) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (wxDateTime::Calendar) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetMonthName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - int arg2 = (int) wxDateTime::Name_Full ; - wxString result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "month",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail; - arg1 = (wxDateTime::Month) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - if (obj1) { - arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - int arg2 = (int) wxDateTime::Name_Full ; - wxString result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "weekday",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail; - arg1 = (wxDateTime::WeekDay) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - if (obj1) { - arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = (wxString *) 0 ; - wxString *arg2 = (wxString *) 0 ; - bool temp1 = False ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "OUTPUT",(char *) "OUTPUT", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxDateTime::GetAmPmStrings(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) wxDateTime::Inv_Year ; - int arg2 = (int) wxDateTime::Country_Default ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "year",(char *) "country", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetBeginDST(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) wxDateTime::Inv_Year ; - int arg2 = (int) wxDateTime::Country_Default ; - wxDateTime result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "year",(char *) "country", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateTime * resultptr; - resultptr = new wxDateTime((wxDateTime &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetEndDST(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) wxDateTime::Inv_Year ; - int arg2 = (int) wxDateTime::Country_Default ; - wxDateTime result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "year",(char *) "country", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateTime * resultptr; - resultptr = new wxDateTime((wxDateTime &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_Now(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDateTime::Now(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateTime * resultptr; - resultptr = new wxDateTime((wxDateTime &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_UNow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDateTime::UNow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateTime * resultptr; - resultptr = new wxDateTime((wxDateTime &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_Today(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDateTime::Today(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateTime * resultptr; - resultptr = new wxDateTime((wxDateTime &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxDateTime *)new wxDateTime(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - time_t arg1 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "timet", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail; - arg1 = (time_t) SWIG_AsUnsignedInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxDateTime *)new wxDateTime(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_DateTimeFromJDN(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - double arg1 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "jdn", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail; - arg1 = (double) SWIG_AsDouble(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxDateTime *)new wxDateTime(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_DateTimeFromHMS(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - int arg2 = (int) 0 ; - int arg3 = (int) 0 ; - int arg4 = (int) 0 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_DateTimeFromDMY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - int arg2 = (int) wxDateTime::Inv_Month ; - int arg3 = (int) wxDateTime::Inv_Year ; - int arg4 = (int) 0 ; - int arg5 = (int) 0 ; - int arg6 = (int) 0 ; - int arg7 = (int) 0 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - if (obj1) { - arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - arg6 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - arg7 = (int) SWIG_AsInt(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_SetToCurrent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->SetToCurrent(); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_SetTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - time_t arg2 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "timet", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (time_t) SWIG_AsUnsignedInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->Set(arg2); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_SetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - double arg2 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "jdn", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (double) SWIG_AsDouble(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->Set(arg2); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_SetHMS(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 ; - int arg3 = (int) 0 ; - int arg4 = (int) 0 ; - int arg5 = (int) 0 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_Set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 ; - int arg3 = (int) wxDateTime::Inv_Month ; - int arg4 = (int) wxDateTime::Inv_Year ; - int arg5 = (int) 0 ; - int arg6 = (int) 0 ; - int arg7 = (int) 0 ; - int arg8 = (int) 0 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (wxDateTime::Month) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - arg6 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - arg7 = (int) SWIG_AsInt(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - arg8 = (int) SWIG_AsInt(obj7); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_ResetTime(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->ResetTime(); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_SetYear(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "year", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->SetYear(arg2); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_SetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "month", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_SetDay(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "day", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->SetDay(arg2); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_SetHour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "hour", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->SetHour(arg2); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_SetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "minute", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->SetMinute(arg2); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_SetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "second", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->SetSecond(arg2); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_SetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "millisecond", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 ; - int arg3 = (int) wxDateTime::Monday_First ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "weekday",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 ; - int arg3 = (int) wxDateTime::Monday_First ; - wxDateTime result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "weekday",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateTime * resultptr; - resultptr = new wxDateTime((wxDateTime &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "weekday", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 ; - wxDateTime result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "weekday", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateTime * resultptr; - resultptr = new wxDateTime((wxDateTime &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "weekday", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 ; - wxDateTime result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "weekday", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateTime * resultptr; - resultptr = new wxDateTime((wxDateTime &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 ; - int arg3 = (int) 1 ; - int arg4 = (int) wxDateTime::Inv_Month ; - int arg5 = (int) wxDateTime::Inv_Year ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (wxDateTime::Month) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 ; - int arg3 = (int) wxDateTime::Inv_Month ; - int arg4 = (int) wxDateTime::Inv_Year ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (wxDateTime::Month) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 ; - int arg3 = (int) wxDateTime::Inv_Month ; - int arg4 = (int) wxDateTime::Inv_Year ; - wxDateTime result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (wxDateTime::Month) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateTime * resultptr; - resultptr = new wxDateTime((wxDateTime &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 ; - int arg3 = (int) wxDateTime::Mon ; - int arg4 = (int) wxDateTime::Monday_First ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetWeek(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 ; - int arg3 = (int) wxDateTime::Mon ; - int arg4 = (int) wxDateTime::Monday_First ; - wxDateTime result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateTime * resultptr; - resultptr = new wxDateTime((wxDateTime &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 = (int) wxDateTime::Inv_Month ; - int arg3 = (int) wxDateTime::Inv_Year ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "month",(char *) "year", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 = (int) wxDateTime::Inv_Month ; - int arg3 = (int) wxDateTime::Inv_Year ; - wxDateTime result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "month",(char *) "year", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateTime * resultptr; - resultptr = new wxDateTime((wxDateTime &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_SetToYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "yday", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 ; - wxDateTime result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "yday", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetYearDay(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateTime * resultptr; - resultptr = new wxDateTime((wxDateTime &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - double result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (double)(arg1)->GetJulianDayNumber(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromDouble((double)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - double result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (double)(arg1)->GetJDN(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromDouble((double)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - double result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromDouble((double)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetMJD(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - double result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (double)(arg1)->GetMJD(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromDouble((double)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetRataDie(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - double result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (double)(arg1)->GetRataDie(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromDouble((double)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_ToTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime::TimeZone *arg2 = 0 ; - bool arg3 = (bool) False ; - wxDateTime result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "tz",(char *) "noDST", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); - temp2 = True; - } - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateTime * resultptr; - resultptr = new wxDateTime((wxDateTime &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); - } - { - if (temp2) delete arg2; - } - return resultobj; - fail: - { - if (temp2) delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DateTime_MakeTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime::TimeZone *arg2 = 0 ; - bool arg3 = (bool) False ; - wxDateTime *result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "tz",(char *) "noDST", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); - temp2 = True; - } - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - { - if (temp2) delete arg2; - } - return resultobj; - fail: - { - if (temp2) delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DateTime_ToGMT(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - bool arg2 = (bool) False ; - wxDateTime result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "noDST", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->ToGMT(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateTime * resultptr; - resultptr = new wxDateTime((wxDateTime &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_MakeGMT(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - bool arg2 = (bool) False ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "noDST", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->MakeGMT(arg2); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_IsDST(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 = (int) wxDateTime::Country_Default ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "country", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->IsDST((wxDateTime::Country )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxDateTime const *)arg1)->IsValid(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetTicks(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - time_t result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (time_t)((wxDateTime const *)arg1)->GetTicks(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedInt((unsigned int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetYear(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; - wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; - int result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "tz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - { - arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); - temp2 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp2) delete arg2; - } - return resultobj; - fail: - { - if (temp2) delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DateTime_GetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; - wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; - int result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "tz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - { - arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); - temp2 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp2) delete arg2; - } - return resultobj; - fail: - { - if (temp2) delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DateTime_GetDay(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; - wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; - int result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "tz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - { - arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); - temp2 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp2) delete arg2; - } - return resultobj; - fail: - { - if (temp2) delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DateTime_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; - wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; - int result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "tz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - { - arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); - temp2 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp2) delete arg2; - } - return resultobj; - fail: - { - if (temp2) delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DateTime_GetHour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; - wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; - int result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "tz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - { - arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); - temp2 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp2) delete arg2; - } - return resultobj; - fail: - { - if (temp2) delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DateTime_GetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; - wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; - int result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "tz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - { - arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); - temp2 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp2) delete arg2; - } - return resultobj; - fail: - { - if (temp2) delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DateTime_GetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; - wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; - int result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "tz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - { - arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); - temp2 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp2) delete arg2; - } - return resultobj; - fail: - { - if (temp2) delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DateTime_GetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; - wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; - int result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "tz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - { - arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); - temp2 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp2) delete arg2; - } - return resultobj; - fail: - { - if (temp2) delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; - wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; - int result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "tz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - { - arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); - temp2 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp2) delete arg2; - } - return resultobj; - fail: - { - if (temp2) delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 = (int) wxDateTime::Monday_First ; - wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; - wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; - int result; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flags",(char *) "tz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); - temp3 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp3) delete arg3; - } - return resultobj; - fail: - { - if (temp3) delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 = (int) wxDateTime::Monday_First ; - wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; - wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; - int result; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flags",(char *) "tz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); - temp3 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp3) delete arg3; - } - return resultobj; - fail: - { - if (temp3) delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_DateTime_IsWorkDay(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 = (int) wxDateTime::Country_Default ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "country", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "datetime", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "datetime", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_IsLaterThan(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "datetime", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime *arg2 = 0 ; - wxDateTime *arg3 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "t1",(char *) "t2", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_IsBetween(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime *arg2 = 0 ; - wxDateTime *arg3 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "t1",(char *) "t2", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_IsSameDate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "dt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_IsSameTime(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "dt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime *arg2 = 0 ; - wxTimeSpan *arg3 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "dt",(char *) "ts", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_AddTS(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxTimeSpan *arg2 = 0 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "diff", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_AddDS(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateSpan *arg2 = 0 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "diff", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_SubtractTS(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxTimeSpan *arg2 = 0 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "diff", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_SubtractDS(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateSpan *arg2 = 0 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "diff", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime *arg2 = 0 ; - wxTimeSpan result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "dt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTimeSpan * resultptr; - resultptr = new wxTimeSpan((wxTimeSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxTimeSpan *arg2 = 0 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateSpan *arg2 = 0 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_DateTime___iadd____SWIG_0(self,args); - } - } - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_DateTime___iadd____SWIG_1(self,args); - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'"); - return NULL; -} - - -static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxTimeSpan *arg2 = 0 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateSpan *arg2 = 0 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_DateTime___isub____SWIG_0(self,args); - } - } - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_DateTime___isub____SWIG_1(self,args); - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'"); - return NULL; -} - - -static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxTimeSpan *arg2 = 0 ; - wxDateTime result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateTime * resultptr; - resultptr = new wxDateTime((wxDateTime &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateSpan *arg2 = 0 ; - wxDateTime result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateTime * resultptr; - resultptr = new wxDateTime((wxDateTime &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_DateTime___add____SWIG_0(self,args); - } - } - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_DateTime___add____SWIG_1(self,args); - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'"); - return NULL; -} - - -static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime *arg2 = 0 ; - wxTimeSpan result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTimeSpan * resultptr; - resultptr = new wxTimeSpan((wxTimeSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxTimeSpan *arg2 = 0 ; - wxDateTime result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateTime * resultptr; - resultptr = new wxDateTime((wxDateTime &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateSpan *arg2 = 0 ; - wxDateTime result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateTime * resultptr; - resultptr = new wxDateTime((wxDateTime &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_DateTime___sub____SWIG_0(self,args); - } - } - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_DateTime___sub____SWIG_1(self,args); - } - } - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_DateTime___sub____SWIG_2(self,args); - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'"); - return NULL; -} - - -static PyObject *_wrap_DateTime___lt__(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime *arg2 = (wxDateTime *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime___le__(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime *arg2 = (wxDateTime *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime___gt__(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime *arg2 = (wxDateTime *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime___ge__(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime *arg2 = (wxDateTime *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime___eq__(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime *arg2 = (wxDateTime *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime___ne__(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime *arg2 = (wxDateTime *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxString *arg2 = 0 ; - int result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "date", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DateTime_ParseFormat(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxString *arg2 = 0 ; - wxString const &arg3_defvalue = wxPyDateFormatStr ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - wxDateTime const &arg4_defvalue = wxDefaultDateTime ; - wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ; - int result; - bool temp2 = False ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - if (obj3) { - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg4 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_DateTime_ParseDateTime(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxString *arg2 = 0 ; - int result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "datetime", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DateTime_ParseDate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxString *arg2 = 0 ; - int result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "date", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DateTime_ParseTime(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxString *arg2 = 0 ; - int result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "time", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DateTime_Format(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxString const &arg2_defvalue = wxPyDateFormatStr ; - wxString *arg2 = (wxString *) &arg2_defvalue ; - wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; - wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; - wxString result; - bool temp2 = False ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "format",(char *) "tz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - } - if (obj2) { - { - arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); - temp3 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3); - - 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 (temp2) - delete arg2; - } - { - if (temp3) delete arg3; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - { - if (temp3) delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_DateTime_FormatDate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxDateTime const *)arg1)->FormatDate(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_FormatTime(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxDateTime const *)arg1)->FormatTime(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_FormatISODate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxDateTime const *)arg1)->FormatISODate(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_FormatISOTime(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxDateTime const *)arg1)->FormatISOTime(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * DateTime_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_TimeSpan_Seconds(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - long arg1 ; - wxTimeSpan result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "sec", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail; - arg1 = (long) SWIG_AsLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxTimeSpan::Seconds(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTimeSpan * resultptr; - resultptr = new wxTimeSpan((wxTimeSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_Second(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxTimeSpan::Second(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTimeSpan * resultptr; - resultptr = new wxTimeSpan((wxTimeSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_Minutes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - long arg1 ; - wxTimeSpan result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "min", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail; - arg1 = (long) SWIG_AsLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxTimeSpan::Minutes(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTimeSpan * resultptr; - resultptr = new wxTimeSpan((wxTimeSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_Minute(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxTimeSpan::Minute(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTimeSpan * resultptr; - resultptr = new wxTimeSpan((wxTimeSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_Hours(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - long arg1 ; - wxTimeSpan result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "hours", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail; - arg1 = (long) SWIG_AsLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxTimeSpan::Hours(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTimeSpan * resultptr; - resultptr = new wxTimeSpan((wxTimeSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_Hour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxTimeSpan::Hour(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTimeSpan * resultptr; - resultptr = new wxTimeSpan((wxTimeSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - long arg1 ; - wxTimeSpan result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "days", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail; - arg1 = (long) SWIG_AsLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxTimeSpan::Days(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTimeSpan * resultptr; - resultptr = new wxTimeSpan((wxTimeSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxTimeSpan::Day(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTimeSpan * resultptr; - resultptr = new wxTimeSpan((wxTimeSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - long arg1 ; - wxTimeSpan result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "days", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail; - arg1 = (long) SWIG_AsLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxTimeSpan::Weeks(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTimeSpan * resultptr; - resultptr = new wxTimeSpan((wxTimeSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxTimeSpan::Week(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTimeSpan * resultptr; - resultptr = new wxTimeSpan((wxTimeSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - long arg1 = (long) 0 ; - long arg2 = (long) 0 ; - long arg3 = (long) 0 ; - long arg4 = (long) 0 ; - wxTimeSpan *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if (obj0) { - arg1 = (long) SWIG_AsLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (long) SWIG_AsLong(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - wxTimeSpan *arg2 = 0 ; - wxTimeSpan *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "diff", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); - result = (wxTimeSpan *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - wxTimeSpan *arg2 = 0 ; - wxTimeSpan *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "diff", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); - result = (wxTimeSpan *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - int arg2 ; - wxTimeSpan *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxTimeSpan &_result_ref = (arg1)->Multiply(arg2); - result = (wxTimeSpan *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - wxTimeSpan *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxTimeSpan &_result_ref = (arg1)->Neg(); - result = (wxTimeSpan *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_Abs(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - wxTimeSpan result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxTimeSpan const *)arg1)->Abs(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTimeSpan * resultptr; - resultptr = new wxTimeSpan((wxTimeSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - wxTimeSpan *arg2 = 0 ; - wxTimeSpan *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "diff", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); - result = (wxTimeSpan *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - wxTimeSpan *arg2 = 0 ; - wxTimeSpan *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "diff", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); - result = (wxTimeSpan *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - int arg2 ; - wxTimeSpan *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxTimeSpan &_result_ref = (arg1)->operator *=(arg2); - result = (wxTimeSpan *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - wxTimeSpan *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxTimeSpan &_result_ref = (arg1)->operator -(); - result = (wxTimeSpan *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - wxTimeSpan *arg2 = 0 ; - wxTimeSpan result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTimeSpan * resultptr; - resultptr = new wxTimeSpan((wxTimeSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - wxTimeSpan *arg2 = 0 ; - wxTimeSpan result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTimeSpan * resultptr; - resultptr = new wxTimeSpan((wxTimeSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - int arg2 ; - wxTimeSpan result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxTimeSpan___mul__(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTimeSpan * resultptr; - resultptr = new wxTimeSpan((wxTimeSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - int arg2 ; - wxTimeSpan result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxTimeSpan___rmul__(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTimeSpan * resultptr; - resultptr = new wxTimeSpan((wxTimeSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan___lt__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan___le__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan___gt__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan___ge__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTimeSpan const *)arg1)->IsNull(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_IsPositive(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTimeSpan const *)arg1)->IsPositive(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_IsNegative(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTimeSpan const *)arg1)->IsNegative(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - wxTimeSpan *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "ts", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - wxTimeSpan *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "ts", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - wxTimeSpan *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "t", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxTimeSpan const *)arg1)->GetWeeks(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxTimeSpan const *)arg1)->GetDays(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_GetHours(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxTimeSpan const *)arg1)->GetHours(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxTimeSpan const *)arg1)->GetMinutes(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - wxLongLong result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxTimeSpan const *)arg1)->GetSeconds(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyObject *hi, *lo, *shifter, *shifted; - hi = PyLong_FromLong( (&result)->GetHi() ); - lo = PyLong_FromLong( (&result)->GetLo() ); - shifter = PyLong_FromLong(32); - shifted = PyNumber_Lshift(hi, shifter); - resultobj = PyNumber_Or(shifted, lo); - Py_DECREF(hi); - Py_DECREF(lo); - Py_DECREF(shifter); - Py_DECREF(shifted); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - wxLongLong result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxTimeSpan const *)arg1)->GetMilliseconds(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyObject *hi, *lo, *shifter, *shifted; - hi = PyLong_FromLong( (&result)->GetHi() ); - lo = PyLong_FromLong( (&result)->GetLo() ); - shifter = PyLong_FromLong(32); - shifted = PyNumber_Lshift(hi, shifter); - resultobj = PyNumber_Or(shifted, lo); - Py_DECREF(hi); - Py_DECREF(lo); - Py_DECREF(shifter); - Py_DECREF(shifted); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_Format(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ; - wxString *arg2 = (wxString *) &arg2_defvalue ; - wxString result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "format", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2); - - 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 (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject * TimeSpan_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - int arg2 = (int) 0 ; - int arg3 = (int) 0 ; - int arg4 = (int) 0 ; - wxDateSpan *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan *arg1 = (wxDateSpan *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - wxDateSpan result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "days", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDateSpan::Days(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateSpan * resultptr; - resultptr = new wxDateSpan((wxDateSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDateSpan::Day(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateSpan * resultptr; - resultptr = new wxDateSpan((wxDateSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - wxDateSpan result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "weeks", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDateSpan::Weeks(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateSpan * resultptr; - resultptr = new wxDateSpan((wxDateSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDateSpan::Week(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateSpan * resultptr; - resultptr = new wxDateSpan((wxDateSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan_Months(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - wxDateSpan result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "mon", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDateSpan::Months(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateSpan * resultptr; - resultptr = new wxDateSpan((wxDateSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan_Month(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDateSpan::Month(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateSpan * resultptr; - resultptr = new wxDateSpan((wxDateSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan_Years(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - wxDateSpan result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "years", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDateSpan::Years(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateSpan * resultptr; - resultptr = new wxDateSpan((wxDateSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan_Year(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDateSpan::Year(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateSpan * resultptr; - resultptr = new wxDateSpan((wxDateSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan_SetYears(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan *arg1 = (wxDateSpan *) 0 ; - int arg2 ; - wxDateSpan *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateSpan &_result_ref = (arg1)->SetYears(arg2); - result = (wxDateSpan *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan_SetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan *arg1 = (wxDateSpan *) 0 ; - int arg2 ; - wxDateSpan *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateSpan &_result_ref = (arg1)->SetMonths(arg2); - result = (wxDateSpan *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan_SetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan *arg1 = (wxDateSpan *) 0 ; - int arg2 ; - wxDateSpan *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2); - result = (wxDateSpan *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan_SetDays(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan *arg1 = (wxDateSpan *) 0 ; - int arg2 ; - wxDateSpan *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateSpan &_result_ref = (arg1)->SetDays(arg2); - result = (wxDateSpan *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan_GetYears(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan *arg1 = (wxDateSpan *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDateSpan const *)arg1)->GetYears(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan_GetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan *arg1 = (wxDateSpan *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDateSpan const *)arg1)->GetMonths(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan *arg1 = (wxDateSpan *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDateSpan const *)arg1)->GetWeeks(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan *arg1 = (wxDateSpan *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDateSpan const *)arg1)->GetDays(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan *arg1 = (wxDateSpan *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDateSpan const *)arg1)->GetTotalDays(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan *arg1 = (wxDateSpan *) 0 ; - wxDateSpan *arg2 = 0 ; - wxDateSpan *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); - result = (wxDateSpan *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan *arg1 = (wxDateSpan *) 0 ; - wxDateSpan *arg2 = 0 ; - wxDateSpan *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); - result = (wxDateSpan *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan *arg1 = (wxDateSpan *) 0 ; - wxDateSpan *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateSpan &_result_ref = (arg1)->Neg(); - result = (wxDateSpan *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan *arg1 = (wxDateSpan *) 0 ; - int arg2 ; - wxDateSpan *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "factor", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateSpan &_result_ref = (arg1)->Multiply(arg2); - result = (wxDateSpan *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan *arg1 = (wxDateSpan *) 0 ; - wxDateSpan *arg2 = 0 ; - wxDateSpan *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); - result = (wxDateSpan *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan *arg1 = (wxDateSpan *) 0 ; - wxDateSpan *arg2 = 0 ; - wxDateSpan *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); - result = (wxDateSpan *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan *arg1 = (wxDateSpan *) 0 ; - wxDateSpan *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateSpan &_result_ref = (arg1)->operator -(); - result = (wxDateSpan *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan *arg1 = (wxDateSpan *) 0 ; - int arg2 ; - wxDateSpan *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "factor", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateSpan &_result_ref = (arg1)->operator *=(arg2); - result = (wxDateSpan *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan *arg1 = (wxDateSpan *) 0 ; - wxDateSpan *arg2 = 0 ; - wxDateSpan result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateSpan * resultptr; - resultptr = new wxDateSpan((wxDateSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan *arg1 = (wxDateSpan *) 0 ; - wxDateSpan *arg2 = 0 ; - wxDateSpan result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateSpan * resultptr; - resultptr = new wxDateSpan((wxDateSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan *arg1 = (wxDateSpan *) 0 ; - int arg2 ; - wxDateSpan result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDateSpan___mul__(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateSpan * resultptr; - resultptr = new wxDateSpan((wxDateSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan *arg1 = (wxDateSpan *) 0 ; - int arg2 ; - wxDateSpan result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDateSpan___rmul__(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateSpan * resultptr; - resultptr = new wxDateSpan((wxDateSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan *arg1 = (wxDateSpan *) 0 ; - wxDateSpan *arg2 = (wxDateSpan *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan *arg1 = (wxDateSpan *) 0 ; - wxDateSpan *arg2 = (wxDateSpan *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * DateSpan_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_GetLocalTime(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - long result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)wxGetLocalTime(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GetUTCTime(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - long result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)wxGetUTCTime(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GetCurrentTime(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - long result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)wxGetCurrentTime(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GetLocalTimeMillis(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLongLong result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxGetLocalTimeMillis(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyObject *hi, *lo, *shifter, *shifted; - hi = PyLong_FromLong( (&result)->GetHi() ); - lo = PyLong_FromLong( (&result)->GetLo() ); - shifter = PyLong_FromLong(32); - shifted = PyNumber_Lshift(hi, shifter); - resultobj = PyNumber_Or(shifted, lo); - Py_DECREF(hi); - Py_DECREF(lo); - Py_DECREF(shifter); - Py_DECREF(shifted); - } - return resultobj; - fail: - return NULL; -} - - -static int _wrap_DefaultDateTime_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only."); - return 1; -} - - -static PyObject *_wrap_DefaultDateTime_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0); - return pyobj; -} - - -static PyObject *_wrap_new_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - wxDataFormat *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "type", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail; - arg1 = (wxDataFormatId) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_CustomDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxDataFormat *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "format", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1); - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_delete_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDataFormat *arg1 = (wxDataFormat *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxDataFormat *arg1 = (wxDataFormat *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxDataFormatId) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxDataFormat *arg1 = (wxDataFormat *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxDataFormatId) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxDataFormat *arg1 = (wxDataFormat *) 0 ; - wxDataFormat *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_DataFormat___eq____SWIG_1(self,args); - } - } - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - _v = SWIG_CheckInt(argv[1]); - if (_v) { - return _wrap_DataFormat___eq____SWIG_0(self,args); - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'"); - return NULL; -} - - -static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxDataFormat *arg1 = (wxDataFormat *) 0 ; - wxDataFormat *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_DataFormat___ne____SWIG_1(self,args); - } - } - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - _v = SWIG_CheckInt(argv[1]); - if (_v) { - return _wrap_DataFormat___ne____SWIG_0(self,args); - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'"); - return NULL; -} - - -static PyObject *_wrap_DataFormat_SetType(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDataFormat *arg1 = (wxDataFormat *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "format", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxDataFormatId) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetType((wxDataFormatId )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DataFormat_GetType(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDataFormat *arg1 = (wxDataFormat *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDataFormat const *)arg1)->GetType(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DataFormat_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDataFormat *arg1 = (wxDataFormat *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxDataFormat const *)arg1)->GetId(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DataFormat_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDataFormat *arg1 = (wxDataFormat *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "format", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetId((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject * DataFormat_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_FormatInvalid_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only."); - return 1; -} - - -static PyObject *_wrap_FormatInvalid_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0); - return pyobj; -} - - -static PyObject *_wrap_delete_DataObject(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDataObject *arg1 = (wxDataObject *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDataObject *arg1 = (wxDataObject *) 0 ; - int arg2 = (int) wxDataObject::Get ; - SwigValueWrapper< wxDataFormat > result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "dir", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDataFormat * resultptr; - resultptr = new wxDataFormat((wxDataFormat &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DataObject_GetFormatCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDataObject *arg1 = (wxDataObject *) 0 ; - int arg2 = (int) wxDataObject::Get ; - size_t result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "dir", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DataObject_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDataObject *arg1 = (wxDataObject *) 0 ; - wxDataFormat *arg2 = 0 ; - int arg3 = (int) wxDataObject::Get ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "format",(char *) "dir", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if (obj2) { - arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DataObject_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDataObject *arg1 = (wxDataObject *) 0 ; - wxDataFormat *arg2 = 0 ; - size_t result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "format", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DataObject_GetAllFormats(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDataObject *arg1 = (wxDataObject *) 0 ; - wxDataFormat *arg2 = (wxDataFormat *) 0 ; - int arg3 = (int) wxDataObject::Get ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "formats",(char *) "dir", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxDataObject const *)arg1)->GetAllFormats(arg2,(wxDataObject::Direction )arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DataObject_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDataObject *arg1 = (wxDataObject *) 0 ; - wxDataFormat *arg2 = 0 ; - void *arg3 = (void *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "format",(char *) "buf", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_GetDataHere",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxDataObject const *)arg1)->GetDataHere((wxDataFormat const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDataObject *arg1 = (wxDataObject *) 0 ; - wxDataFormat *arg2 = 0 ; - size_t arg3 ; - void *arg4 = (void *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "format",(char *) "len",(char *) "buf", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - arg3 = (size_t) SWIG_AsUnsignedLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj3,&arg4,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetData((wxDataFormat const &)*arg2,arg3,(void const *)arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * DataObject_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_DataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDataFormat const &arg1_defvalue = wxFormatInvalid ; - wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; - wxDataObjectSimple *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "format", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail; - if (obj0) { - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; - wxDataFormat *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDataFormat const &_result_ref = (arg1)->GetFormat(); - result = (wxDataFormat *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; - wxDataFormat *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "format", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFormat((wxDataFormat const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * DataObjectSimple_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PyDataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDataFormat const &arg1_defvalue = wxFormatInvalid ; - wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; - wxPyDataObjectSimple *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "format", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail; - if (obj0) { - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDataObjectSimple, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * PyDataObjectSimple_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_DataObjectComposite(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDataObjectComposite *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxDataObjectComposite *)new wxDataObjectComposite(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DataObjectComposite_Add(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ; - wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ; - int arg3 = (int) False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "dataObject",(char *) "preferred", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectComposite, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObjectSimple, - SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Add(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * DataObjectComposite_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_TextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString const &arg1_defvalue = wxPyEmptyString ; - wxString *arg1 = (wxString *) &arg1_defvalue ; - wxTextDataObject *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "text", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail; - if (obj0) { - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1); - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; - size_t result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (size_t)(arg1)->GetTextLength(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextDataObject_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetText(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextDataObject_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "text", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetText((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject * TextDataObject_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PyTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString const &arg1_defvalue = wxPyEmptyString ; - wxString *arg1 = (wxString *) &arg1_defvalue ; - wxPyTextDataObject *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "text", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail; - if (obj0) { - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1); - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * PyTextDataObject_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_BitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap const &arg1_defvalue = wxNullBitmap ; - wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; - wxBitmapDataObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "bitmap", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail; - if (obj0) { - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; - wxBitmap result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxBitmapDataObject const *)arg1)->GetBitmap(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxBitmap * resultptr; - resultptr = new wxBitmap((wxBitmap &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; - wxBitmap *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bitmap", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetBitmap((wxBitmap const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * BitmapDataObject_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PyBitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap const &arg1_defvalue = wxNullBitmap ; - wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; - wxPyBitmapDataObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "bitmap", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail; - if (obj0) { - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * PyBitmapDataObject_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_FileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileDataObject *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFileDataObject *)new wxFileDataObject(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; - wxArrayString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxArrayString const &_result_ref = (arg1)->GetFilenames(); - result = (wxArrayString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxArrayString2PyList_helper(*result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileDataObject_AddFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "filename", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AddFile((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject * FileDataObject_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDataFormat const &arg1_defvalue = wxFormatInvalid ; - wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; - wxCustomDataObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "format", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail; - if (obj0) { - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CustomDataObject_TakeData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_TakeData",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxCustomDataObject_TakeData(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CustomDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxCustomDataObject_SetData(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CustomDataObject_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; - size_t result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (size_t)(arg1)->GetSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CustomDataObject_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxCustomDataObject_GetData(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject * CustomDataObject_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_URLDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxURLDataObject *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxURLDataObject *)new wxURLDataObject(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_URLDataObject_GetURL(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetURL(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_URLDataObject_SetURL(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "url", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetURL((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject * URLDataObject_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_MetafileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMetafileDataObject *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMetafileDataObject *)new wxMetafileDataObject(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MetafileDataObject_SetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ; - wxMetafile *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "metafile", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MetafileDataObject_SetMetafile",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMetafile, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMetafile((wxMetafile const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MetafileDataObject_GetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ; - wxMetafile result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetafileDataObject_GetMetafile",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxMetafileDataObject const *)arg1)->GetMetafile(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxMetafile * resultptr; - resultptr = new wxMetafile((wxMetafile &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxMetafile, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * MetafileDataObject_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_IsDragResultOk(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "res", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail; - arg1 = (wxDragResult) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxIsDragResultOk((wxDragResult )arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxCursor const &arg2_defvalue = wxNullCursor ; - wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; - wxCursor const &arg3_defvalue = wxNullCursor ; - wxCursor *arg3 = (wxCursor *) &arg3_defvalue ; - wxCursor const &arg4_defvalue = wxNullCursor ; - wxCursor *arg4 = (wxCursor *) &arg4_defvalue ; - wxPyDropSource *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj2) { - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj3) { - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxCursor, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg4 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxCursor const &)*arg2,(wxCursor const &)*arg3,(wxCursor const &)*arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - int arg4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DropSource_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; - wxDataObject *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetData(*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DropSource_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; - wxDataObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxDataObject *)(arg1)->GetDataObject(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DropSource_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; - int arg2 ; - wxCursor *arg3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "res",(char *) "cursor", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxDragResult) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DropSource_DoDragDrop(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; - int arg2 = (int) wxDrag_CopyOnly ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->DoDragDrop(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "effect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxDragResult) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * DropSource_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDataObject *arg1 = (wxDataObject *) NULL ; - wxPyDropTarget *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "dataObject", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail; - if (obj0) { - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, - SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyDropTarget *)new wxPyDropTarget(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DropTarget_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; - wxDataObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxDataObject *)(arg1)->GetDataObject(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DropTarget_SetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; - wxDataObject *arg2 = (wxDataObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "dataObject", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, - SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDataObject(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (wxDragResult) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (wxDragResult) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_OnLeave(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; - int arg2 ; - int arg3 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_OnDrop(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DropTarget_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetData(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * DropTarget_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_TextDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTextDropTarget *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyTextDropTarget *)new wxPyTextDropTarget(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (wxDragResult) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (wxDragResult) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_OnLeave(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; - int arg2 ; - int arg3 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_OnDrop(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (wxDragResult) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * TextDropTarget_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_FileDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFileDropTarget *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyFileDropTarget *)new wxPyFileDropTarget(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (wxDragResult) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (wxDragResult) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_OnLeave(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; - int arg2 ; - int arg3 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_OnDrop(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (wxDragResult) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * FileDropTarget_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxClipboard *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxClipboard *)new wxClipboard(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxClipboard *arg1 = (wxClipboard *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Clipboard_Open(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxClipboard *arg1 = (wxClipboard *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Open(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Clipboard_Close(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxClipboard *arg1 = (wxClipboard *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Close(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Clipboard_IsOpened(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxClipboard *arg1 = (wxClipboard *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxClipboard const *)arg1)->IsOpened(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Clipboard_AddData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxClipboard *arg1 = (wxClipboard *) 0 ; - wxDataObject *arg2 = (wxDataObject *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, - SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->AddData(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Clipboard_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxClipboard *arg1 = (wxClipboard *) 0 ; - wxDataObject *arg2 = (wxDataObject *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, - SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetData(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Clipboard_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxClipboard *arg1 = (wxClipboard *) 0 ; - wxDataFormat *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "format", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Clipboard_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxClipboard *arg1 = (wxClipboard *) 0 ; - wxDataObject *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetData(*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Clipboard_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxClipboard *arg1 = (wxClipboard *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Clear(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Clipboard_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxClipboard *arg1 = (wxClipboard *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Flush(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxClipboard *arg1 = (wxClipboard *) 0 ; - bool arg2 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "primary", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->UsePrimarySelection(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * Clipboard_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_TheClipboard_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable TheClipboard is read-only."); - return 1; -} - - -static PyObject *_wrap_TheClipboard_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxTheClipboard), SWIGTYPE_p_wxClipboard, 0); - return pyobj; -} - - -static PyObject *_wrap_new_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxClipboard *arg1 = (wxClipboard *) NULL ; - wxClipboardLocker *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "clipboard", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail; - if (obj0) { - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxClipboardLocker *)new wxClipboardLocker(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxClipboardLocker___nonzero__(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * ClipboardLocker_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - int arg2 = (int) 0 ; - int arg3 = (int) 0 ; - int arg4 = (int) 0 ; - wxVideoMode *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVideoMode, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxVideoMode *arg1 = (wxVideoMode *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VideoMode",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VideoMode_Matches(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxVideoMode *arg1 = (wxVideoMode *) 0 ; - wxVideoMode *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VideoMode_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxVideoMode *arg1 = (wxVideoMode *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetWidth",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxVideoMode const *)arg1)->GetWidth(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VideoMode_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxVideoMode *arg1 = (wxVideoMode *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetHeight",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxVideoMode const *)arg1)->GetHeight(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VideoMode_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxVideoMode *arg1 = (wxVideoMode *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetDepth",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxVideoMode const *)arg1)->GetDepth(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VideoMode_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxVideoMode *arg1 = (wxVideoMode *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_IsOk",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxVideoMode const *)arg1)->IsOk(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VideoMode___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxVideoMode *arg1 = (wxVideoMode *) 0 ; - wxVideoMode *arg2 = (wxVideoMode *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VideoMode___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxVideoMode *arg1 = (wxVideoMode *) 0 ; - wxVideoMode *arg2 = (wxVideoMode *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VideoMode_w_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxVideoMode *arg1 = (wxVideoMode *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "w", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_w_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->w = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VideoMode_w_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxVideoMode *arg1 = (wxVideoMode *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_w_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->w); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VideoMode_h_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxVideoMode *arg1 = (wxVideoMode *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "h", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_h_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->h = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VideoMode_h_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxVideoMode *arg1 = (wxVideoMode *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_h_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->h); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VideoMode_bpp_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxVideoMode *arg1 = (wxVideoMode *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bpp", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_bpp_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->bpp = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VideoMode_bpp_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxVideoMode *arg1 = (wxVideoMode *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_bpp_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->bpp); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VideoMode_refresh_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxVideoMode *arg1 = (wxVideoMode *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "refresh", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_refresh_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->refresh = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VideoMode_refresh_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxVideoMode *arg1 = (wxVideoMode *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_refresh_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->refresh); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * VideoMode_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxVideoMode, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_DefaultVideoMode_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable DefaultVideoMode is read-only."); - return 1; -} - - -static PyObject *_wrap_DefaultVideoMode_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0); - return pyobj; -} - - -static PyObject *_wrap_new_Display(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - size_t arg1 = (size_t) 0 ; - wxDisplay *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "index", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (size_t) SWIG_AsUnsignedLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxDisplay *)new wxDisplay(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplay, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_Display(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDisplay *arg1 = (wxDisplay *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Display",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Display_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - size_t result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Display_GetCount",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (size_t)wxDisplay::GetCount(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Display_GetFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint *arg1 = 0 ; - int result; - wxPoint temp1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) goto fail; - { - arg1 = &temp1; - if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Display_GetFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "window", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)Display_GetFromWindow(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Display_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDisplay *arg1 = (wxDisplay *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsOk",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxDisplay const *)arg1)->IsOk(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Display_GetGeometry(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDisplay *arg1 = (wxDisplay *) 0 ; - wxRect result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetGeometry",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxDisplay const *)arg1)->GetGeometry(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxRect * resultptr; - resultptr = new wxRect((wxRect &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Display_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDisplay *arg1 = (wxDisplay *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetName",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxDisplay const *)arg1)->GetName(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Display_IsPrimary(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDisplay *arg1 = (wxDisplay *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsPrimary",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxDisplay const *)arg1)->IsPrimary(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Display_GetModes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDisplay *arg1 = (wxDisplay *) 0 ; - wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ; - wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ; - PyObject *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "mode", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Display_GetCurrentMode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDisplay *arg1 = (wxDisplay *) 0 ; - wxVideoMode result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetCurrentMode",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxDisplay const *)arg1)->GetCurrentMode(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxVideoMode * resultptr; - resultptr = new wxVideoMode((wxVideoMode &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVideoMode, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Display_ChangeMode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDisplay *arg1 = (wxDisplay *) 0 ; - wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ; - wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "mode", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->ChangeMode((wxVideoMode const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Display_ResetMode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDisplay *arg1 = (wxDisplay *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_ResetMode",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ResetMode(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * Display_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxDisplay, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyMethodDef SwigMethods[] = { - { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS }, - { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS }, - { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS }, - { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Usleep", (PyCFunction) _wrap_Usleep, METH_VARARGS | METH_KEYWORDS }, - { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS }, - { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS }, - { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS }, - { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS }, - { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS }, - { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS }, - { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS }, - { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS }, - { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS }, - { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS }, - { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS }, - { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS }, - { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS }, - { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS }, - { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS }, - { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS }, - { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS }, - { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS }, - { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS }, - { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS }, - { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS }, - { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS }, - { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS }, - { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS }, - { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS }, - { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS }, - { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS }, - { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS }, - { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS }, - { (char *)"new_Sound", _wrap_new_Sound, METH_VARARGS }, - { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sound_Create", _wrap_Sound_Create, METH_VARARGS }, - { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sound_Play", _wrap_Sound_Play, METH_VARARGS }, - { (char *)"Sound_PlaySound", _wrap_Sound_PlaySound, METH_VARARGS }, - { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS }, - { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS }, - { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS }, - { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS }, - { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS }, - { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS }, - { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS }, - { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS }, - { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS }, - { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS }, - { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS }, - { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS }, - { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS }, - { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS }, - { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS }, - { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS }, - { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS }, - { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS }, - { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS }, - { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS }, - { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS }, - { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS }, - { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS }, - { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS }, - { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS }, - { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS }, - { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS }, - { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS }, - { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS }, - { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS }, - { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS }, - { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS }, - { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS }, - { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS }, - { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CustomDataObject_TakeData", (PyCFunction) _wrap_CustomDataObject_TakeData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS }, - { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS }, - { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS }, - { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS }, - { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS }, - { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MetafileDataObject_SetMetafile", (PyCFunction) _wrap_MetafileDataObject_SetMetafile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MetafileDataObject_GetMetafile", (PyCFunction) _wrap_MetafileDataObject_GetMetafile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS }, - { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS }, - { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS }, - { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS }, - { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS }, - { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS }, - { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS }, - { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_VideoMode", (PyCFunction) _wrap_delete_VideoMode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VideoMode_GetWidth", (PyCFunction) _wrap_VideoMode_GetWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VideoMode_GetHeight", (PyCFunction) _wrap_VideoMode_GetHeight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VideoMode_GetDepth", (PyCFunction) _wrap_VideoMode_GetDepth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VideoMode_IsOk", (PyCFunction) _wrap_VideoMode_IsOk, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VideoMode_w_set", (PyCFunction) _wrap_VideoMode_w_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VideoMode_w_get", (PyCFunction) _wrap_VideoMode_w_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VideoMode_h_set", (PyCFunction) _wrap_VideoMode_h_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VideoMode_h_get", (PyCFunction) _wrap_VideoMode_h_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VideoMode_bpp_set", (PyCFunction) _wrap_VideoMode_bpp_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VideoMode_bpp_get", (PyCFunction) _wrap_VideoMode_bpp_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VideoMode_refresh_set", (PyCFunction) _wrap_VideoMode_refresh_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VideoMode_refresh_get", (PyCFunction) _wrap_VideoMode_refresh_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS }, - { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_Display", (PyCFunction) _wrap_delete_Display, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Display_GetCount", (PyCFunction) _wrap_Display_GetCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Display_IsOk", (PyCFunction) _wrap_Display_IsOk, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Display_GetGeometry", (PyCFunction) _wrap_Display_GetGeometry, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Display_GetName", (PyCFunction) _wrap_Display_GetName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Display_IsPrimary", (PyCFunction) _wrap_Display_IsPrimary, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Display_GetCurrentMode", (PyCFunction) _wrap_Display_GetCurrentMode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Display_ResetMode", (PyCFunction) _wrap_Display_ResetMode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS }, - { NULL, NULL } -}; - - -/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ - -static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); -} -static void *_p_wxMenuEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxMenuEvent *) x)); -} -static void *_p_wxCloseEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxCloseEvent *) x)); -} -static void *_p_wxMouseEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxMouseEvent *) x)); -} -static void *_p_wxEraseEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxEraseEvent *) x)); -} -static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); -} -static void *_p_wxTimerEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxTimerEvent *) x)); -} -static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); -} -static void *_p_wxScrollEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); -} -static void *_p_wxPyEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxPyEvent *) x)); -} -static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); -} -static void *_p_wxJoystickEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxJoystickEvent *) x)); -} -static void *_p_wxIdleEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxIdleEvent *) x)); -} -static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); -} -static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); -} -static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); -} -static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxIconizeEvent *) x)); -} -static void *_p_wxActivateEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxActivateEvent *) x)); -} -static void *_p_wxSizeEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxSizeEvent *) x)); -} -static void *_p_wxMoveEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxMoveEvent *) x)); -} -static void *_p_wxPaintEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxPaintEvent *) x)); -} -static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); -} -static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); -} -static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); -} -static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); -} -static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); -} -static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); -} -static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); -} -static void *_p_wxFocusEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxFocusEvent *) x)); -} -static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); -} -static void *_p_wxProcessEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxProcessEvent *) x)); -} -static void *_p_wxShowEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxShowEvent *) x)); -} -static void *_p_wxCommandEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxCommandEvent *) x)); -} -static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); -} -static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); -} -static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); -} -static void *_p_wxKeyEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxKeyEvent *) x)); -} -static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); -} -static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) { - return (void *)((wxConfigBase *) ((wxFileConfig *) x)); -} -static void *_p_wxConfigTo_p_wxConfigBase(void *x) { - return (void *)((wxConfigBase *) ((wxConfig *) x)); -} -static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) { - return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); -} -static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) { - return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x)); -} -static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) { - return (void *)((wxDataObject *) ((wxDataObjectSimple *) x)); -} -static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) { - return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); -} -static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) { - return (void *)((wxDataObject *) ((wxDataObjectComposite *) x)); -} -static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) { - return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x)); -} -static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) { - return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x)); -} -static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) { - return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x)); -} -static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) { - return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); -} -static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) { - return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x)); -} -static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) { - return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x)); -} -static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) { - return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x)); -} -static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) { - return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x)); -} -static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) { - return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x)); -} -static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) { - return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); -} -static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) { - return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x)); -} -static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) { - return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x)); -} -static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { - return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x)); -} -static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { - return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); -} -static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) { - return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x)); -} -static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) { - return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x)); -} -static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) { - return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x)); -} -static void *_p_wxControlTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); -} -static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) ((wxWindow *) x)); -} -static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); -} -static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) ((wxPyApp *) x)); -} -static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) ((wxPyTimer *) x)); -} -static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) ((wxValidator *) x)); -} -static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); -} -static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); -} -static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) ((wxMenu *) x)); -} -static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) ((wxPyProcess *) x)); -} -static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) { - return (void *)((wxTipProvider *) ((wxPyTipProvider *) x)); -} -static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxLayoutConstraints *) x)); -} -static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); -} -static void *_p_wxSizerItemTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxSizerItem *) x)); -} -static void *_p_wxScrollEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); -} -static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); -} -static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); -} -static void *_p_wxBoxSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); -} -static void *_p_wxSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxSizer *) x)); -} -static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); -} -static void *_p_wxFileHistoryTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxFileHistory *) x)); -} -static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); -} -static void *_p_wxEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxEvent *) x)); -} -static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); -} -static void *_p_wxGridSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); -} -static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); -} -static void *_p_wxPaintEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); -} -static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); -} -static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); -} -static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); -} -static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); -} -static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); -} -static void *_p_wxControlTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); -} -static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); -} -static void *_p_wxTimerEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x)); -} -static void *_p_wxFSFileTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxFSFile *) x)); -} -static void *_p_wxClipboardTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxClipboard *) x)); -} -static void *_p_wxPySizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); -} -static void *_p_wxPyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); -} -static void *_p_wxNotifyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); -} -static void *_p_wxShowEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); -} -static void *_p_wxToolTipTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxToolTip *) x)); -} -static void *_p_wxMenuItemTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxMenuItem *) x)); -} -static void *_p_wxIdleEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); -} -static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); -} -static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); -} -static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); -} -static void *_p_wxIconizeEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); -} -static void *_p_wxSizeEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); -} -static void *_p_wxMoveEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); -} -static void *_p_wxActivateEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); -} -static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); -} -static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); -} -static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); -} -static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); -} -static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); -} -static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); -} -static void *_p_wxANIHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); -} -static void *_p_wxCURHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); -} -static void *_p_wxICOHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); -} -static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); -} -static void *_p_wxImageHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxImageHandler *) x)); -} -static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); -} -static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxEvtHandler *) x)); -} -static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxAcceleratorTable *) x)); -} -static void *_p_wxImageTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxImage *) x)); -} -static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); -} -static void *_p_wxSystemOptionsTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxSystemOptions *) x)); -} -static void *_p_wxJoystickEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x)); -} -static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); -} -static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); -} -static void *_p_wxKeyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); -} -static void *_p_wxWindowTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); -} -static void *_p_wxMenuTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); -} -static void *_p_wxMenuBarTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); -} -static void *_p_wxPyProcessTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x)); -} -static void *_p_wxFileSystemTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxFileSystem *) x)); -} -static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); -} -static void *_p_wxMenuEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); -} -static void *_p_wxPyAppTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); -} -static void *_p_wxCloseEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); -} -static void *_p_wxMouseEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); -} -static void *_p_wxEraseEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); -} -static void *_p_wxBusyInfoTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxBusyInfo *) x)); -} -static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); -} -static void *_p_wxCommandEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); -} -static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); -} -static void *_p_wxFocusEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); -} -static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); -} -static void *_p_wxProcessEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x)); -} -static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); -} -static void *_p_wxPyValidatorTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); -} -static void *_p_wxValidatorTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); -} -static void *_p_wxPyTimerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x)); -} -static void *_p_wxLogStderrTo_p_wxLog(void *x) { - return (void *)((wxLog *) ((wxLogStderr *) x)); -} -static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) { - return (void *)((wxLog *) ((wxLogTextCtrl *) x)); -} -static void *_p_wxLogWindowTo_p_wxLog(void *x) { - return (void *)((wxLog *) ((wxLogWindow *) x)); -} -static void *_p_wxLogChainTo_p_wxLog(void *x) { - return (void *)((wxLog *) ((wxLogChain *) x)); -} -static void *_p_wxLogGuiTo_p_wxLog(void *x) { - return (void *)((wxLog *) ((wxLogGui *) x)); -} -static void *_p_wxPyLogTo_p_wxLog(void *x) { - return (void *)((wxLog *) ((wxPyLog *) x)); -} -static void *_p_wxControlTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) ((wxControl *) x)); -} -static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); -} -static void *_p_wxMenuBarTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) ((wxMenuBar *) x)); -} -static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) { - return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x)); -} -static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) { - return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x)); -} -static swig_type_info _swigt__p_wxLogChain[] = {{"_p_wxLogChain", 0, "wxLogChain *", 0, 0, 0, 0},{"_p_wxLogChain", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMutexGuiLocker[] = {{"_p_wxMutexGuiLocker", 0, "wxMutexGuiLocker *", 0, 0, 0, 0},{"_p_wxMutexGuiLocker", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMetafile[] = {{"_p_wxMetafile", 0, "wxMetafile *", 0, 0, 0, 0},{"_p_wxMetafile", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFileHistory[] = {{"_p_wxFileHistory", 0, "wxFileHistory *", 0, 0, 0, 0},{"_p_wxFileHistory", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxLog[] = {{"_p_wxLog", 0, "wxLog *", 0, 0, 0, 0},{"_p_wxLogStderr", _p_wxLogStderrTo_p_wxLog, 0, 0, 0, 0, 0},{"_p_wxLogTextCtrl", _p_wxLogTextCtrlTo_p_wxLog, 0, 0, 0, 0, 0},{"_p_wxLogWindow", _p_wxLogWindowTo_p_wxLog, 0, 0, 0, 0, 0},{"_p_wxLogChain", _p_wxLogChainTo_p_wxLog, 0, 0, 0, 0, 0},{"_p_wxLogGui", _p_wxLogGuiTo_p_wxLog, 0, 0, 0, 0, 0},{"_p_wxPyLog", _p_wxPyLogTo_p_wxLog, 0, 0, 0, 0, 0},{"_p_wxLog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxDateTime__TimeZone[] = {{"_p_wxDateTime__TimeZone", 0, "wxDateTime::TimeZone *", 0, 0, 0, 0},{"_p_wxDateTime__TimeZone", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMenu[] = {{"_p_wxMenu", 0, "wxMenu *", 0, 0, 0, 0},{"_p_wxMenu", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxTimerEvent", _p_wxTimerEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxJoystickEvent", _p_wxJoystickEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxProcessEvent", _p_wxProcessEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0, 0, 0, 0},{"_p_wxFileConfig", _p_wxFileConfigTo_p_wxConfigBase, 0, 0, 0, 0, 0},{"_p_wxConfigBase", 0, 0, 0, 0, 0, 0},{"_p_wxConfig", _p_wxConfigTo_p_wxConfigBase, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxDisplay[] = {{"_p_wxDisplay", 0, "wxDisplay *", 0, 0, 0, 0},{"_p_wxDisplay", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFileType[] = {{"_p_wxFileType", 0, "wxFileType *", 0, 0, 0, 0},{"_p_wxFileType", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxLogGui[] = {{"_p_wxLogGui", 0, "wxLogGui *", 0, 0, 0, 0},{"_p_wxLogGui", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0, 0, 0, 0},{"_p_wxFont", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxDataFormat[] = {{"_p_wxDataFormat", 0, "wxDataFormat *", 0, 0, 0, 0},{"_p_wxDataFormat", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxTimerEvent[] = {{"_p_wxTimerEvent", 0, "wxTimerEvent *", 0, 0, 0, 0},{"_p_wxTimerEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxCaret[] = {{"_p_wxCaret", 0, "wxCaret *", 0, 0, 0, 0},{"_p_wxCaret", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0, 0, 0, 0},{"_p_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0, 0, 0, 0},{"_p_wxSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxClipboard[] = {{"_p_wxClipboard", 0, "wxClipboard *", 0, 0, 0, 0},{"_p_wxClipboard", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxStopWatch[] = {{"_p_wxStopWatch", 0, "wxStopWatch *", 0, 0, 0, 0},{"_p_wxStopWatch", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0, 0, 0, 0},{"_p_wxDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxClipboardLocker[] = {{"_p_wxClipboardLocker", 0, "wxClipboardLocker *", 0, 0, 0, 0},{"_p_wxClipboardLocker", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0, 0, 0, 0},{"_p_wxIcon", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxLogStderr[] = {{"_p_wxLogStderr", 0, "wxLogStderr *", 0, 0, 0, 0},{"_p_wxLogStderr", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxLogTextCtrl[] = {{"_p_wxLogTextCtrl", 0, "wxLogTextCtrl *", 0, 0, 0, 0},{"_p_wxLogTextCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxTextCtrl[] = {{"_p_wxTextCtrl", 0, "wxTextCtrl *", 0, 0, 0, 0},{"_p_wxTextCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxBusyCursor[] = {{"_p_wxBusyCursor", 0, "wxBusyCursor *", 0, 0, 0, 0},{"_p_wxBusyCursor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyTextDataObject[] = {{"_p_wxPyTextDataObject", 0, "wxPyTextDataObject *", 0, 0, 0, 0},{"_p_wxPyTextDataObject", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxBitmapDataObject[] = {{"_p_wxBitmapDataObject", 0, "wxBitmapDataObject *", 0, 0, 0, 0},{"_p_wxBitmapDataObject", 0, 0, 0, 0, 0, 0},{"_p_wxPyBitmapDataObject", _p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxTextDataObject[] = {{"_p_wxTextDataObject", 0, "wxTextDataObject *", 0, 0, 0, 0},{"_p_wxTextDataObject", 0, 0, 0, 0, 0, 0},{"_p_wxPyTextDataObject", _p_wxPyTextDataObjectTo_p_wxTextDataObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxDataObject[] = {{"_p_wxDataObject", 0, "wxDataObject *", 0, 0, 0, 0},{"_p_wxDataObjectSimple", _p_wxDataObjectSimpleTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxPyDataObjectSimple", _p_wxPyDataObjectSimpleTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxDataObjectComposite", _p_wxDataObjectCompositeTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxDataObject", 0, 0, 0, 0, 0, 0},{"_p_wxTextDataObject", _p_wxTextDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxPyTextDataObject", _p_wxPyTextDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxBitmapDataObject", _p_wxBitmapDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxPyBitmapDataObject", _p_wxPyBitmapDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxFileDataObject", _p_wxFileDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxCustomDataObject", _p_wxCustomDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxMetafileDataObject", _p_wxMetafileDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxURLDataObject", _p_wxURLDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyBitmapDataObject[] = {{"_p_wxPyBitmapDataObject", 0, "wxPyBitmapDataObject *", 0, 0, 0, 0},{"_p_wxPyBitmapDataObject", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFileDataObject[] = {{"_p_wxFileDataObject", 0, "wxFileDataObject *", 0, 0, 0, 0},{"_p_wxFileDataObject", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxCustomDataObject[] = {{"_p_wxCustomDataObject", 0, "wxCustomDataObject *", 0, 0, 0, 0},{"_p_wxCustomDataObject", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxURLDataObject[] = {{"_p_wxURLDataObject", 0, "wxURLDataObject *", 0, 0, 0, 0},{"_p_wxURLDataObject", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMetafileDataObject[] = {{"_p_wxMetafileDataObject", 0, "wxMetafileDataObject *", 0, 0, 0, 0},{"_p_wxMetafileDataObject", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSound[] = {{"_p_wxSound", 0, "wxSound *", 0, 0, 0, 0},{"_p_wxSound", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxTimerRunner[] = {{"_p_wxTimerRunner", 0, "wxTimerRunner *", 0, 0, 0, 0},{"_p_wxTimerRunner", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxLogWindow[] = {{"_p_wxLogWindow", 0, "wxLogWindow *", 0, 0, 0, 0},{"_p_wxLogWindow", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxTimeSpan[] = {{"_p_wxTimeSpan", 0, "wxTimeSpan *", 0, 0, 0, 0},{"_p_wxTimeSpan", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0, 0, 0, 0},{"_p_wxArrayString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxWindowDisabler[] = {{"_p_wxWindowDisabler", 0, "wxWindowDisabler *", 0, 0, 0, 0},{"_p_wxWindowDisabler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxToolTip[] = {{"_p_wxToolTip", 0, "wxToolTip *", 0, 0, 0, 0},{"_p_wxToolTip", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxDataObjectComposite[] = {{"_p_wxDataObjectComposite", 0, "wxDataObjectComposite *", 0, 0, 0, 0},{"_p_wxDataObjectComposite", 0, 0, 0, 0, 0, 0},{"_p_wxURLDataObject", _p_wxURLDataObjectTo_p_wxDataObjectComposite, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFileConfig[] = {{"_p_wxFileConfig", 0, "wxFileConfig *", 0, 0, 0, 0},{"_p_wxFileConfig", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSystemSettings[] = {{"_p_wxSystemSettings", 0, "wxSystemSettings *", 0, 0, 0, 0},{"_p_wxSystemSettings", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxVideoMode[] = {{"_p_wxVideoMode", 0, "wxVideoMode *", 0, 0, 0, 0},{"_p_wxVideoMode", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyDataObjectSimple[] = {{"_p_wxPyDataObjectSimple", 0, "wxPyDataObjectSimple *", 0, 0, 0, 0},{"_p_wxPyDataObjectSimple", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxDataObjectSimple[] = {{"_p_wxDataObjectSimple", 0, "wxDataObjectSimple *", 0, 0, 0, 0},{"_p_wxDataObjectSimple", 0, 0, 0, 0, 0, 0},{"_p_wxPyDataObjectSimple", _p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxTextDataObject", _p_wxTextDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxPyTextDataObject", _p_wxPyTextDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxBitmapDataObject", _p_wxBitmapDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxPyBitmapDataObject", _p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxFileDataObject", _p_wxFileDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxCustomDataObject", _p_wxCustomDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxMetafileDataObject", _p_wxMetafileDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyTimer", _p_wxPyTimerTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyProcess", _p_wxPyProcessTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0, 0, 0, 0},{"_p_wxRect", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSingleInstanceChecker[] = {{"_p_wxSingleInstanceChecker", 0, "wxSingleInstanceChecker *", 0, 0, 0, 0},{"_p_wxSingleInstanceChecker", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFileTypeInfo[] = {{"_p_wxFileTypeInfo", 0, "wxFileTypeInfo *", 0, 0, 0, 0},{"_p_wxFileTypeInfo", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFrame[] = {{"_p_wxFrame", 0, "wxFrame *", 0, 0, 0, 0},{"_p_wxFrame", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxTimer[] = {{"_p_wxTimer", 0, "wxTimer *", 0, 0, 0, 0},{"_p_wxTimer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMimeTypesManager[] = {{"_p_wxMimeTypesManager", 0, "wxMimeTypesManager *", 0, 0, 0, 0},{"_p_wxMimeTypesManager", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyArtProvider[] = {{"_p_wxPyArtProvider", 0, "wxPyArtProvider *", 0, 0, 0, 0},{"_p_wxPyArtProvider", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyTipProvider[] = {{"_p_wxPyTipProvider", 0, "wxPyTipProvider *", 0, 0, 0, 0},{"_p_wxPyTipProvider", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxTipProvider[] = {{"_p_wxTipProvider", 0, "wxTipProvider *", 0, 0, 0, 0},{"_p_wxTipProvider", 0, 0, 0, 0, 0, 0},{"_p_wxPyTipProvider", _p_wxPyTipProviderTo_p_wxTipProvider, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxJoystick[] = {{"_p_wxJoystick", 0, "wxJoystick *", 0, 0, 0, 0},{"_p_wxJoystick", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSystemOptions[] = {{"_p_wxSystemOptions", 0, "wxSystemOptions *", 0, 0, 0, 0},{"_p_wxSystemOptions", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0, 0, 0, 0},{"_p_wxPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxJoystickEvent[] = {{"_p_wxJoystickEvent", 0, "wxJoystickEvent *", 0, 0, 0, 0},{"_p_wxJoystickEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0, 0, 0, 0},{"_p_wxCursor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileHistory", _p_wxFileHistoryTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTimerEvent", _p_wxTimerEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxClipboard", _p_wxClipboardTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolTip", _p_wxToolTipTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSystemOptions", _p_wxSystemOptionsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJoystickEvent", _p_wxJoystickEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyProcess", _p_wxPyProcessTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBusyInfo", _p_wxBusyInfoTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxProcessEvent", _p_wxProcessEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyTimer", _p_wxPyTimerTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxOutputStream[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0, 0, 0, 0},{"_p_wxOutputStream", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxDateTime[] = {{"_p_wxDateTime", 0, "wxDateTime *", 0, 0, 0, 0},{"_p_wxDateTime", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyDropSource[] = {{"_p_wxPyDropSource", 0, "wxPyDropSource *", 0, 0, 0, 0},{"_p_wxPyDropSource", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0, 0, 0, 0},{"_p_wxString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyProcess[] = {{"_p_wxPyProcess", 0, "wxPyProcess *", 0, 0, 0, 0},{"_p_wxPyProcess", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0, 0, 0, 0},{"_p_wxBitmap", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxConfig[] = {{"_p_wxConfig", 0, "wxConfig *", 0, 0, 0, 0},{"_p_wxConfig", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxChar[] = {{"_p_wxChar", 0, "wxChar *", 0, 0, 0, 0},{"_p_wxChar", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxBusyInfo[] = {{"_p_wxBusyInfo", 0, "wxBusyInfo *", 0, 0, 0, 0},{"_p_wxBusyInfo", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyDropTarget[] = {{"_p_wxPyDropTarget", 0, "wxPyDropTarget *", 0, 0, 0, 0},{"_p_wxPyDropTarget", 0, 0, 0, 0, 0, 0},{"_p_wxPyTextDropTarget", _p_wxPyTextDropTargetTo_p_wxPyDropTarget, 0, 0, 0, 0, 0},{"_p_wxPyFileDropTarget", _p_wxPyFileDropTargetTo_p_wxPyDropTarget, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyTextDropTarget[] = {{"_p_wxPyTextDropTarget", 0, "wxPyTextDropTarget *", 0, 0, 0, 0},{"_p_wxPyTextDropTarget", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyFileDropTarget[] = {{"_p_wxPyFileDropTarget", 0, "wxPyFileDropTarget *", 0, 0, 0, 0},{"_p_wxPyFileDropTarget", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxProcessEvent[] = {{"_p_wxProcessEvent", 0, "wxProcessEvent *", 0, 0, 0, 0},{"_p_wxProcessEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyLog[] = {{"_p_wxPyLog", 0, "wxPyLog *", 0, 0, 0, 0},{"_p_wxPyLog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxLogNull[] = {{"_p_wxLogNull", 0, "wxLogNull *", 0, 0, 0, 0},{"_p_wxLogNull", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0, 0, 0, 0},{"_p_wxColour", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxByte[] = {{"_p_wxByte", 0, "wxByte *", 0, 0, 0, 0},{"_p_wxByte", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxConfigPathChanger[] = {{"_p_wxConfigPathChanger", 0, "wxConfigPathChanger *", 0, 0, 0, 0},{"_p_wxConfigPathChanger", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyTimer[] = {{"_p_wxPyTimer", 0, "wxPyTimer *", 0, 0, 0, 0},{"_p_wxPyTimer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxDateSpan[] = {{"_p_wxDateSpan", 0, "wxDateSpan *", 0, 0, 0, 0},{"_p_wxDateSpan", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; - -static swig_type_info *swig_types_initial[] = { -_swigt__p_wxLogChain, -_swigt__p_wxMutexGuiLocker, -_swigt__p_wxMetafile, -_swigt__p_wxFileHistory, -_swigt__p_wxLog, -_swigt__p_wxDateTime__TimeZone, -_swigt__p_wxMenu, -_swigt__p_wxEvent, -_swigt__p_wxConfigBase, -_swigt__p_wxDisplay, -_swigt__p_wxFileType, -_swigt__p_wxLogGui, -_swigt__p_wxFont, -_swigt__p_wxDataFormat, -_swigt__p_wxTimerEvent, -_swigt__p_wxCaret, -_swigt__p_int, -_swigt__p_wxSize, -_swigt__p_wxClipboard, -_swigt__p_wxStopWatch, -_swigt__p_wxDC, -_swigt__p_wxClipboardLocker, -_swigt__p_wxIcon, -_swigt__p_wxLogStderr, -_swigt__p_wxLogTextCtrl, -_swigt__p_wxTextCtrl, -_swigt__p_wxBusyCursor, -_swigt__p_wxPyTextDataObject, -_swigt__p_wxBitmapDataObject, -_swigt__p_wxTextDataObject, -_swigt__p_wxDataObject, -_swigt__p_wxPyBitmapDataObject, -_swigt__p_wxFileDataObject, -_swigt__p_wxCustomDataObject, -_swigt__p_wxURLDataObject, -_swigt__p_wxMetafileDataObject, -_swigt__p_wxSound, -_swigt__p_wxTimerRunner, -_swigt__p_wxLogWindow, -_swigt__p_wxTimeSpan, -_swigt__p_wxArrayString, -_swigt__p_wxWindowDisabler, -_swigt__p_wxToolTip, -_swigt__p_wxDataObjectComposite, -_swigt__p_wxFileConfig, -_swigt__p_wxSystemSettings, -_swigt__p_wxVideoMode, -_swigt__p_wxPyDataObjectSimple, -_swigt__p_wxDataObjectSimple, -_swigt__p_wxEvtHandler, -_swigt__p_wxRect, -_swigt__p_char, -_swigt__p_wxSingleInstanceChecker, -_swigt__p_wxFileTypeInfo, -_swigt__p_wxFrame, -_swigt__p_wxTimer, -_swigt__p_wxMimeTypesManager, -_swigt__p_wxPyArtProvider, -_swigt__p_wxPyTipProvider, -_swigt__p_wxTipProvider, -_swigt__p_wxJoystick, -_swigt__p_wxSystemOptions, -_swigt__p_wxPoint, -_swigt__p_wxJoystickEvent, -_swigt__p_wxCursor, -_swigt__p_wxObject, -_swigt__p_wxOutputStream, -_swigt__p_wxDateTime, -_swigt__p_wxPyDropSource, -_swigt__p_wxWindow, -_swigt__p_wxString, -_swigt__p_wxPyProcess, -_swigt__p_wxBitmap, -_swigt__p_wxConfig, -_swigt__p_wxChar, -_swigt__p_wxBusyInfo, -_swigt__p_wxPyDropTarget, -_swigt__p_wxPyTextDropTarget, -_swigt__p_wxPyFileDropTarget, -_swigt__p_wxProcessEvent, -_swigt__p_wxPyLog, -_swigt__p_wxLogNull, -_swigt__p_wxColour, -_swigt__p_wxByte, -_swigt__p_wxConfigPathChanger, -_swigt__p_wxPyTimer, -_swigt__p_wxDateSpan, -0 -}; - - -/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ - -static swig_const_info swig_const_table[] = { -{ SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char}, -{ SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char}, -{ SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char}, -{ SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char}, -{ SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char}, -{0}}; - -#ifdef __cplusplus -} -#endif - -#ifdef __cplusplus -extern "C" -#endif -SWIGEXPORT(void) SWIG_init(void) { - static PyObject *SWIG_globals = 0; - static int typeinit = 0; - PyObject *m, *d; - int i; - if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); - m = Py_InitModule((char *) SWIG_name, SwigMethods); - d = PyModule_GetDict(m); - - if (!typeinit) { - for (i = 0; swig_types_initial[i]; i++) { - swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); - } - typeinit = 1; - } - SWIG_InstallConstants(d,swig_const_table); - - PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_OEM_FIXED_FONT)); - PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_FromInt((int)wxSYS_ANSI_FIXED_FONT)); - PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_FromInt((int)wxSYS_ANSI_VAR_FONT)); - PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FONT)); - PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_FromInt((int)wxSYS_DEVICE_DEFAULT_FONT)); - PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_FromInt((int)wxSYS_DEFAULT_PALETTE)); - PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FIXED_FONT)); - PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_FromInt((int)wxSYS_DEFAULT_GUI_FONT)); - PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_FromInt((int)wxSYS_ICONTITLE_FONT)); - PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_FromInt((int)wxSYS_COLOUR_SCROLLBAR)); - PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_FromInt((int)wxSYS_COLOUR_BACKGROUND)); - PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_FromInt((int)wxSYS_COLOUR_DESKTOP)); - PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVECAPTION)); - PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTION)); - PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_FromInt((int)wxSYS_COLOUR_MENU)); - PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_FromInt((int)wxSYS_COLOUR_WINDOW)); - PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWFRAME)); - PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_FromInt((int)wxSYS_COLOUR_MENUTEXT)); - PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWTEXT)); - PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_CAPTIONTEXT)); - PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVEBORDER)); - PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVEBORDER)); - PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_FromInt((int)wxSYS_COLOUR_APPWORKSPACE)); - PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHT)); - PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHTTEXT)); - PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_FromInt((int)wxSYS_COLOUR_BTNFACE)); - PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_FromInt((int)wxSYS_COLOUR_3DFACE)); - PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_BTNSHADOW)); - PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DSHADOW)); - PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_FromInt((int)wxSYS_COLOUR_GRAYTEXT)); - PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_FromInt((int)wxSYS_COLOUR_BTNTEXT)); - PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTIONTEXT)); - PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHIGHLIGHT)); - PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHILIGHT)); - PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHIGHLIGHT)); - PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHILIGHT)); - PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DDKSHADOW)); - PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DLIGHT)); - PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INFOTEXT)); - PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_FromInt((int)wxSYS_COLOUR_INFOBK)); - PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_FromInt((int)wxSYS_COLOUR_LISTBOX)); - PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HOTLIGHT)); - PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTACTIVECAPTION)); - PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTINACTIVECAPTION)); - PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_MENUHILIGHT)); - PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_FromInt((int)wxSYS_COLOUR_MENUBAR)); - PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_FromInt((int)wxSYS_COLOUR_MAX)); - PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_FromInt((int)wxSYS_MOUSE_BUTTONS)); - PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_FromInt((int)wxSYS_BORDER_X)); - PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_FromInt((int)wxSYS_BORDER_Y)); - PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_FromInt((int)wxSYS_CURSOR_X)); - PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_FromInt((int)wxSYS_CURSOR_Y)); - PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_FromInt((int)wxSYS_DCLICK_X)); - PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_FromInt((int)wxSYS_DCLICK_Y)); - PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_FromInt((int)wxSYS_DRAG_X)); - PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_FromInt((int)wxSYS_DRAG_Y)); - PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_FromInt((int)wxSYS_EDGE_X)); - PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_FromInt((int)wxSYS_EDGE_Y)); - PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_X)); - PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_Y)); - PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_FromInt((int)wxSYS_HTHUMB_X)); - PyDict_SetItemString(d,"SYS_ICON_X", SWIG_FromInt((int)wxSYS_ICON_X)); - PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_FromInt((int)wxSYS_ICON_Y)); - PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_FromInt((int)wxSYS_ICONSPACING_X)); - PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_FromInt((int)wxSYS_ICONSPACING_Y)); - PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_FromInt((int)wxSYS_WINDOWMIN_X)); - PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_FromInt((int)wxSYS_WINDOWMIN_Y)); - PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_FromInt((int)wxSYS_SCREEN_X)); - PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_FromInt((int)wxSYS_SCREEN_Y)); - PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_FromInt((int)wxSYS_FRAMESIZE_X)); - PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_FromInt((int)wxSYS_FRAMESIZE_Y)); - PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_FromInt((int)wxSYS_SMALLICON_X)); - PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_FromInt((int)wxSYS_SMALLICON_Y)); - PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_FromInt((int)wxSYS_HSCROLL_Y)); - PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_FromInt((int)wxSYS_VSCROLL_X)); - PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_X)); - PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_Y)); - PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_FromInt((int)wxSYS_VTHUMB_Y)); - PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_FromInt((int)wxSYS_CAPTION_Y)); - PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_FromInt((int)wxSYS_MENU_Y)); - PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_FromInt((int)wxSYS_NETWORK_PRESENT)); - PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_FromInt((int)wxSYS_PENWINDOWS_PRESENT)); - PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_FromInt((int)wxSYS_SHOW_SOUNDS)); - PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_FromInt((int)wxSYS_SWAP_BUTTONS)); - PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_FromInt((int)wxSYS_CAN_DRAW_FRAME_DECORATIONS)); - PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_FromInt((int)wxSYS_CAN_ICONIZE_FRAME)); - PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_FromInt((int)wxSYS_SCREEN_NONE)); - PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_FromInt((int)wxSYS_SCREEN_TINY)); - PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_FromInt((int)wxSYS_SCREEN_PDA)); - PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_FromInt((int)wxSYS_SCREEN_SMALL)); - PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_FromInt((int)wxSYS_SCREEN_DESKTOP)); - PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); - SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set); - SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set); - SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set); - PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_FromInt((int)wxSHUTDOWN_POWEROFF)); - PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_FromInt((int)wxSHUTDOWN_REBOOT)); - PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_FromInt((int)wxTIMER_CONTINUOUS)); - PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_FromInt((int)wxTIMER_ONE_SHOT)); - PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER)); - PyDict_SetItemString(d,"LOG_FatalError", SWIG_FromInt((int)wxLOG_FatalError)); - PyDict_SetItemString(d,"LOG_Error", SWIG_FromInt((int)wxLOG_Error)); - PyDict_SetItemString(d,"LOG_Warning", SWIG_FromInt((int)wxLOG_Warning)); - PyDict_SetItemString(d,"LOG_Message", SWIG_FromInt((int)wxLOG_Message)); - PyDict_SetItemString(d,"LOG_Status", SWIG_FromInt((int)wxLOG_Status)); - PyDict_SetItemString(d,"LOG_Info", SWIG_FromInt((int)wxLOG_Info)); - PyDict_SetItemString(d,"LOG_Debug", SWIG_FromInt((int)wxLOG_Debug)); - PyDict_SetItemString(d,"LOG_Trace", SWIG_FromInt((int)wxLOG_Trace)); - PyDict_SetItemString(d,"LOG_Progress", SWIG_FromInt((int)wxLOG_Progress)); - PyDict_SetItemString(d,"LOG_User", SWIG_FromInt((int)wxLOG_User)); - PyDict_SetItemString(d,"LOG_Max", SWIG_FromInt((int)wxLOG_Max)); - PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc")); - PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages")); - PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc")); - PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount")); - PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole")); - PyDict_SetItemString(d,"TraceMemAlloc", SWIG_FromInt((int)0x0001)); - PyDict_SetItemString(d,"TraceMessages", SWIG_FromInt((int)0x0002)); - PyDict_SetItemString(d,"TraceResAlloc", SWIG_FromInt((int)0x0004)); - PyDict_SetItemString(d,"TraceRefCount", SWIG_FromInt((int)0x0008)); - PyDict_SetItemString(d,"TraceOleCalls", SWIG_FromInt((int)0x0100)); - PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_FromInt((int)wxPROCESS_DEFAULT)); - PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_FromInt((int)wxPROCESS_REDIRECT)); - PyDict_SetItemString(d,"KILL_OK", SWIG_FromInt((int)wxKILL_OK)); - PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_FromInt((int)wxKILL_BAD_SIGNAL)); - PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_FromInt((int)wxKILL_ACCESS_DENIED)); - PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_FromInt((int)wxKILL_NO_PROCESS)); - PyDict_SetItemString(d,"KILL_ERROR", SWIG_FromInt((int)wxKILL_ERROR)); - PyDict_SetItemString(d,"SIGNONE", SWIG_FromInt((int)wxSIGNONE)); - PyDict_SetItemString(d,"SIGHUP", SWIG_FromInt((int)wxSIGHUP)); - PyDict_SetItemString(d,"SIGINT", SWIG_FromInt((int)wxSIGINT)); - PyDict_SetItemString(d,"SIGQUIT", SWIG_FromInt((int)wxSIGQUIT)); - PyDict_SetItemString(d,"SIGILL", SWIG_FromInt((int)wxSIGILL)); - PyDict_SetItemString(d,"SIGTRAP", SWIG_FromInt((int)wxSIGTRAP)); - PyDict_SetItemString(d,"SIGABRT", SWIG_FromInt((int)wxSIGABRT)); - PyDict_SetItemString(d,"SIGIOT", SWIG_FromInt((int)wxSIGIOT)); - PyDict_SetItemString(d,"SIGEMT", SWIG_FromInt((int)wxSIGEMT)); - PyDict_SetItemString(d,"SIGFPE", SWIG_FromInt((int)wxSIGFPE)); - PyDict_SetItemString(d,"SIGKILL", SWIG_FromInt((int)wxSIGKILL)); - PyDict_SetItemString(d,"SIGBUS", SWIG_FromInt((int)wxSIGBUS)); - PyDict_SetItemString(d,"SIGSEGV", SWIG_FromInt((int)wxSIGSEGV)); - PyDict_SetItemString(d,"SIGSYS", SWIG_FromInt((int)wxSIGSYS)); - PyDict_SetItemString(d,"SIGPIPE", SWIG_FromInt((int)wxSIGPIPE)); - PyDict_SetItemString(d,"SIGALRM", SWIG_FromInt((int)wxSIGALRM)); - PyDict_SetItemString(d,"SIGTERM", SWIG_FromInt((int)wxSIGTERM)); - PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS)); - PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_FromInt((int)wxEXEC_ASYNC)); - PyDict_SetItemString(d,"EXEC_SYNC", SWIG_FromInt((int)wxEXEC_SYNC)); - PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_FromInt((int)wxEXEC_NOHIDE)); - PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_FromInt((int)wxEXEC_MAKE_GROUP_LEADER)); - - wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess"); - - PyDict_SetItemString(d,"JOYSTICK1", SWIG_FromInt((int)wxJOYSTICK1)); - PyDict_SetItemString(d,"JOYSTICK2", SWIG_FromInt((int)wxJOYSTICK2)); - PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_FromInt((int)wxJOY_BUTTON_ANY)); - PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_FromInt((int)wxJOY_BUTTON1)); - PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_FromInt((int)wxJOY_BUTTON2)); - PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_FromInt((int)wxJOY_BUTTON3)); - PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_FromInt((int)wxJOY_BUTTON4)); - PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN)); - PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP)); - PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE)); - PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE)); - PyDict_SetItemString(d,"SOUND_SYNC", SWIG_FromInt((int)wxSOUND_SYNC)); - PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_FromInt((int)wxSOUND_ASYNC)); - PyDict_SetItemString(d,"SOUND_LOOP", SWIG_FromInt((int)wxSOUND_LOOP)); - PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_FromInt((int)wxMAILCAP_STANDARD)); - PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_FromInt((int)wxMAILCAP_NETSCAPE)); - PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_FromInt((int)wxMAILCAP_KDE)); - PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_FromInt((int)wxMAILCAP_GNOME)); - PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_FromInt((int)wxMAILCAP_ALL)); - SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set); - - wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider"); - - PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_LOCAL_FILE)); - PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_GLOBAL_FILE)); - PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_FromInt((int)wxCONFIG_USE_RELATIVE_PATH)); - PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_FromInt((int)wxCONFIG_USE_NO_ESCAPE_CHARACTERS)); - PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_FromInt((int)wxConfigBase::Type_Unknown)); - PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_FromInt((int)wxConfigBase::Type_String)); - PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_FromInt((int)wxConfigBase::Type_Boolean)); - PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_FromInt((int)wxConfigBase::Type_Integer)); - PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_FromInt((int)wxConfigBase::Type_Float)); - SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set); - SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set); - PyDict_SetItemString(d,"DateTime_Local", SWIG_FromInt((int)wxDateTime::Local)); - PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_FromInt((int)wxDateTime::GMT_12)); - PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_FromInt((int)wxDateTime::GMT_11)); - PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_FromInt((int)wxDateTime::GMT_10)); - PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_FromInt((int)wxDateTime::GMT_9)); - PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_FromInt((int)wxDateTime::GMT_8)); - PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_FromInt((int)wxDateTime::GMT_7)); - PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_FromInt((int)wxDateTime::GMT_6)); - PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_FromInt((int)wxDateTime::GMT_5)); - PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_FromInt((int)wxDateTime::GMT_4)); - PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_FromInt((int)wxDateTime::GMT_3)); - PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_FromInt((int)wxDateTime::GMT_2)); - PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_FromInt((int)wxDateTime::GMT_1)); - PyDict_SetItemString(d,"DateTime_GMT0", SWIG_FromInt((int)wxDateTime::GMT0)); - PyDict_SetItemString(d,"DateTime_GMT1", SWIG_FromInt((int)wxDateTime::GMT1)); - PyDict_SetItemString(d,"DateTime_GMT2", SWIG_FromInt((int)wxDateTime::GMT2)); - PyDict_SetItemString(d,"DateTime_GMT3", SWIG_FromInt((int)wxDateTime::GMT3)); - PyDict_SetItemString(d,"DateTime_GMT4", SWIG_FromInt((int)wxDateTime::GMT4)); - PyDict_SetItemString(d,"DateTime_GMT5", SWIG_FromInt((int)wxDateTime::GMT5)); - PyDict_SetItemString(d,"DateTime_GMT6", SWIG_FromInt((int)wxDateTime::GMT6)); - PyDict_SetItemString(d,"DateTime_GMT7", SWIG_FromInt((int)wxDateTime::GMT7)); - PyDict_SetItemString(d,"DateTime_GMT8", SWIG_FromInt((int)wxDateTime::GMT8)); - PyDict_SetItemString(d,"DateTime_GMT9", SWIG_FromInt((int)wxDateTime::GMT9)); - PyDict_SetItemString(d,"DateTime_GMT10", SWIG_FromInt((int)wxDateTime::GMT10)); - PyDict_SetItemString(d,"DateTime_GMT11", SWIG_FromInt((int)wxDateTime::GMT11)); - PyDict_SetItemString(d,"DateTime_GMT12", SWIG_FromInt((int)wxDateTime::GMT12)); - PyDict_SetItemString(d,"DateTime_WET", SWIG_FromInt((int)wxDateTime::WET)); - PyDict_SetItemString(d,"DateTime_WEST", SWIG_FromInt((int)wxDateTime::WEST)); - PyDict_SetItemString(d,"DateTime_CET", SWIG_FromInt((int)wxDateTime::CET)); - PyDict_SetItemString(d,"DateTime_CEST", SWIG_FromInt((int)wxDateTime::CEST)); - PyDict_SetItemString(d,"DateTime_EET", SWIG_FromInt((int)wxDateTime::EET)); - PyDict_SetItemString(d,"DateTime_EEST", SWIG_FromInt((int)wxDateTime::EEST)); - PyDict_SetItemString(d,"DateTime_MSK", SWIG_FromInt((int)wxDateTime::MSK)); - PyDict_SetItemString(d,"DateTime_MSD", SWIG_FromInt((int)wxDateTime::MSD)); - PyDict_SetItemString(d,"DateTime_AST", SWIG_FromInt((int)wxDateTime::AST)); - PyDict_SetItemString(d,"DateTime_ADT", SWIG_FromInt((int)wxDateTime::ADT)); - PyDict_SetItemString(d,"DateTime_EST", SWIG_FromInt((int)wxDateTime::EST)); - PyDict_SetItemString(d,"DateTime_EDT", SWIG_FromInt((int)wxDateTime::EDT)); - PyDict_SetItemString(d,"DateTime_CST", SWIG_FromInt((int)wxDateTime::CST)); - PyDict_SetItemString(d,"DateTime_CDT", SWIG_FromInt((int)wxDateTime::CDT)); - PyDict_SetItemString(d,"DateTime_MST", SWIG_FromInt((int)wxDateTime::MST)); - PyDict_SetItemString(d,"DateTime_MDT", SWIG_FromInt((int)wxDateTime::MDT)); - PyDict_SetItemString(d,"DateTime_PST", SWIG_FromInt((int)wxDateTime::PST)); - PyDict_SetItemString(d,"DateTime_PDT", SWIG_FromInt((int)wxDateTime::PDT)); - PyDict_SetItemString(d,"DateTime_HST", SWIG_FromInt((int)wxDateTime::HST)); - PyDict_SetItemString(d,"DateTime_AKST", SWIG_FromInt((int)wxDateTime::AKST)); - PyDict_SetItemString(d,"DateTime_AKDT", SWIG_FromInt((int)wxDateTime::AKDT)); - PyDict_SetItemString(d,"DateTime_A_WST", SWIG_FromInt((int)wxDateTime::A_WST)); - PyDict_SetItemString(d,"DateTime_A_CST", SWIG_FromInt((int)wxDateTime::A_CST)); - PyDict_SetItemString(d,"DateTime_A_EST", SWIG_FromInt((int)wxDateTime::A_EST)); - PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_FromInt((int)wxDateTime::A_ESST)); - PyDict_SetItemString(d,"DateTime_UTC", SWIG_FromInt((int)wxDateTime::UTC)); - PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_FromInt((int)wxDateTime::Gregorian)); - PyDict_SetItemString(d,"DateTime_Julian", SWIG_FromInt((int)wxDateTime::Julian)); - PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_FromInt((int)wxDateTime::Gr_Unknown)); - PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_FromInt((int)wxDateTime::Gr_Standard)); - PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_FromInt((int)wxDateTime::Gr_Alaska)); - PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_FromInt((int)wxDateTime::Gr_Albania)); - PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_FromInt((int)wxDateTime::Gr_Austria)); - PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_FromInt((int)wxDateTime::Gr_Austria_Brixen)); - PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_FromInt((int)wxDateTime::Gr_Austria_Salzburg)); - PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_FromInt((int)wxDateTime::Gr_Austria_Tyrol)); - PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_FromInt((int)wxDateTime::Gr_Austria_Carinthia)); - PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_FromInt((int)wxDateTime::Gr_Austria_Styria)); - PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_FromInt((int)wxDateTime::Gr_Belgium)); - PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria)); - PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_1)); - PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_2)); - PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_3)); - PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_FromInt((int)wxDateTime::Gr_Canada)); - PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_FromInt((int)wxDateTime::Gr_China)); - PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_FromInt((int)wxDateTime::Gr_China_1)); - PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_FromInt((int)wxDateTime::Gr_China_2)); - PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_FromInt((int)wxDateTime::Gr_Czechoslovakia)); - PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_FromInt((int)wxDateTime::Gr_Denmark)); - PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_FromInt((int)wxDateTime::Gr_Egypt)); - PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_FromInt((int)wxDateTime::Gr_Estonia)); - PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_FromInt((int)wxDateTime::Gr_Finland)); - PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_FromInt((int)wxDateTime::Gr_France)); - PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_FromInt((int)wxDateTime::Gr_France_Alsace)); - PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_FromInt((int)wxDateTime::Gr_France_Lorraine)); - PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_FromInt((int)wxDateTime::Gr_France_Strasbourg)); - PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_FromInt((int)wxDateTime::Gr_Germany)); - PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Germany_Catholic)); - PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_FromInt((int)wxDateTime::Gr_Germany_Prussia)); - PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Germany_Protestant)); - PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_FromInt((int)wxDateTime::Gr_GreatBritain)); - PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_FromInt((int)wxDateTime::Gr_Greece)); - PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_FromInt((int)wxDateTime::Gr_Hungary)); - PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_FromInt((int)wxDateTime::Gr_Ireland)); - PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_FromInt((int)wxDateTime::Gr_Italy)); - PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_FromInt((int)wxDateTime::Gr_Japan)); - PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_FromInt((int)wxDateTime::Gr_Japan_1)); - PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_FromInt((int)wxDateTime::Gr_Japan_2)); - PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_FromInt((int)wxDateTime::Gr_Japan_3)); - PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_FromInt((int)wxDateTime::Gr_Latvia)); - PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_FromInt((int)wxDateTime::Gr_Lithuania)); - PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_FromInt((int)wxDateTime::Gr_Luxemburg)); - PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_FromInt((int)wxDateTime::Gr_Netherlands)); - PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Groningen)); - PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Gelderland)); - PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Utrecht)); - PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Friesland)); - PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_FromInt((int)wxDateTime::Gr_Norway)); - PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_FromInt((int)wxDateTime::Gr_Poland)); - PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_FromInt((int)wxDateTime::Gr_Portugal)); - PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_FromInt((int)wxDateTime::Gr_Romania)); - PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_FromInt((int)wxDateTime::Gr_Russia)); - PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_FromInt((int)wxDateTime::Gr_Scotland)); - PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_FromInt((int)wxDateTime::Gr_Spain)); - PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_FromInt((int)wxDateTime::Gr_Sweden)); - PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_FromInt((int)wxDateTime::Gr_Switzerland)); - PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Catholic)); - PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Protestant)); - PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_FromInt((int)wxDateTime::Gr_Turkey)); - PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_FromInt((int)wxDateTime::Gr_USA)); - PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_FromInt((int)wxDateTime::Gr_Wales)); - PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_FromInt((int)wxDateTime::Gr_Yugoslavia)); - PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_FromInt((int)wxDateTime::Country_Unknown)); - PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_FromInt((int)wxDateTime::Country_Default)); - PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_Start)); - PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_FromInt((int)wxDateTime::Country_EEC)); - PyDict_SetItemString(d,"DateTime_France", SWIG_FromInt((int)wxDateTime::France)); - PyDict_SetItemString(d,"DateTime_Germany", SWIG_FromInt((int)wxDateTime::Germany)); - PyDict_SetItemString(d,"DateTime_UK", SWIG_FromInt((int)wxDateTime::UK)); - PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_End)); - PyDict_SetItemString(d,"DateTime_Russia", SWIG_FromInt((int)wxDateTime::Russia)); - PyDict_SetItemString(d,"DateTime_USA", SWIG_FromInt((int)wxDateTime::USA)); - PyDict_SetItemString(d,"DateTime_Jan", SWIG_FromInt((int)wxDateTime::Jan)); - PyDict_SetItemString(d,"DateTime_Feb", SWIG_FromInt((int)wxDateTime::Feb)); - PyDict_SetItemString(d,"DateTime_Mar", SWIG_FromInt((int)wxDateTime::Mar)); - PyDict_SetItemString(d,"DateTime_Apr", SWIG_FromInt((int)wxDateTime::Apr)); - PyDict_SetItemString(d,"DateTime_May", SWIG_FromInt((int)wxDateTime::May)); - PyDict_SetItemString(d,"DateTime_Jun", SWIG_FromInt((int)wxDateTime::Jun)); - PyDict_SetItemString(d,"DateTime_Jul", SWIG_FromInt((int)wxDateTime::Jul)); - PyDict_SetItemString(d,"DateTime_Aug", SWIG_FromInt((int)wxDateTime::Aug)); - PyDict_SetItemString(d,"DateTime_Sep", SWIG_FromInt((int)wxDateTime::Sep)); - PyDict_SetItemString(d,"DateTime_Oct", SWIG_FromInt((int)wxDateTime::Oct)); - PyDict_SetItemString(d,"DateTime_Nov", SWIG_FromInt((int)wxDateTime::Nov)); - PyDict_SetItemString(d,"DateTime_Dec", SWIG_FromInt((int)wxDateTime::Dec)); - PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_FromInt((int)wxDateTime::Inv_Month)); - PyDict_SetItemString(d,"DateTime_Sun", SWIG_FromInt((int)wxDateTime::Sun)); - PyDict_SetItemString(d,"DateTime_Mon", SWIG_FromInt((int)wxDateTime::Mon)); - PyDict_SetItemString(d,"DateTime_Tue", SWIG_FromInt((int)wxDateTime::Tue)); - PyDict_SetItemString(d,"DateTime_Wed", SWIG_FromInt((int)wxDateTime::Wed)); - PyDict_SetItemString(d,"DateTime_Thu", SWIG_FromInt((int)wxDateTime::Thu)); - PyDict_SetItemString(d,"DateTime_Fri", SWIG_FromInt((int)wxDateTime::Fri)); - PyDict_SetItemString(d,"DateTime_Sat", SWIG_FromInt((int)wxDateTime::Sat)); - PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_FromInt((int)wxDateTime::Inv_WeekDay)); - PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_FromInt((int)wxDateTime::Inv_Year)); - PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_FromInt((int)wxDateTime::Name_Full)); - PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_FromInt((int)wxDateTime::Name_Abbr)); - PyDict_SetItemString(d,"DateTime_Default_First", SWIG_FromInt((int)wxDateTime::Default_First)); - PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_FromInt((int)wxDateTime::Monday_First)); - PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_FromInt((int)wxDateTime::Sunday_First)); - SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set); - PyDict_SetItemString(d,"DF_INVALID", SWIG_FromInt((int)wxDF_INVALID)); - PyDict_SetItemString(d,"DF_TEXT", SWIG_FromInt((int)wxDF_TEXT)); - PyDict_SetItemString(d,"DF_BITMAP", SWIG_FromInt((int)wxDF_BITMAP)); - PyDict_SetItemString(d,"DF_METAFILE", SWIG_FromInt((int)wxDF_METAFILE)); - PyDict_SetItemString(d,"DF_SYLK", SWIG_FromInt((int)wxDF_SYLK)); - PyDict_SetItemString(d,"DF_DIF", SWIG_FromInt((int)wxDF_DIF)); - PyDict_SetItemString(d,"DF_TIFF", SWIG_FromInt((int)wxDF_TIFF)); - PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_FromInt((int)wxDF_OEMTEXT)); - PyDict_SetItemString(d,"DF_DIB", SWIG_FromInt((int)wxDF_DIB)); - PyDict_SetItemString(d,"DF_PALETTE", SWIG_FromInt((int)wxDF_PALETTE)); - PyDict_SetItemString(d,"DF_PENDATA", SWIG_FromInt((int)wxDF_PENDATA)); - PyDict_SetItemString(d,"DF_RIFF", SWIG_FromInt((int)wxDF_RIFF)); - PyDict_SetItemString(d,"DF_WAVE", SWIG_FromInt((int)wxDF_WAVE)); - PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_FromInt((int)wxDF_UNICODETEXT)); - PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_FromInt((int)wxDF_ENHMETAFILE)); - PyDict_SetItemString(d,"DF_FILENAME", SWIG_FromInt((int)wxDF_FILENAME)); - PyDict_SetItemString(d,"DF_LOCALE", SWIG_FromInt((int)wxDF_LOCALE)); - PyDict_SetItemString(d,"DF_PRIVATE", SWIG_FromInt((int)wxDF_PRIVATE)); - PyDict_SetItemString(d,"DF_HTML", SWIG_FromInt((int)wxDF_HTML)); - PyDict_SetItemString(d,"DF_MAX", SWIG_FromInt((int)wxDF_MAX)); - SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set); - PyDict_SetItemString(d,"DataObject_Get", SWIG_FromInt((int)wxDataObject::Get)); - PyDict_SetItemString(d,"DataObject_Set", SWIG_FromInt((int)wxDataObject::Set)); - PyDict_SetItemString(d,"DataObject_Both", SWIG_FromInt((int)wxDataObject::Both)); - PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_FromInt((int)wxDrag_CopyOnly)); - PyDict_SetItemString(d,"Drag_AllowMove", SWIG_FromInt((int)wxDrag_AllowMove)); - PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_FromInt((int)wxDrag_DefaultMove)); - PyDict_SetItemString(d,"DragError", SWIG_FromInt((int)wxDragError)); - PyDict_SetItemString(d,"DragNone", SWIG_FromInt((int)wxDragNone)); - PyDict_SetItemString(d,"DragCopy", SWIG_FromInt((int)wxDragCopy)); - PyDict_SetItemString(d,"DragMove", SWIG_FromInt((int)wxDragMove)); - PyDict_SetItemString(d,"DragLink", SWIG_FromInt((int)wxDragLink)); - PyDict_SetItemString(d,"DragCancel", SWIG_FromInt((int)wxDragCancel)); - - wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource"); - wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget"); - wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget"); - wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget"); - - SWIG_addvarlink(SWIG_globals,(char*)"TheClipboard",_wrap_TheClipboard_get, _wrap_TheClipboard_set); - SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set); -} - diff --git a/wxPython/src/mac/windows.py b/wxPython/src/mac/windows.py deleted file mode 100644 index 0b45dc26f9..0000000000 --- a/wxPython/src/mac/windows.py +++ /dev/null @@ -1,4499 +0,0 @@ -# This file was created automatically by SWIG. -# Don't modify this file, modify the SWIG interface instead. - -import _windows - -import core -wx = core -__docfilter__ = wx.__docfilter__ -#--------------------------------------------------------------------------- - -class Panel(core.Window): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPanel instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, - String name=PanelNameStr) -> Panel - """ - newobj = _windows.new_Panel(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, - String name=PanelNameStr) -> bool - - Create the GUI part of the Window for 2-phase creation mode. - """ - return _windows.Panel_Create(*args, **kwargs) - - def InitDialog(*args, **kwargs): - """ - InitDialog(self) - - Sends an EVT_INIT_DIALOG event, whose handler usually transfers - data to the dialog via validators. - """ - return _windows.Panel_InitDialog(*args, **kwargs) - - -class PanelPtr(Panel): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Panel -_windows.Panel_swigregister(PanelPtr) - -def PrePanel(*args, **kwargs): - """PrePanel() -> Panel""" - val = _windows.new_PrePanel(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -class ScrolledWindow(Panel): - def __repr__(self): - return "<%s.%s; proxy of C++ wxScrolledWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL, - String name=PanelNameStr) -> ScrolledWindow - """ - newobj = _windows.new_ScrolledWindow(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL, - String name=PanelNameStr) -> bool - - Create the GUI part of the Window for 2-phase creation mode. - """ - return _windows.ScrolledWindow_Create(*args, **kwargs) - - def SetScrollbars(*args, **kwargs): - """ - SetScrollbars(self, int pixelsPerUnitX, int pixelsPerUnitY, int noUnitsX, - int noUnitsY, int xPos=0, int yPos=0, bool noRefresh=False) - """ - return _windows.ScrolledWindow_SetScrollbars(*args, **kwargs) - - def Scroll(*args, **kwargs): - """Scroll(self, int x, int y)""" - return _windows.ScrolledWindow_Scroll(*args, **kwargs) - - def GetScrollPageSize(*args, **kwargs): - """GetScrollPageSize(self, int orient) -> int""" - return _windows.ScrolledWindow_GetScrollPageSize(*args, **kwargs) - - def SetScrollPageSize(*args, **kwargs): - """SetScrollPageSize(self, int orient, int pageSize)""" - return _windows.ScrolledWindow_SetScrollPageSize(*args, **kwargs) - - def SetScrollRate(*args, **kwargs): - """SetScrollRate(self, int xstep, int ystep)""" - return _windows.ScrolledWindow_SetScrollRate(*args, **kwargs) - - def GetScrollPixelsPerUnit(*args, **kwargs): - """ - GetScrollPixelsPerUnit() -> (xUnit, yUnit) - - Get the size of one logical unit in physical units. - """ - return _windows.ScrolledWindow_GetScrollPixelsPerUnit(*args, **kwargs) - - def EnableScrolling(*args, **kwargs): - """EnableScrolling(self, bool x_scrolling, bool y_scrolling)""" - return _windows.ScrolledWindow_EnableScrolling(*args, **kwargs) - - def GetViewStart(*args, **kwargs): - """ - GetViewStart() -> (x,y) - - Get the view start - """ - return _windows.ScrolledWindow_GetViewStart(*args, **kwargs) - - def SetScale(*args, **kwargs): - """SetScale(self, double xs, double ys)""" - return _windows.ScrolledWindow_SetScale(*args, **kwargs) - - def GetScaleX(*args, **kwargs): - """GetScaleX(self) -> double""" - return _windows.ScrolledWindow_GetScaleX(*args, **kwargs) - - def GetScaleY(*args, **kwargs): - """GetScaleY(self) -> double""" - return _windows.ScrolledWindow_GetScaleY(*args, **kwargs) - - def CalcScrolledPosition(*args): - """ - CalcScrolledPosition(self, Point pt) -> Point - CalcScrolledPosition(int x, int y) -> (sx, sy) - - Translate between scrolled and unscrolled coordinates. - """ - return _windows.ScrolledWindow_CalcScrolledPosition(*args) - - def CalcUnscrolledPosition(*args): - """ - CalcUnscrolledPosition(self, Point pt) -> Point - CalcUnscrolledPosition(int x, int y) -> (ux, uy) - - Translate between scrolled and unscrolled coordinates. - """ - return _windows.ScrolledWindow_CalcUnscrolledPosition(*args) - - def AdjustScrollbars(*args, **kwargs): - """AdjustScrollbars(self)""" - return _windows.ScrolledWindow_AdjustScrollbars(*args, **kwargs) - - def CalcScrollInc(*args, **kwargs): - """CalcScrollInc(self, ScrollWinEvent event) -> int""" - return _windows.ScrolledWindow_CalcScrollInc(*args, **kwargs) - - def SetTargetWindow(*args, **kwargs): - """SetTargetWindow(self, Window target)""" - return _windows.ScrolledWindow_SetTargetWindow(*args, **kwargs) - - def GetTargetWindow(*args, **kwargs): - """GetTargetWindow(self) -> Window""" - return _windows.ScrolledWindow_GetTargetWindow(*args, **kwargs) - - def SetTargetRect(*args, **kwargs): - """SetTargetRect(self, Rect rect)""" - return _windows.ScrolledWindow_SetTargetRect(*args, **kwargs) - - def GetTargetRect(*args, **kwargs): - """GetTargetRect(self) -> Rect""" - return _windows.ScrolledWindow_GetTargetRect(*args, **kwargs) - - -class ScrolledWindowPtr(ScrolledWindow): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ScrolledWindow -_windows.ScrolledWindow_swigregister(ScrolledWindowPtr) - -def PreScrolledWindow(*args, **kwargs): - """PreScrolledWindow() -> ScrolledWindow""" - val = _windows.new_PreScrolledWindow(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -STAY_ON_TOP = _windows.STAY_ON_TOP -ICONIZE = _windows.ICONIZE -MINIMIZE = _windows.MINIMIZE -MAXIMIZE = _windows.MAXIMIZE -CLOSE_BOX = _windows.CLOSE_BOX -THICK_FRAME = _windows.THICK_FRAME -SYSTEM_MENU = _windows.SYSTEM_MENU -MINIMIZE_BOX = _windows.MINIMIZE_BOX -MAXIMIZE_BOX = _windows.MAXIMIZE_BOX -TINY_CAPTION_HORIZ = _windows.TINY_CAPTION_HORIZ -TINY_CAPTION_VERT = _windows.TINY_CAPTION_VERT -RESIZE_BOX = _windows.RESIZE_BOX -RESIZE_BORDER = _windows.RESIZE_BORDER -DIALOG_NO_PARENT = _windows.DIALOG_NO_PARENT -DEFAULT_FRAME_STYLE = _windows.DEFAULT_FRAME_STYLE -DEFAULT_DIALOG_STYLE = _windows.DEFAULT_DIALOG_STYLE -FRAME_TOOL_WINDOW = _windows.FRAME_TOOL_WINDOW -FRAME_FLOAT_ON_PARENT = _windows.FRAME_FLOAT_ON_PARENT -FRAME_NO_WINDOW_MENU = _windows.FRAME_NO_WINDOW_MENU -FRAME_NO_TASKBAR = _windows.FRAME_NO_TASKBAR -FRAME_SHAPED = _windows.FRAME_SHAPED -DIALOG_MODAL = _windows.DIALOG_MODAL -DIALOG_MODELESS = _windows.DIALOG_MODELESS -USER_COLOURS = _windows.USER_COLOURS -NO_3D = _windows.NO_3D -FULLSCREEN_NOMENUBAR = _windows.FULLSCREEN_NOMENUBAR -FULLSCREEN_NOTOOLBAR = _windows.FULLSCREEN_NOTOOLBAR -FULLSCREEN_NOSTATUSBAR = _windows.FULLSCREEN_NOSTATUSBAR -FULLSCREEN_NOBORDER = _windows.FULLSCREEN_NOBORDER -FULLSCREEN_NOCAPTION = _windows.FULLSCREEN_NOCAPTION -FULLSCREEN_ALL = _windows.FULLSCREEN_ALL -TOPLEVEL_EX_DIALOG = _windows.TOPLEVEL_EX_DIALOG -class TopLevelWindow(core.Window): - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxTopLevelWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def Maximize(*args, **kwargs): - """Maximize(self, bool maximize=True)""" - return _windows.TopLevelWindow_Maximize(*args, **kwargs) - - def Restore(*args, **kwargs): - """Restore(self)""" - return _windows.TopLevelWindow_Restore(*args, **kwargs) - - def Iconize(*args, **kwargs): - """Iconize(self, bool iconize=True)""" - return _windows.TopLevelWindow_Iconize(*args, **kwargs) - - def IsMaximized(*args, **kwargs): - """IsMaximized(self) -> bool""" - return _windows.TopLevelWindow_IsMaximized(*args, **kwargs) - - def IsIconized(*args, **kwargs): - """IsIconized(self) -> bool""" - return _windows.TopLevelWindow_IsIconized(*args, **kwargs) - - def GetIcon(*args, **kwargs): - """GetIcon(self) -> Icon""" - return _windows.TopLevelWindow_GetIcon(*args, **kwargs) - - def SetIcon(*args, **kwargs): - """SetIcon(self, Icon icon)""" - return _windows.TopLevelWindow_SetIcon(*args, **kwargs) - - def SetIcons(*args, **kwargs): - """SetIcons(self, wxIconBundle icons)""" - return _windows.TopLevelWindow_SetIcons(*args, **kwargs) - - def ShowFullScreen(*args, **kwargs): - """ShowFullScreen(self, bool show, long style=FULLSCREEN_ALL) -> bool""" - return _windows.TopLevelWindow_ShowFullScreen(*args, **kwargs) - - def IsFullScreen(*args, **kwargs): - """IsFullScreen(self) -> bool""" - return _windows.TopLevelWindow_IsFullScreen(*args, **kwargs) - - def SetTitle(*args, **kwargs): - """ - SetTitle(self, String title) - - Sets the window's title. Applicable only to frames and dialogs. - """ - return _windows.TopLevelWindow_SetTitle(*args, **kwargs) - - def GetTitle(*args, **kwargs): - """ - GetTitle(self) -> String - - Gets the window's title. Applicable only to frames and dialogs. - """ - return _windows.TopLevelWindow_GetTitle(*args, **kwargs) - - def SetShape(*args, **kwargs): - """SetShape(self, Region region) -> bool""" - return _windows.TopLevelWindow_SetShape(*args, **kwargs) - - def MacSetMetalAppearance(*args, **kwargs): - """MacSetMetalAppearance(self, bool on)""" - return _windows.TopLevelWindow_MacSetMetalAppearance(*args, **kwargs) - - def MacGetMetalAppearance(*args, **kwargs): - """MacGetMetalAppearance(self) -> bool""" - return _windows.TopLevelWindow_MacGetMetalAppearance(*args, **kwargs) - - -class TopLevelWindowPtr(TopLevelWindow): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = TopLevelWindow -_windows.TopLevelWindow_swigregister(TopLevelWindowPtr) -cvar = _windows.cvar -FrameNameStr = cvar.FrameNameStr -DialogNameStr = cvar.DialogNameStr -StatusLineNameStr = cvar.StatusLineNameStr -ToolBarNameStr = cvar.ToolBarNameStr - -#--------------------------------------------------------------------------- - -class Frame(TopLevelWindow): - def __repr__(self): - return "<%s.%s; proxy of C++ wxFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, String title, Point pos=DefaultPosition, - Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE, - String name=FrameNameStr) -> Frame - """ - newobj = _windows.new_Frame(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id, String title, Point pos=DefaultPosition, - Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE, - String name=FrameNameStr) -> bool - """ - return _windows.Frame_Create(*args, **kwargs) - - def GetClientAreaOrigin(*args, **kwargs): - """ - GetClientAreaOrigin(self) -> Point - - Get the origin of the client area of the window relative to the - window's top left corner (the client area may be shifted because of - the borders, scrollbars, other decorations...) - """ - return _windows.Frame_GetClientAreaOrigin(*args, **kwargs) - - def SendSizeEvent(*args, **kwargs): - """SendSizeEvent(self)""" - return _windows.Frame_SendSizeEvent(*args, **kwargs) - - def SetMenuBar(*args, **kwargs): - """SetMenuBar(self, MenuBar menubar)""" - return _windows.Frame_SetMenuBar(*args, **kwargs) - - def GetMenuBar(*args, **kwargs): - """GetMenuBar(self) -> MenuBar""" - return _windows.Frame_GetMenuBar(*args, **kwargs) - - def ProcessCommand(*args, **kwargs): - """ProcessCommand(self, int winid) -> bool""" - return _windows.Frame_ProcessCommand(*args, **kwargs) - - Command = ProcessCommand - def CreateStatusBar(*args, **kwargs): - """ - CreateStatusBar(self, int number=1, long style=ST_SIZEGRIP, int winid=0, - String name=StatusLineNameStr) -> StatusBar - """ - return _windows.Frame_CreateStatusBar(*args, **kwargs) - - def GetStatusBar(*args, **kwargs): - """GetStatusBar(self) -> StatusBar""" - return _windows.Frame_GetStatusBar(*args, **kwargs) - - def SetStatusBar(*args, **kwargs): - """SetStatusBar(self, StatusBar statBar)""" - return _windows.Frame_SetStatusBar(*args, **kwargs) - - def SetStatusText(*args, **kwargs): - """SetStatusText(self, String text, int number=0)""" - return _windows.Frame_SetStatusText(*args, **kwargs) - - def SetStatusWidths(*args, **kwargs): - """SetStatusWidths(self, int widths, int widths_field)""" - return _windows.Frame_SetStatusWidths(*args, **kwargs) - - def PushStatusText(*args, **kwargs): - """PushStatusText(self, String text, int number=0)""" - return _windows.Frame_PushStatusText(*args, **kwargs) - - def PopStatusText(*args, **kwargs): - """PopStatusText(self, int number=0)""" - return _windows.Frame_PopStatusText(*args, **kwargs) - - def SetStatusBarPane(*args, **kwargs): - """SetStatusBarPane(self, int n)""" - return _windows.Frame_SetStatusBarPane(*args, **kwargs) - - def GetStatusBarPane(*args, **kwargs): - """GetStatusBarPane(self) -> int""" - return _windows.Frame_GetStatusBarPane(*args, **kwargs) - - def CreateToolBar(*args, **kwargs): - """CreateToolBar(self, long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar""" - return _windows.Frame_CreateToolBar(*args, **kwargs) - - def GetToolBar(*args, **kwargs): - """GetToolBar(self) -> wxToolBar""" - return _windows.Frame_GetToolBar(*args, **kwargs) - - def SetToolBar(*args, **kwargs): - """SetToolBar(self, wxToolBar toolbar)""" - return _windows.Frame_SetToolBar(*args, **kwargs) - - def DoGiveHelp(*args, **kwargs): - """DoGiveHelp(self, String text, bool show)""" - return _windows.Frame_DoGiveHelp(*args, **kwargs) - - def DoMenuUpdates(*args, **kwargs): - """DoMenuUpdates(self, Menu menu=None)""" - return _windows.Frame_DoMenuUpdates(*args, **kwargs) - - -class FramePtr(Frame): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Frame -_windows.Frame_swigregister(FramePtr) - -def PreFrame(*args, **kwargs): - """PreFrame() -> Frame""" - val = _windows.new_PreFrame(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -class Dialog(TopLevelWindow): - def __repr__(self): - return "<%s.%s; proxy of C++ wxDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, String title, Point pos=DefaultPosition, - Size size=DefaultSize, long style=DEFAULT_DIALOG_STYLE, - String name=DialogNameStr) -> Dialog - """ - newobj = _windows.new_Dialog(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id, String title, Point pos=DefaultPosition, - Size size=DefaultSize, long style=DEFAULT_DIALOG_STYLE, - String name=DialogNameStr) -> bool - """ - return _windows.Dialog_Create(*args, **kwargs) - - def SetReturnCode(*args, **kwargs): - """SetReturnCode(self, int returnCode)""" - return _windows.Dialog_SetReturnCode(*args, **kwargs) - - def GetReturnCode(*args, **kwargs): - """GetReturnCode(self) -> int""" - return _windows.Dialog_GetReturnCode(*args, **kwargs) - - def CreateTextSizer(*args, **kwargs): - """CreateTextSizer(self, String message) -> Sizer""" - return _windows.Dialog_CreateTextSizer(*args, **kwargs) - - def CreateButtonSizer(*args, **kwargs): - """CreateButtonSizer(self, long flags) -> Sizer""" - return _windows.Dialog_CreateButtonSizer(*args, **kwargs) - - def IsModal(*args, **kwargs): - """IsModal(self) -> bool""" - return _windows.Dialog_IsModal(*args, **kwargs) - - def ShowModal(*args, **kwargs): - """ShowModal(self) -> int""" - return _windows.Dialog_ShowModal(*args, **kwargs) - - def EndModal(*args, **kwargs): - """EndModal(self, int retCode)""" - return _windows.Dialog_EndModal(*args, **kwargs) - - -class DialogPtr(Dialog): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Dialog -_windows.Dialog_swigregister(DialogPtr) - -def PreDialog(*args, **kwargs): - """PreDialog() -> Dialog""" - val = _windows.new_PreDialog(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -class MiniFrame(Frame): - def __repr__(self): - return "<%s.%s; proxy of C++ wxMiniFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, String title, Point pos=DefaultPosition, - Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE, - String name=FrameNameStr) -> MiniFrame - """ - newobj = _windows.new_MiniFrame(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id, String title, Point pos=DefaultPosition, - Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE, - String name=FrameNameStr) -> bool - """ - return _windows.MiniFrame_Create(*args, **kwargs) - - -class MiniFramePtr(MiniFrame): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = MiniFrame -_windows.MiniFrame_swigregister(MiniFramePtr) - -def PreMiniFrame(*args, **kwargs): - """PreMiniFrame() -> MiniFrame""" - val = _windows.new_PreMiniFrame(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -SPLASH_CENTRE_ON_PARENT = _windows.SPLASH_CENTRE_ON_PARENT -SPLASH_CENTRE_ON_SCREEN = _windows.SPLASH_CENTRE_ON_SCREEN -SPLASH_NO_CENTRE = _windows.SPLASH_NO_CENTRE -SPLASH_TIMEOUT = _windows.SPLASH_TIMEOUT -SPLASH_NO_TIMEOUT = _windows.SPLASH_NO_TIMEOUT -class SplashScreenWindow(core.Window): - def __repr__(self): - return "<%s.%s; proxy of C++ wxSplashScreenWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition, - Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow - """ - newobj = _windows.new_SplashScreenWindow(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def SetBitmap(*args, **kwargs): - """SetBitmap(self, Bitmap bitmap)""" - return _windows.SplashScreenWindow_SetBitmap(*args, **kwargs) - - def GetBitmap(*args, **kwargs): - """GetBitmap(self) -> Bitmap""" - return _windows.SplashScreenWindow_GetBitmap(*args, **kwargs) - - -class SplashScreenWindowPtr(SplashScreenWindow): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = SplashScreenWindow -_windows.SplashScreenWindow_swigregister(SplashScreenWindowPtr) - -class SplashScreen(Frame): - def __repr__(self): - return "<%s.%s; proxy of C++ wxSplashScreen instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Bitmap bitmap, long splashStyle, int milliseconds, - Window parent, int id, Point pos=DefaultPosition, - Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen - """ - newobj = _windows.new_SplashScreen(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def GetSplashStyle(*args, **kwargs): - """GetSplashStyle(self) -> long""" - return _windows.SplashScreen_GetSplashStyle(*args, **kwargs) - - def GetSplashWindow(*args, **kwargs): - """GetSplashWindow(self) -> SplashScreenWindow""" - return _windows.SplashScreen_GetSplashWindow(*args, **kwargs) - - def GetTimeout(*args, **kwargs): - """GetTimeout(self) -> int""" - return _windows.SplashScreen_GetTimeout(*args, **kwargs) - - -class SplashScreenPtr(SplashScreen): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = SplashScreen -_windows.SplashScreen_swigregister(SplashScreenPtr) - -#--------------------------------------------------------------------------- - -class StatusBar(core.Window): - def __repr__(self): - return "<%s.%s; proxy of C++ wxStatusBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> StatusBar""" - newobj = _windows.new_StatusBar(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """Create(self, Window parent, int id, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool""" - return _windows.StatusBar_Create(*args, **kwargs) - - def SetFieldsCount(*args, **kwargs): - """SetFieldsCount(self, int number=1)""" - return _windows.StatusBar_SetFieldsCount(*args, **kwargs) - - def GetFieldsCount(*args, **kwargs): - """GetFieldsCount(self) -> int""" - return _windows.StatusBar_GetFieldsCount(*args, **kwargs) - - def SetStatusText(*args, **kwargs): - """SetStatusText(self, String text, int number=0)""" - return _windows.StatusBar_SetStatusText(*args, **kwargs) - - def GetStatusText(*args, **kwargs): - """GetStatusText(self, int number=0) -> String""" - return _windows.StatusBar_GetStatusText(*args, **kwargs) - - def PushStatusText(*args, **kwargs): - """PushStatusText(self, String text, int number=0)""" - return _windows.StatusBar_PushStatusText(*args, **kwargs) - - def PopStatusText(*args, **kwargs): - """PopStatusText(self, int number=0)""" - return _windows.StatusBar_PopStatusText(*args, **kwargs) - - def SetStatusWidths(*args, **kwargs): - """SetStatusWidths(self, int widths, int widths_field)""" - return _windows.StatusBar_SetStatusWidths(*args, **kwargs) - - def GetFieldRect(*args, **kwargs): - """GetFieldRect(self, int i) -> Rect""" - return _windows.StatusBar_GetFieldRect(*args, **kwargs) - - def SetMinHeight(*args, **kwargs): - """SetMinHeight(self, int height)""" - return _windows.StatusBar_SetMinHeight(*args, **kwargs) - - def GetBorderX(*args, **kwargs): - """GetBorderX(self) -> int""" - return _windows.StatusBar_GetBorderX(*args, **kwargs) - - def GetBorderY(*args, **kwargs): - """GetBorderY(self) -> int""" - return _windows.StatusBar_GetBorderY(*args, **kwargs) - - -class StatusBarPtr(StatusBar): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = StatusBar -_windows.StatusBar_swigregister(StatusBarPtr) - -def PreStatusBar(*args, **kwargs): - """PreStatusBar() -> StatusBar""" - val = _windows.new_PreStatusBar(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -SP_NOBORDER = _windows.SP_NOBORDER -SP_NOSASH = _windows.SP_NOSASH -SP_PERMIT_UNSPLIT = _windows.SP_PERMIT_UNSPLIT -SP_LIVE_UPDATE = _windows.SP_LIVE_UPDATE -SP_3DSASH = _windows.SP_3DSASH -SP_3DBORDER = _windows.SP_3DBORDER -SP_NO_XP_THEME = _windows.SP_NO_XP_THEME -SP_BORDER = _windows.SP_BORDER -SP_3D = _windows.SP_3D -SPLIT_HORIZONTAL = _windows.SPLIT_HORIZONTAL -SPLIT_VERTICAL = _windows.SPLIT_VERTICAL -SPLIT_DRAG_NONE = _windows.SPLIT_DRAG_NONE -SPLIT_DRAG_DRAGGING = _windows.SPLIT_DRAG_DRAGGING -SPLIT_DRAG_LEFT_DOWN = _windows.SPLIT_DRAG_LEFT_DOWN -class SplitterWindow(core.Window): - """ - wx.SplitterWindow manages up to two subwindows or panes, - with an optional vertical or horizontal split which can be - used with the mouse or programmatically. - - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow - - Constructor. Creates and shows a SplitterWindow. - """ - if kwargs.has_key('point'): kwargs['pos'] = kwargs['point'];del kwargs['point'] - newobj = _windows.new_SplitterWindow(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool - - Create the GUI part of the SplitterWindow for the 2-phase create. - """ - return _windows.SplitterWindow_Create(*args, **kwargs) - - def GetWindow1(*args, **kwargs): - """ - GetWindow1(self) -> Window - - Gets the only or left/top pane. - """ - return _windows.SplitterWindow_GetWindow1(*args, **kwargs) - - def GetWindow2(*args, **kwargs): - """ - GetWindow2(self) -> Window - - Gets the right/bottom pane. - """ - return _windows.SplitterWindow_GetWindow2(*args, **kwargs) - - def SetSplitMode(*args, **kwargs): - """ - SetSplitMode(self, int mode) - - Sets the split mode. The mode can be wx.SPLIT_VERTICAL or - wx.SPLIT_HORIZONTAL. This only sets the internal variable; - does not update the display. - """ - return _windows.SplitterWindow_SetSplitMode(*args, **kwargs) - - def GetSplitMode(*args, **kwargs): - """ - GetSplitMode(self) -> int - - Gets the split mode - """ - return _windows.SplitterWindow_GetSplitMode(*args, **kwargs) - - def Initialize(*args, **kwargs): - """ - Initialize(self, Window window) - - Initializes the splitter window to have one pane. This - should be called if you wish to initially view only a single - pane in the splitter window. - """ - return _windows.SplitterWindow_Initialize(*args, **kwargs) - - def SplitVertically(*args, **kwargs): - """ - SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool - - Initializes the left and right panes of the splitter window. - - window1 The left pane. - window2 The right pane. - sashPosition The initial position of the sash. If this - value is positive, it specifies the size - of the left pane. If it is negative, it is - absolute value gives the size of the right - pane. Finally, specify 0 (default) to - choose the default position (half of the - total window width). - - Returns True if successful, False otherwise (the window was - already split). - - SplitVertically should be called if you wish to initially - view two panes. It can also be called at any subsequent - time, but the application should check that the window is - not currently split using IsSplit. - """ - return _windows.SplitterWindow_SplitVertically(*args, **kwargs) - - def SplitHorizontally(*args, **kwargs): - """ - SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool - - Initializes the top and bottom panes of the splitter window. - - window1 The top pane. - window2 The bottom pane. - sashPosition The initial position of the sash. If this - value is positive, it specifies the size - of the upper pane. If it is negative, it - is absolute value gives the size of the - lower pane. Finally, specify 0 (default) - to choose the default position (half of - the total window height). - - Returns True if successful, False otherwise (the window was - already split). - - SplitHorizontally should be called if you wish to initially - view two panes. It can also be called at any subsequent - time, but the application should check that the window is - not currently split using IsSplit. - """ - return _windows.SplitterWindow_SplitHorizontally(*args, **kwargs) - - def Unsplit(*args, **kwargs): - """ - Unsplit(self, Window toRemove=None) -> bool - - Unsplits the window. Pass the pane to remove, or None to - remove the right or bottom pane. Returns True if - successful, False otherwise (the window was not split). - - This function will not actually delete the pane being - removed; it sends EVT_SPLITTER_UNSPLIT which can be handled - for the desired behaviour. By default, the pane being - removed is only hidden. - """ - return _windows.SplitterWindow_Unsplit(*args, **kwargs) - - def ReplaceWindow(*args, **kwargs): - """ - ReplaceWindow(self, Window winOld, Window winNew) -> bool - - This function replaces one of the windows managed by the - SplitterWindow with another one. It is in general better to - use it instead of calling Unsplit() and then resplitting the - window back because it will provoke much less flicker. It is - valid to call this function whether the splitter has two - windows or only one. - - Both parameters should be non-None and winOld must specify - one of the windows managed by the splitter. If the - parameters are incorrect or the window couldn't be replaced, - False is returned. Otherwise the function will return True, - but please notice that it will not Destroy the replaced - window and you may wish to do it yourself. - """ - return _windows.SplitterWindow_ReplaceWindow(*args, **kwargs) - - def UpdateSize(*args, **kwargs): - """ - UpdateSize(self) - - Causes any pending sizing of the sash and child panes to - take place immediately. - - Such resizing normally takes place in idle time, in order to - wait for layout to be completed. However, this can cause - unacceptable flicker as the panes are resized after the - window has been shown. To work around this, you can perform - window layout (for example by sending a size event to the - parent window), and then call this function, before showing - the top-level window. - """ - return _windows.SplitterWindow_UpdateSize(*args, **kwargs) - - def IsSplit(*args, **kwargs): - """ - IsSplit(self) -> bool - - Is the window split? - """ - return _windows.SplitterWindow_IsSplit(*args, **kwargs) - - def SetSashSize(*args, **kwargs): - """ - SetSashSize(self, int width) - - Sets the sash size - """ - return _windows.SplitterWindow_SetSashSize(*args, **kwargs) - - def SetBorderSize(*args, **kwargs): - """ - SetBorderSize(self, int width) - - Sets the border size - """ - return _windows.SplitterWindow_SetBorderSize(*args, **kwargs) - - def GetSashSize(*args, **kwargs): - """ - GetSashSize(self) -> int - - Gets the sash size - """ - return _windows.SplitterWindow_GetSashSize(*args, **kwargs) - - def GetBorderSize(*args, **kwargs): - """ - GetBorderSize(self) -> int - - Gets the border size - """ - return _windows.SplitterWindow_GetBorderSize(*args, **kwargs) - - def SetSashPosition(*args, **kwargs): - """ - SetSashPosition(self, int position, bool redraw=True) - - Sets the sash position, in pixels. If redraw is Ttrue then - the panes are resized and the sash and border are redrawn. - """ - return _windows.SplitterWindow_SetSashPosition(*args, **kwargs) - - def GetSashPosition(*args, **kwargs): - """ - GetSashPosition(self) -> int - - Returns the surrent sash position. - """ - return _windows.SplitterWindow_GetSashPosition(*args, **kwargs) - - def SetMinimumPaneSize(*args, **kwargs): - """ - SetMinimumPaneSize(self, int min) - - Sets the minimum pane size in pixels. - - The default minimum pane size is zero, which means that - either pane can be reduced to zero by dragging the sash, - thus removing one of the panes. To prevent this behaviour (and - veto out-of-range sash dragging), set a minimum size, - for example 20 pixels. If the wx.SP_PERMIT_UNSPLIT style is - used when a splitter window is created, the window may be - unsplit even if minimum size is non-zero. - """ - return _windows.SplitterWindow_SetMinimumPaneSize(*args, **kwargs) - - def GetMinimumPaneSize(*args, **kwargs): - """ - GetMinimumPaneSize(self) -> int - - Gets the minimum pane size in pixels. - """ - return _windows.SplitterWindow_GetMinimumPaneSize(*args, **kwargs) - - def SashHitTest(*args, **kwargs): - """ - SashHitTest(self, int x, int y, int tolerance=5) -> bool - - Tests for x, y over the sash - """ - return _windows.SplitterWindow_SashHitTest(*args, **kwargs) - - def SizeWindows(*args, **kwargs): - """ - SizeWindows(self) - - Resizes subwindows - """ - return _windows.SplitterWindow_SizeWindows(*args, **kwargs) - - def SetNeedUpdating(*args, **kwargs): - """SetNeedUpdating(self, bool needUpdating)""" - return _windows.SplitterWindow_SetNeedUpdating(*args, **kwargs) - - def GetNeedUpdating(*args, **kwargs): - """GetNeedUpdating(self) -> bool""" - return _windows.SplitterWindow_GetNeedUpdating(*args, **kwargs) - - -class SplitterWindowPtr(SplitterWindow): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = SplitterWindow -_windows.SplitterWindow_swigregister(SplitterWindowPtr) -SplitterNameStr = cvar.SplitterNameStr - -def PreSplitterWindow(*args, **kwargs): - """ - PreSplitterWindow() -> SplitterWindow - - Precreate a SplitterWindow for 2-phase creation. - """ - val = _windows.new_PreSplitterWindow(*args, **kwargs) - val.thisown = 1 - return val - -class SplitterEvent(core.NotifyEvent): - """This class represents the events generated by a splitter control.""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxSplitterEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, wxEventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent - - This class represents the events generated by a splitter control. - """ - newobj = _windows.new_SplitterEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def SetSashPosition(*args, **kwargs): - """ - SetSashPosition(self, int pos) - - This funciton is only meaningful during - EVT_SPLITTER_SASH_POS_CHANGING and - EVT_SPLITTER_SASH_POS_CHANGED events. In the case of - _CHANGED events, sets the the new sash position. In the case - of _CHANGING events, sets the new tracking bar position so - visual feedback during dragging will represent that change - that will actually take place. Set to -1 from the event - handler code to prevent repositioning. - """ - return _windows.SplitterEvent_SetSashPosition(*args, **kwargs) - - def GetSashPosition(*args, **kwargs): - """ - GetSashPosition(self) -> int - - Returns the new sash position while in - EVT_SPLITTER_SASH_POS_CHANGING and - EVT_SPLITTER_SASH_POS_CHANGED events. - """ - return _windows.SplitterEvent_GetSashPosition(*args, **kwargs) - - def GetWindowBeingRemoved(*args, **kwargs): - """ - GetWindowBeingRemoved(self) -> Window - - Returns a pointer to the window being removed when a - splitter window is unsplit. - """ - return _windows.SplitterEvent_GetWindowBeingRemoved(*args, **kwargs) - - def GetX(*args, **kwargs): - """ - GetX(self) -> int - - Returns the x coordinate of the double-click point in a - EVT_SPLITTER_DCLICK event. - """ - return _windows.SplitterEvent_GetX(*args, **kwargs) - - def GetY(*args, **kwargs): - """ - GetY(self) -> int - - Returns the y coordinate of the double-click point in a - EVT_SPLITTER_DCLICK event. - """ - return _windows.SplitterEvent_GetY(*args, **kwargs) - - -class SplitterEventPtr(SplitterEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = SplitterEvent -_windows.SplitterEvent_swigregister(SplitterEventPtr) - -wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED = _windows.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED -wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING = _windows.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING -wxEVT_COMMAND_SPLITTER_DOUBLECLICKED = _windows.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED -wxEVT_COMMAND_SPLITTER_UNSPLIT = _windows.wxEVT_COMMAND_SPLITTER_UNSPLIT -EVT_SPLITTER_SASH_POS_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED, 1 ) -EVT_SPLITTER_SASH_POS_CHANGING = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING, 1 ) -EVT_SPLITTER_DOUBLECLICKED = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED, 1 ) -EVT_SPLITTER_UNSPLIT = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT, 1 ) -EVT_SPLITTER_DCLICK = EVT_SPLITTER_DOUBLECLICKED - -#--------------------------------------------------------------------------- - -SASH_DRAG_NONE = _windows.SASH_DRAG_NONE -SASH_DRAG_DRAGGING = _windows.SASH_DRAG_DRAGGING -SASH_DRAG_LEFT_DOWN = _windows.SASH_DRAG_LEFT_DOWN -SW_NOBORDER = _windows.SW_NOBORDER -SW_BORDER = _windows.SW_BORDER -SW_3DSASH = _windows.SW_3DSASH -SW_3DBORDER = _windows.SW_3DBORDER -SW_3D = _windows.SW_3D -SASH_TOP = _windows.SASH_TOP -SASH_RIGHT = _windows.SASH_RIGHT -SASH_BOTTOM = _windows.SASH_BOTTOM -SASH_LEFT = _windows.SASH_LEFT -SASH_NONE = _windows.SASH_NONE -class SashWindow(core.Window): - def __repr__(self): - return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - long style=wxCLIP_CHILDREN|wxSW_3D, - String name=SashNameStr) -> SashWindow - """ - newobj = _windows.new_SashWindow(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - long style=wxCLIP_CHILDREN|wxSW_3D, - String name=SashNameStr) -> bool - """ - return _windows.SashWindow_Create(*args, **kwargs) - - def SetSashVisible(*args, **kwargs): - """SetSashVisible(self, int edge, bool sash)""" - return _windows.SashWindow_SetSashVisible(*args, **kwargs) - - def GetSashVisible(*args, **kwargs): - """GetSashVisible(self, int edge) -> bool""" - return _windows.SashWindow_GetSashVisible(*args, **kwargs) - - def SetSashBorder(*args, **kwargs): - """SetSashBorder(self, int edge, bool border)""" - return _windows.SashWindow_SetSashBorder(*args, **kwargs) - - def HasBorder(*args, **kwargs): - """HasBorder(self, int edge) -> bool""" - return _windows.SashWindow_HasBorder(*args, **kwargs) - - def GetEdgeMargin(*args, **kwargs): - """GetEdgeMargin(self, int edge) -> int""" - return _windows.SashWindow_GetEdgeMargin(*args, **kwargs) - - def SetDefaultBorderSize(*args, **kwargs): - """SetDefaultBorderSize(self, int width)""" - return _windows.SashWindow_SetDefaultBorderSize(*args, **kwargs) - - def GetDefaultBorderSize(*args, **kwargs): - """GetDefaultBorderSize(self) -> int""" - return _windows.SashWindow_GetDefaultBorderSize(*args, **kwargs) - - def SetExtraBorderSize(*args, **kwargs): - """SetExtraBorderSize(self, int width)""" - return _windows.SashWindow_SetExtraBorderSize(*args, **kwargs) - - def GetExtraBorderSize(*args, **kwargs): - """GetExtraBorderSize(self) -> int""" - return _windows.SashWindow_GetExtraBorderSize(*args, **kwargs) - - def SetMinimumSizeX(*args, **kwargs): - """SetMinimumSizeX(self, int min)""" - return _windows.SashWindow_SetMinimumSizeX(*args, **kwargs) - - def SetMinimumSizeY(*args, **kwargs): - """SetMinimumSizeY(self, int min)""" - return _windows.SashWindow_SetMinimumSizeY(*args, **kwargs) - - def GetMinimumSizeX(*args, **kwargs): - """GetMinimumSizeX(self) -> int""" - return _windows.SashWindow_GetMinimumSizeX(*args, **kwargs) - - def GetMinimumSizeY(*args, **kwargs): - """GetMinimumSizeY(self) -> int""" - return _windows.SashWindow_GetMinimumSizeY(*args, **kwargs) - - def SetMaximumSizeX(*args, **kwargs): - """SetMaximumSizeX(self, int max)""" - return _windows.SashWindow_SetMaximumSizeX(*args, **kwargs) - - def SetMaximumSizeY(*args, **kwargs): - """SetMaximumSizeY(self, int max)""" - return _windows.SashWindow_SetMaximumSizeY(*args, **kwargs) - - def GetMaximumSizeX(*args, **kwargs): - """GetMaximumSizeX(self) -> int""" - return _windows.SashWindow_GetMaximumSizeX(*args, **kwargs) - - def GetMaximumSizeY(*args, **kwargs): - """GetMaximumSizeY(self) -> int""" - return _windows.SashWindow_GetMaximumSizeY(*args, **kwargs) - - def SashHitTest(*args, **kwargs): - """SashHitTest(self, int x, int y, int tolerance=2) -> int""" - return _windows.SashWindow_SashHitTest(*args, **kwargs) - - def SizeWindows(*args, **kwargs): - """SizeWindows(self)""" - return _windows.SashWindow_SizeWindows(*args, **kwargs) - - -class SashWindowPtr(SashWindow): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = SashWindow -_windows.SashWindow_swigregister(SashWindowPtr) -SashNameStr = cvar.SashNameStr -SashLayoutNameStr = cvar.SashLayoutNameStr - -def PreSashWindow(*args, **kwargs): - """PreSashWindow() -> SashWindow""" - val = _windows.new_PreSashWindow(*args, **kwargs) - val.thisown = 1 - return val - -SASH_STATUS_OK = _windows.SASH_STATUS_OK -SASH_STATUS_OUT_OF_RANGE = _windows.SASH_STATUS_OUT_OF_RANGE -class SashEvent(core.CommandEvent): - def __repr__(self): - return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int id=0, int edge=SASH_NONE) -> SashEvent""" - newobj = _windows.new_SashEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def SetEdge(*args, **kwargs): - """SetEdge(self, int edge)""" - return _windows.SashEvent_SetEdge(*args, **kwargs) - - def GetEdge(*args, **kwargs): - """GetEdge(self) -> int""" - return _windows.SashEvent_GetEdge(*args, **kwargs) - - def SetDragRect(*args, **kwargs): - """SetDragRect(self, Rect rect)""" - return _windows.SashEvent_SetDragRect(*args, **kwargs) - - def GetDragRect(*args, **kwargs): - """GetDragRect(self) -> Rect""" - return _windows.SashEvent_GetDragRect(*args, **kwargs) - - def SetDragStatus(*args, **kwargs): - """SetDragStatus(self, int status)""" - return _windows.SashEvent_SetDragStatus(*args, **kwargs) - - def GetDragStatus(*args, **kwargs): - """GetDragStatus(self) -> int""" - return _windows.SashEvent_GetDragStatus(*args, **kwargs) - - -class SashEventPtr(SashEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = SashEvent -_windows.SashEvent_swigregister(SashEventPtr) - -wxEVT_SASH_DRAGGED = _windows.wxEVT_SASH_DRAGGED -EVT_SASH_DRAGGED = wx.PyEventBinder( wxEVT_SASH_DRAGGED, 1 ) -EVT_SASH_DRAGGED_RANGE = wx.PyEventBinder( wxEVT_SASH_DRAGGED, 2 ) - -#--------------------------------------------------------------------------- - -LAYOUT_HORIZONTAL = _windows.LAYOUT_HORIZONTAL -LAYOUT_VERTICAL = _windows.LAYOUT_VERTICAL -LAYOUT_NONE = _windows.LAYOUT_NONE -LAYOUT_TOP = _windows.LAYOUT_TOP -LAYOUT_LEFT = _windows.LAYOUT_LEFT -LAYOUT_RIGHT = _windows.LAYOUT_RIGHT -LAYOUT_BOTTOM = _windows.LAYOUT_BOTTOM -LAYOUT_LENGTH_Y = _windows.LAYOUT_LENGTH_Y -LAYOUT_LENGTH_X = _windows.LAYOUT_LENGTH_X -LAYOUT_MRU_LENGTH = _windows.LAYOUT_MRU_LENGTH -LAYOUT_QUERY = _windows.LAYOUT_QUERY -wxEVT_QUERY_LAYOUT_INFO = _windows.wxEVT_QUERY_LAYOUT_INFO -wxEVT_CALCULATE_LAYOUT = _windows.wxEVT_CALCULATE_LAYOUT -class QueryLayoutInfoEvent(core.Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int id=0) -> QueryLayoutInfoEvent""" - newobj = _windows.new_QueryLayoutInfoEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def SetRequestedLength(*args, **kwargs): - """SetRequestedLength(self, int length)""" - return _windows.QueryLayoutInfoEvent_SetRequestedLength(*args, **kwargs) - - def GetRequestedLength(*args, **kwargs): - """GetRequestedLength(self) -> int""" - return _windows.QueryLayoutInfoEvent_GetRequestedLength(*args, **kwargs) - - def SetFlags(*args, **kwargs): - """SetFlags(self, int flags)""" - return _windows.QueryLayoutInfoEvent_SetFlags(*args, **kwargs) - - def GetFlags(*args, **kwargs): - """GetFlags(self) -> int""" - return _windows.QueryLayoutInfoEvent_GetFlags(*args, **kwargs) - - def SetSize(*args, **kwargs): - """SetSize(self, Size size)""" - return _windows.QueryLayoutInfoEvent_SetSize(*args, **kwargs) - - def GetSize(*args, **kwargs): - """GetSize(self) -> Size""" - return _windows.QueryLayoutInfoEvent_GetSize(*args, **kwargs) - - def SetOrientation(*args, **kwargs): - """SetOrientation(self, int orient)""" - return _windows.QueryLayoutInfoEvent_SetOrientation(*args, **kwargs) - - def GetOrientation(*args, **kwargs): - """GetOrientation(self) -> int""" - return _windows.QueryLayoutInfoEvent_GetOrientation(*args, **kwargs) - - def SetAlignment(*args, **kwargs): - """SetAlignment(self, int align)""" - return _windows.QueryLayoutInfoEvent_SetAlignment(*args, **kwargs) - - def GetAlignment(*args, **kwargs): - """GetAlignment(self) -> int""" - return _windows.QueryLayoutInfoEvent_GetAlignment(*args, **kwargs) - - -class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = QueryLayoutInfoEvent -_windows.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr) - -class CalculateLayoutEvent(core.Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int id=0) -> CalculateLayoutEvent""" - newobj = _windows.new_CalculateLayoutEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def SetFlags(*args, **kwargs): - """SetFlags(self, int flags)""" - return _windows.CalculateLayoutEvent_SetFlags(*args, **kwargs) - - def GetFlags(*args, **kwargs): - """GetFlags(self) -> int""" - return _windows.CalculateLayoutEvent_GetFlags(*args, **kwargs) - - def SetRect(*args, **kwargs): - """SetRect(self, Rect rect)""" - return _windows.CalculateLayoutEvent_SetRect(*args, **kwargs) - - def GetRect(*args, **kwargs): - """GetRect(self) -> Rect""" - return _windows.CalculateLayoutEvent_GetRect(*args, **kwargs) - - -class CalculateLayoutEventPtr(CalculateLayoutEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = CalculateLayoutEvent -_windows.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr) - -EVT_QUERY_LAYOUT_INFO = wx.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO ) -EVT_CALCULATE_LAYOUT = wx.PyEventBinder( wxEVT_CALCULATE_LAYOUT ) - -class SashLayoutWindow(SashWindow): - def __repr__(self): - return "<%s.%s; proxy of C++ wxSashLayoutWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - long style=wxCLIP_CHILDREN|wxSW_3D, - String name=SashLayoutNameStr) -> SashLayoutWindow - """ - newobj = _windows.new_SashLayoutWindow(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - long style=wxCLIP_CHILDREN|wxSW_3D, - String name=SashLayoutNameStr) -> bool - """ - return _windows.SashLayoutWindow_Create(*args, **kwargs) - - def GetAlignment(*args, **kwargs): - """GetAlignment(self) -> int""" - return _windows.SashLayoutWindow_GetAlignment(*args, **kwargs) - - def GetOrientation(*args, **kwargs): - """GetOrientation(self) -> int""" - return _windows.SashLayoutWindow_GetOrientation(*args, **kwargs) - - def SetAlignment(*args, **kwargs): - """SetAlignment(self, int alignment)""" - return _windows.SashLayoutWindow_SetAlignment(*args, **kwargs) - - def SetDefaultSize(*args, **kwargs): - """SetDefaultSize(self, Size size)""" - return _windows.SashLayoutWindow_SetDefaultSize(*args, **kwargs) - - def SetOrientation(*args, **kwargs): - """SetOrientation(self, int orientation)""" - return _windows.SashLayoutWindow_SetOrientation(*args, **kwargs) - - -class SashLayoutWindowPtr(SashLayoutWindow): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = SashLayoutWindow -_windows.SashLayoutWindow_swigregister(SashLayoutWindowPtr) - -def PreSashLayoutWindow(*args, **kwargs): - """PreSashLayoutWindow() -> SashLayoutWindow""" - val = _windows.new_PreSashLayoutWindow(*args, **kwargs) - val.thisown = 1 - return val - -class LayoutAlgorithm(core.Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> LayoutAlgorithm""" - newobj = _windows.new_LayoutAlgorithm(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_windows.delete_LayoutAlgorithm): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def LayoutMDIFrame(*args, **kwargs): - """LayoutMDIFrame(self, MDIParentFrame frame, Rect rect=None) -> bool""" - return _windows.LayoutAlgorithm_LayoutMDIFrame(*args, **kwargs) - - def LayoutFrame(*args, **kwargs): - """LayoutFrame(self, Frame frame, Window mainWindow=None) -> bool""" - return _windows.LayoutAlgorithm_LayoutFrame(*args, **kwargs) - - def LayoutWindow(*args, **kwargs): - """LayoutWindow(self, Window parent, Window mainWindow=None) -> bool""" - return _windows.LayoutAlgorithm_LayoutWindow(*args, **kwargs) - - -class LayoutAlgorithmPtr(LayoutAlgorithm): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = LayoutAlgorithm -_windows.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr) - -class PopupWindow(core.Window): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Window parent, int flags=BORDER_NONE) -> PopupWindow""" - newobj = _windows.new_PopupWindow(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class PopupWindowPtr(PopupWindow): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PopupWindow -_windows.PopupWindow_swigregister(PopupWindowPtr) - -def PrePopupWindow(*args, **kwargs): - """PrePopupWindow() -> PopupWindow""" - val = _windows.new_PrePopupWindow(*args, **kwargs) - val.thisown = 1 - return val - -class PopupTransientWindow(PopupWindow): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow""" - newobj = _windows.new_PopupTransientWindow(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class PopupTransientWindowPtr(PopupTransientWindow): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PopupTransientWindow -_windows.PopupTransientWindow_swigregister(PopupTransientWindowPtr) - -def PrePopupTransientWindow(*args, **kwargs): - """PrePopupTransientWindow() -> PopupTransientWindow""" - val = _windows.new_PrePopupTransientWindow(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -class TipWindow(Frame): - def __repr__(self): - return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow""" - newobj = _windows.new_TipWindow(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def SetBoundingRect(*args, **kwargs): - """SetBoundingRect(self, Rect rectBound)""" - return _windows.TipWindow_SetBoundingRect(*args, **kwargs) - - def Close(*args, **kwargs): - """Close(self)""" - return _windows.TipWindow_Close(*args, **kwargs) - - -class TipWindowPtr(TipWindow): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = TipWindow -_windows.TipWindow_swigregister(TipWindowPtr) - -#--------------------------------------------------------------------------- - -class VScrolledWindow(Panel): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow - """ - newobj = _windows.new_VScrolledWindow(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self); self._setCallbackInfo(self, VScrolledWindow) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _windows.VScrolledWindow__setCallbackInfo(*args, **kwargs) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool - """ - return _windows.VScrolledWindow_Create(*args, **kwargs) - - def SetLineCount(*args, **kwargs): - """SetLineCount(self, size_t count)""" - return _windows.VScrolledWindow_SetLineCount(*args, **kwargs) - - def ScrollToLine(*args, **kwargs): - """ScrollToLine(self, size_t line) -> bool""" - return _windows.VScrolledWindow_ScrollToLine(*args, **kwargs) - - def ScrollLines(*args, **kwargs): - """ - ScrollLines(self, int lines) -> bool - - If the platform and window class supports it, scrolls the window by - the given number of lines down, if lines is positive, or up if lines - is negative. Returns True if the window was scrolled, False if it was - already on top/bottom and nothing was done. - """ - return _windows.VScrolledWindow_ScrollLines(*args, **kwargs) - - def ScrollPages(*args, **kwargs): - """ - ScrollPages(self, int pages) -> bool - - If the platform and window class supports it, scrolls the window by - the given number of pages down, if pages is positive, or up if pages - is negative. Returns True if the window was scrolled, False if it was - already on top/bottom and nothing was done. - """ - return _windows.VScrolledWindow_ScrollPages(*args, **kwargs) - - def RefreshLine(*args, **kwargs): - """RefreshLine(self, size_t line)""" - return _windows.VScrolledWindow_RefreshLine(*args, **kwargs) - - def RefreshLines(*args, **kwargs): - """RefreshLines(self, size_t from, size_t to)""" - return _windows.VScrolledWindow_RefreshLines(*args, **kwargs) - - def HitTestXT(*args, **kwargs): - """ - HitTestXT(self, int x, int y) -> int - - Test where the given (in client coords) point lies - """ - return _windows.VScrolledWindow_HitTestXT(*args, **kwargs) - - def HitTest(*args, **kwargs): - """ - HitTest(self, Point pt) -> int - - Test where the given (in client coords) point lies - """ - return _windows.VScrolledWindow_HitTest(*args, **kwargs) - - def RefreshAll(*args, **kwargs): - """RefreshAll(self)""" - return _windows.VScrolledWindow_RefreshAll(*args, **kwargs) - - def GetLineCount(*args, **kwargs): - """GetLineCount(self) -> size_t""" - return _windows.VScrolledWindow_GetLineCount(*args, **kwargs) - - def GetFirstVisibleLine(*args, **kwargs): - """GetFirstVisibleLine(self) -> size_t""" - return _windows.VScrolledWindow_GetFirstVisibleLine(*args, **kwargs) - - def GetLastVisibleLine(*args, **kwargs): - """GetLastVisibleLine(self) -> size_t""" - return _windows.VScrolledWindow_GetLastVisibleLine(*args, **kwargs) - - def IsVisible(*args, **kwargs): - """IsVisible(self, size_t line) -> bool""" - return _windows.VScrolledWindow_IsVisible(*args, **kwargs) - - -class VScrolledWindowPtr(VScrolledWindow): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = VScrolledWindow -_windows.VScrolledWindow_swigregister(VScrolledWindowPtr) - -def PreVScrolledWindow(*args, **kwargs): - """PreVScrolledWindow() -> VScrolledWindow""" - val = _windows.new_PreVScrolledWindow(*args, **kwargs) - val.thisown = 1 - return val - -class VListBox(VScrolledWindow): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox - """ - newobj = _windows.new_VListBox(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self);self._setCallbackInfo(self, VListBox) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _windows.VListBox__setCallbackInfo(*args, **kwargs) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool - """ - return _windows.VListBox_Create(*args, **kwargs) - - def GetItemCount(*args, **kwargs): - """GetItemCount(self) -> size_t""" - return _windows.VListBox_GetItemCount(*args, **kwargs) - - def HasMultipleSelection(*args, **kwargs): - """HasMultipleSelection(self) -> bool""" - return _windows.VListBox_HasMultipleSelection(*args, **kwargs) - - def GetSelection(*args, **kwargs): - """GetSelection(self) -> int""" - return _windows.VListBox_GetSelection(*args, **kwargs) - - def IsCurrent(*args, **kwargs): - """IsCurrent(self, size_t item) -> bool""" - return _windows.VListBox_IsCurrent(*args, **kwargs) - - def IsSelected(*args, **kwargs): - """IsSelected(self, size_t item) -> bool""" - return _windows.VListBox_IsSelected(*args, **kwargs) - - def GetSelectedCount(*args, **kwargs): - """GetSelectedCount(self) -> size_t""" - return _windows.VListBox_GetSelectedCount(*args, **kwargs) - - def GetFirstSelected(*args, **kwargs): - """GetFirstSelected(self, unsigned long cookie) -> int""" - return _windows.VListBox_GetFirstSelected(*args, **kwargs) - - def GetNextSelected(*args, **kwargs): - """GetNextSelected(self, unsigned long cookie) -> int""" - return _windows.VListBox_GetNextSelected(*args, **kwargs) - - def GetMargins(*args, **kwargs): - """GetMargins(self) -> Point""" - return _windows.VListBox_GetMargins(*args, **kwargs) - - def GetSelectionBackground(*args, **kwargs): - """GetSelectionBackground(self) -> Colour""" - return _windows.VListBox_GetSelectionBackground(*args, **kwargs) - - def SetItemCount(*args, **kwargs): - """SetItemCount(self, size_t count)""" - return _windows.VListBox_SetItemCount(*args, **kwargs) - - def Clear(*args, **kwargs): - """Clear(self)""" - return _windows.VListBox_Clear(*args, **kwargs) - - def SetSelection(*args, **kwargs): - """SetSelection(self, int selection)""" - return _windows.VListBox_SetSelection(*args, **kwargs) - - def Select(*args, **kwargs): - """Select(self, size_t item, bool select=True) -> bool""" - return _windows.VListBox_Select(*args, **kwargs) - - def SelectRange(*args, **kwargs): - """SelectRange(self, size_t from, size_t to) -> bool""" - return _windows.VListBox_SelectRange(*args, **kwargs) - - def Toggle(*args, **kwargs): - """Toggle(self, size_t item)""" - return _windows.VListBox_Toggle(*args, **kwargs) - - def SelectAll(*args, **kwargs): - """SelectAll(self) -> bool""" - return _windows.VListBox_SelectAll(*args, **kwargs) - - def DeselectAll(*args, **kwargs): - """DeselectAll(self) -> bool""" - return _windows.VListBox_DeselectAll(*args, **kwargs) - - def SetMargins(*args, **kwargs): - """SetMargins(self, Point pt)""" - return _windows.VListBox_SetMargins(*args, **kwargs) - - def SetMarginsXY(*args, **kwargs): - """SetMarginsXY(self, int x, int y)""" - return _windows.VListBox_SetMarginsXY(*args, **kwargs) - - def SetSelectionBackground(*args, **kwargs): - """SetSelectionBackground(self, Colour col)""" - return _windows.VListBox_SetSelectionBackground(*args, **kwargs) - - -class VListBoxPtr(VListBox): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = VListBox -_windows.VListBox_swigregister(VListBoxPtr) -VListBoxNameStr = cvar.VListBoxNameStr - -def PreVListBox(*args, **kwargs): - """PreVListBox() -> VListBox""" - val = _windows.new_PreVListBox(*args, **kwargs) - val.thisown = 1 - return val - -class HtmlListBox(VListBox): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox - """ - newobj = _windows.new_HtmlListBox(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self);self._setCallbackInfo(self, HtmlListBox) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _windows.HtmlListBox__setCallbackInfo(*args, **kwargs) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool - """ - return _windows.HtmlListBox_Create(*args, **kwargs) - - def RefreshAll(*args, **kwargs): - """RefreshAll(self)""" - return _windows.HtmlListBox_RefreshAll(*args, **kwargs) - - def SetItemCount(*args, **kwargs): - """SetItemCount(self, size_t count)""" - return _windows.HtmlListBox_SetItemCount(*args, **kwargs) - - -class HtmlListBoxPtr(HtmlListBox): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = HtmlListBox -_windows.HtmlListBox_swigregister(HtmlListBoxPtr) - -def PreHtmlListBox(*args, **kwargs): - """PreHtmlListBox() -> HtmlListBox""" - val = _windows.new_PreHtmlListBox(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -class TaskBarIcon(core.EvtHandler): - def __repr__(self): - return "<%s.%s; proxy of C++ wxTaskBarIcon instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> TaskBarIcon""" - newobj = _windows.new_TaskBarIcon(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_windows.delete_TaskBarIcon): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Destroy(*args, **kwargs): - """ - Destroy(self) - - Deletes the C++ object this Python object is a proxy for. - """ - return _windows.TaskBarIcon_Destroy(*args, **kwargs) - - -class TaskBarIconPtr(TaskBarIcon): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = TaskBarIcon -_windows.TaskBarIcon_swigregister(TaskBarIconPtr) - -class TaskBarIconEvent(core.Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, wxEventType evtType, TaskBarIcon tbIcon) -> TaskBarIconEvent""" - newobj = _windows.new_TaskBarIconEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class TaskBarIconEventPtr(TaskBarIconEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = TaskBarIconEvent -_windows.TaskBarIconEvent_swigregister(TaskBarIconEventPtr) - -wxEVT_TASKBAR_MOVE = _windows.wxEVT_TASKBAR_MOVE -wxEVT_TASKBAR_LEFT_DOWN = _windows.wxEVT_TASKBAR_LEFT_DOWN -wxEVT_TASKBAR_LEFT_UP = _windows.wxEVT_TASKBAR_LEFT_UP -wxEVT_TASKBAR_RIGHT_DOWN = _windows.wxEVT_TASKBAR_RIGHT_DOWN -wxEVT_TASKBAR_RIGHT_UP = _windows.wxEVT_TASKBAR_RIGHT_UP -wxEVT_TASKBAR_LEFT_DCLICK = _windows.wxEVT_TASKBAR_LEFT_DCLICK -wxEVT_TASKBAR_RIGHT_DCLICK = _windows.wxEVT_TASKBAR_RIGHT_DCLICK -EVT_TASKBAR_MOVE = wx.PyEventBinder ( wxEVT_TASKBAR_MOVE ) -EVT_TASKBAR_LEFT_DOWN = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN ) -EVT_TASKBAR_LEFT_UP = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP ) -EVT_TASKBAR_RIGHT_DOWN = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN ) -EVT_TASKBAR_RIGHT_UP = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP ) -EVT_TASKBAR_LEFT_DCLICK = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK ) -EVT_TASKBAR_RIGHT_DCLICK = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK ) - -#--------------------------------------------------------------------------- - -class ColourData(core.Object): - """This class holds a variety of information related to colour dialogs.""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self) -> ColourData - - Constructor, sets default values. - """ - newobj = _windows.new_ColourData(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_windows.delete_ColourData): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def GetChooseFull(*args, **kwargs): - """ - GetChooseFull(self) -> bool - - Under Windows, determines whether the Windows colour dialog will display - the full dialog with custom colour selection controls. Has no meaning - under other platforms. The default value is true. - """ - return _windows.ColourData_GetChooseFull(*args, **kwargs) - - def GetColour(*args, **kwargs): - """ - GetColour(self) -> Colour - - Gets the colour (pre)selected by the dialog. - """ - return _windows.ColourData_GetColour(*args, **kwargs) - - def GetCustomColour(*args, **kwargs): - """ - GetCustomColour(self, int i) -> Colour - - Gets the i'th custom colour associated with the colour dialog. i should - be an integer between 0 and 15. The default custom colours are all white. - """ - return _windows.ColourData_GetCustomColour(*args, **kwargs) - - def SetChooseFull(*args, **kwargs): - """ - SetChooseFull(self, int flag) - - Under Windows, tells the Windows colour dialog to display the full dialog - with custom colour selection controls. Under other platforms, has no effect. - The default value is true. - """ - return _windows.ColourData_SetChooseFull(*args, **kwargs) - - def SetColour(*args, **kwargs): - """ - SetColour(self, Colour colour) - - Sets the default colour for the colour dialog. The default colour is black. - """ - return _windows.ColourData_SetColour(*args, **kwargs) - - def SetCustomColour(*args, **kwargs): - """ - SetCustomColour(self, int i, Colour colour) - - Sets the i'th custom colour for the colour dialog. i should be an integer - between 0 and 15. The default custom colours are all white. - """ - return _windows.ColourData_SetCustomColour(*args, **kwargs) - - -class ColourDataPtr(ColourData): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ColourData -_windows.ColourData_swigregister(ColourDataPtr) -FileSelectorPromptStr = cvar.FileSelectorPromptStr -DirSelectorPromptStr = cvar.DirSelectorPromptStr -DirDialogNameStr = cvar.DirDialogNameStr -FileSelectorDefaultWildcardStr = cvar.FileSelectorDefaultWildcardStr -GetTextFromUserPromptStr = cvar.GetTextFromUserPromptStr -MessageBoxCaptionStr = cvar.MessageBoxCaptionStr - -class ColourDialog(Dialog): - """This class represents the colour chooser dialog.""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, ColourData data=None) -> ColourDialog - - Constructor. Pass a parent window, and optionally a ColourData, which - will be copied to the colour dialog's internal ColourData instance. - """ - newobj = _windows.new_ColourDialog(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def GetColourData(*args, **kwargs): - """ - GetColourData(self) -> ColourData - - Returns a reference to the ColourData used by the dialog. - """ - return _windows.ColourDialog_GetColourData(*args, **kwargs) - - -class ColourDialogPtr(ColourDialog): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ColourDialog -_windows.ColourDialog_swigregister(ColourDialogPtr) - -class DirDialog(Dialog): - """This class represents the directory chooser dialog.""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, String message=DirSelectorPromptStr, - String defaultPath=EmptyString, long style=0, - Point pos=DefaultPosition, Size size=DefaultSize, - String name=DirDialogNameStr) -> DirDialog - - Constructor. Use ShowModal method to show the dialog. - """ - newobj = _windows.new_DirDialog(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def GetPath(*args, **kwargs): - """ - GetPath(self) -> String - - Returns the default or user-selected path. - """ - return _windows.DirDialog_GetPath(*args, **kwargs) - - def GetMessage(*args, **kwargs): - """ - GetMessage(self) -> String - - Returns the message that will be displayed on the dialog. - """ - return _windows.DirDialog_GetMessage(*args, **kwargs) - - def GetStyle(*args, **kwargs): - """ - GetStyle(self) -> long - - Returns the dialog style. - """ - return _windows.DirDialog_GetStyle(*args, **kwargs) - - def SetMessage(*args, **kwargs): - """ - SetMessage(self, String message) - - Sets the message that will be displayed on the dialog. - """ - return _windows.DirDialog_SetMessage(*args, **kwargs) - - def SetPath(*args, **kwargs): - """ - SetPath(self, String path) - - Sets the default path. - """ - return _windows.DirDialog_SetPath(*args, **kwargs) - - -class DirDialogPtr(DirDialog): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = DirDialog -_windows.DirDialog_swigregister(DirDialogPtr) - -class FileDialog(Dialog): - """This class represents the file chooser dialog.""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, String message=FileSelectorPromptStr, - String defaultDir=EmptyString, String defaultFile=EmptyString, - String wildcard=FileSelectorDefaultWildcardStr, - long style=0, Point pos=DefaultPosition) -> FileDialog - - Constructor. Use ShowModal method to show the dialog. - """ - newobj = _windows.new_FileDialog(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def SetMessage(*args, **kwargs): - """ - SetMessage(self, String message) - - Sets the message that will be displayed on the dialog. - """ - return _windows.FileDialog_SetMessage(*args, **kwargs) - - def SetPath(*args, **kwargs): - """ - SetPath(self, String path) - - Sets the path (the combined directory and filename that will - be returned when the dialog is dismissed). - """ - return _windows.FileDialog_SetPath(*args, **kwargs) - - def SetDirectory(*args, **kwargs): - """ - SetDirectory(self, String dir) - - Sets the default directory. - """ - return _windows.FileDialog_SetDirectory(*args, **kwargs) - - def SetFilename(*args, **kwargs): - """ - SetFilename(self, String name) - - Sets the default filename. - """ - return _windows.FileDialog_SetFilename(*args, **kwargs) - - def SetWildcard(*args, **kwargs): - """ - SetWildcard(self, String wildCard) - - Sets the wildcard, which can contain multiple file types, for example: - "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif" - """ - return _windows.FileDialog_SetWildcard(*args, **kwargs) - - def SetStyle(*args, **kwargs): - """ - SetStyle(self, long style) - - Sets the dialog style. - """ - return _windows.FileDialog_SetStyle(*args, **kwargs) - - def SetFilterIndex(*args, **kwargs): - """ - SetFilterIndex(self, int filterIndex) - - Sets the default filter index, starting from zero. - """ - return _windows.FileDialog_SetFilterIndex(*args, **kwargs) - - def GetMessage(*args, **kwargs): - """ - GetMessage(self) -> String - - Returns the message that will be displayed on the dialog. - """ - return _windows.FileDialog_GetMessage(*args, **kwargs) - - def GetPath(*args, **kwargs): - """ - GetPath(self) -> String - - Returns the full path (directory and filename) of the selected file. - """ - return _windows.FileDialog_GetPath(*args, **kwargs) - - def GetDirectory(*args, **kwargs): - """ - GetDirectory(self) -> String - - Returns the default directory. - """ - return _windows.FileDialog_GetDirectory(*args, **kwargs) - - def GetFilename(*args, **kwargs): - """ - GetFilename(self) -> String - - Returns the default filename. - """ - return _windows.FileDialog_GetFilename(*args, **kwargs) - - def GetWildcard(*args, **kwargs): - """ - GetWildcard(self) -> String - - Returns the file dialog wildcard. - """ - return _windows.FileDialog_GetWildcard(*args, **kwargs) - - def GetStyle(*args, **kwargs): - """ - GetStyle(self) -> long - - Returns the dialog style. - """ - return _windows.FileDialog_GetStyle(*args, **kwargs) - - def GetFilterIndex(*args, **kwargs): - """ - GetFilterIndex(self) -> int - - Returns the index into the list of filters supplied, optionally, in - the wildcard parameter. Before the dialog is shown, this is the index - which will be used when the dialog is first displayed. After the dialog - is shown, this is the index selected by the user. - """ - return _windows.FileDialog_GetFilterIndex(*args, **kwargs) - - def GetFilenames(*args, **kwargs): - """ - GetFilenames(self) -> PyObject - - Returns a list of filenames chosen in the dialog. This function should - only be used with the dialogs which have wx.MULTIPLE style, use - GetFilename for the others. - """ - return _windows.FileDialog_GetFilenames(*args, **kwargs) - - def GetPaths(*args, **kwargs): - """ - GetPaths(self) -> PyObject - - Fills the array paths with the full paths of the files chosen. This - function should only be used with the dialogs which have wx.MULTIPLE style, - use GetPath for the others. - """ - return _windows.FileDialog_GetPaths(*args, **kwargs) - - -class FileDialogPtr(FileDialog): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = FileDialog -_windows.FileDialog_swigregister(FileDialogPtr) - -CHOICEDLG_STYLE = _windows.CHOICEDLG_STYLE -class MultiChoiceDialog(Dialog): - """A simple dialog with a multi selection listbox.""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(Window parent, String message, String caption, - List choices=[], long style=CHOICEDLG_STYLE, - Point pos=DefaultPosition) -> MultiChoiceDialog - - Constructor. Use ShowModal method to show the dialog. - """ - newobj = _windows.new_MultiChoiceDialog(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def SetSelections(*args, **kwargs): - """ - SetSelections(List selections) - - Specify the items in the list that shoudl be selected, using a list of integers. - """ - return _windows.MultiChoiceDialog_SetSelections(*args, **kwargs) - - def GetSelections(*args, **kwargs): - """ - GetSelections() -> [selections] - - Returns a list of integers representing the items that are selected. - """ - return _windows.MultiChoiceDialog_GetSelections(*args, **kwargs) - - -class MultiChoiceDialogPtr(MultiChoiceDialog): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = MultiChoiceDialog -_windows.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr) - -class SingleChoiceDialog(Dialog): - """A simple dialog with a single selection listbox.""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(Window parent, String message, String caption, - List choices=[], long style=CHOICEDLG_STYLE, - Point pos=DefaultPosition) -> SingleChoiceDialog - - Constructor. Use ShowModal method to show the dialog. - """ - newobj = _windows.new_SingleChoiceDialog(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def GetSelection(*args, **kwargs): - """ - GetSelection(self) -> int - - Get the index of teh currently selected item. - """ - return _windows.SingleChoiceDialog_GetSelection(*args, **kwargs) - - def GetStringSelection(*args, **kwargs): - """ - GetStringSelection(self) -> String - - Returns the string value of the currently selected item - """ - return _windows.SingleChoiceDialog_GetStringSelection(*args, **kwargs) - - def SetSelection(*args, **kwargs): - """ - SetSelection(self, int sel) - - Set the current selected item to sel - """ - return _windows.SingleChoiceDialog_SetSelection(*args, **kwargs) - - -class SingleChoiceDialogPtr(SingleChoiceDialog): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = SingleChoiceDialog -_windows.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr) - -class TextEntryDialog(Dialog): - """A dialog with text control, [ok] and [cancel] buttons""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr, - String defaultValue=EmptyString, - long style=wxOK|wxCANCEL|wxCENTRE, Point pos=DefaultPosition) -> TextEntryDialog - - Constructor. Use ShowModal method to show the dialog. - """ - newobj = _windows.new_TextEntryDialog(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def GetValue(*args, **kwargs): - """ - GetValue(self) -> String - - Returns the text that the user has entered if the user has pressed OK, - or the original value if the user has pressed Cancel. - """ - return _windows.TextEntryDialog_GetValue(*args, **kwargs) - - def SetValue(*args, **kwargs): - """ - SetValue(self, String value) - - Sets the default text value. - """ - return _windows.TextEntryDialog_SetValue(*args, **kwargs) - - -class TextEntryDialogPtr(TextEntryDialog): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = TextEntryDialog -_windows.TextEntryDialog_swigregister(TextEntryDialogPtr) - -class FontData(core.Object): - """This class holds a variety of information related to font dialogs.""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self) -> FontData - - This class holds a variety of information related to font dialogs. - """ - newobj = _windows.new_FontData(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_windows.delete_FontData): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def EnableEffects(*args, **kwargs): - """ - EnableEffects(self, bool enable) - - Enables or disables 'effects' under MS Windows only. This refers - to the controls for manipulating colour, strikeout and underline - properties. The default value is true. - """ - return _windows.FontData_EnableEffects(*args, **kwargs) - - def GetAllowSymbols(*args, **kwargs): - """ - GetAllowSymbols(self) -> bool - - Under MS Windows, returns a flag determining whether symbol fonts can be - selected. Has no effect on other platforms. The default value is true. - """ - return _windows.FontData_GetAllowSymbols(*args, **kwargs) - - def GetColour(*args, **kwargs): - """ - GetColour(self) -> Colour - - Gets the colour associated with the font dialog. The default value is black. - """ - return _windows.FontData_GetColour(*args, **kwargs) - - def GetChosenFont(*args, **kwargs): - """ - GetChosenFont(self) -> Font - - Gets the font chosen by the user. - """ - return _windows.FontData_GetChosenFont(*args, **kwargs) - - def GetEnableEffects(*args, **kwargs): - """ - GetEnableEffects(self) -> bool - - Determines whether 'effects' are enabled under Windows. - """ - return _windows.FontData_GetEnableEffects(*args, **kwargs) - - def GetInitialFont(*args, **kwargs): - """ - GetInitialFont(self) -> Font - - Gets the font that will be initially used by the font dialog. This should have - previously been set by the application. - """ - return _windows.FontData_GetInitialFont(*args, **kwargs) - - def GetShowHelp(*args, **kwargs): - """ - GetShowHelp(self) -> bool - - Returns true if the Help button will be shown (Windows only). The default - value is false. - """ - return _windows.FontData_GetShowHelp(*args, **kwargs) - - def SetAllowSymbols(*args, **kwargs): - """ - SetAllowSymbols(self, bool allowSymbols) - - Under MS Windows, determines whether symbol fonts can be selected. Has no - effect on other platforms. The default value is true. - """ - return _windows.FontData_SetAllowSymbols(*args, **kwargs) - - def SetChosenFont(*args, **kwargs): - """ - SetChosenFont(self, Font font) - - Sets the font that will be returned to the user (for internal use only). - """ - return _windows.FontData_SetChosenFont(*args, **kwargs) - - def SetColour(*args, **kwargs): - """ - SetColour(self, Colour colour) - - Sets the colour that will be used for the font foreground colour. The default - colour is black. - """ - return _windows.FontData_SetColour(*args, **kwargs) - - def SetInitialFont(*args, **kwargs): - """ - SetInitialFont(self, Font font) - - Sets the font that will be initially used by the font dialog. - """ - return _windows.FontData_SetInitialFont(*args, **kwargs) - - def SetRange(*args, **kwargs): - """ - SetRange(self, int min, int max) - - Sets the valid range for the font point size (Windows only). The default is - 0, 0 (unrestricted range). - """ - return _windows.FontData_SetRange(*args, **kwargs) - - def SetShowHelp(*args, **kwargs): - """ - SetShowHelp(self, bool showHelp) - - Determines whether the Help button will be displayed in the font dialog - (Windows only). The default value is false. - """ - return _windows.FontData_SetShowHelp(*args, **kwargs) - - -class FontDataPtr(FontData): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = FontData -_windows.FontData_swigregister(FontDataPtr) - -class FontDialog(Dialog): - """This class represents the font chooser dialog.""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, FontData data) -> FontDialog - - Constructor. Pass a parent window and the FontData object to be - used to initialize the dialog controls. - """ - newobj = _windows.new_FontDialog(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def GetFontData(*args, **kwargs): - """ - GetFontData(self) -> FontData - - Returns a reference to the internal FontData used by the FontDialog. - """ - return _windows.FontDialog_GetFontData(*args, **kwargs) - - -class FontDialogPtr(FontDialog): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = FontDialog -_windows.FontDialog_swigregister(FontDialogPtr) - -class MessageDialog(Dialog): - """ - This class provides a dialog that shows a single or multi-line message, with - a choice of OK, Yes, No and Cancel buttons. - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr, - long style=wxOK|wxCANCEL|wxCENTRE, - Point pos=DefaultPosition) -> MessageDialog - - This class provides a dialog that shows a single or multi-line message, with - a choice of OK, Yes, No and Cancel buttons. - """ - newobj = _windows.new_MessageDialog(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - -class MessageDialogPtr(MessageDialog): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = MessageDialog -_windows.MessageDialog_swigregister(MessageDialogPtr) - -class ProgressDialog(Frame): - """ - A dialog that shows a short message and a progress bar. Optionally, it can - display an ABORT button. - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, String title, String message, int maximum=100, Window parent=None, - int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog - - Constructor. Creates the dialog, displays it and disables user input for other - windows, or, if wxPD_APP_MODAL flag is not given, for its parent window only. - """ - newobj = _windows.new_ProgressDialog(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Update(*args, **kwargs): - """ - Update(self, int value, String newmsg=EmptyString) -> bool - - Updates the dialog, setting the progress bar to the new value and, if given - changes the message above it. Returns true unless the Cancel button has been - pressed. - - If false is returned, the application can either immediately destroy the - dialog or ask the user for the confirmation and if the abort is not confirmed - the dialog may be resumed with Resume function. - """ - return _windows.ProgressDialog_Update(*args, **kwargs) - - def Resume(*args, **kwargs): - """ - Resume(self) - - Can be used to continue with the dialog, after the user had chosen to abort. - """ - return _windows.ProgressDialog_Resume(*args, **kwargs) - - -class ProgressDialogPtr(ProgressDialog): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ProgressDialog -_windows.ProgressDialog_swigregister(ProgressDialogPtr) - -FR_DOWN = _windows.FR_DOWN -FR_WHOLEWORD = _windows.FR_WHOLEWORD -FR_MATCHCASE = _windows.FR_MATCHCASE -FR_REPLACEDIALOG = _windows.FR_REPLACEDIALOG -FR_NOUPDOWN = _windows.FR_NOUPDOWN -FR_NOMATCHCASE = _windows.FR_NOMATCHCASE -FR_NOWHOLEWORD = _windows.FR_NOWHOLEWORD -wxEVT_COMMAND_FIND = _windows.wxEVT_COMMAND_FIND -wxEVT_COMMAND_FIND_NEXT = _windows.wxEVT_COMMAND_FIND_NEXT -wxEVT_COMMAND_FIND_REPLACE = _windows.wxEVT_COMMAND_FIND_REPLACE -wxEVT_COMMAND_FIND_REPLACE_ALL = _windows.wxEVT_COMMAND_FIND_REPLACE_ALL -wxEVT_COMMAND_FIND_CLOSE = _windows.wxEVT_COMMAND_FIND_CLOSE -EVT_FIND = wx.PyEventBinder( wxEVT_COMMAND_FIND, 1 ) -EVT_FIND_NEXT = wx.PyEventBinder( wxEVT_COMMAND_FIND_NEXT, 1 ) -EVT_FIND_REPLACE = wx.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE, 1 ) -EVT_FIND_REPLACE_ALL = wx.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL, 1 ) -EVT_FIND_CLOSE = wx.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE, 1 ) - -# For backwards compatibility. Should they be removed? -EVT_COMMAND_FIND = EVT_FIND -EVT_COMMAND_FIND_NEXT = EVT_FIND_NEXT -EVT_COMMAND_FIND_REPLACE = EVT_FIND_REPLACE -EVT_COMMAND_FIND_REPLACE_ALL = EVT_FIND_REPLACE_ALL -EVT_COMMAND_FIND_CLOSE = EVT_FIND_CLOSE - -class FindDialogEvent(core.CommandEvent): - """Events for the FindReplaceDialog""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent - - Events for the FindReplaceDialog - """ - newobj = _windows.new_FindDialogEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetFlags(*args, **kwargs): - """ - GetFlags(self) -> int - - Get the currently selected flags: this is the combination of - wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags. - """ - return _windows.FindDialogEvent_GetFlags(*args, **kwargs) - - def GetFindString(*args, **kwargs): - """ - GetFindString(self) -> String - - Return the string to find (never empty). - """ - return _windows.FindDialogEvent_GetFindString(*args, **kwargs) - - def GetReplaceString(*args, **kwargs): - """ - GetReplaceString(self) -> String - - Return the string to replace the search string with (only - for replace and replace all events). - """ - return _windows.FindDialogEvent_GetReplaceString(*args, **kwargs) - - def GetDialog(*args, **kwargs): - """ - GetDialog(self) -> FindReplaceDialog - - Return the pointer to the dialog which generated this event. - """ - return _windows.FindDialogEvent_GetDialog(*args, **kwargs) - - def SetFlags(*args, **kwargs): - """SetFlags(self, int flags)""" - return _windows.FindDialogEvent_SetFlags(*args, **kwargs) - - def SetFindString(*args, **kwargs): - """SetFindString(self, String str)""" - return _windows.FindDialogEvent_SetFindString(*args, **kwargs) - - def SetReplaceString(*args, **kwargs): - """SetReplaceString(self, String str)""" - return _windows.FindDialogEvent_SetReplaceString(*args, **kwargs) - - -class FindDialogEventPtr(FindDialogEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = FindDialogEvent -_windows.FindDialogEvent_swigregister(FindDialogEventPtr) - -class FindReplaceData(core.Object): - """ - FindReplaceData holds the data for FindReplaceDialog. It is used to initialize - the dialog with the default values and will keep the last values from the - dialog when it is closed. It is also updated each time a wxFindDialogEvent is - generated so instead of using the wxFindDialogEvent methods you can also - directly query this object. - - Note that all SetXXX() methods may only be called before showing the dialog - and calling them has no effect later. - - Flags - wxFR_DOWN: downward search/replace selected (otherwise, upwards) - - wxFR_WHOLEWORD: whole word search/replace selected - - wxFR_MATCHCASE: case sensitive search/replace selected (otherwise, - case insensitive) - - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, int flags=0) -> FindReplaceData - - Constuctor initializes the flags to default value (0). - """ - newobj = _windows.new_FindReplaceData(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_windows.delete_FindReplaceData): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def GetFindString(*args, **kwargs): - """ - GetFindString(self) -> String - - Get the string to find. - """ - return _windows.FindReplaceData_GetFindString(*args, **kwargs) - - def GetReplaceString(*args, **kwargs): - """ - GetReplaceString(self) -> String - - Get the replacement string. - """ - return _windows.FindReplaceData_GetReplaceString(*args, **kwargs) - - def GetFlags(*args, **kwargs): - """ - GetFlags(self) -> int - - Get the combination of flag values. - """ - return _windows.FindReplaceData_GetFlags(*args, **kwargs) - - def SetFlags(*args, **kwargs): - """ - SetFlags(self, int flags) - - Set the flags to use to initialize the controls of the dialog. - """ - return _windows.FindReplaceData_SetFlags(*args, **kwargs) - - def SetFindString(*args, **kwargs): - """ - SetFindString(self, String str) - - Set the string to find (used as initial value by the dialog). - """ - return _windows.FindReplaceData_SetFindString(*args, **kwargs) - - def SetReplaceString(*args, **kwargs): - """ - SetReplaceString(self, String str) - - Set the replacement string (used as initial value by the dialog). - """ - return _windows.FindReplaceData_SetReplaceString(*args, **kwargs) - - -class FindReplaceDataPtr(FindReplaceData): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = FindReplaceData -_windows.FindReplaceData_swigregister(FindReplaceDataPtr) - -class FindReplaceDialog(Dialog): - """ - FindReplaceDialog is a standard modeless dialog which is used to allow the - user to search for some text (and possibly replace it with something - else). The actual searching is supposed to be done in the owner window which - is the parent of this dialog. Note that it means that unlike for the other - standard dialogs this one must have a parent window. Also note that there is - no way to use this dialog in a modal way; it is always, by design and - implementation, modeless. - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, FindReplaceData data, String title, - int style=0) -> FindReplaceDialog - - Create a FindReplaceDialog. The parent and data parameters must be - non-None. Use Show to display the dialog. - """ - newobj = _windows.new_FindReplaceDialog(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, FindReplaceData data, String title, - int style=0) -> bool - - Create the dialog, for 2-phase create. - """ - return _windows.FindReplaceDialog_Create(*args, **kwargs) - - def GetData(*args, **kwargs): - """ - GetData(self) -> FindReplaceData - - Get the FindReplaceData object used by this dialog. - """ - return _windows.FindReplaceDialog_GetData(*args, **kwargs) - - def SetData(*args, **kwargs): - """ - SetData(self, FindReplaceData data) - - Set the FindReplaceData object used by this dialog. - """ - return _windows.FindReplaceDialog_SetData(*args, **kwargs) - - -class FindReplaceDialogPtr(FindReplaceDialog): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = FindReplaceDialog -_windows.FindReplaceDialog_swigregister(FindReplaceDialogPtr) - -def PreFindReplaceDialog(*args, **kwargs): - """ - PreFindReplaceDialog() -> FindReplaceDialog - - Precreate a FindReplaceDialog for 2-phase creation - """ - val = _windows.new_PreFindReplaceDialog(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -IDM_WINDOWTILE = _windows.IDM_WINDOWTILE -IDM_WINDOWTILEHOR = _windows.IDM_WINDOWTILEHOR -IDM_WINDOWCASCADE = _windows.IDM_WINDOWCASCADE -IDM_WINDOWICONS = _windows.IDM_WINDOWICONS -IDM_WINDOWNEXT = _windows.IDM_WINDOWNEXT -IDM_WINDOWTILEVERT = _windows.IDM_WINDOWTILEVERT -FIRST_MDI_CHILD = _windows.FIRST_MDI_CHILD -LAST_MDI_CHILD = _windows.LAST_MDI_CHILD -class MDIParentFrame(Frame): - def __repr__(self): - return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, String title, Point pos=DefaultPosition, - Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL, - String name=FrameNameStr) -> MDIParentFrame - """ - newobj = _windows.new_MDIParentFrame(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id, String title, Point pos=DefaultPosition, - Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL, - String name=FrameNameStr) -> bool - """ - return _windows.MDIParentFrame_Create(*args, **kwargs) - - def ActivateNext(*args, **kwargs): - """ActivateNext(self)""" - return _windows.MDIParentFrame_ActivateNext(*args, **kwargs) - - def ActivatePrevious(*args, **kwargs): - """ActivatePrevious(self)""" - return _windows.MDIParentFrame_ActivatePrevious(*args, **kwargs) - - def ArrangeIcons(*args, **kwargs): - """ArrangeIcons(self)""" - return _windows.MDIParentFrame_ArrangeIcons(*args, **kwargs) - - def Cascade(*args, **kwargs): - """Cascade(self)""" - return _windows.MDIParentFrame_Cascade(*args, **kwargs) - - def GetActiveChild(*args, **kwargs): - """GetActiveChild(self) -> MDIChildFrame""" - return _windows.MDIParentFrame_GetActiveChild(*args, **kwargs) - - def GetClientWindow(*args, **kwargs): - """GetClientWindow(self) -> MDIClientWindow""" - return _windows.MDIParentFrame_GetClientWindow(*args, **kwargs) - - def GetToolBar(*args, **kwargs): - """GetToolBar(self) -> Window""" - return _windows.MDIParentFrame_GetToolBar(*args, **kwargs) - - def Tile(*args, **kwargs): - """Tile(self)""" - return _windows.MDIParentFrame_Tile(*args, **kwargs) - - -class MDIParentFramePtr(MDIParentFrame): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = MDIParentFrame -_windows.MDIParentFrame_swigregister(MDIParentFramePtr) - -def PreMDIParentFrame(*args, **kwargs): - """PreMDIParentFrame() -> MDIParentFrame""" - val = _windows.new_PreMDIParentFrame(*args, **kwargs) - val.thisown = 1 - return val - -class MDIChildFrame(Frame): - def __repr__(self): - return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, MDIParentFrame parent, int id, String title, Point pos=DefaultPosition, - Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE, - String name=FrameNameStr) -> MDIChildFrame - """ - newobj = _windows.new_MDIChildFrame(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, MDIParentFrame parent, int id, String title, Point pos=DefaultPosition, - Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE, - String name=FrameNameStr) -> bool - """ - return _windows.MDIChildFrame_Create(*args, **kwargs) - - def Activate(*args, **kwargs): - """Activate(self)""" - return _windows.MDIChildFrame_Activate(*args, **kwargs) - - def Maximize(*args, **kwargs): - """Maximize(self, bool maximize)""" - return _windows.MDIChildFrame_Maximize(*args, **kwargs) - - def Restore(*args, **kwargs): - """Restore(self)""" - return _windows.MDIChildFrame_Restore(*args, **kwargs) - - -class MDIChildFramePtr(MDIChildFrame): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = MDIChildFrame -_windows.MDIChildFrame_swigregister(MDIChildFramePtr) - -def PreMDIChildFrame(*args, **kwargs): - """PreMDIChildFrame() -> MDIChildFrame""" - val = _windows.new_PreMDIChildFrame(*args, **kwargs) - val.thisown = 1 - return val - -class MDIClientWindow(core.Window): - def __repr__(self): - return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, MDIParentFrame parent, long style=0) -> MDIClientWindow""" - newobj = _windows.new_MDIClientWindow(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """Create(self, MDIParentFrame parent, long style=0) -> bool""" - return _windows.MDIClientWindow_Create(*args, **kwargs) - - -class MDIClientWindowPtr(MDIClientWindow): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = MDIClientWindow -_windows.MDIClientWindow_swigregister(MDIClientWindowPtr) - -def PreMDIClientWindow(*args, **kwargs): - """PreMDIClientWindow() -> MDIClientWindow""" - val = _windows.new_PreMDIClientWindow(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -class PyWindow(core.Window): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - long style=0, String name=PanelNameStr) -> PyWindow - """ - newobj = _windows.new_PyWindow(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self); self._setCallbackInfo(self, PyWindow) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _windows.PyWindow__setCallbackInfo(*args, **kwargs) - - def base_DoMoveWindow(*args, **kwargs): - """base_DoMoveWindow(self, int x, int y, int width, int height)""" - return _windows.PyWindow_base_DoMoveWindow(*args, **kwargs) - - def base_DoSetSize(*args, **kwargs): - """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)""" - return _windows.PyWindow_base_DoSetSize(*args, **kwargs) - - def base_DoSetClientSize(*args, **kwargs): - """base_DoSetClientSize(self, int width, int height)""" - return _windows.PyWindow_base_DoSetClientSize(*args, **kwargs) - - def base_DoSetVirtualSize(*args, **kwargs): - """base_DoSetVirtualSize(self, int x, int y)""" - return _windows.PyWindow_base_DoSetVirtualSize(*args, **kwargs) - - def base_DoGetSize(*args, **kwargs): - """base_DoGetSize() -> (width, height)""" - return _windows.PyWindow_base_DoGetSize(*args, **kwargs) - - def base_DoGetClientSize(*args, **kwargs): - """base_DoGetClientSize() -> (width, height)""" - return _windows.PyWindow_base_DoGetClientSize(*args, **kwargs) - - def base_DoGetPosition(*args, **kwargs): - """base_DoGetPosition() -> (x,y)""" - return _windows.PyWindow_base_DoGetPosition(*args, **kwargs) - - def base_DoGetVirtualSize(*args, **kwargs): - """base_DoGetVirtualSize(self) -> Size""" - return _windows.PyWindow_base_DoGetVirtualSize(*args, **kwargs) - - def base_DoGetBestSize(*args, **kwargs): - """base_DoGetBestSize(self) -> Size""" - return _windows.PyWindow_base_DoGetBestSize(*args, **kwargs) - - def base_InitDialog(*args, **kwargs): - """base_InitDialog(self)""" - return _windows.PyWindow_base_InitDialog(*args, **kwargs) - - def base_TransferDataToWindow(*args, **kwargs): - """base_TransferDataToWindow(self) -> bool""" - return _windows.PyWindow_base_TransferDataToWindow(*args, **kwargs) - - def base_TransferDataFromWindow(*args, **kwargs): - """base_TransferDataFromWindow(self) -> bool""" - return _windows.PyWindow_base_TransferDataFromWindow(*args, **kwargs) - - def base_Validate(*args, **kwargs): - """base_Validate(self) -> bool""" - return _windows.PyWindow_base_Validate(*args, **kwargs) - - def base_AcceptsFocus(*args, **kwargs): - """base_AcceptsFocus(self) -> bool""" - return _windows.PyWindow_base_AcceptsFocus(*args, **kwargs) - - def base_AcceptsFocusFromKeyboard(*args, **kwargs): - """base_AcceptsFocusFromKeyboard(self) -> bool""" - return _windows.PyWindow_base_AcceptsFocusFromKeyboard(*args, **kwargs) - - def base_GetMaxSize(*args, **kwargs): - """base_GetMaxSize(self) -> Size""" - return _windows.PyWindow_base_GetMaxSize(*args, **kwargs) - - def base_AddChild(*args, **kwargs): - """base_AddChild(self, Window child)""" - return _windows.PyWindow_base_AddChild(*args, **kwargs) - - def base_RemoveChild(*args, **kwargs): - """base_RemoveChild(self, Window child)""" - return _windows.PyWindow_base_RemoveChild(*args, **kwargs) - - def base_ShouldInheritColours(*args, **kwargs): - """base_ShouldInheritColours(self) -> bool""" - return _windows.PyWindow_base_ShouldInheritColours(*args, **kwargs) - - def base_ApplyParentThemeBackground(*args, **kwargs): - """base_ApplyParentThemeBackground(self, Colour c)""" - return _windows.PyWindow_base_ApplyParentThemeBackground(*args, **kwargs) - - -class PyWindowPtr(PyWindow): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PyWindow -_windows.PyWindow_swigregister(PyWindowPtr) - -def PrePyWindow(*args, **kwargs): - """PrePyWindow() -> PyWindow""" - val = _windows.new_PrePyWindow(*args, **kwargs) - val.thisown = 1 - return val - -class PyPanel(Panel): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - long style=0, String name=PanelNameStr) -> PyPanel - """ - newobj = _windows.new_PyPanel(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self); self._setCallbackInfo(self, PyPanel) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _windows.PyPanel__setCallbackInfo(*args, **kwargs) - - def base_DoMoveWindow(*args, **kwargs): - """base_DoMoveWindow(self, int x, int y, int width, int height)""" - return _windows.PyPanel_base_DoMoveWindow(*args, **kwargs) - - def base_DoSetSize(*args, **kwargs): - """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)""" - return _windows.PyPanel_base_DoSetSize(*args, **kwargs) - - def base_DoSetClientSize(*args, **kwargs): - """base_DoSetClientSize(self, int width, int height)""" - return _windows.PyPanel_base_DoSetClientSize(*args, **kwargs) - - def base_DoSetVirtualSize(*args, **kwargs): - """base_DoSetVirtualSize(self, int x, int y)""" - return _windows.PyPanel_base_DoSetVirtualSize(*args, **kwargs) - - def base_DoGetSize(*args, **kwargs): - """base_DoGetSize() -> (width, height)""" - return _windows.PyPanel_base_DoGetSize(*args, **kwargs) - - def base_DoGetClientSize(*args, **kwargs): - """base_DoGetClientSize() -> (width, height)""" - return _windows.PyPanel_base_DoGetClientSize(*args, **kwargs) - - def base_DoGetPosition(*args, **kwargs): - """base_DoGetPosition() -> (x,y)""" - return _windows.PyPanel_base_DoGetPosition(*args, **kwargs) - - def base_DoGetVirtualSize(*args, **kwargs): - """base_DoGetVirtualSize(self) -> Size""" - return _windows.PyPanel_base_DoGetVirtualSize(*args, **kwargs) - - def base_DoGetBestSize(*args, **kwargs): - """base_DoGetBestSize(self) -> Size""" - return _windows.PyPanel_base_DoGetBestSize(*args, **kwargs) - - def base_InitDialog(*args, **kwargs): - """base_InitDialog(self)""" - return _windows.PyPanel_base_InitDialog(*args, **kwargs) - - def base_TransferDataToWindow(*args, **kwargs): - """base_TransferDataToWindow(self) -> bool""" - return _windows.PyPanel_base_TransferDataToWindow(*args, **kwargs) - - def base_TransferDataFromWindow(*args, **kwargs): - """base_TransferDataFromWindow(self) -> bool""" - return _windows.PyPanel_base_TransferDataFromWindow(*args, **kwargs) - - def base_Validate(*args, **kwargs): - """base_Validate(self) -> bool""" - return _windows.PyPanel_base_Validate(*args, **kwargs) - - def base_AcceptsFocus(*args, **kwargs): - """base_AcceptsFocus(self) -> bool""" - return _windows.PyPanel_base_AcceptsFocus(*args, **kwargs) - - def base_AcceptsFocusFromKeyboard(*args, **kwargs): - """base_AcceptsFocusFromKeyboard(self) -> bool""" - return _windows.PyPanel_base_AcceptsFocusFromKeyboard(*args, **kwargs) - - def base_GetMaxSize(*args, **kwargs): - """base_GetMaxSize(self) -> Size""" - return _windows.PyPanel_base_GetMaxSize(*args, **kwargs) - - def base_AddChild(*args, **kwargs): - """base_AddChild(self, Window child)""" - return _windows.PyPanel_base_AddChild(*args, **kwargs) - - def base_RemoveChild(*args, **kwargs): - """base_RemoveChild(self, Window child)""" - return _windows.PyPanel_base_RemoveChild(*args, **kwargs) - - def base_ShouldInheritColours(*args, **kwargs): - """base_ShouldInheritColours(self) -> bool""" - return _windows.PyPanel_base_ShouldInheritColours(*args, **kwargs) - - def base_ApplyParentThemeBackground(*args, **kwargs): - """base_ApplyParentThemeBackground(self, Colour c)""" - return _windows.PyPanel_base_ApplyParentThemeBackground(*args, **kwargs) - - -class PyPanelPtr(PyPanel): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PyPanel -_windows.PyPanel_swigregister(PyPanelPtr) - -def PrePyPanel(*args, **kwargs): - """PrePyPanel() -> PyPanel""" - val = _windows.new_PrePyPanel(*args, **kwargs) - val.thisown = 1 - return val - -class PyScrolledWindow(ScrolledWindow): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyScrolledWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - long style=0, String name=PanelNameStr) -> PyScrolledWindow - """ - newobj = _windows.new_PyScrolledWindow(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self); self._setCallbackInfo(self, PyPanel) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _windows.PyScrolledWindow__setCallbackInfo(*args, **kwargs) - - def base_DoMoveWindow(*args, **kwargs): - """base_DoMoveWindow(self, int x, int y, int width, int height)""" - return _windows.PyScrolledWindow_base_DoMoveWindow(*args, **kwargs) - - def base_DoSetSize(*args, **kwargs): - """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)""" - return _windows.PyScrolledWindow_base_DoSetSize(*args, **kwargs) - - def base_DoSetClientSize(*args, **kwargs): - """base_DoSetClientSize(self, int width, int height)""" - return _windows.PyScrolledWindow_base_DoSetClientSize(*args, **kwargs) - - def base_DoSetVirtualSize(*args, **kwargs): - """base_DoSetVirtualSize(self, int x, int y)""" - return _windows.PyScrolledWindow_base_DoSetVirtualSize(*args, **kwargs) - - def base_DoGetSize(*args, **kwargs): - """base_DoGetSize() -> (width, height)""" - return _windows.PyScrolledWindow_base_DoGetSize(*args, **kwargs) - - def base_DoGetClientSize(*args, **kwargs): - """base_DoGetClientSize() -> (width, height)""" - return _windows.PyScrolledWindow_base_DoGetClientSize(*args, **kwargs) - - def base_DoGetPosition(*args, **kwargs): - """base_DoGetPosition() -> (x,y)""" - return _windows.PyScrolledWindow_base_DoGetPosition(*args, **kwargs) - - def base_DoGetVirtualSize(*args, **kwargs): - """base_DoGetVirtualSize(self) -> Size""" - return _windows.PyScrolledWindow_base_DoGetVirtualSize(*args, **kwargs) - - def base_DoGetBestSize(*args, **kwargs): - """base_DoGetBestSize(self) -> Size""" - return _windows.PyScrolledWindow_base_DoGetBestSize(*args, **kwargs) - - def base_InitDialog(*args, **kwargs): - """base_InitDialog(self)""" - return _windows.PyScrolledWindow_base_InitDialog(*args, **kwargs) - - def base_TransferDataToWindow(*args, **kwargs): - """base_TransferDataToWindow(self) -> bool""" - return _windows.PyScrolledWindow_base_TransferDataToWindow(*args, **kwargs) - - def base_TransferDataFromWindow(*args, **kwargs): - """base_TransferDataFromWindow(self) -> bool""" - return _windows.PyScrolledWindow_base_TransferDataFromWindow(*args, **kwargs) - - def base_Validate(*args, **kwargs): - """base_Validate(self) -> bool""" - return _windows.PyScrolledWindow_base_Validate(*args, **kwargs) - - def base_AcceptsFocus(*args, **kwargs): - """base_AcceptsFocus(self) -> bool""" - return _windows.PyScrolledWindow_base_AcceptsFocus(*args, **kwargs) - - def base_AcceptsFocusFromKeyboard(*args, **kwargs): - """base_AcceptsFocusFromKeyboard(self) -> bool""" - return _windows.PyScrolledWindow_base_AcceptsFocusFromKeyboard(*args, **kwargs) - - def base_GetMaxSize(*args, **kwargs): - """base_GetMaxSize(self) -> Size""" - return _windows.PyScrolledWindow_base_GetMaxSize(*args, **kwargs) - - def base_AddChild(*args, **kwargs): - """base_AddChild(self, Window child)""" - return _windows.PyScrolledWindow_base_AddChild(*args, **kwargs) - - def base_RemoveChild(*args, **kwargs): - """base_RemoveChild(self, Window child)""" - return _windows.PyScrolledWindow_base_RemoveChild(*args, **kwargs) - - def base_ShouldInheritColours(*args, **kwargs): - """base_ShouldInheritColours(self) -> bool""" - return _windows.PyScrolledWindow_base_ShouldInheritColours(*args, **kwargs) - - def base_ApplyParentThemeBackground(*args, **kwargs): - """base_ApplyParentThemeBackground(self, Colour c)""" - return _windows.PyScrolledWindow_base_ApplyParentThemeBackground(*args, **kwargs) - - -class PyScrolledWindowPtr(PyScrolledWindow): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PyScrolledWindow -_windows.PyScrolledWindow_swigregister(PyScrolledWindowPtr) - -def PrePyScrolledWindow(*args, **kwargs): - """PrePyScrolledWindow() -> PyScrolledWindow""" - val = _windows.new_PrePyScrolledWindow(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -PRINT_MODE_NONE = _windows.PRINT_MODE_NONE -PRINT_MODE_PREVIEW = _windows.PRINT_MODE_PREVIEW -PRINT_MODE_FILE = _windows.PRINT_MODE_FILE -PRINT_MODE_PRINTER = _windows.PRINT_MODE_PRINTER -PRINT_MODE_STREAM = _windows.PRINT_MODE_STREAM -class PrintData(core.Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> PrintData""" - newobj = _windows.new_PrintData(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_windows.delete_PrintData): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def GetNoCopies(*args, **kwargs): - """GetNoCopies(self) -> int""" - return _windows.PrintData_GetNoCopies(*args, **kwargs) - - def GetCollate(*args, **kwargs): - """GetCollate(self) -> bool""" - return _windows.PrintData_GetCollate(*args, **kwargs) - - def GetOrientation(*args, **kwargs): - """GetOrientation(self) -> int""" - return _windows.PrintData_GetOrientation(*args, **kwargs) - - def Ok(*args, **kwargs): - """Ok(self) -> bool""" - return _windows.PrintData_Ok(*args, **kwargs) - - def GetPrinterName(*args, **kwargs): - """GetPrinterName(self) -> String""" - return _windows.PrintData_GetPrinterName(*args, **kwargs) - - def GetColour(*args, **kwargs): - """GetColour(self) -> bool""" - return _windows.PrintData_GetColour(*args, **kwargs) - - def GetDuplex(*args, **kwargs): - """GetDuplex(self) -> int""" - return _windows.PrintData_GetDuplex(*args, **kwargs) - - def GetPaperId(*args, **kwargs): - """GetPaperId(self) -> int""" - return _windows.PrintData_GetPaperId(*args, **kwargs) - - def GetPaperSize(*args, **kwargs): - """GetPaperSize(self) -> Size""" - return _windows.PrintData_GetPaperSize(*args, **kwargs) - - def GetQuality(*args, **kwargs): - """GetQuality(self) -> int""" - return _windows.PrintData_GetQuality(*args, **kwargs) - - def SetNoCopies(*args, **kwargs): - """SetNoCopies(self, int v)""" - return _windows.PrintData_SetNoCopies(*args, **kwargs) - - def SetCollate(*args, **kwargs): - """SetCollate(self, bool flag)""" - return _windows.PrintData_SetCollate(*args, **kwargs) - - def SetOrientation(*args, **kwargs): - """SetOrientation(self, int orient)""" - return _windows.PrintData_SetOrientation(*args, **kwargs) - - def SetPrinterName(*args, **kwargs): - """SetPrinterName(self, String name)""" - return _windows.PrintData_SetPrinterName(*args, **kwargs) - - def SetColour(*args, **kwargs): - """SetColour(self, bool colour)""" - return _windows.PrintData_SetColour(*args, **kwargs) - - def SetDuplex(*args, **kwargs): - """SetDuplex(self, int duplex)""" - return _windows.PrintData_SetDuplex(*args, **kwargs) - - def SetPaperId(*args, **kwargs): - """SetPaperId(self, int sizeId)""" - return _windows.PrintData_SetPaperId(*args, **kwargs) - - def SetPaperSize(*args, **kwargs): - """SetPaperSize(self, Size sz)""" - return _windows.PrintData_SetPaperSize(*args, **kwargs) - - def SetQuality(*args, **kwargs): - """SetQuality(self, int quality)""" - return _windows.PrintData_SetQuality(*args, **kwargs) - - def GetPrinterCommand(*args, **kwargs): - """GetPrinterCommand(self) -> String""" - return _windows.PrintData_GetPrinterCommand(*args, **kwargs) - - def GetPrinterOptions(*args, **kwargs): - """GetPrinterOptions(self) -> String""" - return _windows.PrintData_GetPrinterOptions(*args, **kwargs) - - def GetPreviewCommand(*args, **kwargs): - """GetPreviewCommand(self) -> String""" - return _windows.PrintData_GetPreviewCommand(*args, **kwargs) - - def GetFilename(*args, **kwargs): - """GetFilename(self) -> String""" - return _windows.PrintData_GetFilename(*args, **kwargs) - - def GetFontMetricPath(*args, **kwargs): - """GetFontMetricPath(self) -> String""" - return _windows.PrintData_GetFontMetricPath(*args, **kwargs) - - def GetPrinterScaleX(*args, **kwargs): - """GetPrinterScaleX(self) -> double""" - return _windows.PrintData_GetPrinterScaleX(*args, **kwargs) - - def GetPrinterScaleY(*args, **kwargs): - """GetPrinterScaleY(self) -> double""" - return _windows.PrintData_GetPrinterScaleY(*args, **kwargs) - - def GetPrinterTranslateX(*args, **kwargs): - """GetPrinterTranslateX(self) -> long""" - return _windows.PrintData_GetPrinterTranslateX(*args, **kwargs) - - def GetPrinterTranslateY(*args, **kwargs): - """GetPrinterTranslateY(self) -> long""" - return _windows.PrintData_GetPrinterTranslateY(*args, **kwargs) - - def GetPrintMode(*args, **kwargs): - """GetPrintMode(self) -> int""" - return _windows.PrintData_GetPrintMode(*args, **kwargs) - - def SetPrinterCommand(*args, **kwargs): - """SetPrinterCommand(self, String command)""" - return _windows.PrintData_SetPrinterCommand(*args, **kwargs) - - def SetPrinterOptions(*args, **kwargs): - """SetPrinterOptions(self, String options)""" - return _windows.PrintData_SetPrinterOptions(*args, **kwargs) - - def SetPreviewCommand(*args, **kwargs): - """SetPreviewCommand(self, String command)""" - return _windows.PrintData_SetPreviewCommand(*args, **kwargs) - - def SetFilename(*args, **kwargs): - """SetFilename(self, String filename)""" - return _windows.PrintData_SetFilename(*args, **kwargs) - - def SetFontMetricPath(*args, **kwargs): - """SetFontMetricPath(self, String path)""" - return _windows.PrintData_SetFontMetricPath(*args, **kwargs) - - def SetPrinterScaleX(*args, **kwargs): - """SetPrinterScaleX(self, double x)""" - return _windows.PrintData_SetPrinterScaleX(*args, **kwargs) - - def SetPrinterScaleY(*args, **kwargs): - """SetPrinterScaleY(self, double y)""" - return _windows.PrintData_SetPrinterScaleY(*args, **kwargs) - - def SetPrinterScaling(*args, **kwargs): - """SetPrinterScaling(self, double x, double y)""" - return _windows.PrintData_SetPrinterScaling(*args, **kwargs) - - def SetPrinterTranslateX(*args, **kwargs): - """SetPrinterTranslateX(self, long x)""" - return _windows.PrintData_SetPrinterTranslateX(*args, **kwargs) - - def SetPrinterTranslateY(*args, **kwargs): - """SetPrinterTranslateY(self, long y)""" - return _windows.PrintData_SetPrinterTranslateY(*args, **kwargs) - - def SetPrinterTranslation(*args, **kwargs): - """SetPrinterTranslation(self, long x, long y)""" - return _windows.PrintData_SetPrinterTranslation(*args, **kwargs) - - def SetPrintMode(*args, **kwargs): - """SetPrintMode(self, int printMode)""" - return _windows.PrintData_SetPrintMode(*args, **kwargs) - - def GetOutputStream(*args, **kwargs): - """GetOutputStream(self) -> OutputStream""" - return _windows.PrintData_GetOutputStream(*args, **kwargs) - - def SetOutputStream(*args, **kwargs): - """SetOutputStream(self, OutputStream outputstream)""" - return _windows.PrintData_SetOutputStream(*args, **kwargs) - - def __nonzero__(self): return self.Ok() - -class PrintDataPtr(PrintData): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PrintData -_windows.PrintData_swigregister(PrintDataPtr) -PrintoutTitleStr = cvar.PrintoutTitleStr -PreviewCanvasNameStr = cvar.PreviewCanvasNameStr - -class PageSetupDialogData(core.Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> PageSetupDialogData""" - newobj = _windows.new_PageSetupDialogData(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_windows.delete_PageSetupDialogData): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def EnableHelp(*args, **kwargs): - """EnableHelp(self, bool flag)""" - return _windows.PageSetupDialogData_EnableHelp(*args, **kwargs) - - def EnableMargins(*args, **kwargs): - """EnableMargins(self, bool flag)""" - return _windows.PageSetupDialogData_EnableMargins(*args, **kwargs) - - def EnableOrientation(*args, **kwargs): - """EnableOrientation(self, bool flag)""" - return _windows.PageSetupDialogData_EnableOrientation(*args, **kwargs) - - def EnablePaper(*args, **kwargs): - """EnablePaper(self, bool flag)""" - return _windows.PageSetupDialogData_EnablePaper(*args, **kwargs) - - def EnablePrinter(*args, **kwargs): - """EnablePrinter(self, bool flag)""" - return _windows.PageSetupDialogData_EnablePrinter(*args, **kwargs) - - def GetDefaultMinMargins(*args, **kwargs): - """GetDefaultMinMargins(self) -> bool""" - return _windows.PageSetupDialogData_GetDefaultMinMargins(*args, **kwargs) - - def GetEnableMargins(*args, **kwargs): - """GetEnableMargins(self) -> bool""" - return _windows.PageSetupDialogData_GetEnableMargins(*args, **kwargs) - - def GetEnableOrientation(*args, **kwargs): - """GetEnableOrientation(self) -> bool""" - return _windows.PageSetupDialogData_GetEnableOrientation(*args, **kwargs) - - def GetEnablePaper(*args, **kwargs): - """GetEnablePaper(self) -> bool""" - return _windows.PageSetupDialogData_GetEnablePaper(*args, **kwargs) - - def GetEnablePrinter(*args, **kwargs): - """GetEnablePrinter(self) -> bool""" - return _windows.PageSetupDialogData_GetEnablePrinter(*args, **kwargs) - - def GetEnableHelp(*args, **kwargs): - """GetEnableHelp(self) -> bool""" - return _windows.PageSetupDialogData_GetEnableHelp(*args, **kwargs) - - def GetDefaultInfo(*args, **kwargs): - """GetDefaultInfo(self) -> bool""" - return _windows.PageSetupDialogData_GetDefaultInfo(*args, **kwargs) - - def GetMarginTopLeft(*args, **kwargs): - """GetMarginTopLeft(self) -> Point""" - return _windows.PageSetupDialogData_GetMarginTopLeft(*args, **kwargs) - - def GetMarginBottomRight(*args, **kwargs): - """GetMarginBottomRight(self) -> Point""" - return _windows.PageSetupDialogData_GetMarginBottomRight(*args, **kwargs) - - def GetMinMarginTopLeft(*args, **kwargs): - """GetMinMarginTopLeft(self) -> Point""" - return _windows.PageSetupDialogData_GetMinMarginTopLeft(*args, **kwargs) - - def GetMinMarginBottomRight(*args, **kwargs): - """GetMinMarginBottomRight(self) -> Point""" - return _windows.PageSetupDialogData_GetMinMarginBottomRight(*args, **kwargs) - - def GetPaperId(*args, **kwargs): - """GetPaperId(self) -> int""" - return _windows.PageSetupDialogData_GetPaperId(*args, **kwargs) - - def GetPaperSize(*args, **kwargs): - """GetPaperSize(self) -> Size""" - return _windows.PageSetupDialogData_GetPaperSize(*args, **kwargs) - - def GetPrintData(*args, **kwargs): - """GetPrintData(self) -> PrintData""" - return _windows.PageSetupDialogData_GetPrintData(*args, **kwargs) - - def Ok(*args, **kwargs): - """Ok(self) -> bool""" - return _windows.PageSetupDialogData_Ok(*args, **kwargs) - - def SetDefaultInfo(*args, **kwargs): - """SetDefaultInfo(self, bool flag)""" - return _windows.PageSetupDialogData_SetDefaultInfo(*args, **kwargs) - - def SetDefaultMinMargins(*args, **kwargs): - """SetDefaultMinMargins(self, bool flag)""" - return _windows.PageSetupDialogData_SetDefaultMinMargins(*args, **kwargs) - - def SetMarginTopLeft(*args, **kwargs): - """SetMarginTopLeft(self, Point pt)""" - return _windows.PageSetupDialogData_SetMarginTopLeft(*args, **kwargs) - - def SetMarginBottomRight(*args, **kwargs): - """SetMarginBottomRight(self, Point pt)""" - return _windows.PageSetupDialogData_SetMarginBottomRight(*args, **kwargs) - - def SetMinMarginTopLeft(*args, **kwargs): - """SetMinMarginTopLeft(self, Point pt)""" - return _windows.PageSetupDialogData_SetMinMarginTopLeft(*args, **kwargs) - - def SetMinMarginBottomRight(*args, **kwargs): - """SetMinMarginBottomRight(self, Point pt)""" - return _windows.PageSetupDialogData_SetMinMarginBottomRight(*args, **kwargs) - - def SetPaperId(*args, **kwargs): - """SetPaperId(self, int id)""" - return _windows.PageSetupDialogData_SetPaperId(*args, **kwargs) - - def SetPaperSize(*args, **kwargs): - """SetPaperSize(self, Size size)""" - return _windows.PageSetupDialogData_SetPaperSize(*args, **kwargs) - - def SetPrintData(*args, **kwargs): - """SetPrintData(self, PrintData printData)""" - return _windows.PageSetupDialogData_SetPrintData(*args, **kwargs) - - def __nonzero__(self): return self.Ok() - -class PageSetupDialogDataPtr(PageSetupDialogData): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PageSetupDialogData -_windows.PageSetupDialogData_swigregister(PageSetupDialogDataPtr) - -class PageSetupDialog(Dialog): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog""" - newobj = _windows.new_PageSetupDialog(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def GetPageSetupData(*args, **kwargs): - """GetPageSetupData(self) -> PageSetupDialogData""" - return _windows.PageSetupDialog_GetPageSetupData(*args, **kwargs) - - def ShowModal(*args, **kwargs): - """ShowModal(self) -> int""" - return _windows.PageSetupDialog_ShowModal(*args, **kwargs) - - -class PageSetupDialogPtr(PageSetupDialog): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PageSetupDialog -_windows.PageSetupDialog_swigregister(PageSetupDialogPtr) - -class PrintDialogData(core.Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args): - """ - __init__(self) -> PrintDialogData - __init__(self, PrintData printData) -> PrintDialogData - """ - newobj = _windows.new_PrintDialogData(*args) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_windows.delete_PrintDialogData): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def GetFromPage(*args, **kwargs): - """GetFromPage(self) -> int""" - return _windows.PrintDialogData_GetFromPage(*args, **kwargs) - - def GetToPage(*args, **kwargs): - """GetToPage(self) -> int""" - return _windows.PrintDialogData_GetToPage(*args, **kwargs) - - def GetMinPage(*args, **kwargs): - """GetMinPage(self) -> int""" - return _windows.PrintDialogData_GetMinPage(*args, **kwargs) - - def GetMaxPage(*args, **kwargs): - """GetMaxPage(self) -> int""" - return _windows.PrintDialogData_GetMaxPage(*args, **kwargs) - - def GetNoCopies(*args, **kwargs): - """GetNoCopies(self) -> int""" - return _windows.PrintDialogData_GetNoCopies(*args, **kwargs) - - def GetAllPages(*args, **kwargs): - """GetAllPages(self) -> bool""" - return _windows.PrintDialogData_GetAllPages(*args, **kwargs) - - def GetSelection(*args, **kwargs): - """GetSelection(self) -> bool""" - return _windows.PrintDialogData_GetSelection(*args, **kwargs) - - def GetCollate(*args, **kwargs): - """GetCollate(self) -> bool""" - return _windows.PrintDialogData_GetCollate(*args, **kwargs) - - def GetPrintToFile(*args, **kwargs): - """GetPrintToFile(self) -> bool""" - return _windows.PrintDialogData_GetPrintToFile(*args, **kwargs) - - def GetSetupDialog(*args, **kwargs): - """GetSetupDialog(self) -> bool""" - return _windows.PrintDialogData_GetSetupDialog(*args, **kwargs) - - def SetFromPage(*args, **kwargs): - """SetFromPage(self, int v)""" - return _windows.PrintDialogData_SetFromPage(*args, **kwargs) - - def SetToPage(*args, **kwargs): - """SetToPage(self, int v)""" - return _windows.PrintDialogData_SetToPage(*args, **kwargs) - - def SetMinPage(*args, **kwargs): - """SetMinPage(self, int v)""" - return _windows.PrintDialogData_SetMinPage(*args, **kwargs) - - def SetMaxPage(*args, **kwargs): - """SetMaxPage(self, int v)""" - return _windows.PrintDialogData_SetMaxPage(*args, **kwargs) - - def SetNoCopies(*args, **kwargs): - """SetNoCopies(self, int v)""" - return _windows.PrintDialogData_SetNoCopies(*args, **kwargs) - - def SetAllPages(*args, **kwargs): - """SetAllPages(self, bool flag)""" - return _windows.PrintDialogData_SetAllPages(*args, **kwargs) - - def SetSelection(*args, **kwargs): - """SetSelection(self, bool flag)""" - return _windows.PrintDialogData_SetSelection(*args, **kwargs) - - def SetCollate(*args, **kwargs): - """SetCollate(self, bool flag)""" - return _windows.PrintDialogData_SetCollate(*args, **kwargs) - - def SetPrintToFile(*args, **kwargs): - """SetPrintToFile(self, bool flag)""" - return _windows.PrintDialogData_SetPrintToFile(*args, **kwargs) - - def SetSetupDialog(*args, **kwargs): - """SetSetupDialog(self, bool flag)""" - return _windows.PrintDialogData_SetSetupDialog(*args, **kwargs) - - def EnablePrintToFile(*args, **kwargs): - """EnablePrintToFile(self, bool flag)""" - return _windows.PrintDialogData_EnablePrintToFile(*args, **kwargs) - - def EnableSelection(*args, **kwargs): - """EnableSelection(self, bool flag)""" - return _windows.PrintDialogData_EnableSelection(*args, **kwargs) - - def EnablePageNumbers(*args, **kwargs): - """EnablePageNumbers(self, bool flag)""" - return _windows.PrintDialogData_EnablePageNumbers(*args, **kwargs) - - def EnableHelp(*args, **kwargs): - """EnableHelp(self, bool flag)""" - return _windows.PrintDialogData_EnableHelp(*args, **kwargs) - - def GetEnablePrintToFile(*args, **kwargs): - """GetEnablePrintToFile(self) -> bool""" - return _windows.PrintDialogData_GetEnablePrintToFile(*args, **kwargs) - - def GetEnableSelection(*args, **kwargs): - """GetEnableSelection(self) -> bool""" - return _windows.PrintDialogData_GetEnableSelection(*args, **kwargs) - - def GetEnablePageNumbers(*args, **kwargs): - """GetEnablePageNumbers(self) -> bool""" - return _windows.PrintDialogData_GetEnablePageNumbers(*args, **kwargs) - - def GetEnableHelp(*args, **kwargs): - """GetEnableHelp(self) -> bool""" - return _windows.PrintDialogData_GetEnableHelp(*args, **kwargs) - - def Ok(*args, **kwargs): - """Ok(self) -> bool""" - return _windows.PrintDialogData_Ok(*args, **kwargs) - - def GetPrintData(*args, **kwargs): - """GetPrintData(self) -> PrintData""" - return _windows.PrintDialogData_GetPrintData(*args, **kwargs) - - def SetPrintData(*args, **kwargs): - """SetPrintData(self, PrintData printData)""" - return _windows.PrintDialogData_SetPrintData(*args, **kwargs) - - def __nonzero__(self): return self.Ok() - -class PrintDialogDataPtr(PrintDialogData): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PrintDialogData -_windows.PrintDialogData_swigregister(PrintDialogDataPtr) - -class PrintDialog(Dialog): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog""" - newobj = _windows.new_PrintDialog(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def GetPrintDialogData(*args, **kwargs): - """GetPrintDialogData(self) -> PrintDialogData""" - return _windows.PrintDialog_GetPrintDialogData(*args, **kwargs) - - def GetPrintDC(*args, **kwargs): - """GetPrintDC(self) -> DC""" - return _windows.PrintDialog_GetPrintDC(*args, **kwargs) - - def ShowModal(*args, **kwargs): - """ShowModal(self) -> int""" - return _windows.PrintDialog_ShowModal(*args, **kwargs) - - -class PrintDialogPtr(PrintDialog): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PrintDialog -_windows.PrintDialog_swigregister(PrintDialogPtr) - -PRINTER_NO_ERROR = _windows.PRINTER_NO_ERROR -PRINTER_CANCELLED = _windows.PRINTER_CANCELLED -PRINTER_ERROR = _windows.PRINTER_ERROR -class Printer(core.Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, PrintDialogData data=None) -> Printer""" - newobj = _windows.new_Printer(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_windows.delete_Printer): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def CreateAbortWindow(*args, **kwargs): - """CreateAbortWindow(self, Window parent, Printout printout)""" - return _windows.Printer_CreateAbortWindow(*args, **kwargs) - - def GetPrintDialogData(*args, **kwargs): - """GetPrintDialogData(self) -> PrintDialogData""" - return _windows.Printer_GetPrintDialogData(*args, **kwargs) - - def Print(*args, **kwargs): - """Print(self, Window parent, Printout printout, int prompt=True) -> bool""" - return _windows.Printer_Print(*args, **kwargs) - - def PrintDialog(*args, **kwargs): - """PrintDialog(self, Window parent) -> DC""" - return _windows.Printer_PrintDialog(*args, **kwargs) - - def ReportError(*args, **kwargs): - """ReportError(self, Window parent, Printout printout, String message)""" - return _windows.Printer_ReportError(*args, **kwargs) - - def Setup(*args, **kwargs): - """Setup(self, Window parent) -> bool""" - return _windows.Printer_Setup(*args, **kwargs) - - def GetAbort(*args, **kwargs): - """GetAbort(self) -> bool""" - return _windows.Printer_GetAbort(*args, **kwargs) - - def GetLastError(*args, **kwargs): - """Printer.GetLastError() -> int""" - return _windows.Printer_GetLastError(*args, **kwargs) - - GetLastError = staticmethod(GetLastError) - -class PrinterPtr(Printer): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Printer -_windows.Printer_swigregister(PrinterPtr) - -def Printer_GetLastError(*args, **kwargs): - """Printer_GetLastError() -> int""" - return _windows.Printer_GetLastError(*args, **kwargs) - -class Printout(core.Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, String title=PrintoutTitleStr) -> Printout""" - newobj = _windows.new_Printout(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setCallbackInfo(self, Printout) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _windows.Printout__setCallbackInfo(*args, **kwargs) - - def GetTitle(*args, **kwargs): - """GetTitle(self) -> String""" - return _windows.Printout_GetTitle(*args, **kwargs) - - def GetDC(*args, **kwargs): - """GetDC(self) -> DC""" - return _windows.Printout_GetDC(*args, **kwargs) - - def SetDC(*args, **kwargs): - """SetDC(self, DC dc)""" - return _windows.Printout_SetDC(*args, **kwargs) - - def SetPageSizePixels(*args, **kwargs): - """SetPageSizePixels(self, int w, int h)""" - return _windows.Printout_SetPageSizePixels(*args, **kwargs) - - def GetPageSizePixels(*args, **kwargs): - """GetPageSizePixels() -> (w, h)""" - return _windows.Printout_GetPageSizePixels(*args, **kwargs) - - def SetPageSizeMM(*args, **kwargs): - """SetPageSizeMM(self, int w, int h)""" - return _windows.Printout_SetPageSizeMM(*args, **kwargs) - - def GetPageSizeMM(*args, **kwargs): - """GetPageSizeMM() -> (w, h)""" - return _windows.Printout_GetPageSizeMM(*args, **kwargs) - - def SetPPIScreen(*args, **kwargs): - """SetPPIScreen(self, int x, int y)""" - return _windows.Printout_SetPPIScreen(*args, **kwargs) - - def GetPPIScreen(*args, **kwargs): - """GetPPIScreen() -> (x,y)""" - return _windows.Printout_GetPPIScreen(*args, **kwargs) - - def SetPPIPrinter(*args, **kwargs): - """SetPPIPrinter(self, int x, int y)""" - return _windows.Printout_SetPPIPrinter(*args, **kwargs) - - def GetPPIPrinter(*args, **kwargs): - """GetPPIPrinter() -> (x,y)""" - return _windows.Printout_GetPPIPrinter(*args, **kwargs) - - def IsPreview(*args, **kwargs): - """IsPreview(self) -> bool""" - return _windows.Printout_IsPreview(*args, **kwargs) - - def SetIsPreview(*args, **kwargs): - """SetIsPreview(self, bool p)""" - return _windows.Printout_SetIsPreview(*args, **kwargs) - - def base_OnBeginDocument(*args, **kwargs): - """base_OnBeginDocument(self, int startPage, int endPage) -> bool""" - return _windows.Printout_base_OnBeginDocument(*args, **kwargs) - - def base_OnEndDocument(*args, **kwargs): - """base_OnEndDocument(self)""" - return _windows.Printout_base_OnEndDocument(*args, **kwargs) - - def base_OnBeginPrinting(*args, **kwargs): - """base_OnBeginPrinting(self)""" - return _windows.Printout_base_OnBeginPrinting(*args, **kwargs) - - def base_OnEndPrinting(*args, **kwargs): - """base_OnEndPrinting(self)""" - return _windows.Printout_base_OnEndPrinting(*args, **kwargs) - - def base_OnPreparePrinting(*args, **kwargs): - """base_OnPreparePrinting(self)""" - return _windows.Printout_base_OnPreparePrinting(*args, **kwargs) - - def base_HasPage(*args, **kwargs): - """base_HasPage(self, int page) -> bool""" - return _windows.Printout_base_HasPage(*args, **kwargs) - - def base_GetPageInfo(*args, **kwargs): - """base_GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)""" - return _windows.Printout_base_GetPageInfo(*args, **kwargs) - - -class PrintoutPtr(Printout): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Printout -_windows.Printout_swigregister(PrintoutPtr) - -class PreviewCanvas(ScrolledWindow): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, - String name=PreviewCanvasNameStr) -> PreviewCanvas - """ - newobj = _windows.new_PreviewCanvas(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - -class PreviewCanvasPtr(PreviewCanvas): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PreviewCanvas -_windows.PreviewCanvas_swigregister(PreviewCanvasPtr) - -class PreviewFrame(Frame): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition, - Size size=DefaultSize, - long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame - """ - newobj = _windows.new_PreviewFrame(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Initialize(*args, **kwargs): - """Initialize(self)""" - return _windows.PreviewFrame_Initialize(*args, **kwargs) - - def CreateControlBar(*args, **kwargs): - """CreateControlBar(self)""" - return _windows.PreviewFrame_CreateControlBar(*args, **kwargs) - - def CreateCanvas(*args, **kwargs): - """CreateCanvas(self)""" - return _windows.PreviewFrame_CreateCanvas(*args, **kwargs) - - def GetControlBar(*args, **kwargs): - """GetControlBar(self) -> PreviewControlBar""" - return _windows.PreviewFrame_GetControlBar(*args, **kwargs) - - -class PreviewFramePtr(PreviewFrame): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PreviewFrame -_windows.PreviewFrame_swigregister(PreviewFramePtr) - -PREVIEW_PRINT = _windows.PREVIEW_PRINT -PREVIEW_PREVIOUS = _windows.PREVIEW_PREVIOUS -PREVIEW_NEXT = _windows.PREVIEW_NEXT -PREVIEW_ZOOM = _windows.PREVIEW_ZOOM -PREVIEW_FIRST = _windows.PREVIEW_FIRST -PREVIEW_LAST = _windows.PREVIEW_LAST -PREVIEW_GOTO = _windows.PREVIEW_GOTO -PREVIEW_DEFAULT = _windows.PREVIEW_DEFAULT -ID_PREVIEW_CLOSE = _windows.ID_PREVIEW_CLOSE -ID_PREVIEW_NEXT = _windows.ID_PREVIEW_NEXT -ID_PREVIEW_PREVIOUS = _windows.ID_PREVIEW_PREVIOUS -ID_PREVIEW_PRINT = _windows.ID_PREVIEW_PRINT -ID_PREVIEW_ZOOM = _windows.ID_PREVIEW_ZOOM -ID_PREVIEW_FIRST = _windows.ID_PREVIEW_FIRST -ID_PREVIEW_LAST = _windows.ID_PREVIEW_LAST -ID_PREVIEW_GOTO = _windows.ID_PREVIEW_GOTO -class PreviewControlBar(Panel): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, PrintPreview preview, long buttons, Window parent, - Point pos=DefaultPosition, Size size=DefaultSize, - long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar - """ - newobj = _windows.new_PreviewControlBar(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def GetZoomControl(*args, **kwargs): - """GetZoomControl(self) -> int""" - return _windows.PreviewControlBar_GetZoomControl(*args, **kwargs) - - def SetZoomControl(*args, **kwargs): - """SetZoomControl(self, int zoom)""" - return _windows.PreviewControlBar_SetZoomControl(*args, **kwargs) - - def GetPrintPreview(*args, **kwargs): - """GetPrintPreview(self) -> PrintPreview""" - return _windows.PreviewControlBar_GetPrintPreview(*args, **kwargs) - - def OnNext(*args, **kwargs): - """OnNext(self)""" - return _windows.PreviewControlBar_OnNext(*args, **kwargs) - - def OnPrevious(*args, **kwargs): - """OnPrevious(self)""" - return _windows.PreviewControlBar_OnPrevious(*args, **kwargs) - - def OnFirst(*args, **kwargs): - """OnFirst(self)""" - return _windows.PreviewControlBar_OnFirst(*args, **kwargs) - - def OnLast(*args, **kwargs): - """OnLast(self)""" - return _windows.PreviewControlBar_OnLast(*args, **kwargs) - - def OnGoto(*args, **kwargs): - """OnGoto(self)""" - return _windows.PreviewControlBar_OnGoto(*args, **kwargs) - - -class PreviewControlBarPtr(PreviewControlBar): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PreviewControlBar -_windows.PreviewControlBar_swigregister(PreviewControlBarPtr) - -class PrintPreview(core.Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args): - """ - __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview - __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview - """ - newobj = _windows.new_PrintPreview(*args) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def SetCurrentPage(*args, **kwargs): - """SetCurrentPage(self, int pageNum) -> bool""" - return _windows.PrintPreview_SetCurrentPage(*args, **kwargs) - - def GetCurrentPage(*args, **kwargs): - """GetCurrentPage(self) -> int""" - return _windows.PrintPreview_GetCurrentPage(*args, **kwargs) - - def SetPrintout(*args, **kwargs): - """SetPrintout(self, Printout printout)""" - return _windows.PrintPreview_SetPrintout(*args, **kwargs) - - def GetPrintout(*args, **kwargs): - """GetPrintout(self) -> Printout""" - return _windows.PrintPreview_GetPrintout(*args, **kwargs) - - def GetPrintoutForPrinting(*args, **kwargs): - """GetPrintoutForPrinting(self) -> Printout""" - return _windows.PrintPreview_GetPrintoutForPrinting(*args, **kwargs) - - def SetFrame(*args, **kwargs): - """SetFrame(self, Frame frame)""" - return _windows.PrintPreview_SetFrame(*args, **kwargs) - - def SetCanvas(*args, **kwargs): - """SetCanvas(self, PreviewCanvas canvas)""" - return _windows.PrintPreview_SetCanvas(*args, **kwargs) - - def GetFrame(*args, **kwargs): - """GetFrame(self) -> Frame""" - return _windows.PrintPreview_GetFrame(*args, **kwargs) - - def GetCanvas(*args, **kwargs): - """GetCanvas(self) -> PreviewCanvas""" - return _windows.PrintPreview_GetCanvas(*args, **kwargs) - - def PaintPage(*args, **kwargs): - """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool""" - return _windows.PrintPreview_PaintPage(*args, **kwargs) - - def DrawBlankPage(*args, **kwargs): - """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool""" - return _windows.PrintPreview_DrawBlankPage(*args, **kwargs) - - def RenderPage(*args, **kwargs): - """RenderPage(self, int pageNum) -> bool""" - return _windows.PrintPreview_RenderPage(*args, **kwargs) - - def AdjustScrollbars(*args, **kwargs): - """AdjustScrollbars(self, PreviewCanvas canvas)""" - return _windows.PrintPreview_AdjustScrollbars(*args, **kwargs) - - def GetPrintDialogData(*args, **kwargs): - """GetPrintDialogData(self) -> PrintDialogData""" - return _windows.PrintPreview_GetPrintDialogData(*args, **kwargs) - - def SetZoom(*args, **kwargs): - """SetZoom(self, int percent)""" - return _windows.PrintPreview_SetZoom(*args, **kwargs) - - def GetZoom(*args, **kwargs): - """GetZoom(self) -> int""" - return _windows.PrintPreview_GetZoom(*args, **kwargs) - - def GetMaxPage(*args, **kwargs): - """GetMaxPage(self) -> int""" - return _windows.PrintPreview_GetMaxPage(*args, **kwargs) - - def GetMinPage(*args, **kwargs): - """GetMinPage(self) -> int""" - return _windows.PrintPreview_GetMinPage(*args, **kwargs) - - def Ok(*args, **kwargs): - """Ok(self) -> bool""" - return _windows.PrintPreview_Ok(*args, **kwargs) - - def SetOk(*args, **kwargs): - """SetOk(self, bool ok)""" - return _windows.PrintPreview_SetOk(*args, **kwargs) - - def Print(*args, **kwargs): - """Print(self, bool interactive) -> bool""" - return _windows.PrintPreview_Print(*args, **kwargs) - - def DetermineScaling(*args, **kwargs): - """DetermineScaling(self)""" - return _windows.PrintPreview_DetermineScaling(*args, **kwargs) - - def __nonzero__(self): return self.Ok() - -class PrintPreviewPtr(PrintPreview): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PrintPreview -_windows.PrintPreview_swigregister(PrintPreviewPtr) - -class PyPrintPreview(PrintPreview): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args): - """ - __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview - __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview - """ - newobj = _windows.new_PyPrintPreview(*args) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setCallbackInfo(self, PyPrintPreview) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _windows.PyPrintPreview__setCallbackInfo(*args, **kwargs) - - def base_SetCurrentPage(*args, **kwargs): - """base_SetCurrentPage(self, int pageNum) -> bool""" - return _windows.PyPrintPreview_base_SetCurrentPage(*args, **kwargs) - - def base_PaintPage(*args, **kwargs): - """base_PaintPage(self, PreviewCanvas canvas, DC dc) -> bool""" - return _windows.PyPrintPreview_base_PaintPage(*args, **kwargs) - - def base_DrawBlankPage(*args, **kwargs): - """base_DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool""" - return _windows.PyPrintPreview_base_DrawBlankPage(*args, **kwargs) - - def base_RenderPage(*args, **kwargs): - """base_RenderPage(self, int pageNum) -> bool""" - return _windows.PyPrintPreview_base_RenderPage(*args, **kwargs) - - def base_SetZoom(*args, **kwargs): - """base_SetZoom(self, int percent)""" - return _windows.PyPrintPreview_base_SetZoom(*args, **kwargs) - - def base_Print(*args, **kwargs): - """base_Print(self, bool interactive) -> bool""" - return _windows.PyPrintPreview_base_Print(*args, **kwargs) - - def base_DetermineScaling(*args, **kwargs): - """base_DetermineScaling(self)""" - return _windows.PyPrintPreview_base_DetermineScaling(*args, **kwargs) - - -class PyPrintPreviewPtr(PyPrintPreview): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PyPrintPreview -_windows.PyPrintPreview_swigregister(PyPrintPreviewPtr) - -class PyPreviewFrame(PreviewFrame): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition, - Size size=DefaultSize, - long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame - """ - newobj = _windows.new_PyPreviewFrame(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setCallbackInfo(self, PyPreviewFrame); self._setOORInfo(self) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _windows.PyPreviewFrame__setCallbackInfo(*args, **kwargs) - - def SetPreviewCanvas(*args, **kwargs): - """SetPreviewCanvas(self, PreviewCanvas canvas)""" - return _windows.PyPreviewFrame_SetPreviewCanvas(*args, **kwargs) - - def SetControlBar(*args, **kwargs): - """SetControlBar(self, PreviewControlBar bar)""" - return _windows.PyPreviewFrame_SetControlBar(*args, **kwargs) - - def base_Initialize(*args, **kwargs): - """base_Initialize(self)""" - return _windows.PyPreviewFrame_base_Initialize(*args, **kwargs) - - def base_CreateCanvas(*args, **kwargs): - """base_CreateCanvas(self)""" - return _windows.PyPreviewFrame_base_CreateCanvas(*args, **kwargs) - - def base_CreateControlBar(*args, **kwargs): - """base_CreateControlBar(self)""" - return _windows.PyPreviewFrame_base_CreateControlBar(*args, **kwargs) - - -class PyPreviewFramePtr(PyPreviewFrame): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PyPreviewFrame -_windows.PyPreviewFrame_swigregister(PyPreviewFramePtr) - -class PyPreviewControlBar(PreviewControlBar): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, PrintPreview preview, long buttons, Window parent, - Point pos=DefaultPosition, Size size=DefaultSize, - long style=0, String name=PanelNameStr) -> PyPreviewControlBar - """ - newobj = _windows.new_PyPreviewControlBar(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setCallbackInfo(self, PyPreviewControlBar); self._setOORInfo(self) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _windows.PyPreviewControlBar__setCallbackInfo(*args, **kwargs) - - def SetPrintPreview(*args, **kwargs): - """SetPrintPreview(self, PrintPreview preview)""" - return _windows.PyPreviewControlBar_SetPrintPreview(*args, **kwargs) - - def base_CreateButtons(*args, **kwargs): - """base_CreateButtons(self)""" - return _windows.PyPreviewControlBar_base_CreateButtons(*args, **kwargs) - - def base_SetZoomControl(*args, **kwargs): - """base_SetZoomControl(self, int zoom)""" - return _windows.PyPreviewControlBar_base_SetZoomControl(*args, **kwargs) - - -class PyPreviewControlBarPtr(PyPreviewControlBar): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PyPreviewControlBar -_windows.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr) - - diff --git a/wxPython/src/mac/windows_wrap.cpp b/wxPython/src/mac/windows_wrap.cpp deleted file mode 100644 index ec19b8353d..0000000000 --- a/wxPython/src/mac/windows_wrap.cpp +++ /dev/null @@ -1,26095 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.22 - * - * This file is not intended to be easily readable and contains a number of - * coding conventions designed to improve portability and efficiency. Do not make - * changes to this file unless you know what you are doing--modify the SWIG - * interface file instead. - * ----------------------------------------------------------------------------- */ - -#define SWIGPYTHON -#define SWIG_NOINCLUDE - -#ifdef __cplusplus -template class SwigValueWrapper { - T *tt; -public: - SwigValueWrapper() : tt(0) { } - SwigValueWrapper(const SwigValueWrapper& rhs) : tt(new T(*rhs.tt)) { } - SwigValueWrapper(const T& t) : tt(new T(t)) { } - ~SwigValueWrapper() { delete tt; } - SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } - operator T&() const { return *tt; } - T *operator&() { return tt; } -private: - SwigValueWrapper& operator=(const SwigValueWrapper& rhs); -}; -#endif - - -#include "Python.h" - -/*************************************************************** -*- c -*- - * python/precommon.swg - * - * Rename all exported symbols from common.swg, to avoid symbol - * clashes if multiple interpreters are included - * - ************************************************************************/ - -#define SWIG_TypeRegister SWIG_Python_TypeRegister -#define SWIG_TypeCheck SWIG_Python_TypeCheck -#define SWIG_TypeCast SWIG_Python_TypeCast -#define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast -#define SWIG_TypeName SWIG_Python_TypeName -#define SWIG_TypeQuery SWIG_Python_TypeQuery -#define SWIG_TypeClientData SWIG_Python_TypeClientData -#define SWIG_PackData SWIG_Python_PackData -#define SWIG_UnpackData SWIG_Python_UnpackData - - -/*********************************************************************** - * common.swg for wxPython - * - * Include only the function prototypes and such from SWIG's common.swg, - * but not the runtime functions themselves. This helps keep the - * wrapper files clean of unnecessary stuff that is in the libpy.c file - * anyway. - * - ************************************************************************/ - -#include - -#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) -# if defined(_MSC_VER) || defined(__GNUC__) -# if defined(STATIC_LINKED) -# define SWIGEXPORT(a) a -# define SWIGIMPORT(a) extern a -# else -# define SWIGEXPORT(a) __declspec(dllexport) a -# define SWIGIMPORT(a) extern a -# endif -# else -# if defined(__BORLANDC__) -# define SWIGEXPORT(a) a _export -# define SWIGIMPORT(a) a _export -# else -# define SWIGEXPORT(a) a -# define SWIGIMPORT(a) a -# endif -# endif -#else -# define SWIGEXPORT(a) a -# define SWIGIMPORT(a) a -#endif - -#ifdef SWIG_GLOBAL -# define SWIGRUNTIME(a) SWIGEXPORT(a) -#else -# define SWIGRUNTIME(a) static a -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -typedef void *(*swig_converter_func)(void *); -typedef struct swig_type_info *(*swig_dycast_func)(void **); - -typedef struct swig_type_info { - const char *name; - swig_converter_func converter; - const char *str; - void *clientdata; - swig_dycast_func dcast; - struct swig_type_info *next; - struct swig_type_info *prev; -} swig_type_info; - - -SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); -SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); -SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); -SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); -SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); -SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); -SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); -SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); -SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); - - -#ifdef __cplusplus -} -#endif - -/*********************************************************************** - * pyrun.swg for wxPython - * - * Include only the function prototypes and such from SWIG's pyrun.swg, - * but not the runtime functions themselves. This helps keep the - * wrapper files clean of unnecessary stuff that is in the libpy.c file - * anyway. - * - ************************************************************************/ - -#include "Python.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define SWIG_PY_INT 1 -#define SWIG_PY_FLOAT 2 -#define SWIG_PY_STRING 3 -#define SWIG_PY_POINTER 4 -#define SWIG_PY_BINARY 5 - -/* Flags for pointer conversion */ - -#define SWIG_POINTER_EXCEPTION 0x1 -#define SWIG_POINTER_DISOWN 0x2 - -/* Exception handling in wrappers */ -#define SWIG_fail goto fail - -/* Constant information structure */ -typedef struct swig_const_info { - int type; - char *name; - long lvalue; - double dvalue; - void *pvalue; - swig_type_info **ptype; -} swig_const_info; - -/* Common SWIG API */ -#define SWIG_ConvertPtr(obj, pp, type, flags) \ - SWIG_Python_ConvertPtr(obj, pp, type, flags) -#define SWIG_NewPointerObj(p, type, flags) \ - SWIG_Python_NewPointerObj(p, type, flags) -#define SWIG_MustGetPtr(p, type, argnum, flags) \ - SWIG_Python_MustGetPtr(p, type, argnum, flags) - -/* Python-specific SWIG API */ -#define SWIG_newvarlink() \ - SWIG_Python_newvarlink() -#define SWIG_addvarlink(p, name, get_attr, set_attr) \ - SWIG_Python_addvarlink(p, name, get_attr, set_attr) -#define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ - SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) -#define SWIG_NewPackedObj(ptr, sz, type) \ - SWIG_Python_NewPackedObj(ptr, sz, type) -#define SWIG_InstallConstants(d, constants) \ - SWIG_Python_InstallConstants(d, constants) - -typedef double (*py_objasdbl_conv)(PyObject *obj); - -SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); -SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); -SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); -SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); -SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); -SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); -SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); -SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); - - -/* Contract support */ - -#define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else - -#ifdef __cplusplus -} -#endif - - -/* -------- TYPES TABLE (BEGIN) -------- */ - -#define SWIGTYPE_p_wxQueryLayoutInfoEvent swig_types[0] -#define SWIGTYPE_p_wxPreviewFrame swig_types[1] -#define SWIGTYPE_p_wxPyPreviewFrame swig_types[2] -#define SWIGTYPE_p_wxPyPanel swig_types[3] -#define SWIGTYPE_p_wxMenu swig_types[4] -#define SWIGTYPE_p_wxPrintData swig_types[5] -#define SWIGTYPE_p_wxFontData swig_types[6] -#define SWIGTYPE_p_wxEvent swig_types[7] -#define SWIGTYPE_p_wxTaskBarIcon swig_types[8] -#define SWIGTYPE_p_wxIconBundle swig_types[9] -#define SWIGTYPE_p_wxLayoutAlgorithm swig_types[10] -#define SWIGTYPE_p_wxFindDialogEvent swig_types[11] -#define SWIGTYPE_p_wxPreviewCanvas swig_types[12] -#define SWIGTYPE_p_wxFont swig_types[13] -#define SWIGTYPE_p_wxSplitterEvent swig_types[14] -#define SWIGTYPE_p_wxRegion swig_types[15] -#define SWIGTYPE_p_wxFindReplaceData swig_types[16] -#define SWIGTYPE_p_int swig_types[17] -#define SWIGTYPE_p_wxSize swig_types[18] -#define SWIGTYPE_p_wxDC swig_types[19] -#define SWIGTYPE_p_wxIcon swig_types[20] -#define SWIGTYPE_p_wxMDIChildFrame swig_types[21] -#define SWIGTYPE_p_wxColourData swig_types[22] -#define SWIGTYPE_p_wxNotifyEvent swig_types[23] -#define SWIGTYPE_p_wxPyWindow swig_types[24] -#define SWIGTYPE_p_wxSplashScreen swig_types[25] -#define SWIGTYPE_p_wxFindReplaceDialog swig_types[26] -#define SWIGTYPE_p_wxProgressDialog swig_types[27] -#define SWIGTYPE_p_wxMessageDialog swig_types[28] -#define SWIGTYPE_p_wxTextEntryDialog swig_types[29] -#define SWIGTYPE_p_wxSingleChoiceDialog swig_types[30] -#define SWIGTYPE_p_wxMultiChoiceDialog swig_types[31] -#define SWIGTYPE_p_wxFileDialog swig_types[32] -#define SWIGTYPE_p_wxPrinter swig_types[33] -#define SWIGTYPE_p_wxArrayInt swig_types[34] -#define SWIGTYPE_p_wxEvtHandler swig_types[35] -#define SWIGTYPE_p_wxCalculateLayoutEvent swig_types[36] -#define SWIGTYPE_p_wxPyHtmlListBox swig_types[37] -#define SWIGTYPE_p_wxPyVListBox swig_types[38] -#define SWIGTYPE_p_wxRect swig_types[39] -#define SWIGTYPE_p_char swig_types[40] -#define SWIGTYPE_p_wxMiniFrame swig_types[41] -#define SWIGTYPE_p_wxFrame swig_types[42] -#define SWIGTYPE_p_wxPyPrintout swig_types[43] -#define SWIGTYPE_p_wxTaskBarIconEvent swig_types[44] -#define SWIGTYPE_p_wxScrollWinEvent swig_types[45] -#define SWIGTYPE_p_wxStatusBar swig_types[46] -#define SWIGTYPE_p_wxMDIParentFrame swig_types[47] -#define SWIGTYPE_p_wxPoint swig_types[48] -#define SWIGTYPE_p_wxObject swig_types[49] -#define SWIGTYPE_p_wxOutputStream swig_types[50] -#define SWIGTYPE_p_unsigned_long swig_types[51] -#define SWIGTYPE_p_wxPyScrolledWindow swig_types[52] -#define SWIGTYPE_p_wxMDIClientWindow swig_types[53] -#define SWIGTYPE_p_wxTipWindow swig_types[54] -#define SWIGTYPE_p_wxPyPopupTransientWindow swig_types[55] -#define SWIGTYPE_p_wxSashLayoutWindow swig_types[56] -#define SWIGTYPE_p_wxSplitterWindow swig_types[57] -#define SWIGTYPE_p_wxPyVScrolledWindow swig_types[58] -#define SWIGTYPE_p_wxPopupWindow swig_types[59] -#define SWIGTYPE_p_wxSashWindow swig_types[60] -#define SWIGTYPE_p_wxTopLevelWindow swig_types[61] -#define SWIGTYPE_p_wxWindow swig_types[62] -#define SWIGTYPE_p_wxScrolledWindow swig_types[63] -#define SWIGTYPE_p_wxSplashScreenWindow swig_types[64] -#define SWIGTYPE_p_wxMenuBar swig_types[65] -#define SWIGTYPE_p_wxPrintPreview swig_types[66] -#define SWIGTYPE_p_wxSashEvent swig_types[67] -#define SWIGTYPE_p_wxString swig_types[68] -#define SWIGTYPE_p_wxPyPrintPreview swig_types[69] -#define SWIGTYPE_p_wxFontDialog swig_types[70] -#define SWIGTYPE_p_wxDirDialog swig_types[71] -#define SWIGTYPE_p_wxColourDialog swig_types[72] -#define SWIGTYPE_p_wxDialog swig_types[73] -#define SWIGTYPE_p_wxPanel swig_types[74] -#define SWIGTYPE_p_wxPageSetupDialog swig_types[75] -#define SWIGTYPE_p_wxPrintDialog swig_types[76] -#define SWIGTYPE_p_wxBitmap swig_types[77] -#define SWIGTYPE_p_wxCommandEvent swig_types[78] -#define SWIGTYPE_p_wxPreviewControlBar swig_types[79] -#define SWIGTYPE_p_wxPyPreviewControlBar swig_types[80] -#define SWIGTYPE_p_wxColour swig_types[81] -#define SWIGTYPE_p_wxToolBar swig_types[82] -#define SWIGTYPE_p_wxPageSetupDialogData swig_types[83] -#define SWIGTYPE_p_wxPrintDialogData swig_types[84] -static swig_type_info *swig_types[86]; - -/* -------- TYPES TABLE (END) -------- */ - - -/*----------------------------------------------- - @(target):= _windows.so - ------------------------------------------------*/ -#define SWIG_init init_windows - -#define SWIG_name "_windows" - -/* Auxiliar swig macros */ - -#ifdef __cplusplus -#define SWIGSTATICINLINE(a) static inline a -#define SWIGSTATIC(a) static a -#define swig_new_array(type, size) (new type[(size)]) -#define swig_delete_array(cptr) delete[] cptr -#define swig_const_cast(type,a) const_cast(a) -#define swig_static_cast(type,a) static_cast(a) -#define swig_reinterpret_cast(type,a) reinterpret_cast(a) - -#ifdef HAVE_NUMERIC_CAST -#define swig_numeric_cast(type,a) numeric_cast(a) -#else -#define swig_numeric_cast(type,a) static_cast(a) -#endif - -#else /* C case */ - -#define SWIGSTATICINLINE(a) static a -#define SWIGSTATIC(a) static a -#define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type))) -#define swig_delete_array(cptr) free((char*)cptr) -#define swig_const_cast(type,a) (type)(a) -#define swig_static_cast(type,a) (type)(a) -#define swig_reinterpret_cast(type,a) (type)(a) -#define swig_numeric_cast(type,a) (type)(a) - -#endif /* __cplusplus */ - - -#define SWIG_FromSignedChar PyInt_FromLong -#define SWIG_FromUnsignedChar PyInt_FromLong -#define SWIG_FromShort PyInt_FromLong -#define SWIG_FromUnsignedShort PyInt_FromLong -#define SWIG_FromInt PyInt_FromLong -#define SWIG_FromLong PyInt_FromLong -#define SWIG_FromFloat PyFloat_FromDouble -#define SWIG_FromDouble PyFloat_FromDouble -#define SWIG_FromFloat PyFloat_FromDouble -#define SWIG_FromDouble PyFloat_FromDouble - - -#include "wx/wxPython/wxPython.h" -#include "wx/wxPython/pyclasses.h" - - - static const wxString wxPyEmptyString(wxEmptyString); - static const wxString wxPyPanelNameStr(wxPanelNameStr); - - - -#include - - -SWIGSTATICINLINE(long) -SWIG_CheckLongInRange(long value, const char* type, - long min_value, long max_value) -{ - if (!PyErr_Occurred()) { - if (value < min_value) { - PyObject *err = - PyString_FromFormat("value %ld is less than '%s' minimum %ld", - value, type, min_value); - - PyErr_SetObject(PyExc_OverflowError, err); - Py_DECREF(err); - } else if (value > max_value) { - PyObject *err = - PyString_FromFormat("value %ld is greater than '%s' maximum %ld", - value, type, max_value); - PyErr_SetObject(PyExc_OverflowError, err); - Py_DECREF(err); - } - } - return value; -} - - -SWIGSTATICINLINE(long) -SWIG_AsLong(PyObject * obj) -{ - if (PyNumber_Check(obj)) - return PyInt_AsLong(obj); - else { - PyObject* errmsg = PyString_FromFormat("Expected number, got %s", - obj->ob_type->tp_name); - PyErr_SetObject(PyExc_TypeError, errmsg); - Py_DECREF(errmsg); - return 0; - } -} - - -#if INT_MAX != LONG_MAX -SWIGSTATICINLINE(int) -SWIG_AsInt(PyObject *obj) -{ - return swig_numeric_cast(int, - SWIG_CheckLongInRange(SWIG_AsLong(obj), - "int", INT_MIN, INT_MAX)); -} -#else -#define SWIG_AsInt SWIG_AsLong -#endif - - -SWIGSTATICINLINE(int) -SWIG_CheckInt(PyObject* obj) -{ - SWIG_AsInt(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - - -SWIGSTATICINLINE(int) -SWIG_CheckLong(PyObject* obj) -{ - SWIG_AsLong(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - - -SWIGSTATICINLINE(bool) -SWIG_AsBool(PyObject *obj) -{ - return PyObject_IsTrue(obj) ? true : false; -} - - -SWIGSTATICINLINE(int) -SWIG_CheckBool(PyObject* obj) -{ - SWIG_AsBool(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - - -static PyObject* t_output_helper(PyObject* target, PyObject* o) { - PyObject* o2; - PyObject* o3; - - if (!target) { - target = o; - } else if (target == Py_None) { - Py_DECREF(Py_None); - target = o; - } else { - if (!PyTuple_Check(target)) { - o2 = target; - target = PyTuple_New(1); - PyTuple_SetItem(target, 0, o2); - } - o3 = PyTuple_New(1); - PyTuple_SetItem(o3, 0, o); - - o2 = target; - target = PySequence_Concat(o2, o3); - Py_DECREF(o2); - Py_DECREF(o3); - } - return target; -} - - -SWIGSTATICINLINE(double) -SWIG_AsDouble(PyObject *obj) -{ - if (PyNumber_Check(obj)) - return PyFloat_AsDouble(obj); - else { - PyObject* errmsg = PyString_FromFormat("Expected number, got %s", - obj->ob_type->tp_name); - PyErr_SetObject(PyExc_TypeError, errmsg); - Py_DECREF(errmsg); - return 0; - } -} - - -SWIGSTATICINLINE(int) -SWIG_CheckDouble(PyObject* obj) -{ - SWIG_AsDouble(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - - static const wxString wxPyFrameNameStr(wxFrameNameStr); - static const wxString wxPyDialogNameStr(wxDialogNameStr); - static const wxString wxPyStatusLineNameStr(wxStatusLineNameStr); - static const wxString wxPyToolBarNameStr(wxToolBarNameStr); - - -wxRect wxStatusBar_GetFieldRect(wxStatusBar *self,int i){ - wxRect r; - self->GetFieldRect(i, r); - return r; - } - static const wxString wxPySplitterNameStr(wxT("splitter")); - static const wxString wxPySashNameStr(wxT("sashWindow")); - static const wxString wxPySashLayoutNameStr(wxT("layoutWindow")); - -#include - - -class wxPopupWindow : public wxWindow { -public: - wxPopupWindow(wxWindow *, int) { wxPyRaiseNotImplemented(); } - wxPopupWindow() { wxPyRaiseNotImplemented(); } -}; - -class wxPyPopupTransientWindow : public wxPopupWindow -{ -public: - wxPyPopupTransientWindow(wxWindow *, int) { wxPyRaiseNotImplemented(); } - wxPyPopupTransientWindow() { wxPyRaiseNotImplemented(); } -}; - - -#include - -wxTipWindow *new_wxTipWindow(wxWindow *parent,wxString const &text,int maxLength,wxRect *rectBound){ - return new wxTipWindow(parent, text, maxLength, NULL, rectBound); - } - -#include - - -#include - - -class wxPyVScrolledWindow : public wxVScrolledWindow -{ - DECLARE_ABSTRACT_CLASS(wxPyVScrolledWindow); -public: - wxPyVScrolledWindow() : wxVScrolledWindow() {} - - wxPyVScrolledWindow(wxWindow *parent, - wxWindowID id = wxID_ANY, - const wxPoint& pos = wxDefaultPosition, - const wxSize& size = wxDefaultSize, - long style = 0, - const wxString& name = wxPyPanelNameStr) - : wxVScrolledWindow(parent, id, pos, size, style, name) - {} - - // Overridable virtuals - - // this function must be overridden in the derived class and it should - // return the height of the given line in pixels - DEC_PYCALLBACK_COORD_SIZET_constpure(OnGetLineHeight); - - - // this function doesn't have to be overridden but it may be useful to do - // it if calculating the lines heights is a relatively expensive operation - // as it gives the user code a possibility to calculate several of them at - // once - // - // OnGetLinesHint() is normally called just before OnGetLineHeight() but you - // shouldn't rely on the latter being called for all lines in the interval - // specified here. It is also possible that OnGetLineHeight() will be - // called for the lines outside of this interval, so this is really just a - // hint, not a promise. - // - // finally note that lineMin is inclusive, while lineMax is exclusive, as - // usual - DEC_PYCALLBACK_VOID_SIZETSIZET_const(OnGetLinesHint); - - - // when the number of lines changes, we try to estimate the total height - // of all lines which is a rather expensive operation in terms of lines - // access, so if the user code may estimate the average height - // better/faster than we do, it should override this function to implement - // its own logic - // - // this function should return the best guess for the total height it may - // make - DEC_PYCALLBACK_COORD_const(EstimateTotalHeight); - - - // Also expose some other interesting protected methods - - - // find the index of the line we need to show at the top of the window such - // that the last (fully or partially) visible line is the given one - size_t FindFirstFromBottom(size_t lineLast, bool fullyVisible = False) - { return wxVScrolledWindow::FindFirstFromBottom(lineLast, fullyVisible); } - - // get the total height of the lines between lineMin (inclusive) and - // lineMax (exclusive) - wxCoord GetLinesHeight(size_t lineMin, size_t lineMax) const - { return wxVScrolledWindow::GetLinesHeight(lineMin, lineMax); } - - - PYPRIVATE; -}; - -IMPLEMENT_ABSTRACT_CLASS(wxPyVScrolledWindow, wxVScrolledWindow); - -IMP_PYCALLBACK_COORD_SIZET_constpure(wxPyVScrolledWindow, wxVScrolledWindow, OnGetLineHeight); -IMP_PYCALLBACK_VOID_SIZETSIZET_const(wxPyVScrolledWindow, wxVScrolledWindow, OnGetLinesHint); -IMP_PYCALLBACK_COORD_const (wxPyVScrolledWindow, wxVScrolledWindow, EstimateTotalHeight); - - -SWIGSTATICINLINE(unsigned long) -SWIG_AsUnsignedLong(PyObject * obj) -{ - if (PyLong_Check(obj)) { - return PyLong_AsUnsignedLong(obj); - } else { - long i = SWIG_AsLong(obj); - if ( !PyErr_Occurred() && (i < 0)) { - PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); - } - return i; - } -} - - -SWIGSTATICINLINE(int) -SWIG_CheckUnsignedLong(PyObject* obj) -{ - SWIG_AsUnsignedLong(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - - -SWIGSTATICINLINE(PyObject* ) -SWIG_FromUnsignedLong(unsigned long value) -{ - return (value > LONG_MAX) ? - PyLong_FromUnsignedLong(value) - : PyInt_FromLong(swig_numeric_cast(long,value)); -} - - -#include - - static const wxString wxPyVListBoxNameStr(wxVListBoxNameStr); - -class wxPyVListBox : public wxVListBox -{ - DECLARE_ABSTRACT_CLASS(wxPyVListBox); -public: - wxPyVListBox() : wxVListBox() {} - - wxPyVListBox(wxWindow *parent, - wxWindowID id = wxID_ANY, - const wxPoint& pos = wxDefaultPosition, - const wxSize& size = wxDefaultSize, - long style = 0, - const wxString& name = wxPyVListBoxNameStr) - : wxVListBox(parent, id, pos, size, style, name) - {} - - // Overridable virtuals - - // the derived class must implement this function to actually draw the item - // with the given index on the provided DC - // virtual void OnDrawItem(wxDC& dc, const wxRect& rect, size_t n) const = 0; - DEC_PYCALLBACK__DCRECTSIZET_constpure(OnDrawItem); - - - // the derived class must implement this method to return the height of the - // specified item - // virtual wxCoord OnMeasureItem(size_t n) const = 0; - DEC_PYCALLBACK_COORD_SIZET_constpure(OnMeasureItem); - - - // this method may be used to draw separators between the lines; note that - // the rectangle may be modified, typically to deflate it a bit before - // passing to OnDrawItem() - // - // the base class version doesn't do anything - // virtual void OnDrawSeparator(wxDC& dc, wxRect& rect, size_t n) const; - DEC_PYCALLBACK__DCRECTSIZET_constpure(OnDrawSeparator); - - - // this method is used to draw the items background and, maybe, a border - // around it - // - // the base class version implements a reasonable default behaviour which - // consists in drawing the selected item with the standard background - // colour and drawing a border around the item if it is either selected or - // current - // virtual void OnDrawBackground(wxDC& dc, const wxRect& rect, size_t n) const; - DEC_PYCALLBACK__DCRECTSIZET_const(OnDrawBackground); - - - PYPRIVATE; -}; - -IMPLEMENT_ABSTRACT_CLASS(wxPyVListBox, wxVListBox); - -IMP_PYCALLBACK__DCRECTSIZET_constpure(wxPyVListBox, wxVListBox, OnDrawItem); -IMP_PYCALLBACK_COORD_SIZET_constpure (wxPyVListBox, wxVListBox, OnMeasureItem); -IMP_PYCALLBACK__DCRECTSIZET_constpure(wxPyVListBox, wxVListBox, OnDrawSeparator); -IMP_PYCALLBACK__DCRECTSIZET_const (wxPyVListBox, wxVListBox, OnDrawBackground); - - - -#include - - -class wxPyHtmlListBox : public wxHtmlListBox -{ - DECLARE_ABSTRACT_CLASS(wxPyHtmlListBox); -public: - wxPyHtmlListBox() : wxHtmlListBox() {} - - wxPyHtmlListBox(wxWindow *parent, - wxWindowID id = wxID_ANY, - const wxPoint& pos = wxDefaultPosition, - const wxSize& size = wxDefaultSize, - long style = 0, - const wxString& name = wxPyVListBoxNameStr) - : wxHtmlListBox(parent, id, pos, size, style, name) - {} - - // Overridable virtuals - - // this method must be implemented in the derived class and should return - // the body (i.e. without ) of the HTML for the given item - DEC_PYCALLBACK_STRING_SIZET_pure(OnGetItem); - - // this function may be overridden to decorate HTML returned by OnGetItem() - DEC_PYCALLBACK_STRING_SIZET(OnGetItemMarkup); - -// TODO: -// // this method allows to customize the selection appearance: it may be used -// // to specify the colour of the text which normally has the given colour -// // colFg when it is inside the selection -// // -// // by default, the original colour is not used at all and all text has the -// // same (default for this system) colour inside selection -// virtual wxColour GetSelectedTextColour(const wxColour& colFg) const; - -// // this is the same as GetSelectedTextColour() but allows to customize the -// // background colour -- this is even more rarely used as you can change it -// // globally using SetSelectionBackground() -// virtual wxColour GetSelectedTextBgColour(const wxColour& colBg) const; - - - PYPRIVATE; -}; - - -IMPLEMENT_ABSTRACT_CLASS(wxPyHtmlListBox, wxHtmlListBox) - -IMP_PYCALLBACK_STRING_SIZET_pure(wxPyHtmlListBox, wxHtmlListBox, OnGetItem); -IMP_PYCALLBACK_STRING_SIZET (wxPyHtmlListBox, wxHtmlListBox, OnGetItemMarkup); - - - - - -#ifdef __WXMAC__ -// implement dummy classes and such for wxMac - -class wxTaskBarIcon : public wxEvtHandler -{ -public: - wxTaskBarIcon() { wxPyRaiseNotImplemented(); } -}; - - -class wxTaskBarIconEvent : public wxEvent -{ -public: - wxTaskBarIconEvent(wxEventType, wxTaskBarIcon *) - { wxPyRaiseNotImplemented(); } - virtual wxEvent* Clone() const { return NULL; } -}; - -enum { - wxEVT_TASKBAR_MOVE = 0, - wxEVT_TASKBAR_LEFT_DOWN = 0, - wxEVT_TASKBAR_LEFT_UP = 0, - wxEVT_TASKBAR_RIGHT_DOWN = 0, - wxEVT_TASKBAR_RIGHT_UP = 0, - wxEVT_TASKBAR_LEFT_DCLICK = 0, - wxEVT_TASKBAR_RIGHT_DCLICK = 0, -}; -#endif - -void wxTaskBarIcon_Destroy(wxTaskBarIcon *self){ - - - - } - static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr); - static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr); - static const wxString wxPyDirDialogNameStr(wxDirDialogNameStr); - static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr); - static const wxString wxPyGetTextFromUserPromptStr(wxGetTextFromUserPromptStr); - static const wxString wxPyMessageBoxCaptionStr(wxMessageBoxCaptionStr); -PyObject *wxFileDialog_GetFilenames(wxFileDialog *self){ - wxArrayString arr; - self->GetFilenames(arr); - return wxArrayString2PyList_helper(arr); - } -PyObject *wxFileDialog_GetPaths(wxFileDialog *self){ - wxArrayString arr; - self->GetPaths(arr); - return wxArrayString2PyList_helper(arr); - } -PyObject *wxMultiChoiceDialog_GetSelections(wxMultiChoiceDialog *self){ - return wxArrayInt2PyList_helper(self->GetSelections()); - } -wxSingleChoiceDialog *new_wxSingleChoiceDialog(wxWindow *parent,wxString const &message,wxString const &caption,int choices,wxString *choices_array,long style,wxPoint const &pos){ - return new wxSingleChoiceDialog(parent, message, caption, - choices, choices_array, NULL, style, pos); - } - -#include - - // C++ version of Python aware wxWindow -class wxPyWindow : public wxWindow -{ - DECLARE_DYNAMIC_CLASS(wxPyWindow) -public: - wxPyWindow() : wxWindow() {} - wxPyWindow(wxWindow* parent, const wxWindowID id, - const wxPoint& pos = wxDefaultPosition, - const wxSize& size = wxDefaultSize, - long style = 0, - const wxString& name = wxPyPanelNameStr) - : wxWindow(parent, id, pos, size, style, name) {} - - - DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); - DEC_PYCALLBACK_VOID_INT5(DoSetSize); - DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); - DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); - - DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); - DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); - DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); - - DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); - DEC_PYCALLBACK_SIZE_const(DoGetBestSize); - - DEC_PYCALLBACK__(InitDialog); - DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); - DEC_PYCALLBACK_BOOL_(TransferDataToWindow); - DEC_PYCALLBACK_BOOL_(Validate); - - DEC_PYCALLBACK_BOOL_const(AcceptsFocus); - DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); - DEC_PYCALLBACK_SIZE_const(GetMaxSize); - - DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); - DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); - - DEC_PYCALLBACK_BOOL_(ShouldInheritColours); - DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground); - - PYPRIVATE; -}; - -IMPLEMENT_DYNAMIC_CLASS(wxPyWindow, wxWindow); - -IMP_PYCALLBACK_VOID_INT4(wxPyWindow, wxWindow, DoMoveWindow); -IMP_PYCALLBACK_VOID_INT5(wxPyWindow, wxWindow, DoSetSize); -IMP_PYCALLBACK_VOID_INTINT(wxPyWindow, wxWindow, DoSetClientSize); -IMP_PYCALLBACK_VOID_INTINT(wxPyWindow, wxWindow, DoSetVirtualSize); - -IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetSize); -IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetClientSize); -IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetPosition); - -IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, DoGetVirtualSize); -IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, DoGetBestSize); - -IMP_PYCALLBACK__(wxPyWindow, wxWindow, InitDialog); -IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, TransferDataFromWindow); -IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, TransferDataToWindow); -IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, Validate); - -IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, AcceptsFocus); -IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, AcceptsFocusFromKeyboard); -IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, GetMaxSize); - -IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWindow, wxWindow, AddChild); -IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWindow, wxWindow, RemoveChild); - -IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, ShouldInheritColours); -IMP_PYCALLBACK__COLOUR(wxPyWindow, wxWindow, ApplyParentThemeBackground); - - - // C++ version of Python aware wxPanel -class wxPyPanel : public wxPanel -{ - DECLARE_DYNAMIC_CLASS(wxPyPanel) -public: - wxPyPanel() : wxPanel() {} - wxPyPanel(wxWindow* parent, const wxWindowID id, - const wxPoint& pos = wxDefaultPosition, - const wxSize& size = wxDefaultSize, - long style = 0, - const wxString& name = wxPyPanelNameStr) - : wxPanel(parent, id, pos, size, style, name) {} - - - DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); - DEC_PYCALLBACK_VOID_INT5(DoSetSize); - DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); - DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); - - DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); - DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); - DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); - - DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); - DEC_PYCALLBACK_SIZE_const(DoGetBestSize); - - DEC_PYCALLBACK__(InitDialog); - DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); - DEC_PYCALLBACK_BOOL_(TransferDataToWindow); - DEC_PYCALLBACK_BOOL_(Validate); - - DEC_PYCALLBACK_BOOL_const(AcceptsFocus); - DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); - DEC_PYCALLBACK_SIZE_const(GetMaxSize); - - DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); - DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); - - DEC_PYCALLBACK_BOOL_(ShouldInheritColours); - DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground); - - PYPRIVATE; -}; - -IMPLEMENT_DYNAMIC_CLASS(wxPyPanel, wxPanel); - -IMP_PYCALLBACK_VOID_INT4(wxPyPanel, wxPanel, DoMoveWindow); -IMP_PYCALLBACK_VOID_INT5(wxPyPanel, wxPanel, DoSetSize); -IMP_PYCALLBACK_VOID_INTINT(wxPyPanel, wxPanel, DoSetClientSize); -IMP_PYCALLBACK_VOID_INTINT(wxPyPanel, wxPanel, DoSetVirtualSize); - -IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetSize); -IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetClientSize); -IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetPosition); - -IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, DoGetVirtualSize); -IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, DoGetBestSize); - -IMP_PYCALLBACK__(wxPyPanel, wxPanel, InitDialog); -IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, TransferDataFromWindow); -IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, TransferDataToWindow); -IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, Validate); - -IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, AcceptsFocus); -IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, AcceptsFocusFromKeyboard); -IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, GetMaxSize); - -IMP_PYCALLBACK_VOID_WXWINBASE(wxPyPanel, wxPanel, AddChild); -IMP_PYCALLBACK_VOID_WXWINBASE(wxPyPanel, wxPanel, RemoveChild); - -IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, ShouldInheritColours); -IMP_PYCALLBACK__COLOUR(wxPyPanel, wxPanel, ApplyParentThemeBackground); - - // C++ version of Python aware wxScrolledWindow -class wxPyScrolledWindow : public wxScrolledWindow -{ - DECLARE_DYNAMIC_CLASS(wxPyScrolledWindow) -public: - wxPyScrolledWindow() : wxScrolledWindow() {} - wxPyScrolledWindow(wxWindow* parent, const wxWindowID id, - const wxPoint& pos = wxDefaultPosition, - const wxSize& size = wxDefaultSize, - long style = 0, - const wxString& name = wxPyPanelNameStr) - : wxScrolledWindow(parent, id, pos, size, style, name) {} - - - DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); - DEC_PYCALLBACK_VOID_INT5(DoSetSize); - DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); - DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); - - DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); - DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); - DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); - - DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); - DEC_PYCALLBACK_SIZE_const(DoGetBestSize); - - DEC_PYCALLBACK__(InitDialog); - DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); - DEC_PYCALLBACK_BOOL_(TransferDataToWindow); - DEC_PYCALLBACK_BOOL_(Validate); - - DEC_PYCALLBACK_BOOL_const(AcceptsFocus); - DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); - DEC_PYCALLBACK_SIZE_const(GetMaxSize); - - DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); - DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); - - DEC_PYCALLBACK_BOOL_(ShouldInheritColours); - DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground); - - PYPRIVATE; -}; - -IMPLEMENT_DYNAMIC_CLASS(wxPyScrolledWindow, wxScrolledWindow); - -IMP_PYCALLBACK_VOID_INT4(wxPyScrolledWindow, wxScrolledWindow, DoMoveWindow); -IMP_PYCALLBACK_VOID_INT5(wxPyScrolledWindow, wxScrolledWindow, DoSetSize); -IMP_PYCALLBACK_VOID_INTINT(wxPyScrolledWindow, wxScrolledWindow, DoSetClientSize); -IMP_PYCALLBACK_VOID_INTINT(wxPyScrolledWindow, wxScrolledWindow, DoSetVirtualSize); - -IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetSize); -IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetClientSize); -IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetPosition); - -IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, DoGetVirtualSize); -IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, DoGetBestSize); - -IMP_PYCALLBACK__(wxPyScrolledWindow, wxScrolledWindow, InitDialog); -IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, TransferDataFromWindow); -IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, TransferDataToWindow); -IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, Validate); - -IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, AcceptsFocus); -IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, AcceptsFocusFromKeyboard); -IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, GetMaxSize); - -IMP_PYCALLBACK_VOID_WXWINBASE(wxPyScrolledWindow, wxScrolledWindow, AddChild); -IMP_PYCALLBACK_VOID_WXWINBASE(wxPyScrolledWindow, wxScrolledWindow, RemoveChild); - -IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, ShouldInheritColours); -IMP_PYCALLBACK__COLOUR(wxPyScrolledWindow, wxScrolledWindow, ApplyParentThemeBackground); - - -#include "wx/wxPython/printfw.h" - - - static const wxString wxPyPrintoutTitleStr(wxT("Printout")); - static const wxString wxPyPreviewCanvasNameStr(wxT("previewcanvas")); - - - -// Since this one would be tough and ugly to do with the Macros... -void wxPyPrintout::GetPageInfo(int *minPage, int *maxPage, int *pageFrom, int *pageTo) { - bool hadErr = False; - bool found; - - bool blocked = wxPyBeginBlockThreads(); - if ((found = wxPyCBH_findCallback(m_myInst, "GetPageInfo"))) { - PyObject* result = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); - if (result && PyTuple_Check(result) && PyTuple_Size(result) == 4) { - PyObject* val; - - val = PyTuple_GetItem(result, 0); - if (PyInt_Check(val)) *minPage = PyInt_AsLong(val); - else hadErr = True; - - val = PyTuple_GetItem(result, 1); - if (PyInt_Check(val)) *maxPage = PyInt_AsLong(val); - else hadErr = True; - - val = PyTuple_GetItem(result, 2); - if (PyInt_Check(val)) *pageFrom = PyInt_AsLong(val); - else hadErr = True; - - val = PyTuple_GetItem(result, 3); - if (PyInt_Check(val)) *pageTo = PyInt_AsLong(val); - else hadErr = True; - } - else - hadErr = True; - - if (hadErr) { - PyErr_SetString(PyExc_TypeError, "GetPageInfo should return a tuple of 4 integers."); - PyErr_Print(); - } - Py_DECREF(result); - } - wxPyEndBlockThreads(blocked); - if (! found) - wxPrintout::GetPageInfo(minPage, maxPage, pageFrom, pageTo); -} - -void wxPyPrintout::base_GetPageInfo(int *minPage, int *maxPage, int *pageFrom, int *pageTo) { - wxPrintout::GetPageInfo(minPage, maxPage, pageFrom, pageTo); -} - - -IMP_PYCALLBACK_BOOL_INTINT(wxPyPrintout, wxPrintout, OnBeginDocument); -IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnEndDocument); -IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnBeginPrinting); -IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnEndPrinting); -IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnPreparePrinting); -IMP_PYCALLBACK_BOOL_INT_pure(wxPyPrintout, wxPrintout, OnPrintPage); -IMP_PYCALLBACK_BOOL_INT(wxPyPrintout, wxPrintout, HasPage); - - - - - -#define DEC_PYCALLBACK_BOOL_PREWINDC(CBNAME) \ - bool CBNAME(wxPreviewCanvas* a, wxDC& b); \ - bool base_##CBNAME(wxPreviewCanvas* a, wxDC& b) - - -#define IMP_PYCALLBACK_BOOL_PREWINDC(CLASS, PCLASS, CBNAME) \ - bool CLASS::CBNAME(wxPreviewCanvas* a, wxDC& b) { \ - bool rval=False; \ - bool found; \ - bool blocked = wxPyBeginBlockThreads(); \ - if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ - PyObject* win = wxPyMake_wxObject(a); \ - PyObject* dc = wxPyMake_wxObject(&b); \ - rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)", win, dc));\ - Py_DECREF(win); \ - Py_DECREF(dc); \ - } \ - wxPyEndBlockThreads(blocked); \ - if (! found) \ - rval = PCLASS::CBNAME(a, b); \ - return rval; \ - } \ - bool CLASS::base_##CBNAME(wxPreviewCanvas* a, wxDC& b) { \ - return PCLASS::CBNAME(a, b); \ - } - - - - -class wxPyPrintPreview : public wxPrintPreview -{ - DECLARE_CLASS(wxPyPrintPreview) -public: - wxPyPrintPreview(wxPyPrintout* printout, - wxPyPrintout* printoutForPrinting, - wxPrintDialogData* data=NULL) - : wxPrintPreview(printout, printoutForPrinting, data) - {} - wxPyPrintPreview(wxPyPrintout* printout, - wxPyPrintout* printoutForPrinting, - wxPrintData* data=NULL) - : wxPrintPreview(printout, printoutForPrinting, data) - {} - - DEC_PYCALLBACK_BOOL_INT(SetCurrentPage); - DEC_PYCALLBACK_BOOL_PREWINDC(PaintPage); - DEC_PYCALLBACK_BOOL_PREWINDC(DrawBlankPage); - DEC_PYCALLBACK_BOOL_INT(RenderPage); - DEC_PYCALLBACK_VOID_INT(SetZoom); - DEC_PYCALLBACK_BOOL_BOOL(Print); - DEC_PYCALLBACK_VOID_(DetermineScaling); - - PYPRIVATE; -}; - -// Stupid renamed classes... Fix this in 2.5... -#if defined(__WXMSW__) -IMPLEMENT_CLASS( wxPyPrintPreview, wxWindowsPrintPreview ); -#elif defined(__WXMAC__) -IMPLEMENT_CLASS( wxPyPrintPreview, wxMacPrintPreview ); -#else -IMPLEMENT_CLASS( wxPyPrintPreview, wxPostScriptPrintPreview ); -#endif - -IMP_PYCALLBACK_BOOL_INT (wxPyPrintPreview, wxPrintPreview, SetCurrentPage); -IMP_PYCALLBACK_BOOL_PREWINDC(wxPyPrintPreview, wxPrintPreview, PaintPage); -IMP_PYCALLBACK_BOOL_PREWINDC(wxPyPrintPreview, wxPrintPreview, DrawBlankPage); -IMP_PYCALLBACK_BOOL_INT (wxPyPrintPreview, wxPrintPreview, RenderPage); -IMP_PYCALLBACK_VOID_INT (wxPyPrintPreview, wxPrintPreview, SetZoom); -IMP_PYCALLBACK_BOOL_BOOL (wxPyPrintPreview, wxPrintPreview, Print); -IMP_PYCALLBACK_VOID_ (wxPyPrintPreview, wxPrintPreview, DetermineScaling); - - -class wxPyPreviewFrame : public wxPreviewFrame -{ - DECLARE_CLASS(wxPyPreviewFrame); -public: - wxPyPreviewFrame(wxPrintPreview* preview, wxFrame* parent, - const wxString& title, - const wxPoint& pos = wxDefaultPosition, - const wxSize& size = wxDefaultSize, - long style = wxDEFAULT_FRAME_STYLE, - const wxString& name = wxPyFrameNameStr) - : wxPreviewFrame(preview, parent, title, pos, size, style, name) - {} - - void SetPreviewCanvas(wxPreviewCanvas* canvas) { m_previewCanvas = canvas; } - void SetControlBar(wxPreviewControlBar* bar) { m_controlBar = bar; } - - DEC_PYCALLBACK_VOID_(Initialize); - DEC_PYCALLBACK_VOID_(CreateCanvas); - DEC_PYCALLBACK_VOID_(CreateControlBar); - - PYPRIVATE; -}; - -IMPLEMENT_CLASS(wxPyPreviewFrame, wxPreviewFrame); - -IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, Initialize); -IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, CreateCanvas); -IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, CreateControlBar); - - -class wxPyPreviewControlBar : public wxPreviewControlBar -{ - DECLARE_CLASS(wxPyPreviewControlBar); -public: - wxPyPreviewControlBar(wxPrintPreview *preview, - long buttons, - wxWindow *parent, - const wxPoint& pos = wxDefaultPosition, - const wxSize& size = wxDefaultSize, - long style = 0, - const wxString& name = wxPyPanelNameStr) - : wxPreviewControlBar(preview, buttons, parent, pos, size, style, name) - {} - - void SetPrintPreview(wxPrintPreview* preview) { m_printPreview = preview; } - - DEC_PYCALLBACK_VOID_(CreateButtons); - DEC_PYCALLBACK_VOID_INT(SetZoomControl); - - PYPRIVATE; -}; - -IMPLEMENT_CLASS(wxPyPreviewControlBar, wxPreviewControlBar); -IMP_PYCALLBACK_VOID_(wxPyPreviewControlBar, wxPreviewControlBar, CreateButtons); -IMP_PYCALLBACK_VOID_INT(wxPyPreviewControlBar, wxPreviewControlBar, SetZoomControl); - -#ifdef __cplusplus -extern "C" { -#endif -static PyObject *_wrap_new_Panel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) (int)-1 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) wxTAB_TRAVERSAL|wxNO_BORDER ; - wxString const &arg6_defvalue = wxPyPanelNameStr ; - wxString *arg6 = (wxString *) &arg6_defvalue ; - wxPanel *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp6 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Panel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int const) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - { - arg6 = wxString_in_helper(obj5); - if (arg6 == NULL) SWIG_fail; - temp6 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPanel *)new wxPanel(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPanel, 1); - { - if (temp6) - delete arg6; - } - return resultobj; - fail: - { - if (temp6) - delete arg6; - } - return NULL; -} - - -static PyObject *_wrap_new_PrePanel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPanel *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePanel",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPanel *)new wxPanel(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPanel, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Panel_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPanel *arg1 = (wxPanel *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 = (int) (int)-1 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxTAB_TRAVERSAL|wxNO_BORDER ; - wxString const &arg7_defvalue = wxPyPanelNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - bool result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Panel_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPanel, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (int const) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_Panel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPanel *arg1 = (wxPanel *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Panel_InitDialog",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPanel, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->InitDialog(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * Panel_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPanel, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) (int)-1 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) wxHSCROLL|wxVSCROLL ; - wxString const &arg6_defvalue = wxPyPanelNameStr ; - wxString *arg6 = (wxString *) &arg6_defvalue ; - wxScrolledWindow *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp6 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int const) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - { - arg6 = wxString_in_helper(obj5); - if (arg6 == NULL) SWIG_fail; - temp6 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxScrolledWindow *)new wxScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrolledWindow, 1); - { - if (temp6) - delete arg6; - } - return resultobj; - fail: - { - if (temp6) - delete arg6; - } - return NULL; -} - - -static PyObject *_wrap_new_PreScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrolledWindow *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrolledWindow",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxScrolledWindow *)new wxScrolledWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrolledWindow, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrolledWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 = (int) (int)-1 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxHSCROLL|wxVSCROLL ; - wxString const &arg7_defvalue = wxPyPanelNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - bool result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ScrolledWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (int const) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_ScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 = (int) 0 ; - int arg7 = (int) 0 ; - bool arg8 = (bool) False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pixelsPerUnitX",(char *) "pixelsPerUnitY",(char *) "noUnitsX",(char *) "noUnitsY",(char *) "xPos",(char *) "yPos",(char *) "noRefresh", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:ScrolledWindow_SetScrollbars",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - if (obj5) { - arg6 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - arg7 = (int) SWIG_AsInt(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - arg8 = (bool) SWIG_AsBool(obj7); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetScrollbars(arg2,arg3,arg4,arg5,arg6,arg7,arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_Scroll",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Scroll(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrolledWindow_GetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; - int arg2 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "orient", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_GetScrollPageSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxScrolledWindow const *)arg1)->GetScrollPageSize(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrolledWindow_SetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "orient",(char *) "pageSize", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScrollPageSize",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetScrollPageSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrolledWindow_SetScrollRate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "xstep",(char *) "ystep", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScrollRate",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetScrollRate(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetScrollPixelsPerUnit",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxScrolledWindow const *)arg1)->GetScrollPixelsPerUnit(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; - bool arg2 ; - bool arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x_scrolling",(char *) "y_scrolling", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_EnableScrolling",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->EnableScrolling(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrolledWindow_GetViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetViewStart",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxScrolledWindow const *)arg1)->GetViewStart(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrolledWindow_SetScale(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; - double arg2 ; - double arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "xs",(char *) "ys", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScale",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (double) SWIG_AsDouble(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (double) SWIG_AsDouble(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetScale(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrolledWindow_GetScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; - double result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetScaleX",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (double)((wxScrolledWindow const *)arg1)->GetScaleX(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromDouble((double)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrolledWindow_GetScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; - double result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetScaleY",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (double)((wxScrolledWindow const *)arg1)->GetScaleY(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromDouble((double)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrolledWindow_CalcScrolledPosition__SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:ScrolledWindow_CalcScrolledPosition",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxScrolledWindow const *)arg1)->CalcScrolledPosition((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrolledWindow_CalcScrolledPosition__SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; - int arg2 ; - int arg3 ; - int *arg4 = (int *) 0 ; - int *arg5 = (int *) 0 ; - int temp4 ; - int temp5 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - arg4 = &temp4; - arg5 = &temp5; - if(!PyArg_ParseTuple(args,(char *)"OOO:ScrolledWindow_CalcScrolledPosition",&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxScrolledWindow const *)arg1)->CalcScrolledPosition(arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg4)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg5)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrolledWindow_CalcScrolledPosition(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxScrolledWindow, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - _v = wxPySimple_typecheck(argv[1], wxT("wxPoint"), 2); - } - if (_v) { - return _wrap_ScrolledWindow_CalcScrolledPosition__SWIG_0(self,args); - } - } - } - if (argc == 3) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxScrolledWindow, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - _v = SWIG_CheckInt(argv[1]); - if (_v) { - _v = SWIG_CheckInt(argv[2]); - if (_v) { - return _wrap_ScrolledWindow_CalcScrolledPosition__SWIG_1(self,args); - } - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'ScrolledWindow_CalcScrolledPosition'"); - return NULL; -} - - -static PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:ScrolledWindow_CalcUnscrolledPosition",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxScrolledWindow const *)arg1)->CalcUnscrolledPosition((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; - int arg2 ; - int arg3 ; - int *arg4 = (int *) 0 ; - int *arg5 = (int *) 0 ; - int temp4 ; - int temp5 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - arg4 = &temp4; - arg5 = &temp5; - if(!PyArg_ParseTuple(args,(char *)"OOO:ScrolledWindow_CalcUnscrolledPosition",&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxScrolledWindow const *)arg1)->CalcUnscrolledPosition(arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg4)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg5)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxScrolledWindow, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - _v = wxPySimple_typecheck(argv[1], wxT("wxPoint"), 2); - } - if (_v) { - return _wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_0(self,args); - } - } - } - if (argc == 3) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxScrolledWindow, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - _v = SWIG_CheckInt(argv[1]); - if (_v) { - _v = SWIG_CheckInt(argv[2]); - if (_v) { - return _wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_1(self,args); - } - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'ScrolledWindow_CalcUnscrolledPosition'"); - return NULL; -} - - -static PyObject *_wrap_ScrolledWindow_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_AdjustScrollbars",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AdjustScrollbars(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrolledWindow_CalcScrollInc(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; - wxScrollWinEvent *arg2 = 0 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "event", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_CalcScrollInc",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxScrollWinEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->CalcScrollInc(*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrolledWindow_SetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "target", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_SetTargetWindow",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetTargetWindow(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrolledWindow_GetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetTargetWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)((wxScrolledWindow const *)arg1)->GetTargetWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrolledWindow_SetTargetRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; - wxRect *arg2 = 0 ; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_SetTargetRect",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetTargetRect((wxRect const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrolledWindow_GetTargetRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; - wxRect result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetTargetRect",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxScrolledWindow const *)arg1)->GetTargetRect(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxRect * resultptr; - resultptr = new wxRect((wxRect &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * ScrolledWindow_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxScrolledWindow, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_FrameNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable FrameNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_FrameNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyFrameNameStr)->c_str(), (&wxPyFrameNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyFrameNameStr)->c_str(), (&wxPyFrameNameStr)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_DialogNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable DialogNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_DialogNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyDialogNameStr)->c_str(), (&wxPyDialogNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyDialogNameStr)->c_str(), (&wxPyDialogNameStr)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_StatusLineNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable StatusLineNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_StatusLineNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyStatusLineNameStr)->c_str(), (&wxPyStatusLineNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyStatusLineNameStr)->c_str(), (&wxPyStatusLineNameStr)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ToolBarNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ToolBarNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_ToolBarNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyToolBarNameStr)->c_str(), (&wxPyToolBarNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyToolBarNameStr)->c_str(), (&wxPyToolBarNameStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_TopLevelWindow_Maximize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; - bool arg2 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "maximize", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_Maximize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Maximize(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TopLevelWindow_Restore(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_Restore",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Restore(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TopLevelWindow_Iconize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; - bool arg2 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "iconize", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_Iconize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Iconize(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TopLevelWindow_IsMaximized(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_IsMaximized",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTopLevelWindow const *)arg1)->IsMaximized(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TopLevelWindow_IsIconized(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_IsIconized",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTopLevelWindow const *)arg1)->IsIconized(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TopLevelWindow_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; - wxIcon result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_GetIcon",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxTopLevelWindow const *)arg1)->GetIcon(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxIcon * resultptr; - resultptr = new wxIcon((wxIcon &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TopLevelWindow_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; - wxIcon *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "icon", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetIcon",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetIcon((wxIcon const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TopLevelWindow_SetIcons(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; - wxIconBundle *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "icons", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetIcons",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIconBundle, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetIcons((wxIconBundle const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TopLevelWindow_ShowFullScreen(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; - bool arg2 ; - long arg3 = (long) wxFULLSCREEN_ALL ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "show",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TopLevelWindow_ShowFullScreen",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->ShowFullScreen(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TopLevelWindow_IsFullScreen(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_IsFullScreen",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTopLevelWindow const *)arg1)->IsFullScreen(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TopLevelWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "title", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetTitle",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetTitle((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_TopLevelWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_GetTitle",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxTopLevelWindow const *)arg1)->GetTitle(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TopLevelWindow_SetShape(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; - wxRegion *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "region", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetShape",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetShape((wxRegion const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TopLevelWindow_MacSetMetalAppearance(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "on", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_MacSetMetalAppearance",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->MacSetMetalAppearance(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TopLevelWindow_MacGetMetalAppearance(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_MacGetMetalAppearance",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTopLevelWindow const *)arg1)->MacGetMetalAppearance(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * TopLevelWindow_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxTopLevelWindow, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Frame(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxDEFAULT_FRAME_STYLE ; - wxString const &arg7_defvalue = wxPyFrameNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - wxFrame *result; - bool temp3 = False ; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_Frame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int const) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFrame *)new wxFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp3) - delete arg3; - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_new_PreFrame(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFrame *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreFrame",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFrame *)new wxFrame(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Frame_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFrame *arg1 = (wxFrame *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - wxString *arg4 = 0 ; - wxPoint const &arg5_defvalue = wxDefaultPosition ; - wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; - wxSize const &arg6_defvalue = wxDefaultSize ; - wxSize *arg6 = (wxSize *) &arg6_defvalue ; - long arg7 = (long) wxDEFAULT_FRAME_STYLE ; - wxString const &arg8_defvalue = wxPyFrameNameStr ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - bool result; - bool temp4 = False ; - wxPoint temp5 ; - wxSize temp6 ; - bool temp8 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:Frame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int const) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - { - arg6 = &temp6; - if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; - } - } - if (obj6) { - arg7 = (long) SWIG_AsLong(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp4) - delete arg4; - } - { - if (temp8) - delete arg8; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - { - if (temp8) - delete arg8; - } - return NULL; -} - - -static PyObject *_wrap_Frame_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFrame *arg1 = (wxFrame *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetClientAreaOrigin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxFrame const *)arg1)->GetClientAreaOrigin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Frame_SendSizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFrame *arg1 = (wxFrame *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_SendSizeEvent",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SendSizeEvent(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Frame_SetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFrame *arg1 = (wxFrame *) 0 ; - wxMenuBar *arg2 = (wxMenuBar *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "menubar", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetMenuBar",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMenuBar(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Frame_GetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFrame *arg1 = (wxFrame *) 0 ; - wxMenuBar *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetMenuBar",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuBar *)((wxFrame const *)arg1)->GetMenuBar(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Frame_ProcessCommand(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFrame *arg1 = (wxFrame *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "winid", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_ProcessCommand",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->ProcessCommand(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Frame_CreateStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFrame *arg1 = (wxFrame *) 0 ; - int arg2 = (int) 1 ; - long arg3 = (long) wxST_SIZEGRIP ; - int arg4 = (int) 0 ; - wxString const &arg5_defvalue = wxPyStatusLineNameStr ; - wxString *arg5 = (wxString *) &arg5_defvalue ; - wxStatusBar *result; - bool temp5 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "number",(char *) "style",(char *) "winid",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Frame_CreateStatusBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj4) { - { - arg5 = wxString_in_helper(obj4); - if (arg5 == NULL) SWIG_fail; - temp5 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxStatusBar *)(arg1)->CreateStatusBar(arg2,arg3,arg4,(wxString const &)*arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp5) - delete arg5; - } - return resultobj; - fail: - { - if (temp5) - delete arg5; - } - return NULL; -} - - -static PyObject *_wrap_Frame_GetStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFrame *arg1 = (wxFrame *) 0 ; - wxStatusBar *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetStatusBar",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxStatusBar *)((wxFrame const *)arg1)->GetStatusBar(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Frame_SetStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFrame *arg1 = (wxFrame *) 0 ; - wxStatusBar *arg2 = (wxStatusBar *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "statBar", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusBar",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxStatusBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetStatusBar(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Frame_SetStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFrame *arg1 = (wxFrame *) 0 ; - wxString *arg2 = 0 ; - int arg3 = (int) 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "text",(char *) "number", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Frame_SetStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetStatusText((wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Frame_SetStatusWidths(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFrame *arg1 = (wxFrame *) 0 ; - int arg2 ; - int *arg3 = (int *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "widths", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusWidths",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = PyList_Size(obj1); - arg3 = int_LIST_helper(obj1); - if (arg3 == NULL) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetStatusWidths(arg2,(int const *)arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (arg3) delete [] arg3; - } - return resultobj; - fail: - { - if (arg3) delete [] arg3; - } - return NULL; -} - - -static PyObject *_wrap_Frame_PushStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFrame *arg1 = (wxFrame *) 0 ; - wxString *arg2 = 0 ; - int arg3 = (int) 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "text",(char *) "number", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Frame_PushStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->PushStatusText((wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Frame_PopStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFrame *arg1 = (wxFrame *) 0 ; - int arg2 = (int) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "number", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Frame_PopStatusText",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->PopStatusText(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Frame_SetStatusBarPane(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFrame *arg1 = (wxFrame *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusBarPane",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetStatusBarPane(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Frame_GetStatusBarPane(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFrame *arg1 = (wxFrame *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetStatusBarPane",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxFrame const *)arg1)->GetStatusBarPane(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Frame_CreateToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFrame *arg1 = (wxFrame *) 0 ; - long arg2 = (long) -1 ; - int arg3 = (int) -1 ; - wxString const &arg4_defvalue = wxPyToolBarNameStr ; - wxString *arg4 = (wxString *) &arg4_defvalue ; - wxToolBar *result; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "style",(char *) "winid",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Frame_CreateToolBar",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxToolBar *)(arg1)->CreateToolBar(arg2,arg3,(wxString const &)*arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_Frame_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFrame *arg1 = (wxFrame *) 0 ; - wxToolBar *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetToolBar",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxToolBar *)((wxFrame const *)arg1)->GetToolBar(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Frame_SetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFrame *arg1 = (wxFrame *) 0 ; - wxToolBar *arg2 = (wxToolBar *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "toolbar", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetToolBar",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetToolBar(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Frame_DoGiveHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFrame *arg1 = (wxFrame *) 0 ; - wxString *arg2 = 0 ; - bool arg3 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "text",(char *) "show", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Frame_DoGiveHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DoGiveHelp((wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Frame_DoMenuUpdates(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFrame *arg1 = (wxFrame *) 0 ; - wxMenu *arg2 = (wxMenu *) NULL ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "menu", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Frame_DoMenuUpdates",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DoMenuUpdates(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * Frame_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxFrame, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Dialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxDEFAULT_DIALOG_STYLE ; - wxString const &arg7_defvalue = wxPyDialogNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - wxDialog *result; - bool temp3 = False ; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_Dialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int const) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxDialog *)new wxDialog(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDialog, 1); - { - if (temp3) - delete arg3; - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_new_PreDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDialog *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDialog",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxDialog *)new wxDialog(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDialog, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Dialog_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDialog *arg1 = (wxDialog *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - wxString *arg4 = 0 ; - wxPoint const &arg5_defvalue = wxDefaultPosition ; - wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; - wxSize const &arg6_defvalue = wxDefaultSize ; - wxSize *arg6 = (wxSize *) &arg6_defvalue ; - long arg7 = (long) wxDEFAULT_DIALOG_STYLE ; - wxString const &arg8_defvalue = wxPyDialogNameStr ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - bool result; - bool temp4 = False ; - wxPoint temp5 ; - wxSize temp6 ; - bool temp8 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:Dialog_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int const) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - { - arg6 = &temp6; - if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; - } - } - if (obj6) { - arg7 = (long) SWIG_AsLong(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp4) - delete arg4; - } - { - if (temp8) - delete arg8; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - { - if (temp8) - delete arg8; - } - return NULL; -} - - -static PyObject *_wrap_Dialog_SetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDialog *arg1 = (wxDialog *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "returnCode", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_SetReturnCode",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetReturnCode(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Dialog_GetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDialog *arg1 = (wxDialog *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Dialog_GetReturnCode",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDialog const *)arg1)->GetReturnCode(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Dialog_CreateTextSizer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDialog *arg1 = (wxDialog *) 0 ; - wxString *arg2 = 0 ; - wxSizer *result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "message", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_CreateTextSizer",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSizer *)(arg1)->CreateTextSizer((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxSizer(result); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Dialog_CreateButtonSizer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDialog *arg1 = (wxDialog *) 0 ; - long arg2 ; - wxSizer *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_CreateButtonSizer",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSizer *)(arg1)->CreateButtonSizer(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxSizer(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Dialog_IsModal(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDialog *arg1 = (wxDialog *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Dialog_IsModal",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxDialog const *)arg1)->IsModal(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Dialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDialog *arg1 = (wxDialog *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Dialog_ShowModal",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->ShowModal(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Dialog_EndModal(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDialog *arg1 = (wxDialog *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "retCode", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_EndModal",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->EndModal(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * Dialog_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxDialog, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_MiniFrame(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxDEFAULT_FRAME_STYLE ; - wxString const &arg7_defvalue = wxPyFrameNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - wxMiniFrame *result; - bool temp3 = False ; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_MiniFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int const) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMiniFrame *)new wxMiniFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMiniFrame, 1); - { - if (temp3) - delete arg3; - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_new_PreMiniFrame(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMiniFrame *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMiniFrame",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMiniFrame *)new wxMiniFrame(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMiniFrame, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MiniFrame_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMiniFrame *arg1 = (wxMiniFrame *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - wxString *arg4 = 0 ; - wxPoint const &arg5_defvalue = wxDefaultPosition ; - wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; - wxSize const &arg6_defvalue = wxDefaultSize ; - wxSize *arg6 = (wxSize *) &arg6_defvalue ; - long arg7 = (long) wxDEFAULT_FRAME_STYLE ; - wxString const &arg8_defvalue = wxPyFrameNameStr ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - bool result; - bool temp4 = False ; - wxPoint temp5 ; - wxSize temp6 ; - bool temp8 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:MiniFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMiniFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int const) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - { - arg6 = &temp6; - if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; - } - } - if (obj6) { - arg7 = (long) SWIG_AsLong(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp4) - delete arg4; - } - { - if (temp8) - delete arg8; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - { - if (temp8) - delete arg8; - } - return NULL; -} - - -static PyObject * MiniFrame_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxMiniFrame, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_SplashScreenWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxNO_BORDER ; - wxSplashScreenWindow *result; - wxPoint temp4 ; - wxSize temp5 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "bitmap",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_SplashScreenWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSplashScreenWindow *)new wxSplashScreenWindow((wxBitmap const &)*arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplashScreenWindow, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplashScreenWindow_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplashScreenWindow *arg1 = (wxSplashScreenWindow *) 0 ; - wxBitmap *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bitmap", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplashScreenWindow_SetBitmap",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreenWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetBitmap((wxBitmap const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplashScreenWindow_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplashScreenWindow *arg1 = (wxSplashScreenWindow *) 0 ; - wxBitmap *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreenWindow_GetBitmap",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreenWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxBitmap &_result_ref = (arg1)->GetBitmap(); - result = (wxBitmap *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxBitmap* resultptr = new wxBitmap(*result); - resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * SplashScreenWindow_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxSplashScreenWindow, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_SplashScreen(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = 0 ; - long arg2 ; - int arg3 ; - wxWindow *arg4 = (wxWindow *) 0 ; - int arg5 ; - wxPoint const &arg6_defvalue = wxDefaultPosition ; - wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; - wxSize const &arg7_defvalue = wxDefaultSize ; - wxSize *arg7 = (wxSize *) &arg7_defvalue ; - long arg8 = (long) wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP ; - wxSplashScreen *result; - wxPoint temp6 ; - wxSize temp7 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "bitmap",(char *) "splashStyle",(char *) "milliseconds",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:new_SplashScreen",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - if (obj5) { - { - arg6 = &temp6; - if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; - } - } - if (obj6) { - { - arg7 = &temp7; - if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; - } - } - if (obj7) { - arg8 = (long) SWIG_AsLong(obj7); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSplashScreen *)new wxSplashScreen((wxBitmap const &)*arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplashScreen, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplashScreen_GetSplashStyle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreen_GetSplashStyle",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxSplashScreen const *)arg1)->GetSplashStyle(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplashScreen_GetSplashWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; - wxSplashScreenWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreen_GetSplashWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSplashScreenWindow *)((wxSplashScreen const *)arg1)->GetSplashWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplashScreenWindow, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplashScreen_GetTimeout(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreen_GetTimeout",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSplashScreen const *)arg1)->GetTimeout(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * SplashScreen_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxSplashScreen, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_StatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) -1 ; - long arg3 = (long) wxST_SIZEGRIP ; - wxString const &arg4_defvalue = wxPyStatusLineNameStr ; - wxString *arg4 = (wxString *) &arg4_defvalue ; - wxStatusBar *result; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_StatusBar",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxStatusBar *)new wxStatusBar(arg1,arg2,arg3,(wxString const &)*arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_new_PreStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStatusBar *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStatusBar",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxStatusBar *)new wxStatusBar(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_StatusBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStatusBar *arg1 = (wxStatusBar *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - long arg4 = (long) wxST_SIZEGRIP ; - wxString const &arg5_defvalue = wxPyStatusLineNameStr ; - wxString *arg5 = (wxString *) &arg5_defvalue ; - bool result; - bool temp5 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:StatusBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - arg4 = (long) SWIG_AsLong(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj4) { - { - arg5 = wxString_in_helper(obj4); - if (arg5 == NULL) SWIG_fail; - temp5 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxString const &)*arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp5) - delete arg5; - } - return resultobj; - fail: - { - if (temp5) - delete arg5; - } - return NULL; -} - - -static PyObject *_wrap_StatusBar_SetFieldsCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStatusBar *arg1 = (wxStatusBar *) 0 ; - int arg2 = (int) 1 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "number", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_SetFieldsCount",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFieldsCount(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_StatusBar_GetFieldsCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStatusBar *arg1 = (wxStatusBar *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StatusBar_GetFieldsCount",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxStatusBar const *)arg1)->GetFieldsCount(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_StatusBar_SetStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStatusBar *arg1 = (wxStatusBar *) 0 ; - wxString *arg2 = 0 ; - int arg3 = (int) 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "text",(char *) "number", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:StatusBar_SetStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetStatusText((wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_StatusBar_GetStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStatusBar *arg1 = (wxStatusBar *) 0 ; - int arg2 = (int) 0 ; - wxString result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "number", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_GetStatusText",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxStatusBar const *)arg1)->GetStatusText(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_StatusBar_PushStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStatusBar *arg1 = (wxStatusBar *) 0 ; - wxString *arg2 = 0 ; - int arg3 = (int) 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "text",(char *) "number", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:StatusBar_PushStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->PushStatusText((wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_StatusBar_PopStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStatusBar *arg1 = (wxStatusBar *) 0 ; - int arg2 = (int) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "number", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_PopStatusText",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->PopStatusText(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_StatusBar_SetStatusWidths(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStatusBar *arg1 = (wxStatusBar *) 0 ; - int arg2 ; - int *arg3 = (int *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "widths", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_SetStatusWidths",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = PyList_Size(obj1); - arg3 = int_LIST_helper(obj1); - if (arg3 == NULL) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetStatusWidths(arg2,(int const *)arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (arg3) delete [] arg3; - } - return resultobj; - fail: - { - if (arg3) delete [] arg3; - } - return NULL; -} - - -static PyObject *_wrap_StatusBar_GetFieldRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStatusBar *arg1 = (wxStatusBar *) 0 ; - int arg2 ; - wxRect result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "i", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_GetFieldRect",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxStatusBar_GetFieldRect(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxRect * resultptr; - resultptr = new wxRect((wxRect &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_StatusBar_SetMinHeight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStatusBar *arg1 = (wxStatusBar *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_SetMinHeight",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMinHeight(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_StatusBar_GetBorderX(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStatusBar *arg1 = (wxStatusBar *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StatusBar_GetBorderX",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxStatusBar const *)arg1)->GetBorderX(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_StatusBar_GetBorderY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStatusBar *arg1 = (wxStatusBar *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StatusBar_GetBorderY",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxStatusBar const *)arg1)->GetBorderY(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * StatusBar_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxStatusBar, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_SplitterNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable SplitterNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_SplitterNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPySplitterNameStr)->c_str(), (&wxPySplitterNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPySplitterNameStr)->c_str(), (&wxPySplitterNameStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_SplitterWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) -1 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) wxSP_3D ; - wxString const &arg6_defvalue = wxPySplitterNameStr ; - wxString *arg6 = (wxString *) &arg6_defvalue ; - wxSplitterWindow *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp6 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SplitterWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - { - arg6 = wxString_in_helper(obj5); - if (arg6 == NULL) SWIG_fail; - temp6 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSplitterWindow *)new wxSplitterWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplitterWindow, 1); - { - if (temp6) - delete arg6; - } - return resultobj; - fail: - { - if (temp6) - delete arg6; - } - return NULL; -} - - -static PyObject *_wrap_new_PreSplitterWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSplitterWindow",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSplitterWindow *)new wxSplitterWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplitterWindow, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 = (int) -1 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxSP_3D ; - wxString const &arg7_defvalue = wxPySplitterNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - bool result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SplitterWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_SplitterWindow_GetWindow1(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetWindow1",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)((wxSplitterWindow const *)arg1)->GetWindow1(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterWindow_GetWindow2(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetWindow2",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)((wxSplitterWindow const *)arg1)->GetWindow2(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterWindow_SetSplitMode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "mode", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetSplitMode",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSplitMode(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterWindow_GetSplitMode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetSplitMode",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSplitterWindow const *)arg1)->GetSplitMode(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterWindow_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "window", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_Initialize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Initialize(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterWindow_SplitVertically(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - wxWindow *arg3 = (wxWindow *) 0 ; - int arg4 = (int) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "window1",(char *) "window2",(char *) "sashPosition", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SplitVertically",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SplitVertically(arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterWindow_SplitHorizontally(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - wxWindow *arg3 = (wxWindow *) 0 ; - int arg4 = (int) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "window1",(char *) "window2",(char *) "sashPosition", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SplitHorizontally",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SplitHorizontally(arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterWindow_Unsplit(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; - wxWindow *arg2 = (wxWindow *) NULL ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "toRemove", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:SplitterWindow_Unsplit",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Unsplit(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterWindow_ReplaceWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - wxWindow *arg3 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "winOld",(char *) "winNew", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SplitterWindow_ReplaceWindow",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->ReplaceWindow(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterWindow_UpdateSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_UpdateSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->UpdateSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterWindow_IsSplit(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_IsSplit",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxSplitterWindow const *)arg1)->IsSplit(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterWindow_SetSashSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "width", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetSashSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSashSize(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterWindow_SetBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "width", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetBorderSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetBorderSize(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterWindow_GetSashSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetSashSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSplitterWindow const *)arg1)->GetSashSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterWindow_GetBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetBorderSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSplitterWindow const *)arg1)->GetBorderSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterWindow_SetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; - int arg2 ; - bool arg3 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "position",(char *) "redraw", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SplitterWindow_SetSashPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSashPosition(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterWindow_GetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetSashPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSplitterWindow const *)arg1)->GetSashPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterWindow_SetMinimumPaneSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "min", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetMinimumPaneSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMinimumPaneSize(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterWindow_GetMinimumPaneSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetMinimumPaneSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSplitterWindow const *)arg1)->GetMinimumPaneSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterWindow_SashHitTest(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; - int arg2 ; - int arg3 ; - int arg4 = (int) 5 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "tolerance", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SashHitTest",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SashHitTest(arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterWindow_SizeWindows(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_SizeWindows",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SizeWindows(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterWindow_SetNeedUpdating(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "needUpdating", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetNeedUpdating",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetNeedUpdating(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterWindow_GetNeedUpdating(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetNeedUpdating",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxSplitterWindow const *)arg1)->GetNeedUpdating(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * SplitterWindow_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxSplitterWindow, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_SplitterEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEventType arg1 = (wxEventType) wxEVT_NULL ; - wxSplitterWindow *arg2 = (wxSplitterWindow *) (wxSplitterWindow *) NULL ; - wxSplitterEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "type",(char *) "splitter", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SplitterEvent",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (wxEventType) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSplitterEvent *)new wxSplitterEvent(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplitterEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterEvent_SetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterEvent_SetSashPosition",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSashPosition(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterEvent_GetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterEvent_GetSashPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSplitterEvent const *)arg1)->GetSashPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterEvent_GetWindowBeingRemoved(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterEvent_GetWindowBeingRemoved",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)((wxSplitterEvent const *)arg1)->GetWindowBeingRemoved(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterEvent_GetX",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSplitterEvent const *)arg1)->GetX(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterEvent_GetY",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSplitterEvent const *)arg1)->GetY(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * SplitterEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxSplitterEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_SashNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable SashNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_SashNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPySashNameStr)->c_str(), (&wxPySashNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPySashNameStr)->c_str(), (&wxPySashNameStr)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_SashLayoutNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable SashLayoutNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_SashLayoutNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPySashLayoutNameStr)->c_str(), (&wxPySashLayoutNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPySashLayoutNameStr)->c_str(), (&wxPySashLayoutNameStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_SashWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) wxCLIP_CHILDREN|wxSW_3D ; - wxString const &arg6_defvalue = wxPySashNameStr ; - wxString *arg6 = (wxString *) &arg6_defvalue ; - wxSashWindow *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp6 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_SashWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - { - arg6 = wxString_in_helper(obj5); - if (arg6 == NULL) SWIG_fail; - temp6 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSashWindow *)new wxSashWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashWindow, 1); - { - if (temp6) - delete arg6; - } - return resultobj; - fail: - { - if (temp6) - delete arg6; - } - return NULL; -} - - -static PyObject *_wrap_new_PreSashWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashWindow *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSashWindow",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSashWindow *)new wxSashWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashWindow, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashWindow *arg1 = (wxSashWindow *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxCLIP_CHILDREN|wxSW_3D ; - wxString const &arg7_defvalue = wxPySashNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - bool result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:SashWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_SashWindow_SetSashVisible(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashWindow *arg1 = (wxSashWindow *) 0 ; - int arg2 ; - bool arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "edge",(char *) "sash", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SashWindow_SetSashVisible",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSashVisible((wxSashEdgePosition )arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashWindow_GetSashVisible(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashWindow *arg1 = (wxSashWindow *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "edge", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_GetSashVisible",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxSashWindow const *)arg1)->GetSashVisible((wxSashEdgePosition )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashWindow_SetSashBorder(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashWindow *arg1 = (wxSashWindow *) 0 ; - int arg2 ; - bool arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "edge",(char *) "border", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SashWindow_SetSashBorder",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSashBorder((wxSashEdgePosition )arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashWindow_HasBorder(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashWindow *arg1 = (wxSashWindow *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "edge", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_HasBorder",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxSashWindow const *)arg1)->HasBorder((wxSashEdgePosition )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashWindow_GetEdgeMargin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashWindow *arg1 = (wxSashWindow *) 0 ; - int arg2 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "edge", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_GetEdgeMargin",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSashWindow const *)arg1)->GetEdgeMargin((wxSashEdgePosition )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashWindow_SetDefaultBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashWindow *arg1 = (wxSashWindow *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "width", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetDefaultBorderSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDefaultBorderSize(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashWindow_GetDefaultBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashWindow *arg1 = (wxSashWindow *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetDefaultBorderSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSashWindow const *)arg1)->GetDefaultBorderSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashWindow_SetExtraBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashWindow *arg1 = (wxSashWindow *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "width", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetExtraBorderSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetExtraBorderSize(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashWindow_GetExtraBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashWindow *arg1 = (wxSashWindow *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetExtraBorderSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSashWindow const *)arg1)->GetExtraBorderSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashWindow_SetMinimumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashWindow *arg1 = (wxSashWindow *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "min", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMinimumSizeX",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMinimumSizeX(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashWindow_SetMinimumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashWindow *arg1 = (wxSashWindow *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "min", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMinimumSizeY",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMinimumSizeY(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashWindow_GetMinimumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashWindow *arg1 = (wxSashWindow *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetMinimumSizeX",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSashWindow const *)arg1)->GetMinimumSizeX(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashWindow_GetMinimumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashWindow *arg1 = (wxSashWindow *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetMinimumSizeY",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSashWindow const *)arg1)->GetMinimumSizeY(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashWindow_SetMaximumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashWindow *arg1 = (wxSashWindow *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "max", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMaximumSizeX",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMaximumSizeX(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashWindow_SetMaximumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashWindow *arg1 = (wxSashWindow *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "max", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMaximumSizeY",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMaximumSizeY(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashWindow_GetMaximumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashWindow *arg1 = (wxSashWindow *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetMaximumSizeX",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSashWindow const *)arg1)->GetMaximumSizeX(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashWindow_GetMaximumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashWindow *arg1 = (wxSashWindow *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetMaximumSizeY",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSashWindow const *)arg1)->GetMaximumSizeY(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashWindow_SashHitTest(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashWindow *arg1 = (wxSashWindow *) 0 ; - int arg2 ; - int arg3 ; - int arg4 = (int) 2 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "tolerance", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SashWindow_SashHitTest",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->SashHitTest(arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashWindow_SizeWindows(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashWindow *arg1 = (wxSashWindow *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_SizeWindows",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SizeWindows(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * SashWindow_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxSashWindow, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_SashEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - int arg2 = (int) wxSASH_NONE ; - wxSashEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "id",(char *) "edge", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SashEvent",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSashEvent *)new wxSashEvent(arg1,(wxSashEdgePosition )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashEvent_SetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashEvent *arg1 = (wxSashEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "edge", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetEdge",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetEdge((wxSashEdgePosition )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashEvent_GetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashEvent *arg1 = (wxSashEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashEvent_GetEdge",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSashEvent const *)arg1)->GetEdge(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashEvent_SetDragRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashEvent *arg1 = (wxSashEvent *) 0 ; - wxRect *arg2 = 0 ; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetDragRect",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDragRect((wxRect const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashEvent_GetDragRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashEvent *arg1 = (wxSashEvent *) 0 ; - wxRect result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashEvent_GetDragRect",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxSashEvent const *)arg1)->GetDragRect(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxRect * resultptr; - resultptr = new wxRect((wxRect &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashEvent_SetDragStatus(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashEvent *arg1 = (wxSashEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "status", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetDragStatus",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxSashDragStatus) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDragStatus((wxSashDragStatus )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashEvent_GetDragStatus(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashEvent *arg1 = (wxSashEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashEvent_GetDragStatus",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSashEvent const *)arg1)->GetDragStatus(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * SashEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxSashEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_QueryLayoutInfoEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - wxQueryLayoutInfoEvent *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryLayoutInfoEvent",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxQueryLayoutInfoEvent *)new wxQueryLayoutInfoEvent(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxQueryLayoutInfoEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_QueryLayoutInfoEvent_SetRequestedLength(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "length", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetRequestedLength",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetRequestedLength(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_QueryLayoutInfoEvent_GetRequestedLength(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetRequestedLength",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetRequestedLength(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_QueryLayoutInfoEvent_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFlags(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_QueryLayoutInfoEvent_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetFlags",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetFlags(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_QueryLayoutInfoEvent_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; - wxSize *arg2 = 0 ; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSize((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_QueryLayoutInfoEvent_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxQueryLayoutInfoEvent const *)arg1)->GetSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_QueryLayoutInfoEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "orient", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxLayoutOrientation) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetOrientation((wxLayoutOrientation )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_QueryLayoutInfoEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetOrientation",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetOrientation(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_QueryLayoutInfoEvent_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "align", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetAlignment",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxLayoutAlignment) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetAlignment((wxLayoutAlignment )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_QueryLayoutInfoEvent_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetAlignment",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetAlignment(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * QueryLayoutInfoEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxQueryLayoutInfoEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_CalculateLayoutEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - wxCalculateLayoutEvent *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CalculateLayoutEvent",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxCalculateLayoutEvent *)new wxCalculateLayoutEvent(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCalculateLayoutEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CalculateLayoutEvent_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalculateLayoutEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalculateLayoutEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFlags(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CalculateLayoutEvent_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalculateLayoutEvent_GetFlags",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalculateLayoutEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxCalculateLayoutEvent const *)arg1)->GetFlags(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CalculateLayoutEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; - wxRect *arg2 = 0 ; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalculateLayoutEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalculateLayoutEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetRect((wxRect const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CalculateLayoutEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; - wxRect result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalculateLayoutEvent_GetRect",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalculateLayoutEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxCalculateLayoutEvent const *)arg1)->GetRect(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxRect * resultptr; - resultptr = new wxRect((wxRect &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * CalculateLayoutEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxCalculateLayoutEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_SashLayoutWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) wxCLIP_CHILDREN|wxSW_3D ; - wxString const &arg6_defvalue = wxPySashLayoutNameStr ; - wxString *arg6 = (wxString *) &arg6_defvalue ; - wxSashLayoutWindow *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp6 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_SashLayoutWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - { - arg6 = wxString_in_helper(obj5); - if (arg6 == NULL) SWIG_fail; - temp6 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSashLayoutWindow *)new wxSashLayoutWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashLayoutWindow, 1); - { - if (temp6) - delete arg6; - } - return resultobj; - fail: - { - if (temp6) - delete arg6; - } - return NULL; -} - - -static PyObject *_wrap_new_PreSashLayoutWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashLayoutWindow *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSashLayoutWindow",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSashLayoutWindow *)new wxSashLayoutWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashLayoutWindow, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashLayoutWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxCLIP_CHILDREN|wxSW_3D ; - wxString const &arg7_defvalue = wxPySashLayoutNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - bool result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:SashLayoutWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_SashLayoutWindow_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashLayoutWindow_GetAlignment",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetAlignment(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashLayoutWindow_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashLayoutWindow_GetOrientation",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetOrientation(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashLayoutWindow_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "alignment", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetAlignment",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxLayoutAlignment) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetAlignment((wxLayoutAlignment )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashLayoutWindow_SetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; - wxSize *arg2 = 0 ; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetDefaultSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDefaultSize((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashLayoutWindow_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "orientation", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetOrientation",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxLayoutOrientation) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetOrientation((wxLayoutOrientation )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * SashLayoutWindow_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxSashLayoutWindow, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_LayoutAlgorithm(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLayoutAlgorithm *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutAlgorithm",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxLayoutAlgorithm *)new wxLayoutAlgorithm(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutAlgorithm, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_LayoutAlgorithm(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LayoutAlgorithm",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutAlgorithm, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_LayoutAlgorithm_LayoutMDIFrame(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; - wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; - wxRect *arg3 = (wxRect *) NULL ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "frame",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutMDIFrame",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutAlgorithm, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMDIParentFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->LayoutMDIFrame(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_LayoutAlgorithm_LayoutFrame(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; - wxFrame *arg2 = (wxFrame *) 0 ; - wxWindow *arg3 = (wxWindow *) NULL ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "frame",(char *) "mainWindow", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutFrame",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutAlgorithm, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->LayoutFrame(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_LayoutAlgorithm_LayoutWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - wxWindow *arg3 = (wxWindow *) NULL ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "mainWindow", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutWindow",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutAlgorithm, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->LayoutWindow(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * LayoutAlgorithm_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxLayoutAlgorithm, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PopupWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) wxBORDER_NONE ; - wxPopupWindow *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PopupWindow",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPopupWindow *)new wxPopupWindow(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPopupWindow, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_PrePopupWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPopupWindow *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePopupWindow",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPopupWindow *)new wxPopupWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPopupWindow, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * PopupWindow_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPopupWindow, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PopupTransientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) wxBORDER_NONE ; - wxPyPopupTransientWindow *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PopupTransientWindow",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyPopupTransientWindow *)new wxPyPopupTransientWindow(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPopupTransientWindow, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_PrePopupTransientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPopupTransientWindow *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePopupTransientWindow",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyPopupTransientWindow *)new wxPyPopupTransientWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPopupTransientWindow, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * PopupTransientWindow_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyPopupTransientWindow, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_TipWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxString *arg2 = 0 ; - int arg3 = (int) 100 ; - wxRect *arg4 = (wxRect *) NULL ; - wxTipWindow *result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "text",(char *) "maxLength",(char *) "rectBound", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_TipWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxTipWindow *)new_wxTipWindow(arg1,(wxString const &)*arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipWindow, 1); - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_TipWindow_SetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTipWindow *arg1 = (wxTipWindow *) 0 ; - wxRect *arg2 = 0 ; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rectBound", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipWindow_SetBoundingRect",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetBoundingRect((wxRect const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TipWindow_Close(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTipWindow *arg1 = (wxTipWindow *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipWindow_Close",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Close(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * TipWindow_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxTipWindow, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_VScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) wxID_ANY ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) 0 ; - wxString const &arg6_defvalue = wxPyPanelNameStr ; - wxString *arg6 = (wxString *) &arg6_defvalue ; - wxPyVScrolledWindow *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp6 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_VScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - { - arg6 = wxString_in_helper(obj5); - if (arg6 == NULL) SWIG_fail; - temp6 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyVScrolledWindow *)new wxPyVScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyVScrolledWindow, 1); - { - if (temp6) - delete arg6; - } - return resultobj; - fail: - { - if (temp6) - delete arg6; - } - return NULL; -} - - -static PyObject *_wrap_new_PreVScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVScrolledWindow *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreVScrolledWindow",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyVScrolledWindow *)new wxPyVScrolledWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyVScrolledWindow, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VScrolledWindow__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VScrolledWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 = (int) wxID_ANY ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) 0 ; - wxString const &arg7_defvalue = wxPyPanelNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - bool result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:VScrolledWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_VScrolledWindow_SetLineCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; - size_t arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "count", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_SetLineCount",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetLineCount(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VScrolledWindow_ScrollToLine(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; - size_t arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "line", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_ScrollToLine",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->ScrollToLine(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VScrolledWindow_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "lines", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_ScrollLines",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->ScrollLines(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VScrolledWindow_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pages", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_ScrollPages",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->ScrollPages(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VScrolledWindow_RefreshLine(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; - size_t arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "line", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_RefreshLine",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RefreshLine(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VScrolledWindow_RefreshLines(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; - size_t arg2 ; - size_t arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "from",(char *) "to", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow_RefreshLines",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (size_t) SWIG_AsUnsignedLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RefreshLines(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VScrolledWindow_HitTestXT(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; - int arg2 ; - int arg3 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow_HitTestXT",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxPyVScrolledWindow const *)arg1)->HitTest(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VScrolledWindow_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; - wxPoint *arg2 = 0 ; - int result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_HitTest",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxPyVScrolledWindow const *)arg1)->HitTest((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VScrolledWindow_RefreshAll(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VScrolledWindow_RefreshAll",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RefreshAll(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VScrolledWindow_GetLineCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; - size_t result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VScrolledWindow_GetLineCount",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetLineCount(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VScrolledWindow_GetFirstVisibleLine(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; - size_t result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VScrolledWindow_GetFirstVisibleLine",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetFirstVisibleLine(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VScrolledWindow_GetLastVisibleLine(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; - size_t result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VScrolledWindow_GetLastVisibleLine",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetLastVisibleLine(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VScrolledWindow_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; - size_t arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "line", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_IsVisible",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyVScrolledWindow const *)arg1)->IsVisible(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * VScrolledWindow_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyVScrolledWindow, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_VListBoxNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable VListBoxNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_VListBoxNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyVListBoxNameStr)->c_str(), (&wxPyVListBoxNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyVListBoxNameStr)->c_str(), (&wxPyVListBoxNameStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_VListBox(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) wxID_ANY ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) 0 ; - wxString const &arg6_defvalue = wxPyVListBoxNameStr ; - wxString *arg6 = (wxString *) &arg6_defvalue ; - wxPyVListBox *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp6 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_VListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - { - arg6 = wxString_in_helper(obj5); - if (arg6 == NULL) SWIG_fail; - temp6 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyVListBox *)new wxPyVListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyVListBox, 1); - { - if (temp6) - delete arg6; - } - return resultobj; - fail: - { - if (temp6) - delete arg6; - } - return NULL; -} - - -static PyObject *_wrap_new_PreVListBox(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVListBox *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreVListBox",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyVListBox *)new wxPyVListBox(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyVListBox, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VListBox__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 = (int) wxID_ANY ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) 0 ; - wxString const &arg7_defvalue = wxPyVListBoxNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - bool result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:VListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_VListBox_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; - size_t result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetItemCount",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (size_t)((wxPyVListBox const *)arg1)->GetItemCount(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VListBox_HasMultipleSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_HasMultipleSelection",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyVListBox const *)arg1)->HasMultipleSelection(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VListBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetSelection",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxPyVListBox const *)arg1)->GetSelection(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VListBox_IsCurrent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; - size_t arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_IsCurrent",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyVListBox const *)arg1)->IsCurrent(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; - size_t arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyVListBox const *)arg1)->IsSelected(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VListBox_GetSelectedCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; - size_t result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetSelectedCount",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (size_t)((wxPyVListBox const *)arg1)->GetSelectedCount(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VListBox_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; - unsigned long *arg2 = 0 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "cookie", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_GetFirstSelected",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_long, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxPyVListBox const *)arg1)->GetFirstSelected(*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VListBox_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; - unsigned long *arg2 = 0 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "cookie", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_GetNextSelected",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_long, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxPyVListBox const *)arg1)->GetNextSelected(*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VListBox_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetMargins",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyVListBox const *)arg1)->GetMargins(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VListBox_GetSelectionBackground(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; - wxColour *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetSelectionBackground",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxColour const &_result_ref = ((wxPyVListBox const *)arg1)->GetSelectionBackground(); - result = (wxColour *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VListBox_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; - size_t arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "count", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetItemCount",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetItemCount(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VListBox_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_Clear",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Clear(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "selection", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSelection(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VListBox_Select(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; - size_t arg2 ; - bool arg3 = (bool) True ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "select", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:VListBox_Select",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Select(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VListBox_SelectRange(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; - size_t arg2 ; - size_t arg3 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "from",(char *) "to", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox_SelectRange",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (size_t) SWIG_AsUnsignedLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SelectRange(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VListBox_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; - size_t arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_Toggle",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Toggle(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VListBox_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_SelectAll",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SelectAll(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VListBox_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_DeselectAll",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->DeselectAll(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VListBox_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetMargins",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMargins((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VListBox_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMargins(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VListBox_SetSelectionBackground(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "col", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetSelectionBackground",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSelectionBackground((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * VListBox_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyVListBox, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_HtmlListBox(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) wxID_ANY ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) 0 ; - wxString const &arg6_defvalue = wxPyVListBoxNameStr ; - wxString *arg6 = (wxString *) &arg6_defvalue ; - wxPyHtmlListBox *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp6 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_HtmlListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - { - arg6 = wxString_in_helper(obj5); - if (arg6 == NULL) SWIG_fail; - temp6 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyHtmlListBox *)new wxPyHtmlListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyHtmlListBox, 1); - { - if (temp6) - delete arg6; - } - return resultobj; - fail: - { - if (temp6) - delete arg6; - } - return NULL; -} - - -static PyObject *_wrap_new_PreHtmlListBox(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyHtmlListBox *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreHtmlListBox",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyHtmlListBox *)new wxPyHtmlListBox(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyHtmlListBox, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_HtmlListBox__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HtmlListBox__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyHtmlListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_HtmlListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 = (int) wxID_ANY ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) 0 ; - wxString const &arg7_defvalue = wxPyVListBoxNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - bool result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:HtmlListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyHtmlListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_HtmlListBox_RefreshAll(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HtmlListBox_RefreshAll",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyHtmlListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RefreshAll(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_HtmlListBox_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; - size_t arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "count", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HtmlListBox_SetItemCount",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyHtmlListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetItemCount(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * HtmlListBox_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyHtmlListBox, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_TaskBarIcon(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTaskBarIcon *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TaskBarIcon",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxTaskBarIcon *)new wxTaskBarIcon(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTaskBarIcon, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_TaskBarIcon(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TaskBarIcon",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTaskBarIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TaskBarIcon_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TaskBarIcon_Destroy",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTaskBarIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxTaskBarIcon_Destroy(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * TaskBarIcon_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxTaskBarIcon, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_TaskBarIconEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEventType arg1 ; - wxTaskBarIcon *arg2 = (wxTaskBarIcon *) 0 ; - wxTaskBarIconEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "evtType",(char *) "tbIcon", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_TaskBarIconEvent",kwnames,&obj0,&obj1)) goto fail; - arg1 = (wxEventType) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTaskBarIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxTaskBarIconEvent *)new wxTaskBarIconEvent(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTaskBarIconEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * TaskBarIconEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxTaskBarIconEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_FileSelectorPromptStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only."); - return 1; -} - - -static PyObject *_wrap_FileSelectorPromptStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_DirSelectorPromptStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only."); - return 1; -} - - -static PyObject *_wrap_DirSelectorPromptStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_DirDialogNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable DirDialogNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_DirDialogNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyDirDialogNameStr)->c_str(), (&wxPyDirDialogNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyDirDialogNameStr)->c_str(), (&wxPyDirDialogNameStr)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only."); - return 1; -} - - -static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_GetTextFromUserPromptStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable GetTextFromUserPromptStr is read-only."); - return 1; -} - - -static PyObject *_wrap_GetTextFromUserPromptStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyGetTextFromUserPromptStr)->c_str(), (&wxPyGetTextFromUserPromptStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyGetTextFromUserPromptStr)->c_str(), (&wxPyGetTextFromUserPromptStr)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_MessageBoxCaptionStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable MessageBoxCaptionStr is read-only."); - return 1; -} - - -static PyObject *_wrap_MessageBoxCaptionStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyMessageBoxCaptionStr)->c_str(), (&wxPyMessageBoxCaptionStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyMessageBoxCaptionStr)->c_str(), (&wxPyMessageBoxCaptionStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_ColourData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColourData *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourData",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxColourData *)new wxColourData(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourData, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_ColourData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColourData *arg1 = (wxColourData *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ColourData_GetChooseFull(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColourData *arg1 = (wxColourData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ColourData_GetChooseFull",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetChooseFull(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ColourData_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColourData *arg1 = (wxColourData *) 0 ; - wxColour result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ColourData_GetColour",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetColour(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ColourData_GetCustomColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColourData *arg1 = (wxColourData *) 0 ; - int arg2 ; - wxColour result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "i", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_GetCustomColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetCustomColour(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ColourData_SetChooseFull(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColourData *arg1 = (wxColourData *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_SetChooseFull",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetChooseFull(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ColourData_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColourData *arg1 = (wxColourData *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colour", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_SetColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetColour((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ColourData_SetCustomColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColourData *arg1 = (wxColourData *) 0 ; - int arg2 ; - wxColour *arg3 = 0 ; - wxColour temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "i",(char *) "colour", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourData_SetCustomColour",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = &temp3; - if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetCustomColour(arg2,(wxColour const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * ColourData_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxColourData, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ColourDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxColourData *arg2 = (wxColourData *) NULL ; - wxColourDialog *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_ColourDialog",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColourData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxColourDialog *)new wxColourDialog(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDialog, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ColourDialog_GetColourData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColourDialog *arg1 = (wxColourDialog *) 0 ; - wxColourData *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ColourDialog_GetColourData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxColourData &_result_ref = (arg1)->GetColourData(); - result = (wxColourData *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourData, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject * ColourDialog_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxColourDialog, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_DirDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxString const &arg2_defvalue = wxPyDirSelectorPromptStr ; - wxString *arg2 = (wxString *) &arg2_defvalue ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - long arg4 = (long) 0 ; - wxPoint const &arg5_defvalue = wxDefaultPosition ; - wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; - wxSize const &arg6_defvalue = wxDefaultSize ; - wxSize *arg6 = (wxSize *) &arg6_defvalue ; - wxString const &arg7_defvalue = wxPyDirDialogNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - wxDirDialog *result; - bool temp2 = False ; - bool temp3 = False ; - wxPoint temp5 ; - wxSize temp6 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "size",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DirDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - if (obj3) { - arg4 = (long) SWIG_AsLong(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - { - arg6 = &temp6; - if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; - } - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxDirDialog *)new wxDirDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirDialog, 1); - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_DirDialog_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDirDialog *arg1 = (wxDirDialog *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DirDialog_GetPath",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetPath(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DirDialog_GetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDirDialog *arg1 = (wxDirDialog *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DirDialog_GetMessage",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetMessage(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DirDialog_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDirDialog *arg1 = (wxDirDialog *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DirDialog_GetStyle",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->GetStyle(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DirDialog_SetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDirDialog *arg1 = (wxDirDialog *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "message", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirDialog_SetMessage",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMessage((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DirDialog_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDirDialog *arg1 = (wxDirDialog *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "path", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirDialog_SetPath",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPath((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject * DirDialog_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxDirDialog, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_FileDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxString const &arg2_defvalue = wxPyFileSelectorPromptStr ; - wxString *arg2 = (wxString *) &arg2_defvalue ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - wxString const &arg4_defvalue = wxPyEmptyString ; - wxString *arg4 = (wxString *) &arg4_defvalue ; - wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; - wxString *arg5 = (wxString *) &arg5_defvalue ; - long arg6 = (long) 0 ; - wxPoint const &arg7_defvalue = wxDefaultPosition ; - wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; - wxFileDialog *result; - bool temp2 = False ; - bool temp3 = False ; - bool temp4 = False ; - bool temp5 = False ; - wxPoint temp7 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "message",(char *) "defaultDir",(char *) "defaultFile",(char *) "wildcard",(char *) "style",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_FileDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - if (obj3) { - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - } - if (obj4) { - { - arg5 = wxString_in_helper(obj4); - if (arg5 == NULL) SWIG_fail; - temp5 = True; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = &temp7; - if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFileDialog *)new wxFileDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,(wxPoint const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDialog, 1); - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - { - if (temp5) - delete arg5; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - { - if (temp5) - delete arg5; - } - return NULL; -} - - -static PyObject *_wrap_FileDialog_SetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileDialog *arg1 = (wxFileDialog *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "message", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetMessage",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMessage((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_FileDialog_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileDialog *arg1 = (wxFileDialog *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "path", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetPath",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPath((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_FileDialog_SetDirectory(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileDialog *arg1 = (wxFileDialog *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "dir", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetDirectory",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDirectory((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_FileDialog_SetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileDialog *arg1 = (wxFileDialog *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetFilename",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFilename((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_FileDialog_SetWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileDialog *arg1 = (wxFileDialog *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "wildCard", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetWildcard",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetWildcard((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_FileDialog_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileDialog *arg1 = (wxFileDialog *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetStyle",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetStyle(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileDialog_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileDialog *arg1 = (wxFileDialog *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "filterIndex", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFilterIndex(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileDialog_GetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileDialog *arg1 = (wxFileDialog *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetMessage",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxFileDialog const *)arg1)->GetMessage(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileDialog_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileDialog *arg1 = (wxFileDialog *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetPath",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxFileDialog const *)arg1)->GetPath(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileDialog_GetDirectory(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileDialog *arg1 = (wxFileDialog *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetDirectory",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxFileDialog const *)arg1)->GetDirectory(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileDialog_GetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileDialog *arg1 = (wxFileDialog *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetFilename",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxFileDialog const *)arg1)->GetFilename(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileDialog_GetWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileDialog *arg1 = (wxFileDialog *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetWildcard",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxFileDialog const *)arg1)->GetWildcard(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileDialog_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileDialog *arg1 = (wxFileDialog *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetStyle",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxFileDialog const *)arg1)->GetStyle(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileDialog_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileDialog *arg1 = (wxFileDialog *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetFilterIndex",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxFileDialog const *)arg1)->GetFilterIndex(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileDialog_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileDialog *arg1 = (wxFileDialog *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetFilenames",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxFileDialog_GetFilenames(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileDialog_GetPaths(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileDialog *arg1 = (wxFileDialog *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetPaths",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxFileDialog_GetPaths(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject * FileDialog_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxFileDialog, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_MultiChoiceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxString *arg2 = 0 ; - wxString *arg3 = 0 ; - int arg4 = (int) 0 ; - wxString *arg5 = (wxString *) 0 ; - long arg6 = (long) wxCHOICEDLG_STYLE ; - wxPoint const &arg7_defvalue = wxDefaultPosition ; - wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; - wxMultiChoiceDialog *result; - bool temp2 = False ; - bool temp3 = False ; - wxPoint temp6 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "message",(char *) "caption",(char *) "choices",(char *) "style",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_MultiChoiceDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - { - arg4 = PyList_Size(obj3); - arg5 = wxString_LIST_helper(obj3); - if (arg5 == NULL) SWIG_fail; - } - } - if (obj4) { - arg6 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - { - arg7 = &temp6; - if ( ! wxPoint_helper(obj5, &arg7)) SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMultiChoiceDialog *)new wxMultiChoiceDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,(wxPoint const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMultiChoiceDialog, 1); - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - { - if (arg5) delete [] arg5; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - { - if (arg5) delete [] arg5; - } - return NULL; -} - - -static PyObject *_wrap_MultiChoiceDialog_SetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMultiChoiceDialog *arg1 = (wxMultiChoiceDialog *) 0 ; - wxArrayInt *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "selections", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MultiChoiceDialog_SetSelections",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMultiChoiceDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - if (! PySequence_Check(obj1)) { - PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); - SWIG_fail; - } - arg2 = new wxArrayInt; - temp2 = True; - int i, len=PySequence_Length(obj1); - for (i=0; iAdd(PyInt_AS_LONG(number)); - Py_DECREF(item); - Py_DECREF(number); - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSelections((wxArrayInt const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) delete arg2; - } - return resultobj; - fail: - { - if (temp2) delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_MultiChoiceDialog_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMultiChoiceDialog *arg1 = (wxMultiChoiceDialog *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MultiChoiceDialog_GetSelections",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMultiChoiceDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxMultiChoiceDialog_GetSelections(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject * MultiChoiceDialog_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxMultiChoiceDialog, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_SingleChoiceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxString *arg2 = 0 ; - wxString *arg3 = 0 ; - int arg4 ; - wxString *arg5 = (wxString *) 0 ; - long arg6 = (long) wxCHOICEDLG_STYLE ; - wxPoint const &arg7_defvalue = wxDefaultPosition ; - wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; - wxSingleChoiceDialog *result; - bool temp2 = False ; - bool temp3 = False ; - wxPoint temp6 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "message",(char *) "caption",(char *) "choices",(char *) "style",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:new_SingleChoiceDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - arg4 = PyList_Size(obj3); - arg5 = wxString_LIST_helper(obj3); - if (arg5 == NULL) SWIG_fail; - } - if (obj4) { - arg6 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - { - arg7 = &temp6; - if ( ! wxPoint_helper(obj5, &arg7)) SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSingleChoiceDialog *)new_wxSingleChoiceDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,(wxPoint const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleChoiceDialog, 1); - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - { - if (arg5) delete [] arg5; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - { - if (arg5) delete [] arg5; - } - return NULL; -} - - -static PyObject *_wrap_SingleChoiceDialog_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleChoiceDialog_GetSelection",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleChoiceDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetSelection(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SingleChoiceDialog_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleChoiceDialog_GetStringSelection",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleChoiceDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetStringSelection(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SingleChoiceDialog_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sel", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SingleChoiceDialog_SetSelection",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleChoiceDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSelection(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * SingleChoiceDialog_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxSingleChoiceDialog, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_TextEntryDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxString *arg2 = 0 ; - wxString const &arg3_defvalue = wxPyGetTextFromUserPromptStr ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - wxString const &arg4_defvalue = wxPyEmptyString ; - wxString *arg4 = (wxString *) &arg4_defvalue ; - long arg5 = (long) wxOK|wxCANCEL|wxCENTRE ; - wxPoint const &arg6_defvalue = wxDefaultPosition ; - wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; - wxTextEntryDialog *result; - bool temp2 = False ; - bool temp3 = False ; - bool temp4 = False ; - wxPoint temp6 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "message",(char *) "caption",(char *) "defaultValue",(char *) "style",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_TextEntryDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - if (obj3) { - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - { - arg6 = &temp6; - if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxTextEntryDialog *)new wxTextEntryDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,(wxPoint const &)*arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextEntryDialog, 1); - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_TextEntryDialog_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextEntryDialog *arg1 = (wxTextEntryDialog *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextEntryDialog_GetValue",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextEntryDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetValue(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextEntryDialog_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextEntryDialog *arg1 = (wxTextEntryDialog *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "value", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextEntryDialog_SetValue",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextEntryDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetValue((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject * TextEntryDialog_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxTextEntryDialog, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_FontData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontData *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontData",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFontData *)new wxFontData(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontData, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_FontData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontData *arg1 = (wxFontData *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontData_EnableEffects(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontData *arg1 = (wxFontData *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "enable", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_EnableEffects",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->EnableEffects(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontData_GetAllowSymbols(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontData *arg1 = (wxFontData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetAllowSymbols",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetAllowSymbols(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontData_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontData *arg1 = (wxFontData *) 0 ; - wxColour result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetColour",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetColour(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontData_GetChosenFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontData *arg1 = (wxFontData *) 0 ; - wxFont result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetChosenFont",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetChosenFont(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxFont * resultptr; - resultptr = new wxFont((wxFont &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontData_GetEnableEffects(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontData *arg1 = (wxFontData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetEnableEffects",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetEnableEffects(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontData_GetInitialFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontData *arg1 = (wxFontData *) 0 ; - wxFont result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetInitialFont",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetInitialFont(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxFont * resultptr; - resultptr = new wxFont((wxFont &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontData_GetShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontData *arg1 = (wxFontData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetShowHelp",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetShowHelp(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontData_SetAllowSymbols(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontData *arg1 = (wxFontData *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "allowSymbols", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetAllowSymbols",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetAllowSymbols(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontData_SetChosenFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontData *arg1 = (wxFontData *) 0 ; - wxFont *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "font", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetChosenFont",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetChosenFont((wxFont const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontData_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontData *arg1 = (wxFontData *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colour", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetColour((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontData_SetInitialFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontData *arg1 = (wxFontData *) 0 ; - wxFont *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "font", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetInitialFont",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetInitialFont((wxFont const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontData_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontData *arg1 = (wxFontData *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "min",(char *) "max", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FontData_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetRange(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontData_SetShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontData *arg1 = (wxFontData *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "showHelp", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetShowHelp",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetShowHelp(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * FontData_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxFontData, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_FontDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxFontData *arg2 = 0 ; - wxFontDialog *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_FontDialog",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFontData, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFontDialog *)new wxFontDialog(arg1,(wxFontData const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontDialog, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontDialog_GetFontData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontDialog *arg1 = (wxFontDialog *) 0 ; - wxFontData *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontDialog_GetFontData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxFontData &_result_ref = (arg1)->GetFontData(); - result = (wxFontData *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontData, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject * FontDialog_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxFontDialog, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_MessageDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxString *arg2 = 0 ; - wxString const &arg3_defvalue = wxPyMessageBoxCaptionStr ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - long arg4 = (long) wxOK|wxCANCEL|wxCENTRE ; - wxPoint const &arg5_defvalue = wxDefaultPosition ; - wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; - wxMessageDialog *result; - bool temp2 = False ; - bool temp3 = False ; - wxPoint temp5 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "message",(char *) "caption",(char *) "style",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_MessageDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - if (obj3) { - arg4 = (long) SWIG_AsLong(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMessageDialog *)new wxMessageDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,(wxPoint const &)*arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMessageDialog, 1); - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject * MessageDialog_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxMessageDialog, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ProgressDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString *arg2 = 0 ; - int arg3 = (int) 100 ; - wxWindow *arg4 = (wxWindow *) NULL ; - int arg5 = (int) wxPD_AUTO_HIDE|wxPD_APP_MODAL ; - wxProgressDialog *result; - bool temp1 = False ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "title",(char *) "message",(char *) "maximum",(char *) "parent",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_ProgressDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxProgressDialog *)new wxProgressDialog((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProgressDialog, 1); - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ProgressDialog_Update(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxProgressDialog *arg1 = (wxProgressDialog *) 0 ; - int arg2 ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - bool result; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "value",(char *) "newmsg", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ProgressDialog_Update",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProgressDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Update(arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_ProgressDialog_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxProgressDialog *arg1 = (wxProgressDialog *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProgressDialog_Resume",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProgressDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Resume(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * ProgressDialog_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxProgressDialog, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_FindDialogEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEventType arg1 = (wxEventType) wxEVT_NULL ; - int arg2 = (int) 0 ; - wxFindDialogEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "commandType",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FindDialogEvent",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (wxEventType) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFindDialogEvent *)new wxFindDialogEvent(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindDialogEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FindDialogEvent_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindDialogEvent_GetFlags",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetFlags(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FindDialogEvent_GetFindString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindDialogEvent_GetFindString",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = (arg1)->GetFindString(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FindDialogEvent_GetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindDialogEvent_GetReplaceString",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = (arg1)->GetReplaceString(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FindDialogEvent_GetDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; - wxFindReplaceDialog *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindDialogEvent_GetDialog",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFindReplaceDialog *)(arg1)->GetDialog(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceDialog, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FindDialogEvent_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFlags(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FindDialogEvent_SetFindString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "str", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetFindString",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFindString((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_FindDialogEvent_SetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "str", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetReplaceString",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetReplaceString((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject * FindDialogEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxFindDialogEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_FindReplaceData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - wxFindReplaceData *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FindReplaceData",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFindReplaceData *)new wxFindReplaceData(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceData, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_FindReplaceData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FindReplaceData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FindReplaceData_GetFindString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindReplaceData_GetFindString",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = (arg1)->GetFindString(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FindReplaceData_GetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindReplaceData_GetReplaceString",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = (arg1)->GetReplaceString(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FindReplaceData_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindReplaceData_GetFlags",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetFlags(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FindReplaceData_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetFlags",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFlags(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FindReplaceData_SetFindString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "str", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetFindString",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFindString((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_FindReplaceData_SetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "str", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetReplaceString",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetReplaceString((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject * FindReplaceData_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxFindReplaceData, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_FindReplaceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxFindReplaceData *arg2 = (wxFindReplaceData *) 0 ; - wxString *arg3 = 0 ; - int arg4 = (int) 0 ; - wxFindReplaceDialog *result; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "data",(char *) "title",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_FindReplaceDialog",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFindReplaceData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFindReplaceDialog *)new wxFindReplaceDialog(arg1,arg2,(wxString const &)*arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceDialog, 1); - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_new_PreFindReplaceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFindReplaceDialog *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreFindReplaceDialog",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFindReplaceDialog *)new wxFindReplaceDialog(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceDialog, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FindReplaceDialog_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - wxFindReplaceData *arg3 = (wxFindReplaceData *) 0 ; - wxString *arg4 = 0 ; - int arg5 = (int) 0 ; - bool result; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "data",(char *) "title",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:FindReplaceDialog_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFindReplaceData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_FindReplaceDialog_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; - wxFindReplaceData *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindReplaceDialog_GetData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFindReplaceData *)(arg1)->GetData(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceData, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FindReplaceDialog_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; - wxFindReplaceData *arg2 = (wxFindReplaceData *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceDialog_SetData",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFindReplaceData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetData(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * FindReplaceDialog_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxFindReplaceDialog, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_MDIParentFrame(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL ; - wxString const &arg7_defvalue = wxPyFrameNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - wxMDIParentFrame *result; - bool temp3 = False ; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_MDIParentFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int const) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMDIParentFrame *)new wxMDIParentFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMDIParentFrame, 1); - { - if (temp3) - delete arg3; - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_new_PreMDIParentFrame(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMDIParentFrame *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMDIParentFrame",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMDIParentFrame *)new wxMDIParentFrame(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMDIParentFrame, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MDIParentFrame_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - wxString *arg4 = 0 ; - wxPoint const &arg5_defvalue = wxDefaultPosition ; - wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; - wxSize const &arg6_defvalue = wxDefaultSize ; - wxSize *arg6 = (wxSize *) &arg6_defvalue ; - long arg7 = (long) wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL ; - wxString const &arg8_defvalue = wxPyFrameNameStr ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - bool result; - bool temp4 = False ; - wxPoint temp5 ; - wxSize temp6 ; - bool temp8 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:MDIParentFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int const) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - { - arg6 = &temp6; - if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; - } - } - if (obj6) { - arg7 = (long) SWIG_AsLong(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp4) - delete arg4; - } - { - if (temp8) - delete arg8; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - { - if (temp8) - delete arg8; - } - return NULL; -} - - -static PyObject *_wrap_MDIParentFrame_ActivateNext(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_ActivateNext",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ActivateNext(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MDIParentFrame_ActivatePrevious(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_ActivatePrevious",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ActivatePrevious(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MDIParentFrame_ArrangeIcons(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_ArrangeIcons",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ArrangeIcons(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MDIParentFrame_Cascade(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_Cascade",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Cascade(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MDIParentFrame_GetActiveChild(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; - wxMDIChildFrame *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_GetActiveChild",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMDIChildFrame *)(arg1)->GetActiveChild(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MDIParentFrame_GetClientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; - wxMDIClientWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_GetClientWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMDIClientWindow *)(arg1)->GetClientWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MDIParentFrame_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_GetToolBar",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)(arg1)->GetToolBar(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MDIParentFrame_Tile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_Tile",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Tile(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * MDIParentFrame_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxMDIParentFrame, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_MDIChildFrame(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxDEFAULT_FRAME_STYLE ; - wxString const &arg7_defvalue = wxPyFrameNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - wxMDIChildFrame *result; - bool temp3 = False ; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_MDIChildFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int const) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMDIChildFrame *)new wxMDIChildFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp3) - delete arg3; - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_new_PreMDIChildFrame(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMDIChildFrame *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMDIChildFrame",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMDIChildFrame *)new wxMDIChildFrame(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MDIChildFrame_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; - wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; - int arg3 ; - wxString *arg4 = 0 ; - wxPoint const &arg5_defvalue = wxDefaultPosition ; - wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; - wxSize const &arg6_defvalue = wxDefaultSize ; - wxSize *arg6 = (wxSize *) &arg6_defvalue ; - long arg7 = (long) wxDEFAULT_FRAME_STYLE ; - wxString const &arg8_defvalue = wxPyFrameNameStr ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - bool result; - bool temp4 = False ; - wxPoint temp5 ; - wxSize temp6 ; - bool temp8 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:MDIChildFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIChildFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMDIParentFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int const) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - { - arg6 = &temp6; - if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; - } - } - if (obj6) { - arg7 = (long) SWIG_AsLong(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp4) - delete arg4; - } - { - if (temp8) - delete arg8; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - { - if (temp8) - delete arg8; - } - return NULL; -} - - -static PyObject *_wrap_MDIChildFrame_Activate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIChildFrame_Activate",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIChildFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Activate(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MDIChildFrame_Maximize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "maximize", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MDIChildFrame_Maximize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIChildFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Maximize(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MDIChildFrame_Restore(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIChildFrame_Restore",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIChildFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Restore(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * MDIChildFrame_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxMDIChildFrame, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_MDIClientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; - long arg2 = (long) 0 ; - wxMDIClientWindow *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_MDIClientWindow",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMDIClientWindow *)new wxMDIClientWindow(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_PreMDIClientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMDIClientWindow *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMDIClientWindow",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMDIClientWindow *)new wxMDIClientWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MDIClientWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMDIClientWindow *arg1 = (wxMDIClientWindow *) 0 ; - wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; - long arg3 = (long) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MDIClientWindow_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIClientWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMDIParentFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * MDIClientWindow_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxMDIClientWindow, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PyWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) 0 ; - wxString const &arg6_defvalue = wxPyPanelNameStr ; - wxString *arg6 = (wxString *) &arg6_defvalue ; - wxPyWindow *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp6 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PyWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int const) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - { - arg6 = wxString_in_helper(obj5); - if (arg6 == NULL) SWIG_fail; - temp6 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyWindow *)new wxPyWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyWindow, 1); - { - if (temp6) - delete arg6; - } - return resultobj; - fail: - { - if (temp6) - delete arg6; - } - return NULL; -} - - -static PyObject *_wrap_new_PrePyWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyWindow *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyWindow",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyWindow *)new wxPyWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyWindow, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyWindow__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyWindow *arg1 = (wxPyWindow *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyWindow_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyWindow *arg1 = (wxPyWindow *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyWindow_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyWindow_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyWindow *arg1 = (wxPyWindow *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 = (int) wxSIZE_AUTO ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyWindow_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - if (obj5) { - arg6 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyWindow_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyWindow *arg1 = (wxPyWindow *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_DoSetClientSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyWindow_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyWindow *arg1 = (wxPyWindow *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_DoSetVirtualSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyWindow_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyWindow *arg1 = (wxPyWindow *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxPyWindow const *)arg1)->base_DoGetSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyWindow_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyWindow *arg1 = (wxPyWindow *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetClientSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxPyWindow const *)arg1)->base_DoGetClientSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyWindow_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyWindow *arg1 = (wxPyWindow *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxPyWindow const *)arg1)->base_DoGetPosition(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyWindow_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyWindow *arg1 = (wxPyWindow *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyWindow const *)arg1)->base_DoGetVirtualSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyWindow_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyWindow *arg1 = (wxPyWindow *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetBestSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyWindow const *)arg1)->base_DoGetBestSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyWindow_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyWindow *arg1 = (wxPyWindow *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_InitDialog",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_InitDialog(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyWindow_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyWindow *arg1 = (wxPyWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_TransferDataToWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_TransferDataToWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyWindow_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyWindow *arg1 = (wxPyWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_TransferDataFromWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyWindow_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyWindow *arg1 = (wxPyWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_Validate",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_Validate(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyWindow_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyWindow *arg1 = (wxPyWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_AcceptsFocus",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyWindow const *)arg1)->base_AcceptsFocus(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyWindow_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyWindow *arg1 = (wxPyWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyWindow const *)arg1)->base_AcceptsFocusFromKeyboard(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyWindow_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyWindow *arg1 = (wxPyWindow *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_GetMaxSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyWindow const *)arg1)->base_GetMaxSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyWindow_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyWindow *arg1 = (wxPyWindow *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "child", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_base_AddChild",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_AddChild(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyWindow_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyWindow *arg1 = (wxPyWindow *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "child", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_RemoveChild(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyWindow_base_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyWindow *arg1 = (wxPyWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_ShouldInheritColours",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_ShouldInheritColours(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyWindow_base_ApplyParentThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyWindow *arg1 = (wxPyWindow *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "c", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * PyWindow_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyWindow, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PyPanel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) 0 ; - wxString const &arg6_defvalue = wxPyPanelNameStr ; - wxString *arg6 = (wxString *) &arg6_defvalue ; - wxPyPanel *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp6 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PyPanel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int const) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - { - arg6 = wxString_in_helper(obj5); - if (arg6 == NULL) SWIG_fail; - temp6 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyPanel *)new wxPyPanel(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPanel, 1); - { - if (temp6) - delete arg6; - } - return resultobj; - fail: - { - if (temp6) - delete arg6; - } - return NULL; -} - - -static PyObject *_wrap_new_PrePyPanel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPanel *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyPanel",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyPanel *)new wxPyPanel(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPanel, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPanel__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPanel *arg1 = (wxPyPanel *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPanel_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPanel *arg1 = (wxPyPanel *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyPanel_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPanel_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPanel *arg1 = (wxPyPanel *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 = (int) wxSIZE_AUTO ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyPanel_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - if (obj5) { - arg6 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPanel_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPanel *arg1 = (wxPyPanel *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_DoSetClientSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPanel_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPanel *arg1 = (wxPyPanel *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_DoSetVirtualSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPanel_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPanel *arg1 = (wxPyPanel *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxPyPanel const *)arg1)->base_DoGetSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPanel_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPanel *arg1 = (wxPyPanel *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetClientSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxPyPanel const *)arg1)->base_DoGetClientSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPanel_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPanel *arg1 = (wxPyPanel *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxPyPanel const *)arg1)->base_DoGetPosition(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPanel_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPanel *arg1 = (wxPyPanel *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyPanel const *)arg1)->base_DoGetVirtualSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPanel_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPanel *arg1 = (wxPyPanel *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetBestSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyPanel const *)arg1)->base_DoGetBestSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPanel_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPanel *arg1 = (wxPyPanel *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_InitDialog",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_InitDialog(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPanel_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPanel *arg1 = (wxPyPanel *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_TransferDataToWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_TransferDataToWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPanel_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPanel *arg1 = (wxPyPanel *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_TransferDataFromWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPanel_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPanel *arg1 = (wxPyPanel *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_Validate",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_Validate(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPanel_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPanel *arg1 = (wxPyPanel *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_AcceptsFocus",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyPanel const *)arg1)->base_AcceptsFocus(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPanel_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPanel *arg1 = (wxPyPanel *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyPanel const *)arg1)->base_AcceptsFocusFromKeyboard(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPanel_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPanel *arg1 = (wxPyPanel *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_GetMaxSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyPanel const *)arg1)->base_GetMaxSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPanel_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPanel *arg1 = (wxPyPanel *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "child", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_base_AddChild",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_AddChild(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPanel_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPanel *arg1 = (wxPyPanel *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "child", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_RemoveChild(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPanel_base_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPanel *arg1 = (wxPyPanel *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_ShouldInheritColours",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_ShouldInheritColours(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPanel_base_ApplyParentThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPanel *arg1 = (wxPyPanel *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "c", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * PyPanel_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyPanel, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PyScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) 0 ; - wxString const &arg6_defvalue = wxPyPanelNameStr ; - wxString *arg6 = (wxString *) &arg6_defvalue ; - wxPyScrolledWindow *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp6 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PyScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int const) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - { - arg6 = wxString_in_helper(obj5); - if (arg6 == NULL) SWIG_fail; - temp6 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyScrolledWindow *)new wxPyScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyScrolledWindow, 1); - { - if (temp6) - delete arg6; - } - return resultobj; - fail: - { - if (temp6) - delete arg6; - } - return NULL; -} - - -static PyObject *_wrap_new_PrePyScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyScrolledWindow *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyScrolledWindow",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyScrolledWindow *)new wxPyScrolledWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyScrolledWindow, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyScrolledWindow__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyScrolledWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyScrolledWindow_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyScrolledWindow_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyScrolledWindow_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 = (int) wxSIZE_AUTO ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyScrolledWindow_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - if (obj5) { - arg6 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyScrolledWindow_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyScrolledWindow_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_DoSetClientSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyScrolledWindow_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyScrolledWindow_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_DoSetVirtualSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyScrolledWindow_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_DoGetSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxPyScrolledWindow const *)arg1)->base_DoGetSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyScrolledWindow_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_DoGetClientSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxPyScrolledWindow const *)arg1)->base_DoGetClientSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyScrolledWindow_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_DoGetPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxPyScrolledWindow const *)arg1)->base_DoGetPosition(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyScrolledWindow_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyScrolledWindow const *)arg1)->base_DoGetVirtualSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyScrolledWindow_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_DoGetBestSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyScrolledWindow const *)arg1)->base_DoGetBestSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyScrolledWindow_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_InitDialog",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_InitDialog(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyScrolledWindow_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_TransferDataToWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_TransferDataToWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyScrolledWindow_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_TransferDataFromWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyScrolledWindow_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_Validate",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_Validate(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyScrolledWindow_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_AcceptsFocus",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyScrolledWindow const *)arg1)->base_AcceptsFocus(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyScrolledWindow_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyScrolledWindow const *)arg1)->base_AcceptsFocusFromKeyboard(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyScrolledWindow_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_GetMaxSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyScrolledWindow const *)arg1)->base_GetMaxSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyScrolledWindow_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "child", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyScrolledWindow_base_AddChild",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_AddChild(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyScrolledWindow_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "child", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyScrolledWindow_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_RemoveChild(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyScrolledWindow_base_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_ShouldInheritColours",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_ShouldInheritColours(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyScrolledWindow_base_ApplyParentThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "c", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyScrolledWindow_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * PyScrolledWindow_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyScrolledWindow, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_PrintoutTitleStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable PrintoutTitleStr is read-only."); - return 1; -} - - -static PyObject *_wrap_PrintoutTitleStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyPrintoutTitleStr)->c_str(), (&wxPyPrintoutTitleStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyPrintoutTitleStr)->c_str(), (&wxPyPrintoutTitleStr)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_PreviewCanvasNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable PreviewCanvasNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_PreviewCanvasNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyPreviewCanvasNameStr)->c_str(), (&wxPyPreviewCanvasNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyPreviewCanvasNameStr)->c_str(), (&wxPyPreviewCanvasNameStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_PrintData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrintData",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPrintData *)new wxPrintData(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_PrintData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PrintData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_GetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetNoCopies",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetNoCopies(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_GetCollate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetCollate",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetCollate(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetOrientation",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetOrientation(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_Ok",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Ok(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_GetPrinterName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterName",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = (arg1)->GetPrinterName(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetColour",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetColour(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_GetDuplex(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetDuplex",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetDuplex(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_GetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPaperId",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetPaperId(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_GetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - wxSize *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPaperSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxSize const &_result_ref = (arg1)->GetPaperSize(); - result = (wxSize *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetQuality",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetQuality(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_SetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "v", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetNoCopies",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetNoCopies(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_SetCollate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetCollate",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetCollate(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "orient", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetOrientation",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetOrientation(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_SetPrinterName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterName",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPrinterName((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_PrintData_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colour", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetColour(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_SetDuplex(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "duplex", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetDuplex",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxDuplexMode) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDuplex((wxDuplexMode )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_SetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sizeId", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPaperId",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxPaperSize) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPaperId((wxPaperSize )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_SetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - wxSize *arg2 = 0 ; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPaperSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPaperSize((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "quality", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetQuality",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetQuality(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_GetPrinterCommand(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterCommand",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = (arg1)->GetPrinterCommand(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_GetPrinterOptions(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterOptions",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = (arg1)->GetPrinterOptions(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_GetPreviewCommand(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPreviewCommand",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = (arg1)->GetPreviewCommand(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_GetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetFilename",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = (arg1)->GetFilename(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_GetFontMetricPath(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetFontMetricPath",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = (arg1)->GetFontMetricPath(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_GetPrinterScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - double result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterScaleX",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (double)(arg1)->GetPrinterScaleX(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromDouble((double)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_GetPrinterScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - double result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterScaleY",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (double)(arg1)->GetPrinterScaleY(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromDouble((double)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_GetPrinterTranslateX(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterTranslateX",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->GetPrinterTranslateX(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_GetPrinterTranslateY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterTranslateY",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->GetPrinterTranslateY(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_GetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrintMode",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetPrintMode(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_SetPrinterCommand(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "command", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterCommand",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPrinterCommand((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_PrintData_SetPrinterOptions(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "options", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterOptions",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPrinterOptions((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_PrintData_SetPreviewCommand(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "command", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPreviewCommand",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPreviewCommand((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_PrintData_SetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "filename", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetFilename",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFilename((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_PrintData_SetFontMetricPath(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "path", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetFontMetricPath",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFontMetricPath((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_PrintData_SetPrinterScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - double arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterScaleX",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (double) SWIG_AsDouble(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPrinterScaleX(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_SetPrinterScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - double arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterScaleY",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (double) SWIG_AsDouble(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPrinterScaleY(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_SetPrinterScaling(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - double arg2 ; - double arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintData_SetPrinterScaling",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (double) SWIG_AsDouble(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (double) SWIG_AsDouble(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPrinterScaling(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_SetPrinterTranslateX(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterTranslateX",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPrinterTranslateX(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_SetPrinterTranslateY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterTranslateY",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPrinterTranslateY(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_SetPrinterTranslation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - long arg2 ; - long arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintData_SetPrinterTranslation",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPrinterTranslation(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_SetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "printMode", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrintMode",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxPrintMode) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPrintMode((wxPrintMode )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - wxOutputStream *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetOutputStream",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxOutputStream *)(arg1)->GetOutputStream(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_SetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - wxOutputStream *arg2 = (wxOutputStream *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "outputstream", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetOutputStream",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxOutputStream, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetOutputStream(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * PrintData_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPrintData, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PageSetupDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PageSetupDialogData",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPageSetupDialogData *)new wxPageSetupDialogData(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPageSetupDialogData, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_PageSetupDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PageSetupDialogData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_EnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableHelp",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->EnableHelp(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_EnableMargins(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableMargins",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->EnableMargins(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_EnableOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableOrientation",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->EnableOrientation(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_EnablePaper(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnablePaper",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->EnablePaper(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_EnablePrinter(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnablePrinter",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->EnablePrinter(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_GetDefaultMinMargins(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetDefaultMinMargins",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetDefaultMinMargins(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_GetEnableMargins(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnableMargins",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetEnableMargins(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_GetEnableOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnableOrientation",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetEnableOrientation(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_GetEnablePaper(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnablePaper",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetEnablePaper(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_GetEnablePrinter(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnablePrinter",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetEnablePrinter(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_GetEnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnableHelp",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetEnableHelp(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_GetDefaultInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetDefaultInfo",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetDefaultInfo(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_GetMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetMarginTopLeft",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetMarginTopLeft(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_GetMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetMarginBottomRight",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetMarginBottomRight(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_GetMinMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetMinMarginTopLeft",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetMinMarginTopLeft(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_GetMinMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetMinMarginBottomRight",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetMinMarginBottomRight(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_GetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetPaperId",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetPaperId(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_GetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetPaperSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetPaperSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - wxPrintData *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetPrintData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxPrintData &_result_ref = (arg1)->GetPrintData(); - result = (wxPrintData *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_Ok",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Ok(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_SetDefaultInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetDefaultInfo",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDefaultInfo(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_SetDefaultMinMargins(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetDefaultMinMargins",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDefaultMinMargins(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_SetMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMarginTopLeft",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMarginTopLeft((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_SetMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMarginBottomRight",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMarginBottomRight((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_SetMinMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMinMarginTopLeft",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMinMarginTopLeft((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_SetMinMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMinMarginBottomRight",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMinMarginBottomRight((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_SetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPaperId",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxPaperSize) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPaperId((wxPaperSize )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_SetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - wxSize *arg2 = 0 ; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPaperSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPaperSize((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - wxPrintData *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "printData", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPrintData",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPrintData((wxPrintData const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * PageSetupDialogData_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPageSetupDialogData, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PageSetupDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxPageSetupDialogData *arg2 = (wxPageSetupDialogData *) NULL ; - wxPageSetupDialog *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PageSetupDialog",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPageSetupDialog *)new wxPageSetupDialog(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPageSetupDialog, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialog_GetPageSetupData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 0 ; - wxPageSetupDialogData *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialog_GetPageSetupData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxPageSetupDialogData &_result_ref = (arg1)->GetPageSetupData(); - result = (wxPageSetupDialogData *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPageSetupDialogData, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialog_ShowModal",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->ShowModal(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * PageSetupDialog_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPageSetupDialog, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PrintDialogData__SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxPrintDialogData *result; - - if(!PyArg_ParseTuple(args,(char *)":new_PrintDialogData")) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPrintDialogData *)new wxPrintDialogData(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_PrintDialogData__SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxPrintData *arg1 = 0 ; - wxPrintDialogData *result; - PyObject * obj0 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"O:new_PrintDialogData",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPrintDialogData *)new wxPrintDialogData((wxPrintData const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_PrintDialogData(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[2]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 1); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if (argc == 0) { - return _wrap_new_PrintDialogData__SWIG_0(self,args); - } - if (argc == 1) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPrintData, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_new_PrintDialogData__SWIG_1(self,args); - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_PrintDialogData'"); - return NULL; -} - - -static PyObject *_wrap_delete_PrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PrintDialogData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_GetFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetFromPage",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxPrintDialogData const *)arg1)->GetFromPage(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_GetToPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetToPage",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxPrintDialogData const *)arg1)->GetToPage(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_GetMinPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetMinPage",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxPrintDialogData const *)arg1)->GetMinPage(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_GetMaxPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetMaxPage",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxPrintDialogData const *)arg1)->GetMaxPage(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_GetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetNoCopies",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxPrintDialogData const *)arg1)->GetNoCopies(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_GetAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetAllPages",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPrintDialogData const *)arg1)->GetAllPages(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetSelection",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPrintDialogData const *)arg1)->GetSelection(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_GetCollate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetCollate",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPrintDialogData const *)arg1)->GetCollate(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_GetPrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetPrintToFile",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPrintDialogData const *)arg1)->GetPrintToFile(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_GetSetupDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetSetupDialog",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPrintDialogData const *)arg1)->GetSetupDialog(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_SetFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "v", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetFromPage",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFromPage(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_SetToPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "v", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetToPage",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetToPage(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_SetMinPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "v", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetMinPage",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMinPage(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_SetMaxPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "v", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetMaxPage",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMaxPage(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_SetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "v", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetNoCopies",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetNoCopies(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_SetAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetAllPages",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetAllPages(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetSelection",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSelection(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_SetCollate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetCollate",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetCollate(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_SetPrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetPrintToFile",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPrintToFile(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_SetSetupDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetSetupDialog",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSetupDialog(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_EnablePrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnablePrintToFile",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->EnablePrintToFile(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_EnableSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnableSelection",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->EnableSelection(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_EnablePageNumbers(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnablePageNumbers",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->EnablePageNumbers(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_EnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnableHelp",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->EnableHelp(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_GetEnablePrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetEnablePrintToFile",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPrintDialogData const *)arg1)->GetEnablePrintToFile(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_GetEnableSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetEnableSelection",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPrintDialogData const *)arg1)->GetEnableSelection(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_GetEnablePageNumbers(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetEnablePageNumbers",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPrintDialogData const *)arg1)->GetEnablePageNumbers(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_GetEnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetEnableHelp",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPrintDialogData const *)arg1)->GetEnableHelp(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_Ok",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPrintDialogData const *)arg1)->Ok(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - wxPrintData *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetPrintData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxPrintData &_result_ref = (arg1)->GetPrintData(); - result = (wxPrintData *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - wxPrintData *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "printData", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetPrintData",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPrintData((wxPrintData const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * PrintDialogData_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPrintDialogData, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PrintDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxPrintDialogData *arg2 = (wxPrintDialogData *) NULL ; - wxPrintDialog *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PrintDialog",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPrintDialog *)new wxPrintDialog(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialog, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialog_GetPrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; - wxPrintDialogData *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialog_GetPrintDialogData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); - result = (wxPrintDialogData *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialog_GetPrintDC(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; - wxDC *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialog_GetPrintDC",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxDC *)(arg1)->GetPrintDC(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialog_ShowModal",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->ShowModal(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * PrintDialog_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPrintDialog, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Printer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) NULL ; - wxPrinter *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Printer",kwnames,&obj0)) goto fail; - if (obj0) { - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPrinter *)new wxPrinter(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinter, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_Printer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrinter *arg1 = (wxPrinter *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Printer",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printer_CreateAbortWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrinter *arg1 = (wxPrinter *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "printout", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printer_CreateAbortWindow",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->CreateAbortWindow(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printer_GetPrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrinter *arg1 = (wxPrinter *) 0 ; - wxPrintDialogData *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printer_GetPrintDialogData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); - result = (wxPrintDialogData *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printer_Print(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrinter *arg1 = (wxPrinter *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; - int arg4 = (int) True ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "printout",(char *) "prompt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Printer_Print",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Print(arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printer_PrintDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrinter *arg1 = (wxPrinter *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - wxDC *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printer_PrintDialog",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxDC *)(arg1)->PrintDialog(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printer_ReportError(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrinter *arg1 = (wxPrinter *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; - wxString *arg4 = 0 ; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "printout",(char *) "message", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Printer_ReportError",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ReportError(arg2,arg3,(wxString const &)*arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_Printer_Setup(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrinter *arg1 = (wxPrinter *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printer_Setup",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Setup(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printer_GetAbort(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrinter *arg1 = (wxPrinter *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printer_GetAbort",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetAbort(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printer_GetLastError(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Printer_GetLastError",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxPrinter::GetLastError(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * Printer_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPrinter, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Printout(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString const &arg1_defvalue = wxPyPrintoutTitleStr ; - wxString *arg1 = (wxString *) &arg1_defvalue ; - wxPyPrintout *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "title", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Printout",kwnames,&obj0)) goto fail; - if (obj0) { - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyPrintout *)new wxPyPrintout((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_Printout__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printout_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetTitle",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyPrintout const *)arg1)->GetTitle(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printout_GetDC(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - wxDC *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetDC",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxDC *)(arg1)->GetDC(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printout_SetDC(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - wxDC *arg2 = (wxDC *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "dc", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_SetDC",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDC(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printout_SetPageSizePixels(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "w",(char *) "h", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPageSizePixels",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPageSizePixels(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printout_GetPageSizePixels(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetPageSizePixels",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->GetPageSizePixels(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printout_SetPageSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "w",(char *) "h", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPageSizeMM",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPageSizeMM(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printout_GetPageSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetPageSizeMM",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->GetPageSizeMM(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printout_SetPPIScreen(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPPIScreen",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPPIScreen(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printout_GetPPIScreen(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetPPIScreen",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->GetPPIScreen(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printout_SetPPIPrinter(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPPIPrinter",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPPIPrinter(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printout_GetPPIPrinter(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetPPIPrinter",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->GetPPIPrinter(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printout_IsPreview(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_IsPreview",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->IsPreview(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printout_SetIsPreview(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "p", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_SetIsPreview",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetIsPreview(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printout_base_OnBeginDocument(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - int arg2 ; - int arg3 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "startPage",(char *) "endPage", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_base_OnBeginDocument",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_OnBeginDocument(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printout_base_OnEndDocument(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_OnEndDocument",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_OnEndDocument(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printout_base_OnBeginPrinting(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_OnBeginPrinting",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_OnBeginPrinting(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printout_base_OnEndPrinting(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_OnEndPrinting",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_OnEndPrinting(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printout_base_OnPreparePrinting(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_OnPreparePrinting",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_OnPreparePrinting(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printout_base_HasPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "page", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_base_HasPage",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_HasPage(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printout_base_GetPageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int *arg4 = (int *) 0 ; - int *arg5 = (int *) 0 ; - int temp2 ; - int temp3 ; - int temp4 ; - int temp5 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - arg4 = &temp4; - arg5 = &temp5; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_GetPageInfo",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_GetPageInfo(arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg4)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg5)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * Printout_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyPrintout, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PreviewCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) 0 ; - wxString const &arg6_defvalue = wxPyPreviewCanvasNameStr ; - wxString *arg6 = (wxString *) &arg6_defvalue ; - wxPreviewCanvas *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp6 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "preview",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PreviewCanvas",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - { - arg6 = wxString_in_helper(obj5); - if (arg6 == NULL) SWIG_fail; - temp6 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPreviewCanvas *)new wxPreviewCanvas(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewCanvas, 1); - { - if (temp6) - delete arg6; - } - return resultobj; - fail: - { - if (temp6) - delete arg6; - } - return NULL; -} - - -static PyObject * PreviewCanvas_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPreviewCanvas, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PreviewFrame(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - wxFrame *arg2 = (wxFrame *) 0 ; - wxString *arg3 = 0 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxDEFAULT_FRAME_STYLE ; - wxString const &arg7_defvalue = wxPyFrameNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - wxPreviewFrame *result; - bool temp3 = False ; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "preview",(char *) "parent",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PreviewFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPreviewFrame *)new wxPreviewFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewFrame, 1); - { - if (temp3) - delete arg3; - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_PreviewFrame_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewFrame_Initialize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Initialize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PreviewFrame_CreateControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewFrame_CreateControlBar",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->CreateControlBar(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PreviewFrame_CreateCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewFrame_CreateCanvas",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->CreateCanvas(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PreviewFrame_GetControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; - wxPreviewControlBar *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewFrame_GetControlBar",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPreviewControlBar *)((wxPreviewFrame const *)arg1)->GetControlBar(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewControlBar, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject * PreviewFrame_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPreviewFrame, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PreviewControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - long arg2 ; - wxWindow *arg3 = (wxWindow *) 0 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxTAB_TRAVERSAL ; - wxString const &arg7_defvalue = wxPyPanelNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - wxPreviewControlBar *result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "preview",(char *) "buttons",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PreviewControlBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPreviewControlBar *)new wxPreviewControlBar(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewControlBar, 1); - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_PreviewControlBar_GetZoomControl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_GetZoomControl",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetZoomControl(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PreviewControlBar_SetZoomControl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "zoom", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PreviewControlBar_SetZoomControl",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetZoomControl(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PreviewControlBar_GetPrintPreview(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; - wxPrintPreview *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_GetPrintPreview",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPrintPreview *)(arg1)->GetPrintPreview(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintPreview, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PreviewControlBar_OnNext(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnNext",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->OnNext(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PreviewControlBar_OnPrevious(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnPrevious",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->OnPrevious(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PreviewControlBar_OnFirst(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnFirst",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->OnFirst(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PreviewControlBar_OnLast(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnLast",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->OnLast(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PreviewControlBar_OnGoto(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnGoto",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->OnGoto(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * PreviewControlBar_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPreviewControlBar, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PrintPreview__SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; - wxPrintDialogData *arg3 = (wxPrintDialogData *) NULL ; - wxPrintPreview *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO|O:new_PrintPreview",&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPrintPreview *)new wxPrintPreview(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintPreview, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_PrintPreview__SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; - wxPrintData *arg3 = (wxPrintData *) 0 ; - wxPrintPreview *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OOO:new_PrintPreview",&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPrintPreview *)new wxPrintPreview(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintPreview, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_PrintPreview(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if ((argc >= 2) && (argc <= 3)) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - if (argc <= 2) { - return _wrap_new_PrintPreview__SWIG_0(self,args); - } - { - void *ptr; - if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxPrintDialogData, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_new_PrintPreview__SWIG_0(self,args); - } - } - } - } - if (argc == 3) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxPrintData, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_new_PrintPreview__SWIG_1(self,args); - } - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_PrintPreview'"); - return NULL; -} - - -static PyObject *_wrap_PrintPreview_SetCurrentPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pageNum", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetCurrentPage",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetCurrentPage(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintPreview_GetCurrentPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetCurrentPage",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetCurrentPage(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintPreview_SetPrintout(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "printout", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetPrintout",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPrintout(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintPreview_GetPrintout(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - wxPyPrintout *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetPrintout",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyPrintout *)(arg1)->GetPrintout(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintPreview_GetPrintoutForPrinting(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - wxPyPrintout *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetPrintoutForPrinting",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyPrintout *)(arg1)->GetPrintoutForPrinting(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintPreview_SetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - wxFrame *arg2 = (wxFrame *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "frame", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetFrame",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFrame(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintPreview_SetCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "canvas", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetCanvas",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetCanvas(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintPreview_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - wxFrame *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetFrame",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFrame *)(arg1)->GetFrame(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintPreview_GetCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - wxPreviewCanvas *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetCanvas",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPreviewCanvas *)(arg1)->GetCanvas(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewCanvas, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintPreview_PaintPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; - wxDC *arg3 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "canvas",(char *) "dc", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintPreview_PaintPage",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->PaintPage(arg2,*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintPreview_DrawBlankPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; - wxDC *arg3 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "canvas",(char *) "dc", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintPreview_DrawBlankPage",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->DrawBlankPage(arg2,*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintPreview_RenderPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pageNum", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_RenderPage",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->RenderPage(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintPreview_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "canvas", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_AdjustScrollbars",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AdjustScrollbars(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintPreview_GetPrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - wxPrintDialogData *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetPrintDialogData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); - result = (wxPrintDialogData *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintPreview_SetZoom(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "percent", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetZoom",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetZoom(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintPreview_GetZoom(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetZoom",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetZoom(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintPreview_GetMaxPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetMaxPage",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetMaxPage(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintPreview_GetMinPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetMinPage",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetMinPage(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintPreview_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_Ok",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Ok(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintPreview_SetOk(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "ok", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetOk",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetOk(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintPreview_Print(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - bool arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "interactive", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_Print",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Print(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintPreview_DetermineScaling(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_DetermineScaling",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DetermineScaling(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * PrintPreview_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPrintPreview, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PyPrintPreview__SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; - wxPrintDialogData *arg3 = (wxPrintDialogData *) NULL ; - wxPyPrintPreview *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO|O:new_PyPrintPreview",&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyPrintPreview *)new wxPyPrintPreview(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPrintPreview, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_PyPrintPreview__SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; - wxPrintData *arg3 = (wxPrintData *) 0 ; - wxPyPrintPreview *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OOO:new_PyPrintPreview",&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyPrintPreview *)new wxPyPrintPreview(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPrintPreview, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_PyPrintPreview(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if ((argc >= 2) && (argc <= 3)) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - if (argc <= 2) { - return _wrap_new_PyPrintPreview__SWIG_0(self,args); - } - { - void *ptr; - if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxPrintDialogData, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_new_PyPrintPreview__SWIG_0(self,args); - } - } - } - } - if (argc == 3) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxPrintData, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_new_PyPrintPreview__SWIG_1(self,args); - } - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_PyPrintPreview'"); - return NULL; -} - - -static PyObject *_wrap_PyPrintPreview__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPrintPreview__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPrintPreview_base_SetCurrentPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pageNum", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPrintPreview_base_SetCurrentPage",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_SetCurrentPage(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPrintPreview_base_PaintPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; - wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; - wxDC *arg3 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "canvas",(char *) "dc", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPrintPreview_base_PaintPage",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_PaintPage(arg2,*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPrintPreview_base_DrawBlankPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; - wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; - wxDC *arg3 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "canvas",(char *) "dc", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPrintPreview_base_DrawBlankPage",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_DrawBlankPage(arg2,*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPrintPreview_base_RenderPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pageNum", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPrintPreview_base_RenderPage",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_RenderPage(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPrintPreview_base_SetZoom(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "percent", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPrintPreview_base_SetZoom",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_SetZoom(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPrintPreview_base_Print(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; - bool arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "interactive", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPrintPreview_base_Print",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_Print(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPrintPreview_base_DetermineScaling(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPrintPreview_base_DetermineScaling",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_DetermineScaling(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * PyPrintPreview_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyPrintPreview, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PyPreviewFrame(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - wxFrame *arg2 = (wxFrame *) 0 ; - wxString *arg3 = 0 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxDEFAULT_FRAME_STYLE ; - wxString const &arg7_defvalue = wxPyFrameNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - wxPyPreviewFrame *result; - bool temp3 = False ; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "preview",(char *) "parent",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PyPreviewFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyPreviewFrame *)new wxPyPreviewFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPreviewFrame, 1); - { - if (temp3) - delete arg3; - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_PyPreviewFrame__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPreviewFrame__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPreviewFrame_SetPreviewCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; - wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "canvas", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewFrame_SetPreviewCanvas",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPreviewCanvas(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPreviewFrame_SetControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; - wxPreviewControlBar *arg2 = (wxPreviewControlBar *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bar", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewFrame_SetControlBar",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewControlBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetControlBar(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPreviewFrame_base_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPreviewFrame_base_Initialize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_Initialize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPreviewFrame_base_CreateCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPreviewFrame_base_CreateCanvas",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_CreateCanvas(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPreviewFrame_base_CreateControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPreviewFrame_base_CreateControlBar",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_CreateControlBar(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * PyPreviewFrame_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyPreviewFrame, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PyPreviewControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - long arg2 ; - wxWindow *arg3 = (wxWindow *) 0 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) 0 ; - wxString const &arg7_defvalue = wxPyPanelNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - wxPyPreviewControlBar *result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "preview",(char *) "buttons",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PyPreviewControlBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyPreviewControlBar *)new wxPyPreviewControlBar(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPreviewControlBar, 1); - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_PyPreviewControlBar__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPreviewControlBar__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewControlBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPreviewControlBar_SetPrintPreview(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; - wxPrintPreview *arg2 = (wxPrintPreview *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "preview", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewControlBar_SetPrintPreview",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewControlBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPrintPreview(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPreviewControlBar_base_CreateButtons(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPreviewControlBar_base_CreateButtons",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewControlBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_CreateButtons(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPreviewControlBar_base_SetZoomControl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "zoom", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewControlBar_base_SetZoomControl",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewControlBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_SetZoomControl(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * PyPreviewControlBar_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyPreviewControlBar, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyMethodDef SwigMethods[] = { - { (char *)"new_Panel", (PyCFunction) _wrap_new_Panel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PrePanel", (PyCFunction) _wrap_new_PrePanel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Panel_Create", (PyCFunction) _wrap_Panel_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Panel_InitDialog", (PyCFunction) _wrap_Panel_InitDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Panel_swigregister", Panel_swigregister, METH_VARARGS }, - { (char *)"new_ScrolledWindow", (PyCFunction) _wrap_new_ScrolledWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreScrolledWindow", (PyCFunction) _wrap_new_PreScrolledWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrolledWindow_Create", (PyCFunction) _wrap_ScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrolledWindow_SetScrollbars", (PyCFunction) _wrap_ScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrolledWindow_Scroll", (PyCFunction) _wrap_ScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_ScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_ScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrolledWindow_SetScrollRate", (PyCFunction) _wrap_ScrolledWindow_SetScrollRate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_ScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrolledWindow_EnableScrolling", (PyCFunction) _wrap_ScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrolledWindow_GetViewStart", (PyCFunction) _wrap_ScrolledWindow_GetViewStart, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrolledWindow_SetScale", (PyCFunction) _wrap_ScrolledWindow_SetScale, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrolledWindow_GetScaleX", (PyCFunction) _wrap_ScrolledWindow_GetScaleX, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrolledWindow_GetScaleY", (PyCFunction) _wrap_ScrolledWindow_GetScaleY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrolledWindow_CalcScrolledPosition", _wrap_ScrolledWindow_CalcScrolledPosition, METH_VARARGS }, - { (char *)"ScrolledWindow_CalcUnscrolledPosition", _wrap_ScrolledWindow_CalcUnscrolledPosition, METH_VARARGS }, - { (char *)"ScrolledWindow_AdjustScrollbars", (PyCFunction) _wrap_ScrolledWindow_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrolledWindow_CalcScrollInc", (PyCFunction) _wrap_ScrolledWindow_CalcScrollInc, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_ScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrolledWindow_GetTargetWindow", (PyCFunction) _wrap_ScrolledWindow_GetTargetWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrolledWindow_SetTargetRect", (PyCFunction) _wrap_ScrolledWindow_SetTargetRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrolledWindow_GetTargetRect", (PyCFunction) _wrap_ScrolledWindow_GetTargetRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrolledWindow_swigregister", ScrolledWindow_swigregister, METH_VARARGS }, - { (char *)"TopLevelWindow_Maximize", (PyCFunction) _wrap_TopLevelWindow_Maximize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TopLevelWindow_Restore", (PyCFunction) _wrap_TopLevelWindow_Restore, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TopLevelWindow_Iconize", (PyCFunction) _wrap_TopLevelWindow_Iconize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TopLevelWindow_IsMaximized", (PyCFunction) _wrap_TopLevelWindow_IsMaximized, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TopLevelWindow_IsIconized", (PyCFunction) _wrap_TopLevelWindow_IsIconized, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TopLevelWindow_GetIcon", (PyCFunction) _wrap_TopLevelWindow_GetIcon, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TopLevelWindow_SetIcon", (PyCFunction) _wrap_TopLevelWindow_SetIcon, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TopLevelWindow_SetIcons", (PyCFunction) _wrap_TopLevelWindow_SetIcons, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TopLevelWindow_ShowFullScreen", (PyCFunction) _wrap_TopLevelWindow_ShowFullScreen, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TopLevelWindow_IsFullScreen", (PyCFunction) _wrap_TopLevelWindow_IsFullScreen, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TopLevelWindow_SetTitle", (PyCFunction) _wrap_TopLevelWindow_SetTitle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TopLevelWindow_GetTitle", (PyCFunction) _wrap_TopLevelWindow_GetTitle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TopLevelWindow_SetShape", (PyCFunction) _wrap_TopLevelWindow_SetShape, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TopLevelWindow_MacSetMetalAppearance", (PyCFunction) _wrap_TopLevelWindow_MacSetMetalAppearance, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TopLevelWindow_MacGetMetalAppearance", (PyCFunction) _wrap_TopLevelWindow_MacGetMetalAppearance, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TopLevelWindow_swigregister", TopLevelWindow_swigregister, METH_VARARGS }, - { (char *)"new_Frame", (PyCFunction) _wrap_new_Frame, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreFrame", (PyCFunction) _wrap_new_PreFrame, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Frame_Create", (PyCFunction) _wrap_Frame_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Frame_GetClientAreaOrigin", (PyCFunction) _wrap_Frame_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Frame_SendSizeEvent", (PyCFunction) _wrap_Frame_SendSizeEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Frame_SetMenuBar", (PyCFunction) _wrap_Frame_SetMenuBar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Frame_GetMenuBar", (PyCFunction) _wrap_Frame_GetMenuBar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Frame_ProcessCommand", (PyCFunction) _wrap_Frame_ProcessCommand, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Frame_CreateStatusBar", (PyCFunction) _wrap_Frame_CreateStatusBar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Frame_GetStatusBar", (PyCFunction) _wrap_Frame_GetStatusBar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Frame_SetStatusBar", (PyCFunction) _wrap_Frame_SetStatusBar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Frame_SetStatusText", (PyCFunction) _wrap_Frame_SetStatusText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Frame_SetStatusWidths", (PyCFunction) _wrap_Frame_SetStatusWidths, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Frame_PushStatusText", (PyCFunction) _wrap_Frame_PushStatusText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Frame_PopStatusText", (PyCFunction) _wrap_Frame_PopStatusText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Frame_SetStatusBarPane", (PyCFunction) _wrap_Frame_SetStatusBarPane, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Frame_GetStatusBarPane", (PyCFunction) _wrap_Frame_GetStatusBarPane, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Frame_CreateToolBar", (PyCFunction) _wrap_Frame_CreateToolBar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Frame_GetToolBar", (PyCFunction) _wrap_Frame_GetToolBar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Frame_SetToolBar", (PyCFunction) _wrap_Frame_SetToolBar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Frame_DoGiveHelp", (PyCFunction) _wrap_Frame_DoGiveHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Frame_DoMenuUpdates", (PyCFunction) _wrap_Frame_DoMenuUpdates, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Frame_swigregister", Frame_swigregister, METH_VARARGS }, - { (char *)"new_Dialog", (PyCFunction) _wrap_new_Dialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreDialog", (PyCFunction) _wrap_new_PreDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Dialog_Create", (PyCFunction) _wrap_Dialog_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Dialog_SetReturnCode", (PyCFunction) _wrap_Dialog_SetReturnCode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Dialog_GetReturnCode", (PyCFunction) _wrap_Dialog_GetReturnCode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Dialog_CreateTextSizer", (PyCFunction) _wrap_Dialog_CreateTextSizer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Dialog_CreateButtonSizer", (PyCFunction) _wrap_Dialog_CreateButtonSizer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Dialog_IsModal", (PyCFunction) _wrap_Dialog_IsModal, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Dialog_ShowModal", (PyCFunction) _wrap_Dialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Dialog_EndModal", (PyCFunction) _wrap_Dialog_EndModal, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Dialog_swigregister", Dialog_swigregister, METH_VARARGS }, - { (char *)"new_MiniFrame", (PyCFunction) _wrap_new_MiniFrame, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreMiniFrame", (PyCFunction) _wrap_new_PreMiniFrame, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MiniFrame_Create", (PyCFunction) _wrap_MiniFrame_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MiniFrame_swigregister", MiniFrame_swigregister, METH_VARARGS }, - { (char *)"new_SplashScreenWindow", (PyCFunction) _wrap_new_SplashScreenWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplashScreenWindow_SetBitmap", (PyCFunction) _wrap_SplashScreenWindow_SetBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplashScreenWindow_GetBitmap", (PyCFunction) _wrap_SplashScreenWindow_GetBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplashScreenWindow_swigregister", SplashScreenWindow_swigregister, METH_VARARGS }, - { (char *)"new_SplashScreen", (PyCFunction) _wrap_new_SplashScreen, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplashScreen_GetSplashStyle", (PyCFunction) _wrap_SplashScreen_GetSplashStyle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplashScreen_GetSplashWindow", (PyCFunction) _wrap_SplashScreen_GetSplashWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplashScreen_GetTimeout", (PyCFunction) _wrap_SplashScreen_GetTimeout, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplashScreen_swigregister", SplashScreen_swigregister, METH_VARARGS }, - { (char *)"new_StatusBar", (PyCFunction) _wrap_new_StatusBar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreStatusBar", (PyCFunction) _wrap_new_PreStatusBar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StatusBar_Create", (PyCFunction) _wrap_StatusBar_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StatusBar_SetFieldsCount", (PyCFunction) _wrap_StatusBar_SetFieldsCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StatusBar_GetFieldsCount", (PyCFunction) _wrap_StatusBar_GetFieldsCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StatusBar_SetStatusText", (PyCFunction) _wrap_StatusBar_SetStatusText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StatusBar_GetStatusText", (PyCFunction) _wrap_StatusBar_GetStatusText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StatusBar_PushStatusText", (PyCFunction) _wrap_StatusBar_PushStatusText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StatusBar_PopStatusText", (PyCFunction) _wrap_StatusBar_PopStatusText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StatusBar_SetStatusWidths", (PyCFunction) _wrap_StatusBar_SetStatusWidths, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StatusBar_GetFieldRect", (PyCFunction) _wrap_StatusBar_GetFieldRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StatusBar_SetMinHeight", (PyCFunction) _wrap_StatusBar_SetMinHeight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StatusBar_GetBorderX", (PyCFunction) _wrap_StatusBar_GetBorderX, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StatusBar_GetBorderY", (PyCFunction) _wrap_StatusBar_GetBorderY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StatusBar_swigregister", StatusBar_swigregister, METH_VARARGS }, - { (char *)"new_SplitterWindow", (PyCFunction) _wrap_new_SplitterWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreSplitterWindow", (PyCFunction) _wrap_new_PreSplitterWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_Create", (PyCFunction) _wrap_SplitterWindow_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_GetWindow1", (PyCFunction) _wrap_SplitterWindow_GetWindow1, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_GetWindow2", (PyCFunction) _wrap_SplitterWindow_GetWindow2, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_SetSplitMode", (PyCFunction) _wrap_SplitterWindow_SetSplitMode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_GetSplitMode", (PyCFunction) _wrap_SplitterWindow_GetSplitMode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_Initialize", (PyCFunction) _wrap_SplitterWindow_Initialize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_SplitVertically", (PyCFunction) _wrap_SplitterWindow_SplitVertically, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_SplitHorizontally", (PyCFunction) _wrap_SplitterWindow_SplitHorizontally, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_Unsplit", (PyCFunction) _wrap_SplitterWindow_Unsplit, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_ReplaceWindow", (PyCFunction) _wrap_SplitterWindow_ReplaceWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_UpdateSize", (PyCFunction) _wrap_SplitterWindow_UpdateSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_IsSplit", (PyCFunction) _wrap_SplitterWindow_IsSplit, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_SetSashSize", (PyCFunction) _wrap_SplitterWindow_SetSashSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_SetBorderSize", (PyCFunction) _wrap_SplitterWindow_SetBorderSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_GetSashSize", (PyCFunction) _wrap_SplitterWindow_GetSashSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_GetBorderSize", (PyCFunction) _wrap_SplitterWindow_GetBorderSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_SetSashPosition", (PyCFunction) _wrap_SplitterWindow_SetSashPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_GetSashPosition", (PyCFunction) _wrap_SplitterWindow_GetSashPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_SetMinimumPaneSize", (PyCFunction) _wrap_SplitterWindow_SetMinimumPaneSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_GetMinimumPaneSize", (PyCFunction) _wrap_SplitterWindow_GetMinimumPaneSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_SashHitTest", (PyCFunction) _wrap_SplitterWindow_SashHitTest, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_SizeWindows", (PyCFunction) _wrap_SplitterWindow_SizeWindows, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_SetNeedUpdating", (PyCFunction) _wrap_SplitterWindow_SetNeedUpdating, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_GetNeedUpdating", (PyCFunction) _wrap_SplitterWindow_GetNeedUpdating, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_swigregister", SplitterWindow_swigregister, METH_VARARGS }, - { (char *)"new_SplitterEvent", (PyCFunction) _wrap_new_SplitterEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterEvent_SetSashPosition", (PyCFunction) _wrap_SplitterEvent_SetSashPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterEvent_GetSashPosition", (PyCFunction) _wrap_SplitterEvent_GetSashPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterEvent_GetWindowBeingRemoved", (PyCFunction) _wrap_SplitterEvent_GetWindowBeingRemoved, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterEvent_GetX", (PyCFunction) _wrap_SplitterEvent_GetX, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterEvent_GetY", (PyCFunction) _wrap_SplitterEvent_GetY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterEvent_swigregister", SplitterEvent_swigregister, METH_VARARGS }, - { (char *)"new_SashWindow", (PyCFunction) _wrap_new_SashWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreSashWindow", (PyCFunction) _wrap_new_PreSashWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashWindow_Create", (PyCFunction) _wrap_SashWindow_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashWindow_SetSashVisible", (PyCFunction) _wrap_SashWindow_SetSashVisible, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashWindow_GetSashVisible", (PyCFunction) _wrap_SashWindow_GetSashVisible, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashWindow_SetSashBorder", (PyCFunction) _wrap_SashWindow_SetSashBorder, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashWindow_HasBorder", (PyCFunction) _wrap_SashWindow_HasBorder, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashWindow_GetEdgeMargin", (PyCFunction) _wrap_SashWindow_GetEdgeMargin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashWindow_SetDefaultBorderSize", (PyCFunction) _wrap_SashWindow_SetDefaultBorderSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashWindow_GetDefaultBorderSize", (PyCFunction) _wrap_SashWindow_GetDefaultBorderSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashWindow_SetExtraBorderSize", (PyCFunction) _wrap_SashWindow_SetExtraBorderSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashWindow_GetExtraBorderSize", (PyCFunction) _wrap_SashWindow_GetExtraBorderSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashWindow_SetMinimumSizeX", (PyCFunction) _wrap_SashWindow_SetMinimumSizeX, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashWindow_SetMinimumSizeY", (PyCFunction) _wrap_SashWindow_SetMinimumSizeY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashWindow_GetMinimumSizeX", (PyCFunction) _wrap_SashWindow_GetMinimumSizeX, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashWindow_GetMinimumSizeY", (PyCFunction) _wrap_SashWindow_GetMinimumSizeY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashWindow_SetMaximumSizeX", (PyCFunction) _wrap_SashWindow_SetMaximumSizeX, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashWindow_SetMaximumSizeY", (PyCFunction) _wrap_SashWindow_SetMaximumSizeY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashWindow_GetMaximumSizeX", (PyCFunction) _wrap_SashWindow_GetMaximumSizeX, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashWindow_GetMaximumSizeY", (PyCFunction) _wrap_SashWindow_GetMaximumSizeY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashWindow_SashHitTest", (PyCFunction) _wrap_SashWindow_SashHitTest, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashWindow_SizeWindows", (PyCFunction) _wrap_SashWindow_SizeWindows, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashWindow_swigregister", SashWindow_swigregister, METH_VARARGS }, - { (char *)"new_SashEvent", (PyCFunction) _wrap_new_SashEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashEvent_SetEdge", (PyCFunction) _wrap_SashEvent_SetEdge, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashEvent_GetEdge", (PyCFunction) _wrap_SashEvent_GetEdge, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashEvent_SetDragRect", (PyCFunction) _wrap_SashEvent_SetDragRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashEvent_GetDragRect", (PyCFunction) _wrap_SashEvent_GetDragRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashEvent_SetDragStatus", (PyCFunction) _wrap_SashEvent_SetDragStatus, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashEvent_GetDragStatus", (PyCFunction) _wrap_SashEvent_GetDragStatus, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashEvent_swigregister", SashEvent_swigregister, METH_VARARGS }, - { (char *)"new_QueryLayoutInfoEvent", (PyCFunction) _wrap_new_QueryLayoutInfoEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"QueryLayoutInfoEvent_SetRequestedLength", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetRequestedLength, METH_VARARGS | METH_KEYWORDS }, - { (char *)"QueryLayoutInfoEvent_GetRequestedLength", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetRequestedLength, METH_VARARGS | METH_KEYWORDS }, - { (char *)"QueryLayoutInfoEvent_SetFlags", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetFlags, METH_VARARGS | METH_KEYWORDS }, - { (char *)"QueryLayoutInfoEvent_GetFlags", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetFlags, METH_VARARGS | METH_KEYWORDS }, - { (char *)"QueryLayoutInfoEvent_SetSize", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"QueryLayoutInfoEvent_GetSize", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"QueryLayoutInfoEvent_SetOrientation", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"QueryLayoutInfoEvent_GetOrientation", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"QueryLayoutInfoEvent_SetAlignment", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetAlignment, METH_VARARGS | METH_KEYWORDS }, - { (char *)"QueryLayoutInfoEvent_GetAlignment", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetAlignment, METH_VARARGS | METH_KEYWORDS }, - { (char *)"QueryLayoutInfoEvent_swigregister", QueryLayoutInfoEvent_swigregister, METH_VARARGS }, - { (char *)"new_CalculateLayoutEvent", (PyCFunction) _wrap_new_CalculateLayoutEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CalculateLayoutEvent_SetFlags", (PyCFunction) _wrap_CalculateLayoutEvent_SetFlags, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CalculateLayoutEvent_GetFlags", (PyCFunction) _wrap_CalculateLayoutEvent_GetFlags, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CalculateLayoutEvent_SetRect", (PyCFunction) _wrap_CalculateLayoutEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CalculateLayoutEvent_GetRect", (PyCFunction) _wrap_CalculateLayoutEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CalculateLayoutEvent_swigregister", CalculateLayoutEvent_swigregister, METH_VARARGS }, - { (char *)"new_SashLayoutWindow", (PyCFunction) _wrap_new_SashLayoutWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreSashLayoutWindow", (PyCFunction) _wrap_new_PreSashLayoutWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashLayoutWindow_Create", (PyCFunction) _wrap_SashLayoutWindow_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashLayoutWindow_GetAlignment", (PyCFunction) _wrap_SashLayoutWindow_GetAlignment, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashLayoutWindow_GetOrientation", (PyCFunction) _wrap_SashLayoutWindow_GetOrientation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashLayoutWindow_SetAlignment", (PyCFunction) _wrap_SashLayoutWindow_SetAlignment, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashLayoutWindow_SetDefaultSize", (PyCFunction) _wrap_SashLayoutWindow_SetDefaultSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashLayoutWindow_SetOrientation", (PyCFunction) _wrap_SashLayoutWindow_SetOrientation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashLayoutWindow_swigregister", SashLayoutWindow_swigregister, METH_VARARGS }, - { (char *)"new_LayoutAlgorithm", (PyCFunction) _wrap_new_LayoutAlgorithm, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_LayoutAlgorithm", (PyCFunction) _wrap_delete_LayoutAlgorithm, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LayoutAlgorithm_LayoutMDIFrame", (PyCFunction) _wrap_LayoutAlgorithm_LayoutMDIFrame, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LayoutAlgorithm_LayoutFrame", (PyCFunction) _wrap_LayoutAlgorithm_LayoutFrame, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LayoutAlgorithm_LayoutWindow", (PyCFunction) _wrap_LayoutAlgorithm_LayoutWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LayoutAlgorithm_swigregister", LayoutAlgorithm_swigregister, METH_VARARGS }, - { (char *)"new_PopupWindow", (PyCFunction) _wrap_new_PopupWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PrePopupWindow", (PyCFunction) _wrap_new_PrePopupWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PopupWindow_swigregister", PopupWindow_swigregister, METH_VARARGS }, - { (char *)"new_PopupTransientWindow", (PyCFunction) _wrap_new_PopupTransientWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PrePopupTransientWindow", (PyCFunction) _wrap_new_PrePopupTransientWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PopupTransientWindow_swigregister", PopupTransientWindow_swigregister, METH_VARARGS }, - { (char *)"new_TipWindow", (PyCFunction) _wrap_new_TipWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TipWindow_SetBoundingRect", (PyCFunction) _wrap_TipWindow_SetBoundingRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TipWindow_Close", (PyCFunction) _wrap_TipWindow_Close, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TipWindow_swigregister", TipWindow_swigregister, METH_VARARGS }, - { (char *)"new_VScrolledWindow", (PyCFunction) _wrap_new_VScrolledWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreVScrolledWindow", (PyCFunction) _wrap_new_PreVScrolledWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VScrolledWindow__setCallbackInfo", (PyCFunction) _wrap_VScrolledWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VScrolledWindow_Create", (PyCFunction) _wrap_VScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VScrolledWindow_SetLineCount", (PyCFunction) _wrap_VScrolledWindow_SetLineCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VScrolledWindow_ScrollToLine", (PyCFunction) _wrap_VScrolledWindow_ScrollToLine, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VScrolledWindow_ScrollLines", (PyCFunction) _wrap_VScrolledWindow_ScrollLines, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VScrolledWindow_ScrollPages", (PyCFunction) _wrap_VScrolledWindow_ScrollPages, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VScrolledWindow_RefreshLine", (PyCFunction) _wrap_VScrolledWindow_RefreshLine, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VScrolledWindow_RefreshLines", (PyCFunction) _wrap_VScrolledWindow_RefreshLines, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VScrolledWindow_HitTestXT", (PyCFunction) _wrap_VScrolledWindow_HitTestXT, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VScrolledWindow_HitTest", (PyCFunction) _wrap_VScrolledWindow_HitTest, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VScrolledWindow_RefreshAll", (PyCFunction) _wrap_VScrolledWindow_RefreshAll, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VScrolledWindow_GetLineCount", (PyCFunction) _wrap_VScrolledWindow_GetLineCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VScrolledWindow_GetFirstVisibleLine", (PyCFunction) _wrap_VScrolledWindow_GetFirstVisibleLine, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VScrolledWindow_GetLastVisibleLine", (PyCFunction) _wrap_VScrolledWindow_GetLastVisibleLine, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VScrolledWindow_IsVisible", (PyCFunction) _wrap_VScrolledWindow_IsVisible, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VScrolledWindow_swigregister", VScrolledWindow_swigregister, METH_VARARGS }, - { (char *)"new_VListBox", (PyCFunction) _wrap_new_VListBox, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreVListBox", (PyCFunction) _wrap_new_PreVListBox, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VListBox__setCallbackInfo", (PyCFunction) _wrap_VListBox__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VListBox_Create", (PyCFunction) _wrap_VListBox_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VListBox_GetItemCount", (PyCFunction) _wrap_VListBox_GetItemCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VListBox_HasMultipleSelection", (PyCFunction) _wrap_VListBox_HasMultipleSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VListBox_GetSelection", (PyCFunction) _wrap_VListBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VListBox_IsCurrent", (PyCFunction) _wrap_VListBox_IsCurrent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VListBox_IsSelected", (PyCFunction) _wrap_VListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VListBox_GetSelectedCount", (PyCFunction) _wrap_VListBox_GetSelectedCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VListBox_GetFirstSelected", (PyCFunction) _wrap_VListBox_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VListBox_GetNextSelected", (PyCFunction) _wrap_VListBox_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VListBox_GetMargins", (PyCFunction) _wrap_VListBox_GetMargins, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VListBox_GetSelectionBackground", (PyCFunction) _wrap_VListBox_GetSelectionBackground, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VListBox_SetItemCount", (PyCFunction) _wrap_VListBox_SetItemCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VListBox_Clear", (PyCFunction) _wrap_VListBox_Clear, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VListBox_SetSelection", (PyCFunction) _wrap_VListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VListBox_Select", (PyCFunction) _wrap_VListBox_Select, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VListBox_SelectRange", (PyCFunction) _wrap_VListBox_SelectRange, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VListBox_Toggle", (PyCFunction) _wrap_VListBox_Toggle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VListBox_SelectAll", (PyCFunction) _wrap_VListBox_SelectAll, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VListBox_DeselectAll", (PyCFunction) _wrap_VListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VListBox_SetMargins", (PyCFunction) _wrap_VListBox_SetMargins, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VListBox_SetMarginsXY", (PyCFunction) _wrap_VListBox_SetMarginsXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VListBox_SetSelectionBackground", (PyCFunction) _wrap_VListBox_SetSelectionBackground, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VListBox_swigregister", VListBox_swigregister, METH_VARARGS }, - { (char *)"new_HtmlListBox", (PyCFunction) _wrap_new_HtmlListBox, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreHtmlListBox", (PyCFunction) _wrap_new_PreHtmlListBox, METH_VARARGS | METH_KEYWORDS }, - { (char *)"HtmlListBox__setCallbackInfo", (PyCFunction) _wrap_HtmlListBox__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"HtmlListBox_Create", (PyCFunction) _wrap_HtmlListBox_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"HtmlListBox_RefreshAll", (PyCFunction) _wrap_HtmlListBox_RefreshAll, METH_VARARGS | METH_KEYWORDS }, - { (char *)"HtmlListBox_SetItemCount", (PyCFunction) _wrap_HtmlListBox_SetItemCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"HtmlListBox_swigregister", HtmlListBox_swigregister, METH_VARARGS }, - { (char *)"new_TaskBarIcon", (PyCFunction) _wrap_new_TaskBarIcon, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_TaskBarIcon", (PyCFunction) _wrap_delete_TaskBarIcon, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TaskBarIcon_Destroy", (PyCFunction) _wrap_TaskBarIcon_Destroy, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TaskBarIcon_swigregister", TaskBarIcon_swigregister, METH_VARARGS }, - { (char *)"new_TaskBarIconEvent", (PyCFunction) _wrap_new_TaskBarIconEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TaskBarIconEvent_swigregister", TaskBarIconEvent_swigregister, METH_VARARGS }, - { (char *)"new_ColourData", (PyCFunction) _wrap_new_ColourData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_ColourData", (PyCFunction) _wrap_delete_ColourData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ColourData_GetChooseFull", (PyCFunction) _wrap_ColourData_GetChooseFull, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ColourData_GetColour", (PyCFunction) _wrap_ColourData_GetColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ColourData_GetCustomColour", (PyCFunction) _wrap_ColourData_GetCustomColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ColourData_SetChooseFull", (PyCFunction) _wrap_ColourData_SetChooseFull, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ColourData_SetColour", (PyCFunction) _wrap_ColourData_SetColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ColourData_SetCustomColour", (PyCFunction) _wrap_ColourData_SetCustomColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ColourData_swigregister", ColourData_swigregister, METH_VARARGS }, - { (char *)"new_ColourDialog", (PyCFunction) _wrap_new_ColourDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ColourDialog_GetColourData", (PyCFunction) _wrap_ColourDialog_GetColourData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ColourDialog_swigregister", ColourDialog_swigregister, METH_VARARGS }, - { (char *)"new_DirDialog", (PyCFunction) _wrap_new_DirDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DirDialog_GetPath", (PyCFunction) _wrap_DirDialog_GetPath, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DirDialog_GetMessage", (PyCFunction) _wrap_DirDialog_GetMessage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DirDialog_GetStyle", (PyCFunction) _wrap_DirDialog_GetStyle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DirDialog_SetMessage", (PyCFunction) _wrap_DirDialog_SetMessage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DirDialog_SetPath", (PyCFunction) _wrap_DirDialog_SetPath, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DirDialog_swigregister", DirDialog_swigregister, METH_VARARGS }, - { (char *)"new_FileDialog", (PyCFunction) _wrap_new_FileDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDialog_SetMessage", (PyCFunction) _wrap_FileDialog_SetMessage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDialog_SetPath", (PyCFunction) _wrap_FileDialog_SetPath, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDialog_SetDirectory", (PyCFunction) _wrap_FileDialog_SetDirectory, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDialog_SetFilename", (PyCFunction) _wrap_FileDialog_SetFilename, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDialog_SetWildcard", (PyCFunction) _wrap_FileDialog_SetWildcard, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDialog_SetStyle", (PyCFunction) _wrap_FileDialog_SetStyle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDialog_SetFilterIndex", (PyCFunction) _wrap_FileDialog_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDialog_GetMessage", (PyCFunction) _wrap_FileDialog_GetMessage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDialog_GetPath", (PyCFunction) _wrap_FileDialog_GetPath, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDialog_GetDirectory", (PyCFunction) _wrap_FileDialog_GetDirectory, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDialog_GetFilename", (PyCFunction) _wrap_FileDialog_GetFilename, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDialog_GetWildcard", (PyCFunction) _wrap_FileDialog_GetWildcard, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDialog_GetStyle", (PyCFunction) _wrap_FileDialog_GetStyle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDialog_GetFilterIndex", (PyCFunction) _wrap_FileDialog_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDialog_GetFilenames", (PyCFunction) _wrap_FileDialog_GetFilenames, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDialog_GetPaths", (PyCFunction) _wrap_FileDialog_GetPaths, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDialog_swigregister", FileDialog_swigregister, METH_VARARGS }, - { (char *)"new_MultiChoiceDialog", (PyCFunction) _wrap_new_MultiChoiceDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MultiChoiceDialog_SetSelections", (PyCFunction) _wrap_MultiChoiceDialog_SetSelections, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MultiChoiceDialog_GetSelections", (PyCFunction) _wrap_MultiChoiceDialog_GetSelections, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MultiChoiceDialog_swigregister", MultiChoiceDialog_swigregister, METH_VARARGS }, - { (char *)"new_SingleChoiceDialog", (PyCFunction) _wrap_new_SingleChoiceDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SingleChoiceDialog_GetSelection", (PyCFunction) _wrap_SingleChoiceDialog_GetSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SingleChoiceDialog_GetStringSelection", (PyCFunction) _wrap_SingleChoiceDialog_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SingleChoiceDialog_SetSelection", (PyCFunction) _wrap_SingleChoiceDialog_SetSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SingleChoiceDialog_swigregister", SingleChoiceDialog_swigregister, METH_VARARGS }, - { (char *)"new_TextEntryDialog", (PyCFunction) _wrap_new_TextEntryDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextEntryDialog_GetValue", (PyCFunction) _wrap_TextEntryDialog_GetValue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextEntryDialog_SetValue", (PyCFunction) _wrap_TextEntryDialog_SetValue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextEntryDialog_swigregister", TextEntryDialog_swigregister, METH_VARARGS }, - { (char *)"new_FontData", (PyCFunction) _wrap_new_FontData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_FontData", (PyCFunction) _wrap_delete_FontData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontData_EnableEffects", (PyCFunction) _wrap_FontData_EnableEffects, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontData_GetAllowSymbols", (PyCFunction) _wrap_FontData_GetAllowSymbols, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontData_GetColour", (PyCFunction) _wrap_FontData_GetColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontData_GetChosenFont", (PyCFunction) _wrap_FontData_GetChosenFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontData_GetEnableEffects", (PyCFunction) _wrap_FontData_GetEnableEffects, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontData_GetInitialFont", (PyCFunction) _wrap_FontData_GetInitialFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontData_GetShowHelp", (PyCFunction) _wrap_FontData_GetShowHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontData_SetAllowSymbols", (PyCFunction) _wrap_FontData_SetAllowSymbols, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontData_SetChosenFont", (PyCFunction) _wrap_FontData_SetChosenFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontData_SetColour", (PyCFunction) _wrap_FontData_SetColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontData_SetInitialFont", (PyCFunction) _wrap_FontData_SetInitialFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontData_SetRange", (PyCFunction) _wrap_FontData_SetRange, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontData_SetShowHelp", (PyCFunction) _wrap_FontData_SetShowHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontData_swigregister", FontData_swigregister, METH_VARARGS }, - { (char *)"new_FontDialog", (PyCFunction) _wrap_new_FontDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontDialog_GetFontData", (PyCFunction) _wrap_FontDialog_GetFontData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontDialog_swigregister", FontDialog_swigregister, METH_VARARGS }, - { (char *)"new_MessageDialog", (PyCFunction) _wrap_new_MessageDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MessageDialog_swigregister", MessageDialog_swigregister, METH_VARARGS }, - { (char *)"new_ProgressDialog", (PyCFunction) _wrap_new_ProgressDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ProgressDialog_Update", (PyCFunction) _wrap_ProgressDialog_Update, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ProgressDialog_Resume", (PyCFunction) _wrap_ProgressDialog_Resume, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ProgressDialog_swigregister", ProgressDialog_swigregister, METH_VARARGS }, - { (char *)"new_FindDialogEvent", (PyCFunction) _wrap_new_FindDialogEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FindDialogEvent_GetFlags", (PyCFunction) _wrap_FindDialogEvent_GetFlags, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FindDialogEvent_GetFindString", (PyCFunction) _wrap_FindDialogEvent_GetFindString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FindDialogEvent_GetReplaceString", (PyCFunction) _wrap_FindDialogEvent_GetReplaceString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FindDialogEvent_GetDialog", (PyCFunction) _wrap_FindDialogEvent_GetDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FindDialogEvent_SetFlags", (PyCFunction) _wrap_FindDialogEvent_SetFlags, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FindDialogEvent_SetFindString", (PyCFunction) _wrap_FindDialogEvent_SetFindString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FindDialogEvent_SetReplaceString", (PyCFunction) _wrap_FindDialogEvent_SetReplaceString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FindDialogEvent_swigregister", FindDialogEvent_swigregister, METH_VARARGS }, - { (char *)"new_FindReplaceData", (PyCFunction) _wrap_new_FindReplaceData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_FindReplaceData", (PyCFunction) _wrap_delete_FindReplaceData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FindReplaceData_GetFindString", (PyCFunction) _wrap_FindReplaceData_GetFindString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FindReplaceData_GetReplaceString", (PyCFunction) _wrap_FindReplaceData_GetReplaceString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FindReplaceData_GetFlags", (PyCFunction) _wrap_FindReplaceData_GetFlags, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FindReplaceData_SetFlags", (PyCFunction) _wrap_FindReplaceData_SetFlags, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FindReplaceData_SetFindString", (PyCFunction) _wrap_FindReplaceData_SetFindString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FindReplaceData_SetReplaceString", (PyCFunction) _wrap_FindReplaceData_SetReplaceString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FindReplaceData_swigregister", FindReplaceData_swigregister, METH_VARARGS }, - { (char *)"new_FindReplaceDialog", (PyCFunction) _wrap_new_FindReplaceDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreFindReplaceDialog", (PyCFunction) _wrap_new_PreFindReplaceDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FindReplaceDialog_Create", (PyCFunction) _wrap_FindReplaceDialog_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FindReplaceDialog_GetData", (PyCFunction) _wrap_FindReplaceDialog_GetData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FindReplaceDialog_SetData", (PyCFunction) _wrap_FindReplaceDialog_SetData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FindReplaceDialog_swigregister", FindReplaceDialog_swigregister, METH_VARARGS }, - { (char *)"new_MDIParentFrame", (PyCFunction) _wrap_new_MDIParentFrame, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreMDIParentFrame", (PyCFunction) _wrap_new_PreMDIParentFrame, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MDIParentFrame_Create", (PyCFunction) _wrap_MDIParentFrame_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MDIParentFrame_ActivateNext", (PyCFunction) _wrap_MDIParentFrame_ActivateNext, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MDIParentFrame_ActivatePrevious", (PyCFunction) _wrap_MDIParentFrame_ActivatePrevious, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MDIParentFrame_ArrangeIcons", (PyCFunction) _wrap_MDIParentFrame_ArrangeIcons, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MDIParentFrame_Cascade", (PyCFunction) _wrap_MDIParentFrame_Cascade, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MDIParentFrame_GetActiveChild", (PyCFunction) _wrap_MDIParentFrame_GetActiveChild, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MDIParentFrame_GetClientWindow", (PyCFunction) _wrap_MDIParentFrame_GetClientWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MDIParentFrame_GetToolBar", (PyCFunction) _wrap_MDIParentFrame_GetToolBar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MDIParentFrame_Tile", (PyCFunction) _wrap_MDIParentFrame_Tile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MDIParentFrame_swigregister", MDIParentFrame_swigregister, METH_VARARGS }, - { (char *)"new_MDIChildFrame", (PyCFunction) _wrap_new_MDIChildFrame, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreMDIChildFrame", (PyCFunction) _wrap_new_PreMDIChildFrame, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MDIChildFrame_Create", (PyCFunction) _wrap_MDIChildFrame_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MDIChildFrame_Activate", (PyCFunction) _wrap_MDIChildFrame_Activate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MDIChildFrame_Maximize", (PyCFunction) _wrap_MDIChildFrame_Maximize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MDIChildFrame_Restore", (PyCFunction) _wrap_MDIChildFrame_Restore, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MDIChildFrame_swigregister", MDIChildFrame_swigregister, METH_VARARGS }, - { (char *)"new_MDIClientWindow", (PyCFunction) _wrap_new_MDIClientWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreMDIClientWindow", (PyCFunction) _wrap_new_PreMDIClientWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MDIClientWindow_Create", (PyCFunction) _wrap_MDIClientWindow_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MDIClientWindow_swigregister", MDIClientWindow_swigregister, METH_VARARGS }, - { (char *)"new_PyWindow", (PyCFunction) _wrap_new_PyWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PrePyWindow", (PyCFunction) _wrap_new_PrePyWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyWindow__setCallbackInfo", (PyCFunction) _wrap_PyWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyWindow_base_DoMoveWindow", (PyCFunction) _wrap_PyWindow_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyWindow_base_DoSetSize", (PyCFunction) _wrap_PyWindow_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyWindow_base_DoSetClientSize", (PyCFunction) _wrap_PyWindow_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyWindow_base_DoSetVirtualSize", (PyCFunction) _wrap_PyWindow_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyWindow_base_DoGetSize", (PyCFunction) _wrap_PyWindow_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyWindow_base_DoGetClientSize", (PyCFunction) _wrap_PyWindow_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyWindow_base_DoGetPosition", (PyCFunction) _wrap_PyWindow_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyWindow_base_DoGetVirtualSize", (PyCFunction) _wrap_PyWindow_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyWindow_base_DoGetBestSize", (PyCFunction) _wrap_PyWindow_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyWindow_base_InitDialog", (PyCFunction) _wrap_PyWindow_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyWindow_base_TransferDataToWindow", (PyCFunction) _wrap_PyWindow_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyWindow_base_TransferDataFromWindow", (PyCFunction) _wrap_PyWindow_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyWindow_base_Validate", (PyCFunction) _wrap_PyWindow_base_Validate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyWindow_base_AcceptsFocus", (PyCFunction) _wrap_PyWindow_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyWindow_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyWindow_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyWindow_base_GetMaxSize", (PyCFunction) _wrap_PyWindow_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyWindow_base_AddChild", (PyCFunction) _wrap_PyWindow_base_AddChild, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyWindow_base_RemoveChild", (PyCFunction) _wrap_PyWindow_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyWindow_base_ShouldInheritColours", (PyCFunction) _wrap_PyWindow_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyWindow_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyWindow_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyWindow_swigregister", PyWindow_swigregister, METH_VARARGS }, - { (char *)"new_PyPanel", (PyCFunction) _wrap_new_PyPanel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PrePyPanel", (PyCFunction) _wrap_new_PrePyPanel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPanel__setCallbackInfo", (PyCFunction) _wrap_PyPanel__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPanel_base_DoMoveWindow", (PyCFunction) _wrap_PyPanel_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPanel_base_DoSetSize", (PyCFunction) _wrap_PyPanel_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPanel_base_DoSetClientSize", (PyCFunction) _wrap_PyPanel_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPanel_base_DoSetVirtualSize", (PyCFunction) _wrap_PyPanel_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPanel_base_DoGetSize", (PyCFunction) _wrap_PyPanel_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPanel_base_DoGetClientSize", (PyCFunction) _wrap_PyPanel_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPanel_base_DoGetPosition", (PyCFunction) _wrap_PyPanel_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPanel_base_DoGetVirtualSize", (PyCFunction) _wrap_PyPanel_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPanel_base_DoGetBestSize", (PyCFunction) _wrap_PyPanel_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPanel_base_InitDialog", (PyCFunction) _wrap_PyPanel_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPanel_base_TransferDataToWindow", (PyCFunction) _wrap_PyPanel_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPanel_base_TransferDataFromWindow", (PyCFunction) _wrap_PyPanel_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPanel_base_Validate", (PyCFunction) _wrap_PyPanel_base_Validate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPanel_base_AcceptsFocus", (PyCFunction) _wrap_PyPanel_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPanel_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyPanel_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPanel_base_GetMaxSize", (PyCFunction) _wrap_PyPanel_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPanel_base_AddChild", (PyCFunction) _wrap_PyPanel_base_AddChild, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPanel_base_RemoveChild", (PyCFunction) _wrap_PyPanel_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPanel_base_ShouldInheritColours", (PyCFunction) _wrap_PyPanel_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPanel_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyPanel_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPanel_swigregister", PyPanel_swigregister, METH_VARARGS }, - { (char *)"new_PyScrolledWindow", (PyCFunction) _wrap_new_PyScrolledWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PrePyScrolledWindow", (PyCFunction) _wrap_new_PrePyScrolledWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyScrolledWindow__setCallbackInfo", (PyCFunction) _wrap_PyScrolledWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyScrolledWindow_base_DoMoveWindow", (PyCFunction) _wrap_PyScrolledWindow_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyScrolledWindow_base_DoSetSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyScrolledWindow_base_DoSetClientSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyScrolledWindow_base_DoSetVirtualSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyScrolledWindow_base_DoGetSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyScrolledWindow_base_DoGetClientSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyScrolledWindow_base_DoGetPosition", (PyCFunction) _wrap_PyScrolledWindow_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyScrolledWindow_base_DoGetVirtualSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyScrolledWindow_base_DoGetBestSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyScrolledWindow_base_InitDialog", (PyCFunction) _wrap_PyScrolledWindow_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyScrolledWindow_base_TransferDataToWindow", (PyCFunction) _wrap_PyScrolledWindow_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyScrolledWindow_base_TransferDataFromWindow", (PyCFunction) _wrap_PyScrolledWindow_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyScrolledWindow_base_Validate", (PyCFunction) _wrap_PyScrolledWindow_base_Validate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyScrolledWindow_base_AcceptsFocus", (PyCFunction) _wrap_PyScrolledWindow_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyScrolledWindow_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyScrolledWindow_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyScrolledWindow_base_GetMaxSize", (PyCFunction) _wrap_PyScrolledWindow_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyScrolledWindow_base_AddChild", (PyCFunction) _wrap_PyScrolledWindow_base_AddChild, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyScrolledWindow_base_RemoveChild", (PyCFunction) _wrap_PyScrolledWindow_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyScrolledWindow_base_ShouldInheritColours", (PyCFunction) _wrap_PyScrolledWindow_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyScrolledWindow_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyScrolledWindow_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyScrolledWindow_swigregister", PyScrolledWindow_swigregister, METH_VARARGS }, - { (char *)"new_PrintData", (PyCFunction) _wrap_new_PrintData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_PrintData", (PyCFunction) _wrap_delete_PrintData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_GetNoCopies", (PyCFunction) _wrap_PrintData_GetNoCopies, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_GetCollate", (PyCFunction) _wrap_PrintData_GetCollate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_GetOrientation", (PyCFunction) _wrap_PrintData_GetOrientation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_Ok", (PyCFunction) _wrap_PrintData_Ok, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_GetPrinterName", (PyCFunction) _wrap_PrintData_GetPrinterName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_GetColour", (PyCFunction) _wrap_PrintData_GetColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_GetDuplex", (PyCFunction) _wrap_PrintData_GetDuplex, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_GetPaperId", (PyCFunction) _wrap_PrintData_GetPaperId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_GetPaperSize", (PyCFunction) _wrap_PrintData_GetPaperSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_GetQuality", (PyCFunction) _wrap_PrintData_GetQuality, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_SetNoCopies", (PyCFunction) _wrap_PrintData_SetNoCopies, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_SetCollate", (PyCFunction) _wrap_PrintData_SetCollate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_SetOrientation", (PyCFunction) _wrap_PrintData_SetOrientation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_SetPrinterName", (PyCFunction) _wrap_PrintData_SetPrinterName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_SetColour", (PyCFunction) _wrap_PrintData_SetColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_SetDuplex", (PyCFunction) _wrap_PrintData_SetDuplex, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_SetPaperId", (PyCFunction) _wrap_PrintData_SetPaperId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_SetPaperSize", (PyCFunction) _wrap_PrintData_SetPaperSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_SetQuality", (PyCFunction) _wrap_PrintData_SetQuality, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_GetPrinterCommand", (PyCFunction) _wrap_PrintData_GetPrinterCommand, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_GetPrinterOptions", (PyCFunction) _wrap_PrintData_GetPrinterOptions, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_GetPreviewCommand", (PyCFunction) _wrap_PrintData_GetPreviewCommand, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_GetFilename", (PyCFunction) _wrap_PrintData_GetFilename, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_GetFontMetricPath", (PyCFunction) _wrap_PrintData_GetFontMetricPath, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_GetPrinterScaleX", (PyCFunction) _wrap_PrintData_GetPrinterScaleX, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_GetPrinterScaleY", (PyCFunction) _wrap_PrintData_GetPrinterScaleY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_GetPrinterTranslateX", (PyCFunction) _wrap_PrintData_GetPrinterTranslateX, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_GetPrinterTranslateY", (PyCFunction) _wrap_PrintData_GetPrinterTranslateY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_GetPrintMode", (PyCFunction) _wrap_PrintData_GetPrintMode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_SetPrinterCommand", (PyCFunction) _wrap_PrintData_SetPrinterCommand, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_SetPrinterOptions", (PyCFunction) _wrap_PrintData_SetPrinterOptions, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_SetPreviewCommand", (PyCFunction) _wrap_PrintData_SetPreviewCommand, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_SetFilename", (PyCFunction) _wrap_PrintData_SetFilename, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_SetFontMetricPath", (PyCFunction) _wrap_PrintData_SetFontMetricPath, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_SetPrinterScaleX", (PyCFunction) _wrap_PrintData_SetPrinterScaleX, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_SetPrinterScaleY", (PyCFunction) _wrap_PrintData_SetPrinterScaleY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_SetPrinterScaling", (PyCFunction) _wrap_PrintData_SetPrinterScaling, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_SetPrinterTranslateX", (PyCFunction) _wrap_PrintData_SetPrinterTranslateX, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_SetPrinterTranslateY", (PyCFunction) _wrap_PrintData_SetPrinterTranslateY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_SetPrinterTranslation", (PyCFunction) _wrap_PrintData_SetPrinterTranslation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_SetPrintMode", (PyCFunction) _wrap_PrintData_SetPrintMode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_GetOutputStream", (PyCFunction) _wrap_PrintData_GetOutputStream, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_SetOutputStream", (PyCFunction) _wrap_PrintData_SetOutputStream, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_swigregister", PrintData_swigregister, METH_VARARGS }, - { (char *)"new_PageSetupDialogData", (PyCFunction) _wrap_new_PageSetupDialogData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_PageSetupDialogData", (PyCFunction) _wrap_delete_PageSetupDialogData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_EnableHelp", (PyCFunction) _wrap_PageSetupDialogData_EnableHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_EnableMargins", (PyCFunction) _wrap_PageSetupDialogData_EnableMargins, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_EnableOrientation", (PyCFunction) _wrap_PageSetupDialogData_EnableOrientation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_EnablePaper", (PyCFunction) _wrap_PageSetupDialogData_EnablePaper, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_EnablePrinter", (PyCFunction) _wrap_PageSetupDialogData_EnablePrinter, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_GetDefaultMinMargins", (PyCFunction) _wrap_PageSetupDialogData_GetDefaultMinMargins, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_GetEnableMargins", (PyCFunction) _wrap_PageSetupDialogData_GetEnableMargins, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_GetEnableOrientation", (PyCFunction) _wrap_PageSetupDialogData_GetEnableOrientation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_GetEnablePaper", (PyCFunction) _wrap_PageSetupDialogData_GetEnablePaper, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_GetEnablePrinter", (PyCFunction) _wrap_PageSetupDialogData_GetEnablePrinter, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_GetEnableHelp", (PyCFunction) _wrap_PageSetupDialogData_GetEnableHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_GetDefaultInfo", (PyCFunction) _wrap_PageSetupDialogData_GetDefaultInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_GetMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_GetMarginTopLeft, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_GetMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_GetMarginBottomRight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_GetMinMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_GetMinMarginTopLeft, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_GetMinMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_GetMinMarginBottomRight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_GetPaperId", (PyCFunction) _wrap_PageSetupDialogData_GetPaperId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_GetPaperSize", (PyCFunction) _wrap_PageSetupDialogData_GetPaperSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_GetPrintData", (PyCFunction) _wrap_PageSetupDialogData_GetPrintData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_Ok", (PyCFunction) _wrap_PageSetupDialogData_Ok, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_SetDefaultInfo", (PyCFunction) _wrap_PageSetupDialogData_SetDefaultInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_SetDefaultMinMargins", (PyCFunction) _wrap_PageSetupDialogData_SetDefaultMinMargins, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_SetMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_SetMarginTopLeft, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_SetMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_SetMarginBottomRight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_SetMinMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_SetMinMarginTopLeft, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_SetMinMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_SetMinMarginBottomRight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_SetPaperId", (PyCFunction) _wrap_PageSetupDialogData_SetPaperId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_SetPaperSize", (PyCFunction) _wrap_PageSetupDialogData_SetPaperSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_SetPrintData", (PyCFunction) _wrap_PageSetupDialogData_SetPrintData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_swigregister", PageSetupDialogData_swigregister, METH_VARARGS }, - { (char *)"new_PageSetupDialog", (PyCFunction) _wrap_new_PageSetupDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialog_GetPageSetupData", (PyCFunction) _wrap_PageSetupDialog_GetPageSetupData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialog_ShowModal", (PyCFunction) _wrap_PageSetupDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialog_swigregister", PageSetupDialog_swigregister, METH_VARARGS }, - { (char *)"new_PrintDialogData", _wrap_new_PrintDialogData, METH_VARARGS }, - { (char *)"delete_PrintDialogData", (PyCFunction) _wrap_delete_PrintDialogData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_GetFromPage", (PyCFunction) _wrap_PrintDialogData_GetFromPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_GetToPage", (PyCFunction) _wrap_PrintDialogData_GetToPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_GetMinPage", (PyCFunction) _wrap_PrintDialogData_GetMinPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_GetMaxPage", (PyCFunction) _wrap_PrintDialogData_GetMaxPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_GetNoCopies", (PyCFunction) _wrap_PrintDialogData_GetNoCopies, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_GetAllPages", (PyCFunction) _wrap_PrintDialogData_GetAllPages, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_GetSelection", (PyCFunction) _wrap_PrintDialogData_GetSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_GetCollate", (PyCFunction) _wrap_PrintDialogData_GetCollate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_GetPrintToFile", (PyCFunction) _wrap_PrintDialogData_GetPrintToFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_GetSetupDialog", (PyCFunction) _wrap_PrintDialogData_GetSetupDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_SetFromPage", (PyCFunction) _wrap_PrintDialogData_SetFromPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_SetToPage", (PyCFunction) _wrap_PrintDialogData_SetToPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_SetMinPage", (PyCFunction) _wrap_PrintDialogData_SetMinPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_SetMaxPage", (PyCFunction) _wrap_PrintDialogData_SetMaxPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_SetNoCopies", (PyCFunction) _wrap_PrintDialogData_SetNoCopies, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_SetAllPages", (PyCFunction) _wrap_PrintDialogData_SetAllPages, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_SetSelection", (PyCFunction) _wrap_PrintDialogData_SetSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_SetCollate", (PyCFunction) _wrap_PrintDialogData_SetCollate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_SetPrintToFile", (PyCFunction) _wrap_PrintDialogData_SetPrintToFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_SetSetupDialog", (PyCFunction) _wrap_PrintDialogData_SetSetupDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_EnablePrintToFile", (PyCFunction) _wrap_PrintDialogData_EnablePrintToFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_EnableSelection", (PyCFunction) _wrap_PrintDialogData_EnableSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_EnablePageNumbers", (PyCFunction) _wrap_PrintDialogData_EnablePageNumbers, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_EnableHelp", (PyCFunction) _wrap_PrintDialogData_EnableHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_GetEnablePrintToFile", (PyCFunction) _wrap_PrintDialogData_GetEnablePrintToFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_GetEnableSelection", (PyCFunction) _wrap_PrintDialogData_GetEnableSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_GetEnablePageNumbers", (PyCFunction) _wrap_PrintDialogData_GetEnablePageNumbers, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_GetEnableHelp", (PyCFunction) _wrap_PrintDialogData_GetEnableHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_Ok", (PyCFunction) _wrap_PrintDialogData_Ok, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_GetPrintData", (PyCFunction) _wrap_PrintDialogData_GetPrintData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_SetPrintData", (PyCFunction) _wrap_PrintDialogData_SetPrintData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_swigregister", PrintDialogData_swigregister, METH_VARARGS }, - { (char *)"new_PrintDialog", (PyCFunction) _wrap_new_PrintDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialog_GetPrintDialogData", (PyCFunction) _wrap_PrintDialog_GetPrintDialogData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialog_GetPrintDC", (PyCFunction) _wrap_PrintDialog_GetPrintDC, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialog_ShowModal", (PyCFunction) _wrap_PrintDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialog_swigregister", PrintDialog_swigregister, METH_VARARGS }, - { (char *)"new_Printer", (PyCFunction) _wrap_new_Printer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_Printer", (PyCFunction) _wrap_delete_Printer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printer_CreateAbortWindow", (PyCFunction) _wrap_Printer_CreateAbortWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printer_GetPrintDialogData", (PyCFunction) _wrap_Printer_GetPrintDialogData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printer_Print", (PyCFunction) _wrap_Printer_Print, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printer_PrintDialog", (PyCFunction) _wrap_Printer_PrintDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printer_ReportError", (PyCFunction) _wrap_Printer_ReportError, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printer_Setup", (PyCFunction) _wrap_Printer_Setup, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printer_GetAbort", (PyCFunction) _wrap_Printer_GetAbort, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printer_GetLastError", (PyCFunction) _wrap_Printer_GetLastError, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printer_swigregister", Printer_swigregister, METH_VARARGS }, - { (char *)"new_Printout", (PyCFunction) _wrap_new_Printout, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printout__setCallbackInfo", (PyCFunction) _wrap_Printout__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printout_GetTitle", (PyCFunction) _wrap_Printout_GetTitle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printout_GetDC", (PyCFunction) _wrap_Printout_GetDC, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printout_SetDC", (PyCFunction) _wrap_Printout_SetDC, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printout_SetPageSizePixels", (PyCFunction) _wrap_Printout_SetPageSizePixels, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printout_GetPageSizePixels", (PyCFunction) _wrap_Printout_GetPageSizePixels, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printout_SetPageSizeMM", (PyCFunction) _wrap_Printout_SetPageSizeMM, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printout_GetPageSizeMM", (PyCFunction) _wrap_Printout_GetPageSizeMM, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printout_SetPPIScreen", (PyCFunction) _wrap_Printout_SetPPIScreen, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printout_GetPPIScreen", (PyCFunction) _wrap_Printout_GetPPIScreen, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printout_SetPPIPrinter", (PyCFunction) _wrap_Printout_SetPPIPrinter, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printout_GetPPIPrinter", (PyCFunction) _wrap_Printout_GetPPIPrinter, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printout_IsPreview", (PyCFunction) _wrap_Printout_IsPreview, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printout_SetIsPreview", (PyCFunction) _wrap_Printout_SetIsPreview, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printout_base_OnBeginDocument", (PyCFunction) _wrap_Printout_base_OnBeginDocument, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printout_base_OnEndDocument", (PyCFunction) _wrap_Printout_base_OnEndDocument, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printout_base_OnBeginPrinting", (PyCFunction) _wrap_Printout_base_OnBeginPrinting, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printout_base_OnEndPrinting", (PyCFunction) _wrap_Printout_base_OnEndPrinting, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printout_base_OnPreparePrinting", (PyCFunction) _wrap_Printout_base_OnPreparePrinting, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printout_base_HasPage", (PyCFunction) _wrap_Printout_base_HasPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printout_base_GetPageInfo", (PyCFunction) _wrap_Printout_base_GetPageInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printout_swigregister", Printout_swigregister, METH_VARARGS }, - { (char *)"new_PreviewCanvas", (PyCFunction) _wrap_new_PreviewCanvas, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PreviewCanvas_swigregister", PreviewCanvas_swigregister, METH_VARARGS }, - { (char *)"new_PreviewFrame", (PyCFunction) _wrap_new_PreviewFrame, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PreviewFrame_Initialize", (PyCFunction) _wrap_PreviewFrame_Initialize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PreviewFrame_CreateControlBar", (PyCFunction) _wrap_PreviewFrame_CreateControlBar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PreviewFrame_CreateCanvas", (PyCFunction) _wrap_PreviewFrame_CreateCanvas, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PreviewFrame_GetControlBar", (PyCFunction) _wrap_PreviewFrame_GetControlBar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PreviewFrame_swigregister", PreviewFrame_swigregister, METH_VARARGS }, - { (char *)"new_PreviewControlBar", (PyCFunction) _wrap_new_PreviewControlBar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PreviewControlBar_GetZoomControl", (PyCFunction) _wrap_PreviewControlBar_GetZoomControl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PreviewControlBar_SetZoomControl", (PyCFunction) _wrap_PreviewControlBar_SetZoomControl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PreviewControlBar_GetPrintPreview", (PyCFunction) _wrap_PreviewControlBar_GetPrintPreview, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PreviewControlBar_OnNext", (PyCFunction) _wrap_PreviewControlBar_OnNext, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PreviewControlBar_OnPrevious", (PyCFunction) _wrap_PreviewControlBar_OnPrevious, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PreviewControlBar_OnFirst", (PyCFunction) _wrap_PreviewControlBar_OnFirst, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PreviewControlBar_OnLast", (PyCFunction) _wrap_PreviewControlBar_OnLast, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PreviewControlBar_OnGoto", (PyCFunction) _wrap_PreviewControlBar_OnGoto, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PreviewControlBar_swigregister", PreviewControlBar_swigregister, METH_VARARGS }, - { (char *)"new_PrintPreview", _wrap_new_PrintPreview, METH_VARARGS }, - { (char *)"PrintPreview_SetCurrentPage", (PyCFunction) _wrap_PrintPreview_SetCurrentPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintPreview_GetCurrentPage", (PyCFunction) _wrap_PrintPreview_GetCurrentPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintPreview_SetPrintout", (PyCFunction) _wrap_PrintPreview_SetPrintout, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintPreview_GetPrintout", (PyCFunction) _wrap_PrintPreview_GetPrintout, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintPreview_GetPrintoutForPrinting", (PyCFunction) _wrap_PrintPreview_GetPrintoutForPrinting, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintPreview_SetFrame", (PyCFunction) _wrap_PrintPreview_SetFrame, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintPreview_SetCanvas", (PyCFunction) _wrap_PrintPreview_SetCanvas, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintPreview_GetFrame", (PyCFunction) _wrap_PrintPreview_GetFrame, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintPreview_GetCanvas", (PyCFunction) _wrap_PrintPreview_GetCanvas, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintPreview_PaintPage", (PyCFunction) _wrap_PrintPreview_PaintPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintPreview_DrawBlankPage", (PyCFunction) _wrap_PrintPreview_DrawBlankPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintPreview_RenderPage", (PyCFunction) _wrap_PrintPreview_RenderPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintPreview_AdjustScrollbars", (PyCFunction) _wrap_PrintPreview_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintPreview_GetPrintDialogData", (PyCFunction) _wrap_PrintPreview_GetPrintDialogData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintPreview_SetZoom", (PyCFunction) _wrap_PrintPreview_SetZoom, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintPreview_GetZoom", (PyCFunction) _wrap_PrintPreview_GetZoom, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintPreview_GetMaxPage", (PyCFunction) _wrap_PrintPreview_GetMaxPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintPreview_GetMinPage", (PyCFunction) _wrap_PrintPreview_GetMinPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintPreview_Ok", (PyCFunction) _wrap_PrintPreview_Ok, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintPreview_SetOk", (PyCFunction) _wrap_PrintPreview_SetOk, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintPreview_Print", (PyCFunction) _wrap_PrintPreview_Print, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintPreview_DetermineScaling", (PyCFunction) _wrap_PrintPreview_DetermineScaling, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintPreview_swigregister", PrintPreview_swigregister, METH_VARARGS }, - { (char *)"new_PyPrintPreview", _wrap_new_PyPrintPreview, METH_VARARGS }, - { (char *)"PyPrintPreview__setCallbackInfo", (PyCFunction) _wrap_PyPrintPreview__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPrintPreview_base_SetCurrentPage", (PyCFunction) _wrap_PyPrintPreview_base_SetCurrentPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPrintPreview_base_PaintPage", (PyCFunction) _wrap_PyPrintPreview_base_PaintPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPrintPreview_base_DrawBlankPage", (PyCFunction) _wrap_PyPrintPreview_base_DrawBlankPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPrintPreview_base_RenderPage", (PyCFunction) _wrap_PyPrintPreview_base_RenderPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPrintPreview_base_SetZoom", (PyCFunction) _wrap_PyPrintPreview_base_SetZoom, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPrintPreview_base_Print", (PyCFunction) _wrap_PyPrintPreview_base_Print, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPrintPreview_base_DetermineScaling", (PyCFunction) _wrap_PyPrintPreview_base_DetermineScaling, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPrintPreview_swigregister", PyPrintPreview_swigregister, METH_VARARGS }, - { (char *)"new_PyPreviewFrame", (PyCFunction) _wrap_new_PyPreviewFrame, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPreviewFrame__setCallbackInfo", (PyCFunction) _wrap_PyPreviewFrame__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPreviewFrame_SetPreviewCanvas", (PyCFunction) _wrap_PyPreviewFrame_SetPreviewCanvas, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPreviewFrame_SetControlBar", (PyCFunction) _wrap_PyPreviewFrame_SetControlBar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPreviewFrame_base_Initialize", (PyCFunction) _wrap_PyPreviewFrame_base_Initialize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPreviewFrame_base_CreateCanvas", (PyCFunction) _wrap_PyPreviewFrame_base_CreateCanvas, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPreviewFrame_base_CreateControlBar", (PyCFunction) _wrap_PyPreviewFrame_base_CreateControlBar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPreviewFrame_swigregister", PyPreviewFrame_swigregister, METH_VARARGS }, - { (char *)"new_PyPreviewControlBar", (PyCFunction) _wrap_new_PyPreviewControlBar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPreviewControlBar__setCallbackInfo", (PyCFunction) _wrap_PyPreviewControlBar__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPreviewControlBar_SetPrintPreview", (PyCFunction) _wrap_PyPreviewControlBar_SetPrintPreview, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPreviewControlBar_base_CreateButtons", (PyCFunction) _wrap_PyPreviewControlBar_base_CreateButtons, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPreviewControlBar_base_SetZoomControl", (PyCFunction) _wrap_PyPreviewControlBar_base_SetZoomControl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPreviewControlBar_swigregister", PyPreviewControlBar_swigregister, METH_VARARGS }, - { NULL, NULL } -}; - - -/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ - -static void *_p_wxPyPreviewFrameTo_p_wxPreviewFrame(void *x) { - return (void *)((wxPreviewFrame *) ((wxPyPreviewFrame *) x)); -} -static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); -} -static void *_p_wxMenuEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxMenuEvent *) x)); -} -static void *_p_wxCloseEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxCloseEvent *) x)); -} -static void *_p_wxMouseEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxMouseEvent *) x)); -} -static void *_p_wxEraseEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxEraseEvent *) x)); -} -static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); -} -static void *_p_wxSplitterEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); -} -static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); -} -static void *_p_wxScrollEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); -} -static void *_p_wxFindDialogEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxFindDialogEvent *) x)); -} -static void *_p_wxPyEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxPyEvent *) x)); -} -static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); -} -static void *_p_wxCalculateLayoutEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxCalculateLayoutEvent *) x)); -} -static void *_p_wxIdleEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxIdleEvent *) x)); -} -static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); -} -static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); -} -static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); -} -static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxIconizeEvent *) x)); -} -static void *_p_wxActivateEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxActivateEvent *) x)); -} -static void *_p_wxSizeEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxSizeEvent *) x)); -} -static void *_p_wxMoveEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxMoveEvent *) x)); -} -static void *_p_wxPaintEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxPaintEvent *) x)); -} -static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); -} -static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); -} -static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); -} -static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); -} -static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); -} -static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); -} -static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); -} -static void *_p_wxFocusEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxFocusEvent *) x)); -} -static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); -} -static void *_p_wxSashEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxSashEvent *) x)); -} -static void *_p_wxQueryLayoutInfoEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxQueryLayoutInfoEvent *) x)); -} -static void *_p_wxShowEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxShowEvent *) x)); -} -static void *_p_wxCommandEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxCommandEvent *) x)); -} -static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); -} -static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); -} -static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); -} -static void *_p_wxKeyEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxKeyEvent *) x)); -} -static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); -} -static void *_p_wxTaskBarIconEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxTaskBarIconEvent *) x)); -} -static void *_p_wxSplitterEventTo_p_wxNotifyEvent(void *x) { - return (void *)((wxNotifyEvent *) ((wxSplitterEvent *) x)); -} -static void *_p_wxSplashScreenTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); -} -static void *_p_wxMiniFrameTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); -} -static void *_p_wxPyPanelTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyPanel *) x)); -} -static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); -} -static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) ((wxValidator *) x)); -} -static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); -} -static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) ((wxMenu *) x)); -} -static void *_p_wxTextEntryDialogTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); -} -static void *_p_wxSingleChoiceDialogTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); -} -static void *_p_wxMultiChoiceDialogTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); -} -static void *_p_wxFileDialogTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); -} -static void *_p_wxMessageDialogTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); -} -static void *_p_wxProgressDialogTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); -} -static void *_p_wxFindReplaceDialogTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); -} -static void *_p_wxPanelTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *) ((wxPanel *) x)); -} -static void *_p_wxStatusBarTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *) ((wxStatusBar *) x)); -} -static void *_p_wxPyVScrolledWindowTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); -} -static void *_p_wxTipWindowTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxTipWindow *) x)); -} -static void *_p_wxPyPopupTransientWindowTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); -} -static void *_p_wxPopupWindowTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *) ((wxPopupWindow *) x)); -} -static void *_p_wxSashLayoutWindowTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); -} -static void *_p_wxSashWindowTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *) ((wxSashWindow *) x)); -} -static void *_p_wxSplitterWindowTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplitterWindow *) x)); -} -static void *_p_wxSplashScreenWindowTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplashScreenWindow *) x)); -} -static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) ((wxWindow *) x)); -} -static void *_p_wxScrolledWindowTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); -} -static void *_p_wxTopLevelWindowTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *) ((wxTopLevelWindow *) x)); -} -static void *_p_wxMDIClientWindowTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *) ((wxMDIClientWindow *) x)); -} -static void *_p_wxPyScrolledWindowTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); -} -static void *_p_wxControlTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); -} -static void *_p_wxPreviewFrameTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); -} -static void *_p_wxPyPreviewFrameTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); -} -static void *_p_wxMDIChildFrameTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); -} -static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) ((wxPyApp *) x)); -} -static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); -} -static void *_p_wxPyWindowTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *) ((wxPyWindow *) x)); -} -static void *_p_wxPreviewCanvasTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); -} -static void *_p_wxPyHtmlListBoxTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); -} -static void *_p_wxPyVListBoxTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); -} -static void *_p_wxPreviewControlBarTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); -} -static void *_p_wxPyPreviewControlBarTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); -} -static void *_p_wxTaskBarIconTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) ((wxTaskBarIcon *) x)); -} -static void *_p_wxFrameTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); -} -static void *_p_wxFontDialogTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); -} -static void *_p_wxDirDialogTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); -} -static void *_p_wxColourDialogTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); -} -static void *_p_wxDialogTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); -} -static void *_p_wxPageSetupDialogTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); -} -static void *_p_wxPrintDialogTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); -} -static void *_p_wxMDIParentFrameTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); -} -static void *_p_wxPyHtmlListBoxTo_p_wxPyVListBox(void *x) { - return (void *)((wxPyVListBox *) ((wxPyHtmlListBox *) x)); -} -static void *_p_wxMDIChildFrameTo_p_wxFrame(void *x) { - return (void *)((wxFrame *) ((wxMDIChildFrame *) x)); -} -static void *_p_wxProgressDialogTo_p_wxFrame(void *x) { - return (void *)((wxFrame *) ((wxProgressDialog *) x)); -} -static void *_p_wxTipWindowTo_p_wxFrame(void *x) { - return (void *)((wxFrame *) ((wxTipWindow *) x)); -} -static void *_p_wxPreviewFrameTo_p_wxFrame(void *x) { - return (void *)((wxFrame *) ((wxPreviewFrame *) x)); -} -static void *_p_wxPyPreviewFrameTo_p_wxFrame(void *x) { - return (void *)((wxFrame *) (wxPreviewFrame *) ((wxPyPreviewFrame *) x)); -} -static void *_p_wxMiniFrameTo_p_wxFrame(void *x) { - return (void *)((wxFrame *) ((wxMiniFrame *) x)); -} -static void *_p_wxSplashScreenTo_p_wxFrame(void *x) { - return (void *)((wxFrame *) ((wxSplashScreen *) x)); -} -static void *_p_wxMDIParentFrameTo_p_wxFrame(void *x) { - return (void *)((wxFrame *) ((wxMDIParentFrame *) x)); -} -static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxLayoutConstraints *) x)); -} -static void *_p_wxQueryLayoutInfoEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxQueryLayoutInfoEvent *) x)); -} -static void *_p_wxPreviewFrameTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); -} -static void *_p_wxPyPreviewFrameTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); -} -static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); -} -static void *_p_wxSizerItemTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxSizerItem *) x)); -} -static void *_p_wxScrollEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); -} -static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); -} -static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); -} -static void *_p_wxBoxSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); -} -static void *_p_wxSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxSizer *) x)); -} -static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); -} -static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); -} -static void *_p_wxPyPanelTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyPanel *) x)); -} -static void *_p_wxEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxEvent *) x)); -} -static void *_p_wxFontDataTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxFontData *) x)); -} -static void *_p_wxPrintDataTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxPrintData *) x)); -} -static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); -} -static void *_p_wxGridSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); -} -static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); -} -static void *_p_wxLayoutAlgorithmTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxLayoutAlgorithm *) x)); -} -static void *_p_wxTaskBarIconTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *) ((wxTaskBarIcon *) x)); -} -static void *_p_wxFindDialogEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFindDialogEvent *) x)); -} -static void *_p_wxPaintEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); -} -static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); -} -static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); -} -static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); -} -static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); -} -static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); -} -static void *_p_wxPreviewCanvasTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); -} -static void *_p_wxControlTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); -} -static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); -} -static void *_p_wxSplitterEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); -} -static void *_p_wxFSFileTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxFSFile *) x)); -} -static void *_p_wxFindReplaceDataTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxFindReplaceData *) x)); -} -static void *_p_wxPySizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); -} -static void *_p_wxMDIChildFrameTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); -} -static void *_p_wxColourDataTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxColourData *) x)); -} -static void *_p_wxPyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); -} -static void *_p_wxNotifyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); -} -static void *_p_wxPyWindowTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPyWindow *) x)); -} -static void *_p_wxSplashScreenTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); -} -static void *_p_wxFileDialogTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); -} -static void *_p_wxMultiChoiceDialogTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); -} -static void *_p_wxSingleChoiceDialogTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); -} -static void *_p_wxTextEntryDialogTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); -} -static void *_p_wxMessageDialogTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); -} -static void *_p_wxProgressDialogTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); -} -static void *_p_wxFindReplaceDialogTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); -} -static void *_p_wxShowEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); -} -static void *_p_wxPrinterTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxPrinter *) x)); -} -static void *_p_wxMenuItemTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxMenuItem *) x)); -} -static void *_p_wxIdleEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); -} -static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); -} -static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); -} -static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); -} -static void *_p_wxIconizeEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); -} -static void *_p_wxSizeEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); -} -static void *_p_wxMoveEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); -} -static void *_p_wxActivateEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); -} -static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); -} -static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); -} -static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); -} -static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); -} -static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); -} -static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); -} -static void *_p_wxANIHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); -} -static void *_p_wxCURHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); -} -static void *_p_wxICOHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); -} -static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); -} -static void *_p_wxImageHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxImageHandler *) x)); -} -static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); -} -static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxEvtHandler *) x)); -} -static void *_p_wxCalculateLayoutEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxCalculateLayoutEvent *) x)); -} -static void *_p_wxPyVListBoxTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); -} -static void *_p_wxPyHtmlListBoxTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); -} -static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxAcceleratorTable *) x)); -} -static void *_p_wxMiniFrameTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); -} -static void *_p_wxImageTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxImage *) x)); -} -static void *_p_wxFrameTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); -} -static void *_p_wxPyPrintoutTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxPyPrintout *) x)); -} -static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); -} -static void *_p_wxTaskBarIconEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxTaskBarIconEvent *) x)); -} -static void *_p_wxStatusBarTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxStatusBar *) x)); -} -static void *_p_wxMDIParentFrameTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); -} -static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); -} -static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); -} -static void *_p_wxKeyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); -} -static void *_p_wxWindowTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); -} -static void *_p_wxMenuTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); -} -static void *_p_wxMenuBarTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); -} -static void *_p_wxScrolledWindowTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); -} -static void *_p_wxTopLevelWindowTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxTopLevelWindow *) x)); -} -static void *_p_wxSplashScreenWindowTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplashScreenWindow *) x)); -} -static void *_p_wxSplitterWindowTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplitterWindow *) x)); -} -static void *_p_wxSashWindowTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSashWindow *) x)); -} -static void *_p_wxSashLayoutWindowTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); -} -static void *_p_wxPopupWindowTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPopupWindow *) x)); -} -static void *_p_wxPyPopupTransientWindowTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); -} -static void *_p_wxTipWindowTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxTipWindow *) x)); -} -static void *_p_wxPyVScrolledWindowTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); -} -static void *_p_wxMDIClientWindowTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMDIClientWindow *) x)); -} -static void *_p_wxPyScrolledWindowTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); -} -static void *_p_wxSashEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxSashEvent *) x)); -} -static void *_p_wxPrintPreviewTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxPrintPreview *) x)); -} -static void *_p_wxPyPrintPreviewTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxPrintPreview *) ((wxPyPrintPreview *) x)); -} -static void *_p_wxPanelTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPanel *) x)); -} -static void *_p_wxDialogTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); -} -static void *_p_wxColourDialogTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); -} -static void *_p_wxDirDialogTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); -} -static void *_p_wxFontDialogTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); -} -static void *_p_wxPageSetupDialogTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); -} -static void *_p_wxPrintDialogTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); -} -static void *_p_wxFileSystemTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxFileSystem *) x)); -} -static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); -} -static void *_p_wxMenuEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); -} -static void *_p_wxPyAppTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); -} -static void *_p_wxCloseEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); -} -static void *_p_wxMouseEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); -} -static void *_p_wxEraseEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); -} -static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); -} -static void *_p_wxCommandEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); -} -static void *_p_wxPreviewControlBarTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); -} -static void *_p_wxPyPreviewControlBarTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); -} -static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); -} -static void *_p_wxFocusEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); -} -static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); -} -static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); -} -static void *_p_wxPageSetupDialogDataTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxPageSetupDialogData *) x)); -} -static void *_p_wxPrintDialogDataTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxPrintDialogData *) x)); -} -static void *_p_wxPyValidatorTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); -} -static void *_p_wxValidatorTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); -} -static void *_p_wxPyVListBoxTo_p_wxPyVScrolledWindow(void *x) { - return (void *)((wxPyVScrolledWindow *) ((wxPyVListBox *) x)); -} -static void *_p_wxPyHtmlListBoxTo_p_wxPyVScrolledWindow(void *x) { - return (void *)((wxPyVScrolledWindow *) (wxPyVListBox *) ((wxPyHtmlListBox *) x)); -} -static void *_p_wxPyPopupTransientWindowTo_p_wxPopupWindow(void *x) { - return (void *)((wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); -} -static void *_p_wxSashLayoutWindowTo_p_wxSashWindow(void *x) { - return (void *)((wxSashWindow *) ((wxSashLayoutWindow *) x)); -} -static void *_p_wxFrameTo_p_wxTopLevelWindow(void *x) { - return (void *)((wxTopLevelWindow *) ((wxFrame *) x)); -} -static void *_p_wxMiniFrameTo_p_wxTopLevelWindow(void *x) { - return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMiniFrame *) x)); -} -static void *_p_wxFontDialogTo_p_wxTopLevelWindow(void *x) { - return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFontDialog *) x)); -} -static void *_p_wxDirDialogTo_p_wxTopLevelWindow(void *x) { - return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxDirDialog *) x)); -} -static void *_p_wxColourDialogTo_p_wxTopLevelWindow(void *x) { - return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxColourDialog *) x)); -} -static void *_p_wxDialogTo_p_wxTopLevelWindow(void *x) { - return (void *)((wxTopLevelWindow *) ((wxDialog *) x)); -} -static void *_p_wxPageSetupDialogTo_p_wxTopLevelWindow(void *x) { - return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxPageSetupDialog *) x)); -} -static void *_p_wxPrintDialogTo_p_wxTopLevelWindow(void *x) { - return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxPrintDialog *) x)); -} -static void *_p_wxSplashScreenTo_p_wxTopLevelWindow(void *x) { - return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxSplashScreen *) x)); -} -static void *_p_wxTipWindowTo_p_wxTopLevelWindow(void *x) { - return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxTipWindow *) x)); -} -static void *_p_wxMDIParentFrameTo_p_wxTopLevelWindow(void *x) { - return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMDIParentFrame *) x)); -} -static void *_p_wxMDIChildFrameTo_p_wxTopLevelWindow(void *x) { - return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMDIChildFrame *) x)); -} -static void *_p_wxProgressDialogTo_p_wxTopLevelWindow(void *x) { - return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxProgressDialog *) x)); -} -static void *_p_wxMessageDialogTo_p_wxTopLevelWindow(void *x) { - return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxMessageDialog *) x)); -} -static void *_p_wxTextEntryDialogTo_p_wxTopLevelWindow(void *x) { - return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxTextEntryDialog *) x)); -} -static void *_p_wxSingleChoiceDialogTo_p_wxTopLevelWindow(void *x) { - return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxSingleChoiceDialog *) x)); -} -static void *_p_wxMultiChoiceDialogTo_p_wxTopLevelWindow(void *x) { - return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxMultiChoiceDialog *) x)); -} -static void *_p_wxFileDialogTo_p_wxTopLevelWindow(void *x) { - return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFileDialog *) x)); -} -static void *_p_wxFindReplaceDialogTo_p_wxTopLevelWindow(void *x) { - return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFindReplaceDialog *) x)); -} -static void *_p_wxPreviewFrameTo_p_wxTopLevelWindow(void *x) { - return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxPreviewFrame *) x)); -} -static void *_p_wxPyPreviewFrameTo_p_wxTopLevelWindow(void *x) { - return (void *)((wxTopLevelWindow *) (wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); -} -static void *_p_wxSplashScreenTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); -} -static void *_p_wxMiniFrameTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); -} -static void *_p_wxPyPanelTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxPanel *) ((wxPyPanel *) x)); -} -static void *_p_wxMenuBarTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) ((wxMenuBar *) x)); -} -static void *_p_wxFindReplaceDialogTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); -} -static void *_p_wxProgressDialogTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); -} -static void *_p_wxMessageDialogTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); -} -static void *_p_wxTextEntryDialogTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); -} -static void *_p_wxSingleChoiceDialogTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); -} -static void *_p_wxMultiChoiceDialogTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); -} -static void *_p_wxFileDialogTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); -} -static void *_p_wxPanelTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) ((wxPanel *) x)); -} -static void *_p_wxStatusBarTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) ((wxStatusBar *) x)); -} -static void *_p_wxMDIClientWindowTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) ((wxMDIClientWindow *) x)); -} -static void *_p_wxPyVScrolledWindowTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxPanel *) ((wxPyVScrolledWindow *) x)); -} -static void *_p_wxTipWindowTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxTipWindow *) x)); -} -static void *_p_wxPyPopupTransientWindowTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); -} -static void *_p_wxPopupWindowTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) ((wxPopupWindow *) x)); -} -static void *_p_wxSashLayoutWindowTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxSashWindow *) ((wxSashLayoutWindow *) x)); -} -static void *_p_wxScrolledWindowTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxPanel *) ((wxScrolledWindow *) x)); -} -static void *_p_wxTopLevelWindowTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) ((wxTopLevelWindow *) x)); -} -static void *_p_wxSplashScreenWindowTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) ((wxSplashScreenWindow *) x)); -} -static void *_p_wxSplitterWindowTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) ((wxSplitterWindow *) x)); -} -static void *_p_wxSashWindowTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) ((wxSashWindow *) x)); -} -static void *_p_wxPyScrolledWindowTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); -} -static void *_p_wxControlTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) ((wxControl *) x)); -} -static void *_p_wxPreviewFrameTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); -} -static void *_p_wxPyPreviewFrameTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); -} -static void *_p_wxMDIChildFrameTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); -} -static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); -} -static void *_p_wxPyWindowTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) ((wxPyWindow *) x)); -} -static void *_p_wxPreviewCanvasTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); -} -static void *_p_wxPyHtmlListBoxTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); -} -static void *_p_wxPyVListBoxTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); -} -static void *_p_wxPreviewControlBarTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxPanel *) ((wxPreviewControlBar *) x)); -} -static void *_p_wxPyPreviewControlBarTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); -} -static void *_p_wxFrameTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxFrame *) x)); -} -static void *_p_wxFontDialogTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); -} -static void *_p_wxDirDialogTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); -} -static void *_p_wxColourDialogTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); -} -static void *_p_wxDialogTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxDialog *) x)); -} -static void *_p_wxPageSetupDialogTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); -} -static void *_p_wxPrintDialogTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); -} -static void *_p_wxMDIParentFrameTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); -} -static void *_p_wxPyScrolledWindowTo_p_wxScrolledWindow(void *x) { - return (void *)((wxScrolledWindow *) ((wxPyScrolledWindow *) x)); -} -static void *_p_wxPreviewCanvasTo_p_wxScrolledWindow(void *x) { - return (void *)((wxScrolledWindow *) ((wxPreviewCanvas *) x)); -} -static void *_p_wxPyPrintPreviewTo_p_wxPrintPreview(void *x) { - return (void *)((wxPrintPreview *) ((wxPyPrintPreview *) x)); -} -static void *_p_wxColourDialogTo_p_wxDialog(void *x) { - return (void *)((wxDialog *) ((wxColourDialog *) x)); -} -static void *_p_wxDirDialogTo_p_wxDialog(void *x) { - return (void *)((wxDialog *) ((wxDirDialog *) x)); -} -static void *_p_wxFontDialogTo_p_wxDialog(void *x) { - return (void *)((wxDialog *) ((wxFontDialog *) x)); -} -static void *_p_wxPageSetupDialogTo_p_wxDialog(void *x) { - return (void *)((wxDialog *) ((wxPageSetupDialog *) x)); -} -static void *_p_wxPrintDialogTo_p_wxDialog(void *x) { - return (void *)((wxDialog *) ((wxPrintDialog *) x)); -} -static void *_p_wxFileDialogTo_p_wxDialog(void *x) { - return (void *)((wxDialog *) ((wxFileDialog *) x)); -} -static void *_p_wxMultiChoiceDialogTo_p_wxDialog(void *x) { - return (void *)((wxDialog *) ((wxMultiChoiceDialog *) x)); -} -static void *_p_wxSingleChoiceDialogTo_p_wxDialog(void *x) { - return (void *)((wxDialog *) ((wxSingleChoiceDialog *) x)); -} -static void *_p_wxTextEntryDialogTo_p_wxDialog(void *x) { - return (void *)((wxDialog *) ((wxTextEntryDialog *) x)); -} -static void *_p_wxMessageDialogTo_p_wxDialog(void *x) { - return (void *)((wxDialog *) ((wxMessageDialog *) x)); -} -static void *_p_wxFindReplaceDialogTo_p_wxDialog(void *x) { - return (void *)((wxDialog *) ((wxFindReplaceDialog *) x)); -} -static void *_p_wxScrolledWindowTo_p_wxPanel(void *x) { - return (void *)((wxPanel *) ((wxScrolledWindow *) x)); -} -static void *_p_wxPyVScrolledWindowTo_p_wxPanel(void *x) { - return (void *)((wxPanel *) ((wxPyVScrolledWindow *) x)); -} -static void *_p_wxPyScrolledWindowTo_p_wxPanel(void *x) { - return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPyScrolledWindow *) x)); -} -static void *_p_wxPyVListBoxTo_p_wxPanel(void *x) { - return (void *)((wxPanel *) (wxPyVScrolledWindow *) ((wxPyVListBox *) x)); -} -static void *_p_wxPyHtmlListBoxTo_p_wxPanel(void *x) { - return (void *)((wxPanel *) (wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); -} -static void *_p_wxPyPanelTo_p_wxPanel(void *x) { - return (void *)((wxPanel *) ((wxPyPanel *) x)); -} -static void *_p_wxPreviewCanvasTo_p_wxPanel(void *x) { - return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPreviewCanvas *) x)); -} -static void *_p_wxPreviewControlBarTo_p_wxPanel(void *x) { - return (void *)((wxPanel *) ((wxPreviewControlBar *) x)); -} -static void *_p_wxPyPreviewControlBarTo_p_wxPanel(void *x) { - return (void *)((wxPanel *) (wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); -} -static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); -} -static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); -} -static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); -} -static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); -} -static void *_p_wxFindDialogEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxFindDialogEvent *) x)); -} -static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); -} -static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); -} -static void *_p_wxSplitterEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSplitterEvent *) x)); -} -static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); -} -static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); -} -static void *_p_wxSashEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxSashEvent *) x)); -} -static void *_p_wxPyPreviewControlBarTo_p_wxPreviewControlBar(void *x) { - return (void *)((wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); -} -static swig_type_info _swigt__p_wxQueryLayoutInfoEvent[] = {{"_p_wxQueryLayoutInfoEvent", 0, "wxQueryLayoutInfoEvent *", 0, 0, 0, 0},{"_p_wxQueryLayoutInfoEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPreviewFrame[] = {{"_p_wxPreviewFrame", 0, "wxPreviewFrame *", 0, 0, 0, 0},{"_p_wxPreviewFrame", 0, 0, 0, 0, 0, 0},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_p_wxPreviewFrame, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyPreviewFrame[] = {{"_p_wxPyPreviewFrame", 0, "wxPyPreviewFrame *", 0, 0, 0, 0},{"_p_wxPyPreviewFrame", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyPanel[] = {{"_p_wxPyPanel", 0, "wxPyPanel *", 0, 0, 0, 0},{"_p_wxPyPanel", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMenu[] = {{"_p_wxMenu", 0, "wxMenu *", 0, 0, 0, 0},{"_p_wxMenu", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPrintData[] = {{"_p_wxPrintData", 0, "wxPrintData *", 0, 0, 0, 0},{"_p_wxPrintData", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFontData[] = {{"_p_wxFontData", 0, "wxFontData *", 0, 0, 0, 0},{"_p_wxFontData", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSplitterEvent", _p_wxSplitterEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFindDialogEvent", _p_wxFindDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCalculateLayoutEvent", _p_wxCalculateLayoutEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSashEvent", _p_wxSashEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxQueryLayoutInfoEvent", _p_wxQueryLayoutInfoEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxTaskBarIconEvent", _p_wxTaskBarIconEventTo_p_wxEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxTaskBarIcon[] = {{"_p_wxTaskBarIcon", 0, "wxTaskBarIcon *", 0, 0, 0, 0},{"_p_wxTaskBarIcon", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxIconBundle[] = {{"_p_wxIconBundle", 0, "wxIconBundle *", 0, 0, 0, 0},{"_p_wxIconBundle", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxLayoutAlgorithm[] = {{"_p_wxLayoutAlgorithm", 0, "wxLayoutAlgorithm *", 0, 0, 0, 0},{"_p_wxLayoutAlgorithm", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFindDialogEvent[] = {{"_p_wxFindDialogEvent", 0, "wxFindDialogEvent *", 0, 0, 0, 0},{"_p_wxFindDialogEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPreviewCanvas[] = {{"_p_wxPreviewCanvas", 0, "wxPreviewCanvas *", 0, 0, 0, 0},{"_p_wxPreviewCanvas", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0, 0, 0, 0},{"_p_wxFont", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSplitterEvent[] = {{"_p_wxSplitterEvent", 0, "wxSplitterEvent *", 0, 0, 0, 0},{"_p_wxSplitterEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0, 0, 0, 0},{"_p_wxRegion", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFindReplaceData[] = {{"_p_wxFindReplaceData", 0, "wxFindReplaceData *", 0, 0, 0, 0},{"_p_wxFindReplaceData", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0, 0, 0, 0},{"_p_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0, 0, 0, 0},{"_p_wxSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0, 0, 0, 0},{"_p_wxDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0, 0, 0, 0},{"_p_wxIcon", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMDIChildFrame[] = {{"_p_wxMDIChildFrame", 0, "wxMDIChildFrame *", 0, 0, 0, 0},{"_p_wxMDIChildFrame", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxColourData[] = {{"_p_wxColourData", 0, "wxColourData *", 0, 0, 0, 0},{"_p_wxColourData", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxNotifyEvent[] = {{"_p_wxNotifyEvent", 0, "wxNotifyEvent *", 0, 0, 0, 0},{"_p_wxSplitterEvent", _p_wxSplitterEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyWindow[] = {{"_p_wxPyWindow", 0, "wxPyWindow *", 0, 0, 0, 0},{"_p_wxPyWindow", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSplashScreen[] = {{"_p_wxSplashScreen", 0, "wxSplashScreen *", 0, 0, 0, 0},{"_p_wxSplashScreen", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFindReplaceDialog[] = {{"_p_wxFindReplaceDialog", 0, "wxFindReplaceDialog *", 0, 0, 0, 0},{"_p_wxFindReplaceDialog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxProgressDialog[] = {{"_p_wxProgressDialog", 0, "wxProgressDialog *", 0, 0, 0, 0},{"_p_wxProgressDialog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMessageDialog[] = {{"_p_wxMessageDialog", 0, "wxMessageDialog *", 0, 0, 0, 0},{"_p_wxMessageDialog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxTextEntryDialog[] = {{"_p_wxTextEntryDialog", 0, "wxTextEntryDialog *", 0, 0, 0, 0},{"_p_wxTextEntryDialog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSingleChoiceDialog[] = {{"_p_wxSingleChoiceDialog", 0, "wxSingleChoiceDialog *", 0, 0, 0, 0},{"_p_wxSingleChoiceDialog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMultiChoiceDialog[] = {{"_p_wxMultiChoiceDialog", 0, "wxMultiChoiceDialog *", 0, 0, 0, 0},{"_p_wxMultiChoiceDialog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFileDialog[] = {{"_p_wxFileDialog", 0, "wxFileDialog *", 0, 0, 0, 0},{"_p_wxFileDialog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPrinter[] = {{"_p_wxPrinter", 0, "wxPrinter *", 0, 0, 0, 0},{"_p_wxPrinter", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxArrayInt[] = {{"_p_wxArrayInt", 0, "wxArrayInt *", 0, 0, 0, 0},{"_p_wxArrayInt", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxSplashScreen", _p_wxSplashScreenTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMiniFrame", _p_wxMiniFrameTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyPanel", _p_wxPyPanelTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxFindReplaceDialog", _p_wxFindReplaceDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxTextEntryDialog", _p_wxTextEntryDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSingleChoiceDialog", _p_wxSingleChoiceDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMultiChoiceDialog", _p_wxMultiChoiceDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxFileDialog", _p_wxFileDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMessageDialog", _p_wxMessageDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxProgressDialog", _p_wxProgressDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPanel", _p_wxPanelTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStatusBar", _p_wxStatusBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxTipWindow", _p_wxTipWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxTopLevelWindow", _p_wxTopLevelWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMDIClientWindow", _p_wxMDIClientWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyVScrolledWindow", _p_wxPyVScrolledWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyScrolledWindow", _p_wxPyScrolledWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxScrolledWindow", _p_wxScrolledWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSashWindow", _p_wxSashWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSashLayoutWindow", _p_wxSashLayoutWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSplitterWindow", _p_wxSplitterWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSplashScreenWindow", _p_wxSplashScreenWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPopupWindow", _p_wxPopupWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyPopupTransientWindow", _p_wxPyPopupTransientWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPreviewFrame", _p_wxPreviewFrameTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMDIChildFrame", _p_wxMDIChildFrameTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyWindow", _p_wxPyWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPreviewControlBar", _p_wxPreviewControlBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxTaskBarIcon", _p_wxTaskBarIconTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxFrame", _p_wxFrameTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPageSetupDialog", _p_wxPageSetupDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPrintDialog", _p_wxPrintDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxDialog", _p_wxDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxColourDialog", _p_wxColourDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxDirDialog", _p_wxDirDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxFontDialog", _p_wxFontDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMDIParentFrame", _p_wxMDIParentFrameTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxCalculateLayoutEvent[] = {{"_p_wxCalculateLayoutEvent", 0, "wxCalculateLayoutEvent *", 0, 0, 0, 0},{"_p_wxCalculateLayoutEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyHtmlListBox[] = {{"_p_wxPyHtmlListBox", 0, "wxPyHtmlListBox *", 0, 0, 0, 0},{"_p_wxPyHtmlListBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyVListBox[] = {{"_p_wxPyVListBox", 0, "wxPyVListBox *", 0, 0, 0, 0},{"_p_wxPyVListBox", 0, 0, 0, 0, 0, 0},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxPyVListBox, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0, 0, 0, 0},{"_p_wxRect", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMiniFrame[] = {{"_p_wxMiniFrame", 0, "wxMiniFrame *", 0, 0, 0, 0},{"_p_wxMiniFrame", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFrame[] = {{"_p_wxFrame", 0, "wxFrame *", 0, 0, 0, 0},{"_p_wxMDIChildFrame", _p_wxMDIChildFrameTo_p_wxFrame, 0, 0, 0, 0, 0},{"_p_wxProgressDialog", _p_wxProgressDialogTo_p_wxFrame, 0, 0, 0, 0, 0},{"_p_wxTipWindow", _p_wxTipWindowTo_p_wxFrame, 0, 0, 0, 0, 0},{"_p_wxPreviewFrame", _p_wxPreviewFrameTo_p_wxFrame, 0, 0, 0, 0, 0},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_p_wxFrame, 0, 0, 0, 0, 0},{"_p_wxMiniFrame", _p_wxMiniFrameTo_p_wxFrame, 0, 0, 0, 0, 0},{"_p_wxFrame", 0, 0, 0, 0, 0, 0},{"_p_wxSplashScreen", _p_wxSplashScreenTo_p_wxFrame, 0, 0, 0, 0, 0},{"_p_wxMDIParentFrame", _p_wxMDIParentFrameTo_p_wxFrame, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyPrintout[] = {{"_p_wxPyPrintout", 0, "wxPyPrintout *", 0, 0, 0, 0},{"_p_wxPyPrintout", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxTaskBarIconEvent[] = {{"_p_wxTaskBarIconEvent", 0, "wxTaskBarIconEvent *", 0, 0, 0, 0},{"_p_wxTaskBarIconEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxScrollWinEvent[] = {{"_p_wxScrollWinEvent", 0, "wxScrollWinEvent *", 0, 0, 0, 0},{"_p_wxScrollWinEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxStatusBar[] = {{"_p_wxStatusBar", 0, "wxStatusBar *", 0, 0, 0, 0},{"_p_wxStatusBar", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMDIParentFrame[] = {{"_p_wxMDIParentFrame", 0, "wxMDIParentFrame *", 0, 0, 0, 0},{"_p_wxMDIParentFrame", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0, 0, 0, 0},{"_p_wxPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxQueryLayoutInfoEvent", _p_wxQueryLayoutInfoEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPreviewFrame", _p_wxPreviewFrameTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyPanel", _p_wxPyPanelTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFontData", _p_wxFontDataTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPrintData", _p_wxPrintDataTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTaskBarIcon", _p_wxTaskBarIconTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxLayoutAlgorithm", _p_wxLayoutAlgorithmTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFindDialogEvent", _p_wxFindDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSplitterEvent", _p_wxSplitterEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFindReplaceData", _p_wxFindReplaceDataTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMDIChildFrame", _p_wxMDIChildFrameTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxColourData", _p_wxColourDataTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyWindow", _p_wxPyWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSplashScreen", _p_wxSplashScreenTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTextEntryDialog", _p_wxTextEntryDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMessageDialog", _p_wxMessageDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxProgressDialog", _p_wxProgressDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFindReplaceDialog", _p_wxFindReplaceDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSingleChoiceDialog", _p_wxSingleChoiceDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMultiChoiceDialog", _p_wxMultiChoiceDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileDialog", _p_wxFileDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPrinter", _p_wxPrinterTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCalculateLayoutEvent", _p_wxCalculateLayoutEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMiniFrame", _p_wxMiniFrameTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFrame", _p_wxFrameTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyPrintout", _p_wxPyPrintoutTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTaskBarIconEvent", _p_wxTaskBarIconEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStatusBar", _p_wxStatusBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMDIParentFrame", _p_wxMDIParentFrameTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrolledWindow", _p_wxScrolledWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyScrolledWindow", _p_wxPyScrolledWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyVScrolledWindow", _p_wxPyVScrolledWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMDIClientWindow", _p_wxMDIClientWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTopLevelWindow", _p_wxTopLevelWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTipWindow", _p_wxTipWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSashWindow", _p_wxSashWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSashLayoutWindow", _p_wxSashLayoutWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSplitterWindow", _p_wxSplitterWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSplashScreenWindow", _p_wxSplashScreenWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPopupWindow", _p_wxPopupWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyPopupTransientWindow", _p_wxPyPopupTransientWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSashEvent", _p_wxSashEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPrintPreview", _p_wxPrintPreviewTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyPrintPreview", _p_wxPyPrintPreviewTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPanel", _p_wxPanelTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPrintDialog", _p_wxPrintDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPageSetupDialog", _p_wxPageSetupDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDialog", _p_wxDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxColourDialog", _p_wxColourDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDirDialog", _p_wxDirDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFontDialog", _p_wxFontDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPreviewControlBar", _p_wxPreviewControlBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPageSetupDialogData", _p_wxPageSetupDialogDataTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPrintDialogData", _p_wxPrintDialogDataTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxOutputStream[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0, 0, 0, 0},{"_p_wxOutputStream", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_unsigned_long[] = {{"_p_unsigned_long", 0, "unsigned long *", 0, 0, 0, 0},{"_p_unsigned_long", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyScrolledWindow[] = {{"_p_wxPyScrolledWindow", 0, "wxPyScrolledWindow *", 0, 0, 0, 0},{"_p_wxPyScrolledWindow", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMDIClientWindow[] = {{"_p_wxMDIClientWindow", 0, "wxMDIClientWindow *", 0, 0, 0, 0},{"_p_wxMDIClientWindow", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxTipWindow[] = {{"_p_wxTipWindow", 0, "wxTipWindow *", 0, 0, 0, 0},{"_p_wxTipWindow", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyPopupTransientWindow[] = {{"_p_wxPyPopupTransientWindow", 0, "wxPyPopupTransientWindow *", 0, 0, 0, 0},{"_p_wxPyPopupTransientWindow", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSashLayoutWindow[] = {{"_p_wxSashLayoutWindow", 0, "wxSashLayoutWindow *", 0, 0, 0, 0},{"_p_wxSashLayoutWindow", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSplitterWindow[] = {{"_p_wxSplitterWindow", 0, "wxSplitterWindow *", 0, 0, 0, 0},{"_p_wxSplitterWindow", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyVScrolledWindow[] = {{"_p_wxPyVScrolledWindow", 0, "wxPyVScrolledWindow *", 0, 0, 0, 0},{"_p_wxPyVScrolledWindow", 0, 0, 0, 0, 0, 0},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxPyVScrolledWindow, 0, 0, 0, 0, 0},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxPyVScrolledWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPopupWindow[] = {{"_p_wxPopupWindow", 0, "wxPopupWindow *", 0, 0, 0, 0},{"_p_wxPopupWindow", 0, 0, 0, 0, 0, 0},{"_p_wxPyPopupTransientWindow", _p_wxPyPopupTransientWindowTo_p_wxPopupWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSashWindow[] = {{"_p_wxSashWindow", 0, "wxSashWindow *", 0, 0, 0, 0},{"_p_wxSashWindow", 0, 0, 0, 0, 0, 0},{"_p_wxSashLayoutWindow", _p_wxSashLayoutWindowTo_p_wxSashWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxTopLevelWindow[] = {{"_p_wxTopLevelWindow", 0, "wxTopLevelWindow *", 0, 0, 0, 0},{"_p_wxFrame", _p_wxFrameTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxMiniFrame", _p_wxMiniFrameTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxColourDialog", _p_wxColourDialogTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxDialog", _p_wxDialogTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxPageSetupDialog", _p_wxPageSetupDialogTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxPrintDialog", _p_wxPrintDialogTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxDirDialog", _p_wxDirDialogTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxFontDialog", _p_wxFontDialogTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxSplashScreen", _p_wxSplashScreenTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxTipWindow", _p_wxTipWindowTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxTopLevelWindow", 0, 0, 0, 0, 0, 0},{"_p_wxMDIParentFrame", _p_wxMDIParentFrameTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxMDIChildFrame", _p_wxMDIChildFrameTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxProgressDialog", _p_wxProgressDialogTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxFileDialog", _p_wxFileDialogTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxMultiChoiceDialog", _p_wxMultiChoiceDialogTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxSingleChoiceDialog", _p_wxSingleChoiceDialogTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxTextEntryDialog", _p_wxTextEntryDialogTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxMessageDialog", _p_wxMessageDialogTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxFindReplaceDialog", _p_wxFindReplaceDialogTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxPreviewFrame", _p_wxPreviewFrameTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxSplashScreen", _p_wxSplashScreenTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMiniFrame", _p_wxMiniFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyPanel", _p_wxPyPanelTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxFindReplaceDialog", _p_wxFindReplaceDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxProgressDialog", _p_wxProgressDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMessageDialog", _p_wxMessageDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxTextEntryDialog", _p_wxTextEntryDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSingleChoiceDialog", _p_wxSingleChoiceDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMultiChoiceDialog", _p_wxMultiChoiceDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxFileDialog", _p_wxFileDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPanel", _p_wxPanelTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStatusBar", _p_wxStatusBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxTipWindow", _p_wxTipWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxTopLevelWindow", _p_wxTopLevelWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSplashScreenWindow", _p_wxSplashScreenWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSplitterWindow", _p_wxSplitterWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSashLayoutWindow", _p_wxSashLayoutWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSashWindow", _p_wxSashWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyVScrolledWindow", _p_wxPyVScrolledWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyScrolledWindow", _p_wxPyScrolledWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxScrolledWindow", _p_wxScrolledWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPopupWindow", _p_wxPopupWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyPopupTransientWindow", _p_wxPyPopupTransientWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMDIClientWindow", _p_wxMDIClientWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPreviewFrame", _p_wxPreviewFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMDIChildFrame", _p_wxMDIChildFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyWindow", _p_wxPyWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPreviewControlBar", _p_wxPreviewControlBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxFrame", _p_wxFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPrintDialog", _p_wxPrintDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPageSetupDialog", _p_wxPageSetupDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxDialog", _p_wxDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxColourDialog", _p_wxColourDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxDirDialog", _p_wxDirDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxFontDialog", _p_wxFontDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMDIParentFrame", _p_wxMDIParentFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxScrolledWindow[] = {{"_p_wxScrolledWindow", 0, "wxScrolledWindow *", 0, 0, 0, 0},{"_p_wxScrolledWindow", 0, 0, 0, 0, 0, 0},{"_p_wxPyScrolledWindow", _p_wxPyScrolledWindowTo_p_wxScrolledWindow, 0, 0, 0, 0, 0},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxScrolledWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSplashScreenWindow[] = {{"_p_wxSplashScreenWindow", 0, "wxSplashScreenWindow *", 0, 0, 0, 0},{"_p_wxSplashScreenWindow", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMenuBar[] = {{"_p_wxMenuBar", 0, "wxMenuBar *", 0, 0, 0, 0},{"_p_wxMenuBar", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPrintPreview[] = {{"_p_wxPrintPreview", 0, "wxPrintPreview *", 0, 0, 0, 0},{"_p_wxPrintPreview", 0, 0, 0, 0, 0, 0},{"_p_wxPyPrintPreview", _p_wxPyPrintPreviewTo_p_wxPrintPreview, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSashEvent[] = {{"_p_wxSashEvent", 0, "wxSashEvent *", 0, 0, 0, 0},{"_p_wxSashEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0, 0, 0, 0},{"_p_wxString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyPrintPreview[] = {{"_p_wxPyPrintPreview", 0, "wxPyPrintPreview *", 0, 0, 0, 0},{"_p_wxPyPrintPreview", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFontDialog[] = {{"_p_wxFontDialog", 0, "wxFontDialog *", 0, 0, 0, 0},{"_p_wxFontDialog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxDirDialog[] = {{"_p_wxDirDialog", 0, "wxDirDialog *", 0, 0, 0, 0},{"_p_wxDirDialog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxColourDialog[] = {{"_p_wxColourDialog", 0, "wxColourDialog *", 0, 0, 0, 0},{"_p_wxColourDialog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxDialog[] = {{"_p_wxDialog", 0, "wxDialog *", 0, 0, 0, 0},{"_p_wxDialog", 0, 0, 0, 0, 0, 0},{"_p_wxColourDialog", _p_wxColourDialogTo_p_wxDialog, 0, 0, 0, 0, 0},{"_p_wxDirDialog", _p_wxDirDialogTo_p_wxDialog, 0, 0, 0, 0, 0},{"_p_wxFontDialog", _p_wxFontDialogTo_p_wxDialog, 0, 0, 0, 0, 0},{"_p_wxPageSetupDialog", _p_wxPageSetupDialogTo_p_wxDialog, 0, 0, 0, 0, 0},{"_p_wxPrintDialog", _p_wxPrintDialogTo_p_wxDialog, 0, 0, 0, 0, 0},{"_p_wxFileDialog", _p_wxFileDialogTo_p_wxDialog, 0, 0, 0, 0, 0},{"_p_wxMultiChoiceDialog", _p_wxMultiChoiceDialogTo_p_wxDialog, 0, 0, 0, 0, 0},{"_p_wxSingleChoiceDialog", _p_wxSingleChoiceDialogTo_p_wxDialog, 0, 0, 0, 0, 0},{"_p_wxTextEntryDialog", _p_wxTextEntryDialogTo_p_wxDialog, 0, 0, 0, 0, 0},{"_p_wxMessageDialog", _p_wxMessageDialogTo_p_wxDialog, 0, 0, 0, 0, 0},{"_p_wxFindReplaceDialog", _p_wxFindReplaceDialogTo_p_wxDialog, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPanel[] = {{"_p_wxPanel", 0, "wxPanel *", 0, 0, 0, 0},{"_p_wxPanel", 0, 0, 0, 0, 0, 0},{"_p_wxScrolledWindow", _p_wxScrolledWindowTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPyScrolledWindow", _p_wxPyScrolledWindowTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPyVScrolledWindow", _p_wxPyVScrolledWindowTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPyPanel", _p_wxPyPanelTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPreviewControlBar", _p_wxPreviewControlBarTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxPanel, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPageSetupDialog[] = {{"_p_wxPageSetupDialog", 0, "wxPageSetupDialog *", 0, 0, 0, 0},{"_p_wxPageSetupDialog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPrintDialog[] = {{"_p_wxPrintDialog", 0, "wxPrintDialog *", 0, 0, 0, 0},{"_p_wxPrintDialog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0, 0, 0, 0},{"_p_wxBitmap", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxFindDialogEvent", _p_wxFindDialogEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxSplitterEvent", _p_wxSplitterEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", 0, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxSashEvent", _p_wxSashEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPreviewControlBar[] = {{"_p_wxPreviewControlBar", 0, "wxPreviewControlBar *", 0, 0, 0, 0},{"_p_wxPreviewControlBar", 0, 0, 0, 0, 0, 0},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxPreviewControlBar, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyPreviewControlBar[] = {{"_p_wxPyPreviewControlBar", 0, "wxPyPreviewControlBar *", 0, 0, 0, 0},{"_p_wxPyPreviewControlBar", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0, 0, 0, 0},{"_p_wxColour", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxToolBar[] = {{"_p_wxToolBar", 0, "wxToolBar *", 0, 0, 0, 0},{"_p_wxToolBar", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPageSetupDialogData[] = {{"_p_wxPageSetupDialogData", 0, "wxPageSetupDialogData *", 0, 0, 0, 0},{"_p_wxPageSetupDialogData", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPrintDialogData[] = {{"_p_wxPrintDialogData", 0, "wxPrintDialogData *", 0, 0, 0, 0},{"_p_wxPrintDialogData", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; - -static swig_type_info *swig_types_initial[] = { -_swigt__p_wxQueryLayoutInfoEvent, -_swigt__p_wxPreviewFrame, -_swigt__p_wxPyPreviewFrame, -_swigt__p_wxPyPanel, -_swigt__p_wxMenu, -_swigt__p_wxPrintData, -_swigt__p_wxFontData, -_swigt__p_wxEvent, -_swigt__p_wxTaskBarIcon, -_swigt__p_wxIconBundle, -_swigt__p_wxLayoutAlgorithm, -_swigt__p_wxFindDialogEvent, -_swigt__p_wxPreviewCanvas, -_swigt__p_wxFont, -_swigt__p_wxSplitterEvent, -_swigt__p_wxRegion, -_swigt__p_wxFindReplaceData, -_swigt__p_int, -_swigt__p_wxSize, -_swigt__p_wxDC, -_swigt__p_wxIcon, -_swigt__p_wxMDIChildFrame, -_swigt__p_wxColourData, -_swigt__p_wxNotifyEvent, -_swigt__p_wxPyWindow, -_swigt__p_wxSplashScreen, -_swigt__p_wxFindReplaceDialog, -_swigt__p_wxProgressDialog, -_swigt__p_wxMessageDialog, -_swigt__p_wxTextEntryDialog, -_swigt__p_wxSingleChoiceDialog, -_swigt__p_wxMultiChoiceDialog, -_swigt__p_wxFileDialog, -_swigt__p_wxPrinter, -_swigt__p_wxArrayInt, -_swigt__p_wxEvtHandler, -_swigt__p_wxCalculateLayoutEvent, -_swigt__p_wxPyHtmlListBox, -_swigt__p_wxPyVListBox, -_swigt__p_wxRect, -_swigt__p_char, -_swigt__p_wxMiniFrame, -_swigt__p_wxFrame, -_swigt__p_wxPyPrintout, -_swigt__p_wxTaskBarIconEvent, -_swigt__p_wxScrollWinEvent, -_swigt__p_wxStatusBar, -_swigt__p_wxMDIParentFrame, -_swigt__p_wxPoint, -_swigt__p_wxObject, -_swigt__p_wxOutputStream, -_swigt__p_unsigned_long, -_swigt__p_wxPyScrolledWindow, -_swigt__p_wxMDIClientWindow, -_swigt__p_wxTipWindow, -_swigt__p_wxPyPopupTransientWindow, -_swigt__p_wxSashLayoutWindow, -_swigt__p_wxSplitterWindow, -_swigt__p_wxPyVScrolledWindow, -_swigt__p_wxPopupWindow, -_swigt__p_wxSashWindow, -_swigt__p_wxTopLevelWindow, -_swigt__p_wxWindow, -_swigt__p_wxScrolledWindow, -_swigt__p_wxSplashScreenWindow, -_swigt__p_wxMenuBar, -_swigt__p_wxPrintPreview, -_swigt__p_wxSashEvent, -_swigt__p_wxString, -_swigt__p_wxPyPrintPreview, -_swigt__p_wxFontDialog, -_swigt__p_wxDirDialog, -_swigt__p_wxColourDialog, -_swigt__p_wxDialog, -_swigt__p_wxPanel, -_swigt__p_wxPageSetupDialog, -_swigt__p_wxPrintDialog, -_swigt__p_wxBitmap, -_swigt__p_wxCommandEvent, -_swigt__p_wxPreviewControlBar, -_swigt__p_wxPyPreviewControlBar, -_swigt__p_wxColour, -_swigt__p_wxToolBar, -_swigt__p_wxPageSetupDialogData, -_swigt__p_wxPrintDialogData, -0 -}; - - -/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ - -static swig_const_info swig_const_table[] = { -{0}}; - -#ifdef __cplusplus -} -#endif - -#ifdef __cplusplus -extern "C" -#endif -SWIGEXPORT(void) SWIG_init(void) { - static PyObject *SWIG_globals = 0; - static int typeinit = 0; - PyObject *m, *d; - int i; - if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); - m = Py_InitModule((char *) SWIG_name, SwigMethods); - d = PyModule_GetDict(m); - - if (!typeinit) { - for (i = 0; swig_types_initial[i]; i++) { - swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); - } - typeinit = 1; - } - SWIG_InstallConstants(d,swig_const_table); - - PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); - SWIG_addvarlink(SWIG_globals,(char*)"FrameNameStr",_wrap_FrameNameStr_get, _wrap_FrameNameStr_set); - SWIG_addvarlink(SWIG_globals,(char*)"DialogNameStr",_wrap_DialogNameStr_get, _wrap_DialogNameStr_set); - SWIG_addvarlink(SWIG_globals,(char*)"StatusLineNameStr",_wrap_StatusLineNameStr_get, _wrap_StatusLineNameStr_set); - SWIG_addvarlink(SWIG_globals,(char*)"ToolBarNameStr",_wrap_ToolBarNameStr_get, _wrap_ToolBarNameStr_set); - PyDict_SetItemString(d,"STAY_ON_TOP", SWIG_FromInt((int)wxSTAY_ON_TOP)); - PyDict_SetItemString(d,"ICONIZE", SWIG_FromInt((int)wxICONIZE)); - PyDict_SetItemString(d,"MINIMIZE", SWIG_FromInt((int)wxMINIMIZE)); - PyDict_SetItemString(d,"MAXIMIZE", SWIG_FromInt((int)wxMAXIMIZE)); - PyDict_SetItemString(d,"CLOSE_BOX", SWIG_FromInt((int)wxCLOSE_BOX)); - PyDict_SetItemString(d,"THICK_FRAME", SWIG_FromInt((int)wxTHICK_FRAME)); - PyDict_SetItemString(d,"SYSTEM_MENU", SWIG_FromInt((int)wxSYSTEM_MENU)); - PyDict_SetItemString(d,"MINIMIZE_BOX", SWIG_FromInt((int)wxMINIMIZE_BOX)); - PyDict_SetItemString(d,"MAXIMIZE_BOX", SWIG_FromInt((int)wxMAXIMIZE_BOX)); - PyDict_SetItemString(d,"TINY_CAPTION_HORIZ", SWIG_FromInt((int)wxTINY_CAPTION_HORIZ)); - PyDict_SetItemString(d,"TINY_CAPTION_VERT", SWIG_FromInt((int)wxTINY_CAPTION_VERT)); - PyDict_SetItemString(d,"RESIZE_BOX", SWIG_FromInt((int)wxRESIZE_BOX)); - PyDict_SetItemString(d,"RESIZE_BORDER", SWIG_FromInt((int)wxRESIZE_BORDER)); - PyDict_SetItemString(d,"DIALOG_NO_PARENT", SWIG_FromInt((int)wxDIALOG_NO_PARENT)); - PyDict_SetItemString(d,"DEFAULT_FRAME_STYLE", SWIG_FromInt((int)wxDEFAULT_FRAME_STYLE)); - PyDict_SetItemString(d,"DEFAULT_DIALOG_STYLE", SWIG_FromInt((int)wxDEFAULT_DIALOG_STYLE)); - PyDict_SetItemString(d,"FRAME_TOOL_WINDOW", SWIG_FromInt((int)wxFRAME_TOOL_WINDOW)); - PyDict_SetItemString(d,"FRAME_FLOAT_ON_PARENT", SWIG_FromInt((int)wxFRAME_FLOAT_ON_PARENT)); - PyDict_SetItemString(d,"FRAME_NO_WINDOW_MENU", SWIG_FromInt((int)wxFRAME_NO_WINDOW_MENU)); - PyDict_SetItemString(d,"FRAME_NO_TASKBAR", SWIG_FromInt((int)wxFRAME_NO_TASKBAR)); - PyDict_SetItemString(d,"FRAME_SHAPED", SWIG_FromInt((int)wxFRAME_SHAPED)); - PyDict_SetItemString(d,"DIALOG_MODAL", SWIG_FromInt((int)wxDIALOG_MODAL)); - PyDict_SetItemString(d,"DIALOG_MODELESS", SWIG_FromInt((int)wxDIALOG_MODELESS)); - PyDict_SetItemString(d,"USER_COLOURS", SWIG_FromInt((int)wxUSER_COLOURS)); - PyDict_SetItemString(d,"NO_3D", SWIG_FromInt((int)wxNO_3D)); - PyDict_SetItemString(d,"FULLSCREEN_NOMENUBAR", SWIG_FromInt((int)wxFULLSCREEN_NOMENUBAR)); - PyDict_SetItemString(d,"FULLSCREEN_NOTOOLBAR", SWIG_FromInt((int)wxFULLSCREEN_NOTOOLBAR)); - PyDict_SetItemString(d,"FULLSCREEN_NOSTATUSBAR", SWIG_FromInt((int)wxFULLSCREEN_NOSTATUSBAR)); - PyDict_SetItemString(d,"FULLSCREEN_NOBORDER", SWIG_FromInt((int)wxFULLSCREEN_NOBORDER)); - PyDict_SetItemString(d,"FULLSCREEN_NOCAPTION", SWIG_FromInt((int)wxFULLSCREEN_NOCAPTION)); - PyDict_SetItemString(d,"FULLSCREEN_ALL", SWIG_FromInt((int)wxFULLSCREEN_ALL)); - PyDict_SetItemString(d,"TOPLEVEL_EX_DIALOG", SWIG_FromInt((int)wxTOPLEVEL_EX_DIALOG)); - PyDict_SetItemString(d,"SPLASH_CENTRE_ON_PARENT", SWIG_FromInt((int)wxSPLASH_CENTRE_ON_PARENT)); - PyDict_SetItemString(d,"SPLASH_CENTRE_ON_SCREEN", SWIG_FromInt((int)wxSPLASH_CENTRE_ON_SCREEN)); - PyDict_SetItemString(d,"SPLASH_NO_CENTRE", SWIG_FromInt((int)wxSPLASH_NO_CENTRE)); - PyDict_SetItemString(d,"SPLASH_TIMEOUT", SWIG_FromInt((int)wxSPLASH_TIMEOUT)); - PyDict_SetItemString(d,"SPLASH_NO_TIMEOUT", SWIG_FromInt((int)wxSPLASH_NO_TIMEOUT)); - SWIG_addvarlink(SWIG_globals,(char*)"SplitterNameStr",_wrap_SplitterNameStr_get, _wrap_SplitterNameStr_set); - PyDict_SetItemString(d,"SP_NOBORDER", SWIG_FromInt((int)wxSP_NOBORDER)); - PyDict_SetItemString(d,"SP_NOSASH", SWIG_FromInt((int)wxSP_NOSASH)); - PyDict_SetItemString(d,"SP_PERMIT_UNSPLIT", SWIG_FromInt((int)wxSP_PERMIT_UNSPLIT)); - PyDict_SetItemString(d,"SP_LIVE_UPDATE", SWIG_FromInt((int)wxSP_LIVE_UPDATE)); - PyDict_SetItemString(d,"SP_3DSASH", SWIG_FromInt((int)wxSP_3DSASH)); - PyDict_SetItemString(d,"SP_3DBORDER", SWIG_FromInt((int)wxSP_3DBORDER)); - PyDict_SetItemString(d,"SP_NO_XP_THEME", SWIG_FromInt((int)wxSP_NO_XP_THEME)); - PyDict_SetItemString(d,"SP_BORDER", SWIG_FromInt((int)wxSP_BORDER)); - PyDict_SetItemString(d,"SP_3D", SWIG_FromInt((int)wxSP_3D)); - PyDict_SetItemString(d,"SPLIT_HORIZONTAL", SWIG_FromInt((int)wxSPLIT_HORIZONTAL)); - PyDict_SetItemString(d,"SPLIT_VERTICAL", SWIG_FromInt((int)wxSPLIT_VERTICAL)); - PyDict_SetItemString(d,"SPLIT_DRAG_NONE", SWIG_FromInt((int)wxSPLIT_DRAG_NONE)); - PyDict_SetItemString(d,"SPLIT_DRAG_DRAGGING", SWIG_FromInt((int)wxSPLIT_DRAG_DRAGGING)); - PyDict_SetItemString(d,"SPLIT_DRAG_LEFT_DOWN", SWIG_FromInt((int)wxSPLIT_DRAG_LEFT_DOWN)); - PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING)); - PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_DOUBLECLICKED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_UNSPLIT", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_UNSPLIT)); - SWIG_addvarlink(SWIG_globals,(char*)"SashNameStr",_wrap_SashNameStr_get, _wrap_SashNameStr_set); - SWIG_addvarlink(SWIG_globals,(char*)"SashLayoutNameStr",_wrap_SashLayoutNameStr_get, _wrap_SashLayoutNameStr_set); - PyDict_SetItemString(d,"SASH_DRAG_NONE", SWIG_FromInt((int)wxSASH_DRAG_NONE)); - PyDict_SetItemString(d,"SASH_DRAG_DRAGGING", SWIG_FromInt((int)wxSASH_DRAG_DRAGGING)); - PyDict_SetItemString(d,"SASH_DRAG_LEFT_DOWN", SWIG_FromInt((int)wxSASH_DRAG_LEFT_DOWN)); - PyDict_SetItemString(d,"SW_NOBORDER", SWIG_FromInt((int)wxSW_NOBORDER)); - PyDict_SetItemString(d,"SW_BORDER", SWIG_FromInt((int)wxSW_BORDER)); - PyDict_SetItemString(d,"SW_3DSASH", SWIG_FromInt((int)wxSW_3DSASH)); - PyDict_SetItemString(d,"SW_3DBORDER", SWIG_FromInt((int)wxSW_3DBORDER)); - PyDict_SetItemString(d,"SW_3D", SWIG_FromInt((int)wxSW_3D)); - PyDict_SetItemString(d,"SASH_TOP", SWIG_FromInt((int)wxSASH_TOP)); - PyDict_SetItemString(d,"SASH_RIGHT", SWIG_FromInt((int)wxSASH_RIGHT)); - PyDict_SetItemString(d,"SASH_BOTTOM", SWIG_FromInt((int)wxSASH_BOTTOM)); - PyDict_SetItemString(d,"SASH_LEFT", SWIG_FromInt((int)wxSASH_LEFT)); - PyDict_SetItemString(d,"SASH_NONE", SWIG_FromInt((int)wxSASH_NONE)); - PyDict_SetItemString(d,"SASH_STATUS_OK", SWIG_FromInt((int)wxSASH_STATUS_OK)); - PyDict_SetItemString(d,"SASH_STATUS_OUT_OF_RANGE", SWIG_FromInt((int)wxSASH_STATUS_OUT_OF_RANGE)); - PyDict_SetItemString(d, "wxEVT_SASH_DRAGGED", PyInt_FromLong(wxEVT_SASH_DRAGGED)); - PyDict_SetItemString(d,"LAYOUT_HORIZONTAL", SWIG_FromInt((int)wxLAYOUT_HORIZONTAL)); - PyDict_SetItemString(d,"LAYOUT_VERTICAL", SWIG_FromInt((int)wxLAYOUT_VERTICAL)); - PyDict_SetItemString(d,"LAYOUT_NONE", SWIG_FromInt((int)wxLAYOUT_NONE)); - PyDict_SetItemString(d,"LAYOUT_TOP", SWIG_FromInt((int)wxLAYOUT_TOP)); - PyDict_SetItemString(d,"LAYOUT_LEFT", SWIG_FromInt((int)wxLAYOUT_LEFT)); - PyDict_SetItemString(d,"LAYOUT_RIGHT", SWIG_FromInt((int)wxLAYOUT_RIGHT)); - PyDict_SetItemString(d,"LAYOUT_BOTTOM", SWIG_FromInt((int)wxLAYOUT_BOTTOM)); - PyDict_SetItemString(d,"LAYOUT_LENGTH_Y", SWIG_FromInt((int)wxLAYOUT_LENGTH_Y)); - PyDict_SetItemString(d,"LAYOUT_LENGTH_X", SWIG_FromInt((int)wxLAYOUT_LENGTH_X)); - PyDict_SetItemString(d,"LAYOUT_MRU_LENGTH", SWIG_FromInt((int)wxLAYOUT_MRU_LENGTH)); - PyDict_SetItemString(d,"LAYOUT_QUERY", SWIG_FromInt((int)wxLAYOUT_QUERY)); - PyDict_SetItemString(d, "wxEVT_QUERY_LAYOUT_INFO", PyInt_FromLong(wxEVT_QUERY_LAYOUT_INFO)); - PyDict_SetItemString(d, "wxEVT_CALCULATE_LAYOUT", PyInt_FromLong(wxEVT_CALCULATE_LAYOUT)); - SWIG_addvarlink(SWIG_globals,(char*)"VListBoxNameStr",_wrap_VListBoxNameStr_get, _wrap_VListBoxNameStr_set); - - // Map renamed classes back to their common name for OOR - wxPyPtrTypeMap_Add("wxHtmlListBox", "wxPyHtmlListBox"); - wxPyPtrTypeMap_Add("wxVListBox", "wxPyVListBox"); - wxPyPtrTypeMap_Add("wxVScrolledWindow", "wxPyVScrolledWindow"); - - PyDict_SetItemString(d, "wxEVT_TASKBAR_MOVE", PyInt_FromLong(wxEVT_TASKBAR_MOVE)); - PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_DOWN", PyInt_FromLong(wxEVT_TASKBAR_LEFT_DOWN)); - PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_UP", PyInt_FromLong(wxEVT_TASKBAR_LEFT_UP)); - PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_DOWN", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_DOWN)); - PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_UP", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_UP)); - PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_DCLICK", PyInt_FromLong(wxEVT_TASKBAR_LEFT_DCLICK)); - PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_DCLICK", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_DCLICK)); - SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set); - SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set); - SWIG_addvarlink(SWIG_globals,(char*)"DirDialogNameStr",_wrap_DirDialogNameStr_get, _wrap_DirDialogNameStr_set); - SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set); - SWIG_addvarlink(SWIG_globals,(char*)"GetTextFromUserPromptStr",_wrap_GetTextFromUserPromptStr_get, _wrap_GetTextFromUserPromptStr_set); - SWIG_addvarlink(SWIG_globals,(char*)"MessageBoxCaptionStr",_wrap_MessageBoxCaptionStr_get, _wrap_MessageBoxCaptionStr_set); - PyDict_SetItemString(d,"CHOICEDLG_STYLE", SWIG_FromInt((int)wxCHOICEDLG_STYLE)); - PyDict_SetItemString(d,"FR_DOWN", SWIG_FromInt((int)wxFR_DOWN)); - PyDict_SetItemString(d,"FR_WHOLEWORD", SWIG_FromInt((int)wxFR_WHOLEWORD)); - PyDict_SetItemString(d,"FR_MATCHCASE", SWIG_FromInt((int)wxFR_MATCHCASE)); - PyDict_SetItemString(d,"FR_REPLACEDIALOG", SWIG_FromInt((int)wxFR_REPLACEDIALOG)); - PyDict_SetItemString(d,"FR_NOUPDOWN", SWIG_FromInt((int)wxFR_NOUPDOWN)); - PyDict_SetItemString(d,"FR_NOMATCHCASE", SWIG_FromInt((int)wxFR_NOMATCHCASE)); - PyDict_SetItemString(d,"FR_NOWHOLEWORD", SWIG_FromInt((int)wxFR_NOWHOLEWORD)); - PyDict_SetItemString(d, "wxEVT_COMMAND_FIND", PyInt_FromLong(wxEVT_COMMAND_FIND)); - PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_NEXT", PyInt_FromLong(wxEVT_COMMAND_FIND_NEXT)); - PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_REPLACE", PyInt_FromLong(wxEVT_COMMAND_FIND_REPLACE)); - PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_REPLACE_ALL", PyInt_FromLong(wxEVT_COMMAND_FIND_REPLACE_ALL)); - PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_CLOSE", PyInt_FromLong(wxEVT_COMMAND_FIND_CLOSE)); - PyDict_SetItemString(d,"IDM_WINDOWTILE", SWIG_FromInt((int)4001)); - PyDict_SetItemString(d,"IDM_WINDOWTILEHOR", SWIG_FromInt((int)4001)); - PyDict_SetItemString(d,"IDM_WINDOWCASCADE", SWIG_FromInt((int)4002)); - PyDict_SetItemString(d,"IDM_WINDOWICONS", SWIG_FromInt((int)4003)); - PyDict_SetItemString(d,"IDM_WINDOWNEXT", SWIG_FromInt((int)4004)); - PyDict_SetItemString(d,"IDM_WINDOWTILEVERT", SWIG_FromInt((int)4005)); - PyDict_SetItemString(d,"FIRST_MDI_CHILD", SWIG_FromInt((int)4100)); - PyDict_SetItemString(d,"LAST_MDI_CHILD", SWIG_FromInt((int)4600)); - SWIG_addvarlink(SWIG_globals,(char*)"PrintoutTitleStr",_wrap_PrintoutTitleStr_get, _wrap_PrintoutTitleStr_set); - SWIG_addvarlink(SWIG_globals,(char*)"PreviewCanvasNameStr",_wrap_PreviewCanvasNameStr_get, _wrap_PreviewCanvasNameStr_set); - PyDict_SetItemString(d,"PRINT_MODE_NONE", SWIG_FromInt((int)wxPRINT_MODE_NONE)); - PyDict_SetItemString(d,"PRINT_MODE_PREVIEW", SWIG_FromInt((int)wxPRINT_MODE_PREVIEW)); - PyDict_SetItemString(d,"PRINT_MODE_FILE", SWIG_FromInt((int)wxPRINT_MODE_FILE)); - PyDict_SetItemString(d,"PRINT_MODE_PRINTER", SWIG_FromInt((int)wxPRINT_MODE_PRINTER)); - PyDict_SetItemString(d,"PRINT_MODE_STREAM", SWIG_FromInt((int)wxPRINT_MODE_STREAM)); - PyDict_SetItemString(d,"PRINTER_NO_ERROR", SWIG_FromInt((int)wxPRINTER_NO_ERROR)); - PyDict_SetItemString(d,"PRINTER_CANCELLED", SWIG_FromInt((int)wxPRINTER_CANCELLED)); - PyDict_SetItemString(d,"PRINTER_ERROR", SWIG_FromInt((int)wxPRINTER_ERROR)); - PyDict_SetItemString(d,"PREVIEW_PRINT", SWIG_FromInt((int)wxPREVIEW_PRINT)); - PyDict_SetItemString(d,"PREVIEW_PREVIOUS", SWIG_FromInt((int)wxPREVIEW_PREVIOUS)); - PyDict_SetItemString(d,"PREVIEW_NEXT", SWIG_FromInt((int)wxPREVIEW_NEXT)); - PyDict_SetItemString(d,"PREVIEW_ZOOM", SWIG_FromInt((int)wxPREVIEW_ZOOM)); - PyDict_SetItemString(d,"PREVIEW_FIRST", SWIG_FromInt((int)wxPREVIEW_FIRST)); - PyDict_SetItemString(d,"PREVIEW_LAST", SWIG_FromInt((int)wxPREVIEW_LAST)); - PyDict_SetItemString(d,"PREVIEW_GOTO", SWIG_FromInt((int)wxPREVIEW_GOTO)); - PyDict_SetItemString(d,"PREVIEW_DEFAULT", SWIG_FromInt((int)wxPREVIEW_DEFAULT)); - PyDict_SetItemString(d,"ID_PREVIEW_CLOSE", SWIG_FromInt((int)wxID_PREVIEW_CLOSE)); - PyDict_SetItemString(d,"ID_PREVIEW_NEXT", SWIG_FromInt((int)wxID_PREVIEW_NEXT)); - PyDict_SetItemString(d,"ID_PREVIEW_PREVIOUS", SWIG_FromInt((int)wxID_PREVIEW_PREVIOUS)); - PyDict_SetItemString(d,"ID_PREVIEW_PRINT", SWIG_FromInt((int)wxID_PREVIEW_PRINT)); - PyDict_SetItemString(d,"ID_PREVIEW_ZOOM", SWIG_FromInt((int)wxID_PREVIEW_ZOOM)); - PyDict_SetItemString(d,"ID_PREVIEW_FIRST", SWIG_FromInt((int)wxID_PREVIEW_FIRST)); - PyDict_SetItemString(d,"ID_PREVIEW_LAST", SWIG_FromInt((int)wxID_PREVIEW_LAST)); - PyDict_SetItemString(d,"ID_PREVIEW_GOTO", SWIG_FromInt((int)wxID_PREVIEW_GOTO)); - - wxPyPtrTypeMap_Add("wxPrintout", "wxPyPrintout"); - -} - diff --git a/wxPython/src/misc.i b/wxPython/src/misc.i index 1a1ed143fa..a6b6a49904 100644 --- a/wxPython/src/misc.i +++ b/wxPython/src/misc.i @@ -10,8 +10,7 @@ // Licence: wxWindows license ///////////////////////////////////////////////////////////////////////////// - -%module misc +%module _misc //--------------------------------------------------------------------------- @@ -25,10 +24,10 @@ //--------------------------------------------------------------------------- %import core.i -%pythoncode { wx = core } +%pythoncode { wx = _core } %pythoncode { __docfilter__ = wx.__docfilter__ } -%include _misc_rename.i +%include __misc_rename.i MAKE_CONST_WXSTRING_NOSWIG(EmptyString); diff --git a/wxPython/src/msw/controls.py b/wxPython/src/msw/controls.py deleted file mode 100644 index b2f689299b..0000000000 --- a/wxPython/src/msw/controls.py +++ /dev/null @@ -1,5306 +0,0 @@ -# This file was created automatically by SWIG. -# Don't modify this file, modify the SWIG interface instead. - -import _controls - -import core -wx = core -__docfilter__ = wx.__docfilter__ -#--------------------------------------------------------------------------- - -BU_LEFT = _controls.BU_LEFT -BU_TOP = _controls.BU_TOP -BU_RIGHT = _controls.BU_RIGHT -BU_BOTTOM = _controls.BU_BOTTOM -BU_EXACTFIT = _controls.BU_EXACTFIT -BU_AUTODRAW = _controls.BU_AUTODRAW -class Button(core.Control): - """ - A button is a control that contains a text string, and is one of the most - common elements of a GUI. It may be placed on a dialog box or panel, or - indeed almost any other window. - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxButton instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, String label, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, - Validator validator=DefaultValidator, String name=ButtonNameStr) -> Button - - Create and show a button. - """ - newobj = _controls.new_Button(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id, String label, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, - Validator validator=DefaultValidator, String name=ButtonNameStr) -> bool - - Acutally create the GUI Button for 2-phase creation. - """ - return _controls.Button_Create(*args, **kwargs) - - def SetDefault(*args, **kwargs): - """ - SetDefault(self) - - This sets the button to be the default item for the panel or dialog box. - """ - return _controls.Button_SetDefault(*args, **kwargs) - - def GetDefaultSize(*args, **kwargs): - """Button.GetDefaultSize() -> Size""" - return _controls.Button_GetDefaultSize(*args, **kwargs) - - GetDefaultSize = staticmethod(GetDefaultSize) - -class ButtonPtr(Button): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Button -_controls.Button_swigregister(ButtonPtr) -cvar = _controls.cvar -ButtonNameStr = cvar.ButtonNameStr - -def PreButton(*args, **kwargs): - """ - PreButton() -> Button - - Precreate a Button for 2-phase creation. - """ - val = _controls.new_PreButton(*args, **kwargs) - val.thisown = 1 - return val - -def Button_GetDefaultSize(*args, **kwargs): - """Button_GetDefaultSize() -> Size""" - return _controls.Button_GetDefaultSize(*args, **kwargs) - -class BitmapButton(Button): - """ - A Button that contains a bitmap. A bitmap button can be supplied with a - single bitmap, and wxWindows will draw all button states using this bitmap. If - the application needs more control, additional bitmaps for the selected state, - unpressed focused state, and greyed-out state may be supplied. - - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxBitmapButton instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition, - Size size=DefaultSize, long style=BU_AUTODRAW, - Validator validator=DefaultValidator, - String name=ButtonNameStr) -> BitmapButton - - Create and show a button with a bitmap for the label. - """ - newobj = _controls.new_BitmapButton(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition, - Size size=DefaultSize, long style=BU_AUTODRAW, - Validator validator=DefaultValidator, - String name=ButtonNameStr) -> bool - - Acutally create the GUI BitmapButton for 2-phase creation. - """ - return _controls.BitmapButton_Create(*args, **kwargs) - - def GetBitmapLabel(*args, **kwargs): - """ - GetBitmapLabel(self) -> Bitmap - - Returns the label bitmap (the one passed to the constructor). - """ - return _controls.BitmapButton_GetBitmapLabel(*args, **kwargs) - - def GetBitmapDisabled(*args, **kwargs): - """ - GetBitmapDisabled(self) -> Bitmap - - Returns the bitmap for the disabled state. - """ - return _controls.BitmapButton_GetBitmapDisabled(*args, **kwargs) - - def GetBitmapFocus(*args, **kwargs): - """ - GetBitmapFocus(self) -> Bitmap - - Returns the bitmap for the focused state. - """ - return _controls.BitmapButton_GetBitmapFocus(*args, **kwargs) - - def GetBitmapSelected(*args, **kwargs): - """ - GetBitmapSelected(self) -> Bitmap - - Returns the bitmap for the selected state. - """ - return _controls.BitmapButton_GetBitmapSelected(*args, **kwargs) - - def SetBitmapDisabled(*args, **kwargs): - """ - SetBitmapDisabled(self, Bitmap bitmap) - - Sets the bitmap for the disabled button appearance. - """ - return _controls.BitmapButton_SetBitmapDisabled(*args, **kwargs) - - def SetBitmapFocus(*args, **kwargs): - """ - SetBitmapFocus(self, Bitmap bitmap) - - Sets the bitmap for the button appearance when it has the keyboard focus. - """ - return _controls.BitmapButton_SetBitmapFocus(*args, **kwargs) - - def SetBitmapSelected(*args, **kwargs): - """ - SetBitmapSelected(self, Bitmap bitmap) - - Sets the bitmap for the selected (depressed) button appearance. - """ - return _controls.BitmapButton_SetBitmapSelected(*args, **kwargs) - - def SetBitmapLabel(*args, **kwargs): - """ - SetBitmapLabel(self, Bitmap bitmap) - - Sets the bitmap label for the button. This is the bitmap used for the - unselected state, and for all other states if no other bitmaps are provided. - """ - return _controls.BitmapButton_SetBitmapLabel(*args, **kwargs) - - def SetMargins(*args, **kwargs): - """SetMargins(self, int x, int y)""" - return _controls.BitmapButton_SetMargins(*args, **kwargs) - - def GetMarginX(*args, **kwargs): - """GetMarginX(self) -> int""" - return _controls.BitmapButton_GetMarginX(*args, **kwargs) - - def GetMarginY(*args, **kwargs): - """GetMarginY(self) -> int""" - return _controls.BitmapButton_GetMarginY(*args, **kwargs) - - -class BitmapButtonPtr(BitmapButton): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = BitmapButton -_controls.BitmapButton_swigregister(BitmapButtonPtr) - -def PreBitmapButton(*args, **kwargs): - """ - PreBitmapButton() -> BitmapButton - - Precreate a BitmapButton for 2-phase creation. - """ - val = _controls.new_PreBitmapButton(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -CHK_2STATE = _controls.CHK_2STATE -CHK_3STATE = _controls.CHK_3STATE -CHK_ALLOW_3RD_STATE_FOR_USER = _controls.CHK_ALLOW_3RD_STATE_FOR_USER -CHK_UNCHECKED = _controls.CHK_UNCHECKED -CHK_CHECKED = _controls.CHK_CHECKED -CHK_UNDETERMINED = _controls.CHK_UNDETERMINED -class CheckBox(core.Control): - """ - A checkbox is a labelled box which by default is either on (checkmark is - visible) or off (no checkmark). Optionally (When the wxCHK_3STATE style flag - is set) it can have a third state, called the mixed or undetermined - state. Often this is used as a "Does Not Apply" state. - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxCheckBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, String label, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, - Validator validator=DefaultValidator, String name=CheckBoxNameStr) -> CheckBox - - Creates and shows a CheckBox control - """ - newobj = _controls.new_CheckBox(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id, String label, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, - Validator validator=DefaultValidator, String name=CheckBoxNameStr) -> bool - - Actually create the GUI CheckBox for 2-phase creation. - """ - return _controls.CheckBox_Create(*args, **kwargs) - - def GetValue(*args, **kwargs): - """ - GetValue(self) -> bool - - Gets the state of a 2-state CheckBox. Returns True if it is checked, - False otherwise. - """ - return _controls.CheckBox_GetValue(*args, **kwargs) - - def IsChecked(*args, **kwargs): - """ - IsChecked(self) -> bool - - Similar to GetValue, but raises an exception if it is not a 2-state CheckBox. - """ - return _controls.CheckBox_IsChecked(*args, **kwargs) - - def SetValue(*args, **kwargs): - """ - SetValue(self, bool state) - - Set the state of a 2-state CheckBox. Pass True for checked, - False for unchecked. - """ - return _controls.CheckBox_SetValue(*args, **kwargs) - - def Get3StateValue(*args, **kwargs): - """ - Get3StateValue(self) -> int - - Returns wx.CHK_UNCHECKED when the CheckBox is unchecked, wx.CHK_CHECKED when - it is checked and wx.CHK_UNDETERMINED when it's in the undetermined state. - Raises an exceptiion when the function is used with a 2-state CheckBox. - """ - return _controls.CheckBox_Get3StateValue(*args, **kwargs) - - def Set3StateValue(*args, **kwargs): - """ - Set3StateValue(self, int state) - - Sets the CheckBox to the given state. The state parameter can be - one of the following: wx.CHK_UNCHECKED (Check is off), wx.CHK_CHECKED - (Check is on) or wx.CHK_UNDETERMINED (Check is mixed). Raises an - exception when the CheckBox is a 2-state checkbox and setting the state - to wx.CHK_UNDETERMINED. - """ - return _controls.CheckBox_Set3StateValue(*args, **kwargs) - - def Is3State(*args, **kwargs): - """ - Is3State(self) -> bool - - Returns whether or not the CheckBox is a 3-state CheckBox. - """ - return _controls.CheckBox_Is3State(*args, **kwargs) - - def Is3rdStateAllowedForUser(*args, **kwargs): - """ - Is3rdStateAllowedForUser(self) -> bool - - Returns whether or not the user can set the CheckBox to the third state. - """ - return _controls.CheckBox_Is3rdStateAllowedForUser(*args, **kwargs) - - -class CheckBoxPtr(CheckBox): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = CheckBox -_controls.CheckBox_swigregister(CheckBoxPtr) -CheckBoxNameStr = cvar.CheckBoxNameStr - -def PreCheckBox(*args, **kwargs): - """ - PreCheckBox() -> CheckBox - - Precreate a CheckBox for 2-phase creation. - """ - val = _controls.new_PreCheckBox(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -class Choice(core.ControlWithItems): - """ - A Choice control is used to select one of a list of strings. Unlike a ListBox, - only the selection is visible until the user pulls down the menu of choices. - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxChoice instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - List choices=[], long style=0, Validator validator=DefaultValidator, - String name=ChoiceNameStr) -> Choice - - Create and show a Choice control - """ - newobj = _controls.new_Choice(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - List choices=[], long style=0, Validator validator=DefaultValidator, - String name=ChoiceNameStr) -> bool - - Actually create the GUI Choice control for 2-phase creation - """ - return _controls.Choice_Create(*args, **kwargs) - - def SetSelection(*args, **kwargs): - """ - SetSelection(self, int n) - - Select the n'th item (zero based) in the list. - """ - return _controls.Choice_SetSelection(*args, **kwargs) - - def SetStringSelection(*args, **kwargs): - """ - SetStringSelection(self, String string) - - Select the item with the specifed string - """ - return _controls.Choice_SetStringSelection(*args, **kwargs) - - def SetString(*args, **kwargs): - """ - SetString(self, int n, String string) - - Set the label for the n'th item (zero based) in the list. - """ - return _controls.Choice_SetString(*args, **kwargs) - - Select = SetSelection - -class ChoicePtr(Choice): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Choice -_controls.Choice_swigregister(ChoicePtr) -ChoiceNameStr = cvar.ChoiceNameStr - -def PreChoice(*args, **kwargs): - """ - PreChoice() -> Choice - - Precreate a Choice control for 2-phase creation. - """ - val = _controls.new_PreChoice(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -class ComboBox(Choice): - """ - A combobox is like a combination of an edit control and a listbox. It can be - displayed as static list with editable or read-only text field; or a drop-down - list with text field. - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxComboBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(Window parent, int id, String value=EmptyString, - Point pos=DefaultPosition, Size size=DefaultSize, - List choices=[], long style=0, Validator validator=DefaultValidator, - String name=ComboBoxNameStr) -> ComboBox - - Constructor, creates and shows a ComboBox control. - """ - newobj = _controls.new_ComboBox(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(Window parent, int id, String value=EmptyString, - Point pos=DefaultPosition, Size size=DefaultSize, - List choices=[], long style=0, Validator validator=DefaultValidator, - String name=ChoiceNameStr) -> bool - - Actually create the GUI wxComboBox control for 2-phase creation - """ - return _controls.ComboBox_Create(*args, **kwargs) - - def GetValue(*args, **kwargs): - """ - GetValue(self) -> String - - Returns the current value in the combobox text field. - """ - return _controls.ComboBox_GetValue(*args, **kwargs) - - def SetValue(*args, **kwargs): - """SetValue(self, String value)""" - return _controls.ComboBox_SetValue(*args, **kwargs) - - def Copy(*args, **kwargs): - """ - Copy(self) - - Copies the selected text to the clipboard. - """ - return _controls.ComboBox_Copy(*args, **kwargs) - - def Cut(*args, **kwargs): - """ - Cut(self) - - Copies the selected text to the clipboard and removes the selection. - """ - return _controls.ComboBox_Cut(*args, **kwargs) - - def Paste(*args, **kwargs): - """ - Paste(self) - - Pastes text from the clipboard to the text field. - """ - return _controls.ComboBox_Paste(*args, **kwargs) - - def SetInsertionPoint(*args, **kwargs): - """ - SetInsertionPoint(self, long pos) - - Sets the insertion point in the combobox text field. - """ - return _controls.ComboBox_SetInsertionPoint(*args, **kwargs) - - def GetInsertionPoint(*args, **kwargs): - """ - GetInsertionPoint(self) -> long - - Returns the insertion point for the combobox's text field. - """ - return _controls.ComboBox_GetInsertionPoint(*args, **kwargs) - - def GetLastPosition(*args, **kwargs): - """ - GetLastPosition(self) -> long - - Returns the last position in the combobox text field. - """ - return _controls.ComboBox_GetLastPosition(*args, **kwargs) - - def Replace(*args, **kwargs): - """ - Replace(self, long from, long to, String value) - - Replaces the text between two positions with the given text, in the - combobox text field. - """ - return _controls.ComboBox_Replace(*args, **kwargs) - - def SetSelection(*args, **kwargs): - """ - SetSelection(self, int n) - - Selects the text between the two positions, in the combobox text field. - """ - return _controls.ComboBox_SetSelection(*args, **kwargs) - - def SetMark(*args, **kwargs): - """SetMark(self, long from, long to)""" - return _controls.ComboBox_SetMark(*args, **kwargs) - - def SetEditable(*args, **kwargs): - """SetEditable(self, bool editable)""" - return _controls.ComboBox_SetEditable(*args, **kwargs) - - def SetInsertionPointEnd(*args, **kwargs): - """ - SetInsertionPointEnd(self) - - Sets the insertion point at the end of the combobox text field. - """ - return _controls.ComboBox_SetInsertionPointEnd(*args, **kwargs) - - def Remove(*args, **kwargs): - """ - Remove(self, long from, long to) - - Removes the text between the two positions in the combobox text field. - """ - return _controls.ComboBox_Remove(*args, **kwargs) - - -class ComboBoxPtr(ComboBox): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ComboBox -_controls.ComboBox_swigregister(ComboBoxPtr) -ComboBoxNameStr = cvar.ComboBoxNameStr - -def PreComboBox(*args, **kwargs): - """ - PreComboBox() -> ComboBox - - Precreate a ComboBox control for 2-phase creation. - """ - val = _controls.new_PreComboBox(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -GA_HORIZONTAL = _controls.GA_HORIZONTAL -GA_VERTICAL = _controls.GA_VERTICAL -GA_SMOOTH = _controls.GA_SMOOTH -GA_PROGRESSBAR = _controls.GA_PROGRESSBAR -class Gauge(core.Control): - def __repr__(self): - return "<%s.%s; proxy of C++ wxGauge instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, int range, Point pos=DefaultPosition, - Size size=DefaultSize, long style=GA_HORIZONTAL, - Validator validator=DefaultValidator, - String name=GaugeNameStr) -> Gauge - """ - newobj = _controls.new_Gauge(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id, int range, Point pos=DefaultPosition, - Size size=DefaultSize, long style=GA_HORIZONTAL, - Validator validator=DefaultValidator, - String name=GaugeNameStr) -> bool - """ - return _controls.Gauge_Create(*args, **kwargs) - - def SetRange(*args, **kwargs): - """SetRange(self, int range)""" - return _controls.Gauge_SetRange(*args, **kwargs) - - def GetRange(*args, **kwargs): - """GetRange(self) -> int""" - return _controls.Gauge_GetRange(*args, **kwargs) - - def SetValue(*args, **kwargs): - """SetValue(self, int pos)""" - return _controls.Gauge_SetValue(*args, **kwargs) - - def GetValue(*args, **kwargs): - """GetValue(self) -> int""" - return _controls.Gauge_GetValue(*args, **kwargs) - - def IsVertical(*args, **kwargs): - """IsVertical(self) -> bool""" - return _controls.Gauge_IsVertical(*args, **kwargs) - - def SetShadowWidth(*args, **kwargs): - """SetShadowWidth(self, int w)""" - return _controls.Gauge_SetShadowWidth(*args, **kwargs) - - def GetShadowWidth(*args, **kwargs): - """GetShadowWidth(self) -> int""" - return _controls.Gauge_GetShadowWidth(*args, **kwargs) - - def SetBezelFace(*args, **kwargs): - """SetBezelFace(self, int w)""" - return _controls.Gauge_SetBezelFace(*args, **kwargs) - - def GetBezelFace(*args, **kwargs): - """GetBezelFace(self) -> int""" - return _controls.Gauge_GetBezelFace(*args, **kwargs) - - -class GaugePtr(Gauge): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Gauge -_controls.Gauge_swigregister(GaugePtr) -GaugeNameStr = cvar.GaugeNameStr - -def PreGauge(*args, **kwargs): - """PreGauge() -> Gauge""" - val = _controls.new_PreGauge(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -class StaticBox(core.Control): - def __repr__(self): - return "<%s.%s; proxy of C++ wxStaticBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, String label, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, - String name=StaticBoxNameStr) -> StaticBox - """ - newobj = _controls.new_StaticBox(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id, String label, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, - String name=StaticBoxNameStr) -> bool - """ - return _controls.StaticBox_Create(*args, **kwargs) - - -class StaticBoxPtr(StaticBox): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = StaticBox -_controls.StaticBox_swigregister(StaticBoxPtr) -StaticBitmapNameStr = cvar.StaticBitmapNameStr -StaticBoxNameStr = cvar.StaticBoxNameStr -StaticTextNameStr = cvar.StaticTextNameStr - -def PreStaticBox(*args, **kwargs): - """PreStaticBox() -> StaticBox""" - val = _controls.new_PreStaticBox(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -class StaticLine(core.Control): - def __repr__(self): - return "<%s.%s; proxy of C++ wxStaticLine instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - long style=LI_HORIZONTAL, - String name=StaticTextNameStr) -> StaticLine - """ - newobj = _controls.new_StaticLine(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - long style=LI_HORIZONTAL, - String name=StaticTextNameStr) -> bool - """ - return _controls.StaticLine_Create(*args, **kwargs) - - def IsVertical(*args, **kwargs): - """IsVertical(self) -> bool""" - return _controls.StaticLine_IsVertical(*args, **kwargs) - - def GetDefaultSize(*args, **kwargs): - """StaticLine.GetDefaultSize() -> int""" - return _controls.StaticLine_GetDefaultSize(*args, **kwargs) - - GetDefaultSize = staticmethod(GetDefaultSize) - -class StaticLinePtr(StaticLine): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = StaticLine -_controls.StaticLine_swigregister(StaticLinePtr) - -def PreStaticLine(*args, **kwargs): - """PreStaticLine() -> StaticLine""" - val = _controls.new_PreStaticLine(*args, **kwargs) - val.thisown = 1 - return val - -def StaticLine_GetDefaultSize(*args, **kwargs): - """StaticLine_GetDefaultSize() -> int""" - return _controls.StaticLine_GetDefaultSize(*args, **kwargs) - -#--------------------------------------------------------------------------- - -class StaticText(core.Control): - def __repr__(self): - return "<%s.%s; proxy of C++ wxStaticText instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, String label, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, - String name=StaticTextNameStr) -> StaticText - """ - newobj = _controls.new_StaticText(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id, String label, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, - String name=StaticTextNameStr) -> bool - """ - return _controls.StaticText_Create(*args, **kwargs) - - -class StaticTextPtr(StaticText): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = StaticText -_controls.StaticText_swigregister(StaticTextPtr) - -def PreStaticText(*args, **kwargs): - """PreStaticText() -> StaticText""" - val = _controls.new_PreStaticText(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -class StaticBitmap(core.Control): - def __repr__(self): - return "<%s.%s; proxy of C++ wxStaticBitmap instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, - String name=StaticBitmapNameStr) -> StaticBitmap - """ - newobj = _controls.new_StaticBitmap(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, - String name=StaticBitmapNameStr) -> bool - """ - return _controls.StaticBitmap_Create(*args, **kwargs) - - def GetBitmap(*args, **kwargs): - """GetBitmap(self) -> Bitmap""" - return _controls.StaticBitmap_GetBitmap(*args, **kwargs) - - def SetBitmap(*args, **kwargs): - """SetBitmap(self, Bitmap bitmap)""" - return _controls.StaticBitmap_SetBitmap(*args, **kwargs) - - def SetIcon(*args, **kwargs): - """SetIcon(self, Icon icon)""" - return _controls.StaticBitmap_SetIcon(*args, **kwargs) - - -class StaticBitmapPtr(StaticBitmap): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = StaticBitmap -_controls.StaticBitmap_swigregister(StaticBitmapPtr) - -def PreStaticBitmap(*args, **kwargs): - """PreStaticBitmap() -> StaticBitmap""" - val = _controls.new_PreStaticBitmap(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -class ListBox(core.ControlWithItems): - def __repr__(self): - return "<%s.%s; proxy of C++ wxListBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - wxArrayString choices=wxPyEmptyStringArray, - long style=0, Validator validator=DefaultValidator, - String name=ListBoxNameStr) -> ListBox - """ - newobj = _controls.new_ListBox(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - wxArrayString choices=wxPyEmptyStringArray, - long style=0, Validator validator=DefaultValidator, - String name=ListBoxNameStr) -> bool - """ - return _controls.ListBox_Create(*args, **kwargs) - - def Insert(*args, **kwargs): - """ - Insert(self, String item, int pos, PyObject clientData=None) - - Insert an item into the control before the item at the pos index, - optionally associating some data object with the item. - """ - return _controls.ListBox_Insert(*args, **kwargs) - - def InsertItems(*args, **kwargs): - """InsertItems(self, wxArrayString items, int pos)""" - return _controls.ListBox_InsertItems(*args, **kwargs) - - def Set(*args, **kwargs): - """Set(self, wxArrayString items)""" - return _controls.ListBox_Set(*args, **kwargs) - - def IsSelected(*args, **kwargs): - """IsSelected(self, int n) -> bool""" - return _controls.ListBox_IsSelected(*args, **kwargs) - - def SetSelection(*args, **kwargs): - """SetSelection(self, int n, bool select=True)""" - return _controls.ListBox_SetSelection(*args, **kwargs) - - def Select(*args, **kwargs): - """ - Select(self, int n) - - Sets the item at index 'n' to be the selected item. - """ - return _controls.ListBox_Select(*args, **kwargs) - - def Deselect(*args, **kwargs): - """Deselect(self, int n)""" - return _controls.ListBox_Deselect(*args, **kwargs) - - def DeselectAll(*args, **kwargs): - """DeselectAll(self, int itemToLeaveSelected=-1)""" - return _controls.ListBox_DeselectAll(*args, **kwargs) - - def SetStringSelection(*args, **kwargs): - """SetStringSelection(self, String s, bool select=True) -> bool""" - return _controls.ListBox_SetStringSelection(*args, **kwargs) - - def GetSelections(*args, **kwargs): - """GetSelections(self) -> PyObject""" - return _controls.ListBox_GetSelections(*args, **kwargs) - - def SetFirstItem(*args, **kwargs): - """SetFirstItem(self, int n)""" - return _controls.ListBox_SetFirstItem(*args, **kwargs) - - def SetFirstItemStr(*args, **kwargs): - """SetFirstItemStr(self, String s)""" - return _controls.ListBox_SetFirstItemStr(*args, **kwargs) - - def EnsureVisible(*args, **kwargs): - """EnsureVisible(self, int n)""" - return _controls.ListBox_EnsureVisible(*args, **kwargs) - - def AppendAndEnsureVisible(*args, **kwargs): - """AppendAndEnsureVisible(self, String s)""" - return _controls.ListBox_AppendAndEnsureVisible(*args, **kwargs) - - def IsSorted(*args, **kwargs): - """IsSorted(self) -> bool""" - return _controls.ListBox_IsSorted(*args, **kwargs) - - def SetItemForegroundColour(*args, **kwargs): - """SetItemForegroundColour(self, int item, Colour c)""" - return _controls.ListBox_SetItemForegroundColour(*args, **kwargs) - - def SetItemBackgroundColour(*args, **kwargs): - """SetItemBackgroundColour(self, int item, Colour c)""" - return _controls.ListBox_SetItemBackgroundColour(*args, **kwargs) - - def SetItemFont(*args, **kwargs): - """SetItemFont(self, int item, Font f)""" - return _controls.ListBox_SetItemFont(*args, **kwargs) - - def GetClassDefaultAttributes(*args, **kwargs): - """ - ListBox.GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes - - Get the default attributes for this class. This is useful if - you want to use the same font or colour in your own control as - in a standard control -- which is a much better idea than hard - coding specific colours or fonts which might look completely out - of place on the users system, especially if it uses themes. - - The variant parameter is only relevant under Mac currently and is - ignore under other platforms. Under Mac, it will change the size of the - returned font. See SetWindowVariant for more about this. - """ - return _controls.ListBox_GetClassDefaultAttributes(*args, **kwargs) - - GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) - -class ListBoxPtr(ListBox): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ListBox -_controls.ListBox_swigregister(ListBoxPtr) -ListBoxNameStr = cvar.ListBoxNameStr - -def PreListBox(*args, **kwargs): - """PreListBox() -> ListBox""" - val = _controls.new_PreListBox(*args, **kwargs) - val.thisown = 1 - return val - -def ListBox_GetClassDefaultAttributes(*args, **kwargs): - """ - ListBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes - - Get the default attributes for this class. This is useful if - you want to use the same font or colour in your own control as - in a standard control -- which is a much better idea than hard - coding specific colours or fonts which might look completely out - of place on the users system, especially if it uses themes. - - The variant parameter is only relevant under Mac currently and is - ignore under other platforms. Under Mac, it will change the size of the - returned font. See SetWindowVariant for more about this. - """ - return _controls.ListBox_GetClassDefaultAttributes(*args, **kwargs) - -#--------------------------------------------------------------------------- - -class CheckListBox(ListBox): - def __repr__(self): - return "<%s.%s; proxy of C++ wxCheckListBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - wxArrayString choices=wxPyEmptyStringArray, - long style=0, Validator validator=DefaultValidator, - String name=ListBoxNameStr) -> CheckListBox - """ - newobj = _controls.new_CheckListBox(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - wxArrayString choices=wxPyEmptyStringArray, - long style=0, Validator validator=DefaultValidator, - String name=ListBoxNameStr) -> bool - """ - return _controls.CheckListBox_Create(*args, **kwargs) - - def IsChecked(*args, **kwargs): - """IsChecked(self, int index) -> bool""" - return _controls.CheckListBox_IsChecked(*args, **kwargs) - - def Check(*args, **kwargs): - """Check(self, int index, int check=True)""" - return _controls.CheckListBox_Check(*args, **kwargs) - - def GetItemHeight(*args, **kwargs): - """GetItemHeight(self) -> int""" - return _controls.CheckListBox_GetItemHeight(*args, **kwargs) - - def HitTest(*args, **kwargs): - """ - HitTest(self, Point pt) -> int - - Test where the given (in client coords) point lies - """ - return _controls.CheckListBox_HitTest(*args, **kwargs) - - def HitTestXY(*args, **kwargs): - """ - HitTestXY(self, int x, int y) -> int - - Test where the given (in client coords) point lies - """ - return _controls.CheckListBox_HitTestXY(*args, **kwargs) - - -class CheckListBoxPtr(CheckListBox): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = CheckListBox -_controls.CheckListBox_swigregister(CheckListBoxPtr) - -def PreCheckListBox(*args, **kwargs): - """PreCheckListBox() -> CheckListBox""" - val = _controls.new_PreCheckListBox(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -TE_NO_VSCROLL = _controls.TE_NO_VSCROLL -TE_AUTO_SCROLL = _controls.TE_AUTO_SCROLL -TE_READONLY = _controls.TE_READONLY -TE_MULTILINE = _controls.TE_MULTILINE -TE_PROCESS_TAB = _controls.TE_PROCESS_TAB -TE_LEFT = _controls.TE_LEFT -TE_CENTER = _controls.TE_CENTER -TE_RIGHT = _controls.TE_RIGHT -TE_CENTRE = _controls.TE_CENTRE -TE_RICH = _controls.TE_RICH -TE_PROCESS_ENTER = _controls.TE_PROCESS_ENTER -TE_PASSWORD = _controls.TE_PASSWORD -TE_AUTO_URL = _controls.TE_AUTO_URL -TE_NOHIDESEL = _controls.TE_NOHIDESEL -TE_DONTWRAP = _controls.TE_DONTWRAP -TE_LINEWRAP = _controls.TE_LINEWRAP -TE_WORDWRAP = _controls.TE_WORDWRAP -TE_RICH2 = _controls.TE_RICH2 -TEXT_ALIGNMENT_DEFAULT = _controls.TEXT_ALIGNMENT_DEFAULT -TEXT_ALIGNMENT_LEFT = _controls.TEXT_ALIGNMENT_LEFT -TEXT_ALIGNMENT_CENTRE = _controls.TEXT_ALIGNMENT_CENTRE -TEXT_ALIGNMENT_CENTER = _controls.TEXT_ALIGNMENT_CENTER -TEXT_ALIGNMENT_RIGHT = _controls.TEXT_ALIGNMENT_RIGHT -TEXT_ALIGNMENT_JUSTIFIED = _controls.TEXT_ALIGNMENT_JUSTIFIED -TEXT_ATTR_TEXT_COLOUR = _controls.TEXT_ATTR_TEXT_COLOUR -TEXT_ATTR_BACKGROUND_COLOUR = _controls.TEXT_ATTR_BACKGROUND_COLOUR -TEXT_ATTR_FONT_FACE = _controls.TEXT_ATTR_FONT_FACE -TEXT_ATTR_FONT_SIZE = _controls.TEXT_ATTR_FONT_SIZE -TEXT_ATTR_FONT_WEIGHT = _controls.TEXT_ATTR_FONT_WEIGHT -TEXT_ATTR_FONT_ITALIC = _controls.TEXT_ATTR_FONT_ITALIC -TEXT_ATTR_FONT_UNDERLINE = _controls.TEXT_ATTR_FONT_UNDERLINE -TEXT_ATTR_FONT = _controls.TEXT_ATTR_FONT -TEXT_ATTR_ALIGNMENT = _controls.TEXT_ATTR_ALIGNMENT -TEXT_ATTR_LEFT_INDENT = _controls.TEXT_ATTR_LEFT_INDENT -TEXT_ATTR_RIGHT_INDENT = _controls.TEXT_ATTR_RIGHT_INDENT -TEXT_ATTR_TABS = _controls.TEXT_ATTR_TABS -TE_HT_UNKNOWN = _controls.TE_HT_UNKNOWN -TE_HT_BEFORE = _controls.TE_HT_BEFORE -TE_HT_ON_TEXT = _controls.TE_HT_ON_TEXT -TE_HT_BELOW = _controls.TE_HT_BELOW -TE_HT_BEYOND = _controls.TE_HT_BEYOND -class TextAttr(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxTextAttr instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args): - """ - __init__(self) -> TextAttr - __init__(self, Colour colText, Colour colBack=wxNullColour, Font font=wxNullFont, - int alignment=TEXT_ALIGNMENT_DEFAULT) -> TextAttr - """ - newobj = _controls.new_TextAttr(*args) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_controls.delete_TextAttr): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Init(*args, **kwargs): - """Init(self)""" - return _controls.TextAttr_Init(*args, **kwargs) - - def SetTextColour(*args, **kwargs): - """SetTextColour(self, Colour colText)""" - return _controls.TextAttr_SetTextColour(*args, **kwargs) - - def SetBackgroundColour(*args, **kwargs): - """SetBackgroundColour(self, Colour colBack)""" - return _controls.TextAttr_SetBackgroundColour(*args, **kwargs) - - def SetFont(*args, **kwargs): - """SetFont(self, Font font, long flags=TEXT_ATTR_FONT)""" - return _controls.TextAttr_SetFont(*args, **kwargs) - - def SetAlignment(*args, **kwargs): - """SetAlignment(self, int alignment)""" - return _controls.TextAttr_SetAlignment(*args, **kwargs) - - def SetTabs(*args, **kwargs): - """SetTabs(self, wxArrayInt tabs)""" - return _controls.TextAttr_SetTabs(*args, **kwargs) - - def SetLeftIndent(*args, **kwargs): - """SetLeftIndent(self, int indent)""" - return _controls.TextAttr_SetLeftIndent(*args, **kwargs) - - def SetRightIndent(*args, **kwargs): - """SetRightIndent(self, int indent)""" - return _controls.TextAttr_SetRightIndent(*args, **kwargs) - - def SetFlags(*args, **kwargs): - """SetFlags(self, long flags)""" - return _controls.TextAttr_SetFlags(*args, **kwargs) - - def HasTextColour(*args, **kwargs): - """HasTextColour(self) -> bool""" - return _controls.TextAttr_HasTextColour(*args, **kwargs) - - def HasBackgroundColour(*args, **kwargs): - """HasBackgroundColour(self) -> bool""" - return _controls.TextAttr_HasBackgroundColour(*args, **kwargs) - - def HasFont(*args, **kwargs): - """HasFont(self) -> bool""" - return _controls.TextAttr_HasFont(*args, **kwargs) - - def HasAlignment(*args, **kwargs): - """HasAlignment(self) -> bool""" - return _controls.TextAttr_HasAlignment(*args, **kwargs) - - def HasTabs(*args, **kwargs): - """HasTabs(self) -> bool""" - return _controls.TextAttr_HasTabs(*args, **kwargs) - - def HasLeftIndent(*args, **kwargs): - """HasLeftIndent(self) -> bool""" - return _controls.TextAttr_HasLeftIndent(*args, **kwargs) - - def HasRightIndent(*args, **kwargs): - """HasRightIndent(self) -> bool""" - return _controls.TextAttr_HasRightIndent(*args, **kwargs) - - def HasFlag(*args, **kwargs): - """HasFlag(self, long flag) -> bool""" - return _controls.TextAttr_HasFlag(*args, **kwargs) - - def GetTextColour(*args, **kwargs): - """GetTextColour(self) -> Colour""" - return _controls.TextAttr_GetTextColour(*args, **kwargs) - - def GetBackgroundColour(*args, **kwargs): - """GetBackgroundColour(self) -> Colour""" - return _controls.TextAttr_GetBackgroundColour(*args, **kwargs) - - def GetFont(*args, **kwargs): - """GetFont(self) -> Font""" - return _controls.TextAttr_GetFont(*args, **kwargs) - - def GetAlignment(*args, **kwargs): - """GetAlignment(self) -> int""" - return _controls.TextAttr_GetAlignment(*args, **kwargs) - - def GetTabs(*args, **kwargs): - """GetTabs(self) -> wxArrayInt""" - return _controls.TextAttr_GetTabs(*args, **kwargs) - - def GetLeftIndent(*args, **kwargs): - """GetLeftIndent(self) -> long""" - return _controls.TextAttr_GetLeftIndent(*args, **kwargs) - - def GetRightIndent(*args, **kwargs): - """GetRightIndent(self) -> long""" - return _controls.TextAttr_GetRightIndent(*args, **kwargs) - - def GetFlags(*args, **kwargs): - """GetFlags(self) -> long""" - return _controls.TextAttr_GetFlags(*args, **kwargs) - - def IsDefault(*args, **kwargs): - """IsDefault(self) -> bool""" - return _controls.TextAttr_IsDefault(*args, **kwargs) - - def Combine(*args, **kwargs): - """TextAttr.Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr""" - return _controls.TextAttr_Combine(*args, **kwargs) - - Combine = staticmethod(Combine) - -class TextAttrPtr(TextAttr): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = TextAttr -_controls.TextAttr_swigregister(TextAttrPtr) -TextCtrlNameStr = cvar.TextCtrlNameStr - -def TextAttr_Combine(*args, **kwargs): - """TextAttr_Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr""" - return _controls.TextAttr_Combine(*args, **kwargs) - -class TextCtrl(core.Control): - def __repr__(self): - return "<%s.%s; proxy of C++ wxTextCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, String value=EmptyString, Point pos=DefaultPosition, - Size size=DefaultSize, - long style=0, Validator validator=DefaultValidator, - String name=TextCtrlNameStr) -> TextCtrl - """ - newobj = _controls.new_TextCtrl(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id, String value=EmptyString, Point pos=DefaultPosition, - Size size=DefaultSize, - long style=0, Validator validator=DefaultValidator, - String name=TextCtrlNameStr) -> bool - """ - return _controls.TextCtrl_Create(*args, **kwargs) - - def GetValue(*args, **kwargs): - """GetValue(self) -> String""" - return _controls.TextCtrl_GetValue(*args, **kwargs) - - def SetValue(*args, **kwargs): - """SetValue(self, String value)""" - return _controls.TextCtrl_SetValue(*args, **kwargs) - - def GetRange(*args, **kwargs): - """GetRange(self, long from, long to) -> String""" - return _controls.TextCtrl_GetRange(*args, **kwargs) - - def GetLineLength(*args, **kwargs): - """GetLineLength(self, long lineNo) -> int""" - return _controls.TextCtrl_GetLineLength(*args, **kwargs) - - def GetLineText(*args, **kwargs): - """GetLineText(self, long lineNo) -> String""" - return _controls.TextCtrl_GetLineText(*args, **kwargs) - - def GetNumberOfLines(*args, **kwargs): - """GetNumberOfLines(self) -> int""" - return _controls.TextCtrl_GetNumberOfLines(*args, **kwargs) - - def IsModified(*args, **kwargs): - """IsModified(self) -> bool""" - return _controls.TextCtrl_IsModified(*args, **kwargs) - - def IsEditable(*args, **kwargs): - """IsEditable(self) -> bool""" - return _controls.TextCtrl_IsEditable(*args, **kwargs) - - def IsSingleLine(*args, **kwargs): - """IsSingleLine(self) -> bool""" - return _controls.TextCtrl_IsSingleLine(*args, **kwargs) - - def IsMultiLine(*args, **kwargs): - """IsMultiLine(self) -> bool""" - return _controls.TextCtrl_IsMultiLine(*args, **kwargs) - - def GetSelection(*args, **kwargs): - """ - GetSelection() -> (from, to) - - If the return values from and to are the same, there is no selection. - """ - return _controls.TextCtrl_GetSelection(*args, **kwargs) - - def GetStringSelection(*args, **kwargs): - """GetStringSelection(self) -> String""" - return _controls.TextCtrl_GetStringSelection(*args, **kwargs) - - def Clear(*args, **kwargs): - """Clear(self)""" - return _controls.TextCtrl_Clear(*args, **kwargs) - - def Replace(*args, **kwargs): - """Replace(self, long from, long to, String value)""" - return _controls.TextCtrl_Replace(*args, **kwargs) - - def Remove(*args, **kwargs): - """Remove(self, long from, long to)""" - return _controls.TextCtrl_Remove(*args, **kwargs) - - def LoadFile(*args, **kwargs): - """LoadFile(self, String file) -> bool""" - return _controls.TextCtrl_LoadFile(*args, **kwargs) - - def SaveFile(*args, **kwargs): - """SaveFile(self, String file=EmptyString) -> bool""" - return _controls.TextCtrl_SaveFile(*args, **kwargs) - - def MarkDirty(*args, **kwargs): - """MarkDirty(self)""" - return _controls.TextCtrl_MarkDirty(*args, **kwargs) - - def DiscardEdits(*args, **kwargs): - """DiscardEdits(self)""" - return _controls.TextCtrl_DiscardEdits(*args, **kwargs) - - def SetMaxLength(*args, **kwargs): - """SetMaxLength(self, unsigned long len)""" - return _controls.TextCtrl_SetMaxLength(*args, **kwargs) - - def WriteText(*args, **kwargs): - """WriteText(self, String text)""" - return _controls.TextCtrl_WriteText(*args, **kwargs) - - def AppendText(*args, **kwargs): - """AppendText(self, String text)""" - return _controls.TextCtrl_AppendText(*args, **kwargs) - - def EmulateKeyPress(*args, **kwargs): - """EmulateKeyPress(self, KeyEvent event) -> bool""" - return _controls.TextCtrl_EmulateKeyPress(*args, **kwargs) - - def SetStyle(*args, **kwargs): - """SetStyle(self, long start, long end, TextAttr style) -> bool""" - return _controls.TextCtrl_SetStyle(*args, **kwargs) - - def GetStyle(*args, **kwargs): - """GetStyle(self, long position, TextAttr style) -> bool""" - return _controls.TextCtrl_GetStyle(*args, **kwargs) - - def SetDefaultStyle(*args, **kwargs): - """SetDefaultStyle(self, TextAttr style) -> bool""" - return _controls.TextCtrl_SetDefaultStyle(*args, **kwargs) - - def GetDefaultStyle(*args, **kwargs): - """GetDefaultStyle(self) -> TextAttr""" - return _controls.TextCtrl_GetDefaultStyle(*args, **kwargs) - - def XYToPosition(*args, **kwargs): - """XYToPosition(self, long x, long y) -> long""" - return _controls.TextCtrl_XYToPosition(*args, **kwargs) - - def PositionToXY(*args, **kwargs): - """PositionToXY(long pos) -> (x, y)""" - return _controls.TextCtrl_PositionToXY(*args, **kwargs) - - def ShowPosition(*args, **kwargs): - """ShowPosition(self, long pos)""" - return _controls.TextCtrl_ShowPosition(*args, **kwargs) - - def HitTest(*args, **kwargs): - """ - HitTest(Point pt) -> (result, row, col) - - Find the character at position given in pixels. - NB: pt is in device coords (not adjusted for the client area - origin nor scrolling) - """ - return _controls.TextCtrl_HitTest(*args, **kwargs) - - def Copy(*args, **kwargs): - """Copy(self)""" - return _controls.TextCtrl_Copy(*args, **kwargs) - - def Cut(*args, **kwargs): - """Cut(self)""" - return _controls.TextCtrl_Cut(*args, **kwargs) - - def Paste(*args, **kwargs): - """Paste(self)""" - return _controls.TextCtrl_Paste(*args, **kwargs) - - def CanCopy(*args, **kwargs): - """CanCopy(self) -> bool""" - return _controls.TextCtrl_CanCopy(*args, **kwargs) - - def CanCut(*args, **kwargs): - """CanCut(self) -> bool""" - return _controls.TextCtrl_CanCut(*args, **kwargs) - - def CanPaste(*args, **kwargs): - """CanPaste(self) -> bool""" - return _controls.TextCtrl_CanPaste(*args, **kwargs) - - def Undo(*args, **kwargs): - """Undo(self)""" - return _controls.TextCtrl_Undo(*args, **kwargs) - - def Redo(*args, **kwargs): - """Redo(self)""" - return _controls.TextCtrl_Redo(*args, **kwargs) - - def CanUndo(*args, **kwargs): - """CanUndo(self) -> bool""" - return _controls.TextCtrl_CanUndo(*args, **kwargs) - - def CanRedo(*args, **kwargs): - """CanRedo(self) -> bool""" - return _controls.TextCtrl_CanRedo(*args, **kwargs) - - def SetInsertionPoint(*args, **kwargs): - """SetInsertionPoint(self, long pos)""" - return _controls.TextCtrl_SetInsertionPoint(*args, **kwargs) - - def SetInsertionPointEnd(*args, **kwargs): - """SetInsertionPointEnd(self)""" - return _controls.TextCtrl_SetInsertionPointEnd(*args, **kwargs) - - def GetInsertionPoint(*args, **kwargs): - """GetInsertionPoint(self) -> long""" - return _controls.TextCtrl_GetInsertionPoint(*args, **kwargs) - - def GetLastPosition(*args, **kwargs): - """GetLastPosition(self) -> long""" - return _controls.TextCtrl_GetLastPosition(*args, **kwargs) - - def SetSelection(*args, **kwargs): - """SetSelection(self, long from, long to)""" - return _controls.TextCtrl_SetSelection(*args, **kwargs) - - def SelectAll(*args, **kwargs): - """SelectAll(self)""" - return _controls.TextCtrl_SelectAll(*args, **kwargs) - - def SetEditable(*args, **kwargs): - """SetEditable(self, bool editable)""" - return _controls.TextCtrl_SetEditable(*args, **kwargs) - - def ShowNativeCaret(*args, **kwargs): - """ShowNativeCaret(self, bool show=True) -> bool""" - return _controls.TextCtrl_ShowNativeCaret(*args, **kwargs) - - def HideNativeCaret(*args, **kwargs): - """HideNativeCaret(self) -> bool""" - return _controls.TextCtrl_HideNativeCaret(*args, **kwargs) - - def write(*args, **kwargs): - """write(self, String text)""" - return _controls.TextCtrl_write(*args, **kwargs) - - def GetString(*args, **kwargs): - """GetString(self, long from, long to) -> String""" - return _controls.TextCtrl_GetString(*args, **kwargs) - - -class TextCtrlPtr(TextCtrl): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = TextCtrl -_controls.TextCtrl_swigregister(TextCtrlPtr) - -def PreTextCtrl(*args, **kwargs): - """PreTextCtrl() -> TextCtrl""" - val = _controls.new_PreTextCtrl(*args, **kwargs) - val.thisown = 1 - return val - -wxEVT_COMMAND_TEXT_UPDATED = _controls.wxEVT_COMMAND_TEXT_UPDATED -wxEVT_COMMAND_TEXT_ENTER = _controls.wxEVT_COMMAND_TEXT_ENTER -wxEVT_COMMAND_TEXT_URL = _controls.wxEVT_COMMAND_TEXT_URL -wxEVT_COMMAND_TEXT_MAXLEN = _controls.wxEVT_COMMAND_TEXT_MAXLEN -class TextUrlEvent(core.CommandEvent): - def __repr__(self): - return "<%s.%s; proxy of C++ wxTextUrlEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int winid, MouseEvent evtMouse, long start, long end) -> TextUrlEvent""" - newobj = _controls.new_TextUrlEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetMouseEvent(*args, **kwargs): - """GetMouseEvent(self) -> MouseEvent""" - return _controls.TextUrlEvent_GetMouseEvent(*args, **kwargs) - - def GetURLStart(*args, **kwargs): - """GetURLStart(self) -> long""" - return _controls.TextUrlEvent_GetURLStart(*args, **kwargs) - - def GetURLEnd(*args, **kwargs): - """GetURLEnd(self) -> long""" - return _controls.TextUrlEvent_GetURLEnd(*args, **kwargs) - - -class TextUrlEventPtr(TextUrlEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = TextUrlEvent -_controls.TextUrlEvent_swigregister(TextUrlEventPtr) - -EVT_TEXT = wx.PyEventBinder( wxEVT_COMMAND_TEXT_UPDATED, 1) -EVT_TEXT_ENTER = wx.PyEventBinder( wxEVT_COMMAND_TEXT_ENTER, 1) -EVT_TEXT_URL = wx.PyEventBinder( wxEVT_COMMAND_TEXT_URL, 1) -EVT_TEXT_MAXLEN = wx.PyEventBinder( wxEVT_COMMAND_TEXT_MAXLEN, 1) - -#--------------------------------------------------------------------------- - -class ScrollBar(core.Control): - def __repr__(self): - return "<%s.%s; proxy of C++ wxScrollBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, long style=SB_HORIZONTAL, - Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> ScrollBar - """ - newobj = _controls.new_ScrollBar(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, long style=SB_HORIZONTAL, - Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> bool - - Do the 2nd phase and create the GUI control. - """ - return _controls.ScrollBar_Create(*args, **kwargs) - - def GetThumbPosition(*args, **kwargs): - """GetThumbPosition(self) -> int""" - return _controls.ScrollBar_GetThumbPosition(*args, **kwargs) - - def GetThumbSize(*args, **kwargs): - """GetThumbSize(self) -> int""" - return _controls.ScrollBar_GetThumbSize(*args, **kwargs) - - GetThumbLength = GetThumbSize - def GetPageSize(*args, **kwargs): - """GetPageSize(self) -> int""" - return _controls.ScrollBar_GetPageSize(*args, **kwargs) - - def GetRange(*args, **kwargs): - """GetRange(self) -> int""" - return _controls.ScrollBar_GetRange(*args, **kwargs) - - def IsVertical(*args, **kwargs): - """IsVertical(self) -> bool""" - return _controls.ScrollBar_IsVertical(*args, **kwargs) - - def SetThumbPosition(*args, **kwargs): - """SetThumbPosition(self, int viewStart)""" - return _controls.ScrollBar_SetThumbPosition(*args, **kwargs) - - def SetScrollbar(*args, **kwargs): - """ - SetScrollbar(self, int position, int thumbSize, int range, int pageSize, - bool refresh=True) - - Sets the scrollbar properties of a built-in scrollbar. - - orientation: Determines the scrollbar whose page size is to be - set. May be wx.HORIZONTAL or wx.VERTICAL. - - position: The position of the scrollbar in scroll units. - - thumbSize: The size of the thumb, or visible portion of the - scrollbar, in scroll units. - - range: The maximum position of the scrollbar. - - refresh: True to redraw the scrollbar, false otherwise. - """ - return _controls.ScrollBar_SetScrollbar(*args, **kwargs) - - -class ScrollBarPtr(ScrollBar): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ScrollBar -_controls.ScrollBar_swigregister(ScrollBarPtr) -ScrollBarNameStr = cvar.ScrollBarNameStr - -def PreScrollBar(*args, **kwargs): - """PreScrollBar() -> ScrollBar""" - val = _controls.new_PreScrollBar(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -SP_HORIZONTAL = _controls.SP_HORIZONTAL -SP_VERTICAL = _controls.SP_VERTICAL -SP_ARROW_KEYS = _controls.SP_ARROW_KEYS -SP_WRAP = _controls.SP_WRAP -class SpinButton(core.Control): - def __repr__(self): - return "<%s.%s; proxy of C++ wxSpinButton instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, long style=SP_HORIZONTAL, - String name=SPIN_BUTTON_NAME) -> SpinButton - """ - newobj = _controls.new_SpinButton(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, long style=SP_HORIZONTAL, - String name=SPIN_BUTTON_NAME) -> bool - """ - return _controls.SpinButton_Create(*args, **kwargs) - - def GetValue(*args, **kwargs): - """GetValue(self) -> int""" - return _controls.SpinButton_GetValue(*args, **kwargs) - - def GetMin(*args, **kwargs): - """GetMin(self) -> int""" - return _controls.SpinButton_GetMin(*args, **kwargs) - - def GetMax(*args, **kwargs): - """GetMax(self) -> int""" - return _controls.SpinButton_GetMax(*args, **kwargs) - - def SetValue(*args, **kwargs): - """SetValue(self, int val)""" - return _controls.SpinButton_SetValue(*args, **kwargs) - - def SetMin(*args, **kwargs): - """SetMin(self, int minVal)""" - return _controls.SpinButton_SetMin(*args, **kwargs) - - def SetMax(*args, **kwargs): - """SetMax(self, int maxVal)""" - return _controls.SpinButton_SetMax(*args, **kwargs) - - def SetRange(*args, **kwargs): - """SetRange(self, int minVal, int maxVal)""" - return _controls.SpinButton_SetRange(*args, **kwargs) - - def IsVertical(*args, **kwargs): - """IsVertical(self) -> bool""" - return _controls.SpinButton_IsVertical(*args, **kwargs) - - -class SpinButtonPtr(SpinButton): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = SpinButton -_controls.SpinButton_swigregister(SpinButtonPtr) -SPIN_BUTTON_NAME = cvar.SPIN_BUTTON_NAME -SpinCtrlNameStr = cvar.SpinCtrlNameStr - -def PreSpinButton(*args, **kwargs): - """PreSpinButton() -> SpinButton""" - val = _controls.new_PreSpinButton(*args, **kwargs) - val.thisown = 1 - return val - -class SpinCtrl(core.Control): - def __repr__(self): - return "<%s.%s; proxy of C++ wxSpinCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id=-1, String value=EmptyString, - Point pos=DefaultPosition, Size size=DefaultSize, - long style=SP_ARROW_KEYS, int min=0, int max=100, - int initial=0, String name=SpinCtrlNameStr) -> SpinCtrl - """ - newobj = _controls.new_SpinCtrl(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id=-1, String value=EmptyString, - Point pos=DefaultPosition, Size size=DefaultSize, - long style=SP_ARROW_KEYS, int min=0, int max=100, - int initial=0, String name=SpinCtrlNameStr) -> bool - """ - return _controls.SpinCtrl_Create(*args, **kwargs) - - def GetValue(*args, **kwargs): - """GetValue(self) -> int""" - return _controls.SpinCtrl_GetValue(*args, **kwargs) - - def SetValue(*args, **kwargs): - """SetValue(self, int value)""" - return _controls.SpinCtrl_SetValue(*args, **kwargs) - - def SetValueString(*args, **kwargs): - """SetValueString(self, String text)""" - return _controls.SpinCtrl_SetValueString(*args, **kwargs) - - def SetRange(*args, **kwargs): - """SetRange(self, int minVal, int maxVal)""" - return _controls.SpinCtrl_SetRange(*args, **kwargs) - - def GetMin(*args, **kwargs): - """GetMin(self) -> int""" - return _controls.SpinCtrl_GetMin(*args, **kwargs) - - def GetMax(*args, **kwargs): - """GetMax(self) -> int""" - return _controls.SpinCtrl_GetMax(*args, **kwargs) - - def SetSelection(*args, **kwargs): - """SetSelection(self, long from, long to)""" - return _controls.SpinCtrl_SetSelection(*args, **kwargs) - - -class SpinCtrlPtr(SpinCtrl): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = SpinCtrl -_controls.SpinCtrl_swigregister(SpinCtrlPtr) - -def PreSpinCtrl(*args, **kwargs): - """PreSpinCtrl() -> SpinCtrl""" - val = _controls.new_PreSpinCtrl(*args, **kwargs) - val.thisown = 1 - return val - -class SpinEvent(core.NotifyEvent): - def __repr__(self): - return "<%s.%s; proxy of C++ wxSpinEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, wxEventType commandType=wxEVT_NULL, int winid=0) -> SpinEvent""" - newobj = _controls.new_SpinEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetPosition(*args, **kwargs): - """GetPosition(self) -> int""" - return _controls.SpinEvent_GetPosition(*args, **kwargs) - - def SetPosition(*args, **kwargs): - """SetPosition(self, int pos)""" - return _controls.SpinEvent_SetPosition(*args, **kwargs) - - -class SpinEventPtr(SpinEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = SpinEvent -_controls.SpinEvent_swigregister(SpinEventPtr) - -wxEVT_COMMAND_SPINCTRL_UPDATED = _controls.wxEVT_COMMAND_SPINCTRL_UPDATED -EVT_SPIN_UP = wx.PyEventBinder( wx.wxEVT_SCROLL_LINEUP, 1) -EVT_SPIN_DOWN = wx.PyEventBinder( wx.wxEVT_SCROLL_LINEDOWN, 1) -EVT_SPIN = wx.PyEventBinder( wx.wxEVT_SCROLL_THUMBTRACK, 1) -EVT_SPINCTRL = wx.PyEventBinder( wxEVT_COMMAND_SPINCTRL_UPDATED, 1) - -#--------------------------------------------------------------------------- - -class RadioBox(core.Control): - def __repr__(self): - return "<%s.%s; proxy of C++ wxRadioBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, String label, Point pos=DefaultPosition, - Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray, - int majorDimension=0, - long style=RA_HORIZONTAL, Validator validator=DefaultValidator, - String name=RadioBoxNameStr) -> RadioBox - """ - if kwargs.has_key('point'): kwargs['pos'] = kwargs['point'];del kwargs['point'] - newobj = _controls.new_RadioBox(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id, String label, Point pos=DefaultPosition, - Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray, - int majorDimension=0, - long style=RA_HORIZONTAL, Validator validator=DefaultValidator, - String name=RadioBoxNameStr) -> bool - """ - return _controls.RadioBox_Create(*args, **kwargs) - - def SetSelection(*args, **kwargs): - """SetSelection(self, int n)""" - return _controls.RadioBox_SetSelection(*args, **kwargs) - - def GetSelection(*args, **kwargs): - """GetSelection(self) -> int""" - return _controls.RadioBox_GetSelection(*args, **kwargs) - - def GetStringSelection(*args, **kwargs): - """GetStringSelection(self) -> String""" - return _controls.RadioBox_GetStringSelection(*args, **kwargs) - - def SetStringSelection(*args, **kwargs): - """SetStringSelection(self, String s) -> bool""" - return _controls.RadioBox_SetStringSelection(*args, **kwargs) - - def GetCount(*args, **kwargs): - """GetCount(self) -> int""" - return _controls.RadioBox_GetCount(*args, **kwargs) - - def FindString(*args, **kwargs): - """FindString(self, String s) -> int""" - return _controls.RadioBox_FindString(*args, **kwargs) - - def GetString(*args, **kwargs): - """GetString(self, int n) -> String""" - return _controls.RadioBox_GetString(*args, **kwargs) - - def SetString(*args, **kwargs): - """SetString(self, int n, String label)""" - return _controls.RadioBox_SetString(*args, **kwargs) - - GetItemLabel = GetString - SetItemLabel = SetString - def EnableItem(*args, **kwargs): - """EnableItem(self, int n, bool enable=True)""" - return _controls.RadioBox_EnableItem(*args, **kwargs) - - def ShowItem(*args, **kwargs): - """ShowItem(self, int n, bool show=True)""" - return _controls.RadioBox_ShowItem(*args, **kwargs) - - def GetColumnCount(*args, **kwargs): - """GetColumnCount(self) -> int""" - return _controls.RadioBox_GetColumnCount(*args, **kwargs) - - def GetRowCount(*args, **kwargs): - """GetRowCount(self) -> int""" - return _controls.RadioBox_GetRowCount(*args, **kwargs) - - def GetNextItem(*args, **kwargs): - """GetNextItem(self, int item, int dir, long style) -> int""" - return _controls.RadioBox_GetNextItem(*args, **kwargs) - - -class RadioBoxPtr(RadioBox): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = RadioBox -_controls.RadioBox_swigregister(RadioBoxPtr) -RadioBoxNameStr = cvar.RadioBoxNameStr -RadioButtonNameStr = cvar.RadioButtonNameStr - -def PreRadioBox(*args, **kwargs): - """PreRadioBox() -> RadioBox""" - val = _controls.new_PreRadioBox(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -class RadioButton(core.Control): - def __repr__(self): - return "<%s.%s; proxy of C++ wxRadioButton instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, String label, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, - Validator validator=DefaultValidator, String name=RadioButtonNameStr) -> RadioButton - """ - newobj = _controls.new_RadioButton(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id, String label, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, - Validator validator=DefaultValidator, String name=RadioButtonNameStr) -> bool - """ - return _controls.RadioButton_Create(*args, **kwargs) - - def GetValue(*args, **kwargs): - """GetValue(self) -> bool""" - return _controls.RadioButton_GetValue(*args, **kwargs) - - def SetValue(*args, **kwargs): - """SetValue(self, bool value)""" - return _controls.RadioButton_SetValue(*args, **kwargs) - - -class RadioButtonPtr(RadioButton): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = RadioButton -_controls.RadioButton_swigregister(RadioButtonPtr) - -def PreRadioButton(*args, **kwargs): - """PreRadioButton() -> RadioButton""" - val = _controls.new_PreRadioButton(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -class Slider(core.Control): - def __repr__(self): - return "<%s.%s; proxy of C++ wxSlider instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, int value, int minValue, int maxValue, - Point pos=DefaultPosition, Size size=DefaultSize, - long style=SL_HORIZONTAL, Validator validator=DefaultValidator, - String name=SliderNameStr) -> Slider - """ - if kwargs.has_key('point'): kwargs['pos'] = kwargs['point'];del kwargs['point'] - newobj = _controls.new_Slider(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id, int value, int minValue, int maxValue, - Point pos=DefaultPosition, Size size=DefaultSize, - long style=SL_HORIZONTAL, Validator validator=DefaultValidator, - String name=SliderNameStr) -> bool - """ - return _controls.Slider_Create(*args, **kwargs) - - def GetValue(*args, **kwargs): - """GetValue(self) -> int""" - return _controls.Slider_GetValue(*args, **kwargs) - - def SetValue(*args, **kwargs): - """SetValue(self, int value)""" - return _controls.Slider_SetValue(*args, **kwargs) - - def SetRange(*args, **kwargs): - """SetRange(self, int minValue, int maxValue)""" - return _controls.Slider_SetRange(*args, **kwargs) - - def GetMin(*args, **kwargs): - """GetMin(self) -> int""" - return _controls.Slider_GetMin(*args, **kwargs) - - def GetMax(*args, **kwargs): - """GetMax(self) -> int""" - return _controls.Slider_GetMax(*args, **kwargs) - - def SetMin(*args, **kwargs): - """SetMin(self, int minValue)""" - return _controls.Slider_SetMin(*args, **kwargs) - - def SetMax(*args, **kwargs): - """SetMax(self, int maxValue)""" - return _controls.Slider_SetMax(*args, **kwargs) - - def SetLineSize(*args, **kwargs): - """SetLineSize(self, int lineSize)""" - return _controls.Slider_SetLineSize(*args, **kwargs) - - def SetPageSize(*args, **kwargs): - """SetPageSize(self, int pageSize)""" - return _controls.Slider_SetPageSize(*args, **kwargs) - - def GetLineSize(*args, **kwargs): - """GetLineSize(self) -> int""" - return _controls.Slider_GetLineSize(*args, **kwargs) - - def GetPageSize(*args, **kwargs): - """GetPageSize(self) -> int""" - return _controls.Slider_GetPageSize(*args, **kwargs) - - def SetThumbLength(*args, **kwargs): - """SetThumbLength(self, int lenPixels)""" - return _controls.Slider_SetThumbLength(*args, **kwargs) - - def GetThumbLength(*args, **kwargs): - """GetThumbLength(self) -> int""" - return _controls.Slider_GetThumbLength(*args, **kwargs) - - def SetTickFreq(*args, **kwargs): - """SetTickFreq(self, int n, int pos=1)""" - return _controls.Slider_SetTickFreq(*args, **kwargs) - - def GetTickFreq(*args, **kwargs): - """GetTickFreq(self) -> int""" - return _controls.Slider_GetTickFreq(*args, **kwargs) - - def ClearTicks(*args, **kwargs): - """ClearTicks(self)""" - return _controls.Slider_ClearTicks(*args, **kwargs) - - def SetTick(*args, **kwargs): - """SetTick(self, int tickPos)""" - return _controls.Slider_SetTick(*args, **kwargs) - - def ClearSel(*args, **kwargs): - """ClearSel(self)""" - return _controls.Slider_ClearSel(*args, **kwargs) - - def GetSelEnd(*args, **kwargs): - """GetSelEnd(self) -> int""" - return _controls.Slider_GetSelEnd(*args, **kwargs) - - def GetSelStart(*args, **kwargs): - """GetSelStart(self) -> int""" - return _controls.Slider_GetSelStart(*args, **kwargs) - - def SetSelection(*args, **kwargs): - """SetSelection(self, int min, int max)""" - return _controls.Slider_SetSelection(*args, **kwargs) - - -class SliderPtr(Slider): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Slider -_controls.Slider_swigregister(SliderPtr) -SliderNameStr = cvar.SliderNameStr - -def PreSlider(*args, **kwargs): - """PreSlider() -> Slider""" - val = _controls.new_PreSlider(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -wxEVT_COMMAND_TOGGLEBUTTON_CLICKED = _controls.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED -EVT_TOGGLEBUTTON = wx.PyEventBinder( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, 1) - -class ToggleButton(core.Control): - def __repr__(self): - return "<%s.%s; proxy of C++ wxToggleButton instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, String label, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, - Validator validator=DefaultValidator, String name=ToggleButtonNameStr) -> ToggleButton - """ - newobj = _controls.new_ToggleButton(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id, String label, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, - Validator validator=DefaultValidator, String name=ToggleButtonNameStr) -> bool - """ - return _controls.ToggleButton_Create(*args, **kwargs) - - def SetValue(*args, **kwargs): - """SetValue(self, bool value)""" - return _controls.ToggleButton_SetValue(*args, **kwargs) - - def GetValue(*args, **kwargs): - """GetValue(self) -> bool""" - return _controls.ToggleButton_GetValue(*args, **kwargs) - - def SetLabel(*args, **kwargs): - """ - SetLabel(self, String label) - - Sets the item's text. - """ - return _controls.ToggleButton_SetLabel(*args, **kwargs) - - -class ToggleButtonPtr(ToggleButton): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ToggleButton -_controls.ToggleButton_swigregister(ToggleButtonPtr) -ToggleButtonNameStr = cvar.ToggleButtonNameStr - -def PreToggleButton(*args, **kwargs): - """PreToggleButton() -> ToggleButton""" - val = _controls.new_PreToggleButton(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -class BookCtrl(core.Control): - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxBookCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def GetPageCount(*args, **kwargs): - """GetPageCount(self) -> size_t""" - return _controls.BookCtrl_GetPageCount(*args, **kwargs) - - def GetPage(*args, **kwargs): - """GetPage(self, size_t n) -> Window""" - return _controls.BookCtrl_GetPage(*args, **kwargs) - - def GetSelection(*args, **kwargs): - """GetSelection(self) -> int""" - return _controls.BookCtrl_GetSelection(*args, **kwargs) - - def SetPageText(*args, **kwargs): - """SetPageText(self, size_t n, String strText) -> bool""" - return _controls.BookCtrl_SetPageText(*args, **kwargs) - - def GetPageText(*args, **kwargs): - """GetPageText(self, size_t n) -> String""" - return _controls.BookCtrl_GetPageText(*args, **kwargs) - - def SetImageList(*args, **kwargs): - """SetImageList(self, ImageList imageList)""" - return _controls.BookCtrl_SetImageList(*args, **kwargs) - - def AssignImageList(*args, **kwargs): - """AssignImageList(self, ImageList imageList)""" - return _controls.BookCtrl_AssignImageList(*args, **kwargs) - - def GetImageList(*args, **kwargs): - """GetImageList(self) -> ImageList""" - return _controls.BookCtrl_GetImageList(*args, **kwargs) - - def GetPageImage(*args, **kwargs): - """GetPageImage(self, size_t n) -> int""" - return _controls.BookCtrl_GetPageImage(*args, **kwargs) - - def SetPageImage(*args, **kwargs): - """SetPageImage(self, size_t n, int imageId) -> bool""" - return _controls.BookCtrl_SetPageImage(*args, **kwargs) - - def SetPageSize(*args, **kwargs): - """SetPageSize(self, Size size)""" - return _controls.BookCtrl_SetPageSize(*args, **kwargs) - - def CalcSizeFromPage(*args, **kwargs): - """CalcSizeFromPage(self, Size sizePage) -> Size""" - return _controls.BookCtrl_CalcSizeFromPage(*args, **kwargs) - - def DeletePage(*args, **kwargs): - """DeletePage(self, size_t n) -> bool""" - return _controls.BookCtrl_DeletePage(*args, **kwargs) - - def RemovePage(*args, **kwargs): - """RemovePage(self, size_t n) -> bool""" - return _controls.BookCtrl_RemovePage(*args, **kwargs) - - def DeleteAllPages(*args, **kwargs): - """DeleteAllPages(self) -> bool""" - return _controls.BookCtrl_DeleteAllPages(*args, **kwargs) - - def AddPage(*args, **kwargs): - """AddPage(self, Window page, String text, bool select=False, int imageId=-1) -> bool""" - return _controls.BookCtrl_AddPage(*args, **kwargs) - - def InsertPage(*args, **kwargs): - """ - InsertPage(self, size_t n, Window page, String text, bool select=False, - int imageId=-1) -> bool - """ - return _controls.BookCtrl_InsertPage(*args, **kwargs) - - def SetSelection(*args, **kwargs): - """SetSelection(self, size_t n) -> int""" - return _controls.BookCtrl_SetSelection(*args, **kwargs) - - def AdvanceSelection(*args, **kwargs): - """AdvanceSelection(self, bool forward=True)""" - return _controls.BookCtrl_AdvanceSelection(*args, **kwargs) - - -class BookCtrlPtr(BookCtrl): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = BookCtrl -_controls.BookCtrl_swigregister(BookCtrlPtr) -NOTEBOOK_NAME = cvar.NOTEBOOK_NAME - -class BookCtrlEvent(core.NotifyEvent): - def __repr__(self): - return "<%s.%s; proxy of C++ wxBookCtrlEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1, - int nOldSel=-1) -> BookCtrlEvent - """ - newobj = _controls.new_BookCtrlEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetSelection(*args, **kwargs): - """GetSelection(self) -> int""" - return _controls.BookCtrlEvent_GetSelection(*args, **kwargs) - - def SetSelection(*args, **kwargs): - """SetSelection(self, int nSel)""" - return _controls.BookCtrlEvent_SetSelection(*args, **kwargs) - - def GetOldSelection(*args, **kwargs): - """GetOldSelection(self) -> int""" - return _controls.BookCtrlEvent_GetOldSelection(*args, **kwargs) - - def SetOldSelection(*args, **kwargs): - """SetOldSelection(self, int nOldSel)""" - return _controls.BookCtrlEvent_SetOldSelection(*args, **kwargs) - - -class BookCtrlEventPtr(BookCtrlEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = BookCtrlEvent -_controls.BookCtrlEvent_swigregister(BookCtrlEventPtr) - -#--------------------------------------------------------------------------- - -NB_FIXEDWIDTH = _controls.NB_FIXEDWIDTH -NB_TOP = _controls.NB_TOP -NB_LEFT = _controls.NB_LEFT -NB_RIGHT = _controls.NB_RIGHT -NB_BOTTOM = _controls.NB_BOTTOM -NB_MULTILINE = _controls.NB_MULTILINE -NB_HITTEST_NOWHERE = _controls.NB_HITTEST_NOWHERE -NB_HITTEST_ONICON = _controls.NB_HITTEST_ONICON -NB_HITTEST_ONLABEL = _controls.NB_HITTEST_ONLABEL -NB_HITTEST_ONITEM = _controls.NB_HITTEST_ONITEM -class Notebook(BookCtrl): - def __repr__(self): - return "<%s.%s; proxy of C++ wxNotebook instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, String name=NOTEBOOK_NAME) -> Notebook - """ - newobj = _controls.new_Notebook(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - long style=0, String name=NOTEBOOK_NAME) -> bool - """ - return _controls.Notebook_Create(*args, **kwargs) - - def GetRowCount(*args, **kwargs): - """GetRowCount(self) -> int""" - return _controls.Notebook_GetRowCount(*args, **kwargs) - - def SetPadding(*args, **kwargs): - """SetPadding(self, Size padding)""" - return _controls.Notebook_SetPadding(*args, **kwargs) - - def SetTabSize(*args, **kwargs): - """SetTabSize(self, Size sz)""" - return _controls.Notebook_SetTabSize(*args, **kwargs) - - def HitTest(*args, **kwargs): - """ - HitTest(Point pt) -> (tab, where) - - Returns the tab which is hit, and flags indicating where using wx.NB_HITTEST_ flags. - """ - return _controls.Notebook_HitTest(*args, **kwargs) - - def CalcSizeFromPage(*args, **kwargs): - """CalcSizeFromPage(self, Size sizePage) -> Size""" - return _controls.Notebook_CalcSizeFromPage(*args, **kwargs) - - def ApplyThemeBackground(*args, **kwargs): - """ApplyThemeBackground(self, Window window, Colour colour)""" - return _controls.Notebook_ApplyThemeBackground(*args, **kwargs) - - -class NotebookPtr(Notebook): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Notebook -_controls.Notebook_swigregister(NotebookPtr) - -def PreNotebook(*args, **kwargs): - """PreNotebook() -> Notebook""" - val = _controls.new_PreNotebook(*args, **kwargs) - val.thisown = 1 - return val - -class NotebookEvent(BookCtrlEvent): - def __repr__(self): - return "<%s.%s; proxy of C++ wxNotebookEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1, - int nOldSel=-1) -> NotebookEvent - """ - newobj = _controls.new_NotebookEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class NotebookEventPtr(NotebookEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = NotebookEvent -_controls.NotebookEvent_swigregister(NotebookEventPtr) - -wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED = _controls.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED -wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING = _controls.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING -# wxNotebook events -EVT_NOTEBOOK_PAGE_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, 1 ) -EVT_NOTEBOOK_PAGE_CHANGING = wx.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING, 1 ) - -#---------------------------------------------------------------------------- - -class NotebookPage(wx.Panel): - """ - There is an old (and apparently unsolvable) bug when placing a - window with a nonstandard background colour in a wxNotebook on - wxGTK, as the notbooks's background colour would always be used - when the window is refreshed. The solution is to place a panel in - the notbook and the coloured window on the panel, sized to cover - the panel. This simple class does that for you, just put an - instance of this in the notebook and make your regular window a - child of this one and it will handle the resize for you. - """ - def __init__(self, parent, id=-1, - pos=wx.DefaultPosition, size=wx.DefaultSize, - style=wx.TAB_TRAVERSAL, name="panel"): - wx.Panel.__init__(self, parent, id, pos, size, style, name) - self.child = None - EVT_SIZE(self, self.OnSize) - - def OnSize(self, evt): - if self.child is None: - children = self.GetChildren() - if len(children): - self.child = children[0] - if self.child: - self.child.SetPosition((0,0)) - self.child.SetSize(self.GetSize()) - - -#--------------------------------------------------------------------------- - -LB_DEFAULT = _controls.LB_DEFAULT -LB_TOP = _controls.LB_TOP -LB_BOTTOM = _controls.LB_BOTTOM -LB_LEFT = _controls.LB_LEFT -LB_RIGHT = _controls.LB_RIGHT -LB_ALIGN_MASK = _controls.LB_ALIGN_MASK -class Listbook(BookCtrl): - def __repr__(self): - return "<%s.%s; proxy of C++ wxListbook instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, String name=EmptyString) -> Listbook - """ - newobj = _controls.new_Listbook(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - long style=0, String name=EmptyString) -> bool - """ - return _controls.Listbook_Create(*args, **kwargs) - - def IsVertical(*args, **kwargs): - """IsVertical(self) -> bool""" - return _controls.Listbook_IsVertical(*args, **kwargs) - - -class ListbookPtr(Listbook): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Listbook -_controls.Listbook_swigregister(ListbookPtr) - -def PreListbook(*args, **kwargs): - """PreListbook() -> Listbook""" - val = _controls.new_PreListbook(*args, **kwargs) - val.thisown = 1 - return val - -class ListbookEvent(BookCtrlEvent): - def __repr__(self): - return "<%s.%s; proxy of C++ wxListbookEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1, - int nOldSel=-1) -> ListbookEvent - """ - newobj = _controls.new_ListbookEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class ListbookEventPtr(ListbookEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ListbookEvent -_controls.ListbookEvent_swigregister(ListbookEventPtr) - -wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED = _controls.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED -wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING = _controls.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING -EVT_LISTBOOK_PAGE_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED, 1 ) -EVT_LISTBOOK_PAGE_CHANGING = wx.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING, 1 ) - -#--------------------------------------------------------------------------- - -class BookCtrlSizer(core.Sizer): - def __repr__(self): - return "<%s.%s; proxy of C++ wxBookCtrlSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, BookCtrl nb) -> BookCtrlSizer""" - newobj = _controls.new_BookCtrlSizer(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def RecalcSizes(*args, **kwargs): - """RecalcSizes(self)""" - return _controls.BookCtrlSizer_RecalcSizes(*args, **kwargs) - - def CalcMin(*args, **kwargs): - """CalcMin(self) -> Size""" - return _controls.BookCtrlSizer_CalcMin(*args, **kwargs) - - def GetControl(*args, **kwargs): - """GetControl(self) -> BookCtrl""" - return _controls.BookCtrlSizer_GetControl(*args, **kwargs) - - -class BookCtrlSizerPtr(BookCtrlSizer): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = BookCtrlSizer -_controls.BookCtrlSizer_swigregister(BookCtrlSizerPtr) - -class NotebookSizer(core.Sizer): - def __repr__(self): - return "<%s.%s; proxy of C++ wxNotebookSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Notebook nb) -> NotebookSizer""" - newobj = _controls.new_NotebookSizer(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def RecalcSizes(*args, **kwargs): - """RecalcSizes(self)""" - return _controls.NotebookSizer_RecalcSizes(*args, **kwargs) - - def CalcMin(*args, **kwargs): - """CalcMin(self) -> Size""" - return _controls.NotebookSizer_CalcMin(*args, **kwargs) - - def GetNotebook(*args, **kwargs): - """GetNotebook(self) -> Notebook""" - return _controls.NotebookSizer_GetNotebook(*args, **kwargs) - - -class NotebookSizerPtr(NotebookSizer): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = NotebookSizer -_controls.NotebookSizer_swigregister(NotebookSizerPtr) - -#--------------------------------------------------------------------------- - -TOOL_STYLE_BUTTON = _controls.TOOL_STYLE_BUTTON -TOOL_STYLE_SEPARATOR = _controls.TOOL_STYLE_SEPARATOR -TOOL_STYLE_CONTROL = _controls.TOOL_STYLE_CONTROL -TB_HORIZONTAL = _controls.TB_HORIZONTAL -TB_VERTICAL = _controls.TB_VERTICAL -TB_3DBUTTONS = _controls.TB_3DBUTTONS -TB_FLAT = _controls.TB_FLAT -TB_DOCKABLE = _controls.TB_DOCKABLE -TB_NOICONS = _controls.TB_NOICONS -TB_TEXT = _controls.TB_TEXT -TB_NODIVIDER = _controls.TB_NODIVIDER -TB_NOALIGN = _controls.TB_NOALIGN -TB_HORZ_LAYOUT = _controls.TB_HORZ_LAYOUT -TB_HORZ_TEXT = _controls.TB_HORZ_TEXT -class ToolBarToolBase(core.Object): - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxToolBarToolBase instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def GetId(*args, **kwargs): - """GetId(self) -> int""" - return _controls.ToolBarToolBase_GetId(*args, **kwargs) - - def GetControl(*args, **kwargs): - """GetControl(self) -> Control""" - return _controls.ToolBarToolBase_GetControl(*args, **kwargs) - - def GetToolBar(*args, **kwargs): - """GetToolBar(self) -> ToolBarBase""" - return _controls.ToolBarToolBase_GetToolBar(*args, **kwargs) - - def IsButton(*args, **kwargs): - """IsButton(self) -> int""" - return _controls.ToolBarToolBase_IsButton(*args, **kwargs) - - def IsControl(*args, **kwargs): - """IsControl(self) -> int""" - return _controls.ToolBarToolBase_IsControl(*args, **kwargs) - - def IsSeparator(*args, **kwargs): - """IsSeparator(self) -> int""" - return _controls.ToolBarToolBase_IsSeparator(*args, **kwargs) - - def GetStyle(*args, **kwargs): - """GetStyle(self) -> int""" - return _controls.ToolBarToolBase_GetStyle(*args, **kwargs) - - def GetKind(*args, **kwargs): - """GetKind(self) -> int""" - return _controls.ToolBarToolBase_GetKind(*args, **kwargs) - - def IsEnabled(*args, **kwargs): - """IsEnabled(self) -> bool""" - return _controls.ToolBarToolBase_IsEnabled(*args, **kwargs) - - def IsToggled(*args, **kwargs): - """IsToggled(self) -> bool""" - return _controls.ToolBarToolBase_IsToggled(*args, **kwargs) - - def CanBeToggled(*args, **kwargs): - """CanBeToggled(self) -> bool""" - return _controls.ToolBarToolBase_CanBeToggled(*args, **kwargs) - - def GetNormalBitmap(*args, **kwargs): - """GetNormalBitmap(self) -> Bitmap""" - return _controls.ToolBarToolBase_GetNormalBitmap(*args, **kwargs) - - def GetDisabledBitmap(*args, **kwargs): - """GetDisabledBitmap(self) -> Bitmap""" - return _controls.ToolBarToolBase_GetDisabledBitmap(*args, **kwargs) - - def GetBitmap(*args, **kwargs): - """GetBitmap(self) -> Bitmap""" - return _controls.ToolBarToolBase_GetBitmap(*args, **kwargs) - - def GetLabel(*args, **kwargs): - """GetLabel(self) -> String""" - return _controls.ToolBarToolBase_GetLabel(*args, **kwargs) - - def GetShortHelp(*args, **kwargs): - """GetShortHelp(self) -> String""" - return _controls.ToolBarToolBase_GetShortHelp(*args, **kwargs) - - def GetLongHelp(*args, **kwargs): - """GetLongHelp(self) -> String""" - return _controls.ToolBarToolBase_GetLongHelp(*args, **kwargs) - - def Enable(*args, **kwargs): - """Enable(self, bool enable) -> bool""" - return _controls.ToolBarToolBase_Enable(*args, **kwargs) - - def Toggle(*args, **kwargs): - """Toggle(self)""" - return _controls.ToolBarToolBase_Toggle(*args, **kwargs) - - def SetToggle(*args, **kwargs): - """SetToggle(self, bool toggle) -> bool""" - return _controls.ToolBarToolBase_SetToggle(*args, **kwargs) - - def SetShortHelp(*args, **kwargs): - """SetShortHelp(self, String help) -> bool""" - return _controls.ToolBarToolBase_SetShortHelp(*args, **kwargs) - - def SetLongHelp(*args, **kwargs): - """SetLongHelp(self, String help) -> bool""" - return _controls.ToolBarToolBase_SetLongHelp(*args, **kwargs) - - def SetNormalBitmap(*args, **kwargs): - """SetNormalBitmap(self, Bitmap bmp)""" - return _controls.ToolBarToolBase_SetNormalBitmap(*args, **kwargs) - - def SetDisabledBitmap(*args, **kwargs): - """SetDisabledBitmap(self, Bitmap bmp)""" - return _controls.ToolBarToolBase_SetDisabledBitmap(*args, **kwargs) - - def SetLabel(*args, **kwargs): - """SetLabel(self, String label)""" - return _controls.ToolBarToolBase_SetLabel(*args, **kwargs) - - def Detach(*args, **kwargs): - """Detach(self)""" - return _controls.ToolBarToolBase_Detach(*args, **kwargs) - - def Attach(*args, **kwargs): - """Attach(self, ToolBarBase tbar)""" - return _controls.ToolBarToolBase_Attach(*args, **kwargs) - - def GetClientData(*args, **kwargs): - """GetClientData(self) -> PyObject""" - return _controls.ToolBarToolBase_GetClientData(*args, **kwargs) - - def SetClientData(*args, **kwargs): - """SetClientData(self, PyObject clientData)""" - return _controls.ToolBarToolBase_SetClientData(*args, **kwargs) - - GetBitmap1 = GetNormalBitmap - GetBitmap2 = GetDisabledBitmap - SetBitmap1 = SetNormalBitmap - SetBitmap2 = SetDisabledBitmap - - -class ToolBarToolBasePtr(ToolBarToolBase): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ToolBarToolBase -_controls.ToolBarToolBase_swigregister(ToolBarToolBasePtr) - -class ToolBarBase(core.Control): - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxToolBarBase instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def DoAddTool(*args, **kwargs): - """ - DoAddTool(self, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap, - int kind=ITEM_NORMAL, String shortHelp=EmptyString, - String longHelp=EmptyString, - PyObject clientData=None) -> ToolBarToolBase - """ - return _controls.ToolBarBase_DoAddTool(*args, **kwargs) - - def DoInsertTool(*args, **kwargs): - """ - DoInsertTool(self, size_t pos, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap, - int kind=ITEM_NORMAL, - String shortHelp=EmptyString, String longHelp=EmptyString, - PyObject clientData=None) -> ToolBarToolBase - """ - return _controls.ToolBarBase_DoInsertTool(*args, **kwargs) - - # These match the original Add methods for this class, kept for - # backwards compatibility with versions < 2.3.3. - - - def AddTool(self, id, bitmap, - pushedBitmap = wx.NullBitmap, - isToggle = 0, - clientData = None, - shortHelpString = '', - longHelpString = '') : - '''Old style method to add a tool to the toolbar.''' - kind = wx.ITEM_NORMAL - if isToggle: kind = wx.ITEM_CHECK - return self.DoAddTool(id, '', bitmap, pushedBitmap, kind, - shortHelpString, longHelpString, clientData) - - def AddSimpleTool(self, id, bitmap, - shortHelpString = '', - longHelpString = '', - isToggle = 0): - '''Old style method to add a tool to the toolbar.''' - kind = wx.ITEM_NORMAL - if isToggle: kind = wx.ITEM_CHECK - return self.DoAddTool(id, '', bitmap, wx.NullBitmap, kind, - shortHelpString, longHelpString, None) - - def InsertTool(self, pos, id, bitmap, - pushedBitmap = wx.NullBitmap, - isToggle = 0, - clientData = None, - shortHelpString = '', - longHelpString = ''): - '''Old style method to insert a tool in the toolbar.''' - kind = wx.ITEM_NORMAL - if isToggle: kind = wx.ITEM_CHECK - return self.DoInsertTool(pos, id, '', bitmap, pushedBitmap, kind, - shortHelpString, longHelpString, clientData) - - def InsertSimpleTool(self, pos, id, bitmap, - shortHelpString = '', - longHelpString = '', - isToggle = 0): - '''Old style method to insert a tool in the toolbar.''' - kind = wx.ITEM_NORMAL - if isToggle: kind = wx.ITEM_CHECK - return self.DoInsertTool(pos, id, '', bitmap, wx.NullBitmap, kind, - shortHelpString, longHelpString, None) - - - # The following are the new toolbar Add methods starting with - # 2.3.3. They are renamed to have 'Label' in the name so as to be - # able to keep backwards compatibility with using the above - # methods. Eventually these should migrate to be the methods used - # primarily and lose the 'Label' in the name... - - def AddLabelTool(self, id, label, bitmap, - bmpDisabled = wx.NullBitmap, - kind = wx.ITEM_NORMAL, - shortHelp = '', longHelp = '', - clientData = None): - ''' - The full AddTool() function. - - If bmpDisabled is wx.NullBitmap, a shadowed version of the normal bitmap - is created and used as the disabled image. - ''' - return self.DoAddTool(id, label, bitmap, bmpDisabled, kind, - shortHelp, longHelp, clientData) - - - def InsertLabelTool(self, pos, id, label, bitmap, - bmpDisabled = wx.NullBitmap, - kind = wx.ITEM_NORMAL, - shortHelp = '', longHelp = '', - clientData = None): - ''' - Insert the new tool at the given position, if pos == GetToolsCount(), it - is equivalent to AddTool() - ''' - return self.DoInsertTool(pos, id, label, bitmap, bmpDisabled, kind, - shortHelp, longHelp, clientData) - - def AddCheckLabelTool(self, id, label, bitmap, - bmpDisabled = wx.NullBitmap, - shortHelp = '', longHelp = '', - clientData = None): - '''Add a check tool, i.e. a tool which can be toggled''' - return self.DoAddTool(id, label, bitmap, bmpDisabled, wx.ITEM_CHECK, - shortHelp, longHelp, clientData) - - def AddRadioLabelTool(self, id, label, bitmap, - bmpDisabled = wx.NullBitmap, - shortHelp = '', longHelp = '', - clientData = None): - ''' - Add a radio tool, i.e. a tool which can be toggled and releases any - other toggled radio tools in the same group when it happens - ''' - return self.DoAddTool(id, label, bitmap, bmpDisabled, wx.ITEM_RADIO, - shortHelp, longHelp, clientData) - - - # For consistency with the backwards compatible methods above, here are - # some non-'Label' versions of the Check and Radio methods - def AddCheckTool(self, id, bitmap, - bmpDisabled = wx.NullBitmap, - shortHelp = '', longHelp = '', - clientData = None): - '''Add a check tool, i.e. a tool which can be toggled''' - return self.DoAddTool(id, '', bitmap, bmpDisabled, wx.ITEM_CHECK, - shortHelp, longHelp, clientData) - - def AddRadioTool(self, id, bitmap, - bmpDisabled = wx.NullBitmap, - shortHelp = '', longHelp = '', - clientData = None): - ''' - Add a radio tool, i.e. a tool which can be toggled and releases any - other toggled radio tools in the same group when it happens - ''' - return self.DoAddTool(id, '', bitmap, bmpDisabled, wx.ITEM_RADIO, - shortHelp, longHelp, clientData) - - def AddToolItem(*args, **kwargs): - """AddToolItem(self, ToolBarToolBase tool) -> ToolBarToolBase""" - return _controls.ToolBarBase_AddToolItem(*args, **kwargs) - - def InsertToolItem(*args, **kwargs): - """InsertToolItem(self, size_t pos, ToolBarToolBase tool) -> ToolBarToolBase""" - return _controls.ToolBarBase_InsertToolItem(*args, **kwargs) - - def AddControl(*args, **kwargs): - """AddControl(self, Control control) -> ToolBarToolBase""" - return _controls.ToolBarBase_AddControl(*args, **kwargs) - - def InsertControl(*args, **kwargs): - """InsertControl(self, size_t pos, Control control) -> ToolBarToolBase""" - return _controls.ToolBarBase_InsertControl(*args, **kwargs) - - def FindControl(*args, **kwargs): - """FindControl(self, int id) -> Control""" - return _controls.ToolBarBase_FindControl(*args, **kwargs) - - def AddSeparator(*args, **kwargs): - """AddSeparator(self) -> ToolBarToolBase""" - return _controls.ToolBarBase_AddSeparator(*args, **kwargs) - - def InsertSeparator(*args, **kwargs): - """InsertSeparator(self, size_t pos) -> ToolBarToolBase""" - return _controls.ToolBarBase_InsertSeparator(*args, **kwargs) - - def RemoveTool(*args, **kwargs): - """RemoveTool(self, int id) -> ToolBarToolBase""" - return _controls.ToolBarBase_RemoveTool(*args, **kwargs) - - def DeleteToolByPos(*args, **kwargs): - """DeleteToolByPos(self, size_t pos) -> bool""" - return _controls.ToolBarBase_DeleteToolByPos(*args, **kwargs) - - def DeleteTool(*args, **kwargs): - """DeleteTool(self, int id) -> bool""" - return _controls.ToolBarBase_DeleteTool(*args, **kwargs) - - def ClearTools(*args, **kwargs): - """ClearTools(self)""" - return _controls.ToolBarBase_ClearTools(*args, **kwargs) - - def Realize(*args, **kwargs): - """Realize(self) -> bool""" - return _controls.ToolBarBase_Realize(*args, **kwargs) - - def EnableTool(*args, **kwargs): - """EnableTool(self, int id, bool enable)""" - return _controls.ToolBarBase_EnableTool(*args, **kwargs) - - def ToggleTool(*args, **kwargs): - """ToggleTool(self, int id, bool toggle)""" - return _controls.ToolBarBase_ToggleTool(*args, **kwargs) - - def SetToggle(*args, **kwargs): - """SetToggle(self, int id, bool toggle)""" - return _controls.ToolBarBase_SetToggle(*args, **kwargs) - - def GetToolClientData(*args, **kwargs): - """GetToolClientData(self, int id) -> PyObject""" - return _controls.ToolBarBase_GetToolClientData(*args, **kwargs) - - def SetToolClientData(*args, **kwargs): - """SetToolClientData(self, int id, PyObject clientData)""" - return _controls.ToolBarBase_SetToolClientData(*args, **kwargs) - - def GetToolPos(*args, **kwargs): - """GetToolPos(self, int id) -> int""" - return _controls.ToolBarBase_GetToolPos(*args, **kwargs) - - def GetToolState(*args, **kwargs): - """GetToolState(self, int id) -> bool""" - return _controls.ToolBarBase_GetToolState(*args, **kwargs) - - def GetToolEnabled(*args, **kwargs): - """GetToolEnabled(self, int id) -> bool""" - return _controls.ToolBarBase_GetToolEnabled(*args, **kwargs) - - def SetToolShortHelp(*args, **kwargs): - """SetToolShortHelp(self, int id, String helpString)""" - return _controls.ToolBarBase_SetToolShortHelp(*args, **kwargs) - - def GetToolShortHelp(*args, **kwargs): - """GetToolShortHelp(self, int id) -> String""" - return _controls.ToolBarBase_GetToolShortHelp(*args, **kwargs) - - def SetToolLongHelp(*args, **kwargs): - """SetToolLongHelp(self, int id, String helpString)""" - return _controls.ToolBarBase_SetToolLongHelp(*args, **kwargs) - - def GetToolLongHelp(*args, **kwargs): - """GetToolLongHelp(self, int id) -> String""" - return _controls.ToolBarBase_GetToolLongHelp(*args, **kwargs) - - def SetMarginsXY(*args, **kwargs): - """SetMarginsXY(self, int x, int y)""" - return _controls.ToolBarBase_SetMarginsXY(*args, **kwargs) - - def SetMargins(*args, **kwargs): - """SetMargins(self, Size size)""" - return _controls.ToolBarBase_SetMargins(*args, **kwargs) - - def SetToolPacking(*args, **kwargs): - """SetToolPacking(self, int packing)""" - return _controls.ToolBarBase_SetToolPacking(*args, **kwargs) - - def SetToolSeparation(*args, **kwargs): - """SetToolSeparation(self, int separation)""" - return _controls.ToolBarBase_SetToolSeparation(*args, **kwargs) - - def GetToolMargins(*args, **kwargs): - """GetToolMargins(self) -> Size""" - return _controls.ToolBarBase_GetToolMargins(*args, **kwargs) - - def GetMargins(*args, **kwargs): - """GetMargins(self) -> Size""" - return _controls.ToolBarBase_GetMargins(*args, **kwargs) - - def GetToolPacking(*args, **kwargs): - """GetToolPacking(self) -> int""" - return _controls.ToolBarBase_GetToolPacking(*args, **kwargs) - - def GetToolSeparation(*args, **kwargs): - """GetToolSeparation(self) -> int""" - return _controls.ToolBarBase_GetToolSeparation(*args, **kwargs) - - def SetRows(*args, **kwargs): - """SetRows(self, int nRows)""" - return _controls.ToolBarBase_SetRows(*args, **kwargs) - - def SetMaxRowsCols(*args, **kwargs): - """SetMaxRowsCols(self, int rows, int cols)""" - return _controls.ToolBarBase_SetMaxRowsCols(*args, **kwargs) - - def GetMaxRows(*args, **kwargs): - """GetMaxRows(self) -> int""" - return _controls.ToolBarBase_GetMaxRows(*args, **kwargs) - - def GetMaxCols(*args, **kwargs): - """GetMaxCols(self) -> int""" - return _controls.ToolBarBase_GetMaxCols(*args, **kwargs) - - def SetToolBitmapSize(*args, **kwargs): - """SetToolBitmapSize(self, Size size)""" - return _controls.ToolBarBase_SetToolBitmapSize(*args, **kwargs) - - def GetToolBitmapSize(*args, **kwargs): - """GetToolBitmapSize(self) -> Size""" - return _controls.ToolBarBase_GetToolBitmapSize(*args, **kwargs) - - def GetToolSize(*args, **kwargs): - """GetToolSize(self) -> Size""" - return _controls.ToolBarBase_GetToolSize(*args, **kwargs) - - def FindToolForPosition(*args, **kwargs): - """FindToolForPosition(self, int x, int y) -> ToolBarToolBase""" - return _controls.ToolBarBase_FindToolForPosition(*args, **kwargs) - - def FindById(*args, **kwargs): - """FindById(self, int toolid) -> ToolBarToolBase""" - return _controls.ToolBarBase_FindById(*args, **kwargs) - - def IsVertical(*args, **kwargs): - """IsVertical(self) -> bool""" - return _controls.ToolBarBase_IsVertical(*args, **kwargs) - - -class ToolBarBasePtr(ToolBarBase): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ToolBarBase -_controls.ToolBarBase_swigregister(ToolBarBasePtr) - -class ToolBar(ToolBarBase): - def __repr__(self): - return "<%s.%s; proxy of C++ wxToolBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - long style=wxNO_BORDER|wxTB_HORIZONTAL, - String name=wxPyToolBarNameStr) -> ToolBar - """ - newobj = _controls.new_ToolBar(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - long style=wxNO_BORDER|wxTB_HORIZONTAL, - String name=wxPyToolBarNameStr) -> bool - """ - return _controls.ToolBar_Create(*args, **kwargs) - - def FindToolForPosition(*args, **kwargs): - """FindToolForPosition(self, int x, int y) -> ToolBarToolBase""" - return _controls.ToolBar_FindToolForPosition(*args, **kwargs) - - -class ToolBarPtr(ToolBar): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ToolBar -_controls.ToolBar_swigregister(ToolBarPtr) - -def PreToolBar(*args, **kwargs): - """PreToolBar() -> ToolBar""" - val = _controls.new_PreToolBar(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -LC_VRULES = _controls.LC_VRULES -LC_HRULES = _controls.LC_HRULES -LC_ICON = _controls.LC_ICON -LC_SMALL_ICON = _controls.LC_SMALL_ICON -LC_LIST = _controls.LC_LIST -LC_REPORT = _controls.LC_REPORT -LC_ALIGN_TOP = _controls.LC_ALIGN_TOP -LC_ALIGN_LEFT = _controls.LC_ALIGN_LEFT -LC_AUTOARRANGE = _controls.LC_AUTOARRANGE -LC_VIRTUAL = _controls.LC_VIRTUAL -LC_EDIT_LABELS = _controls.LC_EDIT_LABELS -LC_NO_HEADER = _controls.LC_NO_HEADER -LC_NO_SORT_HEADER = _controls.LC_NO_SORT_HEADER -LC_SINGLE_SEL = _controls.LC_SINGLE_SEL -LC_SORT_ASCENDING = _controls.LC_SORT_ASCENDING -LC_SORT_DESCENDING = _controls.LC_SORT_DESCENDING -LC_MASK_TYPE = _controls.LC_MASK_TYPE -LC_MASK_ALIGN = _controls.LC_MASK_ALIGN -LC_MASK_SORT = _controls.LC_MASK_SORT -LIST_MASK_STATE = _controls.LIST_MASK_STATE -LIST_MASK_TEXT = _controls.LIST_MASK_TEXT -LIST_MASK_IMAGE = _controls.LIST_MASK_IMAGE -LIST_MASK_DATA = _controls.LIST_MASK_DATA -LIST_SET_ITEM = _controls.LIST_SET_ITEM -LIST_MASK_WIDTH = _controls.LIST_MASK_WIDTH -LIST_MASK_FORMAT = _controls.LIST_MASK_FORMAT -LIST_STATE_DONTCARE = _controls.LIST_STATE_DONTCARE -LIST_STATE_DROPHILITED = _controls.LIST_STATE_DROPHILITED -LIST_STATE_FOCUSED = _controls.LIST_STATE_FOCUSED -LIST_STATE_SELECTED = _controls.LIST_STATE_SELECTED -LIST_STATE_CUT = _controls.LIST_STATE_CUT -LIST_STATE_DISABLED = _controls.LIST_STATE_DISABLED -LIST_STATE_FILTERED = _controls.LIST_STATE_FILTERED -LIST_STATE_INUSE = _controls.LIST_STATE_INUSE -LIST_STATE_PICKED = _controls.LIST_STATE_PICKED -LIST_STATE_SOURCE = _controls.LIST_STATE_SOURCE -LIST_HITTEST_ABOVE = _controls.LIST_HITTEST_ABOVE -LIST_HITTEST_BELOW = _controls.LIST_HITTEST_BELOW -LIST_HITTEST_NOWHERE = _controls.LIST_HITTEST_NOWHERE -LIST_HITTEST_ONITEMICON = _controls.LIST_HITTEST_ONITEMICON -LIST_HITTEST_ONITEMLABEL = _controls.LIST_HITTEST_ONITEMLABEL -LIST_HITTEST_ONITEMRIGHT = _controls.LIST_HITTEST_ONITEMRIGHT -LIST_HITTEST_ONITEMSTATEICON = _controls.LIST_HITTEST_ONITEMSTATEICON -LIST_HITTEST_TOLEFT = _controls.LIST_HITTEST_TOLEFT -LIST_HITTEST_TORIGHT = _controls.LIST_HITTEST_TORIGHT -LIST_HITTEST_ONITEM = _controls.LIST_HITTEST_ONITEM -LIST_NEXT_ABOVE = _controls.LIST_NEXT_ABOVE -LIST_NEXT_ALL = _controls.LIST_NEXT_ALL -LIST_NEXT_BELOW = _controls.LIST_NEXT_BELOW -LIST_NEXT_LEFT = _controls.LIST_NEXT_LEFT -LIST_NEXT_RIGHT = _controls.LIST_NEXT_RIGHT -LIST_ALIGN_DEFAULT = _controls.LIST_ALIGN_DEFAULT -LIST_ALIGN_LEFT = _controls.LIST_ALIGN_LEFT -LIST_ALIGN_TOP = _controls.LIST_ALIGN_TOP -LIST_ALIGN_SNAP_TO_GRID = _controls.LIST_ALIGN_SNAP_TO_GRID -LIST_FORMAT_LEFT = _controls.LIST_FORMAT_LEFT -LIST_FORMAT_RIGHT = _controls.LIST_FORMAT_RIGHT -LIST_FORMAT_CENTRE = _controls.LIST_FORMAT_CENTRE -LIST_FORMAT_CENTER = _controls.LIST_FORMAT_CENTER -LIST_AUTOSIZE = _controls.LIST_AUTOSIZE -LIST_AUTOSIZE_USEHEADER = _controls.LIST_AUTOSIZE_USEHEADER -LIST_RECT_BOUNDS = _controls.LIST_RECT_BOUNDS -LIST_RECT_ICON = _controls.LIST_RECT_ICON -LIST_RECT_LABEL = _controls.LIST_RECT_LABEL -LIST_FIND_UP = _controls.LIST_FIND_UP -LIST_FIND_DOWN = _controls.LIST_FIND_DOWN -LIST_FIND_LEFT = _controls.LIST_FIND_LEFT -LIST_FIND_RIGHT = _controls.LIST_FIND_RIGHT -#--------------------------------------------------------------------------- - -class ListItemAttr(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxListItemAttr instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour, - Font font=wxNullFont) -> ListItemAttr - """ - newobj = _controls.new_ListItemAttr(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def SetTextColour(*args, **kwargs): - """SetTextColour(self, Colour colText)""" - return _controls.ListItemAttr_SetTextColour(*args, **kwargs) - - def SetBackgroundColour(*args, **kwargs): - """SetBackgroundColour(self, Colour colBack)""" - return _controls.ListItemAttr_SetBackgroundColour(*args, **kwargs) - - def SetFont(*args, **kwargs): - """SetFont(self, Font font)""" - return _controls.ListItemAttr_SetFont(*args, **kwargs) - - def HasTextColour(*args, **kwargs): - """HasTextColour(self) -> bool""" - return _controls.ListItemAttr_HasTextColour(*args, **kwargs) - - def HasBackgroundColour(*args, **kwargs): - """HasBackgroundColour(self) -> bool""" - return _controls.ListItemAttr_HasBackgroundColour(*args, **kwargs) - - def HasFont(*args, **kwargs): - """HasFont(self) -> bool""" - return _controls.ListItemAttr_HasFont(*args, **kwargs) - - def GetTextColour(*args, **kwargs): - """GetTextColour(self) -> Colour""" - return _controls.ListItemAttr_GetTextColour(*args, **kwargs) - - def GetBackgroundColour(*args, **kwargs): - """GetBackgroundColour(self) -> Colour""" - return _controls.ListItemAttr_GetBackgroundColour(*args, **kwargs) - - def GetFont(*args, **kwargs): - """GetFont(self) -> Font""" - return _controls.ListItemAttr_GetFont(*args, **kwargs) - - def Destroy(*args, **kwargs): - """Destroy(self)""" - return _controls.ListItemAttr_Destroy(*args, **kwargs) - - -class ListItemAttrPtr(ListItemAttr): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ListItemAttr -_controls.ListItemAttr_swigregister(ListItemAttrPtr) -ListCtrlNameStr = cvar.ListCtrlNameStr - -#--------------------------------------------------------------------------- - -class ListItem(core.Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxListItem instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> ListItem""" - newobj = _controls.new_ListItem(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_controls.delete_ListItem): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Clear(*args, **kwargs): - """Clear(self)""" - return _controls.ListItem_Clear(*args, **kwargs) - - def ClearAttributes(*args, **kwargs): - """ClearAttributes(self)""" - return _controls.ListItem_ClearAttributes(*args, **kwargs) - - def SetMask(*args, **kwargs): - """SetMask(self, long mask)""" - return _controls.ListItem_SetMask(*args, **kwargs) - - def SetId(*args, **kwargs): - """SetId(self, long id)""" - return _controls.ListItem_SetId(*args, **kwargs) - - def SetColumn(*args, **kwargs): - """SetColumn(self, int col)""" - return _controls.ListItem_SetColumn(*args, **kwargs) - - def SetState(*args, **kwargs): - """SetState(self, long state)""" - return _controls.ListItem_SetState(*args, **kwargs) - - def SetStateMask(*args, **kwargs): - """SetStateMask(self, long stateMask)""" - return _controls.ListItem_SetStateMask(*args, **kwargs) - - def SetText(*args, **kwargs): - """SetText(self, String text)""" - return _controls.ListItem_SetText(*args, **kwargs) - - def SetImage(*args, **kwargs): - """SetImage(self, int image)""" - return _controls.ListItem_SetImage(*args, **kwargs) - - def SetData(*args, **kwargs): - """SetData(self, long data)""" - return _controls.ListItem_SetData(*args, **kwargs) - - def SetWidth(*args, **kwargs): - """SetWidth(self, int width)""" - return _controls.ListItem_SetWidth(*args, **kwargs) - - def SetAlign(*args, **kwargs): - """SetAlign(self, int align)""" - return _controls.ListItem_SetAlign(*args, **kwargs) - - def SetTextColour(*args, **kwargs): - """SetTextColour(self, Colour colText)""" - return _controls.ListItem_SetTextColour(*args, **kwargs) - - def SetBackgroundColour(*args, **kwargs): - """SetBackgroundColour(self, Colour colBack)""" - return _controls.ListItem_SetBackgroundColour(*args, **kwargs) - - def SetFont(*args, **kwargs): - """SetFont(self, Font font)""" - return _controls.ListItem_SetFont(*args, **kwargs) - - def GetMask(*args, **kwargs): - """GetMask(self) -> long""" - return _controls.ListItem_GetMask(*args, **kwargs) - - def GetId(*args, **kwargs): - """GetId(self) -> long""" - return _controls.ListItem_GetId(*args, **kwargs) - - def GetColumn(*args, **kwargs): - """GetColumn(self) -> int""" - return _controls.ListItem_GetColumn(*args, **kwargs) - - def GetState(*args, **kwargs): - """GetState(self) -> long""" - return _controls.ListItem_GetState(*args, **kwargs) - - def GetText(*args, **kwargs): - """GetText(self) -> String""" - return _controls.ListItem_GetText(*args, **kwargs) - - def GetImage(*args, **kwargs): - """GetImage(self) -> int""" - return _controls.ListItem_GetImage(*args, **kwargs) - - def GetData(*args, **kwargs): - """GetData(self) -> long""" - return _controls.ListItem_GetData(*args, **kwargs) - - def GetWidth(*args, **kwargs): - """GetWidth(self) -> int""" - return _controls.ListItem_GetWidth(*args, **kwargs) - - def GetAlign(*args, **kwargs): - """GetAlign(self) -> int""" - return _controls.ListItem_GetAlign(*args, **kwargs) - - def GetAttributes(*args, **kwargs): - """GetAttributes(self) -> ListItemAttr""" - return _controls.ListItem_GetAttributes(*args, **kwargs) - - def HasAttributes(*args, **kwargs): - """HasAttributes(self) -> bool""" - return _controls.ListItem_HasAttributes(*args, **kwargs) - - def GetTextColour(*args, **kwargs): - """GetTextColour(self) -> Colour""" - return _controls.ListItem_GetTextColour(*args, **kwargs) - - def GetBackgroundColour(*args, **kwargs): - """GetBackgroundColour(self) -> Colour""" - return _controls.ListItem_GetBackgroundColour(*args, **kwargs) - - def GetFont(*args, **kwargs): - """GetFont(self) -> Font""" - return _controls.ListItem_GetFont(*args, **kwargs) - - m_mask = property(_controls.ListItem_m_mask_get, _controls.ListItem_m_mask_set) - m_itemId = property(_controls.ListItem_m_itemId_get, _controls.ListItem_m_itemId_set) - m_col = property(_controls.ListItem_m_col_get, _controls.ListItem_m_col_set) - m_state = property(_controls.ListItem_m_state_get, _controls.ListItem_m_state_set) - m_stateMask = property(_controls.ListItem_m_stateMask_get, _controls.ListItem_m_stateMask_set) - m_text = property(_controls.ListItem_m_text_get, _controls.ListItem_m_text_set) - m_image = property(_controls.ListItem_m_image_get, _controls.ListItem_m_image_set) - m_data = property(_controls.ListItem_m_data_get, _controls.ListItem_m_data_set) - m_format = property(_controls.ListItem_m_format_get, _controls.ListItem_m_format_set) - m_width = property(_controls.ListItem_m_width_get, _controls.ListItem_m_width_set) - -class ListItemPtr(ListItem): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ListItem -_controls.ListItem_swigregister(ListItemPtr) - -#--------------------------------------------------------------------------- - -class ListEvent(core.NotifyEvent): - def __repr__(self): - return "<%s.%s; proxy of C++ wxListEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> ListEvent""" - newobj = _controls.new_ListEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - m_code = property(_controls.ListEvent_m_code_get, _controls.ListEvent_m_code_set) - m_oldItemIndex = property(_controls.ListEvent_m_oldItemIndex_get, _controls.ListEvent_m_oldItemIndex_set) - m_itemIndex = property(_controls.ListEvent_m_itemIndex_get, _controls.ListEvent_m_itemIndex_set) - m_col = property(_controls.ListEvent_m_col_get, _controls.ListEvent_m_col_set) - m_pointDrag = property(_controls.ListEvent_m_pointDrag_get, _controls.ListEvent_m_pointDrag_set) - m_item = property(_controls.ListEvent_m_item_get) - def GetKeyCode(*args, **kwargs): - """GetKeyCode(self) -> int""" - return _controls.ListEvent_GetKeyCode(*args, **kwargs) - - GetCode = GetKeyCode - def GetIndex(*args, **kwargs): - """GetIndex(self) -> long""" - return _controls.ListEvent_GetIndex(*args, **kwargs) - - def GetColumn(*args, **kwargs): - """GetColumn(self) -> int""" - return _controls.ListEvent_GetColumn(*args, **kwargs) - - def GetPoint(*args, **kwargs): - """GetPoint(self) -> Point""" - return _controls.ListEvent_GetPoint(*args, **kwargs) - - GetPosition = GetPoint - def GetLabel(*args, **kwargs): - """GetLabel(self) -> String""" - return _controls.ListEvent_GetLabel(*args, **kwargs) - - def GetText(*args, **kwargs): - """GetText(self) -> String""" - return _controls.ListEvent_GetText(*args, **kwargs) - - def GetImage(*args, **kwargs): - """GetImage(self) -> int""" - return _controls.ListEvent_GetImage(*args, **kwargs) - - def GetData(*args, **kwargs): - """GetData(self) -> long""" - return _controls.ListEvent_GetData(*args, **kwargs) - - def GetMask(*args, **kwargs): - """GetMask(self) -> long""" - return _controls.ListEvent_GetMask(*args, **kwargs) - - def GetItem(*args, **kwargs): - """GetItem(self) -> ListItem""" - return _controls.ListEvent_GetItem(*args, **kwargs) - - def GetCacheFrom(*args, **kwargs): - """GetCacheFrom(self) -> long""" - return _controls.ListEvent_GetCacheFrom(*args, **kwargs) - - def GetCacheTo(*args, **kwargs): - """GetCacheTo(self) -> long""" - return _controls.ListEvent_GetCacheTo(*args, **kwargs) - - def IsEditCancelled(*args, **kwargs): - """IsEditCancelled(self) -> bool""" - return _controls.ListEvent_IsEditCancelled(*args, **kwargs) - - def SetEditCanceled(*args, **kwargs): - """SetEditCanceled(self, bool editCancelled)""" - return _controls.ListEvent_SetEditCanceled(*args, **kwargs) - - -class ListEventPtr(ListEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ListEvent -_controls.ListEvent_swigregister(ListEventPtr) - -wxEVT_COMMAND_LIST_BEGIN_DRAG = _controls.wxEVT_COMMAND_LIST_BEGIN_DRAG -wxEVT_COMMAND_LIST_BEGIN_RDRAG = _controls.wxEVT_COMMAND_LIST_BEGIN_RDRAG -wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT = _controls.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT -wxEVT_COMMAND_LIST_END_LABEL_EDIT = _controls.wxEVT_COMMAND_LIST_END_LABEL_EDIT -wxEVT_COMMAND_LIST_DELETE_ITEM = _controls.wxEVT_COMMAND_LIST_DELETE_ITEM -wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS = _controls.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS -wxEVT_COMMAND_LIST_GET_INFO = _controls.wxEVT_COMMAND_LIST_GET_INFO -wxEVT_COMMAND_LIST_SET_INFO = _controls.wxEVT_COMMAND_LIST_SET_INFO -wxEVT_COMMAND_LIST_ITEM_SELECTED = _controls.wxEVT_COMMAND_LIST_ITEM_SELECTED -wxEVT_COMMAND_LIST_ITEM_DESELECTED = _controls.wxEVT_COMMAND_LIST_ITEM_DESELECTED -wxEVT_COMMAND_LIST_KEY_DOWN = _controls.wxEVT_COMMAND_LIST_KEY_DOWN -wxEVT_COMMAND_LIST_INSERT_ITEM = _controls.wxEVT_COMMAND_LIST_INSERT_ITEM -wxEVT_COMMAND_LIST_COL_CLICK = _controls.wxEVT_COMMAND_LIST_COL_CLICK -wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK = _controls.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK -wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK = _controls.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK -wxEVT_COMMAND_LIST_ITEM_ACTIVATED = _controls.wxEVT_COMMAND_LIST_ITEM_ACTIVATED -wxEVT_COMMAND_LIST_CACHE_HINT = _controls.wxEVT_COMMAND_LIST_CACHE_HINT -wxEVT_COMMAND_LIST_COL_RIGHT_CLICK = _controls.wxEVT_COMMAND_LIST_COL_RIGHT_CLICK -wxEVT_COMMAND_LIST_COL_BEGIN_DRAG = _controls.wxEVT_COMMAND_LIST_COL_BEGIN_DRAG -wxEVT_COMMAND_LIST_COL_DRAGGING = _controls.wxEVT_COMMAND_LIST_COL_DRAGGING -wxEVT_COMMAND_LIST_COL_END_DRAG = _controls.wxEVT_COMMAND_LIST_COL_END_DRAG -wxEVT_COMMAND_LIST_ITEM_FOCUSED = _controls.wxEVT_COMMAND_LIST_ITEM_FOCUSED -EVT_LIST_BEGIN_DRAG = wx.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_DRAG , 1) -EVT_LIST_BEGIN_RDRAG = wx.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_RDRAG , 1) -EVT_LIST_BEGIN_LABEL_EDIT = wx.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT , 1) -EVT_LIST_END_LABEL_EDIT = wx.PyEventBinder(wxEVT_COMMAND_LIST_END_LABEL_EDIT , 1) -EVT_LIST_DELETE_ITEM = wx.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ITEM , 1) -EVT_LIST_DELETE_ALL_ITEMS = wx.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS , 1) -EVT_LIST_GET_INFO = wx.PyEventBinder(wxEVT_COMMAND_LIST_GET_INFO , 1) -EVT_LIST_SET_INFO = wx.PyEventBinder(wxEVT_COMMAND_LIST_SET_INFO , 1) -EVT_LIST_ITEM_SELECTED = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_SELECTED , 1) -EVT_LIST_ITEM_DESELECTED = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_DESELECTED , 1) -EVT_LIST_KEY_DOWN = wx.PyEventBinder(wxEVT_COMMAND_LIST_KEY_DOWN , 1) -EVT_LIST_INSERT_ITEM = wx.PyEventBinder(wxEVT_COMMAND_LIST_INSERT_ITEM , 1) -EVT_LIST_COL_CLICK = wx.PyEventBinder(wxEVT_COMMAND_LIST_COL_CLICK , 1) -EVT_LIST_ITEM_RIGHT_CLICK = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK , 1) -EVT_LIST_ITEM_MIDDLE_CLICK = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK, 1) -EVT_LIST_ITEM_ACTIVATED = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_ACTIVATED , 1) -EVT_LIST_CACHE_HINT = wx.PyEventBinder(wxEVT_COMMAND_LIST_CACHE_HINT , 1) -EVT_LIST_COL_RIGHT_CLICK = wx.PyEventBinder(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK , 1) -EVT_LIST_COL_BEGIN_DRAG = wx.PyEventBinder(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG , 1) -EVT_LIST_COL_DRAGGING = wx.PyEventBinder(wxEVT_COMMAND_LIST_COL_DRAGGING , 1) -EVT_LIST_COL_END_DRAG = wx.PyEventBinder(wxEVT_COMMAND_LIST_COL_END_DRAG , 1) -EVT_LIST_ITEM_FOCUSED = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_FOCUSED , 1) - -#--------------------------------------------------------------------------- - -class ListCtrl(core.Control): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyListCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, long style=LC_ICON, - Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListCtrl - """ - newobj = _controls.new_ListCtrl(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self);self._setCallbackInfo(self, ListCtrl) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, long style=LC_ICON, - Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool - - Do the 2nd phase and create the GUI control. - """ - return _controls.ListCtrl_Create(*args, **kwargs) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _controls.ListCtrl__setCallbackInfo(*args, **kwargs) - - def SetForegroundColour(*args, **kwargs): - """SetForegroundColour(self, Colour col) -> bool""" - return _controls.ListCtrl_SetForegroundColour(*args, **kwargs) - - def SetBackgroundColour(*args, **kwargs): - """SetBackgroundColour(self, Colour col) -> bool""" - return _controls.ListCtrl_SetBackgroundColour(*args, **kwargs) - - def GetColumn(*args, **kwargs): - """GetColumn(self, int col) -> ListItem""" - val = _controls.ListCtrl_GetColumn(*args, **kwargs) - if val is not None: val.thisown = 1 - return val - - def SetColumn(*args, **kwargs): - """SetColumn(self, int col, ListItem item) -> bool""" - return _controls.ListCtrl_SetColumn(*args, **kwargs) - - def GetColumnWidth(*args, **kwargs): - """GetColumnWidth(self, int col) -> int""" - return _controls.ListCtrl_GetColumnWidth(*args, **kwargs) - - def SetColumnWidth(*args, **kwargs): - """SetColumnWidth(self, int col, int width) -> bool""" - return _controls.ListCtrl_SetColumnWidth(*args, **kwargs) - - def GetCountPerPage(*args, **kwargs): - """GetCountPerPage(self) -> int""" - return _controls.ListCtrl_GetCountPerPage(*args, **kwargs) - - def GetViewRect(*args, **kwargs): - """GetViewRect(self) -> Rect""" - return _controls.ListCtrl_GetViewRect(*args, **kwargs) - - def GetEditControl(*args, **kwargs): - """GetEditControl(self) -> TextCtrl""" - return _controls.ListCtrl_GetEditControl(*args, **kwargs) - - def GetItem(*args, **kwargs): - """GetItem(self, long itemId, int col=0) -> ListItem""" - val = _controls.ListCtrl_GetItem(*args, **kwargs) - if val is not None: val.thisown = 1 - return val - - def SetItem(*args, **kwargs): - """SetItem(self, ListItem info) -> bool""" - return _controls.ListCtrl_SetItem(*args, **kwargs) - - def SetStringItem(*args, **kwargs): - """SetStringItem(self, long index, int col, String label, int imageId=-1) -> long""" - return _controls.ListCtrl_SetStringItem(*args, **kwargs) - - def GetItemState(*args, **kwargs): - """GetItemState(self, long item, long stateMask) -> int""" - return _controls.ListCtrl_GetItemState(*args, **kwargs) - - def SetItemState(*args, **kwargs): - """SetItemState(self, long item, long state, long stateMask) -> bool""" - return _controls.ListCtrl_SetItemState(*args, **kwargs) - - def SetItemImage(*args, **kwargs): - """SetItemImage(self, long item, int image, int selImage) -> bool""" - return _controls.ListCtrl_SetItemImage(*args, **kwargs) - - def GetItemText(*args, **kwargs): - """GetItemText(self, long item) -> String""" - return _controls.ListCtrl_GetItemText(*args, **kwargs) - - def SetItemText(*args, **kwargs): - """SetItemText(self, long item, String str)""" - return _controls.ListCtrl_SetItemText(*args, **kwargs) - - def GetItemData(*args, **kwargs): - """GetItemData(self, long item) -> long""" - return _controls.ListCtrl_GetItemData(*args, **kwargs) - - def SetItemData(*args, **kwargs): - """SetItemData(self, long item, long data) -> bool""" - return _controls.ListCtrl_SetItemData(*args, **kwargs) - - def GetItemPosition(*args, **kwargs): - """GetItemPosition(self, long item) -> Point""" - return _controls.ListCtrl_GetItemPosition(*args, **kwargs) - - def GetItemRect(*args, **kwargs): - """GetItemRect(self, long item, int code=LIST_RECT_BOUNDS) -> Rect""" - return _controls.ListCtrl_GetItemRect(*args, **kwargs) - - def SetItemPosition(*args, **kwargs): - """SetItemPosition(self, long item, Point pos) -> bool""" - return _controls.ListCtrl_SetItemPosition(*args, **kwargs) - - def GetItemCount(*args, **kwargs): - """GetItemCount(self) -> int""" - return _controls.ListCtrl_GetItemCount(*args, **kwargs) - - def GetColumnCount(*args, **kwargs): - """GetColumnCount(self) -> int""" - return _controls.ListCtrl_GetColumnCount(*args, **kwargs) - - def GetItemSpacing(*args, **kwargs): - """GetItemSpacing(self) -> Size""" - return _controls.ListCtrl_GetItemSpacing(*args, **kwargs) - - def GetSelectedItemCount(*args, **kwargs): - """GetSelectedItemCount(self) -> int""" - return _controls.ListCtrl_GetSelectedItemCount(*args, **kwargs) - - def GetTextColour(*args, **kwargs): - """GetTextColour(self) -> Colour""" - return _controls.ListCtrl_GetTextColour(*args, **kwargs) - - def SetTextColour(*args, **kwargs): - """SetTextColour(self, Colour col)""" - return _controls.ListCtrl_SetTextColour(*args, **kwargs) - - def GetTopItem(*args, **kwargs): - """GetTopItem(self) -> long""" - return _controls.ListCtrl_GetTopItem(*args, **kwargs) - - def SetSingleStyle(*args, **kwargs): - """SetSingleStyle(self, long style, bool add=True)""" - return _controls.ListCtrl_SetSingleStyle(*args, **kwargs) - - def SetWindowStyleFlag(*args, **kwargs): - """ - SetWindowStyleFlag(self, long style) - - Sets the style of the window. Please note that some styles cannot - be changed after the window creation and that Refresh() might - need to be called after changing the others for the change to - take place immediately. - """ - return _controls.ListCtrl_SetWindowStyleFlag(*args, **kwargs) - - def GetNextItem(*args, **kwargs): - """GetNextItem(self, long item, int geometry=LIST_NEXT_ALL, int state=LIST_STATE_DONTCARE) -> long""" - return _controls.ListCtrl_GetNextItem(*args, **kwargs) - - def GetImageList(*args, **kwargs): - """GetImageList(self, int which) -> ImageList""" - return _controls.ListCtrl_GetImageList(*args, **kwargs) - - def SetImageList(*args, **kwargs): - """SetImageList(self, ImageList imageList, int which)""" - return _controls.ListCtrl_SetImageList(*args, **kwargs) - - def AssignImageList(*args, **kwargs): - """AssignImageList(self, ImageList imageList, int which)""" - return _controls.ListCtrl_AssignImageList(*args, **kwargs) - - def InReportView(*args, **kwargs): - """InReportView(self) -> bool""" - return _controls.ListCtrl_InReportView(*args, **kwargs) - - def IsVirtual(*args, **kwargs): - """IsVirtual(self) -> bool""" - return _controls.ListCtrl_IsVirtual(*args, **kwargs) - - def RefreshItem(*args, **kwargs): - """RefreshItem(self, long item)""" - return _controls.ListCtrl_RefreshItem(*args, **kwargs) - - def RefreshItems(*args, **kwargs): - """RefreshItems(self, long itemFrom, long itemTo)""" - return _controls.ListCtrl_RefreshItems(*args, **kwargs) - - def Arrange(*args, **kwargs): - """Arrange(self, int flag=LIST_ALIGN_DEFAULT) -> bool""" - return _controls.ListCtrl_Arrange(*args, **kwargs) - - def DeleteItem(*args, **kwargs): - """DeleteItem(self, long item) -> bool""" - return _controls.ListCtrl_DeleteItem(*args, **kwargs) - - def DeleteAllItems(*args, **kwargs): - """DeleteAllItems(self) -> bool""" - return _controls.ListCtrl_DeleteAllItems(*args, **kwargs) - - def DeleteColumn(*args, **kwargs): - """DeleteColumn(self, int col) -> bool""" - return _controls.ListCtrl_DeleteColumn(*args, **kwargs) - - def DeleteAllColumns(*args, **kwargs): - """DeleteAllColumns(self) -> bool""" - return _controls.ListCtrl_DeleteAllColumns(*args, **kwargs) - - def ClearAll(*args, **kwargs): - """ClearAll(self)""" - return _controls.ListCtrl_ClearAll(*args, **kwargs) - - def EditLabel(*args, **kwargs): - """EditLabel(self, long item) -> TextCtrl""" - return _controls.ListCtrl_EditLabel(*args, **kwargs) - - def EndEditLabel(*args, **kwargs): - """EndEditLabel(self, bool cancel) -> bool""" - return _controls.ListCtrl_EndEditLabel(*args, **kwargs) - - def EnsureVisible(*args, **kwargs): - """EnsureVisible(self, long item) -> bool""" - return _controls.ListCtrl_EnsureVisible(*args, **kwargs) - - def FindItem(*args, **kwargs): - """FindItem(self, long start, String str, bool partial=False) -> long""" - return _controls.ListCtrl_FindItem(*args, **kwargs) - - def FindItemData(*args, **kwargs): - """FindItemData(self, long start, long data) -> long""" - return _controls.ListCtrl_FindItemData(*args, **kwargs) - - def FindItemAtPos(*args, **kwargs): - """FindItemAtPos(self, long start, Point pt, int direction) -> long""" - return _controls.ListCtrl_FindItemAtPos(*args, **kwargs) - - def HitTest(*args, **kwargs): - """ - HitTest(Point point) -> (item, where) - - Determines which item (if any) is at the specified point, - giving details in the second return value (see wxLIST_HITTEST_... flags.) - """ - return _controls.ListCtrl_HitTest(*args, **kwargs) - - def InsertItem(*args, **kwargs): - """InsertItem(self, ListItem info) -> long""" - return _controls.ListCtrl_InsertItem(*args, **kwargs) - - def InsertStringItem(*args, **kwargs): - """InsertStringItem(self, long index, String label) -> long""" - return _controls.ListCtrl_InsertStringItem(*args, **kwargs) - - def InsertImageItem(*args, **kwargs): - """InsertImageItem(self, long index, int imageIndex) -> long""" - return _controls.ListCtrl_InsertImageItem(*args, **kwargs) - - def InsertImageStringItem(*args, **kwargs): - """InsertImageStringItem(self, long index, String label, int imageIndex) -> long""" - return _controls.ListCtrl_InsertImageStringItem(*args, **kwargs) - - def InsertColumnInfo(*args, **kwargs): - """InsertColumnInfo(self, long col, ListItem info) -> long""" - return _controls.ListCtrl_InsertColumnInfo(*args, **kwargs) - - def InsertColumn(*args, **kwargs): - """ - InsertColumn(self, long col, String heading, int format=LIST_FORMAT_LEFT, - int width=-1) -> long - """ - return _controls.ListCtrl_InsertColumn(*args, **kwargs) - - def SetItemCount(*args, **kwargs): - """SetItemCount(self, long count)""" - return _controls.ListCtrl_SetItemCount(*args, **kwargs) - - def ScrollList(*args, **kwargs): - """ScrollList(self, int dx, int dy) -> bool""" - return _controls.ListCtrl_ScrollList(*args, **kwargs) - - def SetItemTextColour(*args, **kwargs): - """SetItemTextColour(self, long item, Colour col)""" - return _controls.ListCtrl_SetItemTextColour(*args, **kwargs) - - def GetItemTextColour(*args, **kwargs): - """GetItemTextColour(self, long item) -> Colour""" - return _controls.ListCtrl_GetItemTextColour(*args, **kwargs) - - def SetItemBackgroundColour(*args, **kwargs): - """SetItemBackgroundColour(self, long item, Colour col)""" - return _controls.ListCtrl_SetItemBackgroundColour(*args, **kwargs) - - def GetItemBackgroundColour(*args, **kwargs): - """GetItemBackgroundColour(self, long item) -> Colour""" - return _controls.ListCtrl_GetItemBackgroundColour(*args, **kwargs) - - # - # Some helpers... - def Select(self, idx, on=1): - '''[de]select an item''' - if on: state = wx.LIST_STATE_SELECTED - else: state = 0 - self.SetItemState(idx, state, wx.LIST_STATE_SELECTED) - - def Focus(self, idx): - '''Focus and show the given item''' - self.SetItemState(idx, wx.LIST_STATE_FOCUSED, wx.LIST_STATE_FOCUSED) - self.EnsureVisible(idx) - - def GetFocusedItem(self): - '''get the currently focused item or -1 if none''' - return self.GetNextItem(-1, wx.LIST_NEXT_ALL, wx.LIST_STATE_FOCUSED) - - def GetFirstSelected(self, *args): - '''return first selected item, or -1 when none''' - return self.GetNextSelected(-1) - - def GetNextSelected(self, item): - '''return subsequent selected items, or -1 when no more''' - return self.GetNextItem(item, wx.LIST_NEXT_ALL, wx.LIST_STATE_SELECTED) - - def IsSelected(self, idx): - '''return True if the item is selected''' - return self.GetItemState(idx, wx.LIST_STATE_SELECTED) != 0 - - def SetColumnImage(self, col, image): - item = self.GetColumn(col) - # preserve all other attributes too - item.SetMask( wx.LIST_MASK_STATE | - wx.LIST_MASK_TEXT | - wx.LIST_MASK_IMAGE | - wx.LIST_MASK_DATA | - wx.LIST_SET_ITEM | - wx.LIST_MASK_WIDTH | - wx.LIST_MASK_FORMAT ) - item.SetImage(image) - self.SetColumn(col, item) - - def ClearColumnImage(self, col): - self.SetColumnImage(col, -1) - - def Append(self, entry): - '''Append an item to the list control. The entry parameter should be a - sequence with an item for each column''' - if len(entry): - if wx.USE_UNICODE: - cvtfunc = unicode - else: - cvtfunc = str - pos = self.GetItemCount() - self.InsertStringItem(pos, cvtfunc(entry[0])) - for i in range(1, len(entry)): - self.SetStringItem(pos, i, cvtfunc(entry[i])) - return pos - - def SortItems(*args, **kwargs): - """SortItems(self, PyObject func) -> bool""" - return _controls.ListCtrl_SortItems(*args, **kwargs) - - def GetMainWindow(*args, **kwargs): - """GetMainWindow(self) -> Window""" - return _controls.ListCtrl_GetMainWindow(*args, **kwargs) - - def GetClassDefaultAttributes(*args, **kwargs): - """ - ListCtrl.GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes - - Get the default attributes for this class. This is useful if - you want to use the same font or colour in your own control as - in a standard control -- which is a much better idea than hard - coding specific colours or fonts which might look completely out - of place on the users system, especially if it uses themes. - - The variant parameter is only relevant under Mac currently and is - ignore under other platforms. Under Mac, it will change the size of the - returned font. See SetWindowVariant for more about this. - """ - return _controls.ListCtrl_GetClassDefaultAttributes(*args, **kwargs) - - GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) - -class ListCtrlPtr(ListCtrl): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ListCtrl -_controls.ListCtrl_swigregister(ListCtrlPtr) - -def PreListCtrl(*args, **kwargs): - """PreListCtrl() -> ListCtrl""" - val = _controls.new_PreListCtrl(*args, **kwargs) - val.thisown = 1 - return val - -def ListCtrl_GetClassDefaultAttributes(*args, **kwargs): - """ - ListCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes - - Get the default attributes for this class. This is useful if - you want to use the same font or colour in your own control as - in a standard control -- which is a much better idea than hard - coding specific colours or fonts which might look completely out - of place on the users system, especially if it uses themes. - - The variant parameter is only relevant under Mac currently and is - ignore under other platforms. Under Mac, it will change the size of the - returned font. See SetWindowVariant for more about this. - """ - return _controls.ListCtrl_GetClassDefaultAttributes(*args, **kwargs) - -#--------------------------------------------------------------------------- - -class ListView(ListCtrl): - def __repr__(self): - return "<%s.%s; proxy of C++ wxListView instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, long style=LC_REPORT, - Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListView - """ - newobj = _controls.new_ListView(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, long style=LC_REPORT, - Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool - - Do the 2nd phase and create the GUI control. - """ - return _controls.ListView_Create(*args, **kwargs) - - def Select(*args, **kwargs): - """Select(self, long n, bool on=True)""" - return _controls.ListView_Select(*args, **kwargs) - - def Focus(*args, **kwargs): - """Focus(self, long index)""" - return _controls.ListView_Focus(*args, **kwargs) - - def GetFocusedItem(*args, **kwargs): - """GetFocusedItem(self) -> long""" - return _controls.ListView_GetFocusedItem(*args, **kwargs) - - def GetNextSelected(*args, **kwargs): - """GetNextSelected(self, long item) -> long""" - return _controls.ListView_GetNextSelected(*args, **kwargs) - - def GetFirstSelected(*args, **kwargs): - """GetFirstSelected(self) -> long""" - return _controls.ListView_GetFirstSelected(*args, **kwargs) - - def IsSelected(*args, **kwargs): - """IsSelected(self, long index) -> bool""" - return _controls.ListView_IsSelected(*args, **kwargs) - - def SetColumnImage(*args, **kwargs): - """SetColumnImage(self, int col, int image)""" - return _controls.ListView_SetColumnImage(*args, **kwargs) - - def ClearColumnImage(*args, **kwargs): - """ClearColumnImage(self, int col)""" - return _controls.ListView_ClearColumnImage(*args, **kwargs) - - -class ListViewPtr(ListView): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ListView -_controls.ListView_swigregister(ListViewPtr) - -def PreListView(*args, **kwargs): - """PreListView() -> ListView""" - val = _controls.new_PreListView(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -TR_NO_BUTTONS = _controls.TR_NO_BUTTONS -TR_HAS_BUTTONS = _controls.TR_HAS_BUTTONS -TR_NO_LINES = _controls.TR_NO_LINES -TR_LINES_AT_ROOT = _controls.TR_LINES_AT_ROOT -TR_SINGLE = _controls.TR_SINGLE -TR_MULTIPLE = _controls.TR_MULTIPLE -TR_EXTENDED = _controls.TR_EXTENDED -TR_HAS_VARIABLE_ROW_HEIGHT = _controls.TR_HAS_VARIABLE_ROW_HEIGHT -TR_EDIT_LABELS = _controls.TR_EDIT_LABELS -TR_HIDE_ROOT = _controls.TR_HIDE_ROOT -TR_ROW_LINES = _controls.TR_ROW_LINES -TR_FULL_ROW_HIGHLIGHT = _controls.TR_FULL_ROW_HIGHLIGHT -TR_DEFAULT_STYLE = _controls.TR_DEFAULT_STYLE -TR_TWIST_BUTTONS = _controls.TR_TWIST_BUTTONS -TR_MAC_BUTTONS = _controls.TR_MAC_BUTTONS -TR_AQUA_BUTTONS = _controls.TR_AQUA_BUTTONS -TreeItemIcon_Normal = _controls.TreeItemIcon_Normal -TreeItemIcon_Selected = _controls.TreeItemIcon_Selected -TreeItemIcon_Expanded = _controls.TreeItemIcon_Expanded -TreeItemIcon_SelectedExpanded = _controls.TreeItemIcon_SelectedExpanded -TreeItemIcon_Max = _controls.TreeItemIcon_Max -TREE_HITTEST_ABOVE = _controls.TREE_HITTEST_ABOVE -TREE_HITTEST_BELOW = _controls.TREE_HITTEST_BELOW -TREE_HITTEST_NOWHERE = _controls.TREE_HITTEST_NOWHERE -TREE_HITTEST_ONITEMBUTTON = _controls.TREE_HITTEST_ONITEMBUTTON -TREE_HITTEST_ONITEMICON = _controls.TREE_HITTEST_ONITEMICON -TREE_HITTEST_ONITEMINDENT = _controls.TREE_HITTEST_ONITEMINDENT -TREE_HITTEST_ONITEMLABEL = _controls.TREE_HITTEST_ONITEMLABEL -TREE_HITTEST_ONITEMRIGHT = _controls.TREE_HITTEST_ONITEMRIGHT -TREE_HITTEST_ONITEMSTATEICON = _controls.TREE_HITTEST_ONITEMSTATEICON -TREE_HITTEST_TOLEFT = _controls.TREE_HITTEST_TOLEFT -TREE_HITTEST_TORIGHT = _controls.TREE_HITTEST_TORIGHT -TREE_HITTEST_ONITEMUPPERPART = _controls.TREE_HITTEST_ONITEMUPPERPART -TREE_HITTEST_ONITEMLOWERPART = _controls.TREE_HITTEST_ONITEMLOWERPART -TREE_HITTEST_ONITEM = _controls.TREE_HITTEST_ONITEM -#--------------------------------------------------------------------------- - -class TreeItemId(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxTreeItemId instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> TreeItemId""" - newobj = _controls.new_TreeItemId(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_controls.delete_TreeItemId): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def IsOk(*args, **kwargs): - """IsOk(self) -> bool""" - return _controls.TreeItemId_IsOk(*args, **kwargs) - - def __eq__(*args, **kwargs): - """__eq__(self, TreeItemId other) -> bool""" - return _controls.TreeItemId___eq__(*args, **kwargs) - - def __ne__(*args, **kwargs): - """__ne__(self, TreeItemId other) -> bool""" - return _controls.TreeItemId___ne__(*args, **kwargs) - - m_pItem = property(_controls.TreeItemId_m_pItem_get, _controls.TreeItemId_m_pItem_set) - Ok = IsOk - def __nonzero__(self): return self.IsOk() - -class TreeItemIdPtr(TreeItemId): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = TreeItemId -_controls.TreeItemId_swigregister(TreeItemIdPtr) -TreeCtrlNameStr = cvar.TreeCtrlNameStr - -class TreeItemData(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyTreeItemData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, PyObject obj=None) -> TreeItemData""" - newobj = _controls.new_TreeItemData(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetData(*args, **kwargs): - """GetData(self) -> PyObject""" - return _controls.TreeItemData_GetData(*args, **kwargs) - - def SetData(*args, **kwargs): - """SetData(self, PyObject obj)""" - return _controls.TreeItemData_SetData(*args, **kwargs) - - def GetId(*args, **kwargs): - """GetId(self) -> TreeItemId""" - return _controls.TreeItemData_GetId(*args, **kwargs) - - def SetId(*args, **kwargs): - """SetId(self, TreeItemId id)""" - return _controls.TreeItemData_SetId(*args, **kwargs) - - def Destroy(*args, **kwargs): - """Destroy(self)""" - return _controls.TreeItemData_Destroy(*args, **kwargs) - - -class TreeItemDataPtr(TreeItemData): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = TreeItemData -_controls.TreeItemData_swigregister(TreeItemDataPtr) - -#--------------------------------------------------------------------------- - -wxEVT_COMMAND_TREE_BEGIN_DRAG = _controls.wxEVT_COMMAND_TREE_BEGIN_DRAG -wxEVT_COMMAND_TREE_BEGIN_RDRAG = _controls.wxEVT_COMMAND_TREE_BEGIN_RDRAG -wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT = _controls.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT -wxEVT_COMMAND_TREE_END_LABEL_EDIT = _controls.wxEVT_COMMAND_TREE_END_LABEL_EDIT -wxEVT_COMMAND_TREE_DELETE_ITEM = _controls.wxEVT_COMMAND_TREE_DELETE_ITEM -wxEVT_COMMAND_TREE_GET_INFO = _controls.wxEVT_COMMAND_TREE_GET_INFO -wxEVT_COMMAND_TREE_SET_INFO = _controls.wxEVT_COMMAND_TREE_SET_INFO -wxEVT_COMMAND_TREE_ITEM_EXPANDED = _controls.wxEVT_COMMAND_TREE_ITEM_EXPANDED -wxEVT_COMMAND_TREE_ITEM_EXPANDING = _controls.wxEVT_COMMAND_TREE_ITEM_EXPANDING -wxEVT_COMMAND_TREE_ITEM_COLLAPSED = _controls.wxEVT_COMMAND_TREE_ITEM_COLLAPSED -wxEVT_COMMAND_TREE_ITEM_COLLAPSING = _controls.wxEVT_COMMAND_TREE_ITEM_COLLAPSING -wxEVT_COMMAND_TREE_SEL_CHANGED = _controls.wxEVT_COMMAND_TREE_SEL_CHANGED -wxEVT_COMMAND_TREE_SEL_CHANGING = _controls.wxEVT_COMMAND_TREE_SEL_CHANGING -wxEVT_COMMAND_TREE_KEY_DOWN = _controls.wxEVT_COMMAND_TREE_KEY_DOWN -wxEVT_COMMAND_TREE_ITEM_ACTIVATED = _controls.wxEVT_COMMAND_TREE_ITEM_ACTIVATED -wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK = _controls.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK -wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK = _controls.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK -wxEVT_COMMAND_TREE_END_DRAG = _controls.wxEVT_COMMAND_TREE_END_DRAG -wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK = _controls.wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK -wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP = _controls.wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP -EVT_TREE_BEGIN_DRAG = wx.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_DRAG , 1) -EVT_TREE_BEGIN_RDRAG = wx.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_RDRAG , 1) -EVT_TREE_BEGIN_LABEL_EDIT = wx.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT , 1) -EVT_TREE_END_LABEL_EDIT = wx.PyEventBinder(wxEVT_COMMAND_TREE_END_LABEL_EDIT , 1) -EVT_TREE_DELETE_ITEM = wx.PyEventBinder(wxEVT_COMMAND_TREE_DELETE_ITEM , 1) -EVT_TREE_GET_INFO = wx.PyEventBinder(wxEVT_COMMAND_TREE_GET_INFO , 1) -EVT_TREE_SET_INFO = wx.PyEventBinder(wxEVT_COMMAND_TREE_SET_INFO , 1) -EVT_TREE_ITEM_EXPANDED = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDED , 1) -EVT_TREE_ITEM_EXPANDING = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDING , 1) -EVT_TREE_ITEM_COLLAPSED = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSED , 1) -EVT_TREE_ITEM_COLLAPSING = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSING , 1) -EVT_TREE_SEL_CHANGED = wx.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGED , 1) -EVT_TREE_SEL_CHANGING = wx.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGING , 1) -EVT_TREE_KEY_DOWN = wx.PyEventBinder(wxEVT_COMMAND_TREE_KEY_DOWN , 1) -EVT_TREE_ITEM_ACTIVATED = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_ACTIVATED , 1) -EVT_TREE_ITEM_RIGHT_CLICK = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK , 1) -EVT_TREE_ITEM_MIDDLE_CLICK = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK, 1) -EVT_TREE_END_DRAG = wx.PyEventBinder(wxEVT_COMMAND_TREE_END_DRAG , 1) -EVT_TREE_STATE_IMAGE_CLICK = wx.PyEventBinder(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK, 1) -EVT_TREE_ITEM_GETTOOLTIP = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP, 1) - -class TreeEvent(core.NotifyEvent): - def __repr__(self): - return "<%s.%s; proxy of C++ wxTreeEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> TreeEvent""" - newobj = _controls.new_TreeEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetItem(*args, **kwargs): - """GetItem(self) -> TreeItemId""" - return _controls.TreeEvent_GetItem(*args, **kwargs) - - def SetItem(*args, **kwargs): - """SetItem(self, TreeItemId item)""" - return _controls.TreeEvent_SetItem(*args, **kwargs) - - def GetOldItem(*args, **kwargs): - """GetOldItem(self) -> TreeItemId""" - return _controls.TreeEvent_GetOldItem(*args, **kwargs) - - def SetOldItem(*args, **kwargs): - """SetOldItem(self, TreeItemId item)""" - return _controls.TreeEvent_SetOldItem(*args, **kwargs) - - def GetPoint(*args, **kwargs): - """GetPoint(self) -> Point""" - return _controls.TreeEvent_GetPoint(*args, **kwargs) - - def SetPoint(*args, **kwargs): - """SetPoint(self, Point pt)""" - return _controls.TreeEvent_SetPoint(*args, **kwargs) - - def GetKeyEvent(*args, **kwargs): - """GetKeyEvent(self) -> KeyEvent""" - return _controls.TreeEvent_GetKeyEvent(*args, **kwargs) - - def GetKeyCode(*args, **kwargs): - """GetKeyCode(self) -> int""" - return _controls.TreeEvent_GetKeyCode(*args, **kwargs) - - def SetKeyEvent(*args, **kwargs): - """SetKeyEvent(self, KeyEvent evt)""" - return _controls.TreeEvent_SetKeyEvent(*args, **kwargs) - - def GetLabel(*args, **kwargs): - """GetLabel(self) -> String""" - return _controls.TreeEvent_GetLabel(*args, **kwargs) - - def SetLabel(*args, **kwargs): - """SetLabel(self, String label)""" - return _controls.TreeEvent_SetLabel(*args, **kwargs) - - def IsEditCancelled(*args, **kwargs): - """IsEditCancelled(self) -> bool""" - return _controls.TreeEvent_IsEditCancelled(*args, **kwargs) - - def SetEditCanceled(*args, **kwargs): - """SetEditCanceled(self, bool editCancelled)""" - return _controls.TreeEvent_SetEditCanceled(*args, **kwargs) - - def SetToolTip(*args, **kwargs): - """SetToolTip(self, String toolTip)""" - return _controls.TreeEvent_SetToolTip(*args, **kwargs) - - -class TreeEventPtr(TreeEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = TreeEvent -_controls.TreeEvent_swigregister(TreeEventPtr) - -#--------------------------------------------------------------------------- - -class TreeCtrl(core.Control): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyTreeCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, long style=TR_DEFAULT_STYLE, - Validator validator=DefaultValidator, - String name=TreeCtrlNameStr) -> TreeCtrl - """ - newobj = _controls.new_TreeCtrl(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self);self._setCallbackInfo(self, TreeCtrl) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, long style=TR_DEFAULT_STYLE, - Validator validator=DefaultValidator, - String name=TreeCtrlNameStr) -> bool - - Do the 2nd phase and create the GUI control. - """ - return _controls.TreeCtrl_Create(*args, **kwargs) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _controls.TreeCtrl__setCallbackInfo(*args, **kwargs) - - def GetCount(*args, **kwargs): - """GetCount(self) -> size_t""" - return _controls.TreeCtrl_GetCount(*args, **kwargs) - - def GetIndent(*args, **kwargs): - """GetIndent(self) -> unsigned int""" - return _controls.TreeCtrl_GetIndent(*args, **kwargs) - - def SetIndent(*args, **kwargs): - """SetIndent(self, unsigned int indent)""" - return _controls.TreeCtrl_SetIndent(*args, **kwargs) - - def GetSpacing(*args, **kwargs): - """GetSpacing(self) -> unsigned int""" - return _controls.TreeCtrl_GetSpacing(*args, **kwargs) - - def SetSpacing(*args, **kwargs): - """SetSpacing(self, unsigned int spacing)""" - return _controls.TreeCtrl_SetSpacing(*args, **kwargs) - - def GetImageList(*args, **kwargs): - """GetImageList(self) -> ImageList""" - return _controls.TreeCtrl_GetImageList(*args, **kwargs) - - def GetStateImageList(*args, **kwargs): - """GetStateImageList(self) -> ImageList""" - return _controls.TreeCtrl_GetStateImageList(*args, **kwargs) - - def SetImageList(*args, **kwargs): - """SetImageList(self, ImageList imageList)""" - return _controls.TreeCtrl_SetImageList(*args, **kwargs) - - def SetStateImageList(*args, **kwargs): - """SetStateImageList(self, ImageList imageList)""" - return _controls.TreeCtrl_SetStateImageList(*args, **kwargs) - - def AssignImageList(*args, **kwargs): - """AssignImageList(self, ImageList imageList)""" - return _controls.TreeCtrl_AssignImageList(*args, **kwargs) - - def AssignStateImageList(*args, **kwargs): - """AssignStateImageList(self, ImageList imageList)""" - return _controls.TreeCtrl_AssignStateImageList(*args, **kwargs) - - def GetItemText(*args, **kwargs): - """GetItemText(self, TreeItemId item) -> String""" - return _controls.TreeCtrl_GetItemText(*args, **kwargs) - - def GetItemImage(*args, **kwargs): - """GetItemImage(self, TreeItemId item, int which=TreeItemIcon_Normal) -> int""" - return _controls.TreeCtrl_GetItemImage(*args, **kwargs) - - def GetItemData(*args, **kwargs): - """GetItemData(self, TreeItemId item) -> TreeItemData""" - return _controls.TreeCtrl_GetItemData(*args, **kwargs) - - def GetItemPyData(*args, **kwargs): - """GetItemPyData(self, TreeItemId item) -> PyObject""" - return _controls.TreeCtrl_GetItemPyData(*args, **kwargs) - - GetPyData = GetItemPyData - def GetItemTextColour(*args, **kwargs): - """GetItemTextColour(self, TreeItemId item) -> Colour""" - return _controls.TreeCtrl_GetItemTextColour(*args, **kwargs) - - def GetItemBackgroundColour(*args, **kwargs): - """GetItemBackgroundColour(self, TreeItemId item) -> Colour""" - return _controls.TreeCtrl_GetItemBackgroundColour(*args, **kwargs) - - def GetItemFont(*args, **kwargs): - """GetItemFont(self, TreeItemId item) -> Font""" - return _controls.TreeCtrl_GetItemFont(*args, **kwargs) - - def SetItemText(*args, **kwargs): - """SetItemText(self, TreeItemId item, String text)""" - return _controls.TreeCtrl_SetItemText(*args, **kwargs) - - def SetItemImage(*args, **kwargs): - """SetItemImage(self, TreeItemId item, int image, int which=TreeItemIcon_Normal)""" - return _controls.TreeCtrl_SetItemImage(*args, **kwargs) - - def SetItemData(*args, **kwargs): - """SetItemData(self, TreeItemId item, TreeItemData data)""" - return _controls.TreeCtrl_SetItemData(*args, **kwargs) - - def SetItemPyData(*args, **kwargs): - """SetItemPyData(self, TreeItemId item, PyObject obj)""" - return _controls.TreeCtrl_SetItemPyData(*args, **kwargs) - - SetPyData = SetItemPyData - def SetItemHasChildren(*args, **kwargs): - """SetItemHasChildren(self, TreeItemId item, bool has=True)""" - return _controls.TreeCtrl_SetItemHasChildren(*args, **kwargs) - - def SetItemBold(*args, **kwargs): - """SetItemBold(self, TreeItemId item, bool bold=True)""" - return _controls.TreeCtrl_SetItemBold(*args, **kwargs) - - def SetItemDropHighlight(*args, **kwargs): - """SetItemDropHighlight(self, TreeItemId item, bool highlight=True)""" - return _controls.TreeCtrl_SetItemDropHighlight(*args, **kwargs) - - def SetItemTextColour(*args, **kwargs): - """SetItemTextColour(self, TreeItemId item, Colour col)""" - return _controls.TreeCtrl_SetItemTextColour(*args, **kwargs) - - def SetItemBackgroundColour(*args, **kwargs): - """SetItemBackgroundColour(self, TreeItemId item, Colour col)""" - return _controls.TreeCtrl_SetItemBackgroundColour(*args, **kwargs) - - def SetItemFont(*args, **kwargs): - """SetItemFont(self, TreeItemId item, Font font)""" - return _controls.TreeCtrl_SetItemFont(*args, **kwargs) - - def IsVisible(*args, **kwargs): - """IsVisible(self, TreeItemId item) -> bool""" - return _controls.TreeCtrl_IsVisible(*args, **kwargs) - - def ItemHasChildren(*args, **kwargs): - """ItemHasChildren(self, TreeItemId item) -> bool""" - return _controls.TreeCtrl_ItemHasChildren(*args, **kwargs) - - def IsExpanded(*args, **kwargs): - """IsExpanded(self, TreeItemId item) -> bool""" - return _controls.TreeCtrl_IsExpanded(*args, **kwargs) - - def IsSelected(*args, **kwargs): - """IsSelected(self, TreeItemId item) -> bool""" - return _controls.TreeCtrl_IsSelected(*args, **kwargs) - - def IsBold(*args, **kwargs): - """IsBold(self, TreeItemId item) -> bool""" - return _controls.TreeCtrl_IsBold(*args, **kwargs) - - def GetChildrenCount(*args, **kwargs): - """GetChildrenCount(self, TreeItemId item, bool recursively=True) -> size_t""" - return _controls.TreeCtrl_GetChildrenCount(*args, **kwargs) - - def GetRootItem(*args, **kwargs): - """GetRootItem(self) -> TreeItemId""" - return _controls.TreeCtrl_GetRootItem(*args, **kwargs) - - def GetSelection(*args, **kwargs): - """GetSelection(self) -> TreeItemId""" - return _controls.TreeCtrl_GetSelection(*args, **kwargs) - - def GetSelections(*args, **kwargs): - """GetSelections(self) -> PyObject""" - return _controls.TreeCtrl_GetSelections(*args, **kwargs) - - def GetItemParent(*args, **kwargs): - """GetItemParent(self, TreeItemId item) -> TreeItemId""" - return _controls.TreeCtrl_GetItemParent(*args, **kwargs) - - def GetFirstChild(*args, **kwargs): - """GetFirstChild(self, TreeItemId item) -> PyObject""" - return _controls.TreeCtrl_GetFirstChild(*args, **kwargs) - - def GetNextChild(*args, **kwargs): - """GetNextChild(self, TreeItemId item, void cookie) -> PyObject""" - return _controls.TreeCtrl_GetNextChild(*args, **kwargs) - - def GetLastChild(*args, **kwargs): - """GetLastChild(self, TreeItemId item) -> TreeItemId""" - return _controls.TreeCtrl_GetLastChild(*args, **kwargs) - - def GetNextSibling(*args, **kwargs): - """GetNextSibling(self, TreeItemId item) -> TreeItemId""" - return _controls.TreeCtrl_GetNextSibling(*args, **kwargs) - - def GetPrevSibling(*args, **kwargs): - """GetPrevSibling(self, TreeItemId item) -> TreeItemId""" - return _controls.TreeCtrl_GetPrevSibling(*args, **kwargs) - - def GetFirstVisibleItem(*args, **kwargs): - """GetFirstVisibleItem(self) -> TreeItemId""" - return _controls.TreeCtrl_GetFirstVisibleItem(*args, **kwargs) - - def GetNextVisible(*args, **kwargs): - """GetNextVisible(self, TreeItemId item) -> TreeItemId""" - return _controls.TreeCtrl_GetNextVisible(*args, **kwargs) - - def GetPrevVisible(*args, **kwargs): - """GetPrevVisible(self, TreeItemId item) -> TreeItemId""" - return _controls.TreeCtrl_GetPrevVisible(*args, **kwargs) - - def AddRoot(*args, **kwargs): - """AddRoot(self, String text, int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId""" - return _controls.TreeCtrl_AddRoot(*args, **kwargs) - - def PrependItem(*args, **kwargs): - """ - PrependItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1, - TreeItemData data=None) -> TreeItemId - """ - return _controls.TreeCtrl_PrependItem(*args, **kwargs) - - def InsertItem(*args, **kwargs): - """ - InsertItem(self, TreeItemId parent, TreeItemId idPrevious, String text, - int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId - """ - return _controls.TreeCtrl_InsertItem(*args, **kwargs) - - def InsertItemBefore(*args, **kwargs): - """ - InsertItemBefore(self, TreeItemId parent, size_t index, String text, int image=-1, - int selectedImage=-1, TreeItemData data=None) -> TreeItemId - """ - return _controls.TreeCtrl_InsertItemBefore(*args, **kwargs) - - def AppendItem(*args, **kwargs): - """ - AppendItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1, - TreeItemData data=None) -> TreeItemId - """ - return _controls.TreeCtrl_AppendItem(*args, **kwargs) - - def Delete(*args, **kwargs): - """Delete(self, TreeItemId item)""" - return _controls.TreeCtrl_Delete(*args, **kwargs) - - def DeleteChildren(*args, **kwargs): - """DeleteChildren(self, TreeItemId item)""" - return _controls.TreeCtrl_DeleteChildren(*args, **kwargs) - - def DeleteAllItems(*args, **kwargs): - """DeleteAllItems(self)""" - return _controls.TreeCtrl_DeleteAllItems(*args, **kwargs) - - def Expand(*args, **kwargs): - """Expand(self, TreeItemId item)""" - return _controls.TreeCtrl_Expand(*args, **kwargs) - - def Collapse(*args, **kwargs): - """Collapse(self, TreeItemId item)""" - return _controls.TreeCtrl_Collapse(*args, **kwargs) - - def CollapseAndReset(*args, **kwargs): - """CollapseAndReset(self, TreeItemId item)""" - return _controls.TreeCtrl_CollapseAndReset(*args, **kwargs) - - def Toggle(*args, **kwargs): - """Toggle(self, TreeItemId item)""" - return _controls.TreeCtrl_Toggle(*args, **kwargs) - - def Unselect(*args, **kwargs): - """Unselect(self)""" - return _controls.TreeCtrl_Unselect(*args, **kwargs) - - def UnselectItem(*args, **kwargs): - """UnselectItem(self, TreeItemId item)""" - return _controls.TreeCtrl_UnselectItem(*args, **kwargs) - - def UnselectAll(*args, **kwargs): - """UnselectAll(self)""" - return _controls.TreeCtrl_UnselectAll(*args, **kwargs) - - def SelectItem(*args, **kwargs): - """SelectItem(self, TreeItemId item, bool select=True)""" - return _controls.TreeCtrl_SelectItem(*args, **kwargs) - - def ToggleItemSelection(*args, **kwargs): - """ToggleItemSelection(self, TreeItemId item)""" - return _controls.TreeCtrl_ToggleItemSelection(*args, **kwargs) - - def EnsureVisible(*args, **kwargs): - """EnsureVisible(self, TreeItemId item)""" - return _controls.TreeCtrl_EnsureVisible(*args, **kwargs) - - def ScrollTo(*args, **kwargs): - """ScrollTo(self, TreeItemId item)""" - return _controls.TreeCtrl_ScrollTo(*args, **kwargs) - - def EditLabel(*args, **kwargs): - """EditLabel(self, TreeItemId item)""" - return _controls.TreeCtrl_EditLabel(*args, **kwargs) - - def GetEditControl(*args, **kwargs): - """GetEditControl(self) -> TextCtrl""" - return _controls.TreeCtrl_GetEditControl(*args, **kwargs) - - def EndEditLabel(*args, **kwargs): - """EndEditLabel(self, TreeItemId item, bool discardChanges=False)""" - return _controls.TreeCtrl_EndEditLabel(*args, **kwargs) - - def SortChildren(*args, **kwargs): - """SortChildren(self, TreeItemId item)""" - return _controls.TreeCtrl_SortChildren(*args, **kwargs) - - def HitTest(*args, **kwargs): - """ - HitTest(Point point) -> (item, where) - - Determine which item (if any) belongs the given point. The - coordinates specified are relative to the client area of tree ctrl - and the where return value is set to a bitmask of wxTREE_HITTEST_xxx - constants. - - """ - return _controls.TreeCtrl_HitTest(*args, **kwargs) - - def GetBoundingRect(*args, **kwargs): - """GetBoundingRect(self, TreeItemId item, bool textOnly=False) -> PyObject""" - return _controls.TreeCtrl_GetBoundingRect(*args, **kwargs) - - def GetClassDefaultAttributes(*args, **kwargs): - """ - TreeCtrl.GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes - - Get the default attributes for this class. This is useful if - you want to use the same font or colour in your own control as - in a standard control -- which is a much better idea than hard - coding specific colours or fonts which might look completely out - of place on the users system, especially if it uses themes. - - The variant parameter is only relevant under Mac currently and is - ignore under other platforms. Under Mac, it will change the size of the - returned font. See SetWindowVariant for more about this. - """ - return _controls.TreeCtrl_GetClassDefaultAttributes(*args, **kwargs) - - GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) - -class TreeCtrlPtr(TreeCtrl): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = TreeCtrl -_controls.TreeCtrl_swigregister(TreeCtrlPtr) - -def PreTreeCtrl(*args, **kwargs): - """PreTreeCtrl() -> TreeCtrl""" - val = _controls.new_PreTreeCtrl(*args, **kwargs) - val.thisown = 1 - return val - -def TreeCtrl_GetClassDefaultAttributes(*args, **kwargs): - """ - TreeCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes - - Get the default attributes for this class. This is useful if - you want to use the same font or colour in your own control as - in a standard control -- which is a much better idea than hard - coding specific colours or fonts which might look completely out - of place on the users system, especially if it uses themes. - - The variant parameter is only relevant under Mac currently and is - ignore under other platforms. Under Mac, it will change the size of the - returned font. See SetWindowVariant for more about this. - """ - return _controls.TreeCtrl_GetClassDefaultAttributes(*args, **kwargs) - -#--------------------------------------------------------------------------- - -DIRCTRL_DIR_ONLY = _controls.DIRCTRL_DIR_ONLY -DIRCTRL_SELECT_FIRST = _controls.DIRCTRL_SELECT_FIRST -DIRCTRL_SHOW_FILTERS = _controls.DIRCTRL_SHOW_FILTERS -DIRCTRL_3D_INTERNAL = _controls.DIRCTRL_3D_INTERNAL -DIRCTRL_EDIT_LABELS = _controls.DIRCTRL_EDIT_LABELS -class GenericDirCtrl(core.Control): - def __repr__(self): - return "<%s.%s; proxy of C++ wxGenericDirCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr, - Point pos=DefaultPosition, Size size=DefaultSize, - long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER, - String filter=EmptyString, - int defaultFilter=0, String name=TreeCtrlNameStr) -> GenericDirCtrl - """ - newobj = _controls.new_GenericDirCtrl(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr, - Point pos=DefaultPosition, Size size=DefaultSize, - long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER, - String filter=EmptyString, - int defaultFilter=0, String name=TreeCtrlNameStr) -> bool - """ - return _controls.GenericDirCtrl_Create(*args, **kwargs) - - def ExpandPath(*args, **kwargs): - """ExpandPath(self, String path) -> bool""" - return _controls.GenericDirCtrl_ExpandPath(*args, **kwargs) - - def GetDefaultPath(*args, **kwargs): - """GetDefaultPath(self) -> String""" - return _controls.GenericDirCtrl_GetDefaultPath(*args, **kwargs) - - def SetDefaultPath(*args, **kwargs): - """SetDefaultPath(self, String path)""" - return _controls.GenericDirCtrl_SetDefaultPath(*args, **kwargs) - - def GetPath(*args, **kwargs): - """GetPath(self) -> String""" - return _controls.GenericDirCtrl_GetPath(*args, **kwargs) - - def GetFilePath(*args, **kwargs): - """GetFilePath(self) -> String""" - return _controls.GenericDirCtrl_GetFilePath(*args, **kwargs) - - def SetPath(*args, **kwargs): - """SetPath(self, String path)""" - return _controls.GenericDirCtrl_SetPath(*args, **kwargs) - - def ShowHidden(*args, **kwargs): - """ShowHidden(self, bool show)""" - return _controls.GenericDirCtrl_ShowHidden(*args, **kwargs) - - def GetShowHidden(*args, **kwargs): - """GetShowHidden(self) -> bool""" - return _controls.GenericDirCtrl_GetShowHidden(*args, **kwargs) - - def GetFilter(*args, **kwargs): - """GetFilter(self) -> String""" - return _controls.GenericDirCtrl_GetFilter(*args, **kwargs) - - def SetFilter(*args, **kwargs): - """SetFilter(self, String filter)""" - return _controls.GenericDirCtrl_SetFilter(*args, **kwargs) - - def GetFilterIndex(*args, **kwargs): - """GetFilterIndex(self) -> int""" - return _controls.GenericDirCtrl_GetFilterIndex(*args, **kwargs) - - def SetFilterIndex(*args, **kwargs): - """SetFilterIndex(self, int n)""" - return _controls.GenericDirCtrl_SetFilterIndex(*args, **kwargs) - - def GetRootId(*args, **kwargs): - """GetRootId(self) -> TreeItemId""" - return _controls.GenericDirCtrl_GetRootId(*args, **kwargs) - - def GetTreeCtrl(*args, **kwargs): - """GetTreeCtrl(self) -> TreeCtrl""" - return _controls.GenericDirCtrl_GetTreeCtrl(*args, **kwargs) - - def GetFilterListCtrl(*args, **kwargs): - """GetFilterListCtrl(self) -> DirFilterListCtrl""" - return _controls.GenericDirCtrl_GetFilterListCtrl(*args, **kwargs) - - def FindChild(*args, **kwargs): - """ - FindChild(wxTreeItemId parentId, wxString path) -> (item, done) - - Find the child that matches the first part of 'path'. E.g. if a child path is - "/usr" and 'path' is "/usr/include" then the child for /usr is returned. - If the path string has been used (we're at the leaf), done is set to True - - """ - return _controls.GenericDirCtrl_FindChild(*args, **kwargs) - - def DoResize(*args, **kwargs): - """DoResize(self)""" - return _controls.GenericDirCtrl_DoResize(*args, **kwargs) - - def ReCreateTree(*args, **kwargs): - """ReCreateTree(self)""" - return _controls.GenericDirCtrl_ReCreateTree(*args, **kwargs) - - -class GenericDirCtrlPtr(GenericDirCtrl): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = GenericDirCtrl -_controls.GenericDirCtrl_swigregister(GenericDirCtrlPtr) -DirDialogDefaultFolderStr = cvar.DirDialogDefaultFolderStr - -def PreGenericDirCtrl(*args, **kwargs): - """PreGenericDirCtrl() -> GenericDirCtrl""" - val = _controls.new_PreGenericDirCtrl(*args, **kwargs) - val.thisown = 1 - return val - -class DirFilterListCtrl(Choice): - def __repr__(self): - return "<%s.%s; proxy of C++ wxDirFilterListCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0) -> DirFilterListCtrl - """ - newobj = _controls.new_DirFilterListCtrl(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0) -> bool - """ - return _controls.DirFilterListCtrl_Create(*args, **kwargs) - - def FillFilterList(*args, **kwargs): - """FillFilterList(self, String filter, int defaultFilter)""" - return _controls.DirFilterListCtrl_FillFilterList(*args, **kwargs) - - -class DirFilterListCtrlPtr(DirFilterListCtrl): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = DirFilterListCtrl -_controls.DirFilterListCtrl_swigregister(DirFilterListCtrlPtr) - -def PreDirFilterListCtrl(*args, **kwargs): - """PreDirFilterListCtrl() -> DirFilterListCtrl""" - val = _controls.new_PreDirFilterListCtrl(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -class PyControl(core.Control): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyControl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - long style=0, Validator validator=DefaultValidator, - String name=ControlNameStr) -> PyControl - """ - newobj = _controls.new_PyControl(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self); self._setCallbackInfo(self, PyControl) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _controls.PyControl__setCallbackInfo(*args, **kwargs) - - def base_DoMoveWindow(*args, **kwargs): - """base_DoMoveWindow(self, int x, int y, int width, int height)""" - return _controls.PyControl_base_DoMoveWindow(*args, **kwargs) - - def base_DoSetSize(*args, **kwargs): - """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)""" - return _controls.PyControl_base_DoSetSize(*args, **kwargs) - - def base_DoSetClientSize(*args, **kwargs): - """base_DoSetClientSize(self, int width, int height)""" - return _controls.PyControl_base_DoSetClientSize(*args, **kwargs) - - def base_DoSetVirtualSize(*args, **kwargs): - """base_DoSetVirtualSize(self, int x, int y)""" - return _controls.PyControl_base_DoSetVirtualSize(*args, **kwargs) - - def base_DoGetSize(*args, **kwargs): - """base_DoGetSize() -> (width, height)""" - return _controls.PyControl_base_DoGetSize(*args, **kwargs) - - def base_DoGetClientSize(*args, **kwargs): - """base_DoGetClientSize() -> (width, height)""" - return _controls.PyControl_base_DoGetClientSize(*args, **kwargs) - - def base_DoGetPosition(*args, **kwargs): - """base_DoGetPosition() -> (x,y)""" - return _controls.PyControl_base_DoGetPosition(*args, **kwargs) - - def base_DoGetVirtualSize(*args, **kwargs): - """base_DoGetVirtualSize(self) -> Size""" - return _controls.PyControl_base_DoGetVirtualSize(*args, **kwargs) - - def base_DoGetBestSize(*args, **kwargs): - """base_DoGetBestSize(self) -> Size""" - return _controls.PyControl_base_DoGetBestSize(*args, **kwargs) - - def base_InitDialog(*args, **kwargs): - """base_InitDialog(self)""" - return _controls.PyControl_base_InitDialog(*args, **kwargs) - - def base_TransferDataToWindow(*args, **kwargs): - """base_TransferDataToWindow(self) -> bool""" - return _controls.PyControl_base_TransferDataToWindow(*args, **kwargs) - - def base_TransferDataFromWindow(*args, **kwargs): - """base_TransferDataFromWindow(self) -> bool""" - return _controls.PyControl_base_TransferDataFromWindow(*args, **kwargs) - - def base_Validate(*args, **kwargs): - """base_Validate(self) -> bool""" - return _controls.PyControl_base_Validate(*args, **kwargs) - - def base_AcceptsFocus(*args, **kwargs): - """base_AcceptsFocus(self) -> bool""" - return _controls.PyControl_base_AcceptsFocus(*args, **kwargs) - - def base_AcceptsFocusFromKeyboard(*args, **kwargs): - """base_AcceptsFocusFromKeyboard(self) -> bool""" - return _controls.PyControl_base_AcceptsFocusFromKeyboard(*args, **kwargs) - - def base_GetMaxSize(*args, **kwargs): - """base_GetMaxSize(self) -> Size""" - return _controls.PyControl_base_GetMaxSize(*args, **kwargs) - - def base_AddChild(*args, **kwargs): - """base_AddChild(self, Window child)""" - return _controls.PyControl_base_AddChild(*args, **kwargs) - - def base_RemoveChild(*args, **kwargs): - """base_RemoveChild(self, Window child)""" - return _controls.PyControl_base_RemoveChild(*args, **kwargs) - - def base_ShouldInheritColours(*args, **kwargs): - """base_ShouldInheritColours(self) -> bool""" - return _controls.PyControl_base_ShouldInheritColours(*args, **kwargs) - - def base_ApplyParentThemeBackground(*args, **kwargs): - """base_ApplyParentThemeBackground(self, Colour c)""" - return _controls.PyControl_base_ApplyParentThemeBackground(*args, **kwargs) - - -class PyControlPtr(PyControl): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PyControl -_controls.PyControl_swigregister(PyControlPtr) - -def PrePyControl(*args, **kwargs): - """PrePyControl() -> PyControl""" - val = _controls.new_PrePyControl(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -FRAME_EX_CONTEXTHELP = _controls.FRAME_EX_CONTEXTHELP -DIALOG_EX_CONTEXTHELP = _controls.DIALOG_EX_CONTEXTHELP -wxEVT_HELP = _controls.wxEVT_HELP -wxEVT_DETAILED_HELP = _controls.wxEVT_DETAILED_HELP -EVT_HELP = wx.PyEventBinder( wxEVT_HELP, 1) -EVT_HELP_RANGE = wx.PyEventBinder( wxEVT_HELP, 2) -EVT_DETAILED_HELP = wx.PyEventBinder( wxEVT_DETAILED_HELP, 1) -EVT_DETAILED_HELP_RANGE = wx.PyEventBinder( wxEVT_DETAILED_HELP, 2) - -class HelpEvent(core.CommandEvent): - """ - A help event is sent when the user has requested - context-sensitive help. This can either be caused by the - application requesting context-sensitive help mode via - wx.ContextHelp, or (on MS Windows) by the system generating a - WM_HELP message when the user pressed F1 or clicked on the query - button in a dialog caption. - - A help event is sent to the window that the user clicked on, and - is propagated up the window hierarchy until the event is - processed or there are no more event handlers. The application - should call event.GetId to check the identity of the clicked-on - window, and then either show some suitable help or call - event.Skip if the identifier is unrecognised. Calling Skip is - important because it allows wxWindows to generate further events - for ancestors of the clicked-on window. Otherwise it would be - impossible to show help for container windows, since processing - would stop after the first window found. - - Events - EVT_HELP Sent when the user has requested context- - sensitive help. - EVT_HELP_RANGE Allows to catch EVT_HELP for a range of IDs - - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxHelpEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> HelpEvent""" - newobj = _controls.new_HelpEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetPosition(*args, **kwargs): - """ - GetPosition(self) -> Point - - Returns the left-click position of the mouse, in screen - coordinates. This allows the application to position the help - appropriately. - """ - return _controls.HelpEvent_GetPosition(*args, **kwargs) - - def SetPosition(*args, **kwargs): - """ - SetPosition(self, Point pos) - - Sets the left-click position of the mouse, in screen coordinates. - """ - return _controls.HelpEvent_SetPosition(*args, **kwargs) - - def GetLink(*args, **kwargs): - """ - GetLink(self) -> String - - Get an optional link to further help - """ - return _controls.HelpEvent_GetLink(*args, **kwargs) - - def SetLink(*args, **kwargs): - """ - SetLink(self, String link) - - Set an optional link to further help - """ - return _controls.HelpEvent_SetLink(*args, **kwargs) - - def GetTarget(*args, **kwargs): - """ - GetTarget(self) -> String - - Get an optional target to display help in. E.g. a window specification - """ - return _controls.HelpEvent_GetTarget(*args, **kwargs) - - def SetTarget(*args, **kwargs): - """ - SetTarget(self, String target) - - Set an optional target to display help in. E.g. a window specification - """ - return _controls.HelpEvent_SetTarget(*args, **kwargs) - - -class HelpEventPtr(HelpEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = HelpEvent -_controls.HelpEvent_swigregister(HelpEventPtr) - -class ContextHelp(core.Object): - """ - This class changes the cursor to a query and puts the application - into a 'context-sensitive help mode'. When the user left-clicks - on a window within the specified window, a EVT_HELP event is sent - to that control, and the application may respond to it by popping - up some help. - - There are a couple of ways to invoke this behaviour implicitly: - - * Use the wx.DIALOG_EX_CONTEXTHELP extended style for a - dialog (Windows only). This will put a question mark in the - titlebar, and Windows will put the application into - context-sensitive help mode automatically, with further - programming. - - * Create a wx.ContextHelpButton, whose predefined behaviour - is to create a context help object. Normally you will write - your application so that this button is only added to a - dialog for non-Windows platforms (use - wx.DIALOG_EX_CONTEXTHELP on Windows). - - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxContextHelp instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window window=None, bool doNow=True) -> ContextHelp - - Constructs a context help object, calling BeginContextHelp if - doNow is true (the default). - - If window is None, the top window is used. - """ - newobj = _controls.new_ContextHelp(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_controls.delete_ContextHelp): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def BeginContextHelp(*args, **kwargs): - """ - BeginContextHelp(self, Window window=None) -> bool - - Puts the application into context-sensitive help mode. window is - the window which will be used to catch events; if NULL, the top - window will be used. - - Returns true if the application was successfully put into - context-sensitive help mode. This function only returns when the - event loop has finished. - """ - return _controls.ContextHelp_BeginContextHelp(*args, **kwargs) - - def EndContextHelp(*args, **kwargs): - """ - EndContextHelp(self) -> bool - - Ends context-sensitive help mode. Not normally called by the - application. - """ - return _controls.ContextHelp_EndContextHelp(*args, **kwargs) - - -class ContextHelpPtr(ContextHelp): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ContextHelp -_controls.ContextHelp_swigregister(ContextHelpPtr) - -class ContextHelpButton(BitmapButton): - """ - Instances of this class may be used to add a question mark button - that when pressed, puts the application into context-help - mode. It does this by creating a wx.ContextHelp object which - itself generates a EVT_HELP event when the user clicks on a - window. - - On Windows, you may add a question-mark icon to a dialog by use - of the wx.DIALOG_EX_CONTEXTHELP extra style, but on other - platforms you will have to add a button explicitly, usually next - to OK, Cancel or similar buttons. - - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxContextHelpButton instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id=ID_CONTEXT_HELP, Point pos=DefaultPosition, - Size size=DefaultSize, long style=BU_AUTODRAW) -> ContextHelpButton - - Constructor, creating and showing a context help button. - """ - newobj = _controls.new_ContextHelpButton(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - -class ContextHelpButtonPtr(ContextHelpButton): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ContextHelpButton -_controls.ContextHelpButton_swigregister(ContextHelpButtonPtr) - -class HelpProvider(object): - """ - wx.HelpProvider is an abstract class used by a program - implementing context-sensitive help to show the help text for the - given window. - - The current help provider must be explicitly set by the - application using wx.HelpProvider.Set(). - """ - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxHelpProvider instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def Set(*args, **kwargs): - """ - HelpProvider.Set(HelpProvider helpProvider) -> HelpProvider - - Sset the current, application-wide help provider. Returns the - previous one. Unlike some other classes, the help provider is - not created on demand. This must be explicitly done by the - application. - """ - return _controls.HelpProvider_Set(*args, **kwargs) - - Set = staticmethod(Set) - def Get(*args, **kwargs): - """ - HelpProvider.Get() -> HelpProvider - - Return the current application-wide help provider. - """ - return _controls.HelpProvider_Get(*args, **kwargs) - - Get = staticmethod(Get) - def GetHelp(*args, **kwargs): - """ - GetHelp(self, Window window) -> String - - Gets the help string for this window. Its interpretation is - dependent on the help provider except that empty string always - means that no help is associated with the window. - """ - return _controls.HelpProvider_GetHelp(*args, **kwargs) - - def ShowHelp(*args, **kwargs): - """ - ShowHelp(self, Window window) -> bool - - Shows help for the given window. Uses GetHelp internally if - applicable. - - Returns true if it was done, or false if no help was available - for this window. - """ - return _controls.HelpProvider_ShowHelp(*args, **kwargs) - - def AddHelp(*args, **kwargs): - """ - AddHelp(self, Window window, String text) - - Associates the text with the given window. - """ - return _controls.HelpProvider_AddHelp(*args, **kwargs) - - def AddHelpById(*args, **kwargs): - """ - AddHelpById(self, int id, String text) - - This version associates the given text with all windows with this - id. May be used to set the same help string for all Cancel - buttons in the application, for example. - """ - return _controls.HelpProvider_AddHelpById(*args, **kwargs) - - def RemoveHelp(*args, **kwargs): - """ - RemoveHelp(self, Window window) - - Removes the association between the window pointer and the help - text. This is called by the wx.Window destructor. Without this, - the table of help strings will fill up and when window pointers - are reused, the wrong help string will be found. - """ - return _controls.HelpProvider_RemoveHelp(*args, **kwargs) - - def Destroy(*args, **kwargs): - """Destroy(self)""" - return _controls.HelpProvider_Destroy(*args, **kwargs) - - -class HelpProviderPtr(HelpProvider): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = HelpProvider -_controls.HelpProvider_swigregister(HelpProviderPtr) - -def HelpProvider_Set(*args, **kwargs): - """ - HelpProvider_Set(HelpProvider helpProvider) -> HelpProvider - - Sset the current, application-wide help provider. Returns the - previous one. Unlike some other classes, the help provider is - not created on demand. This must be explicitly done by the - application. - """ - return _controls.HelpProvider_Set(*args, **kwargs) - -def HelpProvider_Get(*args, **kwargs): - """ - HelpProvider_Get() -> HelpProvider - - Return the current application-wide help provider. - """ - return _controls.HelpProvider_Get(*args, **kwargs) - -class SimpleHelpProvider(HelpProvider): - """ - wx.SimpleHelpProvider is an implementation of wx.HelpProvider - which supports only plain text help strings, and shows the string - associated with the control (if any) in a tooltip. - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxSimpleHelpProvider instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self) -> SimpleHelpProvider - - wx.SimpleHelpProvider is an implementation of wx.HelpProvider - which supports only plain text help strings, and shows the string - associated with the control (if any) in a tooltip. - """ - newobj = _controls.new_SimpleHelpProvider(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class SimpleHelpProviderPtr(SimpleHelpProvider): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = SimpleHelpProvider -_controls.SimpleHelpProvider_swigregister(SimpleHelpProviderPtr) - -#--------------------------------------------------------------------------- - -class DragImage(core.Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxGenericDragImage instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Bitmap image, Cursor cursor=wxNullCursor) -> DragImage""" - newobj = _controls.new_DragImage(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_controls.delete_DragImage): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def SetBackingBitmap(*args, **kwargs): - """SetBackingBitmap(self, Bitmap bitmap)""" - return _controls.DragImage_SetBackingBitmap(*args, **kwargs) - - def BeginDrag(*args, **kwargs): - """ - BeginDrag(self, Point hotspot, Window window, bool fullScreen=False, - Rect rect=None) -> bool - """ - return _controls.DragImage_BeginDrag(*args, **kwargs) - - def BeginDragBounded(*args, **kwargs): - """BeginDragBounded(self, Point hotspot, Window window, Window boundingWindow) -> bool""" - return _controls.DragImage_BeginDragBounded(*args, **kwargs) - - def EndDrag(*args, **kwargs): - """EndDrag(self) -> bool""" - return _controls.DragImage_EndDrag(*args, **kwargs) - - def Move(*args, **kwargs): - """Move(self, Point pt) -> bool""" - return _controls.DragImage_Move(*args, **kwargs) - - def Show(*args, **kwargs): - """Show(self) -> bool""" - return _controls.DragImage_Show(*args, **kwargs) - - def Hide(*args, **kwargs): - """Hide(self) -> bool""" - return _controls.DragImage_Hide(*args, **kwargs) - - def GetImageRect(*args, **kwargs): - """GetImageRect(self, Point pos) -> Rect""" - return _controls.DragImage_GetImageRect(*args, **kwargs) - - def DoDrawImage(*args, **kwargs): - """DoDrawImage(self, DC dc, Point pos) -> bool""" - return _controls.DragImage_DoDrawImage(*args, **kwargs) - - def UpdateBackingFromWindow(*args, **kwargs): - """UpdateBackingFromWindow(self, DC windowDC, MemoryDC destDC, Rect sourceRect, Rect destRect) -> bool""" - return _controls.DragImage_UpdateBackingFromWindow(*args, **kwargs) - - def RedrawImage(*args, **kwargs): - """RedrawImage(self, Point oldPos, Point newPos, bool eraseOld, bool drawNew) -> bool""" - return _controls.DragImage_RedrawImage(*args, **kwargs) - - -class DragImagePtr(DragImage): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = DragImage -_controls.DragImage_swigregister(DragImagePtr) - -def DragIcon(*args, **kwargs): - """DragIcon(Icon image, Cursor cursor=wxNullCursor) -> DragImage""" - val = _controls.new_DragIcon(*args, **kwargs) - val.thisown = 1 - return val - -def DragString(*args, **kwargs): - """DragString(String str, Cursor cursor=wxNullCursor) -> DragImage""" - val = _controls.new_DragString(*args, **kwargs) - val.thisown = 1 - return val - -def DragTreeItem(*args, **kwargs): - """DragTreeItem(TreeCtrl treeCtrl, TreeItemId id) -> DragImage""" - val = _controls.new_DragTreeItem(*args, **kwargs) - val.thisown = 1 - return val - -def DragListItem(*args, **kwargs): - """DragListItem(ListCtrl listCtrl, long id) -> DragImage""" - val = _controls.new_DragListItem(*args, **kwargs) - val.thisown = 1 - return val - - diff --git a/wxPython/src/msw/controls_wrap.cpp b/wxPython/src/msw/controls_wrap.cpp deleted file mode 100644 index 5415b8639e..0000000000 --- a/wxPython/src/msw/controls_wrap.cpp +++ /dev/null @@ -1,32725 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.22 - * - * This file is not intended to be easily readable and contains a number of - * coding conventions designed to improve portability and efficiency. Do not make - * changes to this file unless you know what you are doing--modify the SWIG - * interface file instead. - * ----------------------------------------------------------------------------- */ - -#define SWIGPYTHON -#define SWIG_NOINCLUDE - -#ifdef __cplusplus -template class SwigValueWrapper { - T *tt; -public: - SwigValueWrapper() : tt(0) { } - SwigValueWrapper(const SwigValueWrapper& rhs) : tt(new T(*rhs.tt)) { } - SwigValueWrapper(const T& t) : tt(new T(t)) { } - ~SwigValueWrapper() { delete tt; } - SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } - operator T&() const { return *tt; } - T *operator&() { return tt; } -private: - SwigValueWrapper& operator=(const SwigValueWrapper& rhs); -}; -#endif - - -#include "Python.h" - -/*************************************************************** -*- c -*- - * python/precommon.swg - * - * Rename all exported symbols from common.swg, to avoid symbol - * clashes if multiple interpreters are included - * - ************************************************************************/ - -#define SWIG_TypeRegister SWIG_Python_TypeRegister -#define SWIG_TypeCheck SWIG_Python_TypeCheck -#define SWIG_TypeCast SWIG_Python_TypeCast -#define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast -#define SWIG_TypeName SWIG_Python_TypeName -#define SWIG_TypeQuery SWIG_Python_TypeQuery -#define SWIG_TypeClientData SWIG_Python_TypeClientData -#define SWIG_PackData SWIG_Python_PackData -#define SWIG_UnpackData SWIG_Python_UnpackData - - -/*********************************************************************** - * common.swg for wxPython - * - * Include only the function prototypes and such from SWIG's common.swg, - * but not the runtime functions themselves. This helps keep the - * wrapper files clean of unnecessary stuff that is in the libpy.c file - * anyway. - * - ************************************************************************/ - -#include - -#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) -# if defined(_MSC_VER) || defined(__GNUC__) -# if defined(STATIC_LINKED) -# define SWIGEXPORT(a) a -# define SWIGIMPORT(a) extern a -# else -# define SWIGEXPORT(a) __declspec(dllexport) a -# define SWIGIMPORT(a) extern a -# endif -# else -# if defined(__BORLANDC__) -# define SWIGEXPORT(a) a _export -# define SWIGIMPORT(a) a _export -# else -# define SWIGEXPORT(a) a -# define SWIGIMPORT(a) a -# endif -# endif -#else -# define SWIGEXPORT(a) a -# define SWIGIMPORT(a) a -#endif - -#ifdef SWIG_GLOBAL -# define SWIGRUNTIME(a) SWIGEXPORT(a) -#else -# define SWIGRUNTIME(a) static a -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -typedef void *(*swig_converter_func)(void *); -typedef struct swig_type_info *(*swig_dycast_func)(void **); - -typedef struct swig_type_info { - const char *name; - swig_converter_func converter; - const char *str; - void *clientdata; - swig_dycast_func dcast; - struct swig_type_info *next; - struct swig_type_info *prev; -} swig_type_info; - - -SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); -SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); -SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); -SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); -SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); -SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); -SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); -SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); -SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); - - -#ifdef __cplusplus -} -#endif - -/*********************************************************************** - * pyrun.swg for wxPython - * - * Include only the function prototypes and such from SWIG's pyrun.swg, - * but not the runtime functions themselves. This helps keep the - * wrapper files clean of unnecessary stuff that is in the libpy.c file - * anyway. - * - ************************************************************************/ - -#include "Python.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define SWIG_PY_INT 1 -#define SWIG_PY_FLOAT 2 -#define SWIG_PY_STRING 3 -#define SWIG_PY_POINTER 4 -#define SWIG_PY_BINARY 5 - -/* Flags for pointer conversion */ - -#define SWIG_POINTER_EXCEPTION 0x1 -#define SWIG_POINTER_DISOWN 0x2 - -/* Exception handling in wrappers */ -#define SWIG_fail goto fail - -/* Constant information structure */ -typedef struct swig_const_info { - int type; - char *name; - long lvalue; - double dvalue; - void *pvalue; - swig_type_info **ptype; -} swig_const_info; - -/* Common SWIG API */ -#define SWIG_ConvertPtr(obj, pp, type, flags) \ - SWIG_Python_ConvertPtr(obj, pp, type, flags) -#define SWIG_NewPointerObj(p, type, flags) \ - SWIG_Python_NewPointerObj(p, type, flags) -#define SWIG_MustGetPtr(p, type, argnum, flags) \ - SWIG_Python_MustGetPtr(p, type, argnum, flags) - -/* Python-specific SWIG API */ -#define SWIG_newvarlink() \ - SWIG_Python_newvarlink() -#define SWIG_addvarlink(p, name, get_attr, set_attr) \ - SWIG_Python_addvarlink(p, name, get_attr, set_attr) -#define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ - SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) -#define SWIG_NewPackedObj(ptr, sz, type) \ - SWIG_Python_NewPackedObj(ptr, sz, type) -#define SWIG_InstallConstants(d, constants) \ - SWIG_Python_InstallConstants(d, constants) - -typedef double (*py_objasdbl_conv)(PyObject *obj); - -SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); -SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); -SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); -SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); -SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); -SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); -SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); -SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); - - -/* Contract support */ - -#define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else - -#ifdef __cplusplus -} -#endif - - -/* -------- TYPES TABLE (BEGIN) -------- */ - -#define SWIGTYPE_p_wxTextUrlEvent swig_types[0] -#define SWIGTYPE_p_wxBookCtrlEvent swig_types[1] -#define SWIGTYPE_p_wxSizer swig_types[2] -#define SWIGTYPE_p_wxCheckBox swig_types[3] -#define SWIGTYPE_p_wxPyTreeCtrl swig_types[4] -#define SWIGTYPE_p_wxEvent swig_types[5] -#define SWIGTYPE_p_wxGenericDirCtrl swig_types[6] -#define SWIGTYPE_p_bool swig_types[7] -#define SWIGTYPE_p_wxPyTreeItemData swig_types[8] -#define SWIGTYPE_p_wxItemContainer swig_types[9] -#define SWIGTYPE_p_wxPyListCtrl swig_types[10] -#define SWIGTYPE_p_wxDirFilterListCtrl swig_types[11] -#define SWIGTYPE_p_wxStaticLine swig_types[12] -#define SWIGTYPE_p_wxControl swig_types[13] -#define SWIGTYPE_p_wxPyControl swig_types[14] -#define SWIGTYPE_p_wxGauge swig_types[15] -#define SWIGTYPE_p_wxToolBarBase swig_types[16] -#define SWIGTYPE_p_wxFont swig_types[17] -#define SWIGTYPE_p_wxToggleButton swig_types[18] -#define SWIGTYPE_p_wxRadioButton swig_types[19] -#define SWIGTYPE_p_wxChoice swig_types[20] -#define SWIGTYPE_p_wxMemoryDC swig_types[21] -#define SWIGTYPE_p_wxListItemAttr swig_types[22] -#define SWIGTYPE_p_void swig_types[23] -#define SWIGTYPE_p_int swig_types[24] -#define SWIGTYPE_p_wxSize swig_types[25] -#define SWIGTYPE_p_wxDC swig_types[26] -#define SWIGTYPE_p_wxListView swig_types[27] -#define SWIGTYPE_p_wxIcon swig_types[28] -#define SWIGTYPE_p_wxVisualAttributes swig_types[29] -#define SWIGTYPE_p_wxTextCtrl swig_types[30] -#define SWIGTYPE_p_wxNotebook swig_types[31] -#define SWIGTYPE_p_wxNotifyEvent swig_types[32] -#define SWIGTYPE_p_wxArrayString swig_types[33] -#define SWIGTYPE_p_wxListbook swig_types[34] -#define SWIGTYPE_p_wxStaticBitmap swig_types[35] -#define SWIGTYPE_p_wxSlider swig_types[36] -#define SWIGTYPE_p_wxStaticBox swig_types[37] -#define SWIGTYPE_p_wxArrayInt swig_types[38] -#define SWIGTYPE_p_wxContextHelp swig_types[39] -#define SWIGTYPE_p_long swig_types[40] -#define SWIGTYPE_p_wxEvtHandler swig_types[41] -#define SWIGTYPE_p_wxListEvent swig_types[42] -#define SWIGTYPE_p_wxCheckListBox swig_types[43] -#define SWIGTYPE_p_wxListBox swig_types[44] -#define SWIGTYPE_p_wxBookCtrl swig_types[45] -#define SWIGTYPE_p_wxSpinButton swig_types[46] -#define SWIGTYPE_p_wxButton swig_types[47] -#define SWIGTYPE_p_wxBitmapButton swig_types[48] -#define SWIGTYPE_p_wxRect swig_types[49] -#define SWIGTYPE_p_wxContextHelpButton swig_types[50] -#define SWIGTYPE_p_wxRadioBox swig_types[51] -#define SWIGTYPE_p_wxScrollBar swig_types[52] -#define SWIGTYPE_p_char swig_types[53] -#define SWIGTYPE_p_wxTreeItemId swig_types[54] -#define SWIGTYPE_p_wxComboBox swig_types[55] -#define SWIGTYPE_p_wxHelpEvent swig_types[56] -#define SWIGTYPE_p_wxListItem swig_types[57] -#define SWIGTYPE_p_wxNotebookSizer swig_types[58] -#define SWIGTYPE_p_wxSpinEvent swig_types[59] -#define SWIGTYPE_p_wxGenericDragImage swig_types[60] -#define SWIGTYPE_p_wxSpinCtrl swig_types[61] -#define SWIGTYPE_p_wxImageList swig_types[62] -#define SWIGTYPE_p_wxHelpProvider swig_types[63] -#define SWIGTYPE_p_wxTextAttr swig_types[64] -#define SWIGTYPE_p_wxSimpleHelpProvider swig_types[65] -#define SWIGTYPE_p_wxPoint swig_types[66] -#define SWIGTYPE_p_wxListbookEvent swig_types[67] -#define SWIGTYPE_p_wxNotebookEvent swig_types[68] -#define SWIGTYPE_p_wxObject swig_types[69] -#define SWIGTYPE_p_wxCursor swig_types[70] -#define SWIGTYPE_p_wxKeyEvent swig_types[71] -#define SWIGTYPE_p_wxWindow swig_types[72] -#define SWIGTYPE_p_wxString swig_types[73] -#define SWIGTYPE_p_wxBitmap swig_types[74] -#define SWIGTYPE_p_wxTreeEvent swig_types[75] -#define SWIGTYPE_p_wxMouseEvent swig_types[76] -#define SWIGTYPE_p_wxCommandEvent swig_types[77] -#define SWIGTYPE_p_wxStaticText swig_types[78] -#define SWIGTYPE_p_wxControlWithItems swig_types[79] -#define SWIGTYPE_p_wxToolBarToolBase swig_types[80] -#define SWIGTYPE_p_wxColour swig_types[81] -#define SWIGTYPE_p_wxToolBar swig_types[82] -#define SWIGTYPE_p_wxBookCtrlSizer swig_types[83] -#define SWIGTYPE_p_wxValidator swig_types[84] -static swig_type_info *swig_types[86]; - -/* -------- TYPES TABLE (END) -------- */ - - -/*----------------------------------------------- - @(target):= _controls.so - ------------------------------------------------*/ -#define SWIG_init init_controls - -#define SWIG_name "_controls" - -/* Auxiliar swig macros */ - -#ifdef __cplusplus -#define SWIGSTATICINLINE(a) static inline a -#define SWIGSTATIC(a) static a -#define swig_new_array(type, size) (new type[(size)]) -#define swig_delete_array(cptr) delete[] cptr -#define swig_const_cast(type,a) const_cast(a) -#define swig_static_cast(type,a) static_cast(a) -#define swig_reinterpret_cast(type,a) reinterpret_cast(a) - -#ifdef HAVE_NUMERIC_CAST -#define swig_numeric_cast(type,a) numeric_cast(a) -#else -#define swig_numeric_cast(type,a) static_cast(a) -#endif - -#else /* C case */ - -#define SWIGSTATICINLINE(a) static a -#define SWIGSTATIC(a) static a -#define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type))) -#define swig_delete_array(cptr) free((char*)cptr) -#define swig_const_cast(type,a) (type)(a) -#define swig_static_cast(type,a) (type)(a) -#define swig_reinterpret_cast(type,a) (type)(a) -#define swig_numeric_cast(type,a) (type)(a) - -#endif /* __cplusplus */ - - -#define SWIG_FromSignedChar PyInt_FromLong -#define SWIG_FromUnsignedChar PyInt_FromLong -#define SWIG_FromShort PyInt_FromLong -#define SWIG_FromUnsignedShort PyInt_FromLong -#define SWIG_FromInt PyInt_FromLong -#define SWIG_FromLong PyInt_FromLong -#define SWIG_FromFloat PyFloat_FromDouble -#define SWIG_FromDouble PyFloat_FromDouble -#define SWIG_FromFloat PyFloat_FromDouble -#define SWIG_FromDouble PyFloat_FromDouble - - -#include "wx/wxPython/wxPython.h" -#include "wx/wxPython/pyclasses.h" - - static const wxString wxPyPanelNameStr(wxPanelNameStr); - static const wxString wxPyEmptyString(wxEmptyString); - static const wxString wxPyControlNameStr(wxControlNameStr); - - const wxArrayString wxPyEmptyStringArray; - - static const wxString wxPyButtonNameStr(wxButtonNameStr); - -#include - - -SWIGSTATICINLINE(long) -SWIG_CheckLongInRange(long value, const char* type, - long min_value, long max_value) -{ - if (!PyErr_Occurred()) { - if (value < min_value) { - PyObject *err = - PyString_FromFormat("value %ld is less than '%s' minimum %ld", - value, type, min_value); - - PyErr_SetObject(PyExc_OverflowError, err); - Py_DECREF(err); - } else if (value > max_value) { - PyObject *err = - PyString_FromFormat("value %ld is greater than '%s' maximum %ld", - value, type, max_value); - PyErr_SetObject(PyExc_OverflowError, err); - Py_DECREF(err); - } - } - return value; -} - - -SWIGSTATICINLINE(long) -SWIG_AsLong(PyObject * obj) -{ - if (PyNumber_Check(obj)) - return PyInt_AsLong(obj); - else { - PyObject* errmsg = PyString_FromFormat("Expected number, got %s", - obj->ob_type->tp_name); - PyErr_SetObject(PyExc_TypeError, errmsg); - Py_DECREF(errmsg); - return 0; - } -} - - -#if INT_MAX != LONG_MAX -SWIGSTATICINLINE(int) -SWIG_AsInt(PyObject *obj) -{ - return swig_numeric_cast(int, - SWIG_CheckLongInRange(SWIG_AsLong(obj), - "int", INT_MIN, INT_MAX)); -} -#else -#define SWIG_AsInt SWIG_AsLong -#endif - - -SWIGSTATICINLINE(int) -SWIG_CheckInt(PyObject* obj) -{ - SWIG_AsInt(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - - -SWIGSTATICINLINE(int) -SWIG_CheckLong(PyObject* obj) -{ - SWIG_AsLong(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - - static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr); - -SWIGSTATICINLINE(bool) -SWIG_AsBool(PyObject *obj) -{ - return PyObject_IsTrue(obj) ? true : false; -} - - -SWIGSTATICINLINE(int) -SWIG_CheckBool(PyObject* obj) -{ - SWIG_AsBool(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - - static const wxString wxPyChoiceNameStr(wxChoiceNameStr); - static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr); - static const wxString wxPyGaugeNameStr(wxGaugeNameStr); - static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr); - static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr); - static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr); - -#include - - - static const wxString wxPyListBoxNameStr(wxListBoxNameStr); -void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData){ - if (clientData) { - wxPyClientData* data = new wxPyClientData(clientData); - self->Insert(item, pos, data); - } else - self->Insert(item, pos); - } -PyObject *wxListBox_GetSelections(wxListBox *self){ - wxArrayInt lst; - self->GetSelections(lst); - PyObject *tup = PyTuple_New(lst.GetCount()); - for(size_t i=0; iGetWindowStyle() & wxLB_OWNERDRAW) - self->GetItem(item)->SetTextColour(c); - #endif - } -void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){ - #ifdef __WXMSW__ - if (self->GetWindowStyle() & wxLB_OWNERDRAW) - self->GetItem(item)->SetBackgroundColour(c); - #endif - } -void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){ - #ifdef __WXMSW__ - if (self->GetWindowStyle() & wxLB_OWNERDRAW) - self->GetItem(item)->SetFont(f); - #endif - } - static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr); - -static PyObject* t_output_helper(PyObject* target, PyObject* o) { - PyObject* o2; - PyObject* o3; - - if (!target) { - target = o; - } else if (target == Py_None) { - Py_DECREF(Py_None); - target = o; - } else { - if (!PyTuple_Check(target)) { - o2 = target; - target = PyTuple_New(1); - PyTuple_SetItem(target, 0, o2); - } - o3 = PyTuple_New(1); - PyTuple_SetItem(o3, 0, o); - - o2 = target; - target = PySequence_Concat(o2, o3); - Py_DECREF(o2); - Py_DECREF(o3); - } - return target; -} - - -SWIGSTATICINLINE(unsigned long) -SWIG_AsUnsignedLong(PyObject * obj) -{ - if (PyLong_Check(obj)) { - return PyLong_AsUnsignedLong(obj); - } else { - long i = SWIG_AsLong(obj); - if ( !PyErr_Occurred() && (i < 0)) { - PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); - } - return i; - } -} - - -SWIGSTATICINLINE(int) -SWIG_CheckUnsignedLong(PyObject* obj) -{ - SWIG_AsUnsignedLong(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - -void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){ - self->AppendText(text); - } -wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){ - return self->GetValue().Mid(from, to - from); - } - static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr); - static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME); - static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl")); - static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr); - static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr); - -#include - - - static const wxString wxPySliderNameStr(wxSliderNameStr); - static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton")); - -#if !wxUSE_TOGGLEBTN -// implement dummy items for platforms that don't have this class - -#define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0 - -class wxToggleButton : public wxControl -{ -public: - wxToggleButton(wxWindow *, wxWindowID, const wxString&, - const wxPoint&, const wxSize&, long, - const wxValidator&, const wxString&) - { wxPyRaiseNotImplemented(); } - - wxToggleButton() - { wxPyRaiseNotImplemented(); } -}; -#endif - - static const wxString wxPyNOTEBOOK_NAME(wxNOTEBOOK_NAME); - -SWIGSTATICINLINE(PyObject* ) -SWIG_FromUnsignedLong(unsigned long value) -{ - return (value > LONG_MAX) ? - PyLong_FromUnsignedLong(value) - : PyInt_FromLong(swig_numeric_cast(long,value)); -} - - static const wxString wxPyToolBarNameStr(wxToolBarNameStr); -PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){ - wxPyUserData* udata = (wxPyUserData*)self->GetClientData(); - if (udata) { - Py_INCREF(udata->m_obj); - return udata->m_obj; - } else { - Py_INCREF(Py_None); - return Py_None; - } - } -void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){ - self->SetClientData(new wxPyUserData(clientData)); - } -wxToolBarToolBase *wxToolBarBase_DoAddTool(wxToolBarBase *self,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled,wxItemKind kind,wxString const &shortHelp,wxString const &longHelp,PyObject *clientData){ - wxPyUserData* udata = NULL; - if (clientData && clientData != Py_None) - udata = new wxPyUserData(clientData); - return self->AddTool(id, label, bitmap, bmpDisabled, kind, - shortHelp, longHelp, udata); - } -wxToolBarToolBase *wxToolBarBase_DoInsertTool(wxToolBarBase *self,size_t pos,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled,wxItemKind kind,wxString const &shortHelp,wxString const &longHelp,PyObject *clientData){ - wxPyUserData* udata = NULL; - if (clientData && clientData != Py_None) - udata = new wxPyUserData(clientData); - return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind, - shortHelp, longHelp, udata); - } -PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){ - wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id); - if (udata) { - Py_INCREF(udata->m_obj); - return udata->m_obj; - } else { - Py_INCREF(Py_None); - return Py_None; - } - } -void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){ - self->SetToolClientData(id, new wxPyUserData(clientData)); - } - -#include - - - static const wxString wxPyListCtrlNameStr(_T("wxListCtrl")); -void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; } - // Python aware sorting function for wxPyListCtrl - static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { - int retval = 0; - PyObject* func = (PyObject*)funcPtr; - bool blocked = wxPyBeginBlockThreads(); - - PyObject* args = Py_BuildValue("(ii)", item1, item2); - PyObject* result = PyEval_CallObject(func, args); - Py_DECREF(args); - if (result) { - retval = PyInt_AsLong(result); - Py_DECREF(result); - } - - wxPyEndBlockThreads(blocked); - return retval; - } - - // C++ Version of a Python aware class -class wxPyListCtrl : public wxListCtrl { - DECLARE_ABSTRACT_CLASS(wxPyListCtrl); -public: - wxPyListCtrl() : wxListCtrl() {} - wxPyListCtrl(wxWindow* parent, wxWindowID id, - const wxPoint& pos, - const wxSize& size, - long style, - const wxValidator& validator, - const wxString& name) : - wxListCtrl(parent, id, pos, size, style, validator, name) {} - - bool Create(wxWindow* parent, wxWindowID id, - const wxPoint& pos, - const wxSize& size, - long style, - const wxValidator& validator, - const wxString& name) { - return wxListCtrl::Create(parent, id, pos, size, style, validator, name); - } - - DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); - DEC_PYCALLBACK_INT_LONG(OnGetItemImage); - DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); - - PYPRIVATE; -}; - -IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); - -IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); -IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage); -IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); - -wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){ - wxListItem item; - item.SetMask( wxLIST_MASK_STATE | - wxLIST_MASK_TEXT | - wxLIST_MASK_IMAGE | - wxLIST_MASK_DATA | - wxLIST_SET_ITEM | - wxLIST_MASK_WIDTH | - wxLIST_MASK_FORMAT - ); - if (self->GetColumn(col, item)) - return new wxListItem(item); - else - return NULL; - } -wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col){ - wxListItem* info = new wxListItem; - info->m_itemId = itemId; - info->m_col = col; - info->m_mask = 0xFFFF; - self->GetItem(*info); - return info; - } -wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){ - wxPoint pos; - self->GetItemPosition(item, pos); - return pos; - } -wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code){ - wxRect rect; - self->GetItemRect(item, rect, code); - return rect; - } -bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){ - if (!PyCallable_Check(func)) - return False; - return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func); - } -wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){ - - return self; - - - - } - -#include -#include "wx/wxPython/pytree.h" - - static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl")); -bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : False; } -bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : True; } -void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; } - // C++ version of Python aware wxTreeCtrl -class wxPyTreeCtrl : public wxTreeCtrl { - DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); -public: - wxPyTreeCtrl() : wxTreeCtrl() {} - wxPyTreeCtrl(wxWindow *parent, wxWindowID id, - const wxPoint& pos, - const wxSize& size, - long style, - const wxValidator& validator, - const wxString& name) : - wxTreeCtrl(parent, id, pos, size, style, validator, name) {} - - bool Create(wxWindow *parent, wxWindowID id, - const wxPoint& pos, - const wxSize& size, - long style, - const wxValidator& validator, - const wxString& name) { - return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); - } - - - int OnCompareItems(const wxTreeItemId& item1, - const wxTreeItemId& item2) { - int rval = 0; - bool found; - bool blocked = wxPyBeginBlockThreads(); - if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) { - PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), False); - PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), False); - rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2)); - Py_DECREF(o1); - Py_DECREF(o2); - } - wxPyEndBlockThreads(blocked); - if (! found) - rval = wxTreeCtrl::OnCompareItems(item1, item2); - return rval; - } - PYPRIVATE; -}; - -IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); - - - -#if UINT_MAX < LONG_MAX -#define SWIG_FromUnsignedInt SWIG_FromLong -#else -#define SWIG_FromUnsignedInt SWIG_FromUnsignedLong -#endif - - -SWIGSTATICINLINE(unsigned long) -SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type, - unsigned long max_value) -{ - if (!PyErr_Occurred()) { - if (value > max_value) { - PyObject *err = - PyString_FromFormat("value %ld is greater than '%s' minimum %ld", - value, type, max_value); - PyErr_SetObject(PyExc_OverflowError, err); - Py_DECREF(err); - } - } - return value; -} - - -#if UINT_MAX != ULONG_MAX -SWIGSTATICINLINE(unsigned int) -SWIG_AsUnsignedInt(PyObject *obj) -{ - return swig_numeric_cast(unsigned int, - SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), - "unsigned int", UINT_MAX)); -} -#else -#define SWIG_AsUnsignedInt SWIG_AsUnsignedLong -#endif - - -SWIGSTATICINLINE(int) -SWIG_CheckUnsignedInt(PyObject* obj) -{ - SWIG_AsUnsignedInt(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - -wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){ - wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); - if (data == NULL) { - data = new wxPyTreeItemData(); - data->SetId(item); // set the id - self->SetItemData(item, data); - } - return data; - } -PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){ - wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); - if (data == NULL) { - data = new wxPyTreeItemData(); - data->SetId(item); // set the id - self->SetItemData(item, data); - } - return data->GetData(); - } -void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){ - data->SetId(item); // set the id - self->SetItemData(item, data); - } -void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){ - wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); - if (data == NULL) { - data = new wxPyTreeItemData(obj); - data->SetId(item); // set the id - self->SetItemData(item, data); - } else - data->SetData(obj); - } -PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){ - bool blocked = wxPyBeginBlockThreads(); - PyObject* rval = PyList_New(0); - wxArrayTreeItemIds array; - size_t num, x; - num = self->GetSelections(array); - for (x=0; x < num; x++) { - wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); - PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), True); - PyList_Append(rval, item); - } - wxPyEndBlockThreads(blocked); - return rval; - } -PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){ - void* cookie = 0; - wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie)); - bool blocked = wxPyBeginBlockThreads(); - PyObject* tup = PyTuple_New(2); - PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True)); - PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); - wxPyEndBlockThreads(blocked); - return tup; - } -PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){ - wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie)); - bool blocked = wxPyBeginBlockThreads(); - PyObject* tup = PyTuple_New(2); - PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True)); - PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); - wxPyEndBlockThreads(blocked); - return tup; - } -PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly){ - wxRect rect; - if (self->GetBoundingRect(item, rect, textOnly)) { - bool blocked = wxPyBeginBlockThreads(); - wxRect* r = new wxRect(rect); - PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), True); - wxPyEndBlockThreads(blocked); - return val; - } - else - RETURN_NONE(); - } - static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr); - // C++ version of Python aware wxControl -class wxPyControl : public wxControl -{ - DECLARE_DYNAMIC_CLASS(wxPyControl) -public: - wxPyControl() : wxControl() {} - wxPyControl(wxWindow* parent, const wxWindowID id, - const wxPoint& pos = wxDefaultPosition, - const wxSize& size = wxDefaultSize, - long style = 0, - const wxValidator& validator=wxDefaultValidator, - const wxString& name = wxPyControlNameStr) - : wxControl(parent, id, pos, size, style, validator, name) {} - - - DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); - DEC_PYCALLBACK_VOID_INT5(DoSetSize); - DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); - DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); - - DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); - DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); - DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); - - DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); - DEC_PYCALLBACK_SIZE_const(DoGetBestSize); - - DEC_PYCALLBACK__(InitDialog); - DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); - DEC_PYCALLBACK_BOOL_(TransferDataToWindow); - DEC_PYCALLBACK_BOOL_(Validate); - - DEC_PYCALLBACK_BOOL_const(AcceptsFocus); - DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); - DEC_PYCALLBACK_SIZE_const(GetMaxSize); - - DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); - DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); - - DEC_PYCALLBACK_BOOL_(ShouldInheritColours); - DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground); - - PYPRIVATE; -}; - -IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl); - -IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow); -IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize); -IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize); -IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize); - -IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize); -IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize); -IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition); - -IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize); -IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize); - -IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog); -IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow); -IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow); -IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate); - -IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus); -IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard); -IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize); - -IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild); -IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild); - -IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, ShouldInheritColours); -IMP_PYCALLBACK__COLOUR(wxPyControl, wxControl, ApplyParentThemeBackground); - - - -void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; } - -#include - -#ifdef __cplusplus -extern "C" { -#endif -static int _wrap_ButtonNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_ButtonNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_Button(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) 0 ; - wxValidator const &arg7_defvalue = wxDefaultValidator ; - wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; - wxString const &arg8_defvalue = wxPyButtonNameStr ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - wxButton *result; - bool temp3 = False ; - wxPoint temp4 ; - wxSize temp5 ; - bool temp8 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg7 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp3) - delete arg3; - } - { - if (temp8) - delete arg8; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp8) - delete arg8; - } - return NULL; -} - - -static PyObject *_wrap_new_PreButton(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxButton *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxButton *)new wxButton(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Button_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxButton *arg1 = (wxButton *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - wxString *arg4 = 0 ; - wxPoint const &arg5_defvalue = wxDefaultPosition ; - wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; - wxSize const &arg6_defvalue = wxDefaultSize ; - wxSize *arg6 = (wxSize *) &arg6_defvalue ; - long arg7 = (long) 0 ; - wxValidator const &arg8_defvalue = wxDefaultValidator ; - wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; - wxString const &arg9_defvalue = wxPyButtonNameStr ; - wxString *arg9 = (wxString *) &arg9_defvalue ; - bool result; - bool temp4 = False ; - wxPoint temp5 ; - wxSize temp6 ; - bool temp9 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - { - arg6 = &temp6; - if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; - } - } - if (obj6) { - arg7 = (long) SWIG_AsLong(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg8 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj8) { - { - arg9 = wxString_in_helper(obj8); - if (arg9 == NULL) SWIG_fail; - temp9 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp4) - delete arg4; - } - { - if (temp9) - delete arg9; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - { - if (temp9) - delete arg9; - } - return NULL; -} - - -static PyObject *_wrap_Button_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxButton *arg1 = (wxButton *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDefault(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Button_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSize result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxButton::GetDefaultSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * Button_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_BitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxBitmap *arg3 = 0 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxBU_AUTODRAW ; - wxValidator const &arg7_defvalue = wxDefaultValidator ; - wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; - wxString const &arg8_defvalue = wxPyButtonNameStr ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - wxBitmapButton *result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp8 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg7 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp8) - delete arg8; - } - return resultobj; - fail: - { - if (temp8) - delete arg8; - } - return NULL; -} - - -static PyObject *_wrap_new_PreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmapButton *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxBitmapButton *)new wxBitmapButton(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - wxBitmap *arg4 = 0 ; - wxPoint const &arg5_defvalue = wxDefaultPosition ; - wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; - wxSize const &arg6_defvalue = wxDefaultSize ; - wxSize *arg6 = (wxSize *) &arg6_defvalue ; - long arg7 = (long) wxBU_AUTODRAW ; - wxValidator const &arg8_defvalue = wxDefaultValidator ; - wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; - wxString const &arg9_defvalue = wxPyButtonNameStr ; - wxString *arg9 = (wxString *) &arg9_defvalue ; - bool result; - wxPoint temp5 ; - wxSize temp6 ; - bool temp9 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg4 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - { - arg6 = &temp6; - if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; - } - } - if (obj6) { - arg7 = (long) SWIG_AsLong(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg8 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj8) { - { - arg9 = wxString_in_helper(obj8); - if (arg9 == NULL) SWIG_fail; - temp9 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp9) - delete arg9; - } - return resultobj; - fail: - { - if (temp9) - delete arg9; - } - return NULL; -} - - -static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; - wxBitmap result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetBitmapLabel(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxBitmap * resultptr; - resultptr = new wxBitmap((wxBitmap &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; - wxBitmap result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetBitmapDisabled(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxBitmap * resultptr; - resultptr = new wxBitmap((wxBitmap &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; - wxBitmap result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetBitmapFocus(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxBitmap * resultptr; - resultptr = new wxBitmap((wxBitmap &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; - wxBitmap result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetBitmapSelected(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxBitmap * resultptr; - resultptr = new wxBitmap((wxBitmap &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; - wxBitmap *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bitmap", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; - wxBitmap *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bitmap", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetBitmapFocus((wxBitmap const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; - wxBitmap *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bitmap", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetBitmapSelected((wxBitmap const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; - wxBitmap *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bitmap", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetBitmapLabel((wxBitmap const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMargins(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxBitmapButton const *)arg1)->GetMarginX(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxBitmapButton const *)arg1)->GetMarginY(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * BitmapButton_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_CheckBoxNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_CheckBoxNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_CheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) 0 ; - wxValidator const &arg7_defvalue = wxDefaultValidator ; - wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; - wxString const &arg8_defvalue = wxPyCheckBoxNameStr ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - wxCheckBox *result; - bool temp3 = False ; - wxPoint temp4 ; - wxSize temp5 ; - bool temp8 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg7 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); - { - if (temp3) - delete arg3; - } - { - if (temp8) - delete arg8; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp8) - delete arg8; - } - return NULL; -} - - -static PyObject *_wrap_new_PreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCheckBox *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxCheckBox *)new wxCheckBox(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCheckBox *arg1 = (wxCheckBox *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - wxString *arg4 = 0 ; - wxPoint const &arg5_defvalue = wxDefaultPosition ; - wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; - wxSize const &arg6_defvalue = wxDefaultSize ; - wxSize *arg6 = (wxSize *) &arg6_defvalue ; - long arg7 = (long) 0 ; - wxValidator const &arg8_defvalue = wxDefaultValidator ; - wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; - wxString const &arg9_defvalue = wxPyCheckBoxNameStr ; - wxString *arg9 = (wxString *) &arg9_defvalue ; - bool result; - bool temp4 = False ; - wxPoint temp5 ; - wxSize temp6 ; - bool temp9 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - { - arg6 = &temp6; - if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; - } - } - if (obj6) { - arg7 = (long) SWIG_AsLong(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg8 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj8) { - { - arg9 = wxString_in_helper(obj8); - if (arg9 == NULL) SWIG_fail; - temp9 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp4) - delete arg4; - } - { - if (temp9) - delete arg9; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - { - if (temp9) - delete arg9; - } - return NULL; -} - - -static PyObject *_wrap_CheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCheckBox *arg1 = (wxCheckBox *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetValue(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CheckBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCheckBox *arg1 = (wxCheckBox *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->IsChecked(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCheckBox *arg1 = (wxCheckBox *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "state", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool const) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetValue(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCheckBox *arg1 = (wxCheckBox *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxCheckBox const *)arg1)->Get3StateValue(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCheckBox *arg1 = (wxCheckBox *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "state", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxCheckBoxState) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Set3StateValue((wxCheckBoxState )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CheckBox_Is3State(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCheckBox *arg1 = (wxCheckBox *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxCheckBox const *)arg1)->Is3State(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCheckBox *arg1 = (wxCheckBox *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * CheckBox_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_ChoiceNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_ChoiceNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_Choice(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) -1 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; - wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; - long arg6 = (long) 0 ; - wxValidator const &arg7_defvalue = wxDefaultValidator ; - wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; - wxString const &arg8_defvalue = wxPyChoiceNameStr ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - wxChoice *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp5 = False ; - bool temp8 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - if (! PySequence_Check(obj4)) { - PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); - SWIG_fail; - } - arg5 = new wxArrayString; - temp5 = True; - int i, len=PySequence_Length(obj4); - for (i=0; iAdd(Py2wxString(str)); - Py_DECREF(item); - Py_DECREF(str); - } - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg7 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); - { - if (temp5) delete arg5; - } - { - if (temp8) - delete arg8; - } - return resultobj; - fail: - { - if (temp5) delete arg5; - } - { - if (temp8) - delete arg8; - } - return NULL; -} - - -static PyObject *_wrap_new_PreChoice(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxChoice *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxChoice *)new wxChoice(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Choice_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxChoice *arg1 = (wxChoice *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 = (int) -1 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; - wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; - long arg7 = (long) 0 ; - wxValidator const &arg8_defvalue = wxDefaultValidator ; - wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; - wxString const &arg9_defvalue = wxPyChoiceNameStr ; - wxString *arg9 = (wxString *) &arg9_defvalue ; - bool result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp6 = False ; - bool temp9 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - { - if (! PySequence_Check(obj5)) { - PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); - SWIG_fail; - } - arg6 = new wxArrayString; - temp6 = True; - int i, len=PySequence_Length(obj5); - for (i=0; iAdd(Py2wxString(str)); - Py_DECREF(item); - Py_DECREF(str); - } - } - } - if (obj6) { - arg7 = (long) SWIG_AsLong(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg8 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj8) { - { - arg9 = wxString_in_helper(obj8); - if (arg9 == NULL) SWIG_fail; - temp9 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp6) delete arg6; - } - { - if (temp9) - delete arg9; - } - return resultobj; - fail: - { - if (temp6) delete arg6; - } - { - if (temp9) - delete arg9; - } - return NULL; -} - - -static PyObject *_wrap_Choice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxChoice *arg1 = (wxChoice *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetSelection",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int const) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSelection(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Choice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxChoice *arg1 = (wxChoice *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "string", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetStringSelection((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Choice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxChoice *arg1 = (wxChoice *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n",(char *) "string", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Choice_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetString(arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject * Choice_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_ComboBoxNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_ComboBoxNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_ComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) -1 ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; - wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; - long arg7 = (long) 0 ; - wxValidator const &arg8_defvalue = wxDefaultValidator ; - wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; - wxString const &arg9_defvalue = wxPyComboBoxNameStr ; - wxString *arg9 = (wxString *) &arg9_defvalue ; - wxComboBox *result; - bool temp3 = False ; - wxPoint temp4 ; - wxSize temp5 ; - bool temp6 = False ; - bool temp9 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - { - if (! PySequence_Check(obj5)) { - PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); - SWIG_fail; - } - arg6 = new wxArrayString; - temp6 = True; - int i, len=PySequence_Length(obj5); - for (i=0; iAdd(Py2wxString(str)); - Py_DECREF(item); - Py_DECREF(str); - } - } - } - if (obj6) { - arg7 = (long) SWIG_AsLong(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg8 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj8) { - { - arg9 = wxString_in_helper(obj8); - if (arg9 == NULL) SWIG_fail; - temp9 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxComboBox *)new wxComboBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); - { - if (temp3) - delete arg3; - } - { - if (temp6) delete arg6; - } - { - if (temp9) - delete arg9; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp6) delete arg6; - } - { - if (temp9) - delete arg9; - } - return NULL; -} - - -static PyObject *_wrap_new_PreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxComboBox *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxComboBox *)new wxComboBox(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxComboBox *arg1 = (wxComboBox *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 = (int) -1 ; - wxString const &arg4_defvalue = wxPyEmptyString ; - wxString *arg4 = (wxString *) &arg4_defvalue ; - wxPoint const &arg5_defvalue = wxDefaultPosition ; - wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; - wxSize const &arg6_defvalue = wxDefaultSize ; - wxSize *arg6 = (wxSize *) &arg6_defvalue ; - wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; - wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; - long arg8 = (long) 0 ; - wxValidator const &arg9_defvalue = wxDefaultValidator ; - wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; - wxString const &arg10_defvalue = wxPyChoiceNameStr ; - wxString *arg10 = (wxString *) &arg10_defvalue ; - bool result; - bool temp4 = False ; - wxPoint temp5 ; - wxSize temp6 ; - bool temp7 = False ; - bool temp10 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - PyObject * obj9 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - { - arg6 = &temp6; - if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; - } - } - if (obj6) { - { - if (! PySequence_Check(obj6)) { - PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); - SWIG_fail; - } - arg7 = new wxArrayString; - temp7 = True; - int i, len=PySequence_Length(obj6); - for (i=0; iAdd(Py2wxString(str)); - Py_DECREF(item); - Py_DECREF(str); - } - } - } - if (obj7) { - arg8 = (long) SWIG_AsLong(obj7); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj8) { - if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg9 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj9) { - { - arg10 = wxString_in_helper(obj9); - if (arg10 == NULL) SWIG_fail; - temp10 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxArrayString const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp4) - delete arg4; - } - { - if (temp7) delete arg7; - } - { - if (temp10) - delete arg10; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - { - if (temp7) delete arg7; - } - { - if (temp10) - delete arg10; - } - return NULL; -} - - -static PyObject *_wrap_ComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxComboBox *arg1 = (wxComboBox *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxComboBox const *)arg1)->GetValue(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxComboBox *arg1 = (wxComboBox *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "value", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetValue((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxComboBox *arg1 = (wxComboBox *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Copy(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxComboBox *arg1 = (wxComboBox *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Cut(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxComboBox *arg1 = (wxComboBox *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Paste(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxComboBox *arg1 = (wxComboBox *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetInsertionPoint(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxComboBox *arg1 = (wxComboBox *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxComboBox const *)arg1)->GetInsertionPoint(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxComboBox *arg1 = (wxComboBox *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxComboBox const *)arg1)->GetLastPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxComboBox *arg1 = (wxComboBox *) 0 ; - long arg2 ; - long arg3 ; - wxString *arg4 = 0 ; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_ComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxComboBox *arg1 = (wxComboBox *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSelection(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxComboBox *arg1 = (wxComboBox *) 0 ; - long arg2 ; - long arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "from",(char *) "to", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSelection(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxComboBox *arg1 = (wxComboBox *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "editable", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetEditable(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxComboBox *arg1 = (wxComboBox *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetInsertionPointEnd(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxComboBox *arg1 = (wxComboBox *) 0 ; - long arg2 ; - long arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "from",(char *) "to", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Remove(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * ComboBox_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_GaugeNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_GaugeNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_Gauge(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - int arg3 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxGA_HORIZONTAL ; - wxValidator const &arg7_defvalue = wxDefaultValidator ; - wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; - wxString const &arg8_defvalue = wxPyGaugeNameStr ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - wxGauge *result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp8 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg7 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); - { - if (temp8) - delete arg8; - } - return resultobj; - fail: - { - if (temp8) - delete arg8; - } - return NULL; -} - - -static PyObject *_wrap_new_PreGauge(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGauge *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGauge *)new wxGauge(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Gauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGauge *arg1 = (wxGauge *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - int arg4 ; - wxPoint const &arg5_defvalue = wxDefaultPosition ; - wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; - wxSize const &arg6_defvalue = wxDefaultSize ; - wxSize *arg6 = (wxSize *) &arg6_defvalue ; - long arg7 = (long) wxGA_HORIZONTAL ; - wxValidator const &arg8_defvalue = wxDefaultValidator ; - wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; - wxString const &arg9_defvalue = wxPyGaugeNameStr ; - wxString *arg9 = (wxString *) &arg9_defvalue ; - bool result; - wxPoint temp5 ; - wxSize temp6 ; - bool temp9 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - if (obj4) { - { - arg5 = &temp5; - if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - { - arg6 = &temp6; - if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; - } - } - if (obj6) { - arg7 = (long) SWIG_AsLong(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg8 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj8) { - { - arg9 = wxString_in_helper(obj8); - if (arg9 == NULL) SWIG_fail; - temp9 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp9) - delete arg9; - } - return resultobj; - fail: - { - if (temp9) - delete arg9; - } - return NULL; -} - - -static PyObject *_wrap_Gauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGauge *arg1 = (wxGauge *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "range", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetRange(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Gauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGauge *arg1 = (wxGauge *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxGauge const *)arg1)->GetRange(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Gauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGauge *arg1 = (wxGauge *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetValue(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Gauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGauge *arg1 = (wxGauge *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxGauge const *)arg1)->GetValue(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Gauge_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGauge *arg1 = (wxGauge *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxGauge const *)arg1)->IsVertical(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGauge *arg1 = (wxGauge *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "w", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetShadowWidth(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGauge *arg1 = (wxGauge *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxGauge const *)arg1)->GetShadowWidth(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Gauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGauge *arg1 = (wxGauge *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "w", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetBezelFace(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Gauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGauge *arg1 = (wxGauge *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxGauge const *)arg1)->GetBezelFace(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * Gauge_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_StaticBitmapNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_StaticBitmapNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_StaticBoxNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_StaticBoxNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_StaticTextNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_StaticTextNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_StaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) 0 ; - wxString const &arg7_defvalue = wxPyStaticBoxNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - wxStaticBox *result; - bool temp3 = False ; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp3) - delete arg3; - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_new_PreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStaticBox *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxStaticBox *)new wxStaticBox(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_StaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStaticBox *arg1 = (wxStaticBox *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - wxString *arg4 = 0 ; - wxPoint const &arg5_defvalue = wxDefaultPosition ; - wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; - wxSize const &arg6_defvalue = wxDefaultSize ; - wxSize *arg6 = (wxSize *) &arg6_defvalue ; - long arg7 = (long) 0 ; - wxString const &arg8_defvalue = wxPyStaticBoxNameStr ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - bool result; - bool temp4 = False ; - wxPoint temp5 ; - wxSize temp6 ; - bool temp8 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - { - arg6 = &temp6; - if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; - } - } - if (obj6) { - arg7 = (long) SWIG_AsLong(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp4) - delete arg4; - } - { - if (temp8) - delete arg8; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - { - if (temp8) - delete arg8; - } - return NULL; -} - - -static PyObject * StaticBox_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_StaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) wxLI_HORIZONTAL ; - wxString const &arg6_defvalue = wxPyStaticTextNameStr ; - wxString *arg6 = (wxString *) &arg6_defvalue ; - wxStaticLine *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp6 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - { - arg6 = wxString_in_helper(obj5); - if (arg6 == NULL) SWIG_fail; - temp6 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); - { - if (temp6) - delete arg6; - } - return resultobj; - fail: - { - if (temp6) - delete arg6; - } - return NULL; -} - - -static PyObject *_wrap_new_PreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStaticLine *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxStaticLine *)new wxStaticLine(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_StaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStaticLine *arg1 = (wxStaticLine *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxLI_HORIZONTAL ; - wxString const &arg7_defvalue = wxPyStaticTextNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - bool result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_StaticLine_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStaticLine *arg1 = (wxStaticLine *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxStaticLine const *)arg1)->IsVertical(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxStaticLine::GetDefaultSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * StaticLine_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_StaticText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) 0 ; - wxString const &arg7_defvalue = wxPyStaticTextNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - wxStaticText *result; - bool temp3 = False ; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); - { - if (temp3) - delete arg3; - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_new_PreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStaticText *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxStaticText *)new wxStaticText(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_StaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStaticText *arg1 = (wxStaticText *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - wxString *arg4 = 0 ; - wxPoint const &arg5_defvalue = wxDefaultPosition ; - wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; - wxSize const &arg6_defvalue = wxDefaultSize ; - wxSize *arg6 = (wxSize *) &arg6_defvalue ; - long arg7 = (long) 0 ; - wxString const &arg8_defvalue = wxPyStaticTextNameStr ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - bool result; - bool temp4 = False ; - wxPoint temp5 ; - wxSize temp6 ; - bool temp8 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticText, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - { - arg6 = &temp6; - if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; - } - } - if (obj6) { - arg7 = (long) SWIG_AsLong(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp4) - delete arg4; - } - { - if (temp8) - delete arg8; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - { - if (temp8) - delete arg8; - } - return NULL; -} - - -static PyObject * StaticText_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_StaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxBitmap *arg3 = 0 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) 0 ; - wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - wxStaticBitmap *result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_new_PreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStaticBitmap *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxStaticBitmap *)new wxStaticBitmap(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_StaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - wxBitmap *arg4 = 0 ; - wxPoint const &arg5_defvalue = wxDefaultPosition ; - wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; - wxSize const &arg6_defvalue = wxDefaultSize ; - wxSize *arg6 = (wxSize *) &arg6_defvalue ; - long arg7 = (long) 0 ; - wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - bool result; - wxPoint temp5 ; - wxSize temp6 ; - bool temp8 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg4 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - { - arg6 = &temp6; - if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; - } - } - if (obj6) { - arg7 = (long) SWIG_AsLong(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp8) - delete arg8; - } - return resultobj; - fail: - { - if (temp8) - delete arg8; - } - return NULL; -} - - -static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; - wxBitmap result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetBitmap(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxBitmap * resultptr; - resultptr = new wxBitmap((wxBitmap &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; - wxBitmap *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bitmap", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetBitmap((wxBitmap const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; - wxIcon *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "icon", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetIcon((wxIcon const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * StaticBitmap_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_ListBoxNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_ListBoxNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_ListBox(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; - wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; - long arg6 = (long) 0 ; - wxValidator const &arg7_defvalue = wxDefaultValidator ; - wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; - wxString const &arg8_defvalue = wxPyListBoxNameStr ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - wxListBox *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp5 = False ; - bool temp8 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - if (! PySequence_Check(obj4)) { - PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); - SWIG_fail; - } - arg5 = new wxArrayString; - temp5 = True; - int i, len=PySequence_Length(obj4); - for (i=0; iAdd(Py2wxString(str)); - Py_DECREF(item); - Py_DECREF(str); - } - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg7 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); - { - if (temp5) delete arg5; - } - { - if (temp8) - delete arg8; - } - return resultobj; - fail: - { - if (temp5) delete arg5; - } - { - if (temp8) - delete arg8; - } - return NULL; -} - - -static PyObject *_wrap_new_PreListBox(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListBox *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxListBox *)new wxListBox(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListBox *arg1 = (wxListBox *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; - wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; - long arg7 = (long) 0 ; - wxValidator const &arg8_defvalue = wxDefaultValidator ; - wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; - wxString const &arg9_defvalue = wxPyListBoxNameStr ; - wxString *arg9 = (wxString *) &arg9_defvalue ; - bool result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp6 = False ; - bool temp9 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - { - if (! PySequence_Check(obj5)) { - PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); - SWIG_fail; - } - arg6 = new wxArrayString; - temp6 = True; - int i, len=PySequence_Length(obj5); - for (i=0; iAdd(Py2wxString(str)); - Py_DECREF(item); - Py_DECREF(str); - } - } - } - if (obj6) { - arg7 = (long) SWIG_AsLong(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg8 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj8) { - { - arg9 = wxString_in_helper(obj8); - if (arg9 == NULL) SWIG_fail; - temp9 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp6) delete arg6; - } - { - if (temp9) - delete arg9; - } - return resultobj; - fail: - { - if (temp6) delete arg6; - } - { - if (temp9) - delete arg9; - } - return NULL; -} - - -static PyObject *_wrap_ListBox_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListBox *arg1 = (wxListBox *) 0 ; - wxString *arg2 = 0 ; - int arg3 ; - PyObject *arg4 = (PyObject *) NULL ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - arg4 = obj3; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListBox *arg1 = (wxListBox *) 0 ; - wxArrayString *arg2 = 0 ; - int arg3 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "items",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - if (! PySequence_Check(obj1)) { - PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); - SWIG_fail; - } - arg2 = new wxArrayString; - temp2 = True; - int i, len=PySequence_Length(obj1); - for (i=0; iAdd(Py2wxString(str)); - Py_DECREF(item); - Py_DECREF(str); - } - } - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->InsertItems((wxArrayString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) delete arg2; - } - return resultobj; - fail: - { - if (temp2) delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListBox *arg1 = (wxListBox *) 0 ; - wxArrayString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "items", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - if (! PySequence_Check(obj1)) { - PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); - SWIG_fail; - } - arg2 = new wxArrayString; - temp2 = True; - int i, len=PySequence_Length(obj1); - for (i=0; iAdd(Py2wxString(str)); - Py_DECREF(item); - Py_DECREF(str); - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Set((wxArrayString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) delete arg2; - } - return resultobj; - fail: - { - if (temp2) delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListBox *arg1 = (wxListBox *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxListBox const *)arg1)->IsSelected(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListBox *arg1 = (wxListBox *) 0 ; - int arg2 ; - bool arg3 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n",(char *) "select", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSelection(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListBox_Select(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListBox *arg1 = (wxListBox *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Select(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListBox *arg1 = (wxListBox *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Deselect(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListBox_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListBox *arg1 = (wxListBox *) 0 ; - int arg2 = (int) -1 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "itemToLeaveSelected", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DeselectAll(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListBox *arg1 = (wxListBox *) 0 ; - wxString *arg2 = 0 ; - bool arg3 = (bool) True ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "s",(char *) "select", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListBox *arg1 = (wxListBox *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxListBox_GetSelections(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListBox *arg1 = (wxListBox *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFirstItem(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListBox *arg1 = (wxListBox *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "s", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFirstItem((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ListBox_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListBox *arg1 = (wxListBox *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->EnsureVisible(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListBox *arg1 = (wxListBox *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "s", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AppendAndEnsureVisible((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ListBox_IsSorted(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListBox *arg1 = (wxListBox *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxListBox const *)arg1)->IsSorted(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListBox *arg1 = (wxListBox *) 0 ; - int arg2 ; - wxColour *arg3 = 0 ; - wxColour temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "c", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = &temp3; - if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListBox *arg1 = (wxListBox *) 0 ; - int arg2 ; - wxColour *arg3 = 0 ; - wxColour temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "c", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = &temp3; - if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListBox_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListBox *arg1 = (wxListBox *) 0 ; - int arg2 ; - wxFont *arg3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "f", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; - wxVisualAttributes result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "variant", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (wxWindowVariant) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxListBox::GetClassDefaultAttributes((wxWindowVariant )arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxVisualAttributes * resultptr; - resultptr = new wxVisualAttributes((wxVisualAttributes &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * ListBox_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_CheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; - wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; - long arg6 = (long) 0 ; - wxValidator const &arg7_defvalue = wxDefaultValidator ; - wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; - wxString const &arg8_defvalue = wxPyListBoxNameStr ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - wxCheckListBox *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp5 = False ; - bool temp8 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - if (! PySequence_Check(obj4)) { - PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); - SWIG_fail; - } - arg5 = new wxArrayString; - temp5 = True; - int i, len=PySequence_Length(obj4); - for (i=0; iAdd(Py2wxString(str)); - Py_DECREF(item); - Py_DECREF(str); - } - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg7 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); - { - if (temp5) delete arg5; - } - { - if (temp8) - delete arg8; - } - return resultobj; - fail: - { - if (temp5) delete arg5; - } - { - if (temp8) - delete arg8; - } - return NULL; -} - - -static PyObject *_wrap_new_PreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCheckListBox *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxCheckListBox *)new wxCheckListBox(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; - wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; - long arg7 = (long) 0 ; - wxValidator const &arg8_defvalue = wxDefaultValidator ; - wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; - wxString const &arg9_defvalue = wxPyListBoxNameStr ; - wxString *arg9 = (wxString *) &arg9_defvalue ; - bool result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp6 = False ; - bool temp9 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - { - if (! PySequence_Check(obj5)) { - PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); - SWIG_fail; - } - arg6 = new wxArrayString; - temp6 = True; - int i, len=PySequence_Length(obj5); - for (i=0; iAdd(Py2wxString(str)); - Py_DECREF(item); - Py_DECREF(str); - } - } - } - if (obj6) { - arg7 = (long) SWIG_AsLong(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg8 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj8) { - { - arg9 = wxString_in_helper(obj8); - if (arg9 == NULL) SWIG_fail; - temp9 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp6) delete arg6; - } - { - if (temp9) - delete arg9; - } - return resultobj; - fail: - { - if (temp6) delete arg6; - } - { - if (temp9) - delete arg9; - } - return NULL; -} - - -static PyObject *_wrap_CheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "index", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->IsChecked(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; - int arg2 ; - int arg3 = (int) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "index",(char *) "check", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Check(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckListBox_GetItemHeight",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetItemHeight(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CheckListBox_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; - wxPoint *arg2 = 0 ; - int result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; - int arg2 ; - int arg3 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * CheckListBox_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_TextCtrlNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_TextCtrlNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_TextAttr__SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxTextAttr *result; - - if(!PyArg_ParseTuple(args,(char *)":new_TextAttr")) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxTextAttr *)new wxTextAttr(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_TextAttr__SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxColour *arg1 = 0 ; - wxColour const &arg2_defvalue = wxNullColour ; - wxColour *arg2 = (wxColour *) &arg2_defvalue ; - wxFont const &arg3_defvalue = wxNullFont ; - wxFont *arg3 = (wxFont *) &arg3_defvalue ; - int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ; - wxTextAttr *result; - wxColour temp1 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"O|OOO:new_TextAttr",&obj0,&obj1,&obj2,&obj3)) goto fail; - { - arg1 = &temp1; - if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; - } - if (obj1) { - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - } - if (obj2) { - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj3) { - arg4 = (wxTextAttrAlignment) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_TextAttr(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 4); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if (argc == 0) { - return _wrap_new_TextAttr__SWIG_0(self,args); - } - if ((argc >= 1) && (argc <= 4)) { - int _v; - { - _v = wxColour_typecheck(argv[0]); - } - if (_v) { - if (argc <= 1) { - return _wrap_new_TextAttr__SWIG_1(self,args); - } - { - _v = wxColour_typecheck(argv[1]); - } - if (_v) { - if (argc <= 2) { - return _wrap_new_TextAttr__SWIG_1(self,args); - } - { - void *ptr; - if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxFont, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - if (argc <= 3) { - return _wrap_new_TextAttr__SWIG_1(self,args); - } - _v = SWIG_CheckInt(argv[3]); - if (_v) { - return _wrap_new_TextAttr__SWIG_1(self,args); - } - } - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TextAttr'"); - return NULL; -} - - -static PyObject *_wrap_delete_TextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_Init(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Init(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colText", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetTextColour((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colBack", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetBackgroundColour((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - wxFont *arg2 = 0 ; - long arg3 = (long) wxTEXT_ATTR_FONT ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "font",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if (obj2) { - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFont((wxFont const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "alignment", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxTextAttrAlignment) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetAlignment((wxTextAttrAlignment )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_SetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - wxArrayInt *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "tabs", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - if (! PySequence_Check(obj1)) { - PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); - SWIG_fail; - } - arg2 = new wxArrayInt; - temp2 = True; - int i, len=PySequence_Length(obj1); - for (i=0; iAdd(PyInt_AS_LONG(number)); - Py_DECREF(item); - Py_DECREF(number); - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetTabs((wxArrayInt const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) delete arg2; - } - return resultobj; - fail: - { - if (temp2) delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "indent", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetLeftIndent(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "indent", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetRightIndent(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFlags(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTextAttr const *)arg1)->HasTextColour(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTextAttr const *)arg1)->HasFont(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_HasAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTextAttr const *)arg1)->HasAlignment(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_HasTabs(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTextAttr const *)arg1)->HasTabs(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTextAttr const *)arg1)->HasRightIndent(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - long arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - wxColour *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour(); - result = (wxColour *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - wxColour *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour(); - result = (wxColour *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - wxFont *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont(); - result = (wxFont *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxFont* resultptr = new wxFont(*result); - resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxTextAttr const *)arg1)->GetAlignment(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_GetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - wxArrayInt *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs(); - result = (wxArrayInt *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = PyList_New(0); - size_t idx; - for (idx = 0; idx < result->GetCount(); idx += 1) { - PyObject* val = PyInt_FromLong( result->Item(idx) ); - PyList_Append(resultobj, val); - Py_DECREF(val); - } - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxTextAttr const *)arg1)->GetLeftIndent(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxTextAttr const *)arg1)->GetRightIndent(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxTextAttr const *)arg1)->GetFlags(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = (wxTextAttr *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTextAttr const *)arg1)->IsDefault(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextAttr *arg1 = 0 ; - wxTextAttr *arg2 = 0 ; - wxTextCtrl *arg3 = (wxTextCtrl *) 0 ; - wxTextAttr result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "attr",(char *) "attrDef",(char *) "text", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTextAttr * resultptr; - resultptr = new wxTextAttr((wxTextAttr &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTextAttr, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * TextAttr_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_TextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) 0 ; - wxValidator const &arg7_defvalue = wxDefaultValidator ; - wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; - wxString const &arg8_defvalue = wxPyTextCtrlNameStr ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - wxTextCtrl *result; - bool temp3 = False ; - wxPoint temp4 ; - wxSize temp5 ; - bool temp8 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg7 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp3) - delete arg3; - } - { - if (temp8) - delete arg8; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp8) - delete arg8; - } - return NULL; -} - - -static PyObject *_wrap_new_PreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxTextCtrl *)new wxTextCtrl(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - wxString const &arg4_defvalue = wxPyEmptyString ; - wxString *arg4 = (wxString *) &arg4_defvalue ; - wxPoint const &arg5_defvalue = wxDefaultPosition ; - wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; - wxSize const &arg6_defvalue = wxDefaultSize ; - wxSize *arg6 = (wxSize *) &arg6_defvalue ; - long arg7 = (long) 0 ; - wxValidator const &arg8_defvalue = wxDefaultValidator ; - wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; - wxString const &arg9_defvalue = wxPyTextCtrlNameStr ; - wxString *arg9 = (wxString *) &arg9_defvalue ; - bool result; - bool temp4 = False ; - wxPoint temp5 ; - wxSize temp6 ; - bool temp9 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - { - arg6 = &temp6; - if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; - } - } - if (obj6) { - arg7 = (long) SWIG_AsLong(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg8 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj8) { - { - arg9 = wxString_in_helper(obj8); - if (arg9 == NULL) SWIG_fail; - temp9 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp4) - delete arg4; - } - { - if (temp9) - delete arg9; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - { - if (temp9) - delete arg9; - } - return NULL; -} - - -static PyObject *_wrap_TextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxTextCtrl const *)arg1)->GetValue(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "value", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetValue((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_TextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - long arg2 ; - long arg3 ; - wxString result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "from",(char *) "to", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - long arg2 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "lineNo", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - long arg2 ; - wxString result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "lineNo", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxTextCtrl const *)arg1)->GetLineText(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTextCtrl const *)arg1)->IsModified(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTextCtrl const *)arg1)->IsEditable(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - long *arg2 = (long *) 0 ; - long *arg3 = (long *) 0 ; - long temp2 ; - long temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxTextCtrl const *)arg1)->GetStringSelection(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Clear(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - long arg2 ; - long arg3 ; - wxString *arg4 = 0 ; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_TextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - long arg2 ; - long arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "from",(char *) "to", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Remove(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - wxString *arg2 = 0 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "file", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->LoadFile((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_TextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - wxString const &arg2_defvalue = wxPyEmptyString ; - wxString *arg2 = (wxString *) &arg2_defvalue ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "file", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SaveFile((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->MarkDirty(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DiscardEdits(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - unsigned long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "len", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMaxLength(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "text", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->WriteText((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_TextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "text", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AppendText((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - wxKeyEvent *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "event", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - long arg2 ; - long arg3 ; - wxTextAttr *arg4 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg4 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - long arg2 ; - wxTextAttr *arg3 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "position",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetStyle(arg2,*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - wxTextAttr *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - wxTextAttr *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle(); - result = (wxTextAttr *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - long arg2 ; - long arg3 ; - long result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - long arg2 ; - long *arg3 = (long *) 0 ; - long *arg4 = (long *) 0 ; - long temp3 ; - long temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos", NULL - }; - - arg3 = &temp3; - arg4 = &temp4; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg4)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ShowPosition(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - wxPoint *arg2 = 0 ; - long *arg3 = (long *) 0 ; - long *arg4 = (long *) 0 ; - int result; - wxPoint temp2 ; - long temp3 ; - long temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - arg3 = &temp3; - arg4 = &temp4; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg4)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Copy(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Cut(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Paste(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTextCtrl const *)arg1)->CanCopy(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTextCtrl const *)arg1)->CanCut(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTextCtrl const *)arg1)->CanPaste(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Undo(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Redo(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTextCtrl const *)arg1)->CanUndo(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTextCtrl const *)arg1)->CanRedo(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetInsertionPoint(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetInsertionPointEnd(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxTextCtrl const *)arg1)->GetLastPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - long arg2 ; - long arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "from",(char *) "to", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSelection(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SelectAll(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "editable", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetEditable(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_ShowNativeCaret(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - bool arg2 = (bool) True ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "show", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_ShowNativeCaret",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->ShowNativeCaret(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_HideNativeCaret(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_HideNativeCaret",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->HideNativeCaret(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "text", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxTextCtrl_write(arg1,(wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_TextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - long arg2 ; - long arg3 ; - wxString result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "from",(char *) "to", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxTextCtrl_GetString(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * TextCtrl_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_TextUrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - wxMouseEvent *arg2 = 0 ; - long arg3 ; - long arg4 ; - wxTextUrlEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (long) SWIG_AsLong(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextUrlEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; - wxMouseEvent *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent(); - result = (wxMouseEvent *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseEvent, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * TextUrlEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_ScrollBarNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_ScrollBarNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_ScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) -1 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) wxSB_HORIZONTAL ; - wxValidator const &arg6_defvalue = wxDefaultValidator ; - wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; - wxString const &arg7_defvalue = wxPyScrollBarNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - wxScrollBar *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg6 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_new_PreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrollBar *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxScrollBar *)new wxScrollBar(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrollBar *arg1 = (wxScrollBar *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 = (int) -1 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxSB_HORIZONTAL ; - wxValidator const &arg7_defvalue = wxDefaultValidator ; - wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; - wxString const &arg8_defvalue = wxPyScrollBarNameStr ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - bool result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp8 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg7 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp8) - delete arg8; - } - return resultobj; - fail: - { - if (temp8) - delete arg8; - } - return NULL; -} - - -static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrollBar *arg1 = (wxScrollBar *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxScrollBar const *)arg1)->GetThumbPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrollBar *arg1 = (wxScrollBar *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxScrollBar const *)arg1)->GetThumbSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrollBar *arg1 = (wxScrollBar *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxScrollBar const *)arg1)->GetPageSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrollBar *arg1 = (wxScrollBar *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxScrollBar const *)arg1)->GetRange(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrollBar *arg1 = (wxScrollBar *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxScrollBar const *)arg1)->IsVertical(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrollBar *arg1 = (wxScrollBar *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "viewStart", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetThumbPosition(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrollBar *arg1 = (wxScrollBar *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - bool arg6 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - if (obj5) { - arg6 = (bool) SWIG_AsBool(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * ScrollBar_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_SPIN_BUTTON_NAME_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only."); - return 1; -} - - -static PyObject *_wrap_SPIN_BUTTON_NAME_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_SpinCtrlNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_SpinCtrlNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_SpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) -1 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) wxSP_HORIZONTAL ; - wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ; - wxString *arg6 = (wxString *) &arg6_defvalue ; - wxSpinButton *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp6 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - { - arg6 = wxString_in_helper(obj5); - if (arg6 == NULL) SWIG_fail; - temp6 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); - { - if (temp6) - delete arg6; - } - return resultobj; - fail: - { - if (temp6) - delete arg6; - } - return NULL; -} - - -static PyObject *_wrap_new_PreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSpinButton *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSpinButton *)new wxSpinButton(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSpinButton *arg1 = (wxSpinButton *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 = (int) -1 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxSP_HORIZONTAL ; - wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - bool result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_SpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSpinButton *arg1 = (wxSpinButton *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSpinButton const *)arg1)->GetValue(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSpinButton *arg1 = (wxSpinButton *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSpinButton const *)arg1)->GetMin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSpinButton *arg1 = (wxSpinButton *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSpinButton const *)arg1)->GetMax(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSpinButton *arg1 = (wxSpinButton *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "val", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetValue(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SpinButton_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSpinButton *arg1 = (wxSpinButton *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "minVal", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMin(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SpinButton_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSpinButton *arg1 = (wxSpinButton *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "maxVal", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMax(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSpinButton *arg1 = (wxSpinButton *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "minVal",(char *) "maxVal", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetRange(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SpinButton_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSpinButton *arg1 = (wxSpinButton *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxSpinButton const *)arg1)->IsVertical(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * SpinButton_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_SpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) -1 ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxSP_ARROW_KEYS ; - int arg7 = (int) 0 ; - int arg8 = (int) 100 ; - int arg9 = (int) 0 ; - wxString const &arg10_defvalue = wxPySpinCtrlNameStr ; - wxString *arg10 = (wxString *) &arg10_defvalue ; - wxSpinCtrl *result; - bool temp3 = False ; - wxPoint temp4 ; - wxSize temp5 ; - bool temp10 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - PyObject * obj9 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - arg7 = (int) SWIG_AsInt(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - arg8 = (int) SWIG_AsInt(obj7); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj8) { - arg9 = (int) SWIG_AsInt(obj8); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj9) { - { - arg10 = wxString_in_helper(obj9); - if (arg10 == NULL) SWIG_fail; - temp10 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); - { - if (temp3) - delete arg3; - } - { - if (temp10) - delete arg10; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp10) - delete arg10; - } - return NULL; -} - - -static PyObject *_wrap_new_PreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSpinCtrl *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSpinCtrl *)new wxSpinCtrl(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 = (int) -1 ; - wxString const &arg4_defvalue = wxPyEmptyString ; - wxString *arg4 = (wxString *) &arg4_defvalue ; - wxPoint const &arg5_defvalue = wxDefaultPosition ; - wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; - wxSize const &arg6_defvalue = wxDefaultSize ; - wxSize *arg6 = (wxSize *) &arg6_defvalue ; - long arg7 = (long) wxSP_ARROW_KEYS ; - int arg8 = (int) 0 ; - int arg9 = (int) 100 ; - int arg10 = (int) 0 ; - wxString const &arg11_defvalue = wxPySpinCtrlNameStr ; - wxString *arg11 = (wxString *) &arg11_defvalue ; - bool result; - bool temp4 = False ; - wxPoint temp5 ; - wxSize temp6 ; - bool temp11 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - PyObject * obj9 = 0 ; - PyObject * obj10 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - { - arg6 = &temp6; - if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; - } - } - if (obj6) { - arg7 = (long) SWIG_AsLong(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - arg8 = (int) SWIG_AsInt(obj7); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj8) { - arg9 = (int) SWIG_AsInt(obj8); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj9) { - arg10 = (int) SWIG_AsInt(obj9); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj10) { - { - arg11 = wxString_in_helper(obj10); - if (arg11 == NULL) SWIG_fail; - temp11 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp4) - delete arg4; - } - { - if (temp11) - delete arg11; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - { - if (temp11) - delete arg11; - } - return NULL; -} - - -static PyObject *_wrap_SpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSpinCtrl const *)arg1)->GetValue(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "value", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetValue(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "text", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetValue((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_SpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "minVal",(char *) "maxVal", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetRange(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSpinCtrl const *)arg1)->GetMin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSpinCtrl const *)arg1)->GetMax(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; - long arg2 ; - long arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "from",(char *) "to", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSelection(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * SpinCtrl_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_SpinEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEventType arg1 = (wxEventType) wxEVT_NULL ; - int arg2 = (int) 0 ; - wxSpinEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "commandType",(char *) "winid", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (wxEventType) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SpinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSpinEvent const *)arg1)->GetPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SpinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPosition(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * SpinEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_RadioBoxNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_RadioBoxNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_RadioButtonNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_RadioButtonNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_RadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; - wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; - int arg7 = (int) 0 ; - long arg8 = (long) wxRA_HORIZONTAL ; - wxValidator const &arg9_defvalue = wxDefaultValidator ; - wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; - wxString const &arg10_defvalue = wxPyRadioBoxNameStr ; - wxString *arg10 = (wxString *) &arg10_defvalue ; - wxRadioBox *result; - bool temp3 = False ; - wxPoint temp4 ; - wxSize temp5 ; - bool temp6 = False ; - bool temp10 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - PyObject * obj9 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - { - if (! PySequence_Check(obj5)) { - PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); - SWIG_fail; - } - arg6 = new wxArrayString; - temp6 = True; - int i, len=PySequence_Length(obj5); - for (i=0; iAdd(Py2wxString(str)); - Py_DECREF(item); - Py_DECREF(str); - } - } - } - if (obj6) { - arg7 = (int) SWIG_AsInt(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - arg8 = (long) SWIG_AsLong(obj7); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj8) { - if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg9 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj9) { - { - arg10 = wxString_in_helper(obj9); - if (arg10 == NULL) SWIG_fail; - temp10 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxRadioBox *)new wxRadioBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); - { - if (temp3) - delete arg3; - } - { - if (temp6) delete arg6; - } - { - if (temp10) - delete arg10; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp6) delete arg6; - } - { - if (temp10) - delete arg10; - } - return NULL; -} - - -static PyObject *_wrap_new_PreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRadioBox *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxRadioBox *)new wxRadioBox(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRadioBox *arg1 = (wxRadioBox *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - wxString *arg4 = 0 ; - wxPoint const &arg5_defvalue = wxDefaultPosition ; - wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; - wxSize const &arg6_defvalue = wxDefaultSize ; - wxSize *arg6 = (wxSize *) &arg6_defvalue ; - wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; - wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; - int arg8 = (int) 0 ; - long arg9 = (long) wxRA_HORIZONTAL ; - wxValidator const &arg10_defvalue = wxDefaultValidator ; - wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; - wxString const &arg11_defvalue = wxPyRadioBoxNameStr ; - wxString *arg11 = (wxString *) &arg11_defvalue ; - bool result; - bool temp4 = False ; - wxPoint temp5 ; - wxSize temp6 ; - bool temp7 = False ; - bool temp11 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - PyObject * obj9 = 0 ; - PyObject * obj10 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - { - arg6 = &temp6; - if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; - } - } - if (obj6) { - { - if (! PySequence_Check(obj6)) { - PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); - SWIG_fail; - } - arg7 = new wxArrayString; - temp7 = True; - int i, len=PySequence_Length(obj6); - for (i=0; iAdd(Py2wxString(str)); - Py_DECREF(item); - Py_DECREF(str); - } - } - } - if (obj7) { - arg8 = (int) SWIG_AsInt(obj7); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj8) { - arg9 = (long) SWIG_AsLong(obj8); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj9) { - if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg10 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj10) { - { - arg11 = wxString_in_helper(obj10); - if (arg11 == NULL) SWIG_fail; - temp11 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxArrayString const &)*arg7,arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp4) - delete arg4; - } - { - if (temp7) delete arg7; - } - { - if (temp11) - delete arg11; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - { - if (temp7) delete arg7; - } - { - if (temp11) - delete arg11; - } - return NULL; -} - - -static PyObject *_wrap_RadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRadioBox *arg1 = (wxRadioBox *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSelection(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRadioBox *arg1 = (wxRadioBox *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxRadioBox const *)arg1)->GetSelection(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRadioBox *arg1 = (wxRadioBox *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxRadioBox const *)arg1)->GetStringSelection(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRadioBox *arg1 = (wxRadioBox *) 0 ; - wxString *arg2 = 0 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "s", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_RadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRadioBox *arg1 = (wxRadioBox *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxRadioBox const *)arg1)->GetCount(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRadioBox *arg1 = (wxRadioBox *) 0 ; - wxString *arg2 = 0 ; - int result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "s", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_RadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRadioBox *arg1 = (wxRadioBox *) 0 ; - int arg2 ; - wxString result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxRadioBox const *)arg1)->GetString(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RadioBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRadioBox *arg1 = (wxRadioBox *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n",(char *) "label", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetString(arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_RadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRadioBox *arg1 = (wxRadioBox *) 0 ; - int arg2 ; - bool arg3 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n",(char *) "enable", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Enable(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRadioBox *arg1 = (wxRadioBox *) 0 ; - int arg2 ; - bool arg3 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n",(char *) "show", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Show(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRadioBox *arg1 = (wxRadioBox *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxRadioBox const *)arg1)->GetColumnCount(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RadioBox_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRadioBox *arg1 = (wxRadioBox *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxRadioBox const *)arg1)->GetRowCount(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RadioBox_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRadioBox *arg1 = (wxRadioBox *) 0 ; - int arg2 ; - int arg3 ; - long arg4 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (wxDirection) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (long) SWIG_AsLong(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,(wxDirection )arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * RadioBox_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_RadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) 0 ; - wxValidator const &arg7_defvalue = wxDefaultValidator ; - wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; - wxString const &arg8_defvalue = wxPyRadioButtonNameStr ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - wxRadioButton *result; - bool temp3 = False ; - wxPoint temp4 ; - wxSize temp5 ; - bool temp8 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg7 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); - { - if (temp3) - delete arg3; - } - { - if (temp8) - delete arg8; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp8) - delete arg8; - } - return NULL; -} - - -static PyObject *_wrap_new_PreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRadioButton *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxRadioButton *)new wxRadioButton(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRadioButton *arg1 = (wxRadioButton *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - wxString *arg4 = 0 ; - wxPoint const &arg5_defvalue = wxDefaultPosition ; - wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; - wxSize const &arg6_defvalue = wxDefaultSize ; - wxSize *arg6 = (wxSize *) &arg6_defvalue ; - long arg7 = (long) 0 ; - wxValidator const &arg8_defvalue = wxDefaultValidator ; - wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; - wxString const &arg9_defvalue = wxPyRadioButtonNameStr ; - wxString *arg9 = (wxString *) &arg9_defvalue ; - bool result; - bool temp4 = False ; - wxPoint temp5 ; - wxSize temp6 ; - bool temp9 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - { - arg6 = &temp6; - if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; - } - } - if (obj6) { - arg7 = (long) SWIG_AsLong(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg8 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj8) { - { - arg9 = wxString_in_helper(obj8); - if (arg9 == NULL) SWIG_fail; - temp9 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp4) - delete arg4; - } - { - if (temp9) - delete arg9; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - { - if (temp9) - delete arg9; - } - return NULL; -} - - -static PyObject *_wrap_RadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRadioButton *arg1 = (wxRadioButton *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetValue(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRadioButton *arg1 = (wxRadioButton *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "value", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetValue(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * RadioButton_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_SliderNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_SliderNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_Slider(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - wxPoint const &arg6_defvalue = wxDefaultPosition ; - wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; - wxSize const &arg7_defvalue = wxDefaultSize ; - wxSize *arg7 = (wxSize *) &arg7_defvalue ; - long arg8 = (long) wxSL_HORIZONTAL ; - wxValidator const &arg9_defvalue = wxDefaultValidator ; - wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; - wxString const &arg10_defvalue = wxPySliderNameStr ; - wxString *arg10 = (wxString *) &arg10_defvalue ; - wxSlider *result; - wxPoint temp6 ; - wxSize temp7 ; - bool temp10 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - PyObject * obj9 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - if (obj5) { - { - arg6 = &temp6; - if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; - } - } - if (obj6) { - { - arg7 = &temp7; - if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; - } - } - if (obj7) { - arg8 = (long) SWIG_AsLong(obj7); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj8) { - if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg9 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj9) { - { - arg10 = wxString_in_helper(obj9); - if (arg10 == NULL) SWIG_fail; - temp10 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); - { - if (temp10) - delete arg10; - } - return resultobj; - fail: - { - if (temp10) - delete arg10; - } - return NULL; -} - - -static PyObject *_wrap_new_PreSlider(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSlider *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSlider *)new wxSlider(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Slider_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSlider *arg1 = (wxSlider *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - wxPoint const &arg7_defvalue = wxDefaultPosition ; - wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; - wxSize const &arg8_defvalue = wxDefaultSize ; - wxSize *arg8 = (wxSize *) &arg8_defvalue ; - long arg9 = (long) wxSL_HORIZONTAL ; - wxValidator const &arg10_defvalue = wxDefaultValidator ; - wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; - wxString const &arg11_defvalue = wxPySliderNameStr ; - wxString *arg11 = (wxString *) &arg11_defvalue ; - bool result; - wxPoint temp7 ; - wxSize temp8 ; - bool temp11 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - PyObject * obj9 = 0 ; - PyObject * obj10 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|OOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - arg6 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - if (obj6) { - { - arg7 = &temp7; - if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; - } - } - if (obj7) { - { - arg8 = &temp8; - if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail; - } - } - if (obj8) { - arg9 = (long) SWIG_AsLong(obj8); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj9) { - if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg10 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj10) { - { - arg11 = wxString_in_helper(obj10); - if (arg11 == NULL) SWIG_fail; - temp11 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp11) - delete arg11; - } - return resultobj; - fail: - { - if (temp11) - delete arg11; - } - return NULL; -} - - -static PyObject *_wrap_Slider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSlider *arg1 = (wxSlider *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSlider const *)arg1)->GetValue(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Slider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSlider *arg1 = (wxSlider *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "value", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetValue(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Slider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSlider *arg1 = (wxSlider *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "minValue",(char *) "maxValue", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetRange(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Slider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSlider *arg1 = (wxSlider *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSlider const *)arg1)->GetMin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Slider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSlider *arg1 = (wxSlider *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSlider const *)arg1)->GetMax(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Slider_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSlider *arg1 = (wxSlider *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "minValue", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMin(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Slider_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSlider *arg1 = (wxSlider *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "maxValue", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMax(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Slider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSlider *arg1 = (wxSlider *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "lineSize", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetLineSize(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Slider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSlider *arg1 = (wxSlider *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pageSize", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPageSize(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Slider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSlider *arg1 = (wxSlider *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSlider const *)arg1)->GetLineSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Slider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSlider *arg1 = (wxSlider *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSlider const *)arg1)->GetPageSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Slider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSlider *arg1 = (wxSlider *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "lenPixels", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetThumbLength(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Slider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSlider *arg1 = (wxSlider *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSlider const *)arg1)->GetThumbLength(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Slider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSlider *arg1 = (wxSlider *) 0 ; - int arg2 ; - int arg3 = (int) 1 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetTickFreq(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Slider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSlider *arg1 = (wxSlider *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSlider const *)arg1)->GetTickFreq(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Slider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSlider *arg1 = (wxSlider *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ClearTicks(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Slider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSlider *arg1 = (wxSlider *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "tickPos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetTick(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Slider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSlider *arg1 = (wxSlider *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ClearSel(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Slider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSlider *arg1 = (wxSlider *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSlider const *)arg1)->GetSelEnd(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Slider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSlider *arg1 = (wxSlider *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSlider const *)arg1)->GetSelStart(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Slider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSlider *arg1 = (wxSlider *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "min",(char *) "max", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSelection(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * Slider_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_ToggleButtonNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_ToggleButtonNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_ToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) 0 ; - wxValidator const &arg7_defvalue = wxDefaultValidator ; - wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; - wxString const &arg8_defvalue = wxPyToggleButtonNameStr ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - wxToggleButton *result; - bool temp3 = False ; - wxPoint temp4 ; - wxSize temp5 ; - bool temp8 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg7 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); - { - if (temp3) - delete arg3; - } - { - if (temp8) - delete arg8; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp8) - delete arg8; - } - return NULL; -} - - -static PyObject *_wrap_new_PreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToggleButton *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxToggleButton *)new wxToggleButton(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToggleButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToggleButton *arg1 = (wxToggleButton *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - wxString *arg4 = 0 ; - wxPoint const &arg5_defvalue = wxDefaultPosition ; - wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; - wxSize const &arg6_defvalue = wxDefaultSize ; - wxSize *arg6 = (wxSize *) &arg6_defvalue ; - long arg7 = (long) 0 ; - wxValidator const &arg8_defvalue = wxDefaultValidator ; - wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; - wxString const &arg9_defvalue = wxPyToggleButtonNameStr ; - wxString *arg9 = (wxString *) &arg9_defvalue ; - bool result; - bool temp4 = False ; - wxPoint temp5 ; - wxSize temp6 ; - bool temp9 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - { - arg6 = &temp6; - if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; - } - } - if (obj6) { - arg7 = (long) SWIG_AsLong(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg8 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj8) { - { - arg9 = wxString_in_helper(obj8); - if (arg9 == NULL) SWIG_fail; - temp9 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp4) - delete arg4; - } - { - if (temp9) - delete arg9; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - { - if (temp9) - delete arg9; - } - return NULL; -} - - -static PyObject *_wrap_ToggleButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToggleButton *arg1 = (wxToggleButton *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "value", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetValue(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToggleButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToggleButton *arg1 = (wxToggleButton *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxToggleButton const *)arg1)->GetValue(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToggleButton_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToggleButton *arg1 = (wxToggleButton *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "label", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetLabel((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject * ToggleButton_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_NOTEBOOK_NAME_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only."); - return 1; -} - - -static PyObject *_wrap_NOTEBOOK_NAME_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_BookCtrl_GetPageCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; - size_t result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetPageCount",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (size_t)((wxBookCtrl const *)arg1)->GetPageCount(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BookCtrl_GetPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; - size_t arg2 ; - wxWindow *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPage",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)(arg1)->GetPage(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BookCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetSelection",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxBookCtrl const *)arg1)->GetSelection(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BookCtrl_SetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; - size_t arg2 ; - wxString *arg3 = 0 ; - bool result; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n",(char *) "strText", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_BookCtrl_GetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; - size_t arg2 ; - wxString result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageText",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxBookCtrl const *)arg1)->GetPageText(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BookCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; - wxImageList *arg2 = (wxImageList *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "imageList", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetImageList(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BookCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; - wxImageList *arg2 = (wxImageList *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "imageList", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, - SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AssignImageList(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BookCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; - wxImageList *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetImageList",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxImageList *)((wxBookCtrl const *)arg1)->GetImageList(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BookCtrl_GetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; - size_t arg2 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageImage",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxBookCtrl const *)arg1)->GetPageImage(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BookCtrl_SetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; - size_t arg2 ; - int arg3 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n",(char *) "imageId", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetPageImage(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BookCtrl_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; - wxSize *arg2 = 0 ; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetPageSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPageSize((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BookCtrl_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; - wxSize *arg2 = 0 ; - wxSize result; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sizePage", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxBookCtrl const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BookCtrl_DeletePage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; - size_t arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_DeletePage",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->DeletePage(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BookCtrl_RemovePage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; - size_t arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_RemovePage",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->RemovePage(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BookCtrl_DeleteAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_DeleteAllPages",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->DeleteAllPages(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BookCtrl_AddPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - wxString *arg3 = 0 ; - bool arg4 = (bool) False ; - int arg5 = (int) -1 ; - bool result; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrl_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - arg4 = (bool) SWIG_AsBool(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_BookCtrl_InsertPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; - size_t arg2 ; - wxWindow *arg3 = (wxWindow *) 0 ; - wxString *arg4 = 0 ; - bool arg5 = (bool) False ; - int arg6 = (int) -1 ; - bool result; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrl_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - if (obj4) { - arg5 = (bool) SWIG_AsBool(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - arg6 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_BookCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; - size_t arg2 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetSelection",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->SetSelection(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BookCtrl_AdvanceSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; - bool arg2 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "forward", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrl_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AdvanceSelection(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * BookCtrl_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrl, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_BookCtrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEventType arg1 = (wxEventType) wxEVT_NULL ; - int arg2 = (int) 0 ; - int arg3 = (int) -1 ; - int arg4 = (int) -1 ; - wxBookCtrlEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if (obj0) { - arg1 = (wxEventType) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxBookCtrlEvent *)new wxBookCtrlEvent(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BookCtrlEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetSelection",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxBookCtrlEvent const *)arg1)->GetSelection(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BookCtrlEvent_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "nSel", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSelection(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BookCtrlEvent_GetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetOldSelection",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxBookCtrlEvent const *)arg1)->GetOldSelection(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BookCtrlEvent_SetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "nOldSel", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetOldSelection(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * BookCtrlEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Notebook(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) -1 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) 0 ; - wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ; - wxString *arg6 = (wxString *) &arg6_defvalue ; - wxNotebook *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp6 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - { - arg6 = wxString_in_helper(obj5); - if (arg6 == NULL) SWIG_fail; - temp6 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp6) - delete arg6; - } - return resultobj; - fail: - { - if (temp6) - delete arg6; - } - return NULL; -} - - -static PyObject *_wrap_new_PreNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNotebook *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxNotebook *)new wxNotebook(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Notebook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNotebook *arg1 = (wxNotebook *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) 0 ; - wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - bool result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_Notebook_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNotebook *arg1 = (wxNotebook *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxNotebook const *)arg1)->GetRowCount(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Notebook_SetPadding(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNotebook *arg1 = (wxNotebook *) 0 ; - wxSize *arg2 = 0 ; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "padding", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPadding((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Notebook_SetTabSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNotebook *arg1 = (wxNotebook *) 0 ; - wxSize *arg2 = 0 ; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetTabSize((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Notebook_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNotebook *arg1 = (wxNotebook *) 0 ; - wxPoint *arg2 = 0 ; - long *arg3 = (long *) 0 ; - int result; - wxPoint temp2 ; - long temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNotebook *arg1 = (wxNotebook *) 0 ; - wxSize *arg2 = 0 ; - wxSize result; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sizePage", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Notebook_ApplyThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNotebook *arg1 = (wxNotebook *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - wxColour *arg3 = 0 ; - wxColour temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "window",(char *) "colour", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Notebook_ApplyThemeBackground",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg3 = &temp3; - if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ApplyThemeBackground(arg2,(wxColour const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * Notebook_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_NotebookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEventType arg1 = (wxEventType) wxEVT_NULL ; - int arg2 = (int) 0 ; - int arg3 = (int) -1 ; - int arg4 = (int) -1 ; - wxNotebookEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if (obj0) { - arg1 = (wxEventType) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * NotebookEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Listbook(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) -1 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) 0 ; - wxString const &arg6_defvalue = wxPyEmptyString ; - wxString *arg6 = (wxString *) &arg6_defvalue ; - wxListbook *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp6 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - { - arg6 = wxString_in_helper(obj5); - if (arg6 == NULL) SWIG_fail; - temp6 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); - { - if (temp6) - delete arg6; - } - return resultobj; - fail: - { - if (temp6) - delete arg6; - } - return NULL; -} - - -static PyObject *_wrap_new_PreListbook(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListbook *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxListbook *)new wxListbook(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Listbook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListbook *arg1 = (wxListbook *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) 0 ; - wxString const &arg7_defvalue = wxPyEmptyString ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - bool result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_Listbook_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListbook *arg1 = (wxListbook *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxListbook const *)arg1)->IsVertical(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * Listbook_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ListbookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEventType arg1 = (wxEventType) wxEVT_NULL ; - int arg2 = (int) 0 ; - int arg3 = (int) -1 ; - int arg4 = (int) -1 ; - wxListbookEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if (obj0) { - arg1 = (wxEventType) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbookEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * ListbookEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_BookCtrlSizer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; - wxBookCtrlSizer *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "nb", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlSizer, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RecalcSizes(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->CalcMin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; - wxBookCtrl *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxBookCtrl *)(arg1)->GetControl(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrl, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject * BookCtrlSizer_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_NotebookSizer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNotebook *arg1 = (wxNotebook *) 0 ; - wxNotebookSizer *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "nb", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxNotebookSizer *)new wxNotebookSizer(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookSizer, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RecalcSizes(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->CalcMin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; - wxNotebook *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxNotebook *)(arg1)->GetNotebook(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * NotebookSizer_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetId(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - wxControl *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxControl *)(arg1)->GetControl(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - wxToolBarBase *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxToolBarBase *)(arg1)->GetToolBar(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->IsButton(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->IsControl(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->IsSeparator(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetStyle(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetKind(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->IsEnabled(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->IsToggled(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->CanBeToggled(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - wxBitmap *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxBitmap const &_result_ref = (arg1)->GetNormalBitmap(); - result = (wxBitmap *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxBitmap* resultptr = new wxBitmap(*result); - resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - wxBitmap *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap(); - result = (wxBitmap *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxBitmap* resultptr = new wxBitmap(*result); - resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - wxBitmap result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetBitmap(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxBitmap * resultptr; - resultptr = new wxBitmap((wxBitmap &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetLabel(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetShortHelp(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetLongHelp(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - bool arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "enable", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Enable(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Toggle(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - bool arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "toggle", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetToggle(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - wxString *arg2 = 0 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "help", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - wxString *arg2 = 0 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "help", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - wxBitmap *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bmp", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetNormalBitmap((wxBitmap const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - wxBitmap *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bmp", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "label", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetLabel((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Detach(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - wxToolBarBase *arg2 = (wxToolBarBase *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "tbar", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Attach(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxToolBarToolBase_GetClientData(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "clientData", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxToolBarToolBase_SetClientData(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * ToolBarToolBase_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - wxBitmap *arg4 = 0 ; - wxBitmap const &arg5_defvalue = wxNullBitmap ; - wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ; - int arg6 = (int) wxITEM_NORMAL ; - wxString const &arg7_defvalue = wxPyEmptyString ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - wxString const &arg8_defvalue = wxPyEmptyString ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - PyObject *arg9 = (PyObject *) NULL ; - wxToolBarToolBase *result; - bool temp3 = False ; - bool temp7 = False ; - bool temp8 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg4 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if (obj4) { - if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg5 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj5) { - arg6 = (wxItemKind) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - if (obj8) { - arg9 = obj8; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp3) - delete arg3; - } - { - if (temp7) - delete arg7; - } - { - if (temp8) - delete arg8; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp7) - delete arg7; - } - { - if (temp8) - delete arg8; - } - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - size_t arg2 ; - int arg3 ; - wxString *arg4 = 0 ; - wxBitmap *arg5 = 0 ; - wxBitmap const &arg6_defvalue = wxNullBitmap ; - wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ; - int arg7 = (int) wxITEM_NORMAL ; - wxString const &arg8_defvalue = wxPyEmptyString ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - wxString const &arg9_defvalue = wxPyEmptyString ; - wxString *arg9 = (wxString *) &arg9_defvalue ; - PyObject *arg10 = (PyObject *) NULL ; - wxToolBarToolBase *result; - bool temp4 = False ; - bool temp8 = False ; - bool temp9 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - PyObject * obj9 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg5 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if (obj5) { - if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg6 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj6) { - arg7 = (wxItemKind) SWIG_AsInt(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - if (obj8) { - { - arg9 = wxString_in_helper(obj8); - if (arg9 == NULL) SWIG_fail; - temp9 = True; - } - } - if (obj9) { - arg10 = obj9; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,(wxItemKind )arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp4) - delete arg4; - } - { - if (temp8) - delete arg8; - } - { - if (temp9) - delete arg9; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - { - if (temp8) - delete arg8; - } - { - if (temp9) - delete arg9; - } - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ; - wxToolBarToolBase *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "tool", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxToolBarToolBase *)(arg1)->AddTool(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - size_t arg2 ; - wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ; - wxToolBarToolBase *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos",(char *) "tool", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxToolBarToolBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_AddControl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - wxControl *arg2 = (wxControl *) 0 ; - wxToolBarToolBase *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "control", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxToolBarToolBase *)(arg1)->AddControl(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - size_t arg2 ; - wxControl *arg3 = (wxControl *) 0 ; - wxToolBarToolBase *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos",(char *) "control", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_FindControl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int arg2 ; - wxControl *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxControl *)(arg1)->FindControl(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - wxToolBarToolBase *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxToolBarToolBase *)(arg1)->AddSeparator(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - size_t arg2 ; - wxToolBarToolBase *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int arg2 ; - wxToolBarToolBase *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - size_t arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->DeleteToolByPos(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->DeleteTool(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ClearTools(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_Realize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Realize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int arg2 ; - bool arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "enable", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->EnableTool(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int arg2 ; - bool arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "toggle", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ToggleTool(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int arg2 ; - bool arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "toggle", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetToggle(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int arg2 ; - PyObject *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int arg2 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "clientData", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxToolBarBase_SetToolClientData(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int arg2 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetToolState(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetToolEnabled(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "helpString", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int arg2 ; - wxString result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetToolShortHelp(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "helpString", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int arg2 ; - wxString result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetToolLongHelp(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMargins(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - wxSize *arg2 = 0 ; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMargins((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "packing", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetToolPacking(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "separation", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetToolSeparation(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetToolMargins(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetMargins(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetToolPacking(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetToolSeparation(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "nRows", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetRows(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rows",(char *) "cols", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMaxRowsCols(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetMaxRows(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetMaxCols(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - wxSize *arg2 = 0 ; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetToolBitmapSize((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetToolBitmapSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetToolSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int arg2 ; - int arg3 ; - wxToolBarToolBase *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_FindById(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - int arg2 ; - wxToolBarToolBase *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "toolid", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->IsVertical(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * ToolBarBase_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; - wxString const &arg6_defvalue = wxPyToolBarNameStr ; - wxString *arg6 = (wxString *) &arg6_defvalue ; - wxToolBar *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp6 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - { - arg6 = wxString_in_helper(obj5); - if (arg6 == NULL) SWIG_fail; - temp6 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp6) - delete arg6; - } - return resultobj; - fail: - { - if (temp6) - delete arg6; - } - return NULL; -} - - -static PyObject *_wrap_new_PreToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBar *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxToolBar *)new wxToolBar(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBar *arg1 = (wxToolBar *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; - wxString const &arg7_defvalue = wxPyToolBarNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - bool result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolBar *arg1 = (wxToolBar *) 0 ; - int arg2 ; - int arg3 ; - wxToolBarToolBase *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * ToolBar_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_ListCtrlNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_ListCtrlNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_ListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColour const &arg1_defvalue = wxNullColour ; - wxColour *arg1 = (wxColour *) &arg1_defvalue ; - wxColour const &arg2_defvalue = wxNullColour ; - wxColour *arg2 = (wxColour *) &arg2_defvalue ; - wxFont const &arg3_defvalue = wxNullFont ; - wxFont *arg3 = (wxFont *) &arg3_defvalue ; - wxListItemAttr *result; - wxColour temp1 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "colText",(char *) "colBack",(char *) "font", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; - if (obj0) { - { - arg1 = &temp1; - if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; - } - } - if (obj1) { - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - } - if (obj2) { - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colText", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetTextColour((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colBack", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetBackgroundColour((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; - wxFont *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "font", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFont((wxFont const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->HasTextColour(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->HasBackgroundColour(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->HasFont(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; - wxColour result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetTextColour(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; - wxColour result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetBackgroundColour(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; - wxFont result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetFont(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxFont * resultptr; - resultptr = new wxFont((wxFont &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItemAttr_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxListItemAttr_Destroy(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * ListItemAttr_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxListItem *)new wxListItem(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Clear(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ClearAttributes(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "mask", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMask(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetId(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "col", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetColumn(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "state", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetState(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "stateMask", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetStateMask(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "text", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetText((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "image", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetImage(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetData(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "width", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetWidth(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "align", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxListColumnFormat) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetAlign((wxListColumnFormat )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colText", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetTextColour((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colBack", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetBackgroundColour((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - wxFont *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "font", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFont((wxFont const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->GetMask(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->GetId(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetColumn(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->GetState(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = (arg1)->GetText(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetImage(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->GetData(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetWidth(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetAlign(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - wxListItemAttr *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxListItemAttr *)(arg1)->GetAttributes(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->HasAttributes(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - wxColour result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxListItem const *)arg1)->GetTextColour(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - wxColour result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxListItem const *)arg1)->GetBackgroundColour(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - wxFont result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxListItem const *)arg1)->GetFont(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxFont * resultptr; - resultptr = new wxFont((wxFont &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_mask", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_mask = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (long) ((arg1)->m_mask); - - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_itemId", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_itemId = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (long) ((arg1)->m_itemId); - - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_col", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_col = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->m_col); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_state", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_state = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (long) ((arg1)->m_state); - - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_stateMask", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_stateMask = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (long) ((arg1)->m_stateMask); - - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - wxString *arg2 = (wxString *) 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_text", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (arg1) (arg1)->m_text = *arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (wxString *)& ((arg1)->m_text); - - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_image", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_image = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->m_image); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_data = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (long) ((arg1)->m_data); - - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_format", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_format = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->m_format); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_width", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_width = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListItem *arg1 = (wxListItem *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->m_width); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * ListItem_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ListEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEventType arg1 = (wxEventType) wxEVT_NULL ; - int arg2 = (int) 0 ; - wxListEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "commandType",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (wxEventType) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxListEvent *)new wxListEvent(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_code", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_code = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->m_code); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_oldItemIndex", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_oldItemIndex = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (long) ((arg1)->m_oldItemIndex); - - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_itemIndex", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_itemIndex = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (long) ((arg1)->m_itemIndex); - - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_col", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_col = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->m_col); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - wxPoint *arg2 = (wxPoint *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_pointDrag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (arg1) (arg1)->m_pointDrag = *arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - wxPoint *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (wxPoint *)& ((arg1)->m_pointDrag); - - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - wxListItem *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (wxListItem *)& ((arg1)->m_item); - - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetKeyCode(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->GetIndex(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetColumn(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetPoint(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = (arg1)->GetLabel(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = (arg1)->GetText(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetImage(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->GetData(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->GetMask(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - wxListItem *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxListItem const &_result_ref = (arg1)->GetItem(); - result = (wxListItem *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItem, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->GetCacheFrom(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->GetCacheTo(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxListEvent const *)arg1)->IsEditCancelled(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListEvent *arg1 = (wxListEvent *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "editCancelled", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetEditCanceled(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * ListEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) -1 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) wxLC_ICON ; - wxValidator const &arg6_defvalue = wxDefaultValidator ; - wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; - wxString const &arg7_defvalue = wxPyListCtrlNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - wxPyListCtrl *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg6 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_new_PreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyListCtrl *)new wxPyListCtrl(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 = (int) -1 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxLC_ICON ; - wxValidator const &arg7_defvalue = wxDefaultValidator ; - wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; - wxString const &arg8_defvalue = wxPyListCtrlNameStr ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - bool result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp8 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg7 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp8) - delete arg8; - } - return resultobj; - fail: - { - if (temp8) - delete arg8; - } - return NULL; -} - - -static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - wxColour *arg2 = 0 ; - bool result; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "col", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - wxColour *arg2 = 0 ; - bool result; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "col", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - int arg2 ; - wxListItem *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "col", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - int arg2 ; - wxListItem *arg3 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "col",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetColumn(arg2,*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - int arg2 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "col", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - int arg2 ; - int arg3 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "col",(char *) "width", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetColumnWidth(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - wxRect result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyListCtrl const *)arg1)->GetViewRect(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxRect * resultptr; - resultptr = new wxRect((wxRect &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - wxTextCtrl *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetEditControl",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - int arg3 = (int) 0 ; - wxListItem *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "itemId",(char *) "col", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - wxListItem *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "info", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetItem(*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - int arg3 ; - wxString *arg4 = 0 ; - int arg5 = (int) -1 ; - long result; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_ListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - long arg3 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "stateMask", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - long arg3 ; - long arg4 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (long) SWIG_AsLong(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetItemState(arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - int arg3 ; - int arg4 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - wxString result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - wxString *arg3 = 0 ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "str", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetItemText(arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_ListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - long result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - long arg3 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetItemData(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - wxPoint result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxPyListCtrl_GetItemPosition(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - int arg3 = (int) wxLIST_RECT_BOUNDS ; - wxRect result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "code", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxRect * resultptr; - resultptr = new wxRect((wxRect &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - wxPoint *arg3 = 0 ; - bool result; - wxPoint temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxPyListCtrl const *)arg1)->GetItemCount(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyListCtrl const *)arg1)->GetItemSpacing(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - wxColour result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyListCtrl const *)arg1)->GetTextColour(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "col", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetTextColour((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxPyListCtrl const *)arg1)->GetTopItem(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - bool arg3 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "style",(char *) "add", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSingleStyle(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetWindowStyleFlag(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - int arg3 = (int) wxLIST_NEXT_ALL ; - int arg4 = (int) wxLIST_STATE_DONTCARE ; - long result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - int arg2 ; - wxImageList *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "which", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - wxImageList *arg2 = (wxImageList *) 0 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "imageList",(char *) "which", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetImageList(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - wxImageList *arg2 = (wxImageList *) 0 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "imageList",(char *) "which", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, - SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AssignImageList(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_InReportView(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_InReportView",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyListCtrl const *)arg1)->InReportView(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RefreshItem(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - long arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RefreshItems(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - int arg2 = (int) wxLIST_ALIGN_DEFAULT ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Arrange(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->DeleteItem(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->DeleteAllItems(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "col", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->DeleteColumn(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->DeleteAllColumns(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ClearAll(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - wxTextCtrl *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxTextCtrl *)(arg1)->EditLabel(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - bool arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "cancel", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EndEditLabel",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->EndEditLabel(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->EnsureVisible(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - wxString *arg3 = 0 ; - bool arg4 = (bool) False ; - long result; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - arg4 = (bool) SWIG_AsBool(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_ListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - long arg3 ; - long result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "start",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->FindItem(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - wxPoint *arg3 = 0 ; - int arg4 ; - long result; - wxPoint temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - wxPoint *arg2 = 0 ; - int *arg3 = 0 ; - long result; - wxPoint temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "point", NULL - }; - - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - wxListItem *arg2 = 0 ; - long result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "info", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->InsertItem(*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - wxString *arg3 = 0 ; - long result; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "index",(char *) "label", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - int arg3 ; - long result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "index",(char *) "imageIndex", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->InsertItem(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - wxString *arg3 = 0 ; - int arg4 ; - long result; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - wxListItem *arg3 = 0 ; - long result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "col",(char *) "info", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->InsertColumn(arg2,*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - wxString *arg3 = 0 ; - int arg4 = (int) wxLIST_FORMAT_LEFT ; - int arg5 = (int) -1 ; - long result; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "count", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetItemCount(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - int arg2 ; - int arg3 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "dx",(char *) "dy", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->ScrollList(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - wxColour *arg3 = 0 ; - wxColour temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "col", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = &temp3; - if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - wxColour result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - wxColour *arg3 = 0 ; - wxColour temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "col", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = &temp3; - if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - long arg2 ; - wxColour result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "func", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxPyListCtrl_SortItems(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; - wxVisualAttributes result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "variant", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (wxWindowVariant) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxPyListCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxVisualAttributes * resultptr; - resultptr = new wxVisualAttributes((wxVisualAttributes &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * ListCtrl_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ListView(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) -1 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) wxLC_REPORT ; - wxValidator const &arg6_defvalue = wxDefaultValidator ; - wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; - wxString const &arg7_defvalue = wxPyListCtrlNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - wxListView *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg6 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_new_PreListView(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListView *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxListView *)new wxListView(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListView *arg1 = (wxListView *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 = (int) -1 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxLC_REPORT ; - wxValidator const &arg7_defvalue = wxDefaultValidator ; - wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; - wxString const &arg8_defvalue = wxPyListCtrlNameStr ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - bool result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp8 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg7 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp8) - delete arg8; - } - return resultobj; - fail: - { - if (temp8) - delete arg8; - } - return NULL; -} - - -static PyObject *_wrap_ListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListView *arg1 = (wxListView *) 0 ; - long arg2 ; - bool arg3 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n",(char *) "on", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Select(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListView *arg1 = (wxListView *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "index", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Focus(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListView *arg1 = (wxListView *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxListView const *)arg1)->GetFocusedItem(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListView *arg1 = (wxListView *) 0 ; - long arg2 ; - long result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxListView const *)arg1)->GetNextSelected(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListView *arg1 = (wxListView *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxListView const *)arg1)->GetFirstSelected(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListView *arg1 = (wxListView *) 0 ; - long arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "index", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->IsSelected(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListView *arg1 = (wxListView *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "col",(char *) "image", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetColumnImage(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxListView *arg1 = (wxListView *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "col", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ClearColumnImage(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * ListView_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_TreeCtrlNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_TreeCtrlNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTreeItemId *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxTreeItemId *)new wxTreeItemId(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTreeItemId const *)arg1)->IsOk(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeItemId___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; - wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeItemId___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; - wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; - void *arg2 = (void *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_pItem", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,&arg2,0,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; - if (arg1) (arg1)->m_pItem = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; - void *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (void *) ((arg1)->m_pItem); - - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject * TreeItemId_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_TreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - PyObject *arg1 = (PyObject *) NULL ; - wxPyTreeItemData *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "obj", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = obj0; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)(arg1)->GetData(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "obj", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetData(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; - wxTreeItemId *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxTreeItemId const &_result_ref = (arg1)->GetId(); - result = (wxTreeItemId *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; - wxTreeItemId *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetId((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeItemData_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxPyTreeItemData_Destroy(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * TreeItemData_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEventType arg1 = (wxEventType) wxEVT_NULL ; - int arg2 = (int) 0 ; - wxTreeEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "commandType",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (wxEventType) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; - wxTreeItemId result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxTreeEvent const *)arg1)->GetItem(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTreeItemId * resultptr; - resultptr = new wxTreeItemId((wxTreeItemId &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeEvent_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; - wxTreeItemId *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetItem((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; - wxTreeItemId result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxTreeEvent const *)arg1)->GetOldItem(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTreeItemId * resultptr; - resultptr = new wxTreeItemId((wxTreeItemId &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; - wxTreeItemId *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetOldItem((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxTreeEvent const *)arg1)->GetPoint(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeEvent_SetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPoint((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; - wxKeyEvent *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent(); - result = (wxKeyEvent *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxTreeEvent const *)arg1)->GetKeyCode(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; - wxKeyEvent *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "evt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeEvent_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "label", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetLabel((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "editCancelled", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetEditCanceled(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "toolTip", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetToolTip((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject * TreeEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_TreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) -1 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) wxTR_DEFAULT_STYLE ; - wxValidator const &arg6_defvalue = wxDefaultValidator ; - wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; - wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - wxPyTreeCtrl *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg6 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_new_PreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyTreeCtrl *)new wxPyTreeCtrl(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 = (int) -1 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxTR_DEFAULT_STYLE ; - wxValidator const &arg7_defvalue = wxDefaultValidator ; - wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; - wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - bool result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp8 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg7 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp8) - delete arg8; - } - return resultobj; - fail: - { - if (temp8) - delete arg8; - } - return NULL; -} - - -static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - size_t result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - unsigned int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedInt((unsigned int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - unsigned int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "indent", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetIndent(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - unsigned int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedInt((unsigned int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - unsigned int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "spacing", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSpacing(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxImageList *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxImageList *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxImageList *arg2 = (wxImageList *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "imageList", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetImageList(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxImageList *arg2 = (wxImageList *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "imageList", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetStateImageList(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxImageList *arg2 = (wxImageList *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "imageList", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, - SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AssignImageList(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxImageList *arg2 = (wxImageList *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "imageList", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, - SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AssignStateImageList(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - wxString result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - int arg3 = (int) wxTreeItemIcon_Normal ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "which", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if (obj2) { - arg3 = (wxTreeItemIcon) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - wxPyTreeItemData *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - wxColour result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - wxColour result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - wxFont result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxFont * resultptr; - resultptr = new wxFont((wxFont &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - wxString *arg3 = 0 ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "text", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - int arg3 ; - int arg4 = (int) wxTreeItemIcon_Normal ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - arg4 = (wxTreeItemIcon) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyTreeItemData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "obj", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - bool arg3 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "has", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - bool arg3 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "bold", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - bool arg3 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "highlight", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - wxColour *arg3 = 0 ; - wxColour temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "col", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - arg3 = &temp3; - if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - wxColour *arg3 = 0 ; - wxColour temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "col", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - arg3 = &temp3; - if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - wxFont *arg3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "font", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - bool arg3 = (bool) True ; - size_t result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "recursively", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyTreeCtrl const *)arg1)->GetRootItem(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTreeItemId * resultptr; - resultptr = new wxTreeItemId((wxTreeItemId &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyTreeCtrl const *)arg1)->GetSelection(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTreeItemId * resultptr; - resultptr = new wxTreeItemId((wxTreeItemId &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - wxTreeItemId result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTreeItemId * resultptr; - resultptr = new wxTreeItemId((wxTreeItemId &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - void *arg3 = (void *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "cookie", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - wxTreeItemId result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTreeItemId * resultptr; - resultptr = new wxTreeItemId((wxTreeItemId &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - wxTreeItemId result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTreeItemId * resultptr; - resultptr = new wxTreeItemId((wxTreeItemId &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - wxTreeItemId result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTreeItemId * resultptr; - resultptr = new wxTreeItemId((wxTreeItemId &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTreeItemId * resultptr; - resultptr = new wxTreeItemId((wxTreeItemId &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - wxTreeItemId result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTreeItemId * resultptr; - resultptr = new wxTreeItemId((wxTreeItemId &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - wxTreeItemId result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTreeItemId * resultptr; - resultptr = new wxTreeItemId((wxTreeItemId &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxString *arg2 = 0 ; - int arg3 = (int) -1 ; - int arg4 = (int) -1 ; - wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ; - wxTreeItemId result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj4) { - if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPyTreeItemData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTreeItemId * resultptr; - resultptr = new wxTreeItemId((wxTreeItemId &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - wxString *arg3 = 0 ; - int arg4 = (int) -1 ; - int arg5 = (int) -1 ; - wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; - wxTreeItemId result; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTreeItemId * resultptr; - resultptr = new wxTreeItemId((wxTreeItemId &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - wxTreeItemId *arg3 = 0 ; - wxString *arg4 = 0 ; - int arg5 = (int) -1 ; - int arg6 = (int) -1 ; - wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; - wxTreeItemId result; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - arg6 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTreeItemId * resultptr; - resultptr = new wxTreeItemId((wxTreeItemId &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); - } - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - size_t arg3 ; - wxString *arg4 = 0 ; - int arg5 = (int) -1 ; - int arg6 = (int) -1 ; - wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; - wxTreeItemId result; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - arg3 = (size_t) SWIG_AsUnsignedLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - arg6 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTreeItemId * resultptr; - resultptr = new wxTreeItemId((wxTreeItemId &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); - } - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - wxString *arg3 = 0 ; - int arg4 = (int) -1 ; - int arg5 = (int) -1 ; - wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; - wxTreeItemId result; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTreeItemId * resultptr; - resultptr = new wxTreeItemId((wxTreeItemId &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Delete((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DeleteChildren((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DeleteAllItems(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Expand((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Collapse((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Toggle((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Unselect(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->UnselectItem((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->UnselectAll(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - bool arg3 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "select", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->EnsureVisible((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ScrollTo((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->EditLabel((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTextCtrl *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - bool arg3 = (bool) False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "discardChanges", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_EndEditLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->EndEditLabel((wxTreeItemId const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SortChildren((wxTreeItemId const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxPoint *arg2 = 0 ; - int *arg3 = 0 ; - wxTreeItemId result; - wxPoint temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "point", NULL - }; - - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTreeItemId * resultptr; - resultptr = new wxTreeItemId((wxTreeItemId &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; - wxTreeItemId *arg2 = 0 ; - bool arg3 = (bool) False ; - PyObject *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "textOnly", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; - wxVisualAttributes result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "variant", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (wxWindowVariant) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxPyTreeCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxVisualAttributes * resultptr; - resultptr = new wxVisualAttributes((wxVisualAttributes &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * TreeCtrl_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_DirDialogDefaultFolderStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only."); - return 1; -} - - -static PyObject *_wrap_DirDialogDefaultFolderStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_GenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) (int)-1 ; - wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; - wxString const &arg7_defvalue = wxPyEmptyString ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - int arg8 = (int) 0 ; - wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ; - wxString *arg9 = (wxString *) &arg9_defvalue ; - wxGenericDirCtrl *result; - bool temp3 = False ; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - bool temp9 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int const) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - if (obj7) { - arg8 = (int) SWIG_AsInt(obj7); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj8) { - { - arg9 = wxString_in_helper(obj8); - if (arg9 == NULL) SWIG_fail; - temp9 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); - { - if (temp3) - delete arg3; - } - { - if (temp7) - delete arg7; - } - { - if (temp9) - delete arg9; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp7) - delete arg7; - } - { - if (temp9) - delete arg9; - } - return NULL; -} - - -static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDirCtrl *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGenericDirCtrl *)new wxGenericDirCtrl(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 = (int) (int)-1 ; - wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ; - wxString *arg4 = (wxString *) &arg4_defvalue ; - wxPoint const &arg5_defvalue = wxDefaultPosition ; - wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; - wxSize const &arg6_defvalue = wxDefaultSize ; - wxSize *arg6 = (wxSize *) &arg6_defvalue ; - long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; - wxString const &arg8_defvalue = wxPyEmptyString ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - int arg9 = (int) 0 ; - wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ; - wxString *arg10 = (wxString *) &arg10_defvalue ; - bool result; - bool temp4 = False ; - wxPoint temp5 ; - wxSize temp6 ; - bool temp8 = False ; - bool temp10 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - PyObject * obj9 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (int const) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - { - arg6 = &temp6; - if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; - } - } - if (obj6) { - arg7 = (long) SWIG_AsLong(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - if (obj8) { - arg9 = (int) SWIG_AsInt(obj8); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj9) { - { - arg10 = wxString_in_helper(obj9); - if (arg10 == NULL) SWIG_fail; - temp10 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp4) - delete arg4; - } - { - if (temp8) - delete arg8; - } - { - if (temp10) - delete arg10; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - { - if (temp8) - delete arg8; - } - { - if (temp10) - delete arg10; - } - return NULL; -} - - -static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; - wxString *arg2 = 0 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "path", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->ExpandPath((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "path", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDefaultPath((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxGenericDirCtrl const *)arg1)->GetPath(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxGenericDirCtrl const *)arg1)->GetFilePath(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "path", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPath((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "show", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ShowHidden(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetShowHidden(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxGenericDirCtrl const *)arg1)->GetFilter(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "filter", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFilter((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFilterIndex(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; - wxTreeItemId result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetRootId(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTreeItemId * resultptr; - resultptr = new wxTreeItemId((wxTreeItemId &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; - wxPyTreeCtrl *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; - wxDirFilterListCtrl *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; - wxTreeItemId arg2 ; - wxString *arg3 = 0 ; - bool *arg4 = 0 ; - wxTreeItemId result; - wxTreeItemId *argp2 ; - bool temp3 = False ; - bool temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parentId",(char *) "path", NULL - }; - - arg4 = &temp4; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; - arg2 = *argp2; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTreeItemId * resultptr; - resultptr = new wxTreeItemId((wxTreeItemId &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); - } - { - PyObject *o = PyInt_FromLong((long) (*arg4)); - resultobj = t_output_helper(resultobj,o); - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DoResize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ReCreateTree(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * GenericDirCtrl_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_DirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; - int arg2 = (int) (int)-1 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) 0 ; - wxDirFilterListCtrl *result; - wxPoint temp3 ; - wxSize temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int const) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDirFilterListCtrl *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; - wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ; - int arg3 = (int) (int)-1 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) 0 ; - bool result; - wxPoint temp4 ; - wxSize temp5 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGenericDirCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (int const) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; - wxString *arg2 = 0 ; - int arg3 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->FillFilterList((wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject * DirFilterListCtrl_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PyControl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) 0 ; - wxValidator const &arg6_defvalue = wxDefaultValidator ; - wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; - wxString const &arg7_defvalue = wxPyControlNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - wxPyControl *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int const) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg6 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_new_PrePyControl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyControl *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyControl",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyControl *)new wxPyControl(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyControl *arg1 = (wxPyControl *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyControl *arg1 = (wxPyControl *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyControl *arg1 = (wxPyControl *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 = (int) wxSIZE_AUTO ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - if (obj5) { - arg6 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyControl *arg1 = (wxPyControl *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_DoSetClientSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyControl *arg1 = (wxPyControl *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_DoSetVirtualSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyControl *arg1 = (wxPyControl *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyControl *arg1 = (wxPyControl *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyControl *arg1 = (wxPyControl *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyControl *arg1 = (wxPyControl *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyControl *arg1 = (wxPyControl *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyControl const *)arg1)->base_DoGetBestSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyControl_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyControl *arg1 = (wxPyControl *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_InitDialog(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyControl *arg1 = (wxPyControl *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_TransferDataToWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyControl *arg1 = (wxPyControl *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_TransferDataFromWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyControl_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyControl *arg1 = (wxPyControl *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_Validate(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyControl *arg1 = (wxPyControl *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyControl *arg1 = (wxPyControl *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyControl *arg1 = (wxPyControl *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyControl const *)arg1)->base_GetMaxSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyControl_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyControl *arg1 = (wxPyControl *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "child", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_AddChild(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyControl *arg1 = (wxPyControl *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "child", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_RemoveChild(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyControl_base_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyControl *arg1 = (wxPyControl *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_ShouldInheritColours",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_ShouldInheritColours(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyControl_base_ApplyParentThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyControl *arg1 = (wxPyControl *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "c", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * PyControl_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_HelpEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEventType arg1 = (wxEventType) wxEVT_NULL ; - int arg2 = (int) 0 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxHelpEvent *result; - wxPoint temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "type",(char *) "winid",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; - if (obj0) { - arg1 = (wxEventType) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_HelpEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxHelpEvent const *)arg1)->GetPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_HelpEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPosition((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_HelpEvent_GetLink(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_HelpEvent_SetLink(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "link", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetLink((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_HelpEvent_GetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_HelpEvent_SetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "target", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetTarget((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject * HelpEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) NULL ; - bool arg2 = (bool) True ; - wxContextHelp *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "window",(char *) "doNow", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxContextHelp *)new wxContextHelp(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelp, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxContextHelp *arg1 = (wxContextHelp *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxContextHelp *arg1 = (wxContextHelp *) 0 ; - wxWindow *arg2 = (wxWindow *) NULL ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "window", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->BeginContextHelp(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxContextHelp *arg1 = (wxContextHelp *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->EndContextHelp(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * ContextHelp_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ContextHelpButton(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) wxID_CONTEXT_HELP ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) wxBU_AUTODRAW ; - wxContextHelpButton *result; - wxPoint temp3 ; - wxSize temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelpButton, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * ContextHelpButton_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_HelpProvider_Set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; - wxHelpProvider *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "helpProvider", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxHelpProvider *)wxHelpProvider::Set(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_HelpProvider_Get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxHelpProvider *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxHelpProvider *)wxHelpProvider::Get(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_HelpProvider_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "window", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetHelp((wxWindow const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "window", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->ShowHelp(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_HelpProvider_AddHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - wxString *arg3 = 0 ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "window",(char *) "text", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AddHelp(arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "text", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AddHelp(arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "window", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RemoveHelp(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_HelpProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxHelpProvider_Destroy(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * HelpProvider_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_SimpleHelpProvider(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSimpleHelpProvider *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSimpleHelpProvider, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * SimpleHelpProvider_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = 0 ; - wxCursor const &arg2_defvalue = wxNullCursor ; - wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; - wxGenericDragImage *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "image",(char *) "cursor", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if (obj1) { - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_DragIcon(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIcon *arg1 = 0 ; - wxCursor const &arg2_defvalue = wxNullCursor ; - wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; - wxGenericDragImage *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "image",(char *) "cursor", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if (obj1) { - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_DragString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxCursor const &arg2_defvalue = wxNullCursor ; - wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; - wxGenericDragImage *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "str",(char *) "cursor", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - if (obj1) { - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_new_DragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTreeCtrl *arg1 = 0 ; - wxTreeItemId *arg2 = 0 ; - wxGenericDragImage *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "treeCtrl",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_DragListItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyListCtrl *arg1 = 0 ; - long arg2 ; - wxGenericDragImage *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "listCtrl",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; - wxBitmap *arg2 = (wxBitmap *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bitmap", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetBackingBitmap(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; - wxPoint *arg2 = 0 ; - wxWindow *arg3 = (wxWindow *) 0 ; - bool arg4 = (bool) False ; - wxRect *arg5 = (wxRect *) NULL ; - bool result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj3) { - arg4 = (bool) SWIG_AsBool(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj4) { - if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; - wxPoint *arg2 = 0 ; - wxWindow *arg3 = (wxWindow *) 0 ; - wxWindow *arg4 = (wxWindow *) 0 ; - bool result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->EndDrag(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; - wxPoint *arg2 = 0 ; - bool result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Move((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Show(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Hide(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; - wxPoint *arg2 = 0 ; - wxRect result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxRect * resultptr; - resultptr = new wxRect((wxRect &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DragImage_DoDrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; - wxDC *arg2 = 0 ; - wxPoint *arg3 = 0 ; - bool result; - wxPoint temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "dc",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; - wxDC *arg2 = 0 ; - wxMemoryDC *arg3 = 0 ; - wxRect *arg4 = 0 ; - wxRect *arg5 = 0 ; - bool result; - wxRect temp4 ; - wxRect temp5 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMemoryDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - arg4 = &temp4; - if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; - } - { - arg5 = &temp5; - if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint *arg3 = 0 ; - bool arg4 ; - bool arg5 ; - bool result; - wxPoint temp2 ; - wxPoint temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - arg4 = (bool) SWIG_AsBool(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (bool) SWIG_AsBool(obj4); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * DragImage_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyMethodDef SwigMethods[] = { - { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS }, - { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS }, - { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS }, - { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS }, - { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS }, - { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS }, - { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS }, - { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS }, - { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS }, - { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS }, - { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS }, - { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CheckListBox_GetItemHeight", (PyCFunction) _wrap_CheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS }, - { (char *)"new_TextAttr", _wrap_new_TextAttr, METH_VARARGS }, - { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS }, - { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_ShowNativeCaret", (PyCFunction) _wrap_TextCtrl_ShowNativeCaret, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_HideNativeCaret", (PyCFunction) _wrap_TextCtrl_HideNativeCaret, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS }, - { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS }, - { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS }, - { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS }, - { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS }, - { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS }, - { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS }, - { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS }, - { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS }, - { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS }, - { (char *)"BookCtrl_GetPageCount", (PyCFunction) _wrap_BookCtrl_GetPageCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrl_GetPage", (PyCFunction) _wrap_BookCtrl_GetPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrl_GetSelection", (PyCFunction) _wrap_BookCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrl_SetPageText", (PyCFunction) _wrap_BookCtrl_SetPageText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrl_GetPageText", (PyCFunction) _wrap_BookCtrl_GetPageText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrl_SetImageList", (PyCFunction) _wrap_BookCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrl_AssignImageList", (PyCFunction) _wrap_BookCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrl_GetImageList", (PyCFunction) _wrap_BookCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrl_GetPageImage", (PyCFunction) _wrap_BookCtrl_GetPageImage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrl_SetPageImage", (PyCFunction) _wrap_BookCtrl_SetPageImage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrl_SetPageSize", (PyCFunction) _wrap_BookCtrl_SetPageSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrl_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrl_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrl_DeletePage", (PyCFunction) _wrap_BookCtrl_DeletePage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrl_RemovePage", (PyCFunction) _wrap_BookCtrl_RemovePage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrl_DeleteAllPages", (PyCFunction) _wrap_BookCtrl_DeleteAllPages, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrl_AddPage", (PyCFunction) _wrap_BookCtrl_AddPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrl_InsertPage", (PyCFunction) _wrap_BookCtrl_InsertPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrl_SetSelection", (PyCFunction) _wrap_BookCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrl_AdvanceSelection", (PyCFunction) _wrap_BookCtrl_AdvanceSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrl_swigregister", BookCtrl_swigregister, METH_VARARGS }, - { (char *)"new_BookCtrlEvent", (PyCFunction) _wrap_new_BookCtrlEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrlEvent_GetSelection", (PyCFunction) _wrap_BookCtrlEvent_GetSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrlEvent_SetSelection", (PyCFunction) _wrap_BookCtrlEvent_SetSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrlEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrlEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrlEvent_swigregister", BookCtrlEvent_swigregister, METH_VARARGS }, - { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Notebook_ApplyThemeBackground", (PyCFunction) _wrap_Notebook_ApplyThemeBackground, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS }, - { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS }, - { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS }, - { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS }, - { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS }, - { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS }, - { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS }, - { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS }, - { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS }, - { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS }, - { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS }, - { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS }, - { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_GetEditControl", (PyCFunction) _wrap_ListCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_InReportView", (PyCFunction) _wrap_ListCtrl_InReportView, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_EndEditLabel", (PyCFunction) _wrap_ListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS }, - { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS }, - { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS }, - { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS }, - { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS }, - { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_EndEditLabel", (PyCFunction) _wrap_TreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS }, - { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS }, - { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS }, - { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PrePyControl", (PyCFunction) _wrap_new_PrePyControl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyControl_base_ShouldInheritColours", (PyCFunction) _wrap_PyControl_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyControl_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyControl_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS }, - { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS }, - { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS }, - { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS }, - { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS }, - { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS }, - { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS }, - { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS }, - { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS }, - { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS }, - { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS }, - { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS }, - { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS }, - { NULL, NULL } -}; - - -/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ - -static void *_p_wxNotebookEventTo_p_wxBookCtrlEvent(void *x) { - return (void *)((wxBookCtrlEvent *) ((wxNotebookEvent *) x)); -} -static void *_p_wxListbookEventTo_p_wxBookCtrlEvent(void *x) { - return (void *)((wxBookCtrlEvent *) ((wxListbookEvent *) x)); -} -static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { - return (void *)((wxSizer *) ((wxBoxSizer *) x)); -} -static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { - return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); -} -static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { - return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); -} -static void *_p_wxGridSizerTo_p_wxSizer(void *x) { - return (void *)((wxSizer *) ((wxGridSizer *) x)); -} -static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { - return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); -} -static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) { - return (void *)((wxSizer *) ((wxNotebookSizer *) x)); -} -static void *_p_wxPySizerTo_p_wxSizer(void *x) { - return (void *)((wxSizer *) ((wxPySizer *) x)); -} -static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) { - return (void *)((wxSizer *) ((wxBookCtrlSizer *) x)); -} -static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); -} -static void *_p_wxMenuEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxMenuEvent *) x)); -} -static void *_p_wxCloseEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxCloseEvent *) x)); -} -static void *_p_wxMouseEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxMouseEvent *) x)); -} -static void *_p_wxEraseEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxEraseEvent *) x)); -} -static void *_p_wxTreeEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); -} -static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); -} -static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); -} -static void *_p_wxScrollEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); -} -static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x)); -} -static void *_p_wxBookCtrlEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); -} -static void *_p_wxPyEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxPyEvent *) x)); -} -static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); -} -static void *_p_wxListEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); -} -static void *_p_wxNotebookEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); -} -static void *_p_wxListbookEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); -} -static void *_p_wxHelpEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x)); -} -static void *_p_wxIdleEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxIdleEvent *) x)); -} -static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); -} -static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); -} -static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); -} -static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxIconizeEvent *) x)); -} -static void *_p_wxActivateEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxActivateEvent *) x)); -} -static void *_p_wxSizeEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxSizeEvent *) x)); -} -static void *_p_wxMoveEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxMoveEvent *) x)); -} -static void *_p_wxPaintEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxPaintEvent *) x)); -} -static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); -} -static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); -} -static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); -} -static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); -} -static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); -} -static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); -} -static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); -} -static void *_p_wxFocusEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxFocusEvent *) x)); -} -static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); -} -static void *_p_wxShowEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxShowEvent *) x)); -} -static void *_p_wxCommandEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxCommandEvent *) x)); -} -static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); -} -static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); -} -static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); -} -static void *_p_wxKeyEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxKeyEvent *) x)); -} -static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); -} -static void *_p_wxSpinEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); -} -static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) { - return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); -} -static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) { - return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); -} -static void *_p_wxChoiceTo_p_wxItemContainer(void *x) { - return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x)); -} -static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { - return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); -} -static void *_p_wxListBoxTo_p_wxItemContainer(void *x) { - return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x)); -} -static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) { - return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); -} -static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) { - return (void *)((wxPyListCtrl *) ((wxListView *) x)); -} -static void *_p_wxCheckListBoxTo_p_wxControl(void *x) { - return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); -} -static void *_p_wxListBoxTo_p_wxControl(void *x) { - return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x)); -} -static void *_p_wxChoiceTo_p_wxControl(void *x) { - return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x)); -} -static void *_p_wxToolBarTo_p_wxControl(void *x) { - return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x)); -} -static void *_p_wxStaticBitmapTo_p_wxControl(void *x) { - return (void *)((wxControl *) ((wxStaticBitmap *) x)); -} -static void *_p_wxComboBoxTo_p_wxControl(void *x) { - return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); -} -static void *_p_wxSpinCtrlTo_p_wxControl(void *x) { - return (void *)((wxControl *) ((wxSpinCtrl *) x)); -} -static void *_p_wxStaticBoxTo_p_wxControl(void *x) { - return (void *)((wxControl *) ((wxStaticBox *) x)); -} -static void *_p_wxPyListCtrlTo_p_wxControl(void *x) { - return (void *)((wxControl *) ((wxPyListCtrl *) x)); -} -static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) { - return (void *)((wxControl *) ((wxPyTreeCtrl *) x)); -} -static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) { - return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); -} -static void *_p_wxScrollBarTo_p_wxControl(void *x) { - return (void *)((wxControl *) ((wxScrollBar *) x)); -} -static void *_p_wxBookCtrlTo_p_wxControl(void *x) { - return (void *)((wxControl *) ((wxBookCtrl *) x)); -} -static void *_p_wxRadioButtonTo_p_wxControl(void *x) { - return (void *)((wxControl *) ((wxRadioButton *) x)); -} -static void *_p_wxToggleButtonTo_p_wxControl(void *x) { - return (void *)((wxControl *) ((wxToggleButton *) x)); -} -static void *_p_wxGaugeTo_p_wxControl(void *x) { - return (void *)((wxControl *) ((wxGauge *) x)); -} -static void *_p_wxToolBarBaseTo_p_wxControl(void *x) { - return (void *)((wxControl *) ((wxToolBarBase *) x)); -} -static void *_p_wxBitmapButtonTo_p_wxControl(void *x) { - return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x)); -} -static void *_p_wxButtonTo_p_wxControl(void *x) { - return (void *)((wxControl *) ((wxButton *) x)); -} -static void *_p_wxSpinButtonTo_p_wxControl(void *x) { - return (void *)((wxControl *) ((wxSpinButton *) x)); -} -static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) { - return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); -} -static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { - return (void *)((wxControl *) ((wxControlWithItems *) x)); -} -static void *_p_wxRadioBoxTo_p_wxControl(void *x) { - return (void *)((wxControl *) ((wxRadioBox *) x)); -} -static void *_p_wxNotebookTo_p_wxControl(void *x) { - return (void *)((wxControl *) (wxBookCtrl *) ((wxNotebook *) x)); -} -static void *_p_wxListbookTo_p_wxControl(void *x) { - return (void *)((wxControl *) (wxBookCtrl *) ((wxListbook *) x)); -} -static void *_p_wxCheckBoxTo_p_wxControl(void *x) { - return (void *)((wxControl *) ((wxCheckBox *) x)); -} -static void *_p_wxTextCtrlTo_p_wxControl(void *x) { - return (void *)((wxControl *) ((wxTextCtrl *) x)); -} -static void *_p_wxListViewTo_p_wxControl(void *x) { - return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x)); -} -static void *_p_wxSliderTo_p_wxControl(void *x) { - return (void *)((wxControl *) ((wxSlider *) x)); -} -static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) { - return (void *)((wxControl *) ((wxGenericDirCtrl *) x)); -} -static void *_p_wxPyControlTo_p_wxControl(void *x) { - return (void *)((wxControl *) ((wxPyControl *) x)); -} -static void *_p_wxStaticLineTo_p_wxControl(void *x) { - return (void *)((wxControl *) ((wxStaticLine *) x)); -} -static void *_p_wxStaticTextTo_p_wxControl(void *x) { - return (void *)((wxControl *) ((wxStaticText *) x)); -} -static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) { - return (void *)((wxToolBarBase *) ((wxToolBar *) x)); -} -static void *_p_wxComboBoxTo_p_wxChoice(void *x) { - return (void *)((wxChoice *) ((wxComboBox *) x)); -} -static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) { - return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x)); -} -static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) { - return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x)); -} -static void *_p_wxBookCtrlEventTo_p_wxNotifyEvent(void *x) { - return (void *)((wxNotifyEvent *) ((wxBookCtrlEvent *) x)); -} -static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) { - return (void *)((wxNotifyEvent *) ((wxListEvent *) x)); -} -static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) { - return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x)); -} -static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) { - return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxNotebookEvent *) x)); -} -static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) { - return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxListbookEvent *) x)); -} -static void *_p_wxBookCtrlTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrl *) x)); -} -static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); -} -static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) ((wxValidator *) x)); -} -static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); -} -static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); -} -static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) ((wxMenu *) x)); -} -static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x)); -} -static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x)); -} -static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) ((wxWindow *) x)); -} -static void *_p_wxControlTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); -} -static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x)); -} -static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); -} -static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); -} -static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); -} -static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x)); -} -static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) ((wxPyApp *) x)); -} -static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); -} -static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x)); -} -static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); -} -static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x)); -} -static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x)); -} -static void *_p_wxListbookTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); -} -static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); -} -static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x)); -} -static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x)); -} -static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); -} -static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); -} -static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); -} -static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); -} -static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); -} -static void *_p_wxListViewTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); -} -static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); -} -static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x)); -} -static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x)); -} -static void *_p_wxSliderTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x)); -} -static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x)); -} -static void *_p_wxButtonTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x)); -} -static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); -} -static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); -} -static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x)); -} -static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) { - return (void *)((wxListBox *) ((wxCheckListBox *) x)); -} -static void *_p_wxListbookTo_p_wxBookCtrl(void *x) { - return (void *)((wxBookCtrl *) ((wxListbook *) x)); -} -static void *_p_wxNotebookTo_p_wxBookCtrl(void *x) { - return (void *)((wxBookCtrl *) ((wxNotebook *) x)); -} -static void *_p_wxBitmapButtonTo_p_wxButton(void *x) { - return (void *)((wxButton *) ((wxBitmapButton *) x)); -} -static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) { - return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x)); -} -static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) { - return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x)); -} -static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) { - return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x)); -} -static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxLayoutConstraints *) x)); -} -static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); -} -static void *_p_wxSizerItemTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxSizerItem *) x)); -} -static void *_p_wxScrollEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); -} -static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); -} -static void *_p_wxTextUrlEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x)); -} -static void *_p_wxBookCtrlEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); -} -static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); -} -static void *_p_wxBoxSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); -} -static void *_p_wxSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxSizer *) x)); -} -static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); -} -static void *_p_wxCheckBoxTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x)); -} -static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); -} -static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); -} -static void *_p_wxEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxEvent *) x)); -} -static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); -} -static void *_p_wxGridSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); -} -static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); -} -static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); -} -static void *_p_wxPyListCtrlTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); -} -static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); -} -static void *_p_wxPaintEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); -} -static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); -} -static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); -} -static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); -} -static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); -} -static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); -} -static void *_p_wxStaticLineTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x)); -} -static void *_p_wxControlTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); -} -static void *_p_wxPyControlTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x)); -} -static void *_p_wxGaugeTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x)); -} -static void *_p_wxRadioButtonTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x)); -} -static void *_p_wxToggleButtonTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x)); -} -static void *_p_wxToolBarBaseTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x)); -} -static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); -} -static void *_p_wxChoiceTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); -} -static void *_p_wxFSFileTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxFSFile *) x)); -} -static void *_p_wxPySizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); -} -static void *_p_wxListViewTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); -} -static void *_p_wxTextCtrlTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x)); -} -static void *_p_wxNotebookTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); -} -static void *_p_wxPyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); -} -static void *_p_wxNotifyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); -} -static void *_p_wxListbookTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); -} -static void *_p_wxShowEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); -} -static void *_p_wxStaticBitmapTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); -} -static void *_p_wxSliderTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x)); -} -static void *_p_wxMenuItemTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxMenuItem *) x)); -} -static void *_p_wxIdleEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); -} -static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); -} -static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); -} -static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); -} -static void *_p_wxIconizeEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); -} -static void *_p_wxSizeEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); -} -static void *_p_wxMoveEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); -} -static void *_p_wxActivateEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); -} -static void *_p_wxStaticBoxTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x)); -} -static void *_p_wxContextHelpTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxContextHelp *) x)); -} -static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); -} -static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); -} -static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); -} -static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); -} -static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); -} -static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); -} -static void *_p_wxANIHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); -} -static void *_p_wxCURHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); -} -static void *_p_wxICOHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); -} -static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); -} -static void *_p_wxImageHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxImageHandler *) x)); -} -static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); -} -static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxEvtHandler *) x)); -} -static void *_p_wxListEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); -} -static void *_p_wxListBoxTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); -} -static void *_p_wxCheckListBoxTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); -} -static void *_p_wxBookCtrlTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrl *) x)); -} -static void *_p_wxButtonTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x)); -} -static void *_p_wxBitmapButtonTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); -} -static void *_p_wxSpinButtonTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x)); -} -static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); -} -static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxAcceleratorTable *) x)); -} -static void *_p_wxScrollBarTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x)); -} -static void *_p_wxRadioBoxTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x)); -} -static void *_p_wxComboBoxTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); -} -static void *_p_wxHelpEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x)); -} -static void *_p_wxListItemTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxListItem *) x)); -} -static void *_p_wxImageTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxImage *) x)); -} -static void *_p_wxNotebookSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x)); -} -static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); -} -static void *_p_wxSpinEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); -} -static void *_p_wxGenericDragImageTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxGenericDragImage *) x)); -} -static void *_p_wxSpinCtrlTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); -} -static void *_p_wxNotebookEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); -} -static void *_p_wxListbookEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); -} -static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); -} -static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); -} -static void *_p_wxKeyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); -} -static void *_p_wxWindowTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); -} -static void *_p_wxMenuTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); -} -static void *_p_wxMenuBarTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); -} -static void *_p_wxFileSystemTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxFileSystem *) x)); -} -static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); -} -static void *_p_wxMenuEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); -} -static void *_p_wxPyAppTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); -} -static void *_p_wxCloseEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); -} -static void *_p_wxMouseEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); -} -static void *_p_wxEraseEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); -} -static void *_p_wxTreeEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); -} -static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); -} -static void *_p_wxCommandEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); -} -static void *_p_wxStaticTextTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x)); -} -static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); -} -static void *_p_wxFocusEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); -} -static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); -} -static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); -} -static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxToolBarToolBase *) x)); -} -static void *_p_wxToolBarTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); -} -static void *_p_wxPyValidatorTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); -} -static void *_p_wxValidatorTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); -} -static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x)); -} -static void *_p_wxBookCtrlTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxBookCtrl *) x)); -} -static void *_p_wxMenuBarTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) ((wxMenuBar *) x)); -} -static void *_p_wxToolBarTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); -} -static void *_p_wxToggleButtonTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x)); -} -static void *_p_wxRadioButtonTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x)); -} -static void *_p_wxPyControlTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x)); -} -static void *_p_wxControlTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) ((wxControl *) x)); -} -static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x)); -} -static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); -} -static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x)); -} -static void *_p_wxComboBoxTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); -} -static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x)); -} -static void *_p_wxScrollBarTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x)); -} -static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); -} -static void *_p_wxGaugeTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x)); -} -static void *_p_wxStaticLineTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x)); -} -static void *_p_wxListbookTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxListbook *) x)); -} -static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x)); -} -static void *_p_wxCheckBoxTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x)); -} -static void *_p_wxRadioBoxTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x)); -} -static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); -} -static void *_p_wxChoiceTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x)); -} -static void *_p_wxListBoxTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x)); -} -static void *_p_wxListViewTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x)); -} -static void *_p_wxNotebookTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); -} -static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x)); -} -static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x)); -} -static void *_p_wxStaticTextTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x)); -} -static void *_p_wxStaticBoxTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x)); -} -static void *_p_wxSliderTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x)); -} -static void *_p_wxSpinButtonTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x)); -} -static void *_p_wxButtonTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxButton *) x)); -} -static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x)); -} -static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); -} -static void *_p_wxTextCtrlTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x)); -} -static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); -} -static void *_p_wxBookCtrlEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlEvent *) x)); -} -static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x)); -} -static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); -} -static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); -} -static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); -} -static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); -} -static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); -} -static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); -} -static void *_p_wxListEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x)); -} -static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); -} -static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x)); -} -static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x)); -} -static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxHelpEvent *) x)); -} -static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); -} -static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); -} -static void *_p_wxComboBoxTo_p_wxControlWithItems(void *x) { - return (void *)((wxControlWithItems *) (wxChoice *) ((wxComboBox *) x)); -} -static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) { - return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x)); -} -static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) { - return (void *)((wxControlWithItems *) ((wxChoice *) x)); -} -static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) { - return (void *)((wxControlWithItems *) ((wxListBox *) x)); -} -static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) { - return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x)); -} -static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { - return (void *)((wxValidator *) ((wxPyValidator *) x)); -} -static swig_type_info _swigt__p_wxTextUrlEvent[] = {{"_p_wxTextUrlEvent", 0, "wxTextUrlEvent *", 0, 0, 0, 0},{"_p_wxTextUrlEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxBookCtrlEvent[] = {{"_p_wxBookCtrlEvent", 0, "wxBookCtrlEvent *", 0, 0, 0, 0},{"_p_wxBookCtrlEvent", 0, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxBookCtrlEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxBookCtrlEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSizer[] = {{"_p_wxSizer", 0, "wxSizer *", 0, 0, 0, 0},{"_p_wxSizer", 0, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxNotebookSizer", _p_wxNotebookSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxBookCtrlSizer", _p_wxBookCtrlSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxCheckBox[] = {{"_p_wxCheckBox", 0, "wxCheckBox *", 0, 0, 0, 0},{"_p_wxCheckBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyTreeCtrl[] = {{"_p_wxPyTreeCtrl", 0, "wxPyTreeCtrl *", 0, 0, 0, 0},{"_p_wxPyTreeCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxGenericDirCtrl[] = {{"_p_wxGenericDirCtrl", 0, "wxGenericDirCtrl *", 0, 0, 0, 0},{"_p_wxGenericDirCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_bool[] = {{"_p_bool", 0, "bool *", 0, 0, 0, 0},{"_p_bool", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyTreeItemData[] = {{"_p_wxPyTreeItemData", 0, "wxPyTreeItemData *", 0, 0, 0, 0},{"_p_wxPyTreeItemData", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxItemContainer[] = {{"_p_wxItemContainer", 0, "wxItemContainer *", 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxItemContainer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyListCtrl[] = {{"_p_wxPyListCtrl", 0, "wxPyListCtrl *", 0, 0, 0, 0},{"_p_wxPyListCtrl", 0, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxPyListCtrl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxDirFilterListCtrl[] = {{"_p_wxDirFilterListCtrl", 0, "wxDirFilterListCtrl *", 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxStaticLine[] = {{"_p_wxStaticLine", 0, "wxStaticLine *", 0, 0, 0, 0},{"_p_wxStaticLine", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0, 0, 0, 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxControl", 0, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyControl[] = {{"_p_wxPyControl", 0, "wxPyControl *", 0, 0, 0, 0},{"_p_wxPyControl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxGauge[] = {{"_p_wxGauge", 0, "wxGauge *", 0, 0, 0, 0},{"_p_wxGauge", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxToolBarBase[] = {{"_p_wxToolBarBase", 0, "wxToolBarBase *", 0, 0, 0, 0},{"_p_wxToolBarBase", 0, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxToolBarBase, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0, 0, 0, 0},{"_p_wxFont", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxToggleButton[] = {{"_p_wxToggleButton", 0, "wxToggleButton *", 0, 0, 0, 0},{"_p_wxToggleButton", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxRadioButton[] = {{"_p_wxRadioButton", 0, "wxRadioButton *", 0, 0, 0, 0},{"_p_wxRadioButton", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxChoice[] = {{"_p_wxChoice", 0, "wxChoice *", 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxChoice, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxChoice, 0, 0, 0, 0, 0},{"_p_wxChoice", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMemoryDC[] = {{"_p_wxMemoryDC", 0, "wxMemoryDC *", 0, 0, 0, 0},{"_p_wxMemoryDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxListItemAttr[] = {{"_p_wxListItemAttr", 0, "wxListItemAttr *", 0, 0, 0, 0},{"_p_wxListItemAttr", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_void[] = {{"_p_void", 0, "void *", 0, 0, 0, 0},{"_p_void", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0, 0, 0, 0},{"_p_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0, 0, 0, 0},{"_p_wxSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0, 0, 0, 0},{"_p_wxDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxListView[] = {{"_p_wxListView", 0, "wxListView *", 0, 0, 0, 0},{"_p_wxListView", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0, 0, 0, 0},{"_p_wxIcon", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxVisualAttributes[] = {{"_p_wxVisualAttributes", 0, "wxVisualAttributes *", 0, 0, 0, 0},{"_p_wxVisualAttributes", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxTextCtrl[] = {{"_p_wxTextCtrl", 0, "wxTextCtrl *", 0, 0, 0, 0},{"_p_wxTextCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxNotebook[] = {{"_p_wxNotebook", 0, "wxNotebook *", 0, 0, 0, 0},{"_p_wxNotebook", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxNotifyEvent[] = {{"_p_wxNotifyEvent", 0, "wxNotifyEvent *", 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0, 0, 0, 0},{"_p_wxArrayString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxListbook[] = {{"_p_wxListbook", 0, "wxListbook *", 0, 0, 0, 0},{"_p_wxListbook", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxStaticBitmap[] = {{"_p_wxStaticBitmap", 0, "wxStaticBitmap *", 0, 0, 0, 0},{"_p_wxStaticBitmap", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSlider[] = {{"_p_wxSlider", 0, "wxSlider *", 0, 0, 0, 0},{"_p_wxSlider", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxStaticBox[] = {{"_p_wxStaticBox", 0, "wxStaticBox *", 0, 0, 0, 0},{"_p_wxStaticBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxArrayInt[] = {{"_p_wxArrayInt", 0, "wxArrayInt *", 0, 0, 0, 0},{"_p_wxArrayInt", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxContextHelp[] = {{"_p_wxContextHelp", 0, "wxContextHelp *", 0, 0, 0, 0},{"_p_wxContextHelp", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0, 0, 0, 0},{"_p_long", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxListEvent[] = {{"_p_wxListEvent", 0, "wxListEvent *", 0, 0, 0, 0},{"_p_wxListEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxCheckListBox[] = {{"_p_wxCheckListBox", 0, "wxCheckListBox *", 0, 0, 0, 0},{"_p_wxCheckListBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxListBox[] = {{"_p_wxListBox", 0, "wxListBox *", 0, 0, 0, 0},{"_p_wxListBox", 0, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxListBox, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxBookCtrl[] = {{"_p_wxBookCtrl", 0, "wxBookCtrl *", 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxBookCtrl, 0, 0, 0, 0, 0},{"_p_wxBookCtrl", 0, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxBookCtrl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSpinButton[] = {{"_p_wxSpinButton", 0, "wxSpinButton *", 0, 0, 0, 0},{"_p_wxSpinButton", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxButton[] = {{"_p_wxButton", 0, "wxButton *", 0, 0, 0, 0},{"_p_wxButton", 0, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxButton, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxButton, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxBitmapButton[] = {{"_p_wxBitmapButton", 0, "wxBitmapButton *", 0, 0, 0, 0},{"_p_wxBitmapButton", 0, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxBitmapButton, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0, 0, 0, 0},{"_p_wxRect", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxContextHelpButton[] = {{"_p_wxContextHelpButton", 0, "wxContextHelpButton *", 0, 0, 0, 0},{"_p_wxContextHelpButton", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxRadioBox[] = {{"_p_wxRadioBox", 0, "wxRadioBox *", 0, 0, 0, 0},{"_p_wxRadioBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxScrollBar[] = {{"_p_wxScrollBar", 0, "wxScrollBar *", 0, 0, 0, 0},{"_p_wxScrollBar", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxTreeItemId[] = {{"_p_wxTreeItemId", 0, "wxTreeItemId *", 0, 0, 0, 0},{"_p_wxTreeItemId", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxComboBox[] = {{"_p_wxComboBox", 0, "wxComboBox *", 0, 0, 0, 0},{"_p_wxComboBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxHelpEvent[] = {{"_p_wxHelpEvent", 0, "wxHelpEvent *", 0, 0, 0, 0},{"_p_wxHelpEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxListItem[] = {{"_p_wxListItem", 0, "wxListItem *", 0, 0, 0, 0},{"_p_wxListItem", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxNotebookSizer[] = {{"_p_wxNotebookSizer", 0, "wxNotebookSizer *", 0, 0, 0, 0},{"_p_wxNotebookSizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSpinEvent[] = {{"_p_wxSpinEvent", 0, "wxSpinEvent *", 0, 0, 0, 0},{"_p_wxSpinEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxGenericDragImage[] = {{"_p_wxGenericDragImage", 0, "wxGenericDragImage *", 0, 0, 0, 0},{"_p_wxGenericDragImage", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSpinCtrl[] = {{"_p_wxSpinCtrl", 0, "wxSpinCtrl *", 0, 0, 0, 0},{"_p_wxSpinCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0, 0, 0, 0},{"_p_wxImageList", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxHelpProvider[] = {{"_p_wxHelpProvider", 0, "wxHelpProvider *", 0, 0, 0, 0},{"_p_wxHelpProvider", 0, 0, 0, 0, 0, 0},{"_p_wxSimpleHelpProvider", _p_wxSimpleHelpProviderTo_p_wxHelpProvider, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxTextAttr[] = {{"_p_wxTextAttr", 0, "wxTextAttr *", 0, 0, 0, 0},{"_p_wxTextAttr", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSimpleHelpProvider[] = {{"_p_wxSimpleHelpProvider", 0, "wxSimpleHelpProvider *", 0, 0, 0, 0},{"_p_wxSimpleHelpProvider", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0, 0, 0, 0},{"_p_wxPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxListbookEvent[] = {{"_p_wxListbookEvent", 0, "wxListbookEvent *", 0, 0, 0, 0},{"_p_wxListbookEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxNotebookEvent[] = {{"_p_wxNotebookEvent", 0, "wxNotebookEvent *", 0, 0, 0, 0},{"_p_wxNotebookEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextHelp", _p_wxContextHelpTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListItem", _p_wxListItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotebookSizer", _p_wxNotebookSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGenericDragImage", _p_wxGenericDragImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolBarToolBase", _p_wxToolBarToolBaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBookCtrlSizer", _p_wxBookCtrlSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0, 0, 0, 0},{"_p_wxCursor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0, 0, 0, 0},{"_p_wxKeyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0, 0, 0, 0},{"_p_wxString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0, 0, 0, 0},{"_p_wxBitmap", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxTreeEvent[] = {{"_p_wxTreeEvent", 0, "wxTreeEvent *", 0, 0, 0, 0},{"_p_wxTreeEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMouseEvent[] = {{"_p_wxMouseEvent", 0, "wxMouseEvent *", 0, 0, 0, 0},{"_p_wxMouseEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", 0, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxStaticText[] = {{"_p_wxStaticText", 0, "wxStaticText *", 0, 0, 0, 0},{"_p_wxStaticText", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxControlWithItems[] = {{"_p_wxControlWithItems", 0, "wxControlWithItems *", 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", 0, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxToolBarToolBase[] = {{"_p_wxToolBarToolBase", 0, "wxToolBarToolBase *", 0, 0, 0, 0},{"_p_wxToolBarToolBase", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0, 0, 0, 0},{"_p_wxColour", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxToolBar[] = {{"_p_wxToolBar", 0, "wxToolBar *", 0, 0, 0, 0},{"_p_wxToolBar", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxBookCtrlSizer[] = {{"_p_wxBookCtrlSizer", 0, "wxBookCtrlSizer *", 0, 0, 0, 0},{"_p_wxBookCtrlSizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxValidator[] = {{"_p_wxValidator", 0, "wxValidator *", 0, 0, 0, 0},{"_p_wxValidator", 0, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxValidator, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; - -static swig_type_info *swig_types_initial[] = { -_swigt__p_wxTextUrlEvent, -_swigt__p_wxBookCtrlEvent, -_swigt__p_wxSizer, -_swigt__p_wxCheckBox, -_swigt__p_wxPyTreeCtrl, -_swigt__p_wxEvent, -_swigt__p_wxGenericDirCtrl, -_swigt__p_bool, -_swigt__p_wxPyTreeItemData, -_swigt__p_wxItemContainer, -_swigt__p_wxPyListCtrl, -_swigt__p_wxDirFilterListCtrl, -_swigt__p_wxStaticLine, -_swigt__p_wxControl, -_swigt__p_wxPyControl, -_swigt__p_wxGauge, -_swigt__p_wxToolBarBase, -_swigt__p_wxFont, -_swigt__p_wxToggleButton, -_swigt__p_wxRadioButton, -_swigt__p_wxChoice, -_swigt__p_wxMemoryDC, -_swigt__p_wxListItemAttr, -_swigt__p_void, -_swigt__p_int, -_swigt__p_wxSize, -_swigt__p_wxDC, -_swigt__p_wxListView, -_swigt__p_wxIcon, -_swigt__p_wxVisualAttributes, -_swigt__p_wxTextCtrl, -_swigt__p_wxNotebook, -_swigt__p_wxNotifyEvent, -_swigt__p_wxArrayString, -_swigt__p_wxListbook, -_swigt__p_wxStaticBitmap, -_swigt__p_wxSlider, -_swigt__p_wxStaticBox, -_swigt__p_wxArrayInt, -_swigt__p_wxContextHelp, -_swigt__p_long, -_swigt__p_wxEvtHandler, -_swigt__p_wxListEvent, -_swigt__p_wxCheckListBox, -_swigt__p_wxListBox, -_swigt__p_wxBookCtrl, -_swigt__p_wxSpinButton, -_swigt__p_wxButton, -_swigt__p_wxBitmapButton, -_swigt__p_wxRect, -_swigt__p_wxContextHelpButton, -_swigt__p_wxRadioBox, -_swigt__p_wxScrollBar, -_swigt__p_char, -_swigt__p_wxTreeItemId, -_swigt__p_wxComboBox, -_swigt__p_wxHelpEvent, -_swigt__p_wxListItem, -_swigt__p_wxNotebookSizer, -_swigt__p_wxSpinEvent, -_swigt__p_wxGenericDragImage, -_swigt__p_wxSpinCtrl, -_swigt__p_wxImageList, -_swigt__p_wxHelpProvider, -_swigt__p_wxTextAttr, -_swigt__p_wxSimpleHelpProvider, -_swigt__p_wxPoint, -_swigt__p_wxListbookEvent, -_swigt__p_wxNotebookEvent, -_swigt__p_wxObject, -_swigt__p_wxCursor, -_swigt__p_wxKeyEvent, -_swigt__p_wxWindow, -_swigt__p_wxString, -_swigt__p_wxBitmap, -_swigt__p_wxTreeEvent, -_swigt__p_wxMouseEvent, -_swigt__p_wxCommandEvent, -_swigt__p_wxStaticText, -_swigt__p_wxControlWithItems, -_swigt__p_wxToolBarToolBase, -_swigt__p_wxColour, -_swigt__p_wxToolBar, -_swigt__p_wxBookCtrlSizer, -_swigt__p_wxValidator, -0 -}; - - -/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ - -static swig_const_info swig_const_table[] = { -{0}}; - -#ifdef __cplusplus -} -#endif - -#ifdef __cplusplus -extern "C" -#endif -SWIGEXPORT(void) SWIG_init(void) { - static PyObject *SWIG_globals = 0; - static int typeinit = 0; - PyObject *m, *d; - int i; - if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); - m = Py_InitModule((char *) SWIG_name, SwigMethods); - d = PyModule_GetDict(m); - - if (!typeinit) { - for (i = 0; swig_types_initial[i]; i++) { - swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); - } - typeinit = 1; - } - SWIG_InstallConstants(d,swig_const_table); - - PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); - SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set); - PyDict_SetItemString(d,"BU_LEFT", SWIG_FromInt((int)wxBU_LEFT)); - PyDict_SetItemString(d,"BU_TOP", SWIG_FromInt((int)wxBU_TOP)); - PyDict_SetItemString(d,"BU_RIGHT", SWIG_FromInt((int)wxBU_RIGHT)); - PyDict_SetItemString(d,"BU_BOTTOM", SWIG_FromInt((int)wxBU_BOTTOM)); - PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_FromInt((int)wxBU_EXACTFIT)); - PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_FromInt((int)wxBU_AUTODRAW)); - SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set); - PyDict_SetItemString(d,"CHK_2STATE", SWIG_FromInt((int)wxCHK_2STATE)); - PyDict_SetItemString(d,"CHK_3STATE", SWIG_FromInt((int)wxCHK_3STATE)); - PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_FromInt((int)wxCHK_ALLOW_3RD_STATE_FOR_USER)); - PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_FromInt((int)wxCHK_UNCHECKED)); - PyDict_SetItemString(d,"CHK_CHECKED", SWIG_FromInt((int)wxCHK_CHECKED)); - PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_FromInt((int)wxCHK_UNDETERMINED)); - SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set); - SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set); - SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set); - PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_FromInt((int)wxGA_HORIZONTAL)); - PyDict_SetItemString(d,"GA_VERTICAL", SWIG_FromInt((int)wxGA_VERTICAL)); - PyDict_SetItemString(d,"GA_SMOOTH", SWIG_FromInt((int)wxGA_SMOOTH)); - PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_FromInt((int)wxGA_PROGRESSBAR)); - SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set); - SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set); - SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set); - SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set); - SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set); - PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_FromInt((int)wxTE_NO_VSCROLL)); - PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_FromInt((int)wxTE_AUTO_SCROLL)); - PyDict_SetItemString(d,"TE_READONLY", SWIG_FromInt((int)wxTE_READONLY)); - PyDict_SetItemString(d,"TE_MULTILINE", SWIG_FromInt((int)wxTE_MULTILINE)); - PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_FromInt((int)wxTE_PROCESS_TAB)); - PyDict_SetItemString(d,"TE_LEFT", SWIG_FromInt((int)wxTE_LEFT)); - PyDict_SetItemString(d,"TE_CENTER", SWIG_FromInt((int)wxTE_CENTER)); - PyDict_SetItemString(d,"TE_RIGHT", SWIG_FromInt((int)wxTE_RIGHT)); - PyDict_SetItemString(d,"TE_CENTRE", SWIG_FromInt((int)wxTE_CENTRE)); - PyDict_SetItemString(d,"TE_RICH", SWIG_FromInt((int)wxTE_RICH)); - PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_FromInt((int)wxTE_PROCESS_ENTER)); - PyDict_SetItemString(d,"TE_PASSWORD", SWIG_FromInt((int)wxTE_PASSWORD)); - PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_FromInt((int)wxTE_AUTO_URL)); - PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_FromInt((int)wxTE_NOHIDESEL)); - PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_FromInt((int)wxTE_DONTWRAP)); - PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_FromInt((int)wxTE_LINEWRAP)); - PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_FromInt((int)wxTE_WORDWRAP)); - PyDict_SetItemString(d,"TE_RICH2", SWIG_FromInt((int)wxTE_RICH2)); - PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_DEFAULT)); - PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_LEFT)); - PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTRE)); - PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTER)); - PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_RIGHT)); - PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_FromInt((int)wxTEXT_ALIGNMENT_JUSTIFIED)); - PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_TEXT_COLOUR)); - PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_BACKGROUND_COLOUR)); - PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_FACE)); - PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_SIZE)); - PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_FromInt((int)wxTEXT_ATTR_FONT_WEIGHT)); - PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_FromInt((int)wxTEXT_ATTR_FONT_ITALIC)); - PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_UNDERLINE)); - PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_FromInt((int)wxTEXT_ATTR_FONT)); - PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_FromInt((int)wxTEXT_ATTR_ALIGNMENT)); - PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_LEFT_INDENT)); - PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_RIGHT_INDENT)); - PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_FromInt((int)wxTEXT_ATTR_TABS)); - PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_FromInt((int)wxTE_HT_UNKNOWN)); - PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_FromInt((int)wxTE_HT_BEFORE)); - PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_FromInt((int)wxTE_HT_ON_TEXT)); - PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_FromInt((int)wxTE_HT_BELOW)); - PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_FromInt((int)wxTE_HT_BEYOND)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN)); - SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set); - SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set); - SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set); - PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_FromInt((int)wxSP_HORIZONTAL)); - PyDict_SetItemString(d,"SP_VERTICAL", SWIG_FromInt((int)wxSP_VERTICAL)); - PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_FromInt((int)wxSP_ARROW_KEYS)); - PyDict_SetItemString(d,"SP_WRAP", SWIG_FromInt((int)wxSP_WRAP)); - PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED)); - SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set); - SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set); - SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set); - SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set); - PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); - SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set); - PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_FromInt((int)wxNB_FIXEDWIDTH)); - PyDict_SetItemString(d,"NB_TOP", SWIG_FromInt((int)wxNB_TOP)); - PyDict_SetItemString(d,"NB_LEFT", SWIG_FromInt((int)wxNB_LEFT)); - PyDict_SetItemString(d,"NB_RIGHT", SWIG_FromInt((int)wxNB_RIGHT)); - PyDict_SetItemString(d,"NB_BOTTOM", SWIG_FromInt((int)wxNB_BOTTOM)); - PyDict_SetItemString(d,"NB_MULTILINE", SWIG_FromInt((int)wxNB_MULTILINE)); - PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_FromInt((int)wxNB_HITTEST_NOWHERE)); - PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_FromInt((int)wxNB_HITTEST_ONICON)); - PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_FromInt((int)wxNB_HITTEST_ONLABEL)); - PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_FromInt((int)wxNB_HITTEST_ONITEM)); - PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)); - PyDict_SetItemString(d,"LB_DEFAULT", SWIG_FromInt((int)wxLB_DEFAULT)); - PyDict_SetItemString(d,"LB_TOP", SWIG_FromInt((int)wxLB_TOP)); - PyDict_SetItemString(d,"LB_BOTTOM", SWIG_FromInt((int)wxLB_BOTTOM)); - PyDict_SetItemString(d,"LB_LEFT", SWIG_FromInt((int)wxLB_LEFT)); - PyDict_SetItemString(d,"LB_RIGHT", SWIG_FromInt((int)wxLB_RIGHT)); - PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_FromInt((int)wxLB_ALIGN_MASK)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING)); - PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_FromInt((int)wxTOOL_STYLE_BUTTON)); - PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_FromInt((int)wxTOOL_STYLE_SEPARATOR)); - PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_FromInt((int)wxTOOL_STYLE_CONTROL)); - PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_FromInt((int)wxTB_HORIZONTAL)); - PyDict_SetItemString(d,"TB_VERTICAL", SWIG_FromInt((int)wxTB_VERTICAL)); - PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_FromInt((int)wxTB_3DBUTTONS)); - PyDict_SetItemString(d,"TB_FLAT", SWIG_FromInt((int)wxTB_FLAT)); - PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_FromInt((int)wxTB_DOCKABLE)); - PyDict_SetItemString(d,"TB_NOICONS", SWIG_FromInt((int)wxTB_NOICONS)); - PyDict_SetItemString(d,"TB_TEXT", SWIG_FromInt((int)wxTB_TEXT)); - PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_FromInt((int)wxTB_NODIVIDER)); - PyDict_SetItemString(d,"TB_NOALIGN", SWIG_FromInt((int)wxTB_NOALIGN)); - PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_FromInt((int)wxTB_HORZ_LAYOUT)); - PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_FromInt((int)wxTB_HORZ_TEXT)); - SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set); - PyDict_SetItemString(d,"LC_VRULES", SWIG_FromInt((int)wxLC_VRULES)); - PyDict_SetItemString(d,"LC_HRULES", SWIG_FromInt((int)wxLC_HRULES)); - PyDict_SetItemString(d,"LC_ICON", SWIG_FromInt((int)wxLC_ICON)); - PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_FromInt((int)wxLC_SMALL_ICON)); - PyDict_SetItemString(d,"LC_LIST", SWIG_FromInt((int)wxLC_LIST)); - PyDict_SetItemString(d,"LC_REPORT", SWIG_FromInt((int)wxLC_REPORT)); - PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_FromInt((int)wxLC_ALIGN_TOP)); - PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_FromInt((int)wxLC_ALIGN_LEFT)); - PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_FromInt((int)wxLC_AUTOARRANGE)); - PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_FromInt((int)wxLC_VIRTUAL)); - PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_FromInt((int)wxLC_EDIT_LABELS)); - PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_FromInt((int)wxLC_NO_HEADER)); - PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_FromInt((int)wxLC_NO_SORT_HEADER)); - PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_FromInt((int)wxLC_SINGLE_SEL)); - PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_FromInt((int)wxLC_SORT_ASCENDING)); - PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_FromInt((int)wxLC_SORT_DESCENDING)); - PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_FromInt((int)wxLC_MASK_TYPE)); - PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_FromInt((int)wxLC_MASK_ALIGN)); - PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_FromInt((int)wxLC_MASK_SORT)); - PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_FromInt((int)wxLIST_MASK_STATE)); - PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_FromInt((int)wxLIST_MASK_TEXT)); - PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_FromInt((int)wxLIST_MASK_IMAGE)); - PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_FromInt((int)wxLIST_MASK_DATA)); - PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_FromInt((int)wxLIST_SET_ITEM)); - PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_FromInt((int)wxLIST_MASK_WIDTH)); - PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_FromInt((int)wxLIST_MASK_FORMAT)); - PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_FromInt((int)wxLIST_STATE_DONTCARE)); - PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_FromInt((int)wxLIST_STATE_DROPHILITED)); - PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_FromInt((int)wxLIST_STATE_FOCUSED)); - PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_FromInt((int)wxLIST_STATE_SELECTED)); - PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_FromInt((int)wxLIST_STATE_CUT)); - PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_FromInt((int)wxLIST_STATE_DISABLED)); - PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_FromInt((int)wxLIST_STATE_FILTERED)); - PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_FromInt((int)wxLIST_STATE_INUSE)); - PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_FromInt((int)wxLIST_STATE_PICKED)); - PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_FromInt((int)wxLIST_STATE_SOURCE)); - PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_FromInt((int)wxLIST_HITTEST_ABOVE)); - PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_FromInt((int)wxLIST_HITTEST_BELOW)); - PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_FromInt((int)wxLIST_HITTEST_NOWHERE)); - PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMICON)); - PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMLABEL)); - PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMRIGHT)); - PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMSTATEICON)); - PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_FromInt((int)wxLIST_HITTEST_TOLEFT)); - PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_FromInt((int)wxLIST_HITTEST_TORIGHT)); - PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_FromInt((int)wxLIST_HITTEST_ONITEM)); - PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_FromInt((int)wxLIST_NEXT_ABOVE)); - PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_FromInt((int)wxLIST_NEXT_ALL)); - PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_FromInt((int)wxLIST_NEXT_BELOW)); - PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_FromInt((int)wxLIST_NEXT_LEFT)); - PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_FromInt((int)wxLIST_NEXT_RIGHT)); - PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_FromInt((int)wxLIST_ALIGN_DEFAULT)); - PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_FromInt((int)wxLIST_ALIGN_LEFT)); - PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_FromInt((int)wxLIST_ALIGN_TOP)); - PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_FromInt((int)wxLIST_ALIGN_SNAP_TO_GRID)); - PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_FromInt((int)wxLIST_FORMAT_LEFT)); - PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_FromInt((int)wxLIST_FORMAT_RIGHT)); - PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_FromInt((int)wxLIST_FORMAT_CENTRE)); - PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_FromInt((int)wxLIST_FORMAT_CENTER)); - PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_FromInt((int)wxLIST_AUTOSIZE)); - PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_FromInt((int)wxLIST_AUTOSIZE_USEHEADER)); - PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_FromInt((int)wxLIST_RECT_BOUNDS)); - PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_FromInt((int)wxLIST_RECT_ICON)); - PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_FromInt((int)wxLIST_RECT_LABEL)); - PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_FromInt((int)wxLIST_FIND_UP)); - PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_FromInt((int)wxLIST_FIND_DOWN)); - PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_FromInt((int)wxLIST_FIND_LEFT)); - PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_FromInt((int)wxLIST_FIND_RIGHT)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED)); - - // Map renamed classes back to their common name for OOR - wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); - - SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set); - PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_FromInt((int)wxTR_NO_BUTTONS)); - PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_FromInt((int)wxTR_HAS_BUTTONS)); - PyDict_SetItemString(d,"TR_NO_LINES", SWIG_FromInt((int)wxTR_NO_LINES)); - PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_FromInt((int)wxTR_LINES_AT_ROOT)); - PyDict_SetItemString(d,"TR_SINGLE", SWIG_FromInt((int)wxTR_SINGLE)); - PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_FromInt((int)wxTR_MULTIPLE)); - PyDict_SetItemString(d,"TR_EXTENDED", SWIG_FromInt((int)wxTR_EXTENDED)); - PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_FromInt((int)wxTR_HAS_VARIABLE_ROW_HEIGHT)); - PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_FromInt((int)wxTR_EDIT_LABELS)); - PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_FromInt((int)wxTR_HIDE_ROOT)); - PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_FromInt((int)wxTR_ROW_LINES)); - PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_FromInt((int)wxTR_FULL_ROW_HIGHLIGHT)); - PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_FromInt((int)wxTR_DEFAULT_STYLE)); - PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_FromInt((int)wxTR_TWIST_BUTTONS)); - PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_FromInt((int)wxTR_MAC_BUTTONS)); - PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_FromInt((int)wxTR_AQUA_BUTTONS)); - PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_FromInt((int)wxTreeItemIcon_Normal)); - PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_FromInt((int)wxTreeItemIcon_Selected)); - PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_FromInt((int)wxTreeItemIcon_Expanded)); - PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_FromInt((int)wxTreeItemIcon_SelectedExpanded)); - PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_FromInt((int)wxTreeItemIcon_Max)); - PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_FromInt((int)wxTREE_HITTEST_ABOVE)); - PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_FromInt((int)wxTREE_HITTEST_BELOW)); - PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_FromInt((int)wxTREE_HITTEST_NOWHERE)); - PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMBUTTON)); - PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMICON)); - PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMINDENT)); - PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLABEL)); - PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMRIGHT)); - PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMSTATEICON)); - PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_FromInt((int)wxTREE_HITTEST_TOLEFT)); - PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_FromInt((int)wxTREE_HITTEST_TORIGHT)); - PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMUPPERPART)); - PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLOWERPART)); - PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_FromInt((int)wxTREE_HITTEST_ONITEM)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP)); - - // Map renamed classes back to their common name for OOR - wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); - wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); - - SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set); - PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_FromInt((int)wxDIRCTRL_DIR_ONLY)); - PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_FromInt((int)wxDIRCTRL_SELECT_FIRST)); - PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_FromInt((int)wxDIRCTRL_SHOW_FILTERS)); - PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_FromInt((int)wxDIRCTRL_3D_INTERNAL)); - PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_FromInt((int)wxDIRCTRL_EDIT_LABELS)); - PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_FromInt((int)wxFRAME_EX_CONTEXTHELP)); - PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_FromInt((int)wxDIALOG_EX_CONTEXTHELP)); - PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP)); - PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP)); - - wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); - -} - diff --git a/wxPython/src/msw/core.py b/wxPython/src/msw/core.py deleted file mode 100644 index da32bb0d0b..0000000000 --- a/wxPython/src/msw/core.py +++ /dev/null @@ -1,9771 +0,0 @@ -# This file was created automatically by SWIG. -# Don't modify this file, modify the SWIG interface instead. - -import _core - -#// Give a reference to the dictionary of this module to the C++ extension -#// code. -_core._wxPySetDictionary(vars()) - -#// A little trick to make 'wx' be a reference to this module so wx.Names can -#// be used here. -import sys as _sys -wx = _sys.modules[__name__] - -NOT_FOUND = _core.NOT_FOUND -VSCROLL = _core.VSCROLL -HSCROLL = _core.HSCROLL -CAPTION = _core.CAPTION -DOUBLE_BORDER = _core.DOUBLE_BORDER -SUNKEN_BORDER = _core.SUNKEN_BORDER -RAISED_BORDER = _core.RAISED_BORDER -BORDER = _core.BORDER -SIMPLE_BORDER = _core.SIMPLE_BORDER -STATIC_BORDER = _core.STATIC_BORDER -TRANSPARENT_WINDOW = _core.TRANSPARENT_WINDOW -NO_BORDER = _core.NO_BORDER -TAB_TRAVERSAL = _core.TAB_TRAVERSAL -WANTS_CHARS = _core.WANTS_CHARS -POPUP_WINDOW = _core.POPUP_WINDOW -CENTER_FRAME = _core.CENTER_FRAME -CENTRE_ON_SCREEN = _core.CENTRE_ON_SCREEN -CENTER_ON_SCREEN = _core.CENTER_ON_SCREEN -ED_CLIENT_MARGIN = _core.ED_CLIENT_MARGIN -ED_BUTTONS_BOTTOM = _core.ED_BUTTONS_BOTTOM -ED_BUTTONS_RIGHT = _core.ED_BUTTONS_RIGHT -ED_STATIC_LINE = _core.ED_STATIC_LINE -EXT_DIALOG_STYLE = _core.EXT_DIALOG_STYLE -CLIP_CHILDREN = _core.CLIP_CHILDREN -CLIP_SIBLINGS = _core.CLIP_SIBLINGS -ALWAYS_SHOW_SB = _core.ALWAYS_SHOW_SB -RETAINED = _core.RETAINED -BACKINGSTORE = _core.BACKINGSTORE -COLOURED = _core.COLOURED -FIXED_LENGTH = _core.FIXED_LENGTH -LB_NEEDED_SB = _core.LB_NEEDED_SB -LB_ALWAYS_SB = _core.LB_ALWAYS_SB -LB_SORT = _core.LB_SORT -LB_SINGLE = _core.LB_SINGLE -LB_MULTIPLE = _core.LB_MULTIPLE -LB_EXTENDED = _core.LB_EXTENDED -LB_OWNERDRAW = _core.LB_OWNERDRAW -LB_HSCROLL = _core.LB_HSCROLL -PROCESS_ENTER = _core.PROCESS_ENTER -PASSWORD = _core.PASSWORD -CB_SIMPLE = _core.CB_SIMPLE -CB_DROPDOWN = _core.CB_DROPDOWN -CB_SORT = _core.CB_SORT -CB_READONLY = _core.CB_READONLY -RA_HORIZONTAL = _core.RA_HORIZONTAL -RA_VERTICAL = _core.RA_VERTICAL -RA_SPECIFY_ROWS = _core.RA_SPECIFY_ROWS -RA_SPECIFY_COLS = _core.RA_SPECIFY_COLS -RB_GROUP = _core.RB_GROUP -RB_SINGLE = _core.RB_SINGLE -SL_HORIZONTAL = _core.SL_HORIZONTAL -SL_VERTICAL = _core.SL_VERTICAL -SL_AUTOTICKS = _core.SL_AUTOTICKS -SL_LABELS = _core.SL_LABELS -SL_LEFT = _core.SL_LEFT -SL_TOP = _core.SL_TOP -SL_RIGHT = _core.SL_RIGHT -SL_BOTTOM = _core.SL_BOTTOM -SL_BOTH = _core.SL_BOTH -SL_SELRANGE = _core.SL_SELRANGE -SB_HORIZONTAL = _core.SB_HORIZONTAL -SB_VERTICAL = _core.SB_VERTICAL -ST_SIZEGRIP = _core.ST_SIZEGRIP -ST_NO_AUTORESIZE = _core.ST_NO_AUTORESIZE -FLOOD_SURFACE = _core.FLOOD_SURFACE -FLOOD_BORDER = _core.FLOOD_BORDER -ODDEVEN_RULE = _core.ODDEVEN_RULE -WINDING_RULE = _core.WINDING_RULE -TOOL_TOP = _core.TOOL_TOP -TOOL_BOTTOM = _core.TOOL_BOTTOM -TOOL_LEFT = _core.TOOL_LEFT -TOOL_RIGHT = _core.TOOL_RIGHT -OK = _core.OK -YES_NO = _core.YES_NO -CANCEL = _core.CANCEL -YES = _core.YES -NO = _core.NO -NO_DEFAULT = _core.NO_DEFAULT -YES_DEFAULT = _core.YES_DEFAULT -ICON_EXCLAMATION = _core.ICON_EXCLAMATION -ICON_HAND = _core.ICON_HAND -ICON_QUESTION = _core.ICON_QUESTION -ICON_INFORMATION = _core.ICON_INFORMATION -ICON_STOP = _core.ICON_STOP -ICON_ASTERISK = _core.ICON_ASTERISK -ICON_MASK = _core.ICON_MASK -ICON_WARNING = _core.ICON_WARNING -ICON_ERROR = _core.ICON_ERROR -FORWARD = _core.FORWARD -BACKWARD = _core.BACKWARD -RESET = _core.RESET -HELP = _core.HELP -MORE = _core.MORE -SETUP = _core.SETUP -SIZE_AUTO_WIDTH = _core.SIZE_AUTO_WIDTH -SIZE_AUTO_HEIGHT = _core.SIZE_AUTO_HEIGHT -SIZE_AUTO = _core.SIZE_AUTO -SIZE_USE_EXISTING = _core.SIZE_USE_EXISTING -SIZE_ALLOW_MINUS_ONE = _core.SIZE_ALLOW_MINUS_ONE -PORTRAIT = _core.PORTRAIT -LANDSCAPE = _core.LANDSCAPE -PRINT_QUALITY_HIGH = _core.PRINT_QUALITY_HIGH -PRINT_QUALITY_MEDIUM = _core.PRINT_QUALITY_MEDIUM -PRINT_QUALITY_LOW = _core.PRINT_QUALITY_LOW -PRINT_QUALITY_DRAFT = _core.PRINT_QUALITY_DRAFT -ID_ANY = _core.ID_ANY -ID_SEPARATOR = _core.ID_SEPARATOR -ID_LOWEST = _core.ID_LOWEST -ID_OPEN = _core.ID_OPEN -ID_CLOSE = _core.ID_CLOSE -ID_NEW = _core.ID_NEW -ID_SAVE = _core.ID_SAVE -ID_SAVEAS = _core.ID_SAVEAS -ID_REVERT = _core.ID_REVERT -ID_EXIT = _core.ID_EXIT -ID_UNDO = _core.ID_UNDO -ID_REDO = _core.ID_REDO -ID_HELP = _core.ID_HELP -ID_PRINT = _core.ID_PRINT -ID_PRINT_SETUP = _core.ID_PRINT_SETUP -ID_PREVIEW = _core.ID_PREVIEW -ID_ABOUT = _core.ID_ABOUT -ID_HELP_CONTENTS = _core.ID_HELP_CONTENTS -ID_HELP_COMMANDS = _core.ID_HELP_COMMANDS -ID_HELP_PROCEDURES = _core.ID_HELP_PROCEDURES -ID_HELP_CONTEXT = _core.ID_HELP_CONTEXT -ID_CLOSE_ALL = _core.ID_CLOSE_ALL -ID_PREFERENCES = _core.ID_PREFERENCES -ID_CUT = _core.ID_CUT -ID_COPY = _core.ID_COPY -ID_PASTE = _core.ID_PASTE -ID_CLEAR = _core.ID_CLEAR -ID_FIND = _core.ID_FIND -ID_DUPLICATE = _core.ID_DUPLICATE -ID_SELECTALL = _core.ID_SELECTALL -ID_DELETE = _core.ID_DELETE -ID_REPLACE = _core.ID_REPLACE -ID_REPLACE_ALL = _core.ID_REPLACE_ALL -ID_PROPERTIES = _core.ID_PROPERTIES -ID_VIEW_DETAILS = _core.ID_VIEW_DETAILS -ID_VIEW_LARGEICONS = _core.ID_VIEW_LARGEICONS -ID_VIEW_SMALLICONS = _core.ID_VIEW_SMALLICONS -ID_VIEW_LIST = _core.ID_VIEW_LIST -ID_VIEW_SORTDATE = _core.ID_VIEW_SORTDATE -ID_VIEW_SORTNAME = _core.ID_VIEW_SORTNAME -ID_VIEW_SORTSIZE = _core.ID_VIEW_SORTSIZE -ID_VIEW_SORTTYPE = _core.ID_VIEW_SORTTYPE -ID_FILE1 = _core.ID_FILE1 -ID_FILE2 = _core.ID_FILE2 -ID_FILE3 = _core.ID_FILE3 -ID_FILE4 = _core.ID_FILE4 -ID_FILE5 = _core.ID_FILE5 -ID_FILE6 = _core.ID_FILE6 -ID_FILE7 = _core.ID_FILE7 -ID_FILE8 = _core.ID_FILE8 -ID_FILE9 = _core.ID_FILE9 -ID_OK = _core.ID_OK -ID_CANCEL = _core.ID_CANCEL -ID_APPLY = _core.ID_APPLY -ID_YES = _core.ID_YES -ID_NO = _core.ID_NO -ID_STATIC = _core.ID_STATIC -ID_FORWARD = _core.ID_FORWARD -ID_BACKWARD = _core.ID_BACKWARD -ID_DEFAULT = _core.ID_DEFAULT -ID_MORE = _core.ID_MORE -ID_SETUP = _core.ID_SETUP -ID_RESET = _core.ID_RESET -ID_CONTEXT_HELP = _core.ID_CONTEXT_HELP -ID_YESTOALL = _core.ID_YESTOALL -ID_NOTOALL = _core.ID_NOTOALL -ID_ABORT = _core.ID_ABORT -ID_RETRY = _core.ID_RETRY -ID_IGNORE = _core.ID_IGNORE -ID_HIGHEST = _core.ID_HIGHEST -OPEN = _core.OPEN -SAVE = _core.SAVE -HIDE_READONLY = _core.HIDE_READONLY -OVERWRITE_PROMPT = _core.OVERWRITE_PROMPT -FILE_MUST_EXIST = _core.FILE_MUST_EXIST -MULTIPLE = _core.MULTIPLE -CHANGE_DIR = _core.CHANGE_DIR -ACCEL_ALT = _core.ACCEL_ALT -ACCEL_CTRL = _core.ACCEL_CTRL -ACCEL_SHIFT = _core.ACCEL_SHIFT -ACCEL_NORMAL = _core.ACCEL_NORMAL -PD_AUTO_HIDE = _core.PD_AUTO_HIDE -PD_APP_MODAL = _core.PD_APP_MODAL -PD_CAN_ABORT = _core.PD_CAN_ABORT -PD_ELAPSED_TIME = _core.PD_ELAPSED_TIME -PD_ESTIMATED_TIME = _core.PD_ESTIMATED_TIME -PD_REMAINING_TIME = _core.PD_REMAINING_TIME -DD_NEW_DIR_BUTTON = _core.DD_NEW_DIR_BUTTON -DD_DEFAULT_STYLE = _core.DD_DEFAULT_STYLE -MENU_TEAROFF = _core.MENU_TEAROFF -MB_DOCKABLE = _core.MB_DOCKABLE -NO_FULL_REPAINT_ON_RESIZE = _core.NO_FULL_REPAINT_ON_RESIZE -FULL_REPAINT_ON_RESIZE = _core.FULL_REPAINT_ON_RESIZE -LI_HORIZONTAL = _core.LI_HORIZONTAL -LI_VERTICAL = _core.LI_VERTICAL -WS_EX_VALIDATE_RECURSIVELY = _core.WS_EX_VALIDATE_RECURSIVELY -WS_EX_BLOCK_EVENTS = _core.WS_EX_BLOCK_EVENTS -WS_EX_TRANSIENT = _core.WS_EX_TRANSIENT -WS_EX_THEMED_BACKGROUND = _core.WS_EX_THEMED_BACKGROUND -WS_EX_PROCESS_IDLE = _core.WS_EX_PROCESS_IDLE -WS_EX_PROCESS_UI_UPDATES = _core.WS_EX_PROCESS_UI_UPDATES -MM_TEXT = _core.MM_TEXT -MM_LOMETRIC = _core.MM_LOMETRIC -MM_HIMETRIC = _core.MM_HIMETRIC -MM_LOENGLISH = _core.MM_LOENGLISH -MM_HIENGLISH = _core.MM_HIENGLISH -MM_TWIPS = _core.MM_TWIPS -MM_ISOTROPIC = _core.MM_ISOTROPIC -MM_ANISOTROPIC = _core.MM_ANISOTROPIC -MM_POINTS = _core.MM_POINTS -MM_METRIC = _core.MM_METRIC -CENTRE = _core.CENTRE -CENTER = _core.CENTER -HORIZONTAL = _core.HORIZONTAL -VERTICAL = _core.VERTICAL -BOTH = _core.BOTH -LEFT = _core.LEFT -RIGHT = _core.RIGHT -UP = _core.UP -DOWN = _core.DOWN -TOP = _core.TOP -BOTTOM = _core.BOTTOM -NORTH = _core.NORTH -SOUTH = _core.SOUTH -WEST = _core.WEST -EAST = _core.EAST -ALL = _core.ALL -ALIGN_NOT = _core.ALIGN_NOT -ALIGN_CENTER_HORIZONTAL = _core.ALIGN_CENTER_HORIZONTAL -ALIGN_CENTRE_HORIZONTAL = _core.ALIGN_CENTRE_HORIZONTAL -ALIGN_LEFT = _core.ALIGN_LEFT -ALIGN_TOP = _core.ALIGN_TOP -ALIGN_RIGHT = _core.ALIGN_RIGHT -ALIGN_BOTTOM = _core.ALIGN_BOTTOM -ALIGN_CENTER_VERTICAL = _core.ALIGN_CENTER_VERTICAL -ALIGN_CENTRE_VERTICAL = _core.ALIGN_CENTRE_VERTICAL -ALIGN_CENTER = _core.ALIGN_CENTER -ALIGN_CENTRE = _core.ALIGN_CENTRE -ALIGN_MASK = _core.ALIGN_MASK -STRETCH_NOT = _core.STRETCH_NOT -SHRINK = _core.SHRINK -GROW = _core.GROW -EXPAND = _core.EXPAND -SHAPED = _core.SHAPED -FIXED_MINSIZE = _core.FIXED_MINSIZE -TILE = _core.TILE -ADJUST_MINSIZE = _core.ADJUST_MINSIZE -BORDER_DEFAULT = _core.BORDER_DEFAULT -BORDER_NONE = _core.BORDER_NONE -BORDER_STATIC = _core.BORDER_STATIC -BORDER_SIMPLE = _core.BORDER_SIMPLE -BORDER_RAISED = _core.BORDER_RAISED -BORDER_SUNKEN = _core.BORDER_SUNKEN -BORDER_DOUBLE = _core.BORDER_DOUBLE -BORDER_MASK = _core.BORDER_MASK -DEFAULT = _core.DEFAULT -DECORATIVE = _core.DECORATIVE -ROMAN = _core.ROMAN -SCRIPT = _core.SCRIPT -SWISS = _core.SWISS -MODERN = _core.MODERN -TELETYPE = _core.TELETYPE -VARIABLE = _core.VARIABLE -FIXED = _core.FIXED -NORMAL = _core.NORMAL -LIGHT = _core.LIGHT -BOLD = _core.BOLD -ITALIC = _core.ITALIC -SLANT = _core.SLANT -SOLID = _core.SOLID -DOT = _core.DOT -LONG_DASH = _core.LONG_DASH -SHORT_DASH = _core.SHORT_DASH -DOT_DASH = _core.DOT_DASH -USER_DASH = _core.USER_DASH -TRANSPARENT = _core.TRANSPARENT -STIPPLE = _core.STIPPLE -BDIAGONAL_HATCH = _core.BDIAGONAL_HATCH -CROSSDIAG_HATCH = _core.CROSSDIAG_HATCH -FDIAGONAL_HATCH = _core.FDIAGONAL_HATCH -CROSS_HATCH = _core.CROSS_HATCH -HORIZONTAL_HATCH = _core.HORIZONTAL_HATCH -VERTICAL_HATCH = _core.VERTICAL_HATCH -JOIN_BEVEL = _core.JOIN_BEVEL -JOIN_MITER = _core.JOIN_MITER -JOIN_ROUND = _core.JOIN_ROUND -CAP_ROUND = _core.CAP_ROUND -CAP_PROJECTING = _core.CAP_PROJECTING -CAP_BUTT = _core.CAP_BUTT -CLEAR = _core.CLEAR -XOR = _core.XOR -INVERT = _core.INVERT -OR_REVERSE = _core.OR_REVERSE -AND_REVERSE = _core.AND_REVERSE -COPY = _core.COPY -AND = _core.AND -AND_INVERT = _core.AND_INVERT -NO_OP = _core.NO_OP -NOR = _core.NOR -EQUIV = _core.EQUIV -SRC_INVERT = _core.SRC_INVERT -OR_INVERT = _core.OR_INVERT -NAND = _core.NAND -OR = _core.OR -SET = _core.SET -WXK_BACK = _core.WXK_BACK -WXK_TAB = _core.WXK_TAB -WXK_RETURN = _core.WXK_RETURN -WXK_ESCAPE = _core.WXK_ESCAPE -WXK_SPACE = _core.WXK_SPACE -WXK_DELETE = _core.WXK_DELETE -WXK_START = _core.WXK_START -WXK_LBUTTON = _core.WXK_LBUTTON -WXK_RBUTTON = _core.WXK_RBUTTON -WXK_CANCEL = _core.WXK_CANCEL -WXK_MBUTTON = _core.WXK_MBUTTON -WXK_CLEAR = _core.WXK_CLEAR -WXK_SHIFT = _core.WXK_SHIFT -WXK_ALT = _core.WXK_ALT -WXK_CONTROL = _core.WXK_CONTROL -WXK_MENU = _core.WXK_MENU -WXK_PAUSE = _core.WXK_PAUSE -WXK_CAPITAL = _core.WXK_CAPITAL -WXK_PRIOR = _core.WXK_PRIOR -WXK_NEXT = _core.WXK_NEXT -WXK_END = _core.WXK_END -WXK_HOME = _core.WXK_HOME -WXK_LEFT = _core.WXK_LEFT -WXK_UP = _core.WXK_UP -WXK_RIGHT = _core.WXK_RIGHT -WXK_DOWN = _core.WXK_DOWN -WXK_SELECT = _core.WXK_SELECT -WXK_PRINT = _core.WXK_PRINT -WXK_EXECUTE = _core.WXK_EXECUTE -WXK_SNAPSHOT = _core.WXK_SNAPSHOT -WXK_INSERT = _core.WXK_INSERT -WXK_HELP = _core.WXK_HELP -WXK_NUMPAD0 = _core.WXK_NUMPAD0 -WXK_NUMPAD1 = _core.WXK_NUMPAD1 -WXK_NUMPAD2 = _core.WXK_NUMPAD2 -WXK_NUMPAD3 = _core.WXK_NUMPAD3 -WXK_NUMPAD4 = _core.WXK_NUMPAD4 -WXK_NUMPAD5 = _core.WXK_NUMPAD5 -WXK_NUMPAD6 = _core.WXK_NUMPAD6 -WXK_NUMPAD7 = _core.WXK_NUMPAD7 -WXK_NUMPAD8 = _core.WXK_NUMPAD8 -WXK_NUMPAD9 = _core.WXK_NUMPAD9 -WXK_MULTIPLY = _core.WXK_MULTIPLY -WXK_ADD = _core.WXK_ADD -WXK_SEPARATOR = _core.WXK_SEPARATOR -WXK_SUBTRACT = _core.WXK_SUBTRACT -WXK_DECIMAL = _core.WXK_DECIMAL -WXK_DIVIDE = _core.WXK_DIVIDE -WXK_F1 = _core.WXK_F1 -WXK_F2 = _core.WXK_F2 -WXK_F3 = _core.WXK_F3 -WXK_F4 = _core.WXK_F4 -WXK_F5 = _core.WXK_F5 -WXK_F6 = _core.WXK_F6 -WXK_F7 = _core.WXK_F7 -WXK_F8 = _core.WXK_F8 -WXK_F9 = _core.WXK_F9 -WXK_F10 = _core.WXK_F10 -WXK_F11 = _core.WXK_F11 -WXK_F12 = _core.WXK_F12 -WXK_F13 = _core.WXK_F13 -WXK_F14 = _core.WXK_F14 -WXK_F15 = _core.WXK_F15 -WXK_F16 = _core.WXK_F16 -WXK_F17 = _core.WXK_F17 -WXK_F18 = _core.WXK_F18 -WXK_F19 = _core.WXK_F19 -WXK_F20 = _core.WXK_F20 -WXK_F21 = _core.WXK_F21 -WXK_F22 = _core.WXK_F22 -WXK_F23 = _core.WXK_F23 -WXK_F24 = _core.WXK_F24 -WXK_NUMLOCK = _core.WXK_NUMLOCK -WXK_SCROLL = _core.WXK_SCROLL -WXK_PAGEUP = _core.WXK_PAGEUP -WXK_PAGEDOWN = _core.WXK_PAGEDOWN -WXK_NUMPAD_SPACE = _core.WXK_NUMPAD_SPACE -WXK_NUMPAD_TAB = _core.WXK_NUMPAD_TAB -WXK_NUMPAD_ENTER = _core.WXK_NUMPAD_ENTER -WXK_NUMPAD_F1 = _core.WXK_NUMPAD_F1 -WXK_NUMPAD_F2 = _core.WXK_NUMPAD_F2 -WXK_NUMPAD_F3 = _core.WXK_NUMPAD_F3 -WXK_NUMPAD_F4 = _core.WXK_NUMPAD_F4 -WXK_NUMPAD_HOME = _core.WXK_NUMPAD_HOME -WXK_NUMPAD_LEFT = _core.WXK_NUMPAD_LEFT -WXK_NUMPAD_UP = _core.WXK_NUMPAD_UP -WXK_NUMPAD_RIGHT = _core.WXK_NUMPAD_RIGHT -WXK_NUMPAD_DOWN = _core.WXK_NUMPAD_DOWN -WXK_NUMPAD_PRIOR = _core.WXK_NUMPAD_PRIOR -WXK_NUMPAD_PAGEUP = _core.WXK_NUMPAD_PAGEUP -WXK_NUMPAD_NEXT = _core.WXK_NUMPAD_NEXT -WXK_NUMPAD_PAGEDOWN = _core.WXK_NUMPAD_PAGEDOWN -WXK_NUMPAD_END = _core.WXK_NUMPAD_END -WXK_NUMPAD_BEGIN = _core.WXK_NUMPAD_BEGIN -WXK_NUMPAD_INSERT = _core.WXK_NUMPAD_INSERT -WXK_NUMPAD_DELETE = _core.WXK_NUMPAD_DELETE -WXK_NUMPAD_EQUAL = _core.WXK_NUMPAD_EQUAL -WXK_NUMPAD_MULTIPLY = _core.WXK_NUMPAD_MULTIPLY -WXK_NUMPAD_ADD = _core.WXK_NUMPAD_ADD -WXK_NUMPAD_SEPARATOR = _core.WXK_NUMPAD_SEPARATOR -WXK_NUMPAD_SUBTRACT = _core.WXK_NUMPAD_SUBTRACT -WXK_NUMPAD_DECIMAL = _core.WXK_NUMPAD_DECIMAL -WXK_NUMPAD_DIVIDE = _core.WXK_NUMPAD_DIVIDE -WXK_WINDOWS_LEFT = _core.WXK_WINDOWS_LEFT -WXK_WINDOWS_RIGHT = _core.WXK_WINDOWS_RIGHT -WXK_WINDOWS_MENU = _core.WXK_WINDOWS_MENU -PAPER_NONE = _core.PAPER_NONE -PAPER_LETTER = _core.PAPER_LETTER -PAPER_LEGAL = _core.PAPER_LEGAL -PAPER_A4 = _core.PAPER_A4 -PAPER_CSHEET = _core.PAPER_CSHEET -PAPER_DSHEET = _core.PAPER_DSHEET -PAPER_ESHEET = _core.PAPER_ESHEET -PAPER_LETTERSMALL = _core.PAPER_LETTERSMALL -PAPER_TABLOID = _core.PAPER_TABLOID -PAPER_LEDGER = _core.PAPER_LEDGER -PAPER_STATEMENT = _core.PAPER_STATEMENT -PAPER_EXECUTIVE = _core.PAPER_EXECUTIVE -PAPER_A3 = _core.PAPER_A3 -PAPER_A4SMALL = _core.PAPER_A4SMALL -PAPER_A5 = _core.PAPER_A5 -PAPER_B4 = _core.PAPER_B4 -PAPER_B5 = _core.PAPER_B5 -PAPER_FOLIO = _core.PAPER_FOLIO -PAPER_QUARTO = _core.PAPER_QUARTO -PAPER_10X14 = _core.PAPER_10X14 -PAPER_11X17 = _core.PAPER_11X17 -PAPER_NOTE = _core.PAPER_NOTE -PAPER_ENV_9 = _core.PAPER_ENV_9 -PAPER_ENV_10 = _core.PAPER_ENV_10 -PAPER_ENV_11 = _core.PAPER_ENV_11 -PAPER_ENV_12 = _core.PAPER_ENV_12 -PAPER_ENV_14 = _core.PAPER_ENV_14 -PAPER_ENV_DL = _core.PAPER_ENV_DL -PAPER_ENV_C5 = _core.PAPER_ENV_C5 -PAPER_ENV_C3 = _core.PAPER_ENV_C3 -PAPER_ENV_C4 = _core.PAPER_ENV_C4 -PAPER_ENV_C6 = _core.PAPER_ENV_C6 -PAPER_ENV_C65 = _core.PAPER_ENV_C65 -PAPER_ENV_B4 = _core.PAPER_ENV_B4 -PAPER_ENV_B5 = _core.PAPER_ENV_B5 -PAPER_ENV_B6 = _core.PAPER_ENV_B6 -PAPER_ENV_ITALY = _core.PAPER_ENV_ITALY -PAPER_ENV_MONARCH = _core.PAPER_ENV_MONARCH -PAPER_ENV_PERSONAL = _core.PAPER_ENV_PERSONAL -PAPER_FANFOLD_US = _core.PAPER_FANFOLD_US -PAPER_FANFOLD_STD_GERMAN = _core.PAPER_FANFOLD_STD_GERMAN -PAPER_FANFOLD_LGL_GERMAN = _core.PAPER_FANFOLD_LGL_GERMAN -PAPER_ISO_B4 = _core.PAPER_ISO_B4 -PAPER_JAPANESE_POSTCARD = _core.PAPER_JAPANESE_POSTCARD -PAPER_9X11 = _core.PAPER_9X11 -PAPER_10X11 = _core.PAPER_10X11 -PAPER_15X11 = _core.PAPER_15X11 -PAPER_ENV_INVITE = _core.PAPER_ENV_INVITE -PAPER_LETTER_EXTRA = _core.PAPER_LETTER_EXTRA -PAPER_LEGAL_EXTRA = _core.PAPER_LEGAL_EXTRA -PAPER_TABLOID_EXTRA = _core.PAPER_TABLOID_EXTRA -PAPER_A4_EXTRA = _core.PAPER_A4_EXTRA -PAPER_LETTER_TRANSVERSE = _core.PAPER_LETTER_TRANSVERSE -PAPER_A4_TRANSVERSE = _core.PAPER_A4_TRANSVERSE -PAPER_LETTER_EXTRA_TRANSVERSE = _core.PAPER_LETTER_EXTRA_TRANSVERSE -PAPER_A_PLUS = _core.PAPER_A_PLUS -PAPER_B_PLUS = _core.PAPER_B_PLUS -PAPER_LETTER_PLUS = _core.PAPER_LETTER_PLUS -PAPER_A4_PLUS = _core.PAPER_A4_PLUS -PAPER_A5_TRANSVERSE = _core.PAPER_A5_TRANSVERSE -PAPER_B5_TRANSVERSE = _core.PAPER_B5_TRANSVERSE -PAPER_A3_EXTRA = _core.PAPER_A3_EXTRA -PAPER_A5_EXTRA = _core.PAPER_A5_EXTRA -PAPER_B5_EXTRA = _core.PAPER_B5_EXTRA -PAPER_A2 = _core.PAPER_A2 -PAPER_A3_TRANSVERSE = _core.PAPER_A3_TRANSVERSE -PAPER_A3_EXTRA_TRANSVERSE = _core.PAPER_A3_EXTRA_TRANSVERSE -DUPLEX_SIMPLEX = _core.DUPLEX_SIMPLEX -DUPLEX_HORIZONTAL = _core.DUPLEX_HORIZONTAL -DUPLEX_VERTICAL = _core.DUPLEX_VERTICAL -ITEM_SEPARATOR = _core.ITEM_SEPARATOR -ITEM_NORMAL = _core.ITEM_NORMAL -ITEM_CHECK = _core.ITEM_CHECK -ITEM_RADIO = _core.ITEM_RADIO -ITEM_MAX = _core.ITEM_MAX -HT_NOWHERE = _core.HT_NOWHERE -HT_SCROLLBAR_FIRST = _core.HT_SCROLLBAR_FIRST -HT_SCROLLBAR_ARROW_LINE_1 = _core.HT_SCROLLBAR_ARROW_LINE_1 -HT_SCROLLBAR_ARROW_LINE_2 = _core.HT_SCROLLBAR_ARROW_LINE_2 -HT_SCROLLBAR_ARROW_PAGE_1 = _core.HT_SCROLLBAR_ARROW_PAGE_1 -HT_SCROLLBAR_ARROW_PAGE_2 = _core.HT_SCROLLBAR_ARROW_PAGE_2 -HT_SCROLLBAR_THUMB = _core.HT_SCROLLBAR_THUMB -HT_SCROLLBAR_BAR_1 = _core.HT_SCROLLBAR_BAR_1 -HT_SCROLLBAR_BAR_2 = _core.HT_SCROLLBAR_BAR_2 -HT_SCROLLBAR_LAST = _core.HT_SCROLLBAR_LAST -HT_WINDOW_OUTSIDE = _core.HT_WINDOW_OUTSIDE -HT_WINDOW_INSIDE = _core.HT_WINDOW_INSIDE -HT_WINDOW_VERT_SCROLLBAR = _core.HT_WINDOW_VERT_SCROLLBAR -HT_WINDOW_HORZ_SCROLLBAR = _core.HT_WINDOW_HORZ_SCROLLBAR -HT_WINDOW_CORNER = _core.HT_WINDOW_CORNER -HT_MAX = _core.HT_MAX -MOD_NONE = _core.MOD_NONE -MOD_ALT = _core.MOD_ALT -MOD_CONTROL = _core.MOD_CONTROL -MOD_SHIFT = _core.MOD_SHIFT -MOD_WIN = _core.MOD_WIN -UPDATE_UI_NONE = _core.UPDATE_UI_NONE -UPDATE_UI_RECURSE = _core.UPDATE_UI_RECURSE -UPDATE_UI_FROMIDLE = _core.UPDATE_UI_FROMIDLE -#--------------------------------------------------------------------------- - -class Object(object): - """ - The base class for most wx objects, although in wxPython not - much functionality is needed nor exposed. - """ - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def GetClassName(*args, **kwargs): - """ - GetClassName(self) -> String - - Returns the class name of the C++ class using wxRTTI. - """ - return _core.Object_GetClassName(*args, **kwargs) - - def Destroy(*args, **kwargs): - """ - Destroy(self) - - Deletes the C++ object this Python object is a proxy for. - """ - return _core.Object_Destroy(*args, **kwargs) - - -class ObjectPtr(Object): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Object -_core.Object_swigregister(ObjectPtr) -_wxPySetDictionary = _core._wxPySetDictionary - -_wxPyFixStockObjects = _core._wxPyFixStockObjects - -cvar = _core.cvar -EmptyString = cvar.EmptyString - -#--------------------------------------------------------------------------- - -BITMAP_TYPE_INVALID = _core.BITMAP_TYPE_INVALID -BITMAP_TYPE_BMP = _core.BITMAP_TYPE_BMP -BITMAP_TYPE_ICO = _core.BITMAP_TYPE_ICO -BITMAP_TYPE_CUR = _core.BITMAP_TYPE_CUR -BITMAP_TYPE_XBM = _core.BITMAP_TYPE_XBM -BITMAP_TYPE_XBM_DATA = _core.BITMAP_TYPE_XBM_DATA -BITMAP_TYPE_XPM = _core.BITMAP_TYPE_XPM -BITMAP_TYPE_XPM_DATA = _core.BITMAP_TYPE_XPM_DATA -BITMAP_TYPE_TIF = _core.BITMAP_TYPE_TIF -BITMAP_TYPE_GIF = _core.BITMAP_TYPE_GIF -BITMAP_TYPE_PNG = _core.BITMAP_TYPE_PNG -BITMAP_TYPE_JPEG = _core.BITMAP_TYPE_JPEG -BITMAP_TYPE_PNM = _core.BITMAP_TYPE_PNM -BITMAP_TYPE_PCX = _core.BITMAP_TYPE_PCX -BITMAP_TYPE_PICT = _core.BITMAP_TYPE_PICT -BITMAP_TYPE_ICON = _core.BITMAP_TYPE_ICON -BITMAP_TYPE_ANI = _core.BITMAP_TYPE_ANI -BITMAP_TYPE_IFF = _core.BITMAP_TYPE_IFF -BITMAP_TYPE_MACCURSOR = _core.BITMAP_TYPE_MACCURSOR -BITMAP_TYPE_ANY = _core.BITMAP_TYPE_ANY -CURSOR_NONE = _core.CURSOR_NONE -CURSOR_ARROW = _core.CURSOR_ARROW -CURSOR_RIGHT_ARROW = _core.CURSOR_RIGHT_ARROW -CURSOR_BULLSEYE = _core.CURSOR_BULLSEYE -CURSOR_CHAR = _core.CURSOR_CHAR -CURSOR_CROSS = _core.CURSOR_CROSS -CURSOR_HAND = _core.CURSOR_HAND -CURSOR_IBEAM = _core.CURSOR_IBEAM -CURSOR_LEFT_BUTTON = _core.CURSOR_LEFT_BUTTON -CURSOR_MAGNIFIER = _core.CURSOR_MAGNIFIER -CURSOR_MIDDLE_BUTTON = _core.CURSOR_MIDDLE_BUTTON -CURSOR_NO_ENTRY = _core.CURSOR_NO_ENTRY -CURSOR_PAINT_BRUSH = _core.CURSOR_PAINT_BRUSH -CURSOR_PENCIL = _core.CURSOR_PENCIL -CURSOR_POINT_LEFT = _core.CURSOR_POINT_LEFT -CURSOR_POINT_RIGHT = _core.CURSOR_POINT_RIGHT -CURSOR_QUESTION_ARROW = _core.CURSOR_QUESTION_ARROW -CURSOR_RIGHT_BUTTON = _core.CURSOR_RIGHT_BUTTON -CURSOR_SIZENESW = _core.CURSOR_SIZENESW -CURSOR_SIZENS = _core.CURSOR_SIZENS -CURSOR_SIZENWSE = _core.CURSOR_SIZENWSE -CURSOR_SIZEWE = _core.CURSOR_SIZEWE -CURSOR_SIZING = _core.CURSOR_SIZING -CURSOR_SPRAYCAN = _core.CURSOR_SPRAYCAN -CURSOR_WAIT = _core.CURSOR_WAIT -CURSOR_WATCH = _core.CURSOR_WATCH -CURSOR_BLANK = _core.CURSOR_BLANK -CURSOR_DEFAULT = _core.CURSOR_DEFAULT -CURSOR_COPY_ARROW = _core.CURSOR_COPY_ARROW -CURSOR_ARROWWAIT = _core.CURSOR_ARROWWAIT -CURSOR_MAX = _core.CURSOR_MAX -#--------------------------------------------------------------------------- - -class Size(object): - """ - wx.Size is a useful data structure used to represent the size of something. - It simply contians integer width and height proprtites. In most places in - wxPython where a wx.Size is expected a (width,height) tuple can be used - instead. - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxSize instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - width = property(_core.Size_width_get, _core.Size_width_set) - height = property(_core.Size_height_get, _core.Size_height_set) - x = width; y = height - def __init__(self, *args, **kwargs): - """ - __init__(self, int w=0, int h=0) -> Size - - Creates a size object. - """ - newobj = _core.new_Size(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_core.delete_Size): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def __eq__(*args, **kwargs): - """ - __eq__(self, Size sz) -> bool - - Test for equality of wx.Size objects. - """ - return _core.Size___eq__(*args, **kwargs) - - def __ne__(*args, **kwargs): - """ - __ne__(self, Size sz) -> bool - - Test for inequality. - """ - return _core.Size___ne__(*args, **kwargs) - - def __add__(*args, **kwargs): - """ - __add__(self, Size sz) -> Size - - Add sz's proprties to this and return the result. - """ - return _core.Size___add__(*args, **kwargs) - - def __sub__(*args, **kwargs): - """ - __sub__(self, Size sz) -> Size - - Subtract sz's properties from this and return the result. - """ - return _core.Size___sub__(*args, **kwargs) - - def IncTo(*args, **kwargs): - """ - IncTo(self, Size sz) - - Increments this object so that both of its dimensions are not less - than the corresponding dimensions of the size. - """ - return _core.Size_IncTo(*args, **kwargs) - - def DecTo(*args, **kwargs): - """ - DecTo(self, Size sz) - - Decrements this object so that both of its dimensions are not greater - than the corresponding dimensions of the size. - """ - return _core.Size_DecTo(*args, **kwargs) - - def Set(*args, **kwargs): - """ - Set(self, int w, int h) - - Set both width and height. - """ - return _core.Size_Set(*args, **kwargs) - - def SetWidth(*args, **kwargs): - """SetWidth(self, int w)""" - return _core.Size_SetWidth(*args, **kwargs) - - def SetHeight(*args, **kwargs): - """SetHeight(self, int h)""" - return _core.Size_SetHeight(*args, **kwargs) - - def GetWidth(*args, **kwargs): - """GetWidth(self) -> int""" - return _core.Size_GetWidth(*args, **kwargs) - - def GetHeight(*args, **kwargs): - """GetHeight(self) -> int""" - return _core.Size_GetHeight(*args, **kwargs) - - def IsFullySpecified(*args, **kwargs): - """ - IsFullySpecified(self) -> bool - - Returns True if both components of the size are non-default values. - """ - return _core.Size_IsFullySpecified(*args, **kwargs) - - def SetDefaults(*args, **kwargs): - """ - SetDefaults(self, Size size) - - Combine this size with the other one replacing the default - components of this object (i.e. equal to -1) with those of the - other. - """ - return _core.Size_SetDefaults(*args, **kwargs) - - def Get(*args, **kwargs): - """ - Get() -> (width,height) - - Returns the width and height properties as a tuple. - """ - return _core.Size_Get(*args, **kwargs) - - asTuple = Get - def __str__(self): return str(self.Get()) - def __repr__(self): return 'wx.Size'+str(self.Get()) - def __len__(self): return len(self.Get()) - def __getitem__(self, index): return self.Get()[index] - def __setitem__(self, index, val): - if index == 0: self.width = val - elif index == 1: self.height = val - else: raise IndexError - def __nonzero__(self): return self.Get() != (0,0) - __safe_for_unpickling__ = True - def __reduce__(self): return (wx.Size, self.Get()) - - -class SizePtr(Size): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Size -_core.Size_swigregister(SizePtr) - -#--------------------------------------------------------------------------- - -class RealPoint(object): - """ - A data structure for representing a point or position with floating point x - and y properties. In wxPython most places that expect a wx.RealPoint can also - accept a (x,y) tuple. - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxRealPoint instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - x = property(_core.RealPoint_x_get, _core.RealPoint_x_set) - y = property(_core.RealPoint_y_get, _core.RealPoint_y_set) - def __init__(self, *args, **kwargs): - """ - __init__(self, double x=0.0, double y=0.0) -> RealPoint - - Create a wx.RealPoint object - """ - newobj = _core.new_RealPoint(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_core.delete_RealPoint): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def __eq__(*args, **kwargs): - """ - __eq__(self, RealPoint pt) -> bool - - Test for equality of wx.RealPoint objects. - """ - return _core.RealPoint___eq__(*args, **kwargs) - - def __ne__(*args, **kwargs): - """ - __ne__(self, RealPoint pt) -> bool - - Test for inequality of wx.RealPoint objects. - """ - return _core.RealPoint___ne__(*args, **kwargs) - - def __add__(*args, **kwargs): - """ - __add__(self, RealPoint pt) -> RealPoint - - Add pt's proprties to this and return the result. - """ - return _core.RealPoint___add__(*args, **kwargs) - - def __sub__(*args, **kwargs): - """ - __sub__(self, RealPoint pt) -> RealPoint - - Subtract pt's proprties from this and return the result - """ - return _core.RealPoint___sub__(*args, **kwargs) - - def Set(*args, **kwargs): - """ - Set(self, double x, double y) - - Set both the x and y properties - """ - return _core.RealPoint_Set(*args, **kwargs) - - def Get(*args, **kwargs): - """ - Get() -> (x,y) - - Return the x and y properties as a tuple. - """ - return _core.RealPoint_Get(*args, **kwargs) - - asTuple = Get - def __str__(self): return str(self.Get()) - def __repr__(self): return 'wx.RealPoint'+str(self.Get()) - def __len__(self): return len(self.Get()) - def __getitem__(self, index): return self.Get()[index] - def __setitem__(self, index, val): - if index == 0: self.x = val - elif index == 1: self.y = val - else: raise IndexError - def __nonzero__(self): return self.Get() != (0.0, 0.0) - __safe_for_unpickling__ = True - def __reduce__(self): return (wx.RealPoint, self.Get()) - - -class RealPointPtr(RealPoint): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = RealPoint -_core.RealPoint_swigregister(RealPointPtr) - -#--------------------------------------------------------------------------- - -class Point(object): - """ - A data structure for representing a point or position with integer x and y - properties. Most places in wxPython that expect a wx.Point can also accept a - (x,y) tuple. - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxPoint instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - x = property(_core.Point_x_get, _core.Point_x_set) - y = property(_core.Point_y_get, _core.Point_y_set) - def __init__(self, *args, **kwargs): - """ - __init__(self, int x=0, int y=0) -> Point - - Create a wx.Point object - """ - newobj = _core.new_Point(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_core.delete_Point): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def __eq__(*args, **kwargs): - """ - __eq__(self, Point pt) -> bool - - Test for equality of wx.Point objects. - """ - return _core.Point___eq__(*args, **kwargs) - - def __ne__(*args, **kwargs): - """ - __ne__(self, Point pt) -> bool - - Test for inequality of wx.Point objects. - """ - return _core.Point___ne__(*args, **kwargs) - - def __add__(*args, **kwargs): - """ - __add__(self, Point pt) -> Point - - Add pt's proprties to this and return the result. - """ - return _core.Point___add__(*args, **kwargs) - - def __sub__(*args, **kwargs): - """ - __sub__(self, Point pt) -> Point - - Subtract pt's proprties from this and return the result - """ - return _core.Point___sub__(*args, **kwargs) - - def __iadd__(*args, **kwargs): - """ - __iadd__(self, Point pt) -> Point - - Add pt to this object. - """ - return _core.Point___iadd__(*args, **kwargs) - - def __isub__(*args, **kwargs): - """ - __isub__(self, Point pt) -> Point - - Subtract pt from this object. - """ - return _core.Point___isub__(*args, **kwargs) - - def Set(*args, **kwargs): - """ - Set(self, long x, long y) - - Set both the x and y properties - """ - return _core.Point_Set(*args, **kwargs) - - def Get(*args, **kwargs): - """ - Get() -> (x,y) - - Return the x and y properties as a tuple. - """ - return _core.Point_Get(*args, **kwargs) - - asTuple = Get - def __str__(self): return str(self.Get()) - def __repr__(self): return 'wx.Point'+str(self.Get()) - def __len__(self): return len(self.Get()) - def __getitem__(self, index): return self.Get()[index] - def __setitem__(self, index, val): - if index == 0: self.x = val - elif index == 1: self.y = val - else: raise IndexError - def __nonzero__(self): return self.Get() != (0,0) - __safe_for_unpickling__ = True - def __reduce__(self): return (wx.Point, self.Get()) - - -class PointPtr(Point): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Point -_core.Point_swigregister(PointPtr) - -#--------------------------------------------------------------------------- - -class Rect(object): - """ - A class for representing and manipulating rectangles. It has x, y, width and - height properties. In wxPython most palces that expect a wx.Rect can also - accept a (x,y,width,height) tuple. - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxRect instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, int x=0, int y=0, int width=0, int height=0) -> Rect - - Create a new Rect object. - """ - newobj = _core.new_Rect(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_core.delete_Rect): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def GetX(*args, **kwargs): - """GetX(self) -> int""" - return _core.Rect_GetX(*args, **kwargs) - - def SetX(*args, **kwargs): - """SetX(self, int x)""" - return _core.Rect_SetX(*args, **kwargs) - - def GetY(*args, **kwargs): - """GetY(self) -> int""" - return _core.Rect_GetY(*args, **kwargs) - - def SetY(*args, **kwargs): - """SetY(self, int y)""" - return _core.Rect_SetY(*args, **kwargs) - - def GetWidth(*args, **kwargs): - """GetWidth(self) -> int""" - return _core.Rect_GetWidth(*args, **kwargs) - - def SetWidth(*args, **kwargs): - """SetWidth(self, int w)""" - return _core.Rect_SetWidth(*args, **kwargs) - - def GetHeight(*args, **kwargs): - """GetHeight(self) -> int""" - return _core.Rect_GetHeight(*args, **kwargs) - - def SetHeight(*args, **kwargs): - """SetHeight(self, int h)""" - return _core.Rect_SetHeight(*args, **kwargs) - - def GetPosition(*args, **kwargs): - """GetPosition(self) -> Point""" - return _core.Rect_GetPosition(*args, **kwargs) - - def SetPosition(*args, **kwargs): - """SetPosition(self, Point p)""" - return _core.Rect_SetPosition(*args, **kwargs) - - def GetSize(*args, **kwargs): - """GetSize(self) -> Size""" - return _core.Rect_GetSize(*args, **kwargs) - - def SetSize(*args, **kwargs): - """SetSize(self, Size s)""" - return _core.Rect_SetSize(*args, **kwargs) - - def GetTopLeft(*args, **kwargs): - """GetTopLeft(self) -> Point""" - return _core.Rect_GetTopLeft(*args, **kwargs) - - def SetTopLeft(*args, **kwargs): - """SetTopLeft(self, Point p)""" - return _core.Rect_SetTopLeft(*args, **kwargs) - - def GetBottomRight(*args, **kwargs): - """GetBottomRight(self) -> Point""" - return _core.Rect_GetBottomRight(*args, **kwargs) - - def SetBottomRight(*args, **kwargs): - """SetBottomRight(self, Point p)""" - return _core.Rect_SetBottomRight(*args, **kwargs) - - def GetLeft(*args, **kwargs): - """GetLeft(self) -> int""" - return _core.Rect_GetLeft(*args, **kwargs) - - def GetTop(*args, **kwargs): - """GetTop(self) -> int""" - return _core.Rect_GetTop(*args, **kwargs) - - def GetBottom(*args, **kwargs): - """GetBottom(self) -> int""" - return _core.Rect_GetBottom(*args, **kwargs) - - def GetRight(*args, **kwargs): - """GetRight(self) -> int""" - return _core.Rect_GetRight(*args, **kwargs) - - def SetLeft(*args, **kwargs): - """SetLeft(self, int left)""" - return _core.Rect_SetLeft(*args, **kwargs) - - def SetRight(*args, **kwargs): - """SetRight(self, int right)""" - return _core.Rect_SetRight(*args, **kwargs) - - def SetTop(*args, **kwargs): - """SetTop(self, int top)""" - return _core.Rect_SetTop(*args, **kwargs) - - def SetBottom(*args, **kwargs): - """SetBottom(self, int bottom)""" - return _core.Rect_SetBottom(*args, **kwargs) - - position = property(GetPosition, SetPosition) - size = property(GetSize, SetSize) - left = property(GetLeft, SetLeft) - right = property(GetRight, SetRight) - top = property(GetTop, SetTop) - bottom = property(GetBottom, SetBottom) - - def Inflate(*args, **kwargs): - """ - Inflate(self, int dx, int dy) -> Rect - - Increase the rectangle size by dx in x direction and dy in y direction. Both - (or one of) parameters may be negative to decrease the rectangle size. - """ - return _core.Rect_Inflate(*args, **kwargs) - - def Deflate(*args, **kwargs): - """ - Deflate(self, int dx, int dy) -> Rect - - Decrease the rectangle size by dx in x direction and dy in y direction. Both - (or one of) parameters may be negative to increase the rectngle size. This - method is the opposite of Inflate. - """ - return _core.Rect_Deflate(*args, **kwargs) - - def OffsetXY(*args, **kwargs): - """ - OffsetXY(self, int dx, int dy) - - Moves the rectangle by the specified offset. If dx is positive, the rectangle - is moved to the right, if dy is positive, it is moved to the bottom, otherwise - it is moved to the left or top respectively. - """ - return _core.Rect_OffsetXY(*args, **kwargs) - - def Offset(*args, **kwargs): - """ - Offset(self, Point pt) - - Same as OffsetXY but uses dx,dy from Point - """ - return _core.Rect_Offset(*args, **kwargs) - - def Intersect(*args, **kwargs): - """ - Intersect(self, Rect rect) -> Rect - - Return the intersectsion of this rectangle and rect. - """ - return _core.Rect_Intersect(*args, **kwargs) - - def __add__(*args, **kwargs): - """ - __add__(self, Rect rect) -> Rect - - Add the properties of rect to this rectangle and return the result. - """ - return _core.Rect___add__(*args, **kwargs) - - def __iadd__(*args, **kwargs): - """ - __iadd__(self, Rect rect) -> Rect - - Add the properties of rect to this rectangle, updating this rectangle. - """ - return _core.Rect___iadd__(*args, **kwargs) - - def __eq__(*args, **kwargs): - """ - __eq__(self, Rect rect) -> bool - - Test for equality. - """ - return _core.Rect___eq__(*args, **kwargs) - - def __ne__(*args, **kwargs): - """ - __ne__(self, Rect rect) -> bool - - Test for inequality. - """ - return _core.Rect___ne__(*args, **kwargs) - - def InsideXY(*args, **kwargs): - """ - InsideXY(self, int x, int y) -> bool - - Return True if the point is (not strcitly) inside the rect. - """ - return _core.Rect_InsideXY(*args, **kwargs) - - def Inside(*args, **kwargs): - """ - Inside(self, Point pt) -> bool - - Return True if the point is (not strcitly) inside the rect. - """ - return _core.Rect_Inside(*args, **kwargs) - - def Intersects(*args, **kwargs): - """ - Intersects(self, Rect rect) -> bool - - Returns True if the rectangles have a non empty intersection. - """ - return _core.Rect_Intersects(*args, **kwargs) - - x = property(_core.Rect_x_get, _core.Rect_x_set) - y = property(_core.Rect_y_get, _core.Rect_y_set) - width = property(_core.Rect_width_get, _core.Rect_width_set) - height = property(_core.Rect_height_get, _core.Rect_height_set) - def Set(*args, **kwargs): - """ - Set(self, int x=0, int y=0, int width=0, int height=0) - - Set all rectangle properties. - """ - return _core.Rect_Set(*args, **kwargs) - - def Get(*args, **kwargs): - """ - Get() -> (x,y,width,height) - - Return the rectangle properties as a tuple. - """ - return _core.Rect_Get(*args, **kwargs) - - asTuple = Get - def __str__(self): return str(self.Get()) - def __repr__(self): return 'wx.Rect'+str(self.Get()) - def __len__(self): return len(self.Get()) - def __getitem__(self, index): return self.Get()[index] - def __setitem__(self, index, val): - if index == 0: self.x = val - elif index == 1: self.y = val - elif index == 2: self.width = val - elif index == 3: self.height = val - else: raise IndexError - def __nonzero__(self): return self.Get() != (0,0,0,0) - __safe_for_unpickling__ = True - def __reduce__(self): return (wx.Rect, self.Get()) - - -class RectPtr(Rect): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Rect -_core.Rect_swigregister(RectPtr) - -def RectPP(*args, **kwargs): - """ - RectPP(Point topLeft, Point bottomRight) -> Rect - - Create a new Rect object from Points representing two corners. - """ - val = _core.new_RectPP(*args, **kwargs) - val.thisown = 1 - return val - -def RectPS(*args, **kwargs): - """ - RectPS(Point pos, Size size) -> Rect - - Create a new Rect from a position and size. - """ - val = _core.new_RectPS(*args, **kwargs) - val.thisown = 1 - return val - - -def IntersectRect(*args, **kwargs): - """ - IntersectRect(Rect r1, Rect r2) -> Rect - - Calculate and return the intersection of r1 and r2. - """ - return _core.IntersectRect(*args, **kwargs) -#--------------------------------------------------------------------------- - -class Point2D(object): - """wx.Point2Ds represent a point or a vector in a 2d coordinate system with floating point values.""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxPoint2D instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, double x=0.0, double y=0.0) -> Point2D - - Create a w.Point2D object. - """ - newobj = _core.new_Point2D(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetFloor(*args, **kwargs): - """ - GetFloor() -> (x,y) - - Convert to integer - """ - return _core.Point2D_GetFloor(*args, **kwargs) - - def GetRounded(*args, **kwargs): - """ - GetRounded() -> (x,y) - - Convert to integer - """ - return _core.Point2D_GetRounded(*args, **kwargs) - - def GetVectorLength(*args, **kwargs): - """GetVectorLength(self) -> double""" - return _core.Point2D_GetVectorLength(*args, **kwargs) - - def GetVectorAngle(*args, **kwargs): - """GetVectorAngle(self) -> double""" - return _core.Point2D_GetVectorAngle(*args, **kwargs) - - def SetVectorLength(*args, **kwargs): - """SetVectorLength(self, double length)""" - return _core.Point2D_SetVectorLength(*args, **kwargs) - - def SetVectorAngle(*args, **kwargs): - """SetVectorAngle(self, double degrees)""" - return _core.Point2D_SetVectorAngle(*args, **kwargs) - - def SetPolarCoordinates(self, angle, length): - self.SetVectorLength(length) - self.SetVectorAngle(angle) - def Normalize(self): - self.SetVectorLength(1.0) - - def GetDistance(*args, **kwargs): - """GetDistance(self, Point2D pt) -> double""" - return _core.Point2D_GetDistance(*args, **kwargs) - - def GetDistanceSquare(*args, **kwargs): - """GetDistanceSquare(self, Point2D pt) -> double""" - return _core.Point2D_GetDistanceSquare(*args, **kwargs) - - def GetDotProduct(*args, **kwargs): - """GetDotProduct(self, Point2D vec) -> double""" - return _core.Point2D_GetDotProduct(*args, **kwargs) - - def GetCrossProduct(*args, **kwargs): - """GetCrossProduct(self, Point2D vec) -> double""" - return _core.Point2D_GetCrossProduct(*args, **kwargs) - - def __neg__(*args, **kwargs): - """ - __neg__(self) -> Point2D - - the reflection of this point - """ - return _core.Point2D___neg__(*args, **kwargs) - - def __iadd__(*args, **kwargs): - """__iadd__(self, Point2D pt) -> Point2D""" - return _core.Point2D___iadd__(*args, **kwargs) - - def __isub__(*args, **kwargs): - """__isub__(self, Point2D pt) -> Point2D""" - return _core.Point2D___isub__(*args, **kwargs) - - def __imul__(*args, **kwargs): - """__imul__(self, Point2D pt) -> Point2D""" - return _core.Point2D___imul__(*args, **kwargs) - - def __idiv__(*args, **kwargs): - """__idiv__(self, Point2D pt) -> Point2D""" - return _core.Point2D___idiv__(*args, **kwargs) - - def __eq__(*args, **kwargs): - """ - __eq__(self, Point2D pt) -> bool - - Test for equality - """ - return _core.Point2D___eq__(*args, **kwargs) - - def __ne__(*args, **kwargs): - """ - __ne__(self, Point2D pt) -> bool - - Test for inequality - """ - return _core.Point2D___ne__(*args, **kwargs) - - x = property(_core.Point2D_x_get, _core.Point2D_x_set) - y = property(_core.Point2D_y_get, _core.Point2D_y_set) - def Set(*args, **kwargs): - """Set(self, double x=0, double y=0)""" - return _core.Point2D_Set(*args, **kwargs) - - def Get(*args, **kwargs): - """ - Get() -> (x,y) - - Return x and y properties as a tuple. - """ - return _core.Point2D_Get(*args, **kwargs) - - asTuple = Get - def __str__(self): return str(self.Get()) - def __repr__(self): return 'wx.Point2D'+str(self.Get()) - def __len__(self): return len(self.Get()) - def __getitem__(self, index): return self.Get()[index] - def __setitem__(self, index, val): - if index == 0: self.x = val - elif index == 1: self.y = val - else: raise IndexError - def __nonzero__(self): return self.Get() != (0.0, 0.0) - __safe_for_unpickling__ = True - def __reduce__(self): return (wx.Point2D, self.Get()) - - -class Point2DPtr(Point2D): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Point2D -_core.Point2D_swigregister(Point2DPtr) - -def Point2DCopy(*args, **kwargs): - """ - Point2DCopy(Point2D pt) -> Point2D - - Create a w.Point2D object. - """ - val = _core.new_Point2DCopy(*args, **kwargs) - val.thisown = 1 - return val - -def Point2DFromPoint(*args, **kwargs): - """ - Point2DFromPoint(Point pt) -> Point2D - - Create a w.Point2D object. - """ - val = _core.new_Point2DFromPoint(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -FromStart = _core.FromStart -FromCurrent = _core.FromCurrent -FromEnd = _core.FromEnd -class InputStream(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyInputStream instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, PyObject p) -> InputStream""" - newobj = _core.new_InputStream(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def close(*args, **kwargs): - """close(self)""" - return _core.InputStream_close(*args, **kwargs) - - def flush(*args, **kwargs): - """flush(self)""" - return _core.InputStream_flush(*args, **kwargs) - - def eof(*args, **kwargs): - """eof(self) -> bool""" - return _core.InputStream_eof(*args, **kwargs) - - def read(*args, **kwargs): - """read(self, int size=-1) -> PyObject""" - return _core.InputStream_read(*args, **kwargs) - - def readline(*args, **kwargs): - """readline(self, int size=-1) -> PyObject""" - return _core.InputStream_readline(*args, **kwargs) - - def readlines(*args, **kwargs): - """readlines(self, int sizehint=-1) -> PyObject""" - return _core.InputStream_readlines(*args, **kwargs) - - def seek(*args, **kwargs): - """seek(self, int offset, int whence=0)""" - return _core.InputStream_seek(*args, **kwargs) - - def tell(*args, **kwargs): - """tell(self) -> int""" - return _core.InputStream_tell(*args, **kwargs) - - def Peek(*args, **kwargs): - """Peek(self) -> char""" - return _core.InputStream_Peek(*args, **kwargs) - - def GetC(*args, **kwargs): - """GetC(self) -> char""" - return _core.InputStream_GetC(*args, **kwargs) - - def LastRead(*args, **kwargs): - """LastRead(self) -> size_t""" - return _core.InputStream_LastRead(*args, **kwargs) - - def CanRead(*args, **kwargs): - """CanRead(self) -> bool""" - return _core.InputStream_CanRead(*args, **kwargs) - - def Eof(*args, **kwargs): - """Eof(self) -> bool""" - return _core.InputStream_Eof(*args, **kwargs) - - def Ungetch(*args, **kwargs): - """Ungetch(self, char c) -> bool""" - return _core.InputStream_Ungetch(*args, **kwargs) - - def SeekI(*args, **kwargs): - """SeekI(self, long pos, int mode=FromStart) -> long""" - return _core.InputStream_SeekI(*args, **kwargs) - - def TellI(*args, **kwargs): - """TellI(self) -> long""" - return _core.InputStream_TellI(*args, **kwargs) - - -class InputStreamPtr(InputStream): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = InputStream -_core.InputStream_swigregister(InputStreamPtr) -DefaultPosition = cvar.DefaultPosition -DefaultSize = cvar.DefaultSize - -class OutputStream(object): - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxOutputStream instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def write(*args, **kwargs): - """write(self, PyObject obj)""" - return _core.OutputStream_write(*args, **kwargs) - - -class OutputStreamPtr(OutputStream): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = OutputStream -_core.OutputStream_swigregister(OutputStreamPtr) - -#--------------------------------------------------------------------------- - -class FSFile(Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxFSFile instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, InputStream stream, String loc, String mimetype, String anchor, - DateTime modif) -> FSFile - """ - newobj = _core.new_FSFile(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_core.delete_FSFile): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def GetStream(*args, **kwargs): - """GetStream(self) -> InputStream""" - return _core.FSFile_GetStream(*args, **kwargs) - - def GetMimeType(*args, **kwargs): - """GetMimeType(self) -> String""" - return _core.FSFile_GetMimeType(*args, **kwargs) - - def GetLocation(*args, **kwargs): - """GetLocation(self) -> String""" - return _core.FSFile_GetLocation(*args, **kwargs) - - def GetAnchor(*args, **kwargs): - """GetAnchor(self) -> String""" - return _core.FSFile_GetAnchor(*args, **kwargs) - - def GetModificationTime(*args, **kwargs): - """GetModificationTime(self) -> DateTime""" - return _core.FSFile_GetModificationTime(*args, **kwargs) - - -class FSFilePtr(FSFile): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = FSFile -_core.FSFile_swigregister(FSFilePtr) - -class CPPFileSystemHandler(object): - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxFileSystemHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - -class CPPFileSystemHandlerPtr(CPPFileSystemHandler): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = CPPFileSystemHandler -_core.CPPFileSystemHandler_swigregister(CPPFileSystemHandlerPtr) - -class FileSystemHandler(CPPFileSystemHandler): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyFileSystemHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> FileSystemHandler""" - newobj = _core.new_FileSystemHandler(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setCallbackInfo(self, FileSystemHandler) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _core.FileSystemHandler__setCallbackInfo(*args, **kwargs) - - def CanOpen(*args, **kwargs): - """CanOpen(self, String location) -> bool""" - return _core.FileSystemHandler_CanOpen(*args, **kwargs) - - def OpenFile(*args, **kwargs): - """OpenFile(self, FileSystem fs, String location) -> FSFile""" - return _core.FileSystemHandler_OpenFile(*args, **kwargs) - - def FindFirst(*args, **kwargs): - """FindFirst(self, String spec, int flags=0) -> String""" - return _core.FileSystemHandler_FindFirst(*args, **kwargs) - - def FindNext(*args, **kwargs): - """FindNext(self) -> String""" - return _core.FileSystemHandler_FindNext(*args, **kwargs) - - def GetProtocol(*args, **kwargs): - """GetProtocol(self, String location) -> String""" - return _core.FileSystemHandler_GetProtocol(*args, **kwargs) - - def GetLeftLocation(*args, **kwargs): - """GetLeftLocation(self, String location) -> String""" - return _core.FileSystemHandler_GetLeftLocation(*args, **kwargs) - - def GetAnchor(*args, **kwargs): - """GetAnchor(self, String location) -> String""" - return _core.FileSystemHandler_GetAnchor(*args, **kwargs) - - def GetRightLocation(*args, **kwargs): - """GetRightLocation(self, String location) -> String""" - return _core.FileSystemHandler_GetRightLocation(*args, **kwargs) - - def GetMimeTypeFromExt(*args, **kwargs): - """GetMimeTypeFromExt(self, String location) -> String""" - return _core.FileSystemHandler_GetMimeTypeFromExt(*args, **kwargs) - - -class FileSystemHandlerPtr(FileSystemHandler): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = FileSystemHandler -_core.FileSystemHandler_swigregister(FileSystemHandlerPtr) - -class FileSystem(Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxFileSystem instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> FileSystem""" - newobj = _core.new_FileSystem(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_core.delete_FileSystem): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def ChangePathTo(*args, **kwargs): - """ChangePathTo(self, String location, bool is_dir=False)""" - return _core.FileSystem_ChangePathTo(*args, **kwargs) - - def GetPath(*args, **kwargs): - """GetPath(self) -> String""" - return _core.FileSystem_GetPath(*args, **kwargs) - - def OpenFile(*args, **kwargs): - """OpenFile(self, String location) -> FSFile""" - return _core.FileSystem_OpenFile(*args, **kwargs) - - def FindFirst(*args, **kwargs): - """FindFirst(self, String spec, int flags=0) -> String""" - return _core.FileSystem_FindFirst(*args, **kwargs) - - def FindNext(*args, **kwargs): - """FindNext(self) -> String""" - return _core.FileSystem_FindNext(*args, **kwargs) - - def AddHandler(*args, **kwargs): - """FileSystem.AddHandler(CPPFileSystemHandler handler)""" - return _core.FileSystem_AddHandler(*args, **kwargs) - - AddHandler = staticmethod(AddHandler) - def CleanUpHandlers(*args, **kwargs): - """FileSystem.CleanUpHandlers()""" - return _core.FileSystem_CleanUpHandlers(*args, **kwargs) - - CleanUpHandlers = staticmethod(CleanUpHandlers) - def FileNameToURL(*args, **kwargs): - """FileSystem.FileNameToURL(String filename) -> String""" - return _core.FileSystem_FileNameToURL(*args, **kwargs) - - FileNameToURL = staticmethod(FileNameToURL) - -class FileSystemPtr(FileSystem): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = FileSystem -_core.FileSystem_swigregister(FileSystemPtr) - -def FileSystem_AddHandler(*args, **kwargs): - """FileSystem_AddHandler(CPPFileSystemHandler handler)""" - return _core.FileSystem_AddHandler(*args, **kwargs) - -def FileSystem_CleanUpHandlers(*args, **kwargs): - """FileSystem_CleanUpHandlers()""" - return _core.FileSystem_CleanUpHandlers(*args, **kwargs) - -def FileSystem_FileNameToURL(*args, **kwargs): - """FileSystem_FileNameToURL(String filename) -> String""" - return _core.FileSystem_FileNameToURL(*args, **kwargs) - - -def FileSystem_URLToFileName(*args, **kwargs): - """FileSystem_URLToFileName(String url) -> String""" - return _core.FileSystem_URLToFileName(*args, **kwargs) -class InternetFSHandler(CPPFileSystemHandler): - def __repr__(self): - return "<%s.%s; proxy of C++ wxInternetFSHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> InternetFSHandler""" - newobj = _core.new_InternetFSHandler(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def CanOpen(*args, **kwargs): - """CanOpen(self, String location) -> bool""" - return _core.InternetFSHandler_CanOpen(*args, **kwargs) - - def OpenFile(*args, **kwargs): - """OpenFile(self, FileSystem fs, String location) -> FSFile""" - return _core.InternetFSHandler_OpenFile(*args, **kwargs) - - -class InternetFSHandlerPtr(InternetFSHandler): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = InternetFSHandler -_core.InternetFSHandler_swigregister(InternetFSHandlerPtr) - -class ZipFSHandler(CPPFileSystemHandler): - def __repr__(self): - return "<%s.%s; proxy of C++ wxZipFSHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> ZipFSHandler""" - newobj = _core.new_ZipFSHandler(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def CanOpen(*args, **kwargs): - """CanOpen(self, String location) -> bool""" - return _core.ZipFSHandler_CanOpen(*args, **kwargs) - - def OpenFile(*args, **kwargs): - """OpenFile(self, FileSystem fs, String location) -> FSFile""" - return _core.ZipFSHandler_OpenFile(*args, **kwargs) - - def FindFirst(*args, **kwargs): - """FindFirst(self, String spec, int flags=0) -> String""" - return _core.ZipFSHandler_FindFirst(*args, **kwargs) - - def FindNext(*args, **kwargs): - """FindNext(self) -> String""" - return _core.ZipFSHandler_FindNext(*args, **kwargs) - - -class ZipFSHandlerPtr(ZipFSHandler): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ZipFSHandler -_core.ZipFSHandler_swigregister(ZipFSHandlerPtr) - - -def __wxMemoryFSHandler_AddFile_wxImage(*args, **kwargs): - """__wxMemoryFSHandler_AddFile_wxImage(String filename, Image image, long type)""" - return _core.__wxMemoryFSHandler_AddFile_wxImage(*args, **kwargs) - -def __wxMemoryFSHandler_AddFile_wxBitmap(*args, **kwargs): - """__wxMemoryFSHandler_AddFile_wxBitmap(String filename, Bitmap bitmap, long type)""" - return _core.__wxMemoryFSHandler_AddFile_wxBitmap(*args, **kwargs) - -def __wxMemoryFSHandler_AddFile_Data(*args, **kwargs): - """__wxMemoryFSHandler_AddFile_Data(String filename, PyObject data)""" - return _core.__wxMemoryFSHandler_AddFile_Data(*args, **kwargs) -def MemoryFSHandler_AddFile(filename, a, b=''): - if isinstance(a, wx.Image): - __wxMemoryFSHandler_AddFile_wxImage(filename, a, b) - elif isinstance(a, wx.Bitmap): - __wxMemoryFSHandler_AddFile_wxBitmap(filename, a, b) - elif type(a) == str: - __wxMemoryFSHandler_AddFile_Data(filename, a) - else: raise TypeError, 'wx.Image, wx.Bitmap or string expected' - -class MemoryFSHandler(CPPFileSystemHandler): - def __repr__(self): - return "<%s.%s; proxy of C++ wxMemoryFSHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> MemoryFSHandler""" - newobj = _core.new_MemoryFSHandler(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def RemoveFile(*args, **kwargs): - """MemoryFSHandler.RemoveFile(String filename)""" - return _core.MemoryFSHandler_RemoveFile(*args, **kwargs) - - RemoveFile = staticmethod(RemoveFile) - AddFile = staticmethod(MemoryFSHandler_AddFile) - def CanOpen(*args, **kwargs): - """CanOpen(self, String location) -> bool""" - return _core.MemoryFSHandler_CanOpen(*args, **kwargs) - - def OpenFile(*args, **kwargs): - """OpenFile(self, FileSystem fs, String location) -> FSFile""" - return _core.MemoryFSHandler_OpenFile(*args, **kwargs) - - def FindFirst(*args, **kwargs): - """FindFirst(self, String spec, int flags=0) -> String""" - return _core.MemoryFSHandler_FindFirst(*args, **kwargs) - - def FindNext(*args, **kwargs): - """FindNext(self) -> String""" - return _core.MemoryFSHandler_FindNext(*args, **kwargs) - - -class MemoryFSHandlerPtr(MemoryFSHandler): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = MemoryFSHandler -_core.MemoryFSHandler_swigregister(MemoryFSHandlerPtr) - -def MemoryFSHandler_RemoveFile(*args, **kwargs): - """MemoryFSHandler_RemoveFile(String filename)""" - return _core.MemoryFSHandler_RemoveFile(*args, **kwargs) - -#--------------------------------------------------------------------------- - -class ImageHandler(Object): - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxImageHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def GetName(*args, **kwargs): - """GetName(self) -> String""" - return _core.ImageHandler_GetName(*args, **kwargs) - - def GetExtension(*args, **kwargs): - """GetExtension(self) -> String""" - return _core.ImageHandler_GetExtension(*args, **kwargs) - - def GetType(*args, **kwargs): - """GetType(self) -> long""" - return _core.ImageHandler_GetType(*args, **kwargs) - - def GetMimeType(*args, **kwargs): - """GetMimeType(self) -> String""" - return _core.ImageHandler_GetMimeType(*args, **kwargs) - - def CanRead(*args, **kwargs): - """CanRead(self, String name) -> bool""" - return _core.ImageHandler_CanRead(*args, **kwargs) - - def SetName(*args, **kwargs): - """SetName(self, String name)""" - return _core.ImageHandler_SetName(*args, **kwargs) - - def SetExtension(*args, **kwargs): - """SetExtension(self, String extension)""" - return _core.ImageHandler_SetExtension(*args, **kwargs) - - def SetType(*args, **kwargs): - """SetType(self, long type)""" - return _core.ImageHandler_SetType(*args, **kwargs) - - def SetMimeType(*args, **kwargs): - """SetMimeType(self, String mimetype)""" - return _core.ImageHandler_SetMimeType(*args, **kwargs) - - -class ImageHandlerPtr(ImageHandler): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ImageHandler -_core.ImageHandler_swigregister(ImageHandlerPtr) - -class ImageHistogram(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxImageHistogram instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> ImageHistogram""" - newobj = _core.new_ImageHistogram(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def MakeKey(*args, **kwargs): - """ - ImageHistogram.MakeKey(unsigned char r, unsigned char g, unsigned char b) -> unsigned long - - Get the key in the histogram for the given RGB values - """ - return _core.ImageHistogram_MakeKey(*args, **kwargs) - - MakeKey = staticmethod(MakeKey) - def FindFirstUnusedColour(*args, **kwargs): - """ - FindFirstUnusedColour(int startR=1, int startG=0, int startB=0) -> (success, r, g, b) - - Find first colour that is not used in the image and has higher RGB values than - startR, startG, startB. Returns a tuple consisting of a success flag and rgb - values. - """ - return _core.ImageHistogram_FindFirstUnusedColour(*args, **kwargs) - - -class ImageHistogramPtr(ImageHistogram): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ImageHistogram -_core.ImageHistogram_swigregister(ImageHistogramPtr) - -def ImageHistogram_MakeKey(*args, **kwargs): - """ - ImageHistogram_MakeKey(unsigned char r, unsigned char g, unsigned char b) -> unsigned long - - Get the key in the histogram for the given RGB values - """ - return _core.ImageHistogram_MakeKey(*args, **kwargs) - -class Image(Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxImage instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, String name, long type=BITMAP_TYPE_ANY, int index=-1) -> Image""" - newobj = _core.new_Image(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_core.delete_Image): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Create(*args, **kwargs): - """Create(self, int width, int height)""" - return _core.Image_Create(*args, **kwargs) - - def Destroy(*args, **kwargs): - """ - Destroy(self) - - Deletes the C++ object this Python object is a proxy for. - """ - return _core.Image_Destroy(*args, **kwargs) - - def Scale(*args, **kwargs): - """Scale(self, int width, int height) -> Image""" - return _core.Image_Scale(*args, **kwargs) - - def ShrinkBy(*args, **kwargs): - """ShrinkBy(self, int xFactor, int yFactor) -> Image""" - return _core.Image_ShrinkBy(*args, **kwargs) - - def Rescale(*args, **kwargs): - """Rescale(self, int width, int height) -> Image""" - return _core.Image_Rescale(*args, **kwargs) - - def SetRGB(*args, **kwargs): - """SetRGB(self, int x, int y, unsigned char r, unsigned char g, unsigned char b)""" - return _core.Image_SetRGB(*args, **kwargs) - - def GetRed(*args, **kwargs): - """GetRed(self, int x, int y) -> unsigned char""" - return _core.Image_GetRed(*args, **kwargs) - - def GetGreen(*args, **kwargs): - """GetGreen(self, int x, int y) -> unsigned char""" - return _core.Image_GetGreen(*args, **kwargs) - - def GetBlue(*args, **kwargs): - """GetBlue(self, int x, int y) -> unsigned char""" - return _core.Image_GetBlue(*args, **kwargs) - - def SetAlpha(*args, **kwargs): - """SetAlpha(self, int x, int y, unsigned char alpha)""" - return _core.Image_SetAlpha(*args, **kwargs) - - def GetAlpha(*args, **kwargs): - """GetAlpha(self, int x, int y) -> unsigned char""" - return _core.Image_GetAlpha(*args, **kwargs) - - def HasAlpha(*args, **kwargs): - """HasAlpha(self) -> bool""" - return _core.Image_HasAlpha(*args, **kwargs) - - def FindFirstUnusedColour(*args, **kwargs): - """ - FindFirstUnusedColour(int startR=1, int startG=0, int startB=0) -> (success, r, g, b) - - Find first colour that is not used in the image and has higher RGB values than - startR, startG, startB. Returns a tuple consisting of a success flag and rgb - values. - """ - return _core.Image_FindFirstUnusedColour(*args, **kwargs) - - def SetMaskFromImage(*args, **kwargs): - """SetMaskFromImage(self, Image mask, byte mr, byte mg, byte mb) -> bool""" - return _core.Image_SetMaskFromImage(*args, **kwargs) - - def CanRead(*args, **kwargs): - """Image.CanRead(String name) -> bool""" - return _core.Image_CanRead(*args, **kwargs) - - CanRead = staticmethod(CanRead) - def GetImageCount(*args, **kwargs): - """Image.GetImageCount(String name, long type=BITMAP_TYPE_ANY) -> int""" - return _core.Image_GetImageCount(*args, **kwargs) - - GetImageCount = staticmethod(GetImageCount) - def LoadFile(*args, **kwargs): - """LoadFile(self, String name, long type=BITMAP_TYPE_ANY, int index=-1) -> bool""" - return _core.Image_LoadFile(*args, **kwargs) - - def LoadMimeFile(*args, **kwargs): - """LoadMimeFile(self, String name, String mimetype, int index=-1) -> bool""" - return _core.Image_LoadMimeFile(*args, **kwargs) - - def SaveFile(*args, **kwargs): - """SaveFile(self, String name, int type) -> bool""" - return _core.Image_SaveFile(*args, **kwargs) - - def SaveMimeFile(*args, **kwargs): - """SaveMimeFile(self, String name, String mimetype) -> bool""" - return _core.Image_SaveMimeFile(*args, **kwargs) - - def CanReadStream(*args, **kwargs): - """Image.CanReadStream(InputStream stream) -> bool""" - return _core.Image_CanReadStream(*args, **kwargs) - - CanReadStream = staticmethod(CanReadStream) - def LoadStream(*args, **kwargs): - """LoadStream(self, InputStream stream, long type=BITMAP_TYPE_ANY, int index=-1) -> bool""" - return _core.Image_LoadStream(*args, **kwargs) - - def LoadMimeStream(*args, **kwargs): - """LoadMimeStream(self, InputStream stream, String mimetype, int index=-1) -> bool""" - return _core.Image_LoadMimeStream(*args, **kwargs) - - def Ok(*args, **kwargs): - """Ok(self) -> bool""" - return _core.Image_Ok(*args, **kwargs) - - def GetWidth(*args, **kwargs): - """GetWidth(self) -> int""" - return _core.Image_GetWidth(*args, **kwargs) - - def GetHeight(*args, **kwargs): - """GetHeight(self) -> int""" - return _core.Image_GetHeight(*args, **kwargs) - - def GetSize(*args, **kwargs): - """GetSize(self) -> Size""" - return _core.Image_GetSize(*args, **kwargs) - - def GetSubImage(*args, **kwargs): - """GetSubImage(self, Rect rect) -> Image""" - return _core.Image_GetSubImage(*args, **kwargs) - - def Copy(*args, **kwargs): - """Copy(self) -> Image""" - return _core.Image_Copy(*args, **kwargs) - - def Paste(*args, **kwargs): - """Paste(self, Image image, int x, int y)""" - return _core.Image_Paste(*args, **kwargs) - - def GetData(*args, **kwargs): - """GetData(self) -> PyObject""" - return _core.Image_GetData(*args, **kwargs) - - def SetData(*args, **kwargs): - """SetData(self, PyObject data)""" - return _core.Image_SetData(*args, **kwargs) - - def GetDataBuffer(*args, **kwargs): - """GetDataBuffer(self) -> PyObject""" - return _core.Image_GetDataBuffer(*args, **kwargs) - - def SetDataBuffer(*args, **kwargs): - """SetDataBuffer(self, PyObject data)""" - return _core.Image_SetDataBuffer(*args, **kwargs) - - def GetAlphaData(*args, **kwargs): - """GetAlphaData(self) -> PyObject""" - return _core.Image_GetAlphaData(*args, **kwargs) - - def SetAlphaData(*args, **kwargs): - """SetAlphaData(self, PyObject data)""" - return _core.Image_SetAlphaData(*args, **kwargs) - - def GetAlphaBuffer(*args, **kwargs): - """GetAlphaBuffer(self) -> PyObject""" - return _core.Image_GetAlphaBuffer(*args, **kwargs) - - def SetAlphaBuffer(*args, **kwargs): - """SetAlphaBuffer(self, PyObject data)""" - return _core.Image_SetAlphaBuffer(*args, **kwargs) - - def SetMaskColour(*args, **kwargs): - """SetMaskColour(self, unsigned char r, unsigned char g, unsigned char b)""" - return _core.Image_SetMaskColour(*args, **kwargs) - - def GetMaskRed(*args, **kwargs): - """GetMaskRed(self) -> unsigned char""" - return _core.Image_GetMaskRed(*args, **kwargs) - - def GetMaskGreen(*args, **kwargs): - """GetMaskGreen(self) -> unsigned char""" - return _core.Image_GetMaskGreen(*args, **kwargs) - - def GetMaskBlue(*args, **kwargs): - """GetMaskBlue(self) -> unsigned char""" - return _core.Image_GetMaskBlue(*args, **kwargs) - - def SetMask(*args, **kwargs): - """SetMask(self, bool mask=True)""" - return _core.Image_SetMask(*args, **kwargs) - - def HasMask(*args, **kwargs): - """HasMask(self) -> bool""" - return _core.Image_HasMask(*args, **kwargs) - - def Rotate(*args, **kwargs): - """ - Rotate(self, double angle, Point centre_of_rotation, bool interpolating=True, - Point offset_after_rotation=None) -> Image - """ - return _core.Image_Rotate(*args, **kwargs) - - def Rotate90(*args, **kwargs): - """Rotate90(self, bool clockwise=True) -> Image""" - return _core.Image_Rotate90(*args, **kwargs) - - def Mirror(*args, **kwargs): - """Mirror(self, bool horizontally=True) -> Image""" - return _core.Image_Mirror(*args, **kwargs) - - def Replace(*args, **kwargs): - """ - Replace(self, unsigned char r1, unsigned char g1, unsigned char b1, - unsigned char r2, unsigned char g2, unsigned char b2) - """ - return _core.Image_Replace(*args, **kwargs) - - def ConvertToMono(*args, **kwargs): - """ConvertToMono(self, unsigned char r, unsigned char g, unsigned char b) -> Image""" - return _core.Image_ConvertToMono(*args, **kwargs) - - def SetOption(*args, **kwargs): - """SetOption(self, String name, String value)""" - return _core.Image_SetOption(*args, **kwargs) - - def SetOptionInt(*args, **kwargs): - """SetOptionInt(self, String name, int value)""" - return _core.Image_SetOptionInt(*args, **kwargs) - - def GetOption(*args, **kwargs): - """GetOption(self, String name) -> String""" - return _core.Image_GetOption(*args, **kwargs) - - def GetOptionInt(*args, **kwargs): - """GetOptionInt(self, String name) -> int""" - return _core.Image_GetOptionInt(*args, **kwargs) - - def HasOption(*args, **kwargs): - """HasOption(self, String name) -> bool""" - return _core.Image_HasOption(*args, **kwargs) - - def CountColours(*args, **kwargs): - """CountColours(self, unsigned long stopafter=(unsigned long) -1) -> unsigned long""" - return _core.Image_CountColours(*args, **kwargs) - - def ComputeHistogram(*args, **kwargs): - """ComputeHistogram(self, ImageHistogram h) -> unsigned long""" - return _core.Image_ComputeHistogram(*args, **kwargs) - - def AddHandler(*args, **kwargs): - """Image.AddHandler(ImageHandler handler)""" - return _core.Image_AddHandler(*args, **kwargs) - - AddHandler = staticmethod(AddHandler) - def InsertHandler(*args, **kwargs): - """Image.InsertHandler(ImageHandler handler)""" - return _core.Image_InsertHandler(*args, **kwargs) - - InsertHandler = staticmethod(InsertHandler) - def RemoveHandler(*args, **kwargs): - """Image.RemoveHandler(String name) -> bool""" - return _core.Image_RemoveHandler(*args, **kwargs) - - RemoveHandler = staticmethod(RemoveHandler) - def GetImageExtWildcard(*args, **kwargs): - """Image.GetImageExtWildcard() -> String""" - return _core.Image_GetImageExtWildcard(*args, **kwargs) - - GetImageExtWildcard = staticmethod(GetImageExtWildcard) - def ConvertToBitmap(*args, **kwargs): - """ConvertToBitmap(self) -> Bitmap""" - return _core.Image_ConvertToBitmap(*args, **kwargs) - - def ConvertToMonoBitmap(*args, **kwargs): - """ConvertToMonoBitmap(self, unsigned char red, unsigned char green, unsigned char blue) -> Bitmap""" - return _core.Image_ConvertToMonoBitmap(*args, **kwargs) - - def __nonzero__(self): return self.Ok() - -class ImagePtr(Image): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Image -_core.Image_swigregister(ImagePtr) - -def ImageFromMime(*args, **kwargs): - """ImageFromMime(String name, String mimetype, int index=-1) -> Image""" - val = _core.new_ImageFromMime(*args, **kwargs) - val.thisown = 1 - return val - -def ImageFromStream(*args, **kwargs): - """ImageFromStream(InputStream stream, long type=BITMAP_TYPE_ANY, int index=-1) -> Image""" - val = _core.new_ImageFromStream(*args, **kwargs) - val.thisown = 1 - return val - -def ImageFromStreamMime(*args, **kwargs): - """ImageFromStreamMime(InputStream stream, String mimetype, int index=-1) -> Image""" - val = _core.new_ImageFromStreamMime(*args, **kwargs) - val.thisown = 1 - return val - -def EmptyImage(*args): - """ - EmptyImage(int width=0, int height=0, bool clear=True) -> Image - EmptyImage(Size size, bool clear=True) -> Image - """ - val = _core.new_EmptyImage(*args) - val.thisown = 1 - return val - -def ImageFromBitmap(*args, **kwargs): - """ImageFromBitmap(Bitmap bitmap) -> Image""" - val = _core.new_ImageFromBitmap(*args, **kwargs) - val.thisown = 1 - return val - -def ImageFromData(*args, **kwargs): - """ImageFromData(int width, int height, unsigned char data) -> Image""" - val = _core.new_ImageFromData(*args, **kwargs) - val.thisown = 1 - return val - -def Image_CanRead(*args, **kwargs): - """Image_CanRead(String name) -> bool""" - return _core.Image_CanRead(*args, **kwargs) - -def Image_GetImageCount(*args, **kwargs): - """Image_GetImageCount(String name, long type=BITMAP_TYPE_ANY) -> int""" - return _core.Image_GetImageCount(*args, **kwargs) - -def Image_CanReadStream(*args, **kwargs): - """Image_CanReadStream(InputStream stream) -> bool""" - return _core.Image_CanReadStream(*args, **kwargs) - -def Image_AddHandler(*args, **kwargs): - """Image_AddHandler(ImageHandler handler)""" - return _core.Image_AddHandler(*args, **kwargs) - -def Image_InsertHandler(*args, **kwargs): - """Image_InsertHandler(ImageHandler handler)""" - return _core.Image_InsertHandler(*args, **kwargs) - -def Image_RemoveHandler(*args, **kwargs): - """Image_RemoveHandler(String name) -> bool""" - return _core.Image_RemoveHandler(*args, **kwargs) - -def Image_GetImageExtWildcard(*args, **kwargs): - """Image_GetImageExtWildcard() -> String""" - return _core.Image_GetImageExtWildcard(*args, **kwargs) - - -def InitAllImageHandlers(*args, **kwargs): - """InitAllImageHandlers()""" - return _core.InitAllImageHandlers(*args, **kwargs) -IMAGE_RESOLUTION_INCHES = _core.IMAGE_RESOLUTION_INCHES -IMAGE_RESOLUTION_CM = _core.IMAGE_RESOLUTION_CM -BMP_24BPP = _core.BMP_24BPP -BMP_8BPP = _core.BMP_8BPP -BMP_8BPP_GREY = _core.BMP_8BPP_GREY -BMP_8BPP_GRAY = _core.BMP_8BPP_GRAY -BMP_8BPP_RED = _core.BMP_8BPP_RED -BMP_8BPP_PALETTE = _core.BMP_8BPP_PALETTE -BMP_4BPP = _core.BMP_4BPP -BMP_1BPP = _core.BMP_1BPP -BMP_1BPP_BW = _core.BMP_1BPP_BW -class BMPHandler(ImageHandler): - def __repr__(self): - return "<%s.%s; proxy of C++ wxBMPHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> BMPHandler""" - newobj = _core.new_BMPHandler(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class BMPHandlerPtr(BMPHandler): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = BMPHandler -_core.BMPHandler_swigregister(BMPHandlerPtr) -NullImage = cvar.NullImage -IMAGE_OPTION_BMP_FORMAT = cvar.IMAGE_OPTION_BMP_FORMAT -IMAGE_OPTION_CUR_HOTSPOT_X = cvar.IMAGE_OPTION_CUR_HOTSPOT_X -IMAGE_OPTION_CUR_HOTSPOT_Y = cvar.IMAGE_OPTION_CUR_HOTSPOT_Y -IMAGE_OPTION_RESOLUTION = cvar.IMAGE_OPTION_RESOLUTION -IMAGE_OPTION_RESOLUTIONUNIT = cvar.IMAGE_OPTION_RESOLUTIONUNIT - -class ICOHandler(BMPHandler): - def __repr__(self): - return "<%s.%s; proxy of C++ wxICOHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> ICOHandler""" - newobj = _core.new_ICOHandler(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class ICOHandlerPtr(ICOHandler): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ICOHandler -_core.ICOHandler_swigregister(ICOHandlerPtr) - -class CURHandler(ICOHandler): - def __repr__(self): - return "<%s.%s; proxy of C++ wxCURHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> CURHandler""" - newobj = _core.new_CURHandler(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class CURHandlerPtr(CURHandler): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = CURHandler -_core.CURHandler_swigregister(CURHandlerPtr) - -class ANIHandler(CURHandler): - def __repr__(self): - return "<%s.%s; proxy of C++ wxANIHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> ANIHandler""" - newobj = _core.new_ANIHandler(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class ANIHandlerPtr(ANIHandler): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ANIHandler -_core.ANIHandler_swigregister(ANIHandlerPtr) - -class PNGHandler(ImageHandler): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPNGHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> PNGHandler""" - newobj = _core.new_PNGHandler(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class PNGHandlerPtr(PNGHandler): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PNGHandler -_core.PNGHandler_swigregister(PNGHandlerPtr) - -class GIFHandler(ImageHandler): - def __repr__(self): - return "<%s.%s; proxy of C++ wxGIFHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> GIFHandler""" - newobj = _core.new_GIFHandler(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class GIFHandlerPtr(GIFHandler): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = GIFHandler -_core.GIFHandler_swigregister(GIFHandlerPtr) - -class PCXHandler(ImageHandler): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPCXHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> PCXHandler""" - newobj = _core.new_PCXHandler(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class PCXHandlerPtr(PCXHandler): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PCXHandler -_core.PCXHandler_swigregister(PCXHandlerPtr) - -class JPEGHandler(ImageHandler): - def __repr__(self): - return "<%s.%s; proxy of C++ wxJPEGHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> JPEGHandler""" - newobj = _core.new_JPEGHandler(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class JPEGHandlerPtr(JPEGHandler): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = JPEGHandler -_core.JPEGHandler_swigregister(JPEGHandlerPtr) - -class PNMHandler(ImageHandler): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPNMHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> PNMHandler""" - newobj = _core.new_PNMHandler(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class PNMHandlerPtr(PNMHandler): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PNMHandler -_core.PNMHandler_swigregister(PNMHandlerPtr) - -class XPMHandler(ImageHandler): - def __repr__(self): - return "<%s.%s; proxy of C++ wxXPMHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> XPMHandler""" - newobj = _core.new_XPMHandler(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class XPMHandlerPtr(XPMHandler): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = XPMHandler -_core.XPMHandler_swigregister(XPMHandlerPtr) - -class TIFFHandler(ImageHandler): - def __repr__(self): - return "<%s.%s; proxy of C++ wxTIFFHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> TIFFHandler""" - newobj = _core.new_TIFFHandler(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class TIFFHandlerPtr(TIFFHandler): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = TIFFHandler -_core.TIFFHandler_swigregister(TIFFHandlerPtr) - -#--------------------------------------------------------------------------- - -class EvtHandler(Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxEvtHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> EvtHandler""" - newobj = _core.new_EvtHandler(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetNextHandler(*args, **kwargs): - """GetNextHandler(self) -> EvtHandler""" - return _core.EvtHandler_GetNextHandler(*args, **kwargs) - - def GetPreviousHandler(*args, **kwargs): - """GetPreviousHandler(self) -> EvtHandler""" - return _core.EvtHandler_GetPreviousHandler(*args, **kwargs) - - def SetNextHandler(*args, **kwargs): - """SetNextHandler(self, EvtHandler handler)""" - return _core.EvtHandler_SetNextHandler(*args, **kwargs) - - def SetPreviousHandler(*args, **kwargs): - """SetPreviousHandler(self, EvtHandler handler)""" - return _core.EvtHandler_SetPreviousHandler(*args, **kwargs) - - def GetEvtHandlerEnabled(*args, **kwargs): - """GetEvtHandlerEnabled(self) -> bool""" - return _core.EvtHandler_GetEvtHandlerEnabled(*args, **kwargs) - - def SetEvtHandlerEnabled(*args, **kwargs): - """SetEvtHandlerEnabled(self, bool enabled)""" - return _core.EvtHandler_SetEvtHandlerEnabled(*args, **kwargs) - - def ProcessEvent(*args, **kwargs): - """ProcessEvent(self, Event event) -> bool""" - return _core.EvtHandler_ProcessEvent(*args, **kwargs) - - def AddPendingEvent(*args, **kwargs): - """AddPendingEvent(self, Event event)""" - return _core.EvtHandler_AddPendingEvent(*args, **kwargs) - - def ProcessPendingEvents(*args, **kwargs): - """ProcessPendingEvents(self)""" - return _core.EvtHandler_ProcessPendingEvents(*args, **kwargs) - - def Connect(*args, **kwargs): - """Connect(self, int id, int lastId, int eventType, PyObject func)""" - return _core.EvtHandler_Connect(*args, **kwargs) - - def Disconnect(*args, **kwargs): - """Disconnect(self, int id, int lastId=-1, wxEventType eventType=wxEVT_NULL) -> bool""" - return _core.EvtHandler_Disconnect(*args, **kwargs) - - def _setOORInfo(*args, **kwargs): - """_setOORInfo(self, PyObject _self)""" - return _core.EvtHandler__setOORInfo(*args, **kwargs) - - def Bind(self, event, handler, source=None, id=wx.ID_ANY, id2=wx.ID_ANY): - """ - Bind an event to an event handler. - - event One of the EVT_* objects that specifies the - type of event to bind, - - handler A callable object to be invoked when the event - is delivered to self. Pass None to disconnect an - event handler. - - source Sometimes the event originates from a different window - than self, but you still want to catch it in self. (For - example, a button event delivered to a frame.) By - passing the source of the event, the event handling - system is able to differentiate between the same event - type from different controls. - - id,id2 Used for menu IDs or for event types that require a - range of IDs - """ - if source is not None: - id = source.GetId() - event.Bind(self, id, id2, handler) - - - -class EvtHandlerPtr(EvtHandler): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = EvtHandler -_core.EvtHandler_swigregister(EvtHandlerPtr) - -#--------------------------------------------------------------------------- - -class PyEventBinder(object): - """ - Instances of this class are used to bind specific events to event - handlers. - """ - def __init__(self, evtType, expectedIDs=0): - if expectedIDs not in [0, 1, 2]: - raise ValueError, "Invalid number of expectedIDs" - self.expectedIDs = expectedIDs - - if type(evtType) == list or type(evtType) == tuple: - self.evtType = evtType - else: - self.evtType = [evtType] - - - def Bind(self, target, id1, id2, function): - """Bind this set of event types to target.""" - for et in self.evtType: - target.Connect(id1, id2, et, function) - - - def __call__(self, *args): - """ - For backwards compatibility with the old EVT_* functions. - Should be called with either (window, func), (window, ID, - func) or (window, ID1, ID2, func) parameters depending on the - type of the event. - """ - assert len(args) == 2 + self.expectedIDs - id1 = wx.ID_ANY - id2 = wx.ID_ANY - target = args[0] - if self.expectedIDs == 0: - func = args[1] - elif self.expectedIDs == 1: - id1 = args[1] - func = args[2] - elif self.expectedIDs == 2: - id1 = args[1] - id2 = args[2] - func = args[3] - else: - raise ValueError, "Unexpected number of IDs" - - self.Bind(target, id1, id2, func) - - -# These two are square pegs that don't fit the PyEventBinder hole... -def EVT_COMMAND(win, id, cmd, func): - win.Connect(id, -1, cmd, func) -def EVT_COMMAND_RANGE(win, id1, id2, cmd, func): - win.Connect(id1, id2, cmd, func) - - -#--------------------------------------------------------------------------- - -#--------------------------------------------------------------------------- - -EVENT_PROPAGATE_NONE = _core.EVENT_PROPAGATE_NONE -EVENT_PROPAGATE_MAX = _core.EVENT_PROPAGATE_MAX - -def NewEventType(*args, **kwargs): - """NewEventType() -> wxEventType""" - return _core.NewEventType(*args, **kwargs) -wxEVT_NULL = _core.wxEVT_NULL -wxEVT_FIRST = _core.wxEVT_FIRST -wxEVT_USER_FIRST = _core.wxEVT_USER_FIRST -wxEVT_COMMAND_BUTTON_CLICKED = _core.wxEVT_COMMAND_BUTTON_CLICKED -wxEVT_COMMAND_CHECKBOX_CLICKED = _core.wxEVT_COMMAND_CHECKBOX_CLICKED -wxEVT_COMMAND_CHOICE_SELECTED = _core.wxEVT_COMMAND_CHOICE_SELECTED -wxEVT_COMMAND_LISTBOX_SELECTED = _core.wxEVT_COMMAND_LISTBOX_SELECTED -wxEVT_COMMAND_LISTBOX_DOUBLECLICKED = _core.wxEVT_COMMAND_LISTBOX_DOUBLECLICKED -wxEVT_COMMAND_CHECKLISTBOX_TOGGLED = _core.wxEVT_COMMAND_CHECKLISTBOX_TOGGLED -wxEVT_COMMAND_MENU_SELECTED = _core.wxEVT_COMMAND_MENU_SELECTED -wxEVT_COMMAND_TOOL_CLICKED = _core.wxEVT_COMMAND_TOOL_CLICKED -wxEVT_COMMAND_SLIDER_UPDATED = _core.wxEVT_COMMAND_SLIDER_UPDATED -wxEVT_COMMAND_RADIOBOX_SELECTED = _core.wxEVT_COMMAND_RADIOBOX_SELECTED -wxEVT_COMMAND_RADIOBUTTON_SELECTED = _core.wxEVT_COMMAND_RADIOBUTTON_SELECTED -wxEVT_COMMAND_SCROLLBAR_UPDATED = _core.wxEVT_COMMAND_SCROLLBAR_UPDATED -wxEVT_COMMAND_VLBOX_SELECTED = _core.wxEVT_COMMAND_VLBOX_SELECTED -wxEVT_COMMAND_COMBOBOX_SELECTED = _core.wxEVT_COMMAND_COMBOBOX_SELECTED -wxEVT_COMMAND_TOOL_RCLICKED = _core.wxEVT_COMMAND_TOOL_RCLICKED -wxEVT_COMMAND_TOOL_ENTER = _core.wxEVT_COMMAND_TOOL_ENTER -wxEVT_LEFT_DOWN = _core.wxEVT_LEFT_DOWN -wxEVT_LEFT_UP = _core.wxEVT_LEFT_UP -wxEVT_MIDDLE_DOWN = _core.wxEVT_MIDDLE_DOWN -wxEVT_MIDDLE_UP = _core.wxEVT_MIDDLE_UP -wxEVT_RIGHT_DOWN = _core.wxEVT_RIGHT_DOWN -wxEVT_RIGHT_UP = _core.wxEVT_RIGHT_UP -wxEVT_MOTION = _core.wxEVT_MOTION -wxEVT_ENTER_WINDOW = _core.wxEVT_ENTER_WINDOW -wxEVT_LEAVE_WINDOW = _core.wxEVT_LEAVE_WINDOW -wxEVT_LEFT_DCLICK = _core.wxEVT_LEFT_DCLICK -wxEVT_MIDDLE_DCLICK = _core.wxEVT_MIDDLE_DCLICK -wxEVT_RIGHT_DCLICK = _core.wxEVT_RIGHT_DCLICK -wxEVT_SET_FOCUS = _core.wxEVT_SET_FOCUS -wxEVT_KILL_FOCUS = _core.wxEVT_KILL_FOCUS -wxEVT_CHILD_FOCUS = _core.wxEVT_CHILD_FOCUS -wxEVT_MOUSEWHEEL = _core.wxEVT_MOUSEWHEEL -wxEVT_NC_LEFT_DOWN = _core.wxEVT_NC_LEFT_DOWN -wxEVT_NC_LEFT_UP = _core.wxEVT_NC_LEFT_UP -wxEVT_NC_MIDDLE_DOWN = _core.wxEVT_NC_MIDDLE_DOWN -wxEVT_NC_MIDDLE_UP = _core.wxEVT_NC_MIDDLE_UP -wxEVT_NC_RIGHT_DOWN = _core.wxEVT_NC_RIGHT_DOWN -wxEVT_NC_RIGHT_UP = _core.wxEVT_NC_RIGHT_UP -wxEVT_NC_MOTION = _core.wxEVT_NC_MOTION -wxEVT_NC_ENTER_WINDOW = _core.wxEVT_NC_ENTER_WINDOW -wxEVT_NC_LEAVE_WINDOW = _core.wxEVT_NC_LEAVE_WINDOW -wxEVT_NC_LEFT_DCLICK = _core.wxEVT_NC_LEFT_DCLICK -wxEVT_NC_MIDDLE_DCLICK = _core.wxEVT_NC_MIDDLE_DCLICK -wxEVT_NC_RIGHT_DCLICK = _core.wxEVT_NC_RIGHT_DCLICK -wxEVT_CHAR = _core.wxEVT_CHAR -wxEVT_CHAR_HOOK = _core.wxEVT_CHAR_HOOK -wxEVT_NAVIGATION_KEY = _core.wxEVT_NAVIGATION_KEY -wxEVT_KEY_DOWN = _core.wxEVT_KEY_DOWN -wxEVT_KEY_UP = _core.wxEVT_KEY_UP -wxEVT_HOTKEY = _core.wxEVT_HOTKEY -wxEVT_SET_CURSOR = _core.wxEVT_SET_CURSOR -wxEVT_SCROLL_TOP = _core.wxEVT_SCROLL_TOP -wxEVT_SCROLL_BOTTOM = _core.wxEVT_SCROLL_BOTTOM -wxEVT_SCROLL_LINEUP = _core.wxEVT_SCROLL_LINEUP -wxEVT_SCROLL_LINEDOWN = _core.wxEVT_SCROLL_LINEDOWN -wxEVT_SCROLL_PAGEUP = _core.wxEVT_SCROLL_PAGEUP -wxEVT_SCROLL_PAGEDOWN = _core.wxEVT_SCROLL_PAGEDOWN -wxEVT_SCROLL_THUMBTRACK = _core.wxEVT_SCROLL_THUMBTRACK -wxEVT_SCROLL_THUMBRELEASE = _core.wxEVT_SCROLL_THUMBRELEASE -wxEVT_SCROLL_ENDSCROLL = _core.wxEVT_SCROLL_ENDSCROLL -wxEVT_SCROLLWIN_TOP = _core.wxEVT_SCROLLWIN_TOP -wxEVT_SCROLLWIN_BOTTOM = _core.wxEVT_SCROLLWIN_BOTTOM -wxEVT_SCROLLWIN_LINEUP = _core.wxEVT_SCROLLWIN_LINEUP -wxEVT_SCROLLWIN_LINEDOWN = _core.wxEVT_SCROLLWIN_LINEDOWN -wxEVT_SCROLLWIN_PAGEUP = _core.wxEVT_SCROLLWIN_PAGEUP -wxEVT_SCROLLWIN_PAGEDOWN = _core.wxEVT_SCROLLWIN_PAGEDOWN -wxEVT_SCROLLWIN_THUMBTRACK = _core.wxEVT_SCROLLWIN_THUMBTRACK -wxEVT_SCROLLWIN_THUMBRELEASE = _core.wxEVT_SCROLLWIN_THUMBRELEASE -wxEVT_SIZE = _core.wxEVT_SIZE -wxEVT_MOVE = _core.wxEVT_MOVE -wxEVT_CLOSE_WINDOW = _core.wxEVT_CLOSE_WINDOW -wxEVT_END_SESSION = _core.wxEVT_END_SESSION -wxEVT_QUERY_END_SESSION = _core.wxEVT_QUERY_END_SESSION -wxEVT_ACTIVATE_APP = _core.wxEVT_ACTIVATE_APP -wxEVT_POWER = _core.wxEVT_POWER -wxEVT_ACTIVATE = _core.wxEVT_ACTIVATE -wxEVT_CREATE = _core.wxEVT_CREATE -wxEVT_DESTROY = _core.wxEVT_DESTROY -wxEVT_SHOW = _core.wxEVT_SHOW -wxEVT_ICONIZE = _core.wxEVT_ICONIZE -wxEVT_MAXIMIZE = _core.wxEVT_MAXIMIZE -wxEVT_MOUSE_CAPTURE_CHANGED = _core.wxEVT_MOUSE_CAPTURE_CHANGED -wxEVT_PAINT = _core.wxEVT_PAINT -wxEVT_ERASE_BACKGROUND = _core.wxEVT_ERASE_BACKGROUND -wxEVT_NC_PAINT = _core.wxEVT_NC_PAINT -wxEVT_PAINT_ICON = _core.wxEVT_PAINT_ICON -wxEVT_MENU_OPEN = _core.wxEVT_MENU_OPEN -wxEVT_MENU_CLOSE = _core.wxEVT_MENU_CLOSE -wxEVT_MENU_HIGHLIGHT = _core.wxEVT_MENU_HIGHLIGHT -wxEVT_CONTEXT_MENU = _core.wxEVT_CONTEXT_MENU -wxEVT_SYS_COLOUR_CHANGED = _core.wxEVT_SYS_COLOUR_CHANGED -wxEVT_DISPLAY_CHANGED = _core.wxEVT_DISPLAY_CHANGED -wxEVT_SETTING_CHANGED = _core.wxEVT_SETTING_CHANGED -wxEVT_QUERY_NEW_PALETTE = _core.wxEVT_QUERY_NEW_PALETTE -wxEVT_PALETTE_CHANGED = _core.wxEVT_PALETTE_CHANGED -wxEVT_DROP_FILES = _core.wxEVT_DROP_FILES -wxEVT_DRAW_ITEM = _core.wxEVT_DRAW_ITEM -wxEVT_MEASURE_ITEM = _core.wxEVT_MEASURE_ITEM -wxEVT_COMPARE_ITEM = _core.wxEVT_COMPARE_ITEM -wxEVT_INIT_DIALOG = _core.wxEVT_INIT_DIALOG -wxEVT_IDLE = _core.wxEVT_IDLE -wxEVT_UPDATE_UI = _core.wxEVT_UPDATE_UI -wxEVT_SIZING = _core.wxEVT_SIZING -wxEVT_MOVING = _core.wxEVT_MOVING -wxEVT_COMMAND_LEFT_CLICK = _core.wxEVT_COMMAND_LEFT_CLICK -wxEVT_COMMAND_LEFT_DCLICK = _core.wxEVT_COMMAND_LEFT_DCLICK -wxEVT_COMMAND_RIGHT_CLICK = _core.wxEVT_COMMAND_RIGHT_CLICK -wxEVT_COMMAND_RIGHT_DCLICK = _core.wxEVT_COMMAND_RIGHT_DCLICK -wxEVT_COMMAND_SET_FOCUS = _core.wxEVT_COMMAND_SET_FOCUS -wxEVT_COMMAND_KILL_FOCUS = _core.wxEVT_COMMAND_KILL_FOCUS -wxEVT_COMMAND_ENTER = _core.wxEVT_COMMAND_ENTER -# -# Create some event binders -EVT_SIZE = wx.PyEventBinder( wxEVT_SIZE ) -EVT_SIZING = wx.PyEventBinder( wxEVT_SIZING ) -EVT_MOVE = wx.PyEventBinder( wxEVT_MOVE ) -EVT_MOVING = wx.PyEventBinder( wxEVT_MOVING ) -EVT_CLOSE = wx.PyEventBinder( wxEVT_CLOSE_WINDOW ) -EVT_END_SESSION = wx.PyEventBinder( wxEVT_END_SESSION ) -EVT_QUERY_END_SESSION = wx.PyEventBinder( wxEVT_QUERY_END_SESSION ) -EVT_PAINT = wx.PyEventBinder( wxEVT_PAINT ) -EVT_NC_PAINT = wx.PyEventBinder( wxEVT_NC_PAINT ) -EVT_ERASE_BACKGROUND = wx.PyEventBinder( wxEVT_ERASE_BACKGROUND ) -EVT_CHAR = wx.PyEventBinder( wxEVT_CHAR ) -EVT_KEY_DOWN = wx.PyEventBinder( wxEVT_KEY_DOWN ) -EVT_KEY_UP = wx.PyEventBinder( wxEVT_KEY_UP ) -EVT_HOTKEY = wx.PyEventBinder( wxEVT_HOTKEY, 1) -EVT_CHAR_HOOK = wx.PyEventBinder( wxEVT_CHAR_HOOK ) -EVT_MENU_OPEN = wx.PyEventBinder( wxEVT_MENU_OPEN ) -EVT_MENU_CLOSE = wx.PyEventBinder( wxEVT_MENU_CLOSE ) -EVT_MENU_HIGHLIGHT = wx.PyEventBinder( wxEVT_MENU_HIGHLIGHT, 1) -EVT_MENU_HIGHLIGHT_ALL = wx.PyEventBinder( wxEVT_MENU_HIGHLIGHT ) -EVT_SET_FOCUS = wx.PyEventBinder( wxEVT_SET_FOCUS ) -EVT_KILL_FOCUS = wx.PyEventBinder( wxEVT_KILL_FOCUS ) -EVT_CHILD_FOCUS = wx.PyEventBinder( wxEVT_CHILD_FOCUS ) -EVT_ACTIVATE = wx.PyEventBinder( wxEVT_ACTIVATE ) -EVT_ACTIVATE_APP = wx.PyEventBinder( wxEVT_ACTIVATE_APP ) -EVT_END_SESSION = wx.PyEventBinder( wxEVT_END_SESSION ) -EVT_QUERY_END_SESSION = wx.PyEventBinder( wxEVT_QUERY_END_SESSION ) -EVT_DROP_FILES = wx.PyEventBinder( wxEVT_DROP_FILES ) -EVT_INIT_DIALOG = wx.PyEventBinder( wxEVT_INIT_DIALOG ) -EVT_SYS_COLOUR_CHANGED = wx.PyEventBinder( wxEVT_SYS_COLOUR_CHANGED ) -EVT_DISPLAY_CHANGED = wx.PyEventBinder( wxEVT_DISPLAY_CHANGED ) -EVT_SHOW = wx.PyEventBinder( wxEVT_SHOW ) -EVT_MAXIMIZE = wx.PyEventBinder( wxEVT_MAXIMIZE ) -EVT_ICONIZE = wx.PyEventBinder( wxEVT_ICONIZE ) -EVT_NAVIGATION_KEY = wx.PyEventBinder( wxEVT_NAVIGATION_KEY ) -EVT_PALETTE_CHANGED = wx.PyEventBinder( wxEVT_PALETTE_CHANGED ) -EVT_QUERY_NEW_PALETTE = wx.PyEventBinder( wxEVT_QUERY_NEW_PALETTE ) -EVT_WINDOW_CREATE = wx.PyEventBinder( wxEVT_CREATE ) -EVT_WINDOW_DESTROY = wx.PyEventBinder( wxEVT_DESTROY ) -EVT_SET_CURSOR = wx.PyEventBinder( wxEVT_SET_CURSOR ) -EVT_MOUSE_CAPTURE_CHANGED = wx.PyEventBinder( wxEVT_MOUSE_CAPTURE_CHANGED ) - -EVT_LEFT_DOWN = wx.PyEventBinder( wxEVT_LEFT_DOWN ) -EVT_LEFT_UP = wx.PyEventBinder( wxEVT_LEFT_UP ) -EVT_MIDDLE_DOWN = wx.PyEventBinder( wxEVT_MIDDLE_DOWN ) -EVT_MIDDLE_UP = wx.PyEventBinder( wxEVT_MIDDLE_UP ) -EVT_RIGHT_DOWN = wx.PyEventBinder( wxEVT_RIGHT_DOWN ) -EVT_RIGHT_UP = wx.PyEventBinder( wxEVT_RIGHT_UP ) -EVT_MOTION = wx.PyEventBinder( wxEVT_MOTION ) -EVT_LEFT_DCLICK = wx.PyEventBinder( wxEVT_LEFT_DCLICK ) -EVT_MIDDLE_DCLICK = wx.PyEventBinder( wxEVT_MIDDLE_DCLICK ) -EVT_RIGHT_DCLICK = wx.PyEventBinder( wxEVT_RIGHT_DCLICK ) -EVT_LEAVE_WINDOW = wx.PyEventBinder( wxEVT_LEAVE_WINDOW ) -EVT_ENTER_WINDOW = wx.PyEventBinder( wxEVT_ENTER_WINDOW ) -EVT_MOUSEWHEEL = wx.PyEventBinder( wxEVT_MOUSEWHEEL ) - -EVT_MOUSE_EVENTS = wx.PyEventBinder([ wxEVT_LEFT_DOWN, - wxEVT_LEFT_UP, - wxEVT_MIDDLE_DOWN, - wxEVT_MIDDLE_UP, - wxEVT_RIGHT_DOWN, - wxEVT_RIGHT_UP, - wxEVT_MOTION, - wxEVT_LEFT_DCLICK, - wxEVT_MIDDLE_DCLICK, - wxEVT_RIGHT_DCLICK, - wxEVT_ENTER_WINDOW, - wxEVT_LEAVE_WINDOW, - wxEVT_MOUSEWHEEL - ]) - - -# Scrolling from wxWindow (sent to wxScrolledWindow) -EVT_SCROLLWIN = wx.PyEventBinder([ wxEVT_SCROLLWIN_TOP, - wxEVT_SCROLLWIN_BOTTOM, - wxEVT_SCROLLWIN_LINEUP, - wxEVT_SCROLLWIN_LINEDOWN, - wxEVT_SCROLLWIN_PAGEUP, - wxEVT_SCROLLWIN_PAGEDOWN, - wxEVT_SCROLLWIN_THUMBTRACK, - wxEVT_SCROLLWIN_THUMBRELEASE, - ]) - -EVT_SCROLLWIN_TOP = wx.PyEventBinder( wxEVT_SCROLLWIN_TOP ) -EVT_SCROLLWIN_BOTTOM = wx.PyEventBinder( wxEVT_SCROLLWIN_BOTTOM ) -EVT_SCROLLWIN_LINEUP = wx.PyEventBinder( wxEVT_SCROLLWIN_LINEUP ) -EVT_SCROLLWIN_LINEDOWN = wx.PyEventBinder( wxEVT_SCROLLWIN_LINEDOWN ) -EVT_SCROLLWIN_PAGEUP = wx.PyEventBinder( wxEVT_SCROLLWIN_PAGEUP ) -EVT_SCROLLWIN_PAGEDOWN = wx.PyEventBinder( wxEVT_SCROLLWIN_PAGEDOWN ) -EVT_SCROLLWIN_THUMBTRACK = wx.PyEventBinder( wxEVT_SCROLLWIN_THUMBTRACK ) -EVT_SCROLLWIN_THUMBRELEASE = wx.PyEventBinder( wxEVT_SCROLLWIN_THUMBRELEASE ) - -# Scrolling from wxSlider and wxScrollBar -EVT_SCROLL = wx.PyEventBinder([ wxEVT_SCROLL_TOP, - wxEVT_SCROLL_BOTTOM, - wxEVT_SCROLL_LINEUP, - wxEVT_SCROLL_LINEDOWN, - wxEVT_SCROLL_PAGEUP, - wxEVT_SCROLL_PAGEDOWN, - wxEVT_SCROLL_THUMBTRACK, - wxEVT_SCROLL_THUMBRELEASE, - wxEVT_SCROLL_ENDSCROLL, - ]) - -EVT_SCROLL_TOP = wx.PyEventBinder( wxEVT_SCROLL_TOP ) -EVT_SCROLL_BOTTOM = wx.PyEventBinder( wxEVT_SCROLL_BOTTOM ) -EVT_SCROLL_LINEUP = wx.PyEventBinder( wxEVT_SCROLL_LINEUP ) -EVT_SCROLL_LINEDOWN = wx.PyEventBinder( wxEVT_SCROLL_LINEDOWN ) -EVT_SCROLL_PAGEUP = wx.PyEventBinder( wxEVT_SCROLL_PAGEUP ) -EVT_SCROLL_PAGEDOWN = wx.PyEventBinder( wxEVT_SCROLL_PAGEDOWN ) -EVT_SCROLL_THUMBTRACK = wx.PyEventBinder( wxEVT_SCROLL_THUMBTRACK ) -EVT_SCROLL_THUMBRELEASE = wx.PyEventBinder( wxEVT_SCROLL_THUMBRELEASE ) -EVT_SCROLL_ENDSCROLL = wx.PyEventBinder( wxEVT_SCROLL_ENDSCROLL ) - -# Scrolling from wxSlider and wxScrollBar, with an id -EVT_COMMAND_SCROLL = wx.PyEventBinder([ wxEVT_SCROLL_TOP, - wxEVT_SCROLL_BOTTOM, - wxEVT_SCROLL_LINEUP, - wxEVT_SCROLL_LINEDOWN, - wxEVT_SCROLL_PAGEUP, - wxEVT_SCROLL_PAGEDOWN, - wxEVT_SCROLL_THUMBTRACK, - wxEVT_SCROLL_THUMBRELEASE, - wxEVT_SCROLL_ENDSCROLL, - ], 1) - -EVT_COMMAND_SCROLL_TOP = wx.PyEventBinder( wxEVT_SCROLL_TOP, 1) -EVT_COMMAND_SCROLL_BOTTOM = wx.PyEventBinder( wxEVT_SCROLL_BOTTOM, 1) -EVT_COMMAND_SCROLL_LINEUP = wx.PyEventBinder( wxEVT_SCROLL_LINEUP, 1) -EVT_COMMAND_SCROLL_LINEDOWN = wx.PyEventBinder( wxEVT_SCROLL_LINEDOWN, 1) -EVT_COMMAND_SCROLL_PAGEUP = wx.PyEventBinder( wxEVT_SCROLL_PAGEUP, 1) -EVT_COMMAND_SCROLL_PAGEDOWN = wx.PyEventBinder( wxEVT_SCROLL_PAGEDOWN, 1) -EVT_COMMAND_SCROLL_THUMBTRACK = wx.PyEventBinder( wxEVT_SCROLL_THUMBTRACK, 1) -EVT_COMMAND_SCROLL_THUMBRELEASE = wx.PyEventBinder( wxEVT_SCROLL_THUMBRELEASE, 1) -EVT_COMMAND_SCROLL_ENDSCROLL = wx.PyEventBinder( wxEVT_SCROLL_ENDSCROLL, 1) - -EVT_BUTTON = wx.PyEventBinder( wxEVT_COMMAND_BUTTON_CLICKED, 1) -EVT_CHECKBOX = wx.PyEventBinder( wxEVT_COMMAND_CHECKBOX_CLICKED, 1) -EVT_CHOICE = wx.PyEventBinder( wxEVT_COMMAND_CHOICE_SELECTED, 1) -EVT_LISTBOX = wx.PyEventBinder( wxEVT_COMMAND_LISTBOX_SELECTED, 1) -EVT_LISTBOX_DCLICK = wx.PyEventBinder( wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, 1) -EVT_MENU = wx.PyEventBinder( wxEVT_COMMAND_MENU_SELECTED, 1) -EVT_MENU_RANGE = wx.PyEventBinder( wxEVT_COMMAND_MENU_SELECTED, 2) -EVT_SLIDER = wx.PyEventBinder( wxEVT_COMMAND_SLIDER_UPDATED, 1) -EVT_RADIOBOX = wx.PyEventBinder( wxEVT_COMMAND_RADIOBOX_SELECTED, 1) -EVT_RADIOBUTTON = wx.PyEventBinder( wxEVT_COMMAND_RADIOBUTTON_SELECTED, 1) - -EVT_SCROLLBAR = wx.PyEventBinder( wxEVT_COMMAND_SCROLLBAR_UPDATED, 1) -EVT_VLBOX = wx.PyEventBinder( wxEVT_COMMAND_VLBOX_SELECTED, 1) -EVT_COMBOBOX = wx.PyEventBinder( wxEVT_COMMAND_COMBOBOX_SELECTED, 1) -EVT_TOOL = wx.PyEventBinder( wxEVT_COMMAND_TOOL_CLICKED, 1) -EVT_TOOL_RANGE = wx.PyEventBinder( wxEVT_COMMAND_TOOL_CLICKED, 2) -EVT_TOOL_RCLICKED = wx.PyEventBinder( wxEVT_COMMAND_TOOL_RCLICKED, 1) -EVT_TOOL_RCLICKED_RANGE = wx.PyEventBinder( wxEVT_COMMAND_TOOL_RCLICKED, 2) -EVT_TOOL_ENTER = wx.PyEventBinder( wxEVT_COMMAND_TOOL_ENTER, 1) -EVT_CHECKLISTBOX = wx.PyEventBinder( wxEVT_COMMAND_CHECKLISTBOX_TOGGLED, 1) - - -EVT_COMMAND_LEFT_CLICK = wx.PyEventBinder( wxEVT_COMMAND_LEFT_CLICK, 1) -EVT_COMMAND_LEFT_DCLICK = wx.PyEventBinder( wxEVT_COMMAND_LEFT_DCLICK, 1) -EVT_COMMAND_RIGHT_CLICK = wx.PyEventBinder( wxEVT_COMMAND_RIGHT_CLICK, 1) -EVT_COMMAND_RIGHT_DCLICK = wx.PyEventBinder( wxEVT_COMMAND_RIGHT_DCLICK, 1) -EVT_COMMAND_SET_FOCUS = wx.PyEventBinder( wxEVT_COMMAND_SET_FOCUS, 1) -EVT_COMMAND_KILL_FOCUS = wx.PyEventBinder( wxEVT_COMMAND_KILL_FOCUS, 1) -EVT_COMMAND_ENTER = wx.PyEventBinder( wxEVT_COMMAND_ENTER, 1) - -EVT_IDLE = wx.PyEventBinder( wxEVT_IDLE ) - -EVT_UPDATE_UI = wx.PyEventBinder( wxEVT_UPDATE_UI, 1) -EVT_UPDATE_UI_RANGE = wx.PyEventBinder( wxEVT_UPDATE_UI, 2) - -EVT_CONTEXT_MENU = wx.PyEventBinder( wxEVT_CONTEXT_MENU ) - - - -#--------------------------------------------------------------------------- - -class Event(Object): - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __del__(self, destroy=_core.delete_Event): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def SetEventType(*args, **kwargs): - """SetEventType(self, wxEventType typ)""" - return _core.Event_SetEventType(*args, **kwargs) - - def GetEventType(*args, **kwargs): - """GetEventType(self) -> wxEventType""" - return _core.Event_GetEventType(*args, **kwargs) - - def GetEventObject(*args, **kwargs): - """GetEventObject(self) -> Object""" - return _core.Event_GetEventObject(*args, **kwargs) - - def SetEventObject(*args, **kwargs): - """SetEventObject(self, Object obj)""" - return _core.Event_SetEventObject(*args, **kwargs) - - def GetTimestamp(*args, **kwargs): - """GetTimestamp(self) -> long""" - return _core.Event_GetTimestamp(*args, **kwargs) - - def SetTimestamp(*args, **kwargs): - """SetTimestamp(self, long ts=0)""" - return _core.Event_SetTimestamp(*args, **kwargs) - - def GetId(*args, **kwargs): - """GetId(self) -> int""" - return _core.Event_GetId(*args, **kwargs) - - def SetId(*args, **kwargs): - """SetId(self, int Id)""" - return _core.Event_SetId(*args, **kwargs) - - def IsCommandEvent(*args, **kwargs): - """IsCommandEvent(self) -> bool""" - return _core.Event_IsCommandEvent(*args, **kwargs) - - def Skip(*args, **kwargs): - """Skip(self, bool skip=True)""" - return _core.Event_Skip(*args, **kwargs) - - def GetSkipped(*args, **kwargs): - """GetSkipped(self) -> bool""" - return _core.Event_GetSkipped(*args, **kwargs) - - def ShouldPropagate(*args, **kwargs): - """ShouldPropagate(self) -> bool""" - return _core.Event_ShouldPropagate(*args, **kwargs) - - def StopPropagation(*args, **kwargs): - """StopPropagation(self) -> int""" - return _core.Event_StopPropagation(*args, **kwargs) - - def ResumePropagation(*args, **kwargs): - """ResumePropagation(self, int propagationLevel)""" - return _core.Event_ResumePropagation(*args, **kwargs) - - def Clone(*args, **kwargs): - """Clone(self) -> Event""" - return _core.Event_Clone(*args, **kwargs) - - -class EventPtr(Event): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Event -_core.Event_swigregister(EventPtr) - -#--------------------------------------------------------------------------- - -class PropagationDisabler(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPropagationDisabler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Event event) -> PropagationDisabler""" - newobj = _core.new_PropagationDisabler(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_core.delete_PropagationDisabler): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - -class PropagationDisablerPtr(PropagationDisabler): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PropagationDisabler -_core.PropagationDisabler_swigregister(PropagationDisablerPtr) - -class PropagateOnce(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPropagateOnce instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Event event) -> PropagateOnce""" - newobj = _core.new_PropagateOnce(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_core.delete_PropagateOnce): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - -class PropagateOncePtr(PropagateOnce): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PropagateOnce -_core.PropagateOnce_swigregister(PropagateOncePtr) - -#--------------------------------------------------------------------------- - -class CommandEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxCommandEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, wxEventType commandType=wxEVT_NULL, int winid=0) -> CommandEvent""" - newobj = _core.new_CommandEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetSelection(*args, **kwargs): - """GetSelection(self) -> int""" - return _core.CommandEvent_GetSelection(*args, **kwargs) - - def SetString(*args, **kwargs): - """SetString(self, String s)""" - return _core.CommandEvent_SetString(*args, **kwargs) - - def GetString(*args, **kwargs): - """GetString(self) -> String""" - return _core.CommandEvent_GetString(*args, **kwargs) - - def IsChecked(*args, **kwargs): - """IsChecked(self) -> bool""" - return _core.CommandEvent_IsChecked(*args, **kwargs) - - Checked = IsChecked - def IsSelection(*args, **kwargs): - """IsSelection(self) -> bool""" - return _core.CommandEvent_IsSelection(*args, **kwargs) - - def SetExtraLong(*args, **kwargs): - """SetExtraLong(self, long extraLong)""" - return _core.CommandEvent_SetExtraLong(*args, **kwargs) - - def GetExtraLong(*args, **kwargs): - """GetExtraLong(self) -> long""" - return _core.CommandEvent_GetExtraLong(*args, **kwargs) - - def SetInt(*args, **kwargs): - """SetInt(self, int i)""" - return _core.CommandEvent_SetInt(*args, **kwargs) - - def GetInt(*args, **kwargs): - """GetInt(self) -> long""" - return _core.CommandEvent_GetInt(*args, **kwargs) - - def Clone(*args, **kwargs): - """Clone(self) -> Event""" - return _core.CommandEvent_Clone(*args, **kwargs) - - -class CommandEventPtr(CommandEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = CommandEvent -_core.CommandEvent_swigregister(CommandEventPtr) - -#--------------------------------------------------------------------------- - -class NotifyEvent(CommandEvent): - def __repr__(self): - return "<%s.%s; proxy of C++ wxNotifyEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, wxEventType commandType=wxEVT_NULL, int winid=0) -> NotifyEvent""" - newobj = _core.new_NotifyEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def Veto(*args, **kwargs): - """Veto(self)""" - return _core.NotifyEvent_Veto(*args, **kwargs) - - def Allow(*args, **kwargs): - """Allow(self)""" - return _core.NotifyEvent_Allow(*args, **kwargs) - - def IsAllowed(*args, **kwargs): - """IsAllowed(self) -> bool""" - return _core.NotifyEvent_IsAllowed(*args, **kwargs) - - -class NotifyEventPtr(NotifyEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = NotifyEvent -_core.NotifyEvent_swigregister(NotifyEventPtr) - -#--------------------------------------------------------------------------- - -class ScrollEvent(CommandEvent): - def __repr__(self): - return "<%s.%s; proxy of C++ wxScrollEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, wxEventType commandType=wxEVT_NULL, int winid=0, int pos=0, - int orient=0) -> ScrollEvent - """ - newobj = _core.new_ScrollEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetOrientation(*args, **kwargs): - """GetOrientation(self) -> int""" - return _core.ScrollEvent_GetOrientation(*args, **kwargs) - - def GetPosition(*args, **kwargs): - """GetPosition(self) -> int""" - return _core.ScrollEvent_GetPosition(*args, **kwargs) - - def SetOrientation(*args, **kwargs): - """SetOrientation(self, int orient)""" - return _core.ScrollEvent_SetOrientation(*args, **kwargs) - - def SetPosition(*args, **kwargs): - """SetPosition(self, int pos)""" - return _core.ScrollEvent_SetPosition(*args, **kwargs) - - -class ScrollEventPtr(ScrollEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ScrollEvent -_core.ScrollEvent_swigregister(ScrollEventPtr) - -#--------------------------------------------------------------------------- - -class ScrollWinEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxScrollWinEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, wxEventType commandType=wxEVT_NULL, int pos=0, int orient=0) -> ScrollWinEvent""" - newobj = _core.new_ScrollWinEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetOrientation(*args, **kwargs): - """GetOrientation(self) -> int""" - return _core.ScrollWinEvent_GetOrientation(*args, **kwargs) - - def GetPosition(*args, **kwargs): - """GetPosition(self) -> int""" - return _core.ScrollWinEvent_GetPosition(*args, **kwargs) - - def SetOrientation(*args, **kwargs): - """SetOrientation(self, int orient)""" - return _core.ScrollWinEvent_SetOrientation(*args, **kwargs) - - def SetPosition(*args, **kwargs): - """SetPosition(self, int pos)""" - return _core.ScrollWinEvent_SetPosition(*args, **kwargs) - - -class ScrollWinEventPtr(ScrollWinEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ScrollWinEvent -_core.ScrollWinEvent_swigregister(ScrollWinEventPtr) - -#--------------------------------------------------------------------------- - -MOUSE_BTN_ANY = _core.MOUSE_BTN_ANY -MOUSE_BTN_NONE = _core.MOUSE_BTN_NONE -MOUSE_BTN_LEFT = _core.MOUSE_BTN_LEFT -MOUSE_BTN_MIDDLE = _core.MOUSE_BTN_MIDDLE -MOUSE_BTN_RIGHT = _core.MOUSE_BTN_RIGHT -class MouseEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxMouseEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, wxEventType mouseType=wxEVT_NULL) -> MouseEvent""" - newobj = _core.new_MouseEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def IsButton(*args, **kwargs): - """IsButton(self) -> bool""" - return _core.MouseEvent_IsButton(*args, **kwargs) - - def ButtonDown(*args, **kwargs): - """ButtonDown(self, int but=MOUSE_BTN_ANY) -> bool""" - return _core.MouseEvent_ButtonDown(*args, **kwargs) - - def ButtonDClick(*args, **kwargs): - """ButtonDClick(self, int but=MOUSE_BTN_ANY) -> bool""" - return _core.MouseEvent_ButtonDClick(*args, **kwargs) - - def ButtonUp(*args, **kwargs): - """ButtonUp(self, int but=MOUSE_BTN_ANY) -> bool""" - return _core.MouseEvent_ButtonUp(*args, **kwargs) - - def Button(*args, **kwargs): - """Button(self, int but) -> bool""" - return _core.MouseEvent_Button(*args, **kwargs) - - def ButtonIsDown(*args, **kwargs): - """ButtonIsDown(self, int but) -> bool""" - return _core.MouseEvent_ButtonIsDown(*args, **kwargs) - - def GetButton(*args, **kwargs): - """GetButton(self) -> int""" - return _core.MouseEvent_GetButton(*args, **kwargs) - - def ControlDown(*args, **kwargs): - """ControlDown(self) -> bool""" - return _core.MouseEvent_ControlDown(*args, **kwargs) - - def MetaDown(*args, **kwargs): - """MetaDown(self) -> bool""" - return _core.MouseEvent_MetaDown(*args, **kwargs) - - def AltDown(*args, **kwargs): - """AltDown(self) -> bool""" - return _core.MouseEvent_AltDown(*args, **kwargs) - - def ShiftDown(*args, **kwargs): - """ShiftDown(self) -> bool""" - return _core.MouseEvent_ShiftDown(*args, **kwargs) - - def LeftDown(*args, **kwargs): - """LeftDown(self) -> bool""" - return _core.MouseEvent_LeftDown(*args, **kwargs) - - def MiddleDown(*args, **kwargs): - """MiddleDown(self) -> bool""" - return _core.MouseEvent_MiddleDown(*args, **kwargs) - - def RightDown(*args, **kwargs): - """RightDown(self) -> bool""" - return _core.MouseEvent_RightDown(*args, **kwargs) - - def LeftUp(*args, **kwargs): - """LeftUp(self) -> bool""" - return _core.MouseEvent_LeftUp(*args, **kwargs) - - def MiddleUp(*args, **kwargs): - """MiddleUp(self) -> bool""" - return _core.MouseEvent_MiddleUp(*args, **kwargs) - - def RightUp(*args, **kwargs): - """RightUp(self) -> bool""" - return _core.MouseEvent_RightUp(*args, **kwargs) - - def LeftDClick(*args, **kwargs): - """LeftDClick(self) -> bool""" - return _core.MouseEvent_LeftDClick(*args, **kwargs) - - def MiddleDClick(*args, **kwargs): - """MiddleDClick(self) -> bool""" - return _core.MouseEvent_MiddleDClick(*args, **kwargs) - - def RightDClick(*args, **kwargs): - """RightDClick(self) -> bool""" - return _core.MouseEvent_RightDClick(*args, **kwargs) - - def LeftIsDown(*args, **kwargs): - """LeftIsDown(self) -> bool""" - return _core.MouseEvent_LeftIsDown(*args, **kwargs) - - def MiddleIsDown(*args, **kwargs): - """MiddleIsDown(self) -> bool""" - return _core.MouseEvent_MiddleIsDown(*args, **kwargs) - - def RightIsDown(*args, **kwargs): - """RightIsDown(self) -> bool""" - return _core.MouseEvent_RightIsDown(*args, **kwargs) - - def Dragging(*args, **kwargs): - """Dragging(self) -> bool""" - return _core.MouseEvent_Dragging(*args, **kwargs) - - def Moving(*args, **kwargs): - """Moving(self) -> bool""" - return _core.MouseEvent_Moving(*args, **kwargs) - - def Entering(*args, **kwargs): - """Entering(self) -> bool""" - return _core.MouseEvent_Entering(*args, **kwargs) - - def Leaving(*args, **kwargs): - """Leaving(self) -> bool""" - return _core.MouseEvent_Leaving(*args, **kwargs) - - def GetPosition(*args, **kwargs): - """ - GetPosition(self) -> Point - - Returns the position of the mouse in window coordinates when the event happened. - """ - return _core.MouseEvent_GetPosition(*args, **kwargs) - - def GetPositionTuple(*args, **kwargs): - """ - GetPositionTuple() -> (x,y) - - Returns the position of the mouse in window coordinates when the event happened. - """ - return _core.MouseEvent_GetPositionTuple(*args, **kwargs) - - def GetLogicalPosition(*args, **kwargs): - """GetLogicalPosition(self, DC dc) -> Point""" - return _core.MouseEvent_GetLogicalPosition(*args, **kwargs) - - def GetX(*args, **kwargs): - """GetX(self) -> int""" - return _core.MouseEvent_GetX(*args, **kwargs) - - def GetY(*args, **kwargs): - """GetY(self) -> int""" - return _core.MouseEvent_GetY(*args, **kwargs) - - def GetWheelRotation(*args, **kwargs): - """GetWheelRotation(self) -> int""" - return _core.MouseEvent_GetWheelRotation(*args, **kwargs) - - def GetWheelDelta(*args, **kwargs): - """GetWheelDelta(self) -> int""" - return _core.MouseEvent_GetWheelDelta(*args, **kwargs) - - def GetLinesPerAction(*args, **kwargs): - """GetLinesPerAction(self) -> int""" - return _core.MouseEvent_GetLinesPerAction(*args, **kwargs) - - def IsPageScroll(*args, **kwargs): - """IsPageScroll(self) -> bool""" - return _core.MouseEvent_IsPageScroll(*args, **kwargs) - - m_x = property(_core.MouseEvent_m_x_get, _core.MouseEvent_m_x_set) - m_y = property(_core.MouseEvent_m_y_get, _core.MouseEvent_m_y_set) - m_leftDown = property(_core.MouseEvent_m_leftDown_get, _core.MouseEvent_m_leftDown_set) - m_middleDown = property(_core.MouseEvent_m_middleDown_get, _core.MouseEvent_m_middleDown_set) - m_rightDown = property(_core.MouseEvent_m_rightDown_get, _core.MouseEvent_m_rightDown_set) - m_controlDown = property(_core.MouseEvent_m_controlDown_get, _core.MouseEvent_m_controlDown_set) - m_shiftDown = property(_core.MouseEvent_m_shiftDown_get, _core.MouseEvent_m_shiftDown_set) - m_altDown = property(_core.MouseEvent_m_altDown_get, _core.MouseEvent_m_altDown_set) - m_metaDown = property(_core.MouseEvent_m_metaDown_get, _core.MouseEvent_m_metaDown_set) - m_wheelRotation = property(_core.MouseEvent_m_wheelRotation_get, _core.MouseEvent_m_wheelRotation_set) - m_wheelDelta = property(_core.MouseEvent_m_wheelDelta_get, _core.MouseEvent_m_wheelDelta_set) - m_linesPerAction = property(_core.MouseEvent_m_linesPerAction_get, _core.MouseEvent_m_linesPerAction_set) - -class MouseEventPtr(MouseEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = MouseEvent -_core.MouseEvent_swigregister(MouseEventPtr) - -#--------------------------------------------------------------------------- - -class SetCursorEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxSetCursorEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int x=0, int y=0) -> SetCursorEvent""" - newobj = _core.new_SetCursorEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetX(*args, **kwargs): - """GetX(self) -> int""" - return _core.SetCursorEvent_GetX(*args, **kwargs) - - def GetY(*args, **kwargs): - """GetY(self) -> int""" - return _core.SetCursorEvent_GetY(*args, **kwargs) - - def SetCursor(*args, **kwargs): - """SetCursor(self, Cursor cursor)""" - return _core.SetCursorEvent_SetCursor(*args, **kwargs) - - def GetCursor(*args, **kwargs): - """GetCursor(self) -> Cursor""" - return _core.SetCursorEvent_GetCursor(*args, **kwargs) - - def HasCursor(*args, **kwargs): - """HasCursor(self) -> bool""" - return _core.SetCursorEvent_HasCursor(*args, **kwargs) - - -class SetCursorEventPtr(SetCursorEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = SetCursorEvent -_core.SetCursorEvent_swigregister(SetCursorEventPtr) - -#--------------------------------------------------------------------------- - -class KeyEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxKeyEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, wxEventType keyType=wxEVT_NULL) -> KeyEvent""" - newobj = _core.new_KeyEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def ControlDown(*args, **kwargs): - """ControlDown(self) -> bool""" - return _core.KeyEvent_ControlDown(*args, **kwargs) - - def MetaDown(*args, **kwargs): - """MetaDown(self) -> bool""" - return _core.KeyEvent_MetaDown(*args, **kwargs) - - def AltDown(*args, **kwargs): - """AltDown(self) -> bool""" - return _core.KeyEvent_AltDown(*args, **kwargs) - - def ShiftDown(*args, **kwargs): - """ShiftDown(self) -> bool""" - return _core.KeyEvent_ShiftDown(*args, **kwargs) - - def HasModifiers(*args, **kwargs): - """HasModifiers(self) -> bool""" - return _core.KeyEvent_HasModifiers(*args, **kwargs) - - def GetKeyCode(*args, **kwargs): - """GetKeyCode(self) -> int""" - return _core.KeyEvent_GetKeyCode(*args, **kwargs) - - KeyCode = GetKeyCode - def GetUniChar(*args, **kwargs): - """GetUniChar(self) -> int""" - return _core.KeyEvent_GetUniChar(*args, **kwargs) - - def GetRawKeyCode(*args, **kwargs): - """GetRawKeyCode(self) -> unsigned int""" - return _core.KeyEvent_GetRawKeyCode(*args, **kwargs) - - def GetRawKeyFlags(*args, **kwargs): - """GetRawKeyFlags(self) -> unsigned int""" - return _core.KeyEvent_GetRawKeyFlags(*args, **kwargs) - - def GetPosition(*args, **kwargs): - """ - GetPosition(self) -> Point - - Find the position of the event. - """ - return _core.KeyEvent_GetPosition(*args, **kwargs) - - def GetPositionTuple(*args, **kwargs): - """ - GetPositionTuple() -> (x,y) - - Find the position of the event. - """ - return _core.KeyEvent_GetPositionTuple(*args, **kwargs) - - def GetX(*args, **kwargs): - """GetX(self) -> int""" - return _core.KeyEvent_GetX(*args, **kwargs) - - def GetY(*args, **kwargs): - """GetY(self) -> int""" - return _core.KeyEvent_GetY(*args, **kwargs) - - m_x = property(_core.KeyEvent_m_x_get, _core.KeyEvent_m_x_set) - m_y = property(_core.KeyEvent_m_y_get, _core.KeyEvent_m_y_set) - m_keyCode = property(_core.KeyEvent_m_keyCode_get, _core.KeyEvent_m_keyCode_set) - m_controlDown = property(_core.KeyEvent_m_controlDown_get, _core.KeyEvent_m_controlDown_set) - m_shiftDown = property(_core.KeyEvent_m_shiftDown_get, _core.KeyEvent_m_shiftDown_set) - m_altDown = property(_core.KeyEvent_m_altDown_get, _core.KeyEvent_m_altDown_set) - m_metaDown = property(_core.KeyEvent_m_metaDown_get, _core.KeyEvent_m_metaDown_set) - m_scanCode = property(_core.KeyEvent_m_scanCode_get, _core.KeyEvent_m_scanCode_set) - m_rawCode = property(_core.KeyEvent_m_rawCode_get, _core.KeyEvent_m_rawCode_set) - m_rawFlags = property(_core.KeyEvent_m_rawFlags_get, _core.KeyEvent_m_rawFlags_set) - -class KeyEventPtr(KeyEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = KeyEvent -_core.KeyEvent_swigregister(KeyEventPtr) - -#--------------------------------------------------------------------------- - -class SizeEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxSizeEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Size sz=DefaultSize, int winid=0) -> SizeEvent""" - newobj = _core.new_SizeEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetSize(*args, **kwargs): - """GetSize(self) -> Size""" - return _core.SizeEvent_GetSize(*args, **kwargs) - - def GetRect(*args, **kwargs): - """GetRect(self) -> Rect""" - return _core.SizeEvent_GetRect(*args, **kwargs) - - def SetRect(*args, **kwargs): - """SetRect(self, Rect rect)""" - return _core.SizeEvent_SetRect(*args, **kwargs) - - def SetSize(*args, **kwargs): - """SetSize(self, Size size)""" - return _core.SizeEvent_SetSize(*args, **kwargs) - - m_size = property(_core.SizeEvent_m_size_get, _core.SizeEvent_m_size_set) - m_rect = property(_core.SizeEvent_m_rect_get, _core.SizeEvent_m_rect_set) - -class SizeEventPtr(SizeEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = SizeEvent -_core.SizeEvent_swigregister(SizeEventPtr) - -#--------------------------------------------------------------------------- - -class MoveEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxMoveEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Point pos=DefaultPosition, int winid=0) -> MoveEvent""" - newobj = _core.new_MoveEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetPosition(*args, **kwargs): - """GetPosition(self) -> Point""" - return _core.MoveEvent_GetPosition(*args, **kwargs) - - def GetRect(*args, **kwargs): - """GetRect(self) -> Rect""" - return _core.MoveEvent_GetRect(*args, **kwargs) - - def SetRect(*args, **kwargs): - """SetRect(self, Rect rect)""" - return _core.MoveEvent_SetRect(*args, **kwargs) - - def SetPosition(*args, **kwargs): - """SetPosition(self, Point pos)""" - return _core.MoveEvent_SetPosition(*args, **kwargs) - - m_pos = property(_core.MoveEvent_m_pos_get, _core.MoveEvent_m_pos_set) - m_rect = property(_core.MoveEvent_m_rect_get, _core.MoveEvent_m_rect_set) - -class MoveEventPtr(MoveEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = MoveEvent -_core.MoveEvent_swigregister(MoveEventPtr) - -#--------------------------------------------------------------------------- - -class PaintEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPaintEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int Id=0) -> PaintEvent""" - newobj = _core.new_PaintEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class PaintEventPtr(PaintEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PaintEvent -_core.PaintEvent_swigregister(PaintEventPtr) - -class NcPaintEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxNcPaintEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int winid=0) -> NcPaintEvent""" - newobj = _core.new_NcPaintEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class NcPaintEventPtr(NcPaintEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = NcPaintEvent -_core.NcPaintEvent_swigregister(NcPaintEventPtr) - -#--------------------------------------------------------------------------- - -class EraseEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxEraseEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int Id=0, DC dc=(wxDC *) NULL) -> EraseEvent""" - newobj = _core.new_EraseEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetDC(*args, **kwargs): - """GetDC(self) -> DC""" - return _core.EraseEvent_GetDC(*args, **kwargs) - - -class EraseEventPtr(EraseEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = EraseEvent -_core.EraseEvent_swigregister(EraseEventPtr) - -#--------------------------------------------------------------------------- - -class FocusEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxFocusEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, wxEventType type=wxEVT_NULL, int winid=0) -> FocusEvent""" - newobj = _core.new_FocusEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetWindow(*args, **kwargs): - """GetWindow(self) -> Window""" - return _core.FocusEvent_GetWindow(*args, **kwargs) - - def SetWindow(*args, **kwargs): - """SetWindow(self, Window win)""" - return _core.FocusEvent_SetWindow(*args, **kwargs) - - -class FocusEventPtr(FocusEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = FocusEvent -_core.FocusEvent_swigregister(FocusEventPtr) - -#--------------------------------------------------------------------------- - -class ChildFocusEvent(CommandEvent): - def __repr__(self): - return "<%s.%s; proxy of C++ wxChildFocusEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Window win=None) -> ChildFocusEvent""" - newobj = _core.new_ChildFocusEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetWindow(*args, **kwargs): - """GetWindow(self) -> Window""" - return _core.ChildFocusEvent_GetWindow(*args, **kwargs) - - -class ChildFocusEventPtr(ChildFocusEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ChildFocusEvent -_core.ChildFocusEvent_swigregister(ChildFocusEventPtr) - -#--------------------------------------------------------------------------- - -class ActivateEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxActivateEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, wxEventType type=wxEVT_NULL, bool active=True, int Id=0) -> ActivateEvent""" - newobj = _core.new_ActivateEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetActive(*args, **kwargs): - """GetActive(self) -> bool""" - return _core.ActivateEvent_GetActive(*args, **kwargs) - - -class ActivateEventPtr(ActivateEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ActivateEvent -_core.ActivateEvent_swigregister(ActivateEventPtr) - -#--------------------------------------------------------------------------- - -class InitDialogEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxInitDialogEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int Id=0) -> InitDialogEvent""" - newobj = _core.new_InitDialogEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class InitDialogEventPtr(InitDialogEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = InitDialogEvent -_core.InitDialogEvent_swigregister(InitDialogEventPtr) - -#--------------------------------------------------------------------------- - -class MenuEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxMenuEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, wxEventType type=wxEVT_NULL, int winid=0, Menu menu=None) -> MenuEvent""" - newobj = _core.new_MenuEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetMenuId(*args, **kwargs): - """GetMenuId(self) -> int""" - return _core.MenuEvent_GetMenuId(*args, **kwargs) - - def IsPopup(*args, **kwargs): - """IsPopup(self) -> bool""" - return _core.MenuEvent_IsPopup(*args, **kwargs) - - def GetMenu(*args, **kwargs): - """GetMenu(self) -> Menu""" - return _core.MenuEvent_GetMenu(*args, **kwargs) - - -class MenuEventPtr(MenuEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = MenuEvent -_core.MenuEvent_swigregister(MenuEventPtr) - -#--------------------------------------------------------------------------- - -class CloseEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxCloseEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, wxEventType type=wxEVT_NULL, int winid=0) -> CloseEvent""" - newobj = _core.new_CloseEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def SetLoggingOff(*args, **kwargs): - """SetLoggingOff(self, bool logOff)""" - return _core.CloseEvent_SetLoggingOff(*args, **kwargs) - - def GetLoggingOff(*args, **kwargs): - """GetLoggingOff(self) -> bool""" - return _core.CloseEvent_GetLoggingOff(*args, **kwargs) - - def Veto(*args, **kwargs): - """Veto(self, bool veto=True)""" - return _core.CloseEvent_Veto(*args, **kwargs) - - def SetCanVeto(*args, **kwargs): - """SetCanVeto(self, bool canVeto)""" - return _core.CloseEvent_SetCanVeto(*args, **kwargs) - - def CanVeto(*args, **kwargs): - """CanVeto(self) -> bool""" - return _core.CloseEvent_CanVeto(*args, **kwargs) - - def GetVeto(*args, **kwargs): - """GetVeto(self) -> bool""" - return _core.CloseEvent_GetVeto(*args, **kwargs) - - -class CloseEventPtr(CloseEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = CloseEvent -_core.CloseEvent_swigregister(CloseEventPtr) - -#--------------------------------------------------------------------------- - -class ShowEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxShowEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int winid=0, bool show=False) -> ShowEvent""" - newobj = _core.new_ShowEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def SetShow(*args, **kwargs): - """SetShow(self, bool show)""" - return _core.ShowEvent_SetShow(*args, **kwargs) - - def GetShow(*args, **kwargs): - """GetShow(self) -> bool""" - return _core.ShowEvent_GetShow(*args, **kwargs) - - -class ShowEventPtr(ShowEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ShowEvent -_core.ShowEvent_swigregister(ShowEventPtr) - -#--------------------------------------------------------------------------- - -class IconizeEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxIconizeEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int id=0, bool iconized=True) -> IconizeEvent""" - newobj = _core.new_IconizeEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def Iconized(*args, **kwargs): - """Iconized(self) -> bool""" - return _core.IconizeEvent_Iconized(*args, **kwargs) - - -class IconizeEventPtr(IconizeEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = IconizeEvent -_core.IconizeEvent_swigregister(IconizeEventPtr) - -#--------------------------------------------------------------------------- - -class MaximizeEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxMaximizeEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int id=0) -> MaximizeEvent""" - newobj = _core.new_MaximizeEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class MaximizeEventPtr(MaximizeEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = MaximizeEvent -_core.MaximizeEvent_swigregister(MaximizeEventPtr) - -#--------------------------------------------------------------------------- - -class DropFilesEvent(Event): - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxDropFilesEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def GetPosition(*args, **kwargs): - """GetPosition(self) -> Point""" - return _core.DropFilesEvent_GetPosition(*args, **kwargs) - - def GetNumberOfFiles(*args, **kwargs): - """GetNumberOfFiles(self) -> int""" - return _core.DropFilesEvent_GetNumberOfFiles(*args, **kwargs) - - def GetFiles(*args, **kwargs): - """GetFiles(self) -> PyObject""" - return _core.DropFilesEvent_GetFiles(*args, **kwargs) - - -class DropFilesEventPtr(DropFilesEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = DropFilesEvent -_core.DropFilesEvent_swigregister(DropFilesEventPtr) - -#--------------------------------------------------------------------------- - -UPDATE_UI_PROCESS_ALL = _core.UPDATE_UI_PROCESS_ALL -UPDATE_UI_PROCESS_SPECIFIED = _core.UPDATE_UI_PROCESS_SPECIFIED -class UpdateUIEvent(CommandEvent): - def __repr__(self): - return "<%s.%s; proxy of C++ wxUpdateUIEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int commandId=0) -> UpdateUIEvent""" - newobj = _core.new_UpdateUIEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetChecked(*args, **kwargs): - """GetChecked(self) -> bool""" - return _core.UpdateUIEvent_GetChecked(*args, **kwargs) - - def GetEnabled(*args, **kwargs): - """GetEnabled(self) -> bool""" - return _core.UpdateUIEvent_GetEnabled(*args, **kwargs) - - def GetText(*args, **kwargs): - """GetText(self) -> String""" - return _core.UpdateUIEvent_GetText(*args, **kwargs) - - def GetSetText(*args, **kwargs): - """GetSetText(self) -> bool""" - return _core.UpdateUIEvent_GetSetText(*args, **kwargs) - - def GetSetChecked(*args, **kwargs): - """GetSetChecked(self) -> bool""" - return _core.UpdateUIEvent_GetSetChecked(*args, **kwargs) - - def GetSetEnabled(*args, **kwargs): - """GetSetEnabled(self) -> bool""" - return _core.UpdateUIEvent_GetSetEnabled(*args, **kwargs) - - def Check(*args, **kwargs): - """Check(self, bool check)""" - return _core.UpdateUIEvent_Check(*args, **kwargs) - - def Enable(*args, **kwargs): - """Enable(self, bool enable)""" - return _core.UpdateUIEvent_Enable(*args, **kwargs) - - def SetText(*args, **kwargs): - """SetText(self, String text)""" - return _core.UpdateUIEvent_SetText(*args, **kwargs) - - def SetUpdateInterval(*args, **kwargs): - """UpdateUIEvent.SetUpdateInterval(long updateInterval)""" - return _core.UpdateUIEvent_SetUpdateInterval(*args, **kwargs) - - SetUpdateInterval = staticmethod(SetUpdateInterval) - def GetUpdateInterval(*args, **kwargs): - """UpdateUIEvent.GetUpdateInterval() -> long""" - return _core.UpdateUIEvent_GetUpdateInterval(*args, **kwargs) - - GetUpdateInterval = staticmethod(GetUpdateInterval) - def CanUpdate(*args, **kwargs): - """UpdateUIEvent.CanUpdate(Window win) -> bool""" - return _core.UpdateUIEvent_CanUpdate(*args, **kwargs) - - CanUpdate = staticmethod(CanUpdate) - def ResetUpdateTime(*args, **kwargs): - """UpdateUIEvent.ResetUpdateTime()""" - return _core.UpdateUIEvent_ResetUpdateTime(*args, **kwargs) - - ResetUpdateTime = staticmethod(ResetUpdateTime) - def SetMode(*args, **kwargs): - """UpdateUIEvent.SetMode(int mode)""" - return _core.UpdateUIEvent_SetMode(*args, **kwargs) - - SetMode = staticmethod(SetMode) - def GetMode(*args, **kwargs): - """UpdateUIEvent.GetMode() -> int""" - return _core.UpdateUIEvent_GetMode(*args, **kwargs) - - GetMode = staticmethod(GetMode) - -class UpdateUIEventPtr(UpdateUIEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = UpdateUIEvent -_core.UpdateUIEvent_swigregister(UpdateUIEventPtr) - -def UpdateUIEvent_SetUpdateInterval(*args, **kwargs): - """UpdateUIEvent_SetUpdateInterval(long updateInterval)""" - return _core.UpdateUIEvent_SetUpdateInterval(*args, **kwargs) - -def UpdateUIEvent_GetUpdateInterval(*args, **kwargs): - """UpdateUIEvent_GetUpdateInterval() -> long""" - return _core.UpdateUIEvent_GetUpdateInterval(*args, **kwargs) - -def UpdateUIEvent_CanUpdate(*args, **kwargs): - """UpdateUIEvent_CanUpdate(Window win) -> bool""" - return _core.UpdateUIEvent_CanUpdate(*args, **kwargs) - -def UpdateUIEvent_ResetUpdateTime(*args, **kwargs): - """UpdateUIEvent_ResetUpdateTime()""" - return _core.UpdateUIEvent_ResetUpdateTime(*args, **kwargs) - -def UpdateUIEvent_SetMode(*args, **kwargs): - """UpdateUIEvent_SetMode(int mode)""" - return _core.UpdateUIEvent_SetMode(*args, **kwargs) - -def UpdateUIEvent_GetMode(*args, **kwargs): - """UpdateUIEvent_GetMode() -> int""" - return _core.UpdateUIEvent_GetMode(*args, **kwargs) - -#--------------------------------------------------------------------------- - -class SysColourChangedEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxSysColourChangedEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> SysColourChangedEvent""" - newobj = _core.new_SysColourChangedEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class SysColourChangedEventPtr(SysColourChangedEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = SysColourChangedEvent -_core.SysColourChangedEvent_swigregister(SysColourChangedEventPtr) - -#--------------------------------------------------------------------------- - -class MouseCaptureChangedEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxMouseCaptureChangedEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int winid=0, Window gainedCapture=None) -> MouseCaptureChangedEvent""" - newobj = _core.new_MouseCaptureChangedEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetCapturedWindow(*args, **kwargs): - """GetCapturedWindow(self) -> Window""" - return _core.MouseCaptureChangedEvent_GetCapturedWindow(*args, **kwargs) - - -class MouseCaptureChangedEventPtr(MouseCaptureChangedEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = MouseCaptureChangedEvent -_core.MouseCaptureChangedEvent_swigregister(MouseCaptureChangedEventPtr) - -#--------------------------------------------------------------------------- - -class DisplayChangedEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxDisplayChangedEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> DisplayChangedEvent""" - newobj = _core.new_DisplayChangedEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class DisplayChangedEventPtr(DisplayChangedEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = DisplayChangedEvent -_core.DisplayChangedEvent_swigregister(DisplayChangedEventPtr) - -#--------------------------------------------------------------------------- - -class PaletteChangedEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPaletteChangedEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int id=0) -> PaletteChangedEvent""" - newobj = _core.new_PaletteChangedEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def SetChangedWindow(*args, **kwargs): - """SetChangedWindow(self, Window win)""" - return _core.PaletteChangedEvent_SetChangedWindow(*args, **kwargs) - - def GetChangedWindow(*args, **kwargs): - """GetChangedWindow(self) -> Window""" - return _core.PaletteChangedEvent_GetChangedWindow(*args, **kwargs) - - -class PaletteChangedEventPtr(PaletteChangedEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PaletteChangedEvent -_core.PaletteChangedEvent_swigregister(PaletteChangedEventPtr) - -#--------------------------------------------------------------------------- - -class QueryNewPaletteEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxQueryNewPaletteEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int winid=0) -> QueryNewPaletteEvent""" - newobj = _core.new_QueryNewPaletteEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def SetPaletteRealized(*args, **kwargs): - """SetPaletteRealized(self, bool realized)""" - return _core.QueryNewPaletteEvent_SetPaletteRealized(*args, **kwargs) - - def GetPaletteRealized(*args, **kwargs): - """GetPaletteRealized(self) -> bool""" - return _core.QueryNewPaletteEvent_GetPaletteRealized(*args, **kwargs) - - -class QueryNewPaletteEventPtr(QueryNewPaletteEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = QueryNewPaletteEvent -_core.QueryNewPaletteEvent_swigregister(QueryNewPaletteEventPtr) - -#--------------------------------------------------------------------------- - -class NavigationKeyEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxNavigationKeyEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> NavigationKeyEvent""" - newobj = _core.new_NavigationKeyEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetDirection(*args, **kwargs): - """GetDirection(self) -> bool""" - return _core.NavigationKeyEvent_GetDirection(*args, **kwargs) - - def SetDirection(*args, **kwargs): - """SetDirection(self, bool bForward)""" - return _core.NavigationKeyEvent_SetDirection(*args, **kwargs) - - def IsWindowChange(*args, **kwargs): - """IsWindowChange(self) -> bool""" - return _core.NavigationKeyEvent_IsWindowChange(*args, **kwargs) - - def SetWindowChange(*args, **kwargs): - """SetWindowChange(self, bool bIs)""" - return _core.NavigationKeyEvent_SetWindowChange(*args, **kwargs) - - def GetCurrentFocus(*args, **kwargs): - """GetCurrentFocus(self) -> Window""" - return _core.NavigationKeyEvent_GetCurrentFocus(*args, **kwargs) - - def SetCurrentFocus(*args, **kwargs): - """SetCurrentFocus(self, Window win)""" - return _core.NavigationKeyEvent_SetCurrentFocus(*args, **kwargs) - - -class NavigationKeyEventPtr(NavigationKeyEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = NavigationKeyEvent -_core.NavigationKeyEvent_swigregister(NavigationKeyEventPtr) - -#--------------------------------------------------------------------------- - -class WindowCreateEvent(CommandEvent): - def __repr__(self): - return "<%s.%s; proxy of C++ wxWindowCreateEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Window win=None) -> WindowCreateEvent""" - newobj = _core.new_WindowCreateEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetWindow(*args, **kwargs): - """GetWindow(self) -> Window""" - return _core.WindowCreateEvent_GetWindow(*args, **kwargs) - - -class WindowCreateEventPtr(WindowCreateEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = WindowCreateEvent -_core.WindowCreateEvent_swigregister(WindowCreateEventPtr) - -class WindowDestroyEvent(CommandEvent): - def __repr__(self): - return "<%s.%s; proxy of C++ wxWindowDestroyEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Window win=None) -> WindowDestroyEvent""" - newobj = _core.new_WindowDestroyEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetWindow(*args, **kwargs): - """GetWindow(self) -> Window""" - return _core.WindowDestroyEvent_GetWindow(*args, **kwargs) - - -class WindowDestroyEventPtr(WindowDestroyEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = WindowDestroyEvent -_core.WindowDestroyEvent_swigregister(WindowDestroyEventPtr) - -#--------------------------------------------------------------------------- - -class ContextMenuEvent(CommandEvent): - def __repr__(self): - return "<%s.%s; proxy of C++ wxContextMenuEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> ContextMenuEvent""" - newobj = _core.new_ContextMenuEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetPosition(*args, **kwargs): - """GetPosition(self) -> Point""" - return _core.ContextMenuEvent_GetPosition(*args, **kwargs) - - def SetPosition(*args, **kwargs): - """SetPosition(self, Point pos)""" - return _core.ContextMenuEvent_SetPosition(*args, **kwargs) - - -class ContextMenuEventPtr(ContextMenuEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ContextMenuEvent -_core.ContextMenuEvent_swigregister(ContextMenuEventPtr) - -#--------------------------------------------------------------------------- - -IDLE_PROCESS_ALL = _core.IDLE_PROCESS_ALL -IDLE_PROCESS_SPECIFIED = _core.IDLE_PROCESS_SPECIFIED -class IdleEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxIdleEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> IdleEvent""" - newobj = _core.new_IdleEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def RequestMore(*args, **kwargs): - """RequestMore(self, bool needMore=True)""" - return _core.IdleEvent_RequestMore(*args, **kwargs) - - def MoreRequested(*args, **kwargs): - """MoreRequested(self) -> bool""" - return _core.IdleEvent_MoreRequested(*args, **kwargs) - - def SetMode(*args, **kwargs): - """IdleEvent.SetMode(int mode)""" - return _core.IdleEvent_SetMode(*args, **kwargs) - - SetMode = staticmethod(SetMode) - def GetMode(*args, **kwargs): - """IdleEvent.GetMode() -> int""" - return _core.IdleEvent_GetMode(*args, **kwargs) - - GetMode = staticmethod(GetMode) - def CanSend(*args, **kwargs): - """IdleEvent.CanSend(Window win) -> bool""" - return _core.IdleEvent_CanSend(*args, **kwargs) - - CanSend = staticmethod(CanSend) - -class IdleEventPtr(IdleEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = IdleEvent -_core.IdleEvent_swigregister(IdleEventPtr) - -def IdleEvent_SetMode(*args, **kwargs): - """IdleEvent_SetMode(int mode)""" - return _core.IdleEvent_SetMode(*args, **kwargs) - -def IdleEvent_GetMode(*args, **kwargs): - """IdleEvent_GetMode() -> int""" - return _core.IdleEvent_GetMode(*args, **kwargs) - -def IdleEvent_CanSend(*args, **kwargs): - """IdleEvent_CanSend(Window win) -> bool""" - return _core.IdleEvent_CanSend(*args, **kwargs) - -#--------------------------------------------------------------------------- - -class PyEvent(Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int winid=0, wxEventType commandType=wxEVT_NULL) -> PyEvent""" - newobj = _core.new_PyEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self.SetSelf(self) - - def __del__(self, destroy=_core.delete_PyEvent): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def SetSelf(*args, **kwargs): - """SetSelf(self, PyObject self)""" - return _core.PyEvent_SetSelf(*args, **kwargs) - - def GetSelf(*args, **kwargs): - """GetSelf(self) -> PyObject""" - return _core.PyEvent_GetSelf(*args, **kwargs) - - -class PyEventPtr(PyEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PyEvent -_core.PyEvent_swigregister(PyEventPtr) - -class PyCommandEvent(CommandEvent): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyCommandEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> PyCommandEvent""" - newobj = _core.new_PyCommandEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self.SetSelf(self) - - def __del__(self, destroy=_core.delete_PyCommandEvent): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def SetSelf(*args, **kwargs): - """SetSelf(self, PyObject self)""" - return _core.PyCommandEvent_SetSelf(*args, **kwargs) - - def GetSelf(*args, **kwargs): - """GetSelf(self) -> PyObject""" - return _core.PyCommandEvent_GetSelf(*args, **kwargs) - - -class PyCommandEventPtr(PyCommandEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PyCommandEvent -_core.PyCommandEvent_swigregister(PyCommandEventPtr) - -#--------------------------------------------------------------------------- - -PYAPP_ASSERT_SUPPRESS = _core.PYAPP_ASSERT_SUPPRESS -PYAPP_ASSERT_EXCEPTION = _core.PYAPP_ASSERT_EXCEPTION -PYAPP_ASSERT_DIALOG = _core.PYAPP_ASSERT_DIALOG -PYAPP_ASSERT_LOG = _core.PYAPP_ASSERT_LOG -PRINT_WINDOWS = _core.PRINT_WINDOWS -PRINT_POSTSCRIPT = _core.PRINT_POSTSCRIPT -class PyApp(EvtHandler): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyApp instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self) -> PyApp - - Create a new application object, starting the bootstrap process. - """ - newobj = _core.new_PyApp(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setCallbackInfo(self, PyApp) - self._setOORInfo(self) - - def __del__(self, destroy=_core.delete_PyApp): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _core.PyApp__setCallbackInfo(*args, **kwargs) - - def GetAppName(*args, **kwargs): - """ - GetAppName(self) -> String - - Get the application name. - """ - return _core.PyApp_GetAppName(*args, **kwargs) - - def SetAppName(*args, **kwargs): - """ - SetAppName(self, String name) - - Set the application name. This value may be used automatically - by wx.Config and such. - """ - return _core.PyApp_SetAppName(*args, **kwargs) - - def GetClassName(*args, **kwargs): - """ - GetClassName(self) -> String - - Get the application's class name. - """ - return _core.PyApp_GetClassName(*args, **kwargs) - - def SetClassName(*args, **kwargs): - """ - SetClassName(self, String name) - - Set the application's class name. This value may be used for X-resources if - applicable for the platform - """ - return _core.PyApp_SetClassName(*args, **kwargs) - - def GetVendorName(*args, **kwargs): - """ - GetVendorName(self) -> String - - Get the application's vendor name. - """ - return _core.PyApp_GetVendorName(*args, **kwargs) - - def SetVendorName(*args, **kwargs): - """ - SetVendorName(self, String name) - - Set the application's vendor name. This value may be used automatically - by wx.Config and such. - """ - return _core.PyApp_SetVendorName(*args, **kwargs) - - def GetTraits(*args, **kwargs): - """ - GetTraits(self) -> wxAppTraits - - Create the app traits object to which we delegate for everything which either - should be configurable by the user (then he can change the default behaviour - simply by overriding CreateTraits() and returning his own traits object) or - which is GUI/console dependent as then wx.AppTraits allows us to abstract the - differences behind the common facade - """ - return _core.PyApp_GetTraits(*args, **kwargs) - - def ProcessPendingEvents(*args, **kwargs): - """ - ProcessPendingEvents(self) - - Process all events in the Pending Events list -- it is necessary to call this - function to process posted events. This happens during each event loop - iteration. - """ - return _core.PyApp_ProcessPendingEvents(*args, **kwargs) - - def Yield(*args, **kwargs): - """ - Yield(self, bool onlyIfNeeded=False) -> bool - - Process all currently pending events right now, instead of waiting until - return to the event loop. It is an error to call Yield() recursively unless - the value of onlyIfNeeded is True. - - WARNING: This function is dangerous as it can lead to unexpected - reentrancies (i.e. when called from an event handler it - may result in calling the same event handler again), use - with _extreme_ care or, better, don't use at all! - - """ - return _core.PyApp_Yield(*args, **kwargs) - - def WakeUpIdle(*args, **kwargs): - """ - WakeUpIdle(self) - - Make sure that idle events are sent again - """ - return _core.PyApp_WakeUpIdle(*args, **kwargs) - - def MainLoop(*args, **kwargs): - """ - MainLoop(self) -> int - - Execute the main GUI loop, the function returns when the loop ends. - """ - return _core.PyApp_MainLoop(*args, **kwargs) - - def Exit(*args, **kwargs): - """ - Exit(self) - - Exit the main loop thus terminating the application. - """ - return _core.PyApp_Exit(*args, **kwargs) - - def ExitMainLoop(*args, **kwargs): - """ - ExitMainLoop(self) - - Exit the main GUI loop during the next iteration (i.e. it does not - stop the program immediately!) - """ - return _core.PyApp_ExitMainLoop(*args, **kwargs) - - def Pending(*args, **kwargs): - """ - Pending(self) -> bool - - Returns True if there are unprocessed events in the event queue. - """ - return _core.PyApp_Pending(*args, **kwargs) - - def Dispatch(*args, **kwargs): - """ - Dispatch(self) -> bool - - Process the first event in the event queue (blocks until an event - appears if there are none currently) - """ - return _core.PyApp_Dispatch(*args, **kwargs) - - def ProcessIdle(*args, **kwargs): - """ - ProcessIdle(self) -> bool - - Called from the MainLoop when the application becomes idle and sends an - IdleEvent to all interested parties. Returns True is more idle events are - needed, False if not. - """ - return _core.PyApp_ProcessIdle(*args, **kwargs) - - def SendIdleEvents(*args, **kwargs): - """ - SendIdleEvents(self, Window win, IdleEvent event) -> bool - - Send idle event to window and all subwindows. Returns True if more idle time - is requested. - """ - return _core.PyApp_SendIdleEvents(*args, **kwargs) - - def IsActive(*args, **kwargs): - """ - IsActive(self) -> bool - - Return True if our app has focus. - """ - return _core.PyApp_IsActive(*args, **kwargs) - - def SetTopWindow(*args, **kwargs): - """ - SetTopWindow(self, Window win) - - Set the "main" top level window - """ - return _core.PyApp_SetTopWindow(*args, **kwargs) - - def GetTopWindow(*args, **kwargs): - """ - GetTopWindow(self) -> Window - - Return the "main" top level window (if it hadn't been set previously with - SetTopWindow(), will return just some top level window and, if there not any, - will return None) - """ - return _core.PyApp_GetTopWindow(*args, **kwargs) - - def SetExitOnFrameDelete(*args, **kwargs): - """ - SetExitOnFrameDelete(self, bool flag) - - Control the exit behaviour: by default, the program will exit the main loop - (and so, usually, terminate) when the last top-level program window is - deleted. Beware that if you disable this behaviour (with - SetExitOnFrameDelete(False)), you'll have to call ExitMainLoop() explicitly - from somewhere. - - """ - return _core.PyApp_SetExitOnFrameDelete(*args, **kwargs) - - def GetExitOnFrameDelete(*args, **kwargs): - """ - GetExitOnFrameDelete(self) -> bool - - Get the current exit behaviour setting. - """ - return _core.PyApp_GetExitOnFrameDelete(*args, **kwargs) - - def SetUseBestVisual(*args, **kwargs): - """ - SetUseBestVisual(self, bool flag) - - Set whether the app should try to use the best available visual on systems - where more than one is available, (Sun, SGI, XFree86 4, etc.) - """ - return _core.PyApp_SetUseBestVisual(*args, **kwargs) - - def GetUseBestVisual(*args, **kwargs): - """ - GetUseBestVisual(self) -> bool - - Get current UseBestVisual setting. - """ - return _core.PyApp_GetUseBestVisual(*args, **kwargs) - - def SetPrintMode(*args, **kwargs): - """SetPrintMode(self, int mode)""" - return _core.PyApp_SetPrintMode(*args, **kwargs) - - def GetPrintMode(*args, **kwargs): - """GetPrintMode(self) -> int""" - return _core.PyApp_GetPrintMode(*args, **kwargs) - - def SetAssertMode(*args, **kwargs): - """ - SetAssertMode(self, int mode) - - Set the OnAssert behaviour for debug and hybrid builds. The following flags - may be or'd together: - - wx.PYAPP_ASSERT_SUPPRESS Don't do anything - wx.PYAPP_ASSERT_EXCEPTION Turn it into a Python exception if possible (default) - wx.PYAPP_ASSERT_DIALOG Display a message dialog - wx.PYAPP_ASSERT_LOG Write the assertion info to the wx.Log - - """ - return _core.PyApp_SetAssertMode(*args, **kwargs) - - def GetAssertMode(*args, **kwargs): - """ - GetAssertMode(self) -> int - - Get the current OnAssert behaviour setting. - """ - return _core.PyApp_GetAssertMode(*args, **kwargs) - - def GetMacSupportPCMenuShortcuts(*args, **kwargs): - """PyApp.GetMacSupportPCMenuShortcuts() -> bool""" - return _core.PyApp_GetMacSupportPCMenuShortcuts(*args, **kwargs) - - GetMacSupportPCMenuShortcuts = staticmethod(GetMacSupportPCMenuShortcuts) - def GetMacAboutMenuItemId(*args, **kwargs): - """PyApp.GetMacAboutMenuItemId() -> long""" - return _core.PyApp_GetMacAboutMenuItemId(*args, **kwargs) - - GetMacAboutMenuItemId = staticmethod(GetMacAboutMenuItemId) - def GetMacPreferencesMenuItemId(*args, **kwargs): - """PyApp.GetMacPreferencesMenuItemId() -> long""" - return _core.PyApp_GetMacPreferencesMenuItemId(*args, **kwargs) - - GetMacPreferencesMenuItemId = staticmethod(GetMacPreferencesMenuItemId) - def GetMacExitMenuItemId(*args, **kwargs): - """PyApp.GetMacExitMenuItemId() -> long""" - return _core.PyApp_GetMacExitMenuItemId(*args, **kwargs) - - GetMacExitMenuItemId = staticmethod(GetMacExitMenuItemId) - def GetMacHelpMenuTitleName(*args, **kwargs): - """PyApp.GetMacHelpMenuTitleName() -> String""" - return _core.PyApp_GetMacHelpMenuTitleName(*args, **kwargs) - - GetMacHelpMenuTitleName = staticmethod(GetMacHelpMenuTitleName) - def SetMacSupportPCMenuShortcuts(*args, **kwargs): - """PyApp.SetMacSupportPCMenuShortcuts(bool val)""" - return _core.PyApp_SetMacSupportPCMenuShortcuts(*args, **kwargs) - - SetMacSupportPCMenuShortcuts = staticmethod(SetMacSupportPCMenuShortcuts) - def SetMacAboutMenuItemId(*args, **kwargs): - """PyApp.SetMacAboutMenuItemId(long val)""" - return _core.PyApp_SetMacAboutMenuItemId(*args, **kwargs) - - SetMacAboutMenuItemId = staticmethod(SetMacAboutMenuItemId) - def SetMacPreferencesMenuItemId(*args, **kwargs): - """PyApp.SetMacPreferencesMenuItemId(long val)""" - return _core.PyApp_SetMacPreferencesMenuItemId(*args, **kwargs) - - SetMacPreferencesMenuItemId = staticmethod(SetMacPreferencesMenuItemId) - def SetMacExitMenuItemId(*args, **kwargs): - """PyApp.SetMacExitMenuItemId(long val)""" - return _core.PyApp_SetMacExitMenuItemId(*args, **kwargs) - - SetMacExitMenuItemId = staticmethod(SetMacExitMenuItemId) - def SetMacHelpMenuTitleName(*args, **kwargs): - """PyApp.SetMacHelpMenuTitleName(String val)""" - return _core.PyApp_SetMacHelpMenuTitleName(*args, **kwargs) - - SetMacHelpMenuTitleName = staticmethod(SetMacHelpMenuTitleName) - def _BootstrapApp(*args, **kwargs): - """ - _BootstrapApp(self) - - For internal use only - """ - return _core.PyApp__BootstrapApp(*args, **kwargs) - - def GetComCtl32Version(*args, **kwargs): - """ - PyApp.GetComCtl32Version() -> int - - Returns 400, 470, 471, etc. for comctl32.dll 4.00, 4.70, 4.71 or - 0 if it wasn't found at all. Raises an exception on non-Windows - platforms. - """ - return _core.PyApp_GetComCtl32Version(*args, **kwargs) - - GetComCtl32Version = staticmethod(GetComCtl32Version) - -class PyAppPtr(PyApp): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PyApp -_core.PyApp_swigregister(PyAppPtr) - -def PyApp_GetMacSupportPCMenuShortcuts(*args, **kwargs): - """PyApp_GetMacSupportPCMenuShortcuts() -> bool""" - return _core.PyApp_GetMacSupportPCMenuShortcuts(*args, **kwargs) - -def PyApp_GetMacAboutMenuItemId(*args, **kwargs): - """PyApp_GetMacAboutMenuItemId() -> long""" - return _core.PyApp_GetMacAboutMenuItemId(*args, **kwargs) - -def PyApp_GetMacPreferencesMenuItemId(*args, **kwargs): - """PyApp_GetMacPreferencesMenuItemId() -> long""" - return _core.PyApp_GetMacPreferencesMenuItemId(*args, **kwargs) - -def PyApp_GetMacExitMenuItemId(*args, **kwargs): - """PyApp_GetMacExitMenuItemId() -> long""" - return _core.PyApp_GetMacExitMenuItemId(*args, **kwargs) - -def PyApp_GetMacHelpMenuTitleName(*args, **kwargs): - """PyApp_GetMacHelpMenuTitleName() -> String""" - return _core.PyApp_GetMacHelpMenuTitleName(*args, **kwargs) - -def PyApp_SetMacSupportPCMenuShortcuts(*args, **kwargs): - """PyApp_SetMacSupportPCMenuShortcuts(bool val)""" - return _core.PyApp_SetMacSupportPCMenuShortcuts(*args, **kwargs) - -def PyApp_SetMacAboutMenuItemId(*args, **kwargs): - """PyApp_SetMacAboutMenuItemId(long val)""" - return _core.PyApp_SetMacAboutMenuItemId(*args, **kwargs) - -def PyApp_SetMacPreferencesMenuItemId(*args, **kwargs): - """PyApp_SetMacPreferencesMenuItemId(long val)""" - return _core.PyApp_SetMacPreferencesMenuItemId(*args, **kwargs) - -def PyApp_SetMacExitMenuItemId(*args, **kwargs): - """PyApp_SetMacExitMenuItemId(long val)""" - return _core.PyApp_SetMacExitMenuItemId(*args, **kwargs) - -def PyApp_SetMacHelpMenuTitleName(*args, **kwargs): - """PyApp_SetMacHelpMenuTitleName(String val)""" - return _core.PyApp_SetMacHelpMenuTitleName(*args, **kwargs) - -def PyApp_GetComCtl32Version(*args, **kwargs): - """ - PyApp_GetComCtl32Version() -> int - - Returns 400, 470, 471, etc. for comctl32.dll 4.00, 4.70, 4.71 or - 0 if it wasn't found at all. Raises an exception on non-Windows - platforms. - """ - return _core.PyApp_GetComCtl32Version(*args, **kwargs) - -#--------------------------------------------------------------------------- - - -def Exit(*args, **kwargs): - """ - Exit() - - Force an exit of the application. Convenience for wx.GetApp().Exit() - """ - return _core.Exit(*args, **kwargs) - -def Yield(*args, **kwargs): - """ - Yield() -> bool - - Yield to other apps/messages. Convenience for wx.GetApp().Yield() - """ - return _core.Yield(*args, **kwargs) - -def YieldIfNeeded(*args, **kwargs): - """ - YieldIfNeeded() -> bool - - Yield to other apps/messages. Convenience for wx.GetApp().Yield(True) - """ - return _core.YieldIfNeeded(*args, **kwargs) - -def SafeYield(*args, **kwargs): - """ - SafeYield(Window win=None, bool onlyIfNeeded=False) -> bool - - This function is similar to wx.Yield, except that it disables the user input - to all program windows before calling wx.Yield and re-enables it again - afterwards. If win is not None, this window will remain enabled, allowing the - implementation of some limited user interaction. - - Returns the result of the call to wx.Yield. - """ - return _core.SafeYield(*args, **kwargs) - -def WakeUpIdle(*args, **kwargs): - """ - WakeUpIdle() - - Cause the message queue to become empty again, so idle events will be sent. - """ - return _core.WakeUpIdle(*args, **kwargs) - -def PostEvent(*args, **kwargs): - """ - PostEvent(EvtHandler dest, Event event) - - Send an event to a window or other wx.EvtHandler to be processed later. - """ - return _core.PostEvent(*args, **kwargs) - -def App_CleanUp(*args, **kwargs): - """ - App_CleanUp() - - For internal use only, it is used to cleanup after wxWindows when Python shuts down. - """ - return _core.App_CleanUp(*args, **kwargs) - -def GetApp(*args, **kwargs): - """ - GetApp() -> PyApp - - Return a reference to the current wx.App object. - """ - return _core.GetApp(*args, **kwargs) -#---------------------------------------------------------------------- - -class PyOnDemandOutputWindow: - """ - A class that can be used for redirecting Python's stdout and - stderr streams. It will do nothing until something is wrriten to - the stream at which point it will create a Frame with a text area - and write the text there. - """ - def __init__(self, title = "wxPython: stdout/stderr"): - self.frame = None - self.title = title - self.parent = None - - def SetParent(self, parent): - """Set the window to be used as the popup Frame's parent.""" - self.parent = parent - - - def CreateOutputWindow(self, st): - self.frame = wx.Frame(self.parent, -1, self.title, - style=wx.DEFAULT_FRAME_STYLE | wx.NO_FULL_REPAINT_ON_RESIZE) - self.text = wx.TextCtrl(self.frame, -1, "", - style = wx.TE_MULTILINE | wx.TE_READONLY) - self.text.AppendText(st) - self.frame.SetSize((450, 300)) - self.frame.Show(True) - EVT_CLOSE(self.frame, self.OnCloseWindow) - - - def OnCloseWindow(self, event): - if self.frame is not None: - self.frame.Destroy() - self.frame = None - self.text = None - - - # These methods provide the file-like output behaviour. - def write(self, text): - """ - Create the output window if needed and write the string to it. - If not called in the context of the gui thread then uses - CallAfter to do the work there. - """ - if self.frame is None: - if not wx.Thread_IsMain(): - wx.CallAfter(self.CreateOutputWindow, text) - else: - self.CreateOutputWindow(text) - else: - if not wx.Thread_IsMain(): - wx.CallAfter(self.text.AppendText, text) - else: - self.text.AppendText(text) - - - def close(self): - if self.frame is not None: - wx.CallAfter(self.frame.Close) - - - -#---------------------------------------------------------------------- - -_defRedirect = (wx.Platform == '__WXMSW__' or wx.Platform == '__WXMAC__') - -class App(wx.PyApp): - """ - The main application class. Derive from this and implement an OnInit - method that creates a frame and then calls self.SetTopWindow(frame) - """ - outputWindowClass = PyOnDemandOutputWindow - - def __init__(self, redirect=_defRedirect, filename=None, useBestVisual=False): - wx.PyApp.__init__(self) - - if wx.Platform == "__WXMAC__": - try: - import MacOS - if not MacOS.WMAvailable(): - print """\ -This program needs access to the screen. Please run with 'pythonw', -not 'python', and only when you are logged in on the main display of -your Mac.""" - _sys.exit(1) - except: - pass - - # This has to be done before OnInit - self.SetUseBestVisual(useBestVisual) - - # Set the default handler for SIGINT. This fixes a problem - # where if Ctrl-C is pressed in the console that started this - # app then it will not appear to do anything, (not even send - # KeyboardInterrupt???) but will later segfault on exit. By - # setting the default handler then the app will exit, as - # expected (depending on platform.) - try: - import signal - signal.signal(signal.SIGINT, signal.SIG_DFL) - except: - pass - - # Save and redirect the stdio to a window? - self.stdioWin = None - self.saveStdio = (_sys.stdout, _sys.stderr) - if redirect: - self.RedirectStdio(filename) - - # This finishes the initialization of wxWindows and then calls - # the OnInit that should be present in the derived class - self._BootstrapApp() - - - def __del__(self): - try: - self.RestoreStdio() # Just in case the MainLoop was overridden - except: - pass - - - def SetTopWindow(self, frame): - """Set the \"main\" top level window""" - if self.stdioWin: - self.stdioWin.SetParent(frame) - wx.PyApp.SetTopWindow(self, frame) - - - def MainLoop(self): - """Execute the main GUI event loop""" - wx.PyApp.MainLoop(self) - self.RestoreStdio() - - - def RedirectStdio(self, filename=None): - """Redirect sys.stdout and sys.stderr to a file or a popup window.""" - if filename: - _sys.stdout = _sys.stderr = open(filename, 'a') - else: - self.stdioWin = self.outputWindowClass() - _sys.stdout = _sys.stderr = self.stdioWin - - - def RestoreStdio(self): - _sys.stdout, _sys.stderr = self.saveStdio - - - -# change from wxPyApp_ to wxApp_ -App_GetMacSupportPCMenuShortcuts = _core.PyApp_GetMacSupportPCMenuShortcuts -App_GetMacAboutMenuItemId = _core.PyApp_GetMacAboutMenuItemId -App_GetMacPreferencesMenuItemId = _core.PyApp_GetMacPreferencesMenuItemId -App_GetMacExitMenuItemId = _core.PyApp_GetMacExitMenuItemId -App_GetMacHelpMenuTitleName = _core.PyApp_GetMacHelpMenuTitleName -App_SetMacSupportPCMenuShortcuts = _core.PyApp_SetMacSupportPCMenuShortcuts -App_SetMacAboutMenuItemId = _core.PyApp_SetMacAboutMenuItemId -App_SetMacPreferencesMenuItemId = _core.PyApp_SetMacPreferencesMenuItemId -App_SetMacExitMenuItemId = _core.PyApp_SetMacExitMenuItemId -App_SetMacHelpMenuTitleName = _core.PyApp_SetMacHelpMenuTitleName -App_GetComCtl32Version = _core.PyApp_GetComCtl32Version - -#---------------------------------------------------------------------------- - -class PySimpleApp(wx.App): - """ - A simple application class. You can just create one of these and - then then make your top level windows later, and not have to worry - about OnInit.""" - - def __init__(self, redirect=False, filename=None, useBestVisual=False): - wx.App.__init__(self, redirect, filename, useBestVisual) - - def OnInit(self): - wx.InitAllImageHandlers() - return True - - -# Is anybody using this one? -class PyWidgetTester(wx.App): - def __init__(self, size = (250, 100)): - self.size = size - wx.App.__init__(self, 0) - - def OnInit(self): - self.frame = wx.Frame(None, -1, "Widget Tester", pos=(0,0), size=self.size) - self.SetTopWindow(self.frame) - return True - - def SetWidget(self, widgetClass, *args): - w = widgetClass(self.frame, *args) - self.frame.Show(True) - -#---------------------------------------------------------------------------- -# DO NOT hold any other references to this object. This is how we -# know when to cleanup system resources that wxWin is holding. When -# the sys module is unloaded, the refcount on sys.__wxPythonCleanup -# goes to zero and it calls the wxApp_CleanUp function. - -class __wxPyCleanup: - def __init__(self): - self.cleanup = _core.App_CleanUp - def __del__(self): - self.cleanup() - -_sys.__wxPythonCleanup = __wxPyCleanup() - -## # another possible solution, but it gets called too early... -## if sys.version[0] == '2': -## import atexit -## atexit.register(_core.wxApp_CleanUp) -## else: -## sys.exitfunc = _core.wxApp_CleanUp - - -#---------------------------------------------------------------------------- - -#--------------------------------------------------------------------------- - -class AcceleratorEntry(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxAcceleratorEntry instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int flags=0, int keyCode=0, int cmd=0, MenuItem item=None) -> AcceleratorEntry""" - newobj = _core.new_AcceleratorEntry(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_core.delete_AcceleratorEntry): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Set(*args, **kwargs): - """Set(self, int flags, int keyCode, int cmd, MenuItem item=None)""" - return _core.AcceleratorEntry_Set(*args, **kwargs) - - def SetMenuItem(*args, **kwargs): - """SetMenuItem(self, MenuItem item)""" - return _core.AcceleratorEntry_SetMenuItem(*args, **kwargs) - - def GetMenuItem(*args, **kwargs): - """GetMenuItem(self) -> MenuItem""" - return _core.AcceleratorEntry_GetMenuItem(*args, **kwargs) - - def GetFlags(*args, **kwargs): - """GetFlags(self) -> int""" - return _core.AcceleratorEntry_GetFlags(*args, **kwargs) - - def GetKeyCode(*args, **kwargs): - """GetKeyCode(self) -> int""" - return _core.AcceleratorEntry_GetKeyCode(*args, **kwargs) - - def GetCommand(*args, **kwargs): - """GetCommand(self) -> int""" - return _core.AcceleratorEntry_GetCommand(*args, **kwargs) - - -class AcceleratorEntryPtr(AcceleratorEntry): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = AcceleratorEntry -_core.AcceleratorEntry_swigregister(AcceleratorEntryPtr) - -class AcceleratorTable(Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxAcceleratorTable instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(entries) -> AcceleratorTable - - Construct an AcceleratorTable from a list of AcceleratorEntry items or - 3-tuples (flags, keyCode, cmdID) - """ - newobj = _core.new_AcceleratorTable(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_core.delete_AcceleratorTable): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Ok(*args, **kwargs): - """Ok(self) -> bool""" - return _core.AcceleratorTable_Ok(*args, **kwargs) - - -class AcceleratorTablePtr(AcceleratorTable): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = AcceleratorTable -_core.AcceleratorTable_swigregister(AcceleratorTablePtr) - - -def GetAccelFromString(*args, **kwargs): - """GetAccelFromString(String label) -> AcceleratorEntry""" - return _core.GetAccelFromString(*args, **kwargs) -#--------------------------------------------------------------------------- - -class VisualAttributes(object): - """struct containing all the visual attributes of a control""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxVisualAttributes instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self) -> VisualAttributes - - struct containing all the visual attributes of a control - """ - newobj = _core.new_VisualAttributes(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_core.delete_VisualAttributes): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - font = property(_core.VisualAttributes_font_get, _core.VisualAttributes_font_set) - colFg = property(_core.VisualAttributes_colFg_get, _core.VisualAttributes_colFg_set) - colBg = property(_core.VisualAttributes_colBg_get, _core.VisualAttributes_colBg_set) - -class VisualAttributesPtr(VisualAttributes): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = VisualAttributes -_core.VisualAttributes_swigregister(VisualAttributesPtr) -NullAcceleratorTable = cvar.NullAcceleratorTable -PanelNameStr = cvar.PanelNameStr - -WINDOW_VARIANT_NORMAL = _core.WINDOW_VARIANT_NORMAL -WINDOW_VARIANT_SMALL = _core.WINDOW_VARIANT_SMALL -WINDOW_VARIANT_MINI = _core.WINDOW_VARIANT_MINI -WINDOW_VARIANT_LARGE = _core.WINDOW_VARIANT_LARGE -WINDOW_VARIANT_MAX = _core.WINDOW_VARIANT_MAX -class Window(EvtHandler): - """ - wx.Window is the base class for all windows and represents any visible - object on the screen. All controls, top level windows and so on are - wx.Windows. Sizers and device contexts are not however, as they don't - appear on screen themselves. - - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, String name=PanelNameStr) -> Window - - Construct and show a generic Window. - """ - newobj = _core.new_Window(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool - - Create the GUI part of the Window for 2-phase creation mode. - """ - return _core.Window_Create(*args, **kwargs) - - def Close(*args, **kwargs): - """ - Close(self, bool force=False) -> bool - - This function simply generates a EVT_CLOSE event whose handler usually - tries to close the window. It doesn't close the window itself, - however. If force is False (the default) then the window's close - handler will be allowed to veto the destruction of the window. - - Usually Close is only used with the top level windows (wx.Frame and - wx.Dialog classes) as the others are not supposed to have any special - EVT_CLOSE logic. - - The close handler should check whether the window is being deleted - forcibly, using wx.CloseEvent.GetForce, in which case it should - destroy the window using wx.Window.Destroy. - - Note that calling Close does not guarantee that the window will be - destroyed; but it provides a way to simulate a manual close of a - window, which may or may not be implemented by destroying the - window. The default EVT_CLOSE handler for wx.Dialog does not - necessarily delete the dialog, since it will simply simulate an - wxID_CANCEL event which is handled by the appropriate button event - handler and may do anything at all. - - To guarantee that the window will be destroyed, call wx.Window.Destroy - instead. - """ - return _core.Window_Close(*args, **kwargs) - - def Destroy(*args, **kwargs): - """ - Destroy(self) -> bool - - Destroys the window safely. Frames and dialogs are not destroyed - immediately when this function is called -- they are added to a list - of windows to be deleted on idle time, when all the window's events - have been processed. This prevents problems with events being sent to - non-existent windows. - - Returns True if the window has either been successfully deleted, or it - has been added to the list of windows pending real deletion. - """ - return _core.Window_Destroy(*args, **kwargs) - - def DestroyChildren(*args, **kwargs): - """ - DestroyChildren(self) -> bool - - Destroys all children of a window. Called automatically by the destructor. - """ - return _core.Window_DestroyChildren(*args, **kwargs) - - def IsBeingDeleted(*args, **kwargs): - """ - IsBeingDeleted(self) -> bool - - Is the window in the process of being deleted? - """ - return _core.Window_IsBeingDeleted(*args, **kwargs) - - def SetTitle(*args, **kwargs): - """ - SetTitle(self, String title) - - Sets the window's title. Applicable only to frames and dialogs. - """ - return _core.Window_SetTitle(*args, **kwargs) - - def GetTitle(*args, **kwargs): - """ - GetTitle(self) -> String - - Gets the window's title. Applicable only to frames and dialogs. - """ - return _core.Window_GetTitle(*args, **kwargs) - - def SetLabel(*args, **kwargs): - """ - SetLabel(self, String label) - - Set the text which the window shows in its label if applicable. - """ - return _core.Window_SetLabel(*args, **kwargs) - - def GetLabel(*args, **kwargs): - """ - GetLabel(self) -> String - - Generic way of getting a label from any window, for - identification purposes. The interpretation of this function - differs from class to class. For frames and dialogs, the value - returned is the title. For buttons or static text controls, it is - the button text. This function can be useful for meta-programs - such as testing tools or special-needs access programs)which - need to identify windows by name. - """ - return _core.Window_GetLabel(*args, **kwargs) - - def SetName(*args, **kwargs): - """ - SetName(self, String name) - - Sets the window's name. The window name is used for ressource - setting in X, it is not the same as the window title/label - """ - return _core.Window_SetName(*args, **kwargs) - - def GetName(*args, **kwargs): - """ - GetName(self) -> String - - Returns the windows name. This name is not guaranteed to be - unique; it is up to the programmer to supply an appropriate name - in the window constructor or via wx.Window.SetName. - """ - return _core.Window_GetName(*args, **kwargs) - - def SetWindowVariant(*args, **kwargs): - """ - SetWindowVariant(self, int variant) - - Sets the variant of the window/font size to use for this window, - if the platform supports variants, for example, wxMac. Variant values are: - - wx.WINDOW_VARIANT_NORMAL Normal size - wx.WINDOW_VARIANT_SMALL Smaller size (about 25 % smaller than normal) - wx.WINDOW_VARIANT_MINI Mini size (about 33 % smaller than normal) - wx.WINDOW_VARIANT_LARGE Large size (about 25 % larger than normal) - - """ - return _core.Window_SetWindowVariant(*args, **kwargs) - - def GetWindowVariant(*args, **kwargs): - """GetWindowVariant(self) -> int""" - return _core.Window_GetWindowVariant(*args, **kwargs) - - def SetId(*args, **kwargs): - """ - SetId(self, int winid) - - Sets the identifier of the window. Each window has an integer - identifier. If the application has not provided one, an identifier - will be generated. Normally, the identifier should be provided on - creation and should not be modified subsequently. - """ - return _core.Window_SetId(*args, **kwargs) - - def GetId(*args, **kwargs): - """ - GetId(self) -> int - - Returns the identifier of the window. Each window has an integer - identifier. If the application has not provided one (or the default Id - -1 is used) then an unique identifier with a negative value will be - generated. - """ - return _core.Window_GetId(*args, **kwargs) - - def NewControlId(*args, **kwargs): - """ - Window.NewControlId() -> int - - Generate a control id for the controls which were not given one. - """ - return _core.Window_NewControlId(*args, **kwargs) - - NewControlId = staticmethod(NewControlId) - def NextControlId(*args, **kwargs): - """ - Window.NextControlId(int winid) -> int - - Get the id of the control following the one with the given - (autogenerated) id - """ - return _core.Window_NextControlId(*args, **kwargs) - - NextControlId = staticmethod(NextControlId) - def PrevControlId(*args, **kwargs): - """ - Window.PrevControlId(int winid) -> int - - Get the id of the control preceding the one with the given - (autogenerated) id - """ - return _core.Window_PrevControlId(*args, **kwargs) - - PrevControlId = staticmethod(PrevControlId) - def SetSize(*args, **kwargs): - """ - SetSize(self, Size size) - - Sets the size of the window in pixels. - """ - return _core.Window_SetSize(*args, **kwargs) - - def SetDimensions(*args, **kwargs): - """ - SetDimensions(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO) - - Sets the position and size of the window in pixels. The sizeFlags - parameter indicates the interpretation of the other params if they are - -1. wx.SIZE_AUTO*: a -1 indicates that a class-specific default - shoudl be used. wx.SIZE_USE_EXISTING: existing dimensions should be - used if -1 values are supplied. wxSIZE_ALLOW_MINUS_ONE: allow - dimensions of -1 and less to be interpreted as real dimensions, not - default values. - """ - return _core.Window_SetDimensions(*args, **kwargs) - - def SetRect(*args, **kwargs): - """ - SetRect(self, Rect rect, int sizeFlags=SIZE_AUTO) - - Sets the position and size of the window in pixels using a wx.Rect. - """ - return _core.Window_SetRect(*args, **kwargs) - - def SetSizeWH(*args, **kwargs): - """ - SetSizeWH(self, int width, int height) - - Sets the size of the window in pixels. - """ - return _core.Window_SetSizeWH(*args, **kwargs) - - def Move(*args, **kwargs): - """ - Move(self, Point pt, int flags=SIZE_USE_EXISTING) - - Moves the window to the given position. - """ - return _core.Window_Move(*args, **kwargs) - - SetPosition = Move - def MoveXY(*args, **kwargs): - """ - MoveXY(self, int x, int y, int flags=SIZE_USE_EXISTING) - - Moves the window to the given position. - """ - return _core.Window_MoveXY(*args, **kwargs) - - def Raise(*args, **kwargs): - """ - Raise(self) - - Raises the window to the top of the window hierarchy if it is a - managed window (dialog or frame). - """ - return _core.Window_Raise(*args, **kwargs) - - def Lower(*args, **kwargs): - """ - Lower(self) - - Lowers the window to the bottom of the window hierarchy if it is a - managed window (dialog or frame). - """ - return _core.Window_Lower(*args, **kwargs) - - def SetClientSize(*args, **kwargs): - """ - SetClientSize(self, Size size) - - This sets the size of the window client area in pixels. Using this - function to size a window tends to be more device-independent than - wx.Window.SetSize, since the application need not worry about what - dimensions the border or title bar have when trying to fit the window - around panel items, for example. - """ - return _core.Window_SetClientSize(*args, **kwargs) - - def SetClientSizeWH(*args, **kwargs): - """ - SetClientSizeWH(self, int width, int height) - - This sets the size of the window client area in pixels. Using this - function to size a window tends to be more device-independent than - wx.Window.SetSize, since the application need not worry about what - dimensions the border or title bar have when trying to fit the window - around panel items, for example. - """ - return _core.Window_SetClientSizeWH(*args, **kwargs) - - def SetClientRect(*args, **kwargs): - """ - SetClientRect(self, Rect rect) - - This sets the size of the window client area in pixels. Using this - function to size a window tends to be more device-independent than - wx.Window.SetSize, since the application need not worry about what - dimensions the border or title bar have when trying to fit the window - around panel items, for example. - """ - return _core.Window_SetClientRect(*args, **kwargs) - - def GetPosition(*args, **kwargs): - """ - GetPosition(self) -> Point - - Get the window's position. - """ - return _core.Window_GetPosition(*args, **kwargs) - - def GetPositionTuple(*args, **kwargs): - """ - GetPositionTuple() -> (x,y) - - Get the window's position. - """ - return _core.Window_GetPositionTuple(*args, **kwargs) - - def GetSize(*args, **kwargs): - """ - GetSize(self) -> Size - - Get the window size. - """ - return _core.Window_GetSize(*args, **kwargs) - - def GetSizeTuple(*args, **kwargs): - """ - GetSizeTuple() -> (width, height) - - Get the window size. - """ - return _core.Window_GetSizeTuple(*args, **kwargs) - - def GetRect(*args, **kwargs): - """ - GetRect(self) -> Rect - - Returns the size and position of the window as a wx.Rect object. - """ - return _core.Window_GetRect(*args, **kwargs) - - def GetClientSize(*args, **kwargs): - """ - GetClientSize(self) -> Size - - This gets the size of the window's 'client area' in pixels. The client - area is the area which may be drawn on by the programmer, excluding - title bar, border, scrollbars, etc. - """ - return _core.Window_GetClientSize(*args, **kwargs) - - def GetClientSizeTuple(*args, **kwargs): - """ - GetClientSizeTuple() -> (width, height) - - This gets the size of the window's 'client area' in pixels. The client - area is the area which may be drawn on by the programmer, excluding - title bar, border, scrollbars, etc. - """ - return _core.Window_GetClientSizeTuple(*args, **kwargs) - - def GetClientAreaOrigin(*args, **kwargs): - """ - GetClientAreaOrigin(self) -> Point - - Get the origin of the client area of the window relative to the - window's top left corner (the client area may be shifted because of - the borders, scrollbars, other decorations...) - """ - return _core.Window_GetClientAreaOrigin(*args, **kwargs) - - def GetClientRect(*args, **kwargs): - """ - GetClientRect(self) -> Rect - - Get the client area position and size as a wx.Rect object. - """ - return _core.Window_GetClientRect(*args, **kwargs) - - def GetBestSize(*args, **kwargs): - """ - GetBestSize(self) -> Size - - This functions returns the best acceptable minimal size for the - window, if applicable. For example, for a static text control, it will be - the minimal size such that the control label is not truncated. For - windows containing subwindows (suzh aswx.Panel), the size returned - by this function will be the same as the size the window would have - had after calling Fit. - """ - return _core.Window_GetBestSize(*args, **kwargs) - - def GetBestSizeTuple(*args, **kwargs): - """ - GetBestSizeTuple() -> (width, height) - - This functions returns the best acceptable minimal size for the - window, if applicable. For example, for a static text control, it will be - the minimal size such that the control label is not truncated. For - windows containing subwindows (suzh aswx.Panel), the size returned - by this function will be the same as the size the window would have - had after calling Fit. - """ - return _core.Window_GetBestSizeTuple(*args, **kwargs) - - def GetAdjustedBestSize(*args, **kwargs): - """ - GetAdjustedBestSize(self) -> Size - - This method is similar to GetBestSize, except in one - thing. GetBestSize should return the minimum untruncated size of the - window, while this method will return the largest of BestSize and any - user specified minimum size. ie. it is the minimum size the window - should currently be drawn at, not the minimal size it can possibly - tolerate. - """ - return _core.Window_GetAdjustedBestSize(*args, **kwargs) - - def Center(*args, **kwargs): - """ - Center(self, int direction=BOTH) - - Centers the window. The parameter specifies the direction for - cetering, and may be wx.HORIZONTAL, wx.VERTICAL or wx.BOTH. It may - also include wx.CENTER_ON_SCREEN flag if you want to center the window - on the entire screen and not on its parent window. If it is a - top-level window and has no parent then it will always be centered - relative to the screen. - """ - return _core.Window_Center(*args, **kwargs) - - Centre = Center - def CenterOnScreen(*args, **kwargs): - """ - CenterOnScreen(self, int dir=BOTH) - - Center on screen (only works for top level windows) - """ - return _core.Window_CenterOnScreen(*args, **kwargs) - - CentreOnScreen = CenterOnScreen - def CenterOnParent(*args, **kwargs): - """ - CenterOnParent(self, int dir=BOTH) - - Center with respect to the the parent window - """ - return _core.Window_CenterOnParent(*args, **kwargs) - - CentreOnParent = CenterOnParent - def Fit(*args, **kwargs): - """ - Fit(self) - - Sizes the window so that it fits around its subwindows. This function - won't do anything if there are no subwindows and will only really work - correctly if sizers are used for the subwindows layout. Also, if the - window has exactly one subwindow it is better (faster and the result - is more precise as Fit adds some margin to account for fuzziness of - its calculations) to call window.SetClientSize(child.GetSize()) - instead of calling Fit. - """ - return _core.Window_Fit(*args, **kwargs) - - def FitInside(*args, **kwargs): - """ - FitInside(self) - - Similar to Fit, but sizes the interior (virtual) size of a - window. Mainly useful with scrolled windows to reset scrollbars after - sizing changes that do not trigger a size event, and/or scrolled - windows without an interior sizer. This function similarly won't do - anything if there are no subwindows. - """ - return _core.Window_FitInside(*args, **kwargs) - - def SetSizeHints(*args): - """ - SetSizeHints(self, int minW, int minH, int maxW=-1, int maxH=-1, int incW=-1, - int incH=-1) - SetSizeHints(self, Size minSize, Size maxSize=DefaultSize, Size incSize=DefaultSize) - - Allows specification of minimum and maximum window sizes, and window - size increments. If a pair of values is not set (or set to -1), the - default values will be used. If this function is called, the user - will not be able to size the window outside the given bounds. The - resizing increments are only significant under Motif or Xt. - """ - return _core.Window_SetSizeHints(*args) - - def SetVirtualSizeHints(*args): - """ - SetVirtualSizeHints(self, int minW, int minH, int maxW=-1, int maxH=-1) - SetVirtualSizeHints(self, Size minSize, Size maxSize=DefaultSize) - - Allows specification of minimum and maximum virtual window sizes. If a - pair of values is not set (or set to -1), the default values will be - used. If this function is called, the user will not be able to size - the virtual area of the window outside the given bounds. - """ - return _core.Window_SetVirtualSizeHints(*args) - - def GetMinWidth(*args, **kwargs): - """GetMinWidth(self) -> int""" - return _core.Window_GetMinWidth(*args, **kwargs) - - def GetMinHeight(*args, **kwargs): - """GetMinHeight(self) -> int""" - return _core.Window_GetMinHeight(*args, **kwargs) - - def GetMaxWidth(*args, **kwargs): - """GetMaxWidth(self) -> int""" - return _core.Window_GetMaxWidth(*args, **kwargs) - - def GetMaxHeight(*args, **kwargs): - """GetMaxHeight(self) -> int""" - return _core.Window_GetMaxHeight(*args, **kwargs) - - def GetMaxSize(*args, **kwargs): - """GetMaxSize(self) -> Size""" - return _core.Window_GetMaxSize(*args, **kwargs) - - def GetMinSize(*args, **kwargs): - """GetMinSize(self) -> Size""" - return _core.Window_GetMinSize(*args, **kwargs) - - def SetVirtualSize(*args, **kwargs): - """ - SetVirtualSize(self, Size size) - - Set the the virtual size of a window in pixels. For most windows this - is just the client area of the window, but for some like scrolled - windows it is more or less independent of the screen window size. - """ - return _core.Window_SetVirtualSize(*args, **kwargs) - - def SetVirtualSizeWH(*args, **kwargs): - """ - SetVirtualSizeWH(self, int w, int h) - - Set the the virtual size of a window in pixels. For most windows this - is just the client area of the window, but for some like scrolled - windows it is more or less independent of the screen window size. - """ - return _core.Window_SetVirtualSizeWH(*args, **kwargs) - - def GetVirtualSize(*args, **kwargs): - """ - GetVirtualSize(self) -> Size - - Get the the virtual size of the window in pixels. For most windows - this is just the client area of the window, but for some like scrolled - windows it is more or less independent of the screen window size. - """ - return _core.Window_GetVirtualSize(*args, **kwargs) - - def GetVirtualSizeTuple(*args, **kwargs): - """ - GetVirtualSizeTuple() -> (width, height) - - Get the the virtual size of the window in pixels. For most windows - this is just the client area of the window, but for some like scrolled - windows it is more or less independent of the screen window size. - """ - return _core.Window_GetVirtualSizeTuple(*args, **kwargs) - - def GetBestVirtualSize(*args, **kwargs): - """ - GetBestVirtualSize(self) -> Size - - Return the largest of ClientSize and BestSize (as determined by a - sizer, interior children, or other means) - """ - return _core.Window_GetBestVirtualSize(*args, **kwargs) - - def Show(*args, **kwargs): - """ - Show(self, bool show=True) -> bool - - Shows or hides the window. You may need to call Raise for a top level - window if you want to bring it to top, although this is not needed if - Show is called immediately after the frame creation. Returns True if - the window has been shown or hidden or False if nothing was done - because it already was in the requested state. - """ - return _core.Window_Show(*args, **kwargs) - - def Hide(*args, **kwargs): - """ - Hide(self) -> bool - - Equivalent to calling Show(False). - """ - return _core.Window_Hide(*args, **kwargs) - - def Enable(*args, **kwargs): - """ - Enable(self, bool enable=True) -> bool - - Enable or disable the window for user input. Note that when a parent - window is disabled, all of its children are disabled as well and they - are reenabled again when the parent is. Returns true if the window - has been enabled or disabled, false if nothing was done, i.e. if the - window had already been in the specified state. - """ - return _core.Window_Enable(*args, **kwargs) - - def Disable(*args, **kwargs): - """ - Disable(self) -> bool - - Disables the window, same as Enable(false). - """ - return _core.Window_Disable(*args, **kwargs) - - def IsShown(*args, **kwargs): - """ - IsShown(self) -> bool - - Returns true if the window is shown, false if it has been hidden. - """ - return _core.Window_IsShown(*args, **kwargs) - - def IsEnabled(*args, **kwargs): - """ - IsEnabled(self) -> bool - - Returns true if the window is enabled for input, false otherwise. - """ - return _core.Window_IsEnabled(*args, **kwargs) - - def SetWindowStyleFlag(*args, **kwargs): - """ - SetWindowStyleFlag(self, long style) - - Sets the style of the window. Please note that some styles cannot - be changed after the window creation and that Refresh() might - need to be called after changing the others for the change to - take place immediately. - """ - return _core.Window_SetWindowStyleFlag(*args, **kwargs) - - def GetWindowStyleFlag(*args, **kwargs): - """ - GetWindowStyleFlag(self) -> long - - Gets the window style that was passed to the constructor or Create - method. - """ - return _core.Window_GetWindowStyleFlag(*args, **kwargs) - - SetWindowStyle = SetWindowStyleFlag; GetWindowStyle = GetWindowStyleFlag - def HasFlag(*args, **kwargs): - """ - HasFlag(self, int flag) -> bool - - Test if the given style is set for this window. - """ - return _core.Window_HasFlag(*args, **kwargs) - - def IsRetained(*args, **kwargs): - """ - IsRetained(self) -> bool - - Returns true if the window is retained, false otherwise. Retained - windows are only available on X platforms. - """ - return _core.Window_IsRetained(*args, **kwargs) - - def SetExtraStyle(*args, **kwargs): - """ - SetExtraStyle(self, long exStyle) - - Sets the extra style bits for the window. Extra styles are the less - often used style bits which can't be set with the constructor or with - SetWindowStyleFlag() - """ - return _core.Window_SetExtraStyle(*args, **kwargs) - - def GetExtraStyle(*args, **kwargs): - """ - GetExtraStyle(self) -> long - - Returns the extra style bits for the window. - """ - return _core.Window_GetExtraStyle(*args, **kwargs) - - def MakeModal(*args, **kwargs): - """ - MakeModal(self, bool modal=True) - - Disables all other windows in the application so that the user can - only interact with this window. Passing False will reverse this - effect. - """ - return _core.Window_MakeModal(*args, **kwargs) - - def SetThemeEnabled(*args, **kwargs): - """ - SetThemeEnabled(self, bool enableTheme) - - This function tells a window if it should use the system's "theme" - code to draw the windows' background instead if its own background - drawing code. This will only have an effect on platforms that support - the notion of themes in user defined windows. One such platform is - GTK+ where windows can have (very colourful) backgrounds defined by a - user's selected theme. - - Dialogs, notebook pages and the status bar have this flag set to true - by default so that the default look and feel is simulated best. - """ - return _core.Window_SetThemeEnabled(*args, **kwargs) - - def GetThemeEnabled(*args, **kwargs): - """ - GetThemeEnabled(self) -> bool - - Return the themeEnabled flag. - """ - return _core.Window_GetThemeEnabled(*args, **kwargs) - - def SetFocus(*args, **kwargs): - """ - SetFocus(self) - - Set's the focus to this window, allowing it to receive keyboard input. - """ - return _core.Window_SetFocus(*args, **kwargs) - - def SetFocusFromKbd(*args, **kwargs): - """ - SetFocusFromKbd(self) - - Set focus to this window as the result of a keyboard action. Normally - only called internally. - """ - return _core.Window_SetFocusFromKbd(*args, **kwargs) - - def FindFocus(*args, **kwargs): - """ - Window.FindFocus() -> Window - - Returns the window or control that currently has the keyboard focus, - or None. - """ - return _core.Window_FindFocus(*args, **kwargs) - - FindFocus = staticmethod(FindFocus) - def AcceptsFocus(*args, **kwargs): - """ - AcceptsFocus(self) -> bool - - Can this window have focus? - """ - return _core.Window_AcceptsFocus(*args, **kwargs) - - def AcceptsFocusFromKeyboard(*args, **kwargs): - """ - AcceptsFocusFromKeyboard(self) -> bool - - Can this window be given focus by keyboard navigation? if not, the - only way to give it focus (provided it accepts it at all) is to click - it. - """ - return _core.Window_AcceptsFocusFromKeyboard(*args, **kwargs) - - def GetDefaultItem(*args, **kwargs): - """ - GetDefaultItem(self) -> Window - - Get the default child of this parent, i.e. the one which is activated - by pressing such as the OK button on a wx.Dialog. - """ - return _core.Window_GetDefaultItem(*args, **kwargs) - - def SetDefaultItem(*args, **kwargs): - """ - SetDefaultItem(self, Window child) -> Window - - Set this child as default, return the old default. - """ - return _core.Window_SetDefaultItem(*args, **kwargs) - - def SetTmpDefaultItem(*args, **kwargs): - """ - SetTmpDefaultItem(self, Window win) - - Set this child as temporary default - """ - return _core.Window_SetTmpDefaultItem(*args, **kwargs) - - def GetChildren(*args, **kwargs): - """ - GetChildren(self) -> PyObject - - Returns a list of the window's children. NOTE: Currently this is a - copy of the child window list maintained by the window, so the return - value of this function is only valid as long as the window's children - do not change. - """ - return _core.Window_GetChildren(*args, **kwargs) - - def GetParent(*args, **kwargs): - """ - GetParent(self) -> Window - - Returns the parent window of this window, or None if there isn't one. - """ - return _core.Window_GetParent(*args, **kwargs) - - def GetGrandParent(*args, **kwargs): - """ - GetGrandParent(self) -> Window - - Returns the parent of the parent of this window, or None if there isn't one. - """ - return _core.Window_GetGrandParent(*args, **kwargs) - - def IsTopLevel(*args, **kwargs): - """ - IsTopLevel(self) -> bool - - Returns true if the given window is a top-level one. Currently all - frames and dialogs are always considered to be top-level windows (even - if they have a parent window). - """ - return _core.Window_IsTopLevel(*args, **kwargs) - - def Reparent(*args, **kwargs): - """ - Reparent(self, Window newParent) -> bool - - Reparents the window, i.e the window will be removed from its current - parent window (e.g. a non-standard toolbar in a wxFrame) and then - re-inserted into another. Available on Windows and GTK. Returns True - if the parent was changed, False otherwise (error or newParent == - oldParent) - """ - return _core.Window_Reparent(*args, **kwargs) - - def AddChild(*args, **kwargs): - """ - AddChild(self, Window child) - - Adds a child window. This is called automatically by window creation - functions so should not be required by the application programmer. - """ - return _core.Window_AddChild(*args, **kwargs) - - def RemoveChild(*args, **kwargs): - """ - RemoveChild(self, Window child) - - Removes a child window. This is called automatically by window - deletion functions so should not be required by the application - programmer. - """ - return _core.Window_RemoveChild(*args, **kwargs) - - def FindWindowById(*args, **kwargs): - """ - FindWindowById(self, long winid) -> Window - - Find a chld of this window by window ID - """ - return _core.Window_FindWindowById(*args, **kwargs) - - def FindWindowByName(*args, **kwargs): - """ - FindWindowByName(self, String name) -> Window - - Find a child of this window by name - """ - return _core.Window_FindWindowByName(*args, **kwargs) - - def GetEventHandler(*args, **kwargs): - """ - GetEventHandler(self) -> EvtHandler - - Returns the event handler for this window. By default, the window is - its own event handler. - """ - return _core.Window_GetEventHandler(*args, **kwargs) - - def SetEventHandler(*args, **kwargs): - """ - SetEventHandler(self, EvtHandler handler) - - Sets the event handler for this window. An event handler is an object - that is capable of processing the events sent to a window. By default, - the window is its own event handler, but an application may wish to - substitute another, for example to allow central implementation of - event-handling for a variety of different window classes. - - It is usually better to use wx.Window.PushEventHandler since this sets - up a chain of event handlers, where an event not handled by one event - handler is handed to the next one in the chain. - """ - return _core.Window_SetEventHandler(*args, **kwargs) - - def PushEventHandler(*args, **kwargs): - """ - PushEventHandler(self, EvtHandler handler) - - Pushes this event handler onto the event handler stack for the window. - An event handler is an object that is capable of processing the events - sent to a window. By default, the window is its own event handler, but - an application may wish to substitute another, for example to allow - central implementation of event-handling for a variety of different - window classes. - - wx.Window.PushEventHandler allows an application to set up a chain of - event handlers, where an event not handled by one event handler is - handed to the next one in the chain. Use wx.Window.PopEventHandler to - remove the event handler. - """ - return _core.Window_PushEventHandler(*args, **kwargs) - - def PopEventHandler(*args, **kwargs): - """ - PopEventHandler(self, bool deleteHandler=False) -> EvtHandler - - Removes and returns the top-most event handler on the event handler - stack. If deleteHandler is True then the wx.EvtHandler object will be - destroyed after it is popped. - """ - return _core.Window_PopEventHandler(*args, **kwargs) - - def RemoveEventHandler(*args, **kwargs): - """ - RemoveEventHandler(self, EvtHandler handler) -> bool - - Find the given handler in the event handler chain and remove (but - not delete) it from the event handler chain, return True if it was - found and False otherwise (this also results in an assert failure so - this function should only be called when the handler is supposed to - be there.) - """ - return _core.Window_RemoveEventHandler(*args, **kwargs) - - def SetValidator(*args, **kwargs): - """ - SetValidator(self, Validator validator) - - Deletes the current validator (if any) and sets the window validator, - having called wx.Validator.Clone to create a new validator of this - type. - """ - return _core.Window_SetValidator(*args, **kwargs) - - def GetValidator(*args, **kwargs): - """ - GetValidator(self) -> Validator - - Returns a pointer to the current validator for the window, or None if - there is none. - """ - return _core.Window_GetValidator(*args, **kwargs) - - def Validate(*args, **kwargs): - """ - Validate(self) -> bool - - Validates the current values of the child controls using their - validators. If the window has wx.WS_EX_VALIDATE_RECURSIVELY - extra style flag set, the method will also call Validate() of all - child windows. Returns false if any of the validations failed. - """ - return _core.Window_Validate(*args, **kwargs) - - def TransferDataToWindow(*args, **kwargs): - """ - TransferDataToWindow(self) -> bool - - Transfers values to child controls from data areas specified by - their validators. If the window has wx.WS_EX_VALIDATE_RECURSIVELY - extra style flag set, the method will also call - TransferDataToWindow() of all child windows. - """ - return _core.Window_TransferDataToWindow(*args, **kwargs) - - def TransferDataFromWindow(*args, **kwargs): - """ - TransferDataFromWindow(self) -> bool - - Transfers values from child controls to data areas specified by - their validators. Returns false if a transfer failed. If the - window has wx.WS_EX_VALIDATE_RECURSIVELY extra style flag set, the - method will also call TransferDataFromWindow() of all child - windows. - """ - return _core.Window_TransferDataFromWindow(*args, **kwargs) - - def InitDialog(*args, **kwargs): - """ - InitDialog(self) - - Sends an EVT_INIT_DIALOG event, whose handler usually transfers - data to the dialog via validators. - """ - return _core.Window_InitDialog(*args, **kwargs) - - def SetAcceleratorTable(*args, **kwargs): - """ - SetAcceleratorTable(self, AcceleratorTable accel) - - Sets the accelerator table for this window. - """ - return _core.Window_SetAcceleratorTable(*args, **kwargs) - - def GetAcceleratorTable(*args, **kwargs): - """ - GetAcceleratorTable(self) -> AcceleratorTable - - Gets the accelerator table for this window. - """ - return _core.Window_GetAcceleratorTable(*args, **kwargs) - - def RegisterHotKey(*args, **kwargs): - """ - RegisterHotKey(self, int hotkeyId, int modifiers, int keycode) -> bool - - Registers a system wide hotkey. Every time the user presses the hotkey - registered here, this window will receive a hotkey event. It will - receive the event even if the application is in the background and - does not have the input focus because the user is working with some - other application. To bind an event handler function to this hotkey - use EVT_HOTKEY with an id equal to hotkeyId. Returns True if the - hotkey was registered successfully. - """ - return _core.Window_RegisterHotKey(*args, **kwargs) - - def UnregisterHotKey(*args, **kwargs): - """ - UnregisterHotKey(self, int hotkeyId) -> bool - - Unregisters a system wide hotkey. - """ - return _core.Window_UnregisterHotKey(*args, **kwargs) - - def ConvertDialogPointToPixels(*args, **kwargs): - """ - ConvertDialogPointToPixels(self, Point pt) -> Point - - Converts a point or size from dialog units to pixels. Dialog units - are used for maintaining a dialog's proportions even if the font - changes. For the x dimension, the dialog units are multiplied by the - average character width and then divided by 4. For the y dimension, - the dialog units are multiplied by the average character height and - then divided by 8. - """ - return _core.Window_ConvertDialogPointToPixels(*args, **kwargs) - - def ConvertDialogSizeToPixels(*args, **kwargs): - """ - ConvertDialogSizeToPixels(self, Size sz) -> Size - - Converts a point or size from dialog units to pixels. Dialog units - are used for maintaining a dialog's proportions even if the font - changes. For the x dimension, the dialog units are multiplied by the - average character width and then divided by 4. For the y dimension, - the dialog units are multiplied by the average character height and - then divided by 8. - """ - return _core.Window_ConvertDialogSizeToPixels(*args, **kwargs) - - def DLG_PNT(*args, **kwargs): - """ - DLG_PNT(self, Point pt) -> Point - - Converts a point or size from dialog units to pixels. Dialog units - are used for maintaining a dialog's proportions even if the font - changes. For the x dimension, the dialog units are multiplied by the - average character width and then divided by 4. For the y dimension, - the dialog units are multiplied by the average character height and - then divided by 8. - """ - return _core.Window_DLG_PNT(*args, **kwargs) - - def DLG_SZE(*args, **kwargs): - """ - DLG_SZE(self, Size sz) -> Size - - Converts a point or size from dialog units to pixels. Dialog units - are used for maintaining a dialog's proportions even if the font - changes. For the x dimension, the dialog units are multiplied by the - average character width and then divided by 4. For the y dimension, - the dialog units are multiplied by the average character height and - then divided by 8. - """ - return _core.Window_DLG_SZE(*args, **kwargs) - - def ConvertPixelPointToDialog(*args, **kwargs): - """ConvertPixelPointToDialog(self, Point pt) -> Point""" - return _core.Window_ConvertPixelPointToDialog(*args, **kwargs) - - def ConvertPixelSizeToDialog(*args, **kwargs): - """ConvertPixelSizeToDialog(self, Size sz) -> Size""" - return _core.Window_ConvertPixelSizeToDialog(*args, **kwargs) - - def WarpPointer(*args, **kwargs): - """ - WarpPointer(self, int x, int y) - - Moves the pointer to the given position on the window. - - NOTE: This function is not supported under Mac because Apple Human - Interface Guidelines forbid moving the mouse cursor programmatically. - """ - return _core.Window_WarpPointer(*args, **kwargs) - - def CaptureMouse(*args, **kwargs): - """ - CaptureMouse(self) - - Directs all mouse input to this window. Call wx.Window.ReleaseMouse to - release the capture. - - Note that wxWindows maintains the stack of windows having captured the - mouse and when the mouse is released the capture returns to the window - which had had captured it previously and it is only really released if - there were no previous window. In particular, this means that you must - release the mouse as many times as you capture it. - """ - return _core.Window_CaptureMouse(*args, **kwargs) - - def ReleaseMouse(*args, **kwargs): - """ - ReleaseMouse(self) - - Releases mouse input captured with wx.Window.CaptureMouse. - """ - return _core.Window_ReleaseMouse(*args, **kwargs) - - def GetCapture(*args, **kwargs): - """ - Window.GetCapture() -> Window - - Returns the window which currently captures the mouse or None - """ - return _core.Window_GetCapture(*args, **kwargs) - - GetCapture = staticmethod(GetCapture) - def HasCapture(*args, **kwargs): - """ - HasCapture(self) -> bool - - Returns true if this window has the current mouse capture. - """ - return _core.Window_HasCapture(*args, **kwargs) - - def Refresh(*args, **kwargs): - """ - Refresh(self, bool eraseBackground=True, Rect rect=None) - - Mark the specified rectangle (or the whole window) as "dirty" so it - will be repainted. Causes an EVT_PAINT event to be generated and sent - to the window. - """ - return _core.Window_Refresh(*args, **kwargs) - - def RefreshRect(*args, **kwargs): - """ - RefreshRect(self, Rect rect) - - Redraws the contents of the given rectangle: the area inside it will - be repainted. This is the same as Refresh but has a nicer syntax. - """ - return _core.Window_RefreshRect(*args, **kwargs) - - def Update(*args, **kwargs): - """ - Update(self) - - Calling this method immediately repaints the invalidated area of the - window instead of waiting for the EVT_PAINT event to happen, (normally - this would usually only happen when the flow of control returns to the - event loop.) Notice that this function doesn't refresh the window and - does nothing if the window has been already repainted. Use Refresh - first if you want to immediately redraw the window (or some portion of - it) unconditionally. - """ - return _core.Window_Update(*args, **kwargs) - - def ClearBackground(*args, **kwargs): - """ - ClearBackground(self) - - Clears the window by filling it with the current background - colour. Does not cause an erase background event to be generated. - """ - return _core.Window_ClearBackground(*args, **kwargs) - - def Freeze(*args, **kwargs): - """ - Freeze(self) - - Freezes the window or, in other words, prevents any updates from taking place - on screen, the window is not redrawn at all. Thaw must be called to reenable - window redrawing. Calls to Freeze/Thaw may be nested, with the actual Thaw - being delayed until all the nesting has been undone. - - This method is useful for visual appearance optimization (for example, - it is a good idea to use it before inserting large amount of text into - a wxTextCtrl under wxGTK) but is not implemented on all platforms nor - for all controls so it is mostly just a hint to wxWindows and not a - mandatory directive. - """ - return _core.Window_Freeze(*args, **kwargs) - - def Thaw(*args, **kwargs): - """ - Thaw(self) - - Reenables window updating after a previous call to Freeze. Calls to - Freeze/Thaw may be nested, so Thaw must be called the same number of times - that Freeze was before the window will be updated. - """ - return _core.Window_Thaw(*args, **kwargs) - - def PrepareDC(*args, **kwargs): - """ - PrepareDC(self, DC dc) - - Call this function to prepare the device context for drawing a - scrolled image. It sets the device origin according to the current - scroll position. - """ - return _core.Window_PrepareDC(*args, **kwargs) - - def GetUpdateRegion(*args, **kwargs): - """ - GetUpdateRegion(self) -> Region - - Returns the region specifying which parts of the window have been - damaged. Should only be called within an EVT_PAINT handler. - """ - return _core.Window_GetUpdateRegion(*args, **kwargs) - - def GetUpdateClientRect(*args, **kwargs): - """ - GetUpdateClientRect(self) -> Rect - - Get the update rectangle region bounding box in client coords. - """ - return _core.Window_GetUpdateClientRect(*args, **kwargs) - - def IsExposed(*args, **kwargs): - """ - IsExposed(self, int x, int y, int w=1, int h=1) -> bool - - Returns true if the given point or rectangle area has been exposed - since the last repaint. Call this in an paint event handler to - optimize redrawing by only redrawing those areas, which have been - exposed. - """ - return _core.Window_IsExposed(*args, **kwargs) - - def IsExposedPoint(*args, **kwargs): - """ - IsExposedPoint(self, Point pt) -> bool - - Returns true if the given point or rectangle area has been exposed - since the last repaint. Call this in an paint event handler to - optimize redrawing by only redrawing those areas, which have been - exposed. - """ - return _core.Window_IsExposedPoint(*args, **kwargs) - - def IsExposedRect(*args, **kwargs): - """ - IsExposedRect(self, Rect rect) -> bool - - Returns true if the given point or rectangle area has been exposed - since the last repaint. Call this in an paint event handler to - optimize redrawing by only redrawing those areas, which have been - exposed. - """ - return _core.Window_IsExposedRect(*args, **kwargs) - - def GetDefaultAttributes(*args, **kwargs): - """ - GetDefaultAttributes(self) -> VisualAttributes - - Get the default attributes for an instance of this class. This - is useful if you want to use the same font or colour in your own - control as in a standard control -- which is a much better idea - than hard coding specific colours or fonts which might look - completely out of place on the users system, especially if it - uses themes. - """ - return _core.Window_GetDefaultAttributes(*args, **kwargs) - - def GetClassDefaultAttributes(*args, **kwargs): - """ - Window.GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes - - Get the default attributes for this class. This is useful if - you want to use the same font or colour in your own control as - in a standard control -- which is a much better idea than hard - coding specific colours or fonts which might look completely out - of place on the users system, especially if it uses themes. - - The variant parameter is only relevant under Mac currently and is - ignore under other platforms. Under Mac, it will change the size of the - returned font. See SetWindowVariant for more about this. - """ - return _core.Window_GetClassDefaultAttributes(*args, **kwargs) - - GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) - def SetBackgroundColour(*args, **kwargs): - """ - SetBackgroundColour(self, Colour colour) -> bool - - Sets the background colour of the window. Returns True if the colour - was changed. The background colour is usually painted by the default - EVT_ERASE_BACKGROUND event handler function under Windows and - automatically under GTK. - - Note that setting the background colour does not cause an immediate - refresh, so you may wish to call ClearBackground or Refresh after - calling this function. - - Use this function with care under GTK+ as the new appearance of the - window might not look equally well when used with themes, i.e GTK+'s - ability to change its look as the user wishes with run-time loadable - modules. - """ - return _core.Window_SetBackgroundColour(*args, **kwargs) - - def SetDefaultBackgroundColour(*args, **kwargs): - """SetDefaultBackgroundColour(self, Colour colour)""" - return _core.Window_SetDefaultBackgroundColour(*args, **kwargs) - - def SetForegroundColour(*args, **kwargs): - """ - SetForegroundColour(self, Colour colour) -> bool - - Sets the foreground colour of the window. Returns True is the colour - was changed. The interpretation of foreground colour is dependent on - the window class; it may be the text colour or other colour, or it may - not be used at all. - """ - return _core.Window_SetForegroundColour(*args, **kwargs) - - def SetDefaultForegroundColour(*args, **kwargs): - """SetDefaultForegroundColour(self, Colour colour)""" - return _core.Window_SetDefaultForegroundColour(*args, **kwargs) - - def GetBackgroundColour(*args, **kwargs): - """ - GetBackgroundColour(self) -> Colour - - Returns the background colour of the window. - """ - return _core.Window_GetBackgroundColour(*args, **kwargs) - - def GetForegroundColour(*args, **kwargs): - """ - GetForegroundColour(self) -> Colour - - Returns the foreground colour of the window. The interpretation of - foreground colour is dependent on the window class; it may be the text - colour or other colour, or it may not be used at all. - """ - return _core.Window_GetForegroundColour(*args, **kwargs) - - def SetCursor(*args, **kwargs): - """ - SetCursor(self, Cursor cursor) -> bool - - Sets the window's cursor. Notice that the window cursor also sets it - for the children of the window implicitly. - - The cursor may be wx.NullCursor in which case the window cursor will - be reset back to default. - """ - return _core.Window_SetCursor(*args, **kwargs) - - def GetCursor(*args, **kwargs): - """ - GetCursor(self) -> Cursor - - Return the cursor associated with this window. - """ - return _core.Window_GetCursor(*args, **kwargs) - - def SetFont(*args, **kwargs): - """ - SetFont(self, Font font) -> bool - - Sets the font for this window. - """ - return _core.Window_SetFont(*args, **kwargs) - - def SetDefaultFont(*args, **kwargs): - """SetDefaultFont(self, Font font)""" - return _core.Window_SetDefaultFont(*args, **kwargs) - - def GetFont(*args, **kwargs): - """ - GetFont(self) -> Font - - Returns the default font used for this window. - """ - return _core.Window_GetFont(*args, **kwargs) - - def SetCaret(*args, **kwargs): - """ - SetCaret(self, Caret caret) - - Sets the caret associated with the window. - """ - return _core.Window_SetCaret(*args, **kwargs) - - def GetCaret(*args, **kwargs): - """ - GetCaret(self) -> Caret - - Returns the caret associated with the window. - """ - return _core.Window_GetCaret(*args, **kwargs) - - def GetCharHeight(*args, **kwargs): - """ - GetCharHeight(self) -> int - - Get the (average) character size for the current font. - """ - return _core.Window_GetCharHeight(*args, **kwargs) - - def GetCharWidth(*args, **kwargs): - """ - GetCharWidth(self) -> int - - Get the (average) character size for the current font. - """ - return _core.Window_GetCharWidth(*args, **kwargs) - - def GetTextExtent(*args, **kwargs): - """ - GetTextExtent(String string) -> (width, height) - - Get the width and height of the text using the current font. - """ - return _core.Window_GetTextExtent(*args, **kwargs) - - def GetFullTextExtent(*args, **kwargs): - """ - GetFullTextExtent(String string, Font font=None) -> - (width, height, descent, externalLeading) - - Get the width, height, decent and leading of the text using the - current or specified font. - """ - return _core.Window_GetFullTextExtent(*args, **kwargs) - - def ClientToScreenXY(*args, **kwargs): - """ - ClientToScreenXY(int x, int y) -> (x,y) - - Converts to screen coordinates from coordinates relative to this window. - """ - return _core.Window_ClientToScreenXY(*args, **kwargs) - - def ScreenToClientXY(*args, **kwargs): - """ - ScreenToClientXY(int x, int y) -> (x,y) - - Converts from screen to client window coordinates. - """ - return _core.Window_ScreenToClientXY(*args, **kwargs) - - def ClientToScreen(*args, **kwargs): - """ - ClientToScreen(self, Point pt) -> Point - - Converts to screen coordinates from coordinates relative to this window. - """ - return _core.Window_ClientToScreen(*args, **kwargs) - - def ScreenToClient(*args, **kwargs): - """ - ScreenToClient(self, Point pt) -> Point - - Converts from screen to client window coordinates. - """ - return _core.Window_ScreenToClient(*args, **kwargs) - - def HitTestXY(*args, **kwargs): - """ - HitTestXY(self, int x, int y) -> int - - Test where the given (in client coords) point lies - """ - return _core.Window_HitTestXY(*args, **kwargs) - - def HitTest(*args, **kwargs): - """ - HitTest(self, Point pt) -> int - - Test where the given (in client coords) point lies - """ - return _core.Window_HitTest(*args, **kwargs) - - def GetBorder(*args): - """ - GetBorder(self, long flags) -> int - GetBorder(self) -> int - - Get border for the flags of this window - """ - return _core.Window_GetBorder(*args) - - def UpdateWindowUI(*args, **kwargs): - """ - UpdateWindowUI(self, long flags=UPDATE_UI_NONE) - - This function sends EVT_UPDATE_UI events to the window. The particular - implementation depends on the window; for example a wx.ToolBar will - send an update UI event for each toolbar button, and a wx.Frame will - send an update UI event for each menubar menu item. You can call this - function from your application to ensure that your UI is up-to-date at - a particular point in time (as far as your EVT_UPDATE_UI handlers are - concerned). This may be necessary if you have called - wx.UpdateUIEvent.SetMode or wx.UpdateUIEvent.SetUpdateInterval to - limit the overhead that wxWindows incurs by sending update UI events - in idle time. - - The flags should be a bitlist of one or more of the following values: - - wx.UPDATE_UI_NONE No particular value - wx.UPDATE_UI_RECURSE Call the function for descendants - wx.UPDATE_UI_FROMIDLE Invoked from OnIdle - - If you are calling this function from an OnIdle function, make sure - you pass the wx.UPDATE_UI_FROMIDLE flag, since this tells the window to - only update the UI elements that need to be updated in idle time. Some - windows update their elements only when necessary, for example when a - menu is about to be shown. The following is an example of how to call - UpdateWindowUI from an idle function. - - def OnIdle(self, evt): - if wx.UpdateUIEvent.CanUpdate(self): - self.UpdateWindowUI(wx.UPDATE_UI_FROMIDLE); - - """ - return _core.Window_UpdateWindowUI(*args, **kwargs) - - def PopupMenuXY(*args, **kwargs): - """ - PopupMenuXY(self, Menu menu, int x, int y) -> bool - - Pops up the given menu at the specified coordinates, relative to this - window, and returns control when the user has dismissed the menu. If a - menu item is selected, the corresponding menu event is generated and - will be processed as usual. - """ - return _core.Window_PopupMenuXY(*args, **kwargs) - - def PopupMenu(*args, **kwargs): - """ - PopupMenu(self, Menu menu, Point pos) -> bool - - Pops up the given menu at the specified coordinates, relative to this - window, and returns control when the user has dismissed the menu. If a - menu item is selected, the corresponding menu event is generated and - will be processed as usual. - """ - return _core.Window_PopupMenu(*args, **kwargs) - - def GetHandle(*args, **kwargs): - """ - GetHandle(self) -> long - - Returns the platform-specific handle (as a long integer) of the - physical window. Currently on wxMac it returns the handle of the - toplevel parent of the window. - """ - return _core.Window_GetHandle(*args, **kwargs) - - def OnPaint(*args, **kwargs): - """OnPaint(self, PaintEvent event)""" - return _core.Window_OnPaint(*args, **kwargs) - - def HasScrollbar(*args, **kwargs): - """ - HasScrollbar(self, int orient) -> bool - - Does the window have the scrollbar for this orientation? - """ - return _core.Window_HasScrollbar(*args, **kwargs) - - def SetScrollbar(*args, **kwargs): - """ - SetScrollbar(self, int orientation, int pos, int thumbvisible, int range, - bool refresh=True) - - Sets the scrollbar properties of a built-in scrollbar. - - orientation: Determines the scrollbar whose page size is to be - set. May be wx.HORIZONTAL or wx.VERTICAL. - - position: The position of the scrollbar in scroll units. - - thumbSize: The size of the thumb, or visible portion of the - scrollbar, in scroll units. - - range: The maximum position of the scrollbar. - - refresh: True to redraw the scrollbar, false otherwise. - """ - return _core.Window_SetScrollbar(*args, **kwargs) - - def SetScrollPos(*args, **kwargs): - """ - SetScrollPos(self, int orientation, int pos, bool refresh=True) - - Sets the position of one of the built-in scrollbars. - """ - return _core.Window_SetScrollPos(*args, **kwargs) - - def GetScrollPos(*args, **kwargs): - """ - GetScrollPos(self, int orientation) -> int - - Returns the built-in scrollbar position. - """ - return _core.Window_GetScrollPos(*args, **kwargs) - - def GetScrollThumb(*args, **kwargs): - """ - GetScrollThumb(self, int orientation) -> int - - Returns the built-in scrollbar thumb size. - """ - return _core.Window_GetScrollThumb(*args, **kwargs) - - def GetScrollRange(*args, **kwargs): - """ - GetScrollRange(self, int orientation) -> int - - Returns the built-in scrollbar range. - """ - return _core.Window_GetScrollRange(*args, **kwargs) - - def ScrollWindow(*args, **kwargs): - """ - ScrollWindow(self, int dx, int dy, Rect rect=None) - - Physically scrolls the pixels in the window and move child windows - accordingly. Use this function to optimise your scrolling - implementations, to minimise the area that must be redrawn. Note that - it is rarely required to call this function from a user program. - - dx: Amount to scroll horizontally. - - dy: Amount to scroll vertically. - - rect: Rectangle to invalidate. If this is None, the whole window - is invalidated. If you pass a rectangle corresponding to the - area of the window exposed by the scroll, your painting - handler can optimize painting by checking for the - invalidated region. - """ - return _core.Window_ScrollWindow(*args, **kwargs) - - def ScrollLines(*args, **kwargs): - """ - ScrollLines(self, int lines) -> bool - - If the platform and window class supports it, scrolls the window by - the given number of lines down, if lines is positive, or up if lines - is negative. Returns True if the window was scrolled, False if it was - already on top/bottom and nothing was done. - """ - return _core.Window_ScrollLines(*args, **kwargs) - - def ScrollPages(*args, **kwargs): - """ - ScrollPages(self, int pages) -> bool - - If the platform and window class supports it, scrolls the window by - the given number of pages down, if pages is positive, or up if pages - is negative. Returns True if the window was scrolled, False if it was - already on top/bottom and nothing was done. - """ - return _core.Window_ScrollPages(*args, **kwargs) - - def LineUp(*args, **kwargs): - """ - LineUp(self) -> bool - - This is just a wrapper for ScrollLines(-1). - """ - return _core.Window_LineUp(*args, **kwargs) - - def LineDown(*args, **kwargs): - """ - LineDown(self) -> bool - - This is just a wrapper for ScrollLines(1). - """ - return _core.Window_LineDown(*args, **kwargs) - - def PageUp(*args, **kwargs): - """ - PageUp(self) -> bool - - This is just a wrapper for ScrollPages(-1). - """ - return _core.Window_PageUp(*args, **kwargs) - - def PageDown(*args, **kwargs): - """ - PageDown(self) -> bool - - This is just a wrapper for ScrollPages(1). - """ - return _core.Window_PageDown(*args, **kwargs) - - def SetHelpText(*args, **kwargs): - """ - SetHelpText(self, String text) - - Sets the help text to be used as context-sensitive help for this - window. Note that the text is actually stored by the current - wxHelpProvider implementation, and not in the window object itself. - """ - return _core.Window_SetHelpText(*args, **kwargs) - - def SetHelpTextForId(*args, **kwargs): - """ - SetHelpTextForId(self, String text) - - Associate this help text with all windows with the same id as this - one. - """ - return _core.Window_SetHelpTextForId(*args, **kwargs) - - def GetHelpText(*args, **kwargs): - """ - GetHelpText(self) -> String - - Gets the help text to be used as context-sensitive help for this - window. Note that the text is actually stored by the current - wxHelpProvider implementation, and not in the window object itself. - """ - return _core.Window_GetHelpText(*args, **kwargs) - - def SetToolTipString(*args, **kwargs): - """ - SetToolTipString(self, String tip) - - Attach a tooltip to the window. - """ - return _core.Window_SetToolTipString(*args, **kwargs) - - def SetToolTip(*args, **kwargs): - """ - SetToolTip(self, ToolTip tip) - - Attach a tooltip to the window. - """ - return _core.Window_SetToolTip(*args, **kwargs) - - def GetToolTip(*args, **kwargs): - """ - GetToolTip(self) -> ToolTip - - get the associated tooltip or None if none - """ - return _core.Window_GetToolTip(*args, **kwargs) - - def SetDropTarget(*args, **kwargs): - """ - SetDropTarget(self, DropTarget dropTarget) - - Associates a drop target with this window. If the window already has - a drop target, it is deleted. - """ - return _core.Window_SetDropTarget(*args, **kwargs) - - def GetDropTarget(*args, **kwargs): - """ - GetDropTarget(self) -> DropTarget - - Returns the associated drop target, which may be None. - """ - return _core.Window_GetDropTarget(*args, **kwargs) - - def DragAcceptFiles(*args, **kwargs): - """ - DragAcceptFiles(self, bool accept) - - Enables or disables eligibility for drop file events, EVT_DROP_FILES. - Only available on Windows. - """ - return _core.Window_DragAcceptFiles(*args, **kwargs) - - def SetConstraints(*args, **kwargs): - """ - SetConstraints(self, LayoutConstraints constraints) - - Sets the window to have the given layout constraints. If an existing - layout constraints object is already owned by the window, it will be - deleted. Pass None to disassociate and delete the window's current - constraints. - - You must call SetAutoLayout to tell a window to use the constraints - automatically in its default EVT_SIZE handler; otherwise, you must - handle EVT_SIZE yourself and call Layout() explicitly. When setting - both a wx.LayoutConstraints and a wx.Sizer, only the sizer will have - effect. - """ - return _core.Window_SetConstraints(*args, **kwargs) - - def GetConstraints(*args, **kwargs): - """ - GetConstraints(self) -> LayoutConstraints - - Returns a pointer to the window's layout constraints, or None if there - are none. - """ - return _core.Window_GetConstraints(*args, **kwargs) - - def SetAutoLayout(*args, **kwargs): - """ - SetAutoLayout(self, bool autoLayout) - - Determines whether the Layout function will be called automatically - when the window is resized. It is called implicitly by SetSizer but - if you use SetConstraints you should call it manually or otherwise the - window layout won't be correctly updated when its size changes. - """ - return _core.Window_SetAutoLayout(*args, **kwargs) - - def GetAutoLayout(*args, **kwargs): - """ - GetAutoLayout(self) -> bool - - Returns the current autoLayout setting - """ - return _core.Window_GetAutoLayout(*args, **kwargs) - - def Layout(*args, **kwargs): - """ - Layout(self) -> bool - - Invokes the constraint-based layout algorithm or the sizer-based - algorithm for this window. See SetAutoLayout: when auto layout is on, - this function gets called automatically by the default EVT_SIZE - handler when the window is resized. - """ - return _core.Window_Layout(*args, **kwargs) - - def SetSizer(*args, **kwargs): - """ - SetSizer(self, Sizer sizer, bool deleteOld=True) - - Sets the window to have the given layout sizer. The window will then - own the object, and will take care of its deletion. If an existing - layout sizer object is already owned by the window, it will be deleted - if the deleteOld parameter is true. Note that this function will also - call SetAutoLayout implicitly with a True parameter if the sizer is - non-NoneL and False otherwise. - """ - return _core.Window_SetSizer(*args, **kwargs) - - def SetSizerAndFit(*args, **kwargs): - """ - SetSizerAndFit(self, Sizer sizer, bool deleteOld=True) - - The same as SetSizer, except it also sets the size hints for the - window based on the sizer's minimum size. - """ - return _core.Window_SetSizerAndFit(*args, **kwargs) - - def GetSizer(*args, **kwargs): - """ - GetSizer(self) -> Sizer - - Return the sizer associated with the window by a previous call to - SetSizer or None if there isn't one. - """ - return _core.Window_GetSizer(*args, **kwargs) - - def SetContainingSizer(*args, **kwargs): - """ - SetContainingSizer(self, Sizer sizer) - - This normally does not need to be called by application code. It is - called internally when a window is added to a sizer, and is used so - the window can remove itself from the sizer when it is destroyed. - """ - return _core.Window_SetContainingSizer(*args, **kwargs) - - def GetContainingSizer(*args, **kwargs): - """ - GetContainingSizer(self) -> Sizer - - Return the sizer that this window is a member of, if any, otherwise None. - """ - return _core.Window_GetContainingSizer(*args, **kwargs) - - def InheritAttributes(*args, **kwargs): - """ - InheritAttributes(self) - - This function is (or should be, in case of custom controls) - called during window creation to intelligently set up the window - visual attributes, that is the font and the foreground and - background colours. - - By 'intelligently' the following is meant: by default, all - windows use their own default attributes. However if some of the - parent's attributes are explicitly changed (that is, using - SetFont and not SetDefaultFont) and if the corresponding - attribute hadn't been explicitly set for this window itself, then - this window takes the same value as used by the parent. In - addition, if the window overrides ShouldInheritColours to return - false, the colours will not be changed no matter what and only - the font might. - - This rather complicated logic is necessary in order to accomodate - the different usage scenarius. The most common one is when all - default attributes are used and in this case, nothing should be - inherited as in modern GUIs different controls use different - fonts (and colours) than their siblings so they can't inherit the - same value from the parent. However it was also deemed desirable - to allow to simply change the attributes of all children at once - by just changing the font or colour of their common parent, hence - in this case we do inherit the parents attributes. - """ - return _core.Window_InheritAttributes(*args, **kwargs) - - def ShouldInheritColours(*args, **kwargs): - """ - ShouldInheritColours(self) -> bool - - Return true from here to allow the colours of this window to be - changed by InheritAttributes, returning false forbids inheriting - them from the parent window. - - The base class version returns false, but this method is - overridden in wxControl where it returns true. - """ - return _core.Window_ShouldInheritColours(*args, **kwargs) - - def PostCreate(self, pre): - """ - Phase 3 of the 2-phase create - Call this method after precreating the window with the 2-phase create method. - """ - self.this = pre.this - self.thisown = pre.thisown - pre.thisown = 0 - if hasattr(self, '_setOORInfo'): - self._setOORInfo(self) - if hasattr(self, '_setCallbackInfo'): - self._setCallbackInfo(self, self.__class__) - - -class WindowPtr(Window): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Window -_core.Window_swigregister(WindowPtr) - -def PreWindow(*args, **kwargs): - """ - PreWindow() -> Window - - Precreate a Window for 2-phase creation. - """ - val = _core.new_PreWindow(*args, **kwargs) - val.thisown = 1 - return val - -def Window_NewControlId(*args, **kwargs): - """ - Window_NewControlId() -> int - - Generate a control id for the controls which were not given one. - """ - return _core.Window_NewControlId(*args, **kwargs) - -def Window_NextControlId(*args, **kwargs): - """ - Window_NextControlId(int winid) -> int - - Get the id of the control following the one with the given - (autogenerated) id - """ - return _core.Window_NextControlId(*args, **kwargs) - -def Window_PrevControlId(*args, **kwargs): - """ - Window_PrevControlId(int winid) -> int - - Get the id of the control preceding the one with the given - (autogenerated) id - """ - return _core.Window_PrevControlId(*args, **kwargs) - -def Window_FindFocus(*args, **kwargs): - """ - Window_FindFocus() -> Window - - Returns the window or control that currently has the keyboard focus, - or None. - """ - return _core.Window_FindFocus(*args, **kwargs) - -def Window_GetCapture(*args, **kwargs): - """ - Window_GetCapture() -> Window - - Returns the window which currently captures the mouse or None - """ - return _core.Window_GetCapture(*args, **kwargs) - -def Window_GetClassDefaultAttributes(*args, **kwargs): - """ - Window_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes - - Get the default attributes for this class. This is useful if - you want to use the same font or colour in your own control as - in a standard control -- which is a much better idea than hard - coding specific colours or fonts which might look completely out - of place on the users system, especially if it uses themes. - - The variant parameter is only relevant under Mac currently and is - ignore under other platforms. Under Mac, it will change the size of the - returned font. See SetWindowVariant for more about this. - """ - return _core.Window_GetClassDefaultAttributes(*args, **kwargs) - -def DLG_PNT(win, point_or_x, y=None): - """ - Convenience function for converting a Point or (x,y) in - dialog units to pixel units. - """ - if y is None: - return win.ConvertDialogPointToPixels(point_or_x) - else: - return win.ConvertDialogPointToPixels(wx.Point(point_or_x, y)) - -def DLG_SZE(win, size_width, height=None): - """ - Convenience function for converting a Size or (w,h) in - dialog units to pixel units. - """ - if height is None: - return win.ConvertDialogSizeToPixels(size_width) - else: - return win.ConvertDialogSizeToPixels(wx.Size(size_width, height)) - - -def FindWindowById(*args, **kwargs): - """ - FindWindowById(long id, Window parent=None) -> Window - - Find the first window in the application with the given id. If parent - is None, the search will start from all top-level frames and dialog - boxes; if non-None, the search will be limited to the given window - hierarchy. The search is recursive in both cases. - """ - return _core.FindWindowById(*args, **kwargs) - -def FindWindowByName(*args, **kwargs): - """ - FindWindowByName(String name, Window parent=None) -> Window - - Find a window by its name (as given in a window constructor or Create - function call). If parent is None, the search will start from all - top-level frames and dialog boxes; if non-None, the search will be - limited to the given window hierarchy. The search is recursive in both - cases. - - If no window with such name is found, wx.FindWindowByLabel is called. - """ - return _core.FindWindowByName(*args, **kwargs) - -def FindWindowByLabel(*args, **kwargs): - """ - FindWindowByLabel(String label, Window parent=None) -> Window - - Find a window by its label. Depending on the type of window, the label - may be a window title or panel item label. If parent is None, the - search will start from all top-level frames and dialog boxes; if - non-None, the search will be limited to the given window - hierarchy. The search is recursive in both cases. - """ - return _core.FindWindowByLabel(*args, **kwargs) - -def Window_FromHWND(*args, **kwargs): - """Window_FromHWND(Window parent, unsigned long _hWnd) -> Window""" - return _core.Window_FromHWND(*args, **kwargs) -#--------------------------------------------------------------------------- - -class Validator(EvtHandler): - def __repr__(self): - return "<%s.%s; proxy of C++ wxValidator instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> Validator""" - newobj = _core.new_Validator(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Clone(*args, **kwargs): - """Clone(self) -> Validator""" - return _core.Validator_Clone(*args, **kwargs) - - def Validate(*args, **kwargs): - """Validate(self, Window parent) -> bool""" - return _core.Validator_Validate(*args, **kwargs) - - def TransferToWindow(*args, **kwargs): - """TransferToWindow(self) -> bool""" - return _core.Validator_TransferToWindow(*args, **kwargs) - - def TransferFromWindow(*args, **kwargs): - """TransferFromWindow(self) -> bool""" - return _core.Validator_TransferFromWindow(*args, **kwargs) - - def GetWindow(*args, **kwargs): - """GetWindow(self) -> Window""" - return _core.Validator_GetWindow(*args, **kwargs) - - def SetWindow(*args, **kwargs): - """SetWindow(self, Window window)""" - return _core.Validator_SetWindow(*args, **kwargs) - - def IsSilent(*args, **kwargs): - """Validator.IsSilent() -> bool""" - return _core.Validator_IsSilent(*args, **kwargs) - - IsSilent = staticmethod(IsSilent) - def SetBellOnError(*args, **kwargs): - """Validator.SetBellOnError(int doIt=True)""" - return _core.Validator_SetBellOnError(*args, **kwargs) - - SetBellOnError = staticmethod(SetBellOnError) - -class ValidatorPtr(Validator): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Validator -_core.Validator_swigregister(ValidatorPtr) - -def Validator_IsSilent(*args, **kwargs): - """Validator_IsSilent() -> bool""" - return _core.Validator_IsSilent(*args, **kwargs) - -def Validator_SetBellOnError(*args, **kwargs): - """Validator_SetBellOnError(int doIt=True)""" - return _core.Validator_SetBellOnError(*args, **kwargs) - -class PyValidator(Validator): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyValidator instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> PyValidator""" - newobj = _core.new_PyValidator(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - - self._setCallbackInfo(self, PyValidator, 1) - self._setOORInfo(self) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class, int incref=True)""" - return _core.PyValidator__setCallbackInfo(*args, **kwargs) - - -class PyValidatorPtr(PyValidator): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PyValidator -_core.PyValidator_swigregister(PyValidatorPtr) - -#--------------------------------------------------------------------------- - -class Menu(EvtHandler): - def __repr__(self): - return "<%s.%s; proxy of C++ wxMenu instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, String title=EmptyString, long style=0) -> Menu""" - newobj = _core.new_Menu(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Append(*args, **kwargs): - """Append(self, int id, String text, String help=EmptyString, int kind=ITEM_NORMAL) -> MenuItem""" - return _core.Menu_Append(*args, **kwargs) - - def AppendSeparator(*args, **kwargs): - """AppendSeparator(self) -> MenuItem""" - return _core.Menu_AppendSeparator(*args, **kwargs) - - def AppendCheckItem(*args, **kwargs): - """AppendCheckItem(self, int id, String text, String help=EmptyString) -> MenuItem""" - return _core.Menu_AppendCheckItem(*args, **kwargs) - - def AppendRadioItem(*args, **kwargs): - """AppendRadioItem(self, int id, String text, String help=EmptyString) -> MenuItem""" - return _core.Menu_AppendRadioItem(*args, **kwargs) - - def AppendMenu(*args, **kwargs): - """AppendMenu(self, int id, String text, Menu submenu, String help=EmptyString) -> MenuItem""" - return _core.Menu_AppendMenu(*args, **kwargs) - - def AppendItem(*args, **kwargs): - """AppendItem(self, MenuItem item) -> MenuItem""" - return _core.Menu_AppendItem(*args, **kwargs) - - def Break(*args, **kwargs): - """Break(self)""" - return _core.Menu_Break(*args, **kwargs) - - def InsertItem(*args, **kwargs): - """InsertItem(self, size_t pos, MenuItem item) -> MenuItem""" - return _core.Menu_InsertItem(*args, **kwargs) - - def Insert(*args, **kwargs): - """ - Insert(self, size_t pos, int id, String text, String help=EmptyString, - int kind=ITEM_NORMAL) -> MenuItem - """ - return _core.Menu_Insert(*args, **kwargs) - - def InsertSeparator(*args, **kwargs): - """InsertSeparator(self, size_t pos) -> MenuItem""" - return _core.Menu_InsertSeparator(*args, **kwargs) - - def InsertCheckItem(*args, **kwargs): - """InsertCheckItem(self, size_t pos, int id, String text, String help=EmptyString) -> MenuItem""" - return _core.Menu_InsertCheckItem(*args, **kwargs) - - def InsertRadioItem(*args, **kwargs): - """InsertRadioItem(self, size_t pos, int id, String text, String help=EmptyString) -> MenuItem""" - return _core.Menu_InsertRadioItem(*args, **kwargs) - - def InsertMenu(*args, **kwargs): - """InsertMenu(self, size_t pos, int id, String text, Menu submenu, String help=EmptyString) -> MenuItem""" - return _core.Menu_InsertMenu(*args, **kwargs) - - def PrependItem(*args, **kwargs): - """PrependItem(self, MenuItem item) -> MenuItem""" - return _core.Menu_PrependItem(*args, **kwargs) - - def Prepend(*args, **kwargs): - """Prepend(self, int id, String text, String help=EmptyString, int kind=ITEM_NORMAL) -> MenuItem""" - return _core.Menu_Prepend(*args, **kwargs) - - def PrependSeparator(*args, **kwargs): - """PrependSeparator(self) -> MenuItem""" - return _core.Menu_PrependSeparator(*args, **kwargs) - - def PrependCheckItem(*args, **kwargs): - """PrependCheckItem(self, int id, String text, String help=EmptyString) -> MenuItem""" - return _core.Menu_PrependCheckItem(*args, **kwargs) - - def PrependRadioItem(*args, **kwargs): - """PrependRadioItem(self, int id, String text, String help=EmptyString) -> MenuItem""" - return _core.Menu_PrependRadioItem(*args, **kwargs) - - def PrependMenu(*args, **kwargs): - """PrependMenu(self, int id, String text, Menu submenu, String help=EmptyString) -> MenuItem""" - return _core.Menu_PrependMenu(*args, **kwargs) - - def Remove(*args, **kwargs): - """Remove(self, int id) -> MenuItem""" - return _core.Menu_Remove(*args, **kwargs) - - def RemoveItem(*args, **kwargs): - """RemoveItem(self, MenuItem item) -> MenuItem""" - return _core.Menu_RemoveItem(*args, **kwargs) - - def Delete(*args, **kwargs): - """Delete(self, int id) -> bool""" - return _core.Menu_Delete(*args, **kwargs) - - def DeleteItem(*args, **kwargs): - """DeleteItem(self, MenuItem item) -> bool""" - return _core.Menu_DeleteItem(*args, **kwargs) - - def Destroy(*args, **kwargs): - """ - Destroy(self) - - Deletes the C++ object this Python object is a proxy for. - """ - return _core.Menu_Destroy(*args, **kwargs) - - def DestroyId(*args, **kwargs): - """ - DestroyId(self, int id) -> bool - - Deletes the C++ object this Python object is a proxy for. - """ - return _core.Menu_DestroyId(*args, **kwargs) - - def DestroyItem(*args, **kwargs): - """ - DestroyItem(self, MenuItem item) -> bool - - Deletes the C++ object this Python object is a proxy for. - """ - return _core.Menu_DestroyItem(*args, **kwargs) - - def GetMenuItemCount(*args, **kwargs): - """GetMenuItemCount(self) -> size_t""" - return _core.Menu_GetMenuItemCount(*args, **kwargs) - - def GetMenuItems(*args, **kwargs): - """GetMenuItems(self) -> PyObject""" - return _core.Menu_GetMenuItems(*args, **kwargs) - - def FindItem(*args, **kwargs): - """FindItem(self, String item) -> int""" - return _core.Menu_FindItem(*args, **kwargs) - - def FindItemById(*args, **kwargs): - """FindItemById(self, int id) -> MenuItem""" - return _core.Menu_FindItemById(*args, **kwargs) - - def FindItemByPosition(*args, **kwargs): - """FindItemByPosition(self, size_t position) -> MenuItem""" - return _core.Menu_FindItemByPosition(*args, **kwargs) - - def Enable(*args, **kwargs): - """Enable(self, int id, bool enable)""" - return _core.Menu_Enable(*args, **kwargs) - - def IsEnabled(*args, **kwargs): - """IsEnabled(self, int id) -> bool""" - return _core.Menu_IsEnabled(*args, **kwargs) - - def Check(*args, **kwargs): - """Check(self, int id, bool check)""" - return _core.Menu_Check(*args, **kwargs) - - def IsChecked(*args, **kwargs): - """IsChecked(self, int id) -> bool""" - return _core.Menu_IsChecked(*args, **kwargs) - - def SetLabel(*args, **kwargs): - """SetLabel(self, int id, String label)""" - return _core.Menu_SetLabel(*args, **kwargs) - - def GetLabel(*args, **kwargs): - """GetLabel(self, int id) -> String""" - return _core.Menu_GetLabel(*args, **kwargs) - - def SetHelpString(*args, **kwargs): - """SetHelpString(self, int id, String helpString)""" - return _core.Menu_SetHelpString(*args, **kwargs) - - def GetHelpString(*args, **kwargs): - """GetHelpString(self, int id) -> String""" - return _core.Menu_GetHelpString(*args, **kwargs) - - def SetTitle(*args, **kwargs): - """SetTitle(self, String title)""" - return _core.Menu_SetTitle(*args, **kwargs) - - def GetTitle(*args, **kwargs): - """GetTitle(self) -> String""" - return _core.Menu_GetTitle(*args, **kwargs) - - def SetEventHandler(*args, **kwargs): - """SetEventHandler(self, EvtHandler handler)""" - return _core.Menu_SetEventHandler(*args, **kwargs) - - def GetEventHandler(*args, **kwargs): - """GetEventHandler(self) -> EvtHandler""" - return _core.Menu_GetEventHandler(*args, **kwargs) - - def SetInvokingWindow(*args, **kwargs): - """SetInvokingWindow(self, Window win)""" - return _core.Menu_SetInvokingWindow(*args, **kwargs) - - def GetInvokingWindow(*args, **kwargs): - """GetInvokingWindow(self) -> Window""" - return _core.Menu_GetInvokingWindow(*args, **kwargs) - - def GetStyle(*args, **kwargs): - """GetStyle(self) -> long""" - return _core.Menu_GetStyle(*args, **kwargs) - - def UpdateUI(*args, **kwargs): - """UpdateUI(self, EvtHandler source=None)""" - return _core.Menu_UpdateUI(*args, **kwargs) - - def GetMenuBar(*args, **kwargs): - """GetMenuBar(self) -> MenuBar""" - return _core.Menu_GetMenuBar(*args, **kwargs) - - def Attach(*args, **kwargs): - """Attach(self, wxMenuBarBase menubar)""" - return _core.Menu_Attach(*args, **kwargs) - - def Detach(*args, **kwargs): - """Detach(self)""" - return _core.Menu_Detach(*args, **kwargs) - - def IsAttached(*args, **kwargs): - """IsAttached(self) -> bool""" - return _core.Menu_IsAttached(*args, **kwargs) - - def SetParent(*args, **kwargs): - """SetParent(self, Menu parent)""" - return _core.Menu_SetParent(*args, **kwargs) - - def GetParent(*args, **kwargs): - """GetParent(self) -> Menu""" - return _core.Menu_GetParent(*args, **kwargs) - - -class MenuPtr(Menu): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Menu -_core.Menu_swigregister(MenuPtr) -DefaultValidator = cvar.DefaultValidator - -#--------------------------------------------------------------------------- - -class MenuBar(Window): - def __repr__(self): - return "<%s.%s; proxy of C++ wxMenuBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, long style=0) -> MenuBar""" - newobj = _core.new_MenuBar(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Append(*args, **kwargs): - """Append(self, Menu menu, String title) -> bool""" - return _core.MenuBar_Append(*args, **kwargs) - - def Insert(*args, **kwargs): - """Insert(self, size_t pos, Menu menu, String title) -> bool""" - return _core.MenuBar_Insert(*args, **kwargs) - - def GetMenuCount(*args, **kwargs): - """GetMenuCount(self) -> size_t""" - return _core.MenuBar_GetMenuCount(*args, **kwargs) - - def GetMenu(*args, **kwargs): - """GetMenu(self, size_t pos) -> Menu""" - return _core.MenuBar_GetMenu(*args, **kwargs) - - def Replace(*args, **kwargs): - """Replace(self, size_t pos, Menu menu, String title) -> Menu""" - return _core.MenuBar_Replace(*args, **kwargs) - - def Remove(*args, **kwargs): - """Remove(self, size_t pos) -> Menu""" - return _core.MenuBar_Remove(*args, **kwargs) - - def EnableTop(*args, **kwargs): - """EnableTop(self, size_t pos, bool enable)""" - return _core.MenuBar_EnableTop(*args, **kwargs) - - def IsEnabledTop(*args, **kwargs): - """IsEnabledTop(self, size_t pos) -> bool""" - return _core.MenuBar_IsEnabledTop(*args, **kwargs) - - def SetLabelTop(*args, **kwargs): - """SetLabelTop(self, size_t pos, String label)""" - return _core.MenuBar_SetLabelTop(*args, **kwargs) - - def GetLabelTop(*args, **kwargs): - """GetLabelTop(self, size_t pos) -> String""" - return _core.MenuBar_GetLabelTop(*args, **kwargs) - - def FindMenuItem(*args, **kwargs): - """FindMenuItem(self, String menu, String item) -> int""" - return _core.MenuBar_FindMenuItem(*args, **kwargs) - - def FindItemById(*args, **kwargs): - """FindItemById(self, int id) -> MenuItem""" - return _core.MenuBar_FindItemById(*args, **kwargs) - - def FindMenu(*args, **kwargs): - """FindMenu(self, String title) -> int""" - return _core.MenuBar_FindMenu(*args, **kwargs) - - def Enable(*args, **kwargs): - """Enable(self, int id, bool enable)""" - return _core.MenuBar_Enable(*args, **kwargs) - - def Check(*args, **kwargs): - """Check(self, int id, bool check)""" - return _core.MenuBar_Check(*args, **kwargs) - - def IsChecked(*args, **kwargs): - """IsChecked(self, int id) -> bool""" - return _core.MenuBar_IsChecked(*args, **kwargs) - - def IsEnabled(*args, **kwargs): - """IsEnabled(self, int id) -> bool""" - return _core.MenuBar_IsEnabled(*args, **kwargs) - - def SetLabel(*args, **kwargs): - """SetLabel(self, int id, String label)""" - return _core.MenuBar_SetLabel(*args, **kwargs) - - def GetLabel(*args, **kwargs): - """GetLabel(self, int id) -> String""" - return _core.MenuBar_GetLabel(*args, **kwargs) - - def SetHelpString(*args, **kwargs): - """SetHelpString(self, int id, String helpString)""" - return _core.MenuBar_SetHelpString(*args, **kwargs) - - def GetHelpString(*args, **kwargs): - """GetHelpString(self, int id) -> String""" - return _core.MenuBar_GetHelpString(*args, **kwargs) - - def GetFrame(*args, **kwargs): - """GetFrame(self) -> wxFrame""" - return _core.MenuBar_GetFrame(*args, **kwargs) - - def IsAttached(*args, **kwargs): - """IsAttached(self) -> bool""" - return _core.MenuBar_IsAttached(*args, **kwargs) - - def Attach(*args, **kwargs): - """Attach(self, wxFrame frame)""" - return _core.MenuBar_Attach(*args, **kwargs) - - def Detach(*args, **kwargs): - """Detach(self)""" - return _core.MenuBar_Detach(*args, **kwargs) - - -class MenuBarPtr(MenuBar): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = MenuBar -_core.MenuBar_swigregister(MenuBarPtr) - -#--------------------------------------------------------------------------- - -class MenuItem(Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxMenuItem instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Menu parentMenu=None, int id=ID_ANY, String text=EmptyString, - String help=EmptyString, int kind=ITEM_NORMAL, - Menu subMenu=None) -> MenuItem - """ - newobj = _core.new_MenuItem(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetMenu(*args, **kwargs): - """GetMenu(self) -> Menu""" - return _core.MenuItem_GetMenu(*args, **kwargs) - - def SetMenu(*args, **kwargs): - """SetMenu(self, Menu menu)""" - return _core.MenuItem_SetMenu(*args, **kwargs) - - def SetId(*args, **kwargs): - """SetId(self, int id)""" - return _core.MenuItem_SetId(*args, **kwargs) - - def GetId(*args, **kwargs): - """GetId(self) -> int""" - return _core.MenuItem_GetId(*args, **kwargs) - - def IsSeparator(*args, **kwargs): - """IsSeparator(self) -> bool""" - return _core.MenuItem_IsSeparator(*args, **kwargs) - - def SetText(*args, **kwargs): - """SetText(self, String str)""" - return _core.MenuItem_SetText(*args, **kwargs) - - def GetLabel(*args, **kwargs): - """GetLabel(self) -> String""" - return _core.MenuItem_GetLabel(*args, **kwargs) - - def GetText(*args, **kwargs): - """GetText(self) -> String""" - return _core.MenuItem_GetText(*args, **kwargs) - - def GetLabelFromText(*args, **kwargs): - """MenuItem.GetLabelFromText(String text) -> String""" - return _core.MenuItem_GetLabelFromText(*args, **kwargs) - - GetLabelFromText = staticmethod(GetLabelFromText) - def GetKind(*args, **kwargs): - """GetKind(self) -> int""" - return _core.MenuItem_GetKind(*args, **kwargs) - - def SetKind(*args, **kwargs): - """SetKind(self, int kind)""" - return _core.MenuItem_SetKind(*args, **kwargs) - - def SetCheckable(*args, **kwargs): - """SetCheckable(self, bool checkable)""" - return _core.MenuItem_SetCheckable(*args, **kwargs) - - def IsCheckable(*args, **kwargs): - """IsCheckable(self) -> bool""" - return _core.MenuItem_IsCheckable(*args, **kwargs) - - def IsSubMenu(*args, **kwargs): - """IsSubMenu(self) -> bool""" - return _core.MenuItem_IsSubMenu(*args, **kwargs) - - def SetSubMenu(*args, **kwargs): - """SetSubMenu(self, Menu menu)""" - return _core.MenuItem_SetSubMenu(*args, **kwargs) - - def GetSubMenu(*args, **kwargs): - """GetSubMenu(self) -> Menu""" - return _core.MenuItem_GetSubMenu(*args, **kwargs) - - def Enable(*args, **kwargs): - """Enable(self, bool enable=True)""" - return _core.MenuItem_Enable(*args, **kwargs) - - def IsEnabled(*args, **kwargs): - """IsEnabled(self) -> bool""" - return _core.MenuItem_IsEnabled(*args, **kwargs) - - def Check(*args, **kwargs): - """Check(self, bool check=True)""" - return _core.MenuItem_Check(*args, **kwargs) - - def IsChecked(*args, **kwargs): - """IsChecked(self) -> bool""" - return _core.MenuItem_IsChecked(*args, **kwargs) - - def Toggle(*args, **kwargs): - """Toggle(self)""" - return _core.MenuItem_Toggle(*args, **kwargs) - - def SetHelp(*args, **kwargs): - """SetHelp(self, String str)""" - return _core.MenuItem_SetHelp(*args, **kwargs) - - def GetHelp(*args, **kwargs): - """GetHelp(self) -> String""" - return _core.MenuItem_GetHelp(*args, **kwargs) - - def GetAccel(*args, **kwargs): - """GetAccel(self) -> AcceleratorEntry""" - return _core.MenuItem_GetAccel(*args, **kwargs) - - def SetAccel(*args, **kwargs): - """SetAccel(self, AcceleratorEntry accel)""" - return _core.MenuItem_SetAccel(*args, **kwargs) - - def SetFont(*args, **kwargs): - """SetFont(self, Font font)""" - return _core.MenuItem_SetFont(*args, **kwargs) - - def GetFont(*args, **kwargs): - """GetFont(self) -> Font""" - return _core.MenuItem_GetFont(*args, **kwargs) - - def SetTextColour(*args, **kwargs): - """SetTextColour(self, Colour colText)""" - return _core.MenuItem_SetTextColour(*args, **kwargs) - - def GetTextColour(*args, **kwargs): - """GetTextColour(self) -> Colour""" - return _core.MenuItem_GetTextColour(*args, **kwargs) - - def SetBackgroundColour(*args, **kwargs): - """SetBackgroundColour(self, Colour colBack)""" - return _core.MenuItem_SetBackgroundColour(*args, **kwargs) - - def GetBackgroundColour(*args, **kwargs): - """GetBackgroundColour(self) -> Colour""" - return _core.MenuItem_GetBackgroundColour(*args, **kwargs) - - def SetBitmaps(*args, **kwargs): - """SetBitmaps(self, Bitmap bmpChecked, Bitmap bmpUnchecked=wxNullBitmap)""" - return _core.MenuItem_SetBitmaps(*args, **kwargs) - - def SetDisabledBitmap(*args, **kwargs): - """SetDisabledBitmap(self, Bitmap bmpDisabled)""" - return _core.MenuItem_SetDisabledBitmap(*args, **kwargs) - - def GetDisabledBitmap(*args, **kwargs): - """GetDisabledBitmap(self) -> Bitmap""" - return _core.MenuItem_GetDisabledBitmap(*args, **kwargs) - - def SetMarginWidth(*args, **kwargs): - """SetMarginWidth(self, int nWidth)""" - return _core.MenuItem_SetMarginWidth(*args, **kwargs) - - def GetMarginWidth(*args, **kwargs): - """GetMarginWidth(self) -> int""" - return _core.MenuItem_GetMarginWidth(*args, **kwargs) - - def GetDefaultMarginWidth(*args, **kwargs): - """MenuItem.GetDefaultMarginWidth() -> int""" - return _core.MenuItem_GetDefaultMarginWidth(*args, **kwargs) - - GetDefaultMarginWidth = staticmethod(GetDefaultMarginWidth) - def IsOwnerDrawn(*args, **kwargs): - """IsOwnerDrawn(self) -> bool""" - return _core.MenuItem_IsOwnerDrawn(*args, **kwargs) - - def SetOwnerDrawn(*args, **kwargs): - """SetOwnerDrawn(self, bool ownerDrawn=True)""" - return _core.MenuItem_SetOwnerDrawn(*args, **kwargs) - - def ResetOwnerDrawn(*args, **kwargs): - """ResetOwnerDrawn(self)""" - return _core.MenuItem_ResetOwnerDrawn(*args, **kwargs) - - def SetBitmap(*args, **kwargs): - """SetBitmap(self, Bitmap bitmap)""" - return _core.MenuItem_SetBitmap(*args, **kwargs) - - def GetBitmap(*args, **kwargs): - """GetBitmap(self) -> Bitmap""" - return _core.MenuItem_GetBitmap(*args, **kwargs) - - -class MenuItemPtr(MenuItem): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = MenuItem -_core.MenuItem_swigregister(MenuItemPtr) - -def MenuItem_GetLabelFromText(*args, **kwargs): - """MenuItem_GetLabelFromText(String text) -> String""" - return _core.MenuItem_GetLabelFromText(*args, **kwargs) - -def MenuItem_GetDefaultMarginWidth(*args, **kwargs): - """MenuItem_GetDefaultMarginWidth() -> int""" - return _core.MenuItem_GetDefaultMarginWidth(*args, **kwargs) - -#--------------------------------------------------------------------------- - -class Control(Window): - """ - This is the base class for a control or 'widget'. - - A control is generally a small window which processes user input and/or - displays one or more item of data. - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxControl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - long style=0, Validator validator=DefaultValidator, - String name=ControlNameStr) -> Control - - Create a Control. Normally you should only call this from a - subclass' __init__ as a plain old wx.Control is not very useful. - """ - newobj = _core.new_Control(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - long style=0, Validator validator=DefaultValidator, - String name=ControlNameStr) -> bool - - Do the 2nd phase and create the GUI control. - """ - return _core.Control_Create(*args, **kwargs) - - def Command(*args, **kwargs): - """ - Command(self, CommandEvent event) - - Simulates the effect of the user issuing a command to the - item. See wx.CommandEvent. - """ - return _core.Control_Command(*args, **kwargs) - - def GetLabel(*args, **kwargs): - """ - GetLabel(self) -> String - - Return a control's text. - """ - return _core.Control_GetLabel(*args, **kwargs) - - def SetLabel(*args, **kwargs): - """ - SetLabel(self, String label) - - Sets the item's text. - """ - return _core.Control_SetLabel(*args, **kwargs) - - def GetClassDefaultAttributes(*args, **kwargs): - """ - Control.GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes - - Get the default attributes for this class. This is useful if - you want to use the same font or colour in your own control as - in a standard control -- which is a much better idea than hard - coding specific colours or fonts which might look completely out - of place on the users system, especially if it uses themes. - - The variant parameter is only relevant under Mac currently and is - ignore under other platforms. Under Mac, it will change the size of the - returned font. See SetWindowVariant for more about this. - """ - return _core.Control_GetClassDefaultAttributes(*args, **kwargs) - - GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) - -class ControlPtr(Control): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Control -_core.Control_swigregister(ControlPtr) -ControlNameStr = cvar.ControlNameStr - -def PreControl(*args, **kwargs): - """ - PreControl() -> Control - - Precreate a Control control for 2-phase creation - """ - val = _core.new_PreControl(*args, **kwargs) - val.thisown = 1 - return val - -def Control_GetClassDefaultAttributes(*args, **kwargs): - """ - Control_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes - - Get the default attributes for this class. This is useful if - you want to use the same font or colour in your own control as - in a standard control -- which is a much better idea than hard - coding specific colours or fonts which might look completely out - of place on the users system, especially if it uses themes. - - The variant parameter is only relevant under Mac currently and is - ignore under other platforms. Under Mac, it will change the size of the - returned font. See SetWindowVariant for more about this. - """ - return _core.Control_GetClassDefaultAttributes(*args, **kwargs) - -#--------------------------------------------------------------------------- - -class ItemContainer(object): - """ - wx.ItemContainer defines an interface which is implemented by all - controls which have string subitems, each of which may be - selected, such as wx.ListBox, wx.CheckListBox, wx.Choice and - wx.ComboBox (which implements an extended interface deriving from - this one) - - It defines the methods for accessing the control's items and - although each of the derived classes implements them differently, - they still all conform to the same interface. - - The items in a wx.ItemContainer have (non empty) string labels - and, optionally, client data associated with them. - - """ - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxItemContainer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def Append(*args, **kwargs): - """ - Append(self, String item, PyObject clientData=None) -> int - - Adds the item to the control, associating the given data with the - item if not None. The return value is the index of the newly - added item which may be different from the last one if the - control is sorted (e.g. has wx.LB_SORT or wx.CB_SORT style). - """ - return _core.ItemContainer_Append(*args, **kwargs) - - def AppendItems(*args, **kwargs): - """ - AppendItems(self, wxArrayString strings) - - Apend several items at once to the control. Notice that calling - this method may be much faster than appending the items one by - one if you need to add a lot of items. - """ - return _core.ItemContainer_AppendItems(*args, **kwargs) - - def Insert(*args, **kwargs): - """ - Insert(self, String item, int pos, PyObject clientData=None) -> int - - Insert an item into the control before the item at the pos index, - optionally associating some data object with the item. - """ - return _core.ItemContainer_Insert(*args, **kwargs) - - def Clear(*args, **kwargs): - """ - Clear(self) - - Removes all items from the control. - """ - return _core.ItemContainer_Clear(*args, **kwargs) - - def Delete(*args, **kwargs): - """ - Delete(self, int n) - - Deletes the item at the zero-based index 'n' from the control. - Note that it is an error (signalled by a PyAssertionError - exception if enabled) to remove an item with the index negative - or greater or equal than the number of items in the control. - """ - return _core.ItemContainer_Delete(*args, **kwargs) - - def GetCount(*args, **kwargs): - """ - GetCount(self) -> int - - Returns the number of items in the control. - """ - return _core.ItemContainer_GetCount(*args, **kwargs) - - def IsEmpty(*args, **kwargs): - """ - IsEmpty(self) -> bool - - Returns True if the control is empty or False if it has some items. - """ - return _core.ItemContainer_IsEmpty(*args, **kwargs) - - def GetString(*args, **kwargs): - """ - GetString(self, int n) -> String - - Returns the label of the item with the given index. - """ - return _core.ItemContainer_GetString(*args, **kwargs) - - def GetStrings(*args, **kwargs): - """GetStrings(self) -> wxArrayString""" - return _core.ItemContainer_GetStrings(*args, **kwargs) - - def SetString(*args, **kwargs): - """ - SetString(self, int n, String s) - - Sets the label for the given item. - """ - return _core.ItemContainer_SetString(*args, **kwargs) - - def FindString(*args, **kwargs): - """ - FindString(self, String s) -> int - - Finds an item whose label matches the given string. Returns the - zero-based position of the item, or wx.NOT_FOUND if the string - was not found. - """ - return _core.ItemContainer_FindString(*args, **kwargs) - - def Select(*args, **kwargs): - """ - Select(self, int n) - - Sets the item at index 'n' to be the selected item. - """ - return _core.ItemContainer_Select(*args, **kwargs) - - SetSelection = Select - def GetSelection(*args, **kwargs): - """ - GetSelection(self) -> int - - Returns the index of the selected item or wx.NOT_FOUND if no item is selected. - """ - return _core.ItemContainer_GetSelection(*args, **kwargs) - - def GetStringSelection(*args, **kwargs): - """ - GetStringSelection(self) -> String - - Returns the label of the selected item or an empty string if no item is selected. - """ - return _core.ItemContainer_GetStringSelection(*args, **kwargs) - - def GetClientData(*args, **kwargs): - """ - GetClientData(self, int n) -> PyObject - - Returns the client data associated with the given item, (if any.) - """ - return _core.ItemContainer_GetClientData(*args, **kwargs) - - def SetClientData(*args, **kwargs): - """ - SetClientData(self, int n, PyObject clientData) - - Associate the given client data with the item at position n. - """ - return _core.ItemContainer_SetClientData(*args, **kwargs) - - -class ItemContainerPtr(ItemContainer): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ItemContainer -_core.ItemContainer_swigregister(ItemContainerPtr) - -#--------------------------------------------------------------------------- - -class ControlWithItems(Control,ItemContainer): - """ - wx.ControlWithItems combines the wx.ItemContainer class with the - wx.Control class, and is used for the base class of various - controls that have items. - """ - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxControlWithItems instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - -class ControlWithItemsPtr(ControlWithItems): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ControlWithItems -_core.ControlWithItems_swigregister(ControlWithItemsPtr) - -#--------------------------------------------------------------------------- - -class SizerItem(Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxSizerItem instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> SizerItem""" - newobj = _core.new_SizerItem(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def DeleteWindows(*args, **kwargs): - """DeleteWindows(self)""" - return _core.SizerItem_DeleteWindows(*args, **kwargs) - - def DetachSizer(*args, **kwargs): - """DetachSizer(self)""" - return _core.SizerItem_DetachSizer(*args, **kwargs) - - def GetSize(*args, **kwargs): - """GetSize(self) -> Size""" - return _core.SizerItem_GetSize(*args, **kwargs) - - def CalcMin(*args, **kwargs): - """CalcMin(self) -> Size""" - return _core.SizerItem_CalcMin(*args, **kwargs) - - def SetDimension(*args, **kwargs): - """SetDimension(self, Point pos, Size size)""" - return _core.SizerItem_SetDimension(*args, **kwargs) - - def GetMinSize(*args, **kwargs): - """GetMinSize(self) -> Size""" - return _core.SizerItem_GetMinSize(*args, **kwargs) - - def SetInitSize(*args, **kwargs): - """SetInitSize(self, int x, int y)""" - return _core.SizerItem_SetInitSize(*args, **kwargs) - - def SetRatioWH(*args, **kwargs): - """SetRatioWH(self, int width, int height)""" - return _core.SizerItem_SetRatioWH(*args, **kwargs) - - def SetRatioSize(*args, **kwargs): - """SetRatioSize(self, Size size)""" - return _core.SizerItem_SetRatioSize(*args, **kwargs) - - def SetRatio(*args, **kwargs): - """SetRatio(self, float ratio)""" - return _core.SizerItem_SetRatio(*args, **kwargs) - - def GetRatio(*args, **kwargs): - """GetRatio(self) -> float""" - return _core.SizerItem_GetRatio(*args, **kwargs) - - def IsWindow(*args, **kwargs): - """IsWindow(self) -> bool""" - return _core.SizerItem_IsWindow(*args, **kwargs) - - def IsSizer(*args, **kwargs): - """IsSizer(self) -> bool""" - return _core.SizerItem_IsSizer(*args, **kwargs) - - def IsSpacer(*args, **kwargs): - """IsSpacer(self) -> bool""" - return _core.SizerItem_IsSpacer(*args, **kwargs) - - def SetProportion(*args, **kwargs): - """SetProportion(self, int proportion)""" - return _core.SizerItem_SetProportion(*args, **kwargs) - - def GetProportion(*args, **kwargs): - """GetProportion(self) -> int""" - return _core.SizerItem_GetProportion(*args, **kwargs) - - SetOption = SetProportion - GetOption = GetProportion - def SetFlag(*args, **kwargs): - """SetFlag(self, int flag)""" - return _core.SizerItem_SetFlag(*args, **kwargs) - - def GetFlag(*args, **kwargs): - """GetFlag(self) -> int""" - return _core.SizerItem_GetFlag(*args, **kwargs) - - def SetBorder(*args, **kwargs): - """SetBorder(self, int border)""" - return _core.SizerItem_SetBorder(*args, **kwargs) - - def GetBorder(*args, **kwargs): - """GetBorder(self) -> int""" - return _core.SizerItem_GetBorder(*args, **kwargs) - - def GetWindow(*args, **kwargs): - """GetWindow(self) -> Window""" - return _core.SizerItem_GetWindow(*args, **kwargs) - - def SetWindow(*args, **kwargs): - """SetWindow(self, Window window)""" - return _core.SizerItem_SetWindow(*args, **kwargs) - - def GetSizer(*args, **kwargs): - """GetSizer(self) -> Sizer""" - return _core.SizerItem_GetSizer(*args, **kwargs) - - def SetSizer(*args, **kwargs): - """SetSizer(self, Sizer sizer)""" - return _core.SizerItem_SetSizer(*args, **kwargs) - - def GetSpacer(*args, **kwargs): - """GetSpacer(self) -> Size""" - return _core.SizerItem_GetSpacer(*args, **kwargs) - - def SetSpacer(*args, **kwargs): - """SetSpacer(self, Size size)""" - return _core.SizerItem_SetSpacer(*args, **kwargs) - - def Show(*args, **kwargs): - """Show(self, bool show)""" - return _core.SizerItem_Show(*args, **kwargs) - - def IsShown(*args, **kwargs): - """IsShown(self) -> bool""" - return _core.SizerItem_IsShown(*args, **kwargs) - - def GetPosition(*args, **kwargs): - """GetPosition(self) -> Point""" - return _core.SizerItem_GetPosition(*args, **kwargs) - - def GetUserData(*args, **kwargs): - """GetUserData(self) -> PyObject""" - return _core.SizerItem_GetUserData(*args, **kwargs) - - -class SizerItemPtr(SizerItem): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = SizerItem -_core.SizerItem_swigregister(SizerItemPtr) - -def SizerItemSpacer(*args, **kwargs): - """ - SizerItemSpacer(int width, int height, int proportion, int flag, int border, - Object userData) -> SizerItem - """ - val = _core.new_SizerItemSpacer(*args, **kwargs) - val.thisown = 1 - return val - -def SizerItemWindow(*args, **kwargs): - """ - SizerItemWindow(Window window, int proportion, int flag, int border, - Object userData) -> SizerItem - """ - val = _core.new_SizerItemWindow(*args, **kwargs) - val.thisown = 1 - return val - -def SizerItemSizer(*args, **kwargs): - """ - SizerItemSizer(Sizer sizer, int proportion, int flag, int border, - Object userData) -> SizerItem - """ - val = _core.new_SizerItemSizer(*args, **kwargs) - val.thisown = 1 - return val - -class Sizer(Object): - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def _setOORInfo(*args, **kwargs): - """_setOORInfo(self, PyObject _self)""" - return _core.Sizer__setOORInfo(*args, **kwargs) - - def Add(*args, **kwargs): - """ - Add(self, PyObject item, int proportion=0, int flag=0, int border=0, - PyObject userData=None) - """ - return _core.Sizer_Add(*args, **kwargs) - - def Insert(*args, **kwargs): - """ - Insert(self, int before, PyObject item, int proportion=0, int flag=0, - int border=0, PyObject userData=None) - """ - return _core.Sizer_Insert(*args, **kwargs) - - def Prepend(*args, **kwargs): - """ - Prepend(self, PyObject item, int proportion=0, int flag=0, int border=0, - PyObject userData=None) - """ - return _core.Sizer_Prepend(*args, **kwargs) - - def Remove(*args, **kwargs): - """Remove(self, PyObject item) -> bool""" - return _core.Sizer_Remove(*args, **kwargs) - - def _SetItemMinSize(*args, **kwargs): - """_SetItemMinSize(self, PyObject item, Size size)""" - return _core.Sizer__SetItemMinSize(*args, **kwargs) - - def AddItem(*args, **kwargs): - """AddItem(self, SizerItem item)""" - return _core.Sizer_AddItem(*args, **kwargs) - - def InsertItem(*args, **kwargs): - """InsertItem(self, size_t index, SizerItem item)""" - return _core.Sizer_InsertItem(*args, **kwargs) - - def PrependItem(*args, **kwargs): - """PrependItem(self, SizerItem item)""" - return _core.Sizer_PrependItem(*args, **kwargs) - - def AddMany(self, widgets): - for childinfo in widgets: - if type(childinfo) != type(()) or (len(childinfo) == 2 and type(childinfo[0]) == type(1)): - childinfo = (childinfo, ) - self.Add(*childinfo) - - # for backwards compatibility only, please do not use in new code - AddWindow = AddSizer = AddSpacer = Add - PrependWindow = PrependSizer = PrependSpacer = Prepend - InsertWindow = InsertSizer = InsertSpacer = Insert - RemoveWindow = RemoveSizer = RemovePos = Remove - - - def SetItemMinSize(self, item, *args): - if len(args) == 2: - return self._SetItemMinSize(item, args) - else: - return self._SetItemMinSize(item, args[0]) - - def SetDimension(*args, **kwargs): - """SetDimension(self, int x, int y, int width, int height)""" - return _core.Sizer_SetDimension(*args, **kwargs) - - def SetMinSize(*args, **kwargs): - """SetMinSize(self, Size size)""" - return _core.Sizer_SetMinSize(*args, **kwargs) - - def GetSize(*args, **kwargs): - """GetSize(self) -> Size""" - return _core.Sizer_GetSize(*args, **kwargs) - - def GetPosition(*args, **kwargs): - """GetPosition(self) -> Point""" - return _core.Sizer_GetPosition(*args, **kwargs) - - def GetMinSize(*args, **kwargs): - """GetMinSize(self) -> Size""" - return _core.Sizer_GetMinSize(*args, **kwargs) - - def GetSizeTuple(self): - return self.GetSize().asTuple() - def GetPositionTuple(self): - return self.GetPosition().asTuple() - def GetMinSizeTuple(self): - return self.GetMinSize().asTuple() - - def RecalcSizes(*args, **kwargs): - """RecalcSizes(self)""" - return _core.Sizer_RecalcSizes(*args, **kwargs) - - def CalcMin(*args, **kwargs): - """CalcMin(self) -> Size""" - return _core.Sizer_CalcMin(*args, **kwargs) - - def Layout(*args, **kwargs): - """Layout(self)""" - return _core.Sizer_Layout(*args, **kwargs) - - def Fit(*args, **kwargs): - """Fit(self, Window window) -> Size""" - return _core.Sizer_Fit(*args, **kwargs) - - def FitInside(*args, **kwargs): - """FitInside(self, Window window)""" - return _core.Sizer_FitInside(*args, **kwargs) - - def SetSizeHints(*args, **kwargs): - """SetSizeHints(self, Window window)""" - return _core.Sizer_SetSizeHints(*args, **kwargs) - - def SetVirtualSizeHints(*args, **kwargs): - """SetVirtualSizeHints(self, Window window)""" - return _core.Sizer_SetVirtualSizeHints(*args, **kwargs) - - def Clear(*args, **kwargs): - """Clear(self, bool delete_windows=False)""" - return _core.Sizer_Clear(*args, **kwargs) - - def DeleteWindows(*args, **kwargs): - """DeleteWindows(self)""" - return _core.Sizer_DeleteWindows(*args, **kwargs) - - def GetChildren(*args, **kwargs): - """GetChildren(self) -> PyObject""" - return _core.Sizer_GetChildren(*args, **kwargs) - - def Show(*args, **kwargs): - """Show(self, PyObject item, bool show=True)""" - return _core.Sizer_Show(*args, **kwargs) - - def Hide(*args, **kwargs): - """Hide(self, PyObject item)""" - return _core.Sizer_Hide(*args, **kwargs) - - def IsShown(*args, **kwargs): - """IsShown(self, PyObject item) -> bool""" - return _core.Sizer_IsShown(*args, **kwargs) - - def ShowItems(*args, **kwargs): - """ShowItems(self, bool show)""" - return _core.Sizer_ShowItems(*args, **kwargs) - - -class SizerPtr(Sizer): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Sizer -_core.Sizer_swigregister(SizerPtr) - -class PySizer(Sizer): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPySizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> PySizer""" - newobj = _core.new_PySizer(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setCallbackInfo(self, PySizer);self._setOORInfo(self) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _core.PySizer__setCallbackInfo(*args, **kwargs) - - -class PySizerPtr(PySizer): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PySizer -_core.PySizer_swigregister(PySizerPtr) - -#--------------------------------------------------------------------------- - -class BoxSizer(Sizer): - def __repr__(self): - return "<%s.%s; proxy of C++ wxBoxSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int orient=HORIZONTAL) -> BoxSizer""" - newobj = _core.new_BoxSizer(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def GetOrientation(*args, **kwargs): - """GetOrientation(self) -> int""" - return _core.BoxSizer_GetOrientation(*args, **kwargs) - - def SetOrientation(*args, **kwargs): - """SetOrientation(self, int orient)""" - return _core.BoxSizer_SetOrientation(*args, **kwargs) - - def RecalcSizes(*args, **kwargs): - """RecalcSizes(self)""" - return _core.BoxSizer_RecalcSizes(*args, **kwargs) - - def CalcMin(*args, **kwargs): - """CalcMin(self) -> Size""" - return _core.BoxSizer_CalcMin(*args, **kwargs) - - -class BoxSizerPtr(BoxSizer): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = BoxSizer -_core.BoxSizer_swigregister(BoxSizerPtr) - -#--------------------------------------------------------------------------- - -class StaticBoxSizer(BoxSizer): - def __repr__(self): - return "<%s.%s; proxy of C++ wxStaticBoxSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, wxStaticBox box, int orient=HORIZONTAL) -> StaticBoxSizer""" - newobj = _core.new_StaticBoxSizer(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def GetStaticBox(*args, **kwargs): - """GetStaticBox(self) -> wxStaticBox""" - return _core.StaticBoxSizer_GetStaticBox(*args, **kwargs) - - def RecalcSizes(*args, **kwargs): - """RecalcSizes(self)""" - return _core.StaticBoxSizer_RecalcSizes(*args, **kwargs) - - def CalcMin(*args, **kwargs): - """CalcMin(self) -> Size""" - return _core.StaticBoxSizer_CalcMin(*args, **kwargs) - - -class StaticBoxSizerPtr(StaticBoxSizer): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = StaticBoxSizer -_core.StaticBoxSizer_swigregister(StaticBoxSizerPtr) - -#--------------------------------------------------------------------------- - -class GridSizer(Sizer): - def __repr__(self): - return "<%s.%s; proxy of C++ wxGridSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int rows=1, int cols=0, int vgap=0, int hgap=0) -> GridSizer""" - newobj = _core.new_GridSizer(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def RecalcSizes(*args, **kwargs): - """RecalcSizes(self)""" - return _core.GridSizer_RecalcSizes(*args, **kwargs) - - def CalcMin(*args, **kwargs): - """CalcMin(self) -> Size""" - return _core.GridSizer_CalcMin(*args, **kwargs) - - def SetCols(*args, **kwargs): - """SetCols(self, int cols)""" - return _core.GridSizer_SetCols(*args, **kwargs) - - def SetRows(*args, **kwargs): - """SetRows(self, int rows)""" - return _core.GridSizer_SetRows(*args, **kwargs) - - def SetVGap(*args, **kwargs): - """SetVGap(self, int gap)""" - return _core.GridSizer_SetVGap(*args, **kwargs) - - def SetHGap(*args, **kwargs): - """SetHGap(self, int gap)""" - return _core.GridSizer_SetHGap(*args, **kwargs) - - def GetCols(*args, **kwargs): - """GetCols(self) -> int""" - return _core.GridSizer_GetCols(*args, **kwargs) - - def GetRows(*args, **kwargs): - """GetRows(self) -> int""" - return _core.GridSizer_GetRows(*args, **kwargs) - - def GetVGap(*args, **kwargs): - """GetVGap(self) -> int""" - return _core.GridSizer_GetVGap(*args, **kwargs) - - def GetHGap(*args, **kwargs): - """GetHGap(self) -> int""" - return _core.GridSizer_GetHGap(*args, **kwargs) - - -class GridSizerPtr(GridSizer): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = GridSizer -_core.GridSizer_swigregister(GridSizerPtr) - -#--------------------------------------------------------------------------- - -FLEX_GROWMODE_NONE = _core.FLEX_GROWMODE_NONE -FLEX_GROWMODE_SPECIFIED = _core.FLEX_GROWMODE_SPECIFIED -FLEX_GROWMODE_ALL = _core.FLEX_GROWMODE_ALL -class FlexGridSizer(GridSizer): - def __repr__(self): - return "<%s.%s; proxy of C++ wxFlexGridSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int rows=1, int cols=0, int vgap=0, int hgap=0) -> FlexGridSizer""" - newobj = _core.new_FlexGridSizer(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def RecalcSizes(*args, **kwargs): - """RecalcSizes(self)""" - return _core.FlexGridSizer_RecalcSizes(*args, **kwargs) - - def CalcMin(*args, **kwargs): - """CalcMin(self) -> Size""" - return _core.FlexGridSizer_CalcMin(*args, **kwargs) - - def AddGrowableRow(*args, **kwargs): - """AddGrowableRow(self, size_t idx, int proportion=0)""" - return _core.FlexGridSizer_AddGrowableRow(*args, **kwargs) - - def RemoveGrowableRow(*args, **kwargs): - """RemoveGrowableRow(self, size_t idx)""" - return _core.FlexGridSizer_RemoveGrowableRow(*args, **kwargs) - - def AddGrowableCol(*args, **kwargs): - """AddGrowableCol(self, size_t idx, int proportion=0)""" - return _core.FlexGridSizer_AddGrowableCol(*args, **kwargs) - - def RemoveGrowableCol(*args, **kwargs): - """RemoveGrowableCol(self, size_t idx)""" - return _core.FlexGridSizer_RemoveGrowableCol(*args, **kwargs) - - def SetFlexibleDirection(*args, **kwargs): - """SetFlexibleDirection(self, int direction)""" - return _core.FlexGridSizer_SetFlexibleDirection(*args, **kwargs) - - def GetFlexibleDirection(*args, **kwargs): - """GetFlexibleDirection(self) -> int""" - return _core.FlexGridSizer_GetFlexibleDirection(*args, **kwargs) - - def SetNonFlexibleGrowMode(*args, **kwargs): - """SetNonFlexibleGrowMode(self, int mode)""" - return _core.FlexGridSizer_SetNonFlexibleGrowMode(*args, **kwargs) - - def GetNonFlexibleGrowMode(*args, **kwargs): - """GetNonFlexibleGrowMode(self) -> int""" - return _core.FlexGridSizer_GetNonFlexibleGrowMode(*args, **kwargs) - - def GetRowHeights(*args, **kwargs): - """GetRowHeights(self) -> wxArrayInt""" - return _core.FlexGridSizer_GetRowHeights(*args, **kwargs) - - def GetColWidths(*args, **kwargs): - """GetColWidths(self) -> wxArrayInt""" - return _core.FlexGridSizer_GetColWidths(*args, **kwargs) - - -class FlexGridSizerPtr(FlexGridSizer): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = FlexGridSizer -_core.FlexGridSizer_swigregister(FlexGridSizerPtr) - -#--------------------------------------------------------------------------- - -class GBPosition(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxGBPosition instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int row=0, int col=0) -> GBPosition""" - newobj = _core.new_GBPosition(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetRow(*args, **kwargs): - """GetRow(self) -> int""" - return _core.GBPosition_GetRow(*args, **kwargs) - - def GetCol(*args, **kwargs): - """GetCol(self) -> int""" - return _core.GBPosition_GetCol(*args, **kwargs) - - def SetRow(*args, **kwargs): - """SetRow(self, int row)""" - return _core.GBPosition_SetRow(*args, **kwargs) - - def SetCol(*args, **kwargs): - """SetCol(self, int col)""" - return _core.GBPosition_SetCol(*args, **kwargs) - - def __eq__(*args, **kwargs): - """__eq__(self, GBPosition other) -> bool""" - return _core.GBPosition___eq__(*args, **kwargs) - - def __ne__(*args, **kwargs): - """__ne__(self, GBPosition other) -> bool""" - return _core.GBPosition___ne__(*args, **kwargs) - - def Set(*args, **kwargs): - """Set(self, int row=0, int col=0)""" - return _core.GBPosition_Set(*args, **kwargs) - - def Get(*args, **kwargs): - """Get(self) -> PyObject""" - return _core.GBPosition_Get(*args, **kwargs) - - asTuple = Get - def __str__(self): return str(self.Get()) - def __repr__(self): return 'wx.GBPosition'+str(self.Get()) - def __len__(self): return len(self.Get()) - def __getitem__(self, index): return self.Get()[index] - def __setitem__(self, index, val): - if index == 0: self.SetRow(val) - elif index == 1: self.SetCol(val) - else: raise IndexError - def __nonzero__(self): return self.Get() != (0,0) - __safe_for_unpickling__ = True - def __reduce__(self): return (wx.GBPosition, self.Get()) - - row = property(GetRow, SetRow) - col = property(GetCol, SetCol) - - -class GBPositionPtr(GBPosition): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = GBPosition -_core.GBPosition_swigregister(GBPositionPtr) - -class GBSpan(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxGBSpan instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int rowspan=1, int colspan=1) -> GBSpan""" - newobj = _core.new_GBSpan(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetRowspan(*args, **kwargs): - """GetRowspan(self) -> int""" - return _core.GBSpan_GetRowspan(*args, **kwargs) - - def GetColspan(*args, **kwargs): - """GetColspan(self) -> int""" - return _core.GBSpan_GetColspan(*args, **kwargs) - - def SetRowspan(*args, **kwargs): - """SetRowspan(self, int rowspan)""" - return _core.GBSpan_SetRowspan(*args, **kwargs) - - def SetColspan(*args, **kwargs): - """SetColspan(self, int colspan)""" - return _core.GBSpan_SetColspan(*args, **kwargs) - - def __eq__(*args, **kwargs): - """__eq__(self, GBSpan other) -> bool""" - return _core.GBSpan___eq__(*args, **kwargs) - - def __ne__(*args, **kwargs): - """__ne__(self, GBSpan other) -> bool""" - return _core.GBSpan___ne__(*args, **kwargs) - - def Set(*args, **kwargs): - """Set(self, int rowspan=1, int colspan=1)""" - return _core.GBSpan_Set(*args, **kwargs) - - def Get(*args, **kwargs): - """Get(self) -> PyObject""" - return _core.GBSpan_Get(*args, **kwargs) - - asTuple = Get - def __str__(self): return str(self.Get()) - def __repr__(self): return 'wx.GBSpan'+str(self.Get()) - def __len__(self): return len(self.Get()) - def __getitem__(self, index): return self.Get()[index] - def __setitem__(self, index, val): - if index == 0: self.SetRowspan(val) - elif index == 1: self.SetColspan(val) - else: raise IndexError - def __nonzero__(self): return self.Get() != (0,0) - __safe_for_unpickling__ = True - def __reduce__(self): return (wx.GBSpan, self.Get()) - - rowspan = property(GetRowspan, SetRowspan) - colspan = property(GetColspan, SetColspan) - - -class GBSpanPtr(GBSpan): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = GBSpan -_core.GBSpan_swigregister(GBSpanPtr) - -class GBSizerItem(SizerItem): - def __repr__(self): - return "<%s.%s; proxy of C++ wxGBSizerItem instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> GBSizerItem""" - newobj = _core.new_GBSizerItem(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetPos(*args, **kwargs): - """GetPos(self) -> GBPosition""" - return _core.GBSizerItem_GetPos(*args, **kwargs) - - def GetPosTuple(self): return self.GetPos().Get() - def GetSpan(*args, **kwargs): - """GetSpan(self) -> GBSpan""" - return _core.GBSizerItem_GetSpan(*args, **kwargs) - - def GetSpanTuple(self): return self.GetSpan().Get() - def SetPos(*args, **kwargs): - """SetPos(self, GBPosition pos) -> bool""" - return _core.GBSizerItem_SetPos(*args, **kwargs) - - def SetSpan(*args, **kwargs): - """SetSpan(self, GBSpan span) -> bool""" - return _core.GBSizerItem_SetSpan(*args, **kwargs) - - def Intersects(*args): - """ - Intersects(self, GBSizerItem other) -> bool - Intersects(self, GBPosition pos, GBSpan span) -> bool - """ - return _core.GBSizerItem_Intersects(*args) - - def GetEndPos(*args, **kwargs): - """GetEndPos(self, int row, int col)""" - return _core.GBSizerItem_GetEndPos(*args, **kwargs) - - def GetGBSizer(*args, **kwargs): - """GetGBSizer(self) -> GridBagSizer""" - return _core.GBSizerItem_GetGBSizer(*args, **kwargs) - - def SetGBSizer(*args, **kwargs): - """SetGBSizer(self, GridBagSizer sizer)""" - return _core.GBSizerItem_SetGBSizer(*args, **kwargs) - - -class GBSizerItemPtr(GBSizerItem): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = GBSizerItem -_core.GBSizerItem_swigregister(GBSizerItemPtr) -DefaultSpan = cvar.DefaultSpan - -def GBSizerItemWindow(*args, **kwargs): - """ - GBSizerItemWindow(Window window, GBPosition pos, GBSpan span, int flag, - int border, Object userData) -> GBSizerItem - """ - val = _core.new_GBSizerItemWindow(*args, **kwargs) - val.thisown = 1 - return val - -def GBSizerItemSizer(*args, **kwargs): - """ - GBSizerItemSizer(Sizer sizer, GBPosition pos, GBSpan span, int flag, - int border, Object userData) -> GBSizerItem - """ - val = _core.new_GBSizerItemSizer(*args, **kwargs) - val.thisown = 1 - return val - -def GBSizerItemSpacer(*args, **kwargs): - """ - GBSizerItemSpacer(int width, int height, GBPosition pos, GBSpan span, - int flag, int border, Object userData) -> GBSizerItem - """ - val = _core.new_GBSizerItemSpacer(*args, **kwargs) - val.thisown = 1 - return val - -class GridBagSizer(FlexGridSizer): - def __repr__(self): - return "<%s.%s; proxy of C++ wxGridBagSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int vgap=0, int hgap=0) -> GridBagSizer""" - newobj = _core.new_GridBagSizer(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def Add(*args, **kwargs): - """ - Add(self, PyObject item, GBPosition pos, GBSpan span=DefaultSpan, - int flag=0, int border=0, PyObject userData=None) -> bool - """ - return _core.GridBagSizer_Add(*args, **kwargs) - - def AddItem(*args, **kwargs): - """AddItem(self, GBSizerItem item) -> bool""" - return _core.GridBagSizer_AddItem(*args, **kwargs) - - def GetEmptyCellSize(*args, **kwargs): - """GetEmptyCellSize(self) -> Size""" - return _core.GridBagSizer_GetEmptyCellSize(*args, **kwargs) - - def SetEmptyCellSize(*args, **kwargs): - """SetEmptyCellSize(self, Size sz)""" - return _core.GridBagSizer_SetEmptyCellSize(*args, **kwargs) - - def GetItemPosition(*args): - """ - GetItemPosition(self, Window window) -> GBPosition - GetItemPosition(self, Sizer sizer) -> GBPosition - GetItemPosition(self, size_t index) -> GBPosition - """ - return _core.GridBagSizer_GetItemPosition(*args) - - def SetItemPosition(*args): - """ - SetItemPosition(self, Window window, GBPosition pos) -> bool - SetItemPosition(self, Sizer sizer, GBPosition pos) -> bool - SetItemPosition(self, size_t index, GBPosition pos) -> bool - """ - return _core.GridBagSizer_SetItemPosition(*args) - - def GetItemSpan(*args): - """ - GetItemSpan(self, Window window) -> GBSpan - GetItemSpan(self, Sizer sizer) -> GBSpan - GetItemSpan(self, size_t index) -> GBSpan - """ - return _core.GridBagSizer_GetItemSpan(*args) - - def SetItemSpan(*args): - """ - SetItemSpan(self, Window window, GBSpan span) -> bool - SetItemSpan(self, Sizer sizer, GBSpan span) -> bool - SetItemSpan(self, size_t index, GBSpan span) -> bool - """ - return _core.GridBagSizer_SetItemSpan(*args) - - def FindItem(*args): - """ - FindItem(self, Window window) -> GBSizerItem - FindItem(self, Sizer sizer) -> GBSizerItem - """ - return _core.GridBagSizer_FindItem(*args) - - def FindItemAtPosition(*args, **kwargs): - """FindItemAtPosition(self, GBPosition pos) -> GBSizerItem""" - return _core.GridBagSizer_FindItemAtPosition(*args, **kwargs) - - def FindItemAtPoint(*args, **kwargs): - """FindItemAtPoint(self, Point pt) -> GBSizerItem""" - return _core.GridBagSizer_FindItemAtPoint(*args, **kwargs) - - def FindItemWithData(*args, **kwargs): - """FindItemWithData(self, Object userData) -> GBSizerItem""" - return _core.GridBagSizer_FindItemWithData(*args, **kwargs) - - def RecalcSizes(*args, **kwargs): - """RecalcSizes(self)""" - return _core.GridBagSizer_RecalcSizes(*args, **kwargs) - - def CalcMin(*args, **kwargs): - """CalcMin(self) -> Size""" - return _core.GridBagSizer_CalcMin(*args, **kwargs) - - def CheckForIntersection(*args): - """ - CheckForIntersection(self, GBSizerItem item, GBSizerItem excludeItem=None) -> bool - CheckForIntersection(self, GBPosition pos, GBSpan span, GBSizerItem excludeItem=None) -> bool - """ - return _core.GridBagSizer_CheckForIntersection(*args) - - -class GridBagSizerPtr(GridBagSizer): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = GridBagSizer -_core.GridBagSizer_swigregister(GridBagSizerPtr) - -#--------------------------------------------------------------------------- - -Left = _core.Left -Top = _core.Top -Right = _core.Right -Bottom = _core.Bottom -Width = _core.Width -Height = _core.Height -Centre = _core.Centre -Center = _core.Center -CentreX = _core.CentreX -CentreY = _core.CentreY -Unconstrained = _core.Unconstrained -AsIs = _core.AsIs -PercentOf = _core.PercentOf -Above = _core.Above -Below = _core.Below -LeftOf = _core.LeftOf -RightOf = _core.RightOf -SameAs = _core.SameAs -Absolute = _core.Absolute -class IndividualLayoutConstraint(Object): - """ - Objects of this class are stored in the wx.LayoutConstraint class as one of - eight possible constraints that a window can be involved in. You will never - need to create an instance of wx.IndividualLayoutConstraint, rather you should - use create a wx.LayoutContstraints instance and use the individual contstraints - that it contains. - - Constraints are initially set to have the relationship wx.Unconstrained, which - means that their values should be calculated by looking at known constraints. - - The Edge specifies the type of edge or dimension of a window. - - Edges - - wx.Left The left edge. - wx.Top The top edge. - wx.Right The right edge. - wx.Bottom The bottom edge. - wx.CentreX The x-coordinate of the centre of the window. - wx.CentreY The y-coordinate of the centre of the window. - - - The Relationship specifies the relationship that this edge or dimension has - with another specified edge or dimension. Normally, the user doesn't use these - directly because functions such as Below and RightOf are a convenience for - using the more general Set function. - - Relationships - - wx.Unconstrained The edge or dimension is unconstrained - (the default for edges.) - wx.AsIs The edge or dimension is to be taken from the current - window position or size (the default for dimensions.) - wx.Above The edge should be above another edge. - wx.Below The edge should be below another edge. - wx.LeftOf The edge should be to the left of another edge. - wx.RightOf The edge should be to the right of another edge. - wx.SameAs The edge or dimension should be the same as another edge - or dimension. - wx.PercentOf The edge or dimension should be a percentage of another - edge or dimension. - wx.Absolute The edge or dimension should be a given absolute value. - - - """ - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxIndividualLayoutConstraint instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def Set(*args, **kwargs): - """Set(self, int rel, Window otherW, int otherE, int val=0, int marg=wxLAYOUT_DEFAULT_MARGIN)""" - return _core.IndividualLayoutConstraint_Set(*args, **kwargs) - - def LeftOf(*args, **kwargs): - """ - LeftOf(self, Window sibling, int marg=0) - - Sibling relationship - """ - return _core.IndividualLayoutConstraint_LeftOf(*args, **kwargs) - - def RightOf(*args, **kwargs): - """ - RightOf(self, Window sibling, int marg=0) - - Sibling relationship - """ - return _core.IndividualLayoutConstraint_RightOf(*args, **kwargs) - - def Above(*args, **kwargs): - """ - Above(self, Window sibling, int marg=0) - - Sibling relationship - """ - return _core.IndividualLayoutConstraint_Above(*args, **kwargs) - - def Below(*args, **kwargs): - """ - Below(self, Window sibling, int marg=0) - - Sibling relationship - """ - return _core.IndividualLayoutConstraint_Below(*args, **kwargs) - - def SameAs(*args, **kwargs): - """ - SameAs(self, Window otherW, int edge, int marg=0) - - 'Same edge' alignment - """ - return _core.IndividualLayoutConstraint_SameAs(*args, **kwargs) - - def PercentOf(*args, **kwargs): - """ - PercentOf(self, Window otherW, int wh, int per) - - The edge is a percentage of the other window's edge - """ - return _core.IndividualLayoutConstraint_PercentOf(*args, **kwargs) - - def Absolute(*args, **kwargs): - """ - Absolute(self, int val) - - Edge has absolute value - """ - return _core.IndividualLayoutConstraint_Absolute(*args, **kwargs) - - def Unconstrained(*args, **kwargs): - """ - Unconstrained(self) - - Dimension is unconstrained - """ - return _core.IndividualLayoutConstraint_Unconstrained(*args, **kwargs) - - def AsIs(*args, **kwargs): - """ - AsIs(self) - - Dimension is 'as is' (use current size settings) - """ - return _core.IndividualLayoutConstraint_AsIs(*args, **kwargs) - - def GetOtherWindow(*args, **kwargs): - """GetOtherWindow(self) -> Window""" - return _core.IndividualLayoutConstraint_GetOtherWindow(*args, **kwargs) - - def GetMyEdge(*args, **kwargs): - """GetMyEdge(self) -> int""" - return _core.IndividualLayoutConstraint_GetMyEdge(*args, **kwargs) - - def SetEdge(*args, **kwargs): - """SetEdge(self, int which)""" - return _core.IndividualLayoutConstraint_SetEdge(*args, **kwargs) - - def SetValue(*args, **kwargs): - """SetValue(self, int v)""" - return _core.IndividualLayoutConstraint_SetValue(*args, **kwargs) - - def GetMargin(*args, **kwargs): - """GetMargin(self) -> int""" - return _core.IndividualLayoutConstraint_GetMargin(*args, **kwargs) - - def SetMargin(*args, **kwargs): - """SetMargin(self, int m)""" - return _core.IndividualLayoutConstraint_SetMargin(*args, **kwargs) - - def GetValue(*args, **kwargs): - """GetValue(self) -> int""" - return _core.IndividualLayoutConstraint_GetValue(*args, **kwargs) - - def GetPercent(*args, **kwargs): - """GetPercent(self) -> int""" - return _core.IndividualLayoutConstraint_GetPercent(*args, **kwargs) - - def GetOtherEdge(*args, **kwargs): - """GetOtherEdge(self) -> int""" - return _core.IndividualLayoutConstraint_GetOtherEdge(*args, **kwargs) - - def GetDone(*args, **kwargs): - """GetDone(self) -> bool""" - return _core.IndividualLayoutConstraint_GetDone(*args, **kwargs) - - def SetDone(*args, **kwargs): - """SetDone(self, bool d)""" - return _core.IndividualLayoutConstraint_SetDone(*args, **kwargs) - - def GetRelationship(*args, **kwargs): - """GetRelationship(self) -> int""" - return _core.IndividualLayoutConstraint_GetRelationship(*args, **kwargs) - - def SetRelationship(*args, **kwargs): - """SetRelationship(self, int r)""" - return _core.IndividualLayoutConstraint_SetRelationship(*args, **kwargs) - - def ResetIfWin(*args, **kwargs): - """ - ResetIfWin(self, Window otherW) -> bool - - Reset constraint if it mentions otherWin - """ - return _core.IndividualLayoutConstraint_ResetIfWin(*args, **kwargs) - - def SatisfyConstraint(*args, **kwargs): - """ - SatisfyConstraint(self, LayoutConstraints constraints, Window win) -> bool - - Try to satisfy constraint - """ - return _core.IndividualLayoutConstraint_SatisfyConstraint(*args, **kwargs) - - def GetEdge(*args, **kwargs): - """ - GetEdge(self, int which, Window thisWin, Window other) -> int - - Get the value of this edge or dimension, or if this - is not determinable, -1. - """ - return _core.IndividualLayoutConstraint_GetEdge(*args, **kwargs) - - -class IndividualLayoutConstraintPtr(IndividualLayoutConstraint): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = IndividualLayoutConstraint -_core.IndividualLayoutConstraint_swigregister(IndividualLayoutConstraintPtr) - -class LayoutConstraints(Object): - """ - Note: constraints are now deprecated and you should use sizers instead. - - Objects of this class can be associated with a window to define its layout - constraints, with respect to siblings or its parent. - - The class consists of the following eight constraints of class - wx.IndividualLayoutConstraint, some or all of which should be accessed - directly to set the appropriate constraints. - - * left: represents the left hand edge of the window - * right: represents the right hand edge of the window - * top: represents the top edge of the window - * bottom: represents the bottom edge of the window - * width: represents the width of the window - * height: represents the height of the window - * centreX: represents the horizontal centre point of the window - * centreY: represents the vertical centre point of the window - - Most constraints are initially set to have the relationship wxUnconstrained, - which means that their values should be calculated by looking at known - constraints. The exceptions are width and height, which are set to wxAsIs to - ensure that if the user does not specify a constraint, the existing width and - height will be used, to be compatible with panel items which often have take a - default size. If the constraint is wxAsIs, the dimension will not be changed. - - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxLayoutConstraints instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - left = property(_core.LayoutConstraints_left_get) - top = property(_core.LayoutConstraints_top_get) - right = property(_core.LayoutConstraints_right_get) - bottom = property(_core.LayoutConstraints_bottom_get) - width = property(_core.LayoutConstraints_width_get) - height = property(_core.LayoutConstraints_height_get) - centreX = property(_core.LayoutConstraints_centreX_get) - centreY = property(_core.LayoutConstraints_centreY_get) - def __init__(self, *args, **kwargs): - """__init__(self) -> LayoutConstraints""" - newobj = _core.new_LayoutConstraints(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def SatisfyConstraints(*args, **kwargs): - """SatisfyConstraints(Window win) -> (areSatisfied, noChanges)""" - return _core.LayoutConstraints_SatisfyConstraints(*args, **kwargs) - - def AreSatisfied(*args, **kwargs): - """AreSatisfied(self) -> bool""" - return _core.LayoutConstraints_AreSatisfied(*args, **kwargs) - - -class LayoutConstraintsPtr(LayoutConstraints): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = LayoutConstraints -_core.LayoutConstraints_swigregister(LayoutConstraintsPtr) - -#---------------------------------------------------------------------------- - -# Use Python's bool constants if available, make some if not -try: - True -except NameError: - __builtins__.True = 1==1 - __builtins__.False = 1==0 - def bool(value): return not not value - __builtins__.bool = bool - - - -# workarounds for bad wxRTTI names -__wxPyPtrTypeMap['wxGauge95'] = 'wxGauge' -__wxPyPtrTypeMap['wxSlider95'] = 'wxSlider' -__wxPyPtrTypeMap['wxStatusBar95'] = 'wxStatusBar' - - -#---------------------------------------------------------------------------- -# Load version numbers from __version__... Ensure that major and minor -# versions are the same for both wxPython and wxWindows. - -from __version__ import * -__version__ = VERSION_STRING - -assert MAJOR_VERSION == _core.MAJOR_VERSION, "wxPython/wxWindows version mismatch" -assert MINOR_VERSION == _core.MINOR_VERSION, "wxPython/wxWindows version mismatch" -if RELEASE_VERSION != _core.RELEASE_VERSION: - import warnings - warnings.warn("wxPython/wxWindows release number mismatch") - -#---------------------------------------------------------------------------- - -class PyDeadObjectError(AttributeError): - pass - -class _wxPyDeadObject(object): - """ - Instances of wx objects that are OOR capable will have their __class__ - changed to this class when the C++ object is deleted. This should help - prevent crashes due to referencing a bogus C++ pointer. - """ - reprStr = "wxPython wrapper for DELETED %s object! (The C++ object no longer exists.)" - attrStr = "The C++ part of the %s object has been deleted, attribute access no longer allowed." - - def __repr__(self): - if not hasattr(self, "_name"): - self._name = "[unknown]" - return self.reprStr % self._name - - def __getattr__(self, *args): - if not hasattr(self, "_name"): - self._name = "[unknown]" - raise PyDeadObjectError(self.attrStr % self._name) - - def __nonzero__(self): - return 0 - - - -class PyUnbornObjectError(AttributeError): - pass - -class _wxPyUnbornObject(object): - """ - Some stock objects are created when the wx.core module is - imported, but their C++ instance is not created until the wx.App - object is created and initialized. These object instances will - temporarily have their __class__ changed to this class so an - exception will be raised if they are used before the C++ instance - is ready. - """ - - reprStr = "wxPython wrapper for UNBORN object! (The C++ object is not initialized yet.)" - attrStr = "The C++ part of this object has not been initialized, attribute access not allowed." - - def __repr__(self): - #if not hasattr(self, "_name"): - # self._name = "[unknown]" - return self.reprStr #% self._name - - def __getattr__(self, *args): - #if not hasattr(self, "_name"): - # self._name = "[unknown]" - raise PyUnbornObjectError(self.attrStr) # % self._name ) - - def __nonzero__(self): - return 0 - - -#---------------------------------------------------------------------------- -_wxPyCallAfterId = None - -def CallAfter(callable, *args, **kw): - """ - Call the specified function after the current and pending event - handlers have been completed. This is also good for making GUI - method calls from non-GUI threads. - """ - app = wx.GetApp() - assert app, 'No wxApp created yet' - - global _wxPyCallAfterId - if _wxPyCallAfterId is None: - _wxPyCallAfterId = wx.NewEventType() - app.Connect(-1, -1, _wxPyCallAfterId, - lambda event: event.callable(*event.args, **event.kw) ) - evt = wx.PyEvent() - evt.SetEventType(_wxPyCallAfterId) - evt.callable = callable - evt.args = args - evt.kw = kw - wx.PostEvent(app, evt) - - -#---------------------------------------------------------------------------- - - -class FutureCall: - """ - A convenience class for wx.Timer, that calls the given callable - object once after the given amount of milliseconds, passing any - positional or keyword args. The return value of the callable is - availbale after it has been run with the GetResult method. - - If you don't need to get the return value or restart the timer - then there is no need to hold a reference to this object. It will - hold a reference to itself while the timer is running (the timer - has a reference to self.Notify) but the cycle will be broken when - the timer completes, automatically cleaning up the wx.FutureCall - object. - """ - def __init__(self, millis, callable, *args, **kwargs): - self.millis = millis - self.callable = callable - self.SetArgs(*args, **kwargs) - self.runCount = 0 - self.running = False - self.hasRun = False - self.result = None - self.timer = None - self.Start() - - def __del__(self): - self.Stop() - - - def Start(self, millis=None, *args, **kwargs): - """ - (Re)start the timer - """ - self.hasRun = False - if millis is not None: - self.millis = millis - if args or kwargs: - self.SetArgs(*args, **kwargs) - self.Stop() - self.timer = wx.PyTimer(self.Notify) - self.timer.Start(self.millis, wx.TIMER_ONE_SHOT) - self.running = True - Restart = Start - - - def Stop(self): - """ - Stop and destroy the timer. - """ - if self.timer is not None: - self.timer.Stop() - self.timer = None - - - def GetInterval(self): - if self.timer is not None: - return self.timer.GetInterval() - else: - return 0 - - - def IsRunning(self): - return self.timer is not None and self.timer.IsRunning() - - - def SetArgs(self, *args, **kwargs): - """ - (Re)set the args passed to the callable object. This is - useful in conjunction with Restart if you want to schedule a - new call to the same callable object but with different - parameters. - """ - self.args = args - self.kwargs = kwargs - - - def HasRun(self): - return self.hasRun - - def GetResult(self): - return self.result - - def Notify(self): - """ - The timer has expired so call the callable. - """ - if self.callable and getattr(self.callable, 'im_self', True): - self.runCount += 1 - self.running = False - self.result = self.callable(*self.args, **self.kwargs) - self.hasRun = True - if not self.running: - # if it wasn't restarted, then cleanup - wx.CallAfter(self.Stop) - - - -#---------------------------------------------------------------------------- -# Control which items in this module should be documented by epydoc. -# We allow only classes and functions, which will help reduce the size -# of the docs by filtering out the zillions of constants, EVT objects, -# and etc that don't make much sense by themselves, but are instead -# documented (or will be) as part of the classes/functions/methods -# where they should be used. - -def __docfilter__(name): - import types - obj = globals().get(name, None) - if type(obj) not in [type, types.ClassType, types.FunctionType, types.BuiltinFunctionType]: - return False - if name.startswith('_') or name.endswith('Ptr') or name.startswith('EVT'): - return False - return True - -#---------------------------------------------------------------------------- -#---------------------------------------------------------------------------- - -# Import other modules in this package that should show up in the -# "core" wx namespace -from gdi import * -from windows import * -from controls import * -from misc import * - - -# Fixup the stock objects since they can't be used yet. (They will be -# restored in wx.PyApp.OnInit.) -_core._wxPyFixStockObjects() - -#---------------------------------------------------------------------------- -#---------------------------------------------------------------------------- - - diff --git a/wxPython/src/msw/core_wrap.cpp b/wxPython/src/msw/core_wrap.cpp deleted file mode 100644 index bf1bc7b801..0000000000 --- a/wxPython/src/msw/core_wrap.cpp +++ /dev/null @@ -1,43565 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.22 - * - * This file is not intended to be easily readable and contains a number of - * coding conventions designed to improve portability and efficiency. Do not make - * changes to this file unless you know what you are doing--modify the SWIG - * interface file instead. - * ----------------------------------------------------------------------------- */ - -#define SWIGPYTHON -#define SWIG_NOINCLUDE - -#ifdef __cplusplus -template class SwigValueWrapper { - T *tt; -public: - SwigValueWrapper() : tt(0) { } - SwigValueWrapper(const SwigValueWrapper& rhs) : tt(new T(*rhs.tt)) { } - SwigValueWrapper(const T& t) : tt(new T(t)) { } - ~SwigValueWrapper() { delete tt; } - SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } - operator T&() const { return *tt; } - T *operator&() { return tt; } -private: - SwigValueWrapper& operator=(const SwigValueWrapper& rhs); -}; -#endif - - -#include "Python.h" - -/*************************************************************** -*- c -*- - * python/precommon.swg - * - * Rename all exported symbols from common.swg, to avoid symbol - * clashes if multiple interpreters are included - * - ************************************************************************/ - -#define SWIG_TypeRegister SWIG_Python_TypeRegister -#define SWIG_TypeCheck SWIG_Python_TypeCheck -#define SWIG_TypeCast SWIG_Python_TypeCast -#define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast -#define SWIG_TypeName SWIG_Python_TypeName -#define SWIG_TypeQuery SWIG_Python_TypeQuery -#define SWIG_TypeClientData SWIG_Python_TypeClientData -#define SWIG_PackData SWIG_Python_PackData -#define SWIG_UnpackData SWIG_Python_UnpackData - - -/*********************************************************************** - * common.swg for wxPython - * - * Include only the function prototypes and such from SWIG's common.swg, - * but not the runtime functions themselves. This helps keep the - * wrapper files clean of unnecessary stuff that is in the libpy.c file - * anyway. - * - ************************************************************************/ - -#include - -#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) -# if defined(_MSC_VER) || defined(__GNUC__) -# if defined(STATIC_LINKED) -# define SWIGEXPORT(a) a -# define SWIGIMPORT(a) extern a -# else -# define SWIGEXPORT(a) __declspec(dllexport) a -# define SWIGIMPORT(a) extern a -# endif -# else -# if defined(__BORLANDC__) -# define SWIGEXPORT(a) a _export -# define SWIGIMPORT(a) a _export -# else -# define SWIGEXPORT(a) a -# define SWIGIMPORT(a) a -# endif -# endif -#else -# define SWIGEXPORT(a) a -# define SWIGIMPORT(a) a -#endif - -#ifdef SWIG_GLOBAL -# define SWIGRUNTIME(a) SWIGEXPORT(a) -#else -# define SWIGRUNTIME(a) static a -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -typedef void *(*swig_converter_func)(void *); -typedef struct swig_type_info *(*swig_dycast_func)(void **); - -typedef struct swig_type_info { - const char *name; - swig_converter_func converter; - const char *str; - void *clientdata; - swig_dycast_func dcast; - struct swig_type_info *next; - struct swig_type_info *prev; -} swig_type_info; - - -SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); -SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); -SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); -SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); -SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); -SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); -SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); -SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); -SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); - - -#ifdef __cplusplus -} -#endif - -/*********************************************************************** - * pyrun.swg for wxPython - * - * Include only the function prototypes and such from SWIG's pyrun.swg, - * but not the runtime functions themselves. This helps keep the - * wrapper files clean of unnecessary stuff that is in the libpy.c file - * anyway. - * - ************************************************************************/ - -#include "Python.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define SWIG_PY_INT 1 -#define SWIG_PY_FLOAT 2 -#define SWIG_PY_STRING 3 -#define SWIG_PY_POINTER 4 -#define SWIG_PY_BINARY 5 - -/* Flags for pointer conversion */ - -#define SWIG_POINTER_EXCEPTION 0x1 -#define SWIG_POINTER_DISOWN 0x2 - -/* Exception handling in wrappers */ -#define SWIG_fail goto fail - -/* Constant information structure */ -typedef struct swig_const_info { - int type; - char *name; - long lvalue; - double dvalue; - void *pvalue; - swig_type_info **ptype; -} swig_const_info; - -/* Common SWIG API */ -#define SWIG_ConvertPtr(obj, pp, type, flags) \ - SWIG_Python_ConvertPtr(obj, pp, type, flags) -#define SWIG_NewPointerObj(p, type, flags) \ - SWIG_Python_NewPointerObj(p, type, flags) -#define SWIG_MustGetPtr(p, type, argnum, flags) \ - SWIG_Python_MustGetPtr(p, type, argnum, flags) - -/* Python-specific SWIG API */ -#define SWIG_newvarlink() \ - SWIG_Python_newvarlink() -#define SWIG_addvarlink(p, name, get_attr, set_attr) \ - SWIG_Python_addvarlink(p, name, get_attr, set_attr) -#define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ - SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) -#define SWIG_NewPackedObj(ptr, sz, type) \ - SWIG_Python_NewPackedObj(ptr, sz, type) -#define SWIG_InstallConstants(d, constants) \ - SWIG_Python_InstallConstants(d, constants) - -typedef double (*py_objasdbl_conv)(PyObject *obj); - -SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); -SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); -SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); -SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); -SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); -SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); -SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); -SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); - - -/* Contract support */ - -#define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else - -#ifdef __cplusplus -} -#endif - - -/* -------- TYPES TABLE (BEGIN) -------- */ - -#define SWIGTYPE_p_wxLayoutConstraints swig_types[0] -#define SWIGTYPE_p_wxRealPoint swig_types[1] -#define SWIGTYPE_p_wxSizerItem swig_types[2] -#define SWIGTYPE_p_wxGBSizerItem swig_types[3] -#define SWIGTYPE_p_wxScrollEvent swig_types[4] -#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[5] -#define SWIGTYPE_p_wxSizer swig_types[6] -#define SWIGTYPE_p_wxBoxSizer swig_types[7] -#define SWIGTYPE_p_wxStaticBoxSizer swig_types[8] -#define SWIGTYPE_p_wxGridBagSizer swig_types[9] -#define SWIGTYPE_p_wxAcceleratorEntry swig_types[10] -#define SWIGTYPE_p_wxUpdateUIEvent swig_types[11] -#define SWIGTYPE_p_wxMenu swig_types[12] -#define SWIGTYPE_p_wxEvent swig_types[13] -#define SWIGTYPE_p_wxGridSizer swig_types[14] -#define SWIGTYPE_p_wxFlexGridSizer swig_types[15] -#define SWIGTYPE_p_wxInitDialogEvent swig_types[16] -#define SWIGTYPE_p_wxItemContainer swig_types[17] -#define SWIGTYPE_p_wxNcPaintEvent swig_types[18] -#define SWIGTYPE_p_wxPaintEvent swig_types[19] -#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[20] -#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[21] -#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[22] -#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[23] -#define SWIGTYPE_p_wxControl swig_types[24] -#define SWIGTYPE_p_wxFont swig_types[25] -#define SWIGTYPE_p_wxMenuBarBase swig_types[26] -#define SWIGTYPE_p_wxSetCursorEvent swig_types[27] -#define SWIGTYPE_p_wxFSFile swig_types[28] -#define SWIGTYPE_p_wxCaret swig_types[29] -#define SWIGTYPE_p_wxRegion swig_types[30] -#define SWIGTYPE_p_wxPoint2D swig_types[31] -#define SWIGTYPE_p_int swig_types[32] -#define SWIGTYPE_p_wxSize swig_types[33] -#define SWIGTYPE_p_wxDC swig_types[34] -#define SWIGTYPE_p_wxPySizer swig_types[35] -#define SWIGTYPE_p_wxVisualAttributes swig_types[36] -#define SWIGTYPE_p_wxNotifyEvent swig_types[37] -#define SWIGTYPE_p_wxPyEvent swig_types[38] -#define SWIGTYPE_p_wxPropagationDisabler swig_types[39] -#define SWIGTYPE_p_wxAppTraits swig_types[40] -#define SWIGTYPE_p_wxArrayString swig_types[41] -#define SWIGTYPE_p_wxShowEvent swig_types[42] -#define SWIGTYPE_p_wxToolTip swig_types[43] -#define SWIGTYPE_p_wxMaximizeEvent swig_types[44] -#define SWIGTYPE_p_wxIconizeEvent swig_types[45] -#define SWIGTYPE_p_wxActivateEvent swig_types[46] -#define SWIGTYPE_p_wxMoveEvent swig_types[47] -#define SWIGTYPE_p_wxSizeEvent swig_types[48] -#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[49] -#define SWIGTYPE_p_wxWindowCreateEvent swig_types[50] -#define SWIGTYPE_p_wxIdleEvent swig_types[51] -#define SWIGTYPE_p_wxMenuItem swig_types[52] -#define SWIGTYPE_p_wxStaticBox swig_types[53] -#define SWIGTYPE_p_long swig_types[54] -#define SWIGTYPE_p_wxTIFFHandler swig_types[55] -#define SWIGTYPE_p_wxXPMHandler swig_types[56] -#define SWIGTYPE_p_wxPNMHandler swig_types[57] -#define SWIGTYPE_p_wxJPEGHandler swig_types[58] -#define SWIGTYPE_p_wxPCXHandler swig_types[59] -#define SWIGTYPE_p_wxGIFHandler swig_types[60] -#define SWIGTYPE_p_wxPNGHandler swig_types[61] -#define SWIGTYPE_p_wxANIHandler swig_types[62] -#define SWIGTYPE_p_wxMemoryFSHandler swig_types[63] -#define SWIGTYPE_p_wxEvtHandler swig_types[64] -#define SWIGTYPE_p_wxCURHandler swig_types[65] -#define SWIGTYPE_p_wxICOHandler swig_types[66] -#define SWIGTYPE_p_wxBMPHandler swig_types[67] -#define SWIGTYPE_p_wxImageHandler swig_types[68] -#define SWIGTYPE_p_wxFileSystemHandler swig_types[69] -#define SWIGTYPE_p_wxPyFileSystemHandler swig_types[70] -#define SWIGTYPE_p_wxInternetFSHandler swig_types[71] -#define SWIGTYPE_p_wxZipFSHandler swig_types[72] -#define SWIGTYPE_p_wxRect swig_types[73] -#define SWIGTYPE_p_wxGBSpan swig_types[74] -#define SWIGTYPE_p_wxPropagateOnce swig_types[75] -#define SWIGTYPE_p_wxAcceleratorTable swig_types[76] -#define SWIGTYPE_p_char swig_types[77] -#define SWIGTYPE_p_wxGBPosition swig_types[78] -#define SWIGTYPE_p_wxImage swig_types[79] -#define SWIGTYPE_p_wxFrame swig_types[80] -#define SWIGTYPE_p_wxScrollWinEvent swig_types[81] -#define SWIGTYPE_p_wxImageHistogram swig_types[82] -#define SWIGTYPE_p_byte swig_types[83] -#define SWIGTYPE_p_wxPoint swig_types[84] -#define SWIGTYPE_p_wxCursor swig_types[85] -#define SWIGTYPE_p_wxObject swig_types[86] -#define SWIGTYPE_p_wxPyInputStream swig_types[87] -#define SWIGTYPE_p_wxOutputStream swig_types[88] -#define SWIGTYPE_p_wxInputStream swig_types[89] -#define SWIGTYPE_p_wxDateTime swig_types[90] -#define SWIGTYPE_p_wxKeyEvent swig_types[91] -#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[92] -#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[93] -#define SWIGTYPE_p_wxWindow swig_types[94] -#define SWIGTYPE_p_wxMenuBar swig_types[95] -#define SWIGTYPE_p_wxFileSystem swig_types[96] -#define SWIGTYPE_p_wxBitmap swig_types[97] -#define SWIGTYPE_p_wxMenuEvent swig_types[98] -#define SWIGTYPE_p_wxContextMenuEvent swig_types[99] -#define SWIGTYPE_p_unsigned_char swig_types[100] -#define SWIGTYPE_p_wxCloseEvent swig_types[101] -#define SWIGTYPE_p_wxEraseEvent swig_types[102] -#define SWIGTYPE_p_wxMouseEvent swig_types[103] -#define SWIGTYPE_p_wxPyApp swig_types[104] -#define SWIGTYPE_p_wxCommandEvent swig_types[105] -#define SWIGTYPE_p_wxPyCommandEvent swig_types[106] -#define SWIGTYPE_p_wxPyDropTarget swig_types[107] -#define SWIGTYPE_p_wxChildFocusEvent swig_types[108] -#define SWIGTYPE_p_wxFocusEvent swig_types[109] -#define SWIGTYPE_p_wxDropFilesEvent swig_types[110] -#define SWIGTYPE_p_wxControlWithItems swig_types[111] -#define SWIGTYPE_p_wxColour swig_types[112] -#define SWIGTYPE_p_wxValidator swig_types[113] -#define SWIGTYPE_p_wxPyValidator swig_types[114] -static swig_type_info *swig_types[116]; - -/* -------- TYPES TABLE (END) -------- */ - - -/*----------------------------------------------- - @(target):= _core.so - ------------------------------------------------*/ -#define SWIG_init init_core - -#define SWIG_name "_core" - -/* Auxiliar swig macros */ - -#ifdef __cplusplus -#define SWIGSTATICINLINE(a) static inline a -#define SWIGSTATIC(a) static a -#define swig_new_array(type, size) (new type[(size)]) -#define swig_delete_array(cptr) delete[] cptr -#define swig_const_cast(type,a) const_cast(a) -#define swig_static_cast(type,a) static_cast(a) -#define swig_reinterpret_cast(type,a) reinterpret_cast(a) - -#ifdef HAVE_NUMERIC_CAST -#define swig_numeric_cast(type,a) numeric_cast(a) -#else -#define swig_numeric_cast(type,a) static_cast(a) -#endif - -#else /* C case */ - -#define SWIGSTATICINLINE(a) static a -#define SWIGSTATIC(a) static a -#define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type))) -#define swig_delete_array(cptr) free((char*)cptr) -#define swig_const_cast(type,a) (type)(a) -#define swig_static_cast(type,a) (type)(a) -#define swig_reinterpret_cast(type,a) (type)(a) -#define swig_numeric_cast(type,a) (type)(a) - -#endif /* __cplusplus */ - - -#define SWIG_FromSignedChar PyInt_FromLong -#define SWIG_FromUnsignedChar PyInt_FromLong -#define SWIG_FromShort PyInt_FromLong -#define SWIG_FromUnsignedShort PyInt_FromLong -#define SWIG_FromInt PyInt_FromLong -#define SWIG_FromLong PyInt_FromLong -#define SWIG_FromFloat PyFloat_FromDouble -#define SWIG_FromDouble PyFloat_FromDouble -#define SWIG_FromFloat PyFloat_FromDouble -#define SWIG_FromDouble PyFloat_FromDouble - - -#include "wx/wxPython/wxPython_int.h" -#include "wx/wxPython/pyclasses.h" - - -#ifndef wxPyUSE_EXPORT -// Helper functions for dealing with SWIG objects and such. These are -// located here so they know about the SWIG types and functions declared -// in the wrapper code. - -#include -WX_DECLARE_STRING_HASH_MAP( swig_type_info*, wxPyTypeInfoHashMap ); - - -// Maintains a hashmap of className to swig_type_info pointers. Given the -// name of a class either looks up the type info in the cache, or scans the -// SWIG tables for it. -extern PyObject* wxPyPtrTypeMap; -static -swig_type_info* wxPyFindSwigType(const wxChar* className) { - - static wxPyTypeInfoHashMap* typeInfoCache = NULL; - - if (typeInfoCache == NULL) - typeInfoCache = new wxPyTypeInfoHashMap; - - wxString name(className); - swig_type_info* swigType = (*typeInfoCache)[name]; - - if (! swigType) { - // it wasn't in the cache, so look it up from SWIG - name.Append(wxT(" *")); - swigType = SWIG_Python_TypeQuery(name.mb_str()); - - // if it still wasn't found, try looking for a mapped name - if (!swigType) { - PyObject* item; - name = className; - - if ((item = PyDict_GetItemString(wxPyPtrTypeMap, - (char*)(const char*)name.mbc_str())) != NULL) { - name = wxString(PyString_AsString(item), *wxConvCurrent); - name.Append(wxT(" *")); - swigType = SWIG_Python_TypeQuery(name.mb_str()); - } - } - if (swigType) { - // and add it to the map if found - (*typeInfoCache)[className] = swigType; - } - } - return swigType; -} - - -// Check if a class name is a type known to SWIG -bool wxPyCheckSwigType(const wxChar* className) { - - swig_type_info* swigType = wxPyFindSwigType(className); - return swigType != NULL; -} - - -// Given a pointer to a C++ object and a class name, construct a Python proxy -// object for it. -PyObject* wxPyConstructObject(void* ptr, - const wxChar* className, - int setThisOwn) { - - swig_type_info* swigType = wxPyFindSwigType(className); - wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConstructObject")); - - return SWIG_Python_NewPointerObj(ptr, swigType, setThisOwn); -} - - -// Extract a pointer to the wrapped C++ object from a Python proxy object. -// Ensures that the proxy object is of the specified (or derived) type. If -// not able to perform the conversion then a Python exception is set and the -// error should be handled properly in the caller. Returns True on success. -bool wxPyConvertSwigPtr(PyObject* obj, void **ptr, - const wxChar* className) { - - swig_type_info* swigType = wxPyFindSwigType(className); - wxCHECK_MSG(swigType != NULL, False, wxT("Unknown type in wxPyConvertSwigPtr")); - - return SWIG_Python_ConvertPtr(obj, ptr, swigType, SWIG_POINTER_EXCEPTION) != -1; -} - - -// Make a SWIGified pointer object suitable for a .this attribute -PyObject* wxPyMakeSwigPtr(void* ptr, const wxChar* className) { - - PyObject* robj = NULL; - - swig_type_info* swigType = wxPyFindSwigType(className); - wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConvertSwigPtr")); - -#ifdef SWIG_COBJECT_TYPES - robj = PyCObject_FromVoidPtrAndDesc((void *) ptr, (char *) swigType->name, NULL); -#else - { - char result[1024]; - char *r = result; - *(r++) = '_'; - r = SWIG_Python_PackData(r, &ptr, sizeof(void *)); - strcpy(r, swigType->name); - robj = PyString_FromString(result); - } -#endif - - return robj; -} - - - - -// Export a C API in a struct. Other modules will be able to load this from -// the wx.core module and will then have safe access to these functions, even if -// they are located in another shared library. -static wxPyCoreAPI API = { - - (p_SWIG_Python_TypeRegister_t)SWIG_Python_TypeRegister, - (p_SWIG_Python_TypeCheck_t)SWIG_Python_TypeCheck, - (p_SWIG_Python_TypeCast_t)SWIG_Python_TypeCast, - (p_SWIG_Python_TypeDynamicCast_t)SWIG_Python_TypeDynamicCast, - (p_SWIG_Python_TypeName_t)SWIG_Python_TypeName, - (p_SWIG_Python_TypeQuery_t)SWIG_Python_TypeQuery, - (p_SWIG_Python_TypeClientData_t)SWIG_Python_TypeClientData, - (p_SWIG_Python_newvarlink_t)SWIG_Python_newvarlink, - (p_SWIG_Python_addvarlink_t)SWIG_Python_addvarlink, - (p_SWIG_Python_ConvertPtr_t)SWIG_Python_ConvertPtr, - (p_SWIG_Python_ConvertPacked_t)SWIG_Python_ConvertPacked, - (p_SWIG_Python_PackData_t)SWIG_Python_PackData, - (p_SWIG_Python_UnpackData_t)SWIG_Python_UnpackData, - (p_SWIG_Python_NewPointerObj_t)SWIG_Python_NewPointerObj, - (p_SWIG_Python_NewPackedObj_t)SWIG_Python_NewPackedObj, - (p_SWIG_Python_InstallConstants_t)SWIG_Python_InstallConstants, - (p_SWIG_Python_MustGetPtr_t)SWIG_Python_MustGetPtr, - - wxPyCheckSwigType, - wxPyConstructObject, - wxPyConvertSwigPtr, - wxPyMakeSwigPtr, - - wxPyBeginAllowThreads, - wxPyEndAllowThreads, - wxPyBeginBlockThreads, - wxPyEndBlockThreads, - - wxPy_ConvertList, - - wxString_in_helper, - Py2wxString, - wx2PyString, - - byte_LIST_helper, - int_LIST_helper, - long_LIST_helper, - string_LIST_helper, - wxPoint_LIST_helper, - wxBitmap_LIST_helper, - wxString_LIST_helper, - wxAcceleratorEntry_LIST_helper, - - wxSize_helper, - wxPoint_helper, - wxRealPoint_helper, - wxRect_helper, - wxColour_helper, - wxPoint2D_helper, - - wxPySimple_typecheck, - wxColour_typecheck, - - wxPyCBH_setCallbackInfo, - wxPyCBH_findCallback, - wxPyCBH_callCallback, - wxPyCBH_callCallbackObj, - wxPyCBH_delete, - - wxPyMake_wxObject, - wxPyMake_wxSizer, - wxPyPtrTypeMap_Add, - wxPy2int_seq_helper, - wxPy4int_seq_helper, - wxArrayString2PyList_helper, - wxArrayInt2PyList_helper, - - wxPyClientData_dtor, - wxPyUserData_dtor, - wxPyOORClientData_dtor, - - wxPyCBInputStream_create, - - wxPyInstance_Check, - wxPySwigInstance_Check - -}; - -#endif - - -#if ! wxUSE_HOTKEY -enum wxHotkeyModifier -{ - wxMOD_NONE = 0, - wxMOD_ALT = 1, - wxMOD_CONTROL = 2, - wxMOD_SHIFT = 4, - wxMOD_WIN = 8 -}; -#define wxEVT_HOTKEY 9999 -#endif - - static const wxString wxPyEmptyString(wxEmptyString); -wxString wxObject_GetClassName(wxObject *self){ - return self->GetClassInfo()->GetClassName(); - } -void wxObject_Destroy(wxObject *self){ - delete self; - } - -#ifndef __WXMAC__ -#define wxCURSOR_COPY_ARROW wxCURSOR_ARROW -#endif - - -#include - - -SWIGSTATICINLINE(long) -SWIG_CheckLongInRange(long value, const char* type, - long min_value, long max_value) -{ - if (!PyErr_Occurred()) { - if (value < min_value) { - PyObject *err = - PyString_FromFormat("value %ld is less than '%s' minimum %ld", - value, type, min_value); - - PyErr_SetObject(PyExc_OverflowError, err); - Py_DECREF(err); - } else if (value > max_value) { - PyObject *err = - PyString_FromFormat("value %ld is greater than '%s' maximum %ld", - value, type, max_value); - PyErr_SetObject(PyExc_OverflowError, err); - Py_DECREF(err); - } - } - return value; -} - - -SWIGSTATICINLINE(long) -SWIG_AsLong(PyObject * obj) -{ - if (PyNumber_Check(obj)) - return PyInt_AsLong(obj); - else { - PyObject* errmsg = PyString_FromFormat("Expected number, got %s", - obj->ob_type->tp_name); - PyErr_SetObject(PyExc_TypeError, errmsg); - Py_DECREF(errmsg); - return 0; - } -} - - -#if INT_MAX != LONG_MAX -SWIGSTATICINLINE(int) -SWIG_AsInt(PyObject *obj) -{ - return swig_numeric_cast(int, - SWIG_CheckLongInRange(SWIG_AsLong(obj), - "int", INT_MIN, INT_MAX)); -} -#else -#define SWIG_AsInt SWIG_AsLong -#endif - - -SWIGSTATICINLINE(int) -SWIG_CheckInt(PyObject* obj) -{ - SWIG_AsInt(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - -PyObject *wxSize_Get(wxSize *self){ - bool blocked = wxPyBeginBlockThreads(); - PyObject* tup = PyTuple_New(2); - PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); - PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); - wxPyEndBlockThreads(blocked); - return tup; - } - -SWIGSTATICINLINE(double) -SWIG_AsDouble(PyObject *obj) -{ - if (PyNumber_Check(obj)) - return PyFloat_AsDouble(obj); - else { - PyObject* errmsg = PyString_FromFormat("Expected number, got %s", - obj->ob_type->tp_name); - PyErr_SetObject(PyExc_TypeError, errmsg); - Py_DECREF(errmsg); - return 0; - } -} - - -SWIGSTATICINLINE(int) -SWIG_CheckDouble(PyObject* obj) -{ - SWIG_AsDouble(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - -void wxRealPoint_Set(wxRealPoint *self,double x,double y){ - self->x = x; - self->y = y; - } -PyObject *wxRealPoint_Get(wxRealPoint *self){ - bool blocked = wxPyBeginBlockThreads(); - PyObject* tup = PyTuple_New(2); - PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->x)); - PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->y)); - wxPyEndBlockThreads(blocked); - return tup; - } - -SWIGSTATICINLINE(int) -SWIG_CheckLong(PyObject* obj) -{ - SWIG_AsLong(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - -void wxPoint_Set(wxPoint *self,long x,long y){ - self->x = x; - self->y = y; - } -PyObject *wxPoint_Get(wxPoint *self){ - bool blocked = wxPyBeginBlockThreads(); - PyObject* tup = PyTuple_New(2); - PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); - PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); - wxPyEndBlockThreads(blocked); - return tup; - } -void wxRect_Set(wxRect *self,int x,int y,int width,int height){ - self->x = x; - self->y = y; - self->width = width; - self->height = height; - } -PyObject *wxRect_Get(wxRect *self){ - bool blocked = wxPyBeginBlockThreads(); - PyObject* tup = PyTuple_New(4); - PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); - PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); - PyTuple_SET_ITEM(tup, 2, PyInt_FromLong(self->width)); - PyTuple_SET_ITEM(tup, 3, PyInt_FromLong(self->height)); - wxPyEndBlockThreads(blocked); - return tup; - } - - PyObject* wxIntersectRect(wxRect* r1, wxRect* r2) { - wxRegion reg1(*r1); - wxRegion reg2(*r2); - wxRect dest(0,0,0,0); - PyObject* obj; - - reg1.Intersect(reg2); - dest = reg1.GetBox(); - - if (dest != wxRect(0,0,0,0)) { - bool blocked = wxPyBeginBlockThreads(); - wxRect* newRect = new wxRect(dest); - obj = wxPyConstructObject((void*)newRect, wxT("wxRect"), True); - wxPyEndBlockThreads(blocked); - return obj; - } - Py_INCREF(Py_None); - return Py_None; - } - - -static PyObject* t_output_helper(PyObject* target, PyObject* o) { - PyObject* o2; - PyObject* o3; - - if (!target) { - target = o; - } else if (target == Py_None) { - Py_DECREF(Py_None); - target = o; - } else { - if (!PyTuple_Check(target)) { - o2 = target; - target = PyTuple_New(1); - PyTuple_SetItem(target, 0, o2); - } - o3 = PyTuple_New(1); - PyTuple_SetItem(o3, 0, o); - - o2 = target; - target = PySequence_Concat(o2, o3); - Py_DECREF(o2); - Py_DECREF(o3); - } - return target; -} - -void wxPoint2D_Set(wxPoint2D *self,double x,double y){ - self->m_x = x; - self->m_y = y; - } -PyObject *wxPoint2D_Get(wxPoint2D *self){ - bool blocked = wxPyBeginBlockThreads(); - PyObject* tup = PyTuple_New(2); - PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->m_x)); - PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->m_y)); - wxPyEndBlockThreads(blocked); - return tup; - } - -#include "wx/wxPython/pyistream.h" - -wxPyInputStream *new_wxPyInputStream(PyObject *p){ - wxInputStream* wxis = wxPyCBInputStream::create(p); - if (wxis) - return new wxPyInputStream(wxis); - else - return NULL; - } - -SWIGSTATICINLINE(PyObject*) -SWIG_FromChar(char c) -{ - return PyString_FromStringAndSize(&c,1); -} - - -SWIGSTATICINLINE(PyObject* ) -SWIG_FromUnsignedLong(unsigned long value) -{ - return (value > LONG_MAX) ? - PyLong_FromUnsignedLong(value) - : PyInt_FromLong(swig_numeric_cast(long,value)); -} - - -/* returns '1' if the input is a raw char*, '0' if is a PyString */ -SWIGSTATIC(int) -SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* size) -{ - static swig_type_info* pchar_info = 0; - int psize = 0; - if (!pchar_info) pchar_info = SWIG_TypeQuery("char *"); - - if (SWIG_ConvertPtr(obj, swig_reinterpret_cast(void **,cptr), pchar_info, 0) == -1) { - PyErr_Clear(); - PyString_AsStringAndSize(obj, cptr, &psize); - if (PyErr_Occurred()) { - PyErr_Clear(); - PyErr_SetString(PyExc_TypeError,"a string is expected"); - } - if (size) *size = psize; - return 0; - } else { - if (size) *size = (*cptr) ? (strlen(*cptr) + 1) : 0; - return 1; - } -} - - -SWIGSTATIC(void) -SWIG_AsCharArray(PyObject *obj, char* carray, size_t size) -{ - char* cptr; size_t csize; - SWIG_AsCharPtrAndSize(obj, &cptr, &csize); - if (PyErr_Occurred()) { - PyErr_Clear(); - PyObject *err = - PyString_FromFormat("a char array of size %d is expected", size); - PyErr_SetObject(PyExc_TypeError, err); - Py_DECREF(err); - } else { - /* in C (but not in C++) you can do: - - char x[5] = "hello"; - - ie, assing the array using an extra '0' char. - */ -#ifndef __cplusplus - if ((csize == size + 1) && !(cptr[csize-1])) --csize; -#endif - if (csize > size) { - PyObject *err = - PyString_FromFormat("a char array of maximum size %d is expected", - size); - PyErr_SetObject(PyExc_TypeError, err); - Py_DECREF(err); - } else { - if (csize) memcpy(carray, cptr, csize); - if (csize < size) memset(carray + csize, 0, size - csize); - } - } -} - - -SWIGSTATICINLINE(char) -SWIG_AsChar(PyObject *obj) -{ - char c = 0; - if (PyInt_Check(obj) || PyLong_Check(obj)) { - c = swig_numeric_cast(char, - SWIG_CheckLongInRange(SWIG_AsLong(obj), - "char", CHAR_MIN, CHAR_MAX)); - } else { - SWIG_AsCharArray(obj, &c, 1); - if (PyErr_Occurred()) { - PyErr_Clear(); - PyErr_SetString(PyExc_TypeError, "a char is expected"); - } - } - return c; -} - - -SWIGSTATICINLINE(int) -SWIG_CheckChar(PyObject* obj) -{ - SWIG_AsChar(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - -void wxOutputStream_write(wxOutputStream *self,PyObject *obj){ - // We use only strings for the streams, not unicode - PyObject* str = PyObject_Str(obj); - if (! str) { - PyErr_SetString(PyExc_TypeError, "Unable to convert to string"); - return; - } - self->Write(PyString_AS_STRING(str), - PyString_GET_SIZE(str)); - Py_DECREF(str); - } - -#include "wx/wxPython/pyistream.h" - - -class wxPyFileSystemHandler : public wxFileSystemHandler -{ -public: - wxPyFileSystemHandler() : wxFileSystemHandler() {} - - DEC_PYCALLBACK_BOOL_STRING_pure(CanOpen); - DEC_PYCALLBACK_FSF_FSSTRING_pure(OpenFile); - DEC_PYCALLBACK_STRING_STRINGINT_pure(FindFirst); - DEC_PYCALLBACK_STRING__pure(FindNext); - - wxString GetProtocol(const wxString& location) { - return wxFileSystemHandler::GetProtocol(location); - } - - wxString GetLeftLocation(const wxString& location) { - return wxFileSystemHandler::GetLeftLocation(location); - } - - wxString GetAnchor(const wxString& location) { - return wxFileSystemHandler::GetAnchor(location); - } - - wxString GetRightLocation(const wxString& location) { - return wxFileSystemHandler::GetRightLocation(location); - } - - wxString GetMimeTypeFromExt(const wxString& location) { - return wxFileSystemHandler::GetMimeTypeFromExt(location); - } - - PYPRIVATE; -}; - - -IMP_PYCALLBACK_BOOL_STRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, CanOpen); -IMP_PYCALLBACK_FSF_FSSTRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, OpenFile); -IMP_PYCALLBACK_STRING_STRINGINT_pure(wxPyFileSystemHandler, wxFileSystemHandler, FindFirst); -IMP_PYCALLBACK_STRING__pure(wxPyFileSystemHandler, wxFileSystemHandler, FindNext); - - -SWIGSTATICINLINE(bool) -SWIG_AsBool(PyObject *obj) -{ - return PyObject_IsTrue(obj) ? true : false; -} - - -SWIGSTATICINLINE(int) -SWIG_CheckBool(PyObject* obj) -{ - SWIG_AsBool(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - - - wxString wxFileSystem_URLToFileName(const wxString& url) { - wxFileName fname = wxFileSystem::URLToFileName(url); - return fname.GetFullPath(); - } - - - void __wxMemoryFSHandler_AddFile_wxImage(const wxString& filename, - wxImage& image, - long type) { - wxMemoryFSHandler::AddFile(filename, image, type); - } - - void __wxMemoryFSHandler_AddFile_wxBitmap(const wxString& filename, - const wxBitmap& bitmap, - long type) { - wxMemoryFSHandler::AddFile(filename, bitmap, type); - } - - void __wxMemoryFSHandler_AddFile_Data(const wxString& filename, - PyObject* data) { - wxMemoryFSHandler::AddFile(filename, - // TODO: Verify data type - (void*)PyString_AsString(data), - (size_t)PyString_Size(data)); - } - - -#include "wx/wxPython/pyistream.h" - - -SWIGSTATICINLINE(unsigned long) -SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type, - unsigned long max_value) -{ - if (!PyErr_Occurred()) { - if (value > max_value) { - PyObject *err = - PyString_FromFormat("value %ld is greater than '%s' minimum %ld", - value, type, max_value); - PyErr_SetObject(PyExc_OverflowError, err); - Py_DECREF(err); - } - } - return value; -} - - -SWIGSTATICINLINE(unsigned long) -SWIG_AsUnsignedLong(PyObject * obj) -{ - if (PyLong_Check(obj)) { - return PyLong_AsUnsignedLong(obj); - } else { - long i = SWIG_AsLong(obj); - if ( !PyErr_Occurred() && (i < 0)) { - PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); - } - return i; - } -} - - -SWIGSTATICINLINE(unsigned char) -SWIG_AsUnsignedChar(PyObject *obj) -{ - return swig_numeric_cast(unsigned char, - SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), - "unsigned char", UCHAR_MAX)); -} - - -SWIGSTATICINLINE(int) -SWIG_CheckUnsignedChar(PyObject* obj) -{ - SWIG_AsUnsignedChar(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - -wxImage *new_wxImage__SWIG_0(int width,int height,bool clear){ - if (width > 0 && height > 0) - return new wxImage(width, height, clear); - else - return new wxImage; - } -wxImage *new_wxImage__SWIG_1(wxSize const &size,bool clear){ - return new wxImage(size.x, size.y, clear); - } -wxImage *new_wxImage(wxBitmap const &bitmap){ - return new wxImage(bitmap.ConvertToImage()); - } -wxImage *new_wxImage(int width,int height,unsigned char *data){ - // Copy the source data so the wxImage can clean it up later - unsigned char* copy = (unsigned char*)malloc(width*height*3); - if (copy == NULL) { - PyErr_NoMemory(); - return NULL; - } - memcpy(copy, data, width*height*3); - return new wxImage(width, height, copy, False); - } -wxSize wxImage_GetSize(wxImage *self){ - wxSize size(self->GetWidth(), self->GetHeight()); - return size; - } -PyObject *wxImage_GetData(wxImage *self){ - unsigned char* data = self->GetData(); - int len = self->GetWidth() * self->GetHeight() * 3; - PyObject* rv; - wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len)); - return rv; - } -void wxImage_SetData(wxImage *self,PyObject *data){ - unsigned char* dataPtr; - - if (! PyString_Check(data)) { - PyErr_SetString(PyExc_TypeError, "Expected string object"); - return /* NULL */ ; - } - - size_t len = self->GetWidth() * self->GetHeight() * 3; - dataPtr = (unsigned char*) malloc(len); - wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); - self->SetData(dataPtr); - // wxImage takes ownership of dataPtr... - } -PyObject *wxImage_GetDataBuffer(wxImage *self){ - unsigned char* data = self->GetData(); - int len = self->GetWidth() * self->GetHeight() * 3; - PyObject* rv; - wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); - return rv; - } -void wxImage_SetDataBuffer(wxImage *self,PyObject *data){ - unsigned char* buffer; - int size; - - bool blocked = wxPyBeginBlockThreads(); - if (!PyArg_Parse(data, "t#", &buffer, &size)) - goto done; - - if (size != self->GetWidth() * self->GetHeight() * 3) { - PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); - goto done; - } - self->SetData(buffer); - done: - wxPyEndBlockThreads(blocked); - } -PyObject *wxImage_GetAlphaData(wxImage *self){ - unsigned char* data = self->GetAlpha(); - if (! data) { - RETURN_NONE(); - } else { - int len = self->GetWidth() * self->GetHeight(); - PyObject* rv; - wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len) ); - return rv; - } - } -void wxImage_SetAlphaData(wxImage *self,PyObject *data){ - unsigned char* dataPtr; - - if (! PyString_Check(data)) { - PyErr_SetString(PyExc_TypeError, "Expected string object"); - return /* NULL */ ; - } - - size_t len = self->GetWidth() * self->GetHeight(); - dataPtr = (unsigned char*) malloc(len); - wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); - self->SetAlpha(dataPtr); - // wxImage takes ownership of dataPtr... - } -PyObject *wxImage_GetAlphaBuffer(wxImage *self){ - unsigned char* data = self->GetAlpha(); - int len = self->GetWidth() * self->GetHeight(); - PyObject* rv; - wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); - return rv; - } -void wxImage_SetAlphaBuffer(wxImage *self,PyObject *data){ - unsigned char* buffer; - int size; - - bool blocked = wxPyBeginBlockThreads(); - if (!PyArg_Parse(data, "t#", &buffer, &size)) - goto done; - - if (size != self->GetWidth() * self->GetHeight()) { - PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); - goto done; - } - self->SetAlpha(buffer); - done: - wxPyEndBlockThreads(blocked); - } - -SWIGSTATICINLINE(int) -SWIG_CheckUnsignedLong(PyObject* obj) -{ - SWIG_AsUnsignedLong(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - -wxBitmap wxImage_ConvertToBitmap(wxImage *self){ - wxBitmap bitmap(*self); - return bitmap; - } -wxBitmap wxImage_ConvertToMonoBitmap(wxImage *self,unsigned char red,unsigned char green,unsigned char blue){ - wxImage mono = self->ConvertToMono( red, green, blue ); - wxBitmap bitmap( mono, 1 ); - return bitmap; - } - static const wxString wxPyIMAGE_OPTION_BMP_FORMAT(wxIMAGE_OPTION_BMP_FORMAT); - static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_X(wxIMAGE_OPTION_CUR_HOTSPOT_X); - static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_Y(wxIMAGE_OPTION_CUR_HOTSPOT_Y); - static const wxString wxPyIMAGE_OPTION_RESOLUTION(wxIMAGE_OPTION_RESOLUTION); - static const wxString wxPyIMAGE_OPTION_RESOLUTIONUNIT(wxIMAGE_OPTION_RESOLUTIONUNIT); -void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject *func){ - if (PyCallable_Check(func)) { - self->Connect(id, lastId, eventType, - (wxObjectEventFunction) &wxPyCallback::EventThunker, - new wxPyCallback(func)); - } - else if (func == Py_None) { - self->Disconnect(id, lastId, eventType, - (wxObjectEventFunction) - &wxPyCallback::EventThunker); - } - else { - wxPyBLOCK_THREADS( - PyErr_SetString(PyExc_TypeError, "Expected callable object or None.")); - } - } -bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType){ - return self->Disconnect(id, lastId, eventType, - (wxObjectEventFunction) - &wxPyCallback::EventThunker); - } -void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject *_self){ - if (_self && _self != Py_None) { - self->SetClientObject(new wxPyOORClientData(_self)); - } - else { - wxPyOORClientData* data = (wxPyOORClientData*)self->GetClientObject(); - if (data) { - self->SetClientObject(NULL); // This will delete it too - } - } - } -int wxKeyEvent_GetUniChar(wxKeyEvent *self){ - #if wxUSE_UNICODE - return self->m_uniChar; - #else - return 0; - #endif - } - -#if UINT_MAX < LONG_MAX -#define SWIG_FromUnsignedInt SWIG_FromLong -#else -#define SWIG_FromUnsignedInt SWIG_FromUnsignedLong -#endif - - -#if UINT_MAX != ULONG_MAX -SWIGSTATICINLINE(unsigned int) -SWIG_AsUnsignedInt(PyObject *obj) -{ - return swig_numeric_cast(unsigned int, - SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), - "unsigned int", UINT_MAX)); -} -#else -#define SWIG_AsUnsignedInt SWIG_AsUnsignedLong -#endif - - -SWIGSTATICINLINE(int) -SWIG_CheckUnsignedInt(PyObject* obj) -{ - SWIG_AsUnsignedInt(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - -void wxSizeEvent_SetSize(wxSizeEvent *self,wxSize size){ - self->m_size = size; - } -void wxMoveEvent_SetPosition(wxMoveEvent *self,wxPoint pos){ - self->m_pos = pos; - } -PyObject *wxDropFilesEvent_GetFiles(wxDropFilesEvent *self){ - int count = self->GetNumberOfFiles(); - wxString* files = self->GetFiles(); - PyObject* list = PyList_New(count); - - if (!list) { - PyErr_SetString(PyExc_MemoryError, "Can't allocate list of files!"); - return NULL; - } - - for (int i=0; iGetChildren(); - return wxPy_ConvertList(&list); - } -bool wxWindow_RegisterHotKey(wxWindow *self,int hotkeyId,int modifiers,int keycode){ - #if wxUSE_HOTKEY - return self->RegisterHotKey(hotkeyId, modifiers, keycode); - #else - return False; - #endif - } -bool wxWindow_UnregisterHotKey(wxWindow *self,int hotkeyId){ - - - - return False; - - } -long wxWindow_GetHandle(wxWindow *self){ - return wxPyGetWinHandle(self); - } - -wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) { - return wxWindow::FindWindowById(id, parent); -} - -wxWindow* wxFindWindowByName( const wxString& name, - const wxWindow *parent = NULL ) { - return wxWindow::FindWindowByName(name, parent); -} - -wxWindow* wxFindWindowByLabel( const wxString& label, - const wxWindow *parent = NULL ) { - return wxWindow::FindWindowByLabel(label, parent); -} - - -#ifdef __WXMSW__ -#include // to get wxGetWindowId -#endif - - - wxWindow* wxWindow_FromHWND(wxWindow* parent, unsigned long _hWnd) { -#ifdef __WXMSW__ - WXHWND hWnd = (WXHWND)_hWnd; - long id = wxGetWindowId(hWnd); - wxWindow* win = new wxWindow; - parent->AddChild(win); - win->SetEventHandler(win); - win->SetHWND(hWnd); - win->SetId(id); - win->SubclassWin(hWnd); - win->AdoptAttributesFromHWND(); - win->SetupColours(); - return win; -#else - wxPyRaiseNotImplemented(); - return NULL; -#endif - } - - -IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); -IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); -IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); - -IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); - -void wxMenu_Destroy(wxMenu *self){ delete self; } -PyObject *wxMenu_GetMenuItems(wxMenu *self){ - wxMenuItemList& list = self->GetMenuItems(); - return wxPy_ConvertList(&list); - } - static const wxString wxPyControlNameStr(wxControlNameStr); -int wxItemContainer_Append(wxItemContainer *self,wxString const &item,PyObject *clientData){ - if (clientData) { - wxPyClientData* data = new wxPyClientData(clientData); - return self->Append(item, data); - } else - return self->Append(item); - } -int wxItemContainer_Insert(wxItemContainer *self,wxString const &item,int pos,PyObject *clientData){ - if (clientData) { - wxPyClientData* data = new wxPyClientData(clientData); - return self->Insert(item, pos, data); - } else - return self->Insert(item, pos); - } -PyObject *wxItemContainer_GetClientData(wxItemContainer *self,int n){ - wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n); - if (data) { - Py_INCREF(data->m_obj); - return data->m_obj; - } else { - Py_INCREF(Py_None); - return Py_None; - } - } -void wxItemContainer_SetClientData(wxItemContainer *self,int n,PyObject *clientData){ - wxPyClientData* data = new wxPyClientData(clientData); - self->SetClientObject(n, data); - } - - - -#include - -SWIGSTATIC(float) -SWIG_FloatCast(double value) -{ - float f = 0; - if (!PyErr_Occurred()) { - if (value < FLT_MIN) { - PyObject *err = - PyString_FromFormat("value %g is less than float minimum %g", - value, FLT_MIN); - PyErr_SetObject(PyExc_OverflowError, err); - Py_DECREF(err); - } else if (value > FLT_MAX) { - PyObject *err = - PyString_FromFormat("value %g is greater than float maximum %g", - value, FLT_MAX); - PyErr_SetObject(PyExc_OverflowError, err); - Py_DECREF(err); - } else { - f = swig_numeric_cast(float, value); - } - } - return f; -} - - -SWIGSTATICINLINE(float) -SWIG_AsFloat(PyObject *obj) -{ - return SWIG_FloatCast(SWIG_AsDouble(obj)); -} - - -SWIGSTATICINLINE(int) -SWIG_CheckFloat(PyObject* obj) -{ - SWIG_AsFloat(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - -PyObject *wxSizerItem_GetUserData(wxSizerItem *self){ - wxPyUserData* data = (wxPyUserData*)self->GetUserData(); - if (data) { - Py_INCREF(data->m_obj); - return data->m_obj; - } else { - Py_INCREF(Py_None); - return Py_None; - } - } - -// Figure out the type of the sizer item - -struct wxPySizerItemInfo { - wxPySizerItemInfo() - : window(NULL), sizer(NULL), gotSize(False), - size(wxDefaultSize), gotPos(False), pos(-1) - {} - - wxWindow* window; - wxSizer* sizer; - bool gotSize; - wxSize size; - bool gotPos; - int pos; -}; - -static wxPySizerItemInfo wxPySizerItemTypeHelper(PyObject* item, bool checkSize, bool checkIdx ) { - - wxPySizerItemInfo info; - wxSize size; - wxSize* sizePtr = &size; - - // Find out what the type of the item is - // try wxWindow - if ( ! wxPyConvertSwigPtr(item, (void**)&info.window, wxT("wxWindow")) ) { - PyErr_Clear(); - info.window = NULL; - - // try wxSizer - if ( ! wxPyConvertSwigPtr(item, (void**)&info.sizer, wxT("wxSizer")) ) { - PyErr_Clear(); - info.sizer = NULL; - - // try wxSize or (w,h) - if ( checkSize && wxSize_helper(item, &sizePtr)) { - info.size = *sizePtr; - info.gotSize = True; - } - - // or a single int - if (checkIdx && PyInt_Check(item)) { - info.pos = PyInt_AsLong(item); - info.gotPos = True; - } - } - } - - if ( !(info.window || info.sizer || (checkSize && info.gotSize) || (checkIdx && info.gotPos)) ) { - // no expected type, figure out what kind of error message to generate - if ( !checkSize && !checkIdx ) - PyErr_SetString(PyExc_TypeError, "wxWindow or wxSizer expected for item"); - else if ( checkSize && !checkIdx ) - PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) expected for item"); - else if ( !checkSize && checkIdx) - PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer or int (position) expected for item"); - else - // can this one happen? - PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) or int (position) expected for item"); - } - - return info; -} - -void wxSizer__setOORInfo(wxSizer *self,PyObject *_self){ - self->SetClientObject(new wxPyOORClientData(_self)); - } -void wxSizer_Add(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ - - wxPyUserData* data = NULL; - bool blocked = wxPyBeginBlockThreads(); - wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); - if ( userData && (info.window || info.sizer || info.gotSize) ) - data = new wxPyUserData(userData); - wxPyEndBlockThreads(blocked); - - // Now call the real Add method if a valid item type was found - if ( info.window ) - self->Add(info.window, proportion, flag, border, data); - else if ( info.sizer ) - self->Add(info.sizer, proportion, flag, border, data); - else if (info.gotSize) - self->Add(info.size.GetWidth(), info.size.GetHeight(), - proportion, flag, border, data); - } -void wxSizer_Insert(wxSizer *self,int before,PyObject *item,int proportion,int flag,int border,PyObject *userData){ - - wxPyUserData* data = NULL; - bool blocked = wxPyBeginBlockThreads(); - wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); - if ( userData && (info.window || info.sizer || info.gotSize) ) - data = new wxPyUserData(userData); - wxPyEndBlockThreads(blocked); - - // Now call the real Insert method if a valid item type was found - if ( info.window ) - self->Insert(before, info.window, proportion, flag, border, data); - else if ( info.sizer ) - self->Insert(before, info.sizer, proportion, flag, border, data); - else if (info.gotSize) - self->Insert(before, info.size.GetWidth(), info.size.GetHeight(), - proportion, flag, border, data); - } -void wxSizer_Prepend(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ - - wxPyUserData* data = NULL; - bool blocked = wxPyBeginBlockThreads(); - wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); - if ( userData && (info.window || info.sizer || info.gotSize) ) - data = new wxPyUserData(userData); - wxPyEndBlockThreads(blocked); - - // Now call the real Prepend method if a valid item type was found - if ( info.window ) - self->Prepend(info.window, proportion, flag, border, data); - else if ( info.sizer ) - self->Prepend(info.sizer, proportion, flag, border, data); - else if (info.gotSize) - self->Prepend(info.size.GetWidth(), info.size.GetHeight(), - proportion, flag, border, data); - } -bool wxSizer_Remove(wxSizer *self,PyObject *item){ - bool blocked = wxPyBeginBlockThreads(); - wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True); - wxPyEndBlockThreads(blocked); - if ( info.window ) - return self->Remove(info.window); - else if ( info.sizer ) - return self->Remove(info.sizer); - else if ( info.gotPos ) - return self->Remove(info.pos); - else - return False; - } -void wxSizer__SetItemMinSize(wxSizer *self,PyObject *item,wxSize const &size){ - bool blocked = wxPyBeginBlockThreads(); - wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True); - wxPyEndBlockThreads(blocked); - if ( info.window ) - self->SetItemMinSize(info.window, size); - else if ( info.sizer ) - self->SetItemMinSize(info.sizer, size); - else if ( info.gotPos ) - self->SetItemMinSize(info.pos, size); - } -PyObject *wxSizer_GetChildren(wxSizer *self){ - wxSizerItemList& list = self->GetChildren(); - return wxPy_ConvertList(&list); - } -void wxSizer_Show(wxSizer *self,PyObject *item,bool show){ - wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); - if ( info.window ) - self->Show(info.window, show); - else if ( info.sizer ) - self->Show(info.sizer, show); - } -void wxSizer_Hide(wxSizer *self,PyObject *item){ - wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); - if ( info.window ) - self->Hide(info.window); - else if ( info.sizer ) - self->Hide(info.sizer); - } -bool wxSizer_IsShown(wxSizer *self,PyObject *item){ - wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); - if ( info.window ) - return self->IsShown(info.window); - else if ( info.sizer ) - return self->IsShown(info.sizer); - else - return False; - } - -// See pyclasses.h -IMP_PYCALLBACK___pure(wxPySizer, wxSizer, RecalcSizes); -IMP_PYCALLBACK_wxSize__pure(wxPySizer, wxSizer, CalcMin); -IMPLEMENT_DYNAMIC_CLASS(wxPySizer, wxSizer); - - - - -bool wxGBPosition_helper(PyObject* source, wxGBPosition** obj) -{ - if (source == Py_None) { - **obj = wxGBPosition(-1,-1); - return True; - } - return wxPyTwoIntItem_helper(source, obj, wxT("wxGBPosition")); -} - -bool wxGBSpan_helper(PyObject* source, wxGBSpan** obj) -{ - if (source == Py_None) { - **obj = wxGBSpan(-1,-1); - return True; - } - return wxPyTwoIntItem_helper(source, obj, wxT("wxGBSpan")); -} - - -void wxGBPosition_Set(wxGBPosition *self,int row,int col){ - self->SetRow(row); - self->SetCol(col); - } -PyObject *wxGBPosition_Get(wxGBPosition *self){ - bool blocked = wxPyBeginBlockThreads(); - PyObject* tup = PyTuple_New(2); - PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow())); - PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol())); - wxPyEndBlockThreads(blocked); - return tup; - } -void wxGBSpan_Set(wxGBSpan *self,int rowspan,int colspan){ - self->SetRowspan(rowspan); - self->SetColspan(colspan); - } -PyObject *wxGBSpan_Get(wxGBSpan *self){ - bool blocked = wxPyBeginBlockThreads(); - PyObject* tup = PyTuple_New(2); - PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRowspan())); - PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetColspan())); - wxPyEndBlockThreads(blocked); - return tup; - } -bool wxGridBagSizer_Add(wxGridBagSizer *self,PyObject *item,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ - - wxPyUserData* data = NULL; - bool blocked = wxPyBeginBlockThreads(); - wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); - if ( userData && (info.window || info.sizer || info.gotSize) ) - data = new wxPyUserData(userData); - wxPyEndBlockThreads(blocked); - - // Now call the real Add method if a valid item type was found - if ( info.window ) - return self->Add(info.window, pos, span, flag, border, data); - else if ( info.sizer ) - return self->Add(info.sizer, pos, span, flag, border, data); - else if (info.gotSize) - return self->Add(info.size.GetWidth(), info.size.GetHeight(), - pos, span, flag, border, data); - return False; - } - - -#ifdef __cplusplus -extern "C" { -#endif -static int _wrap_EmptyString_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable EmptyString is read-only."); - return 1; -} - - -static PyObject *_wrap_EmptyString_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_Object_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxObject *arg1 = (wxObject *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_GetClassName",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxObject_GetClassName(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 - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Object_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxObject *arg1 = (wxObject *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_Destroy",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxObject_Destroy(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * Object_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxObject, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_Size_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSize *arg1 = (wxSize *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_width_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->x = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Size_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSize *arg1 = (wxSize *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_width_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->x); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Size_height_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSize *arg1 = (wxSize *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_height_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->y = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Size_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSize *arg1 = (wxSize *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_height_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->y); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_Size(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - int arg2 = (int) 0 ; - wxSize *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "w",(char *) "h", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Size",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSize *)new wxSize(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_Size(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSize *arg1 = (wxSize *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Size",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Size___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSize *arg1 = (wxSize *) 0 ; - wxSize *arg2 = 0 ; - bool result; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___eq__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->operator ==((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Size___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSize *arg1 = (wxSize *) 0 ; - wxSize *arg2 = 0 ; - bool result; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___ne__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->operator !=((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Size___add__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSize *arg1 = (wxSize *) 0 ; - wxSize *arg2 = 0 ; - wxSize result; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___add__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->operator +((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Size___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSize *arg1 = (wxSize *) 0 ; - wxSize *arg2 = 0 ; - wxSize result; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___sub__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->operator -((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Size_IncTo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSize *arg1 = (wxSize *) 0 ; - wxSize *arg2 = 0 ; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_IncTo",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->IncTo((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Size_DecTo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSize *arg1 = (wxSize *) 0 ; - wxSize *arg2 = 0 ; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_DecTo",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DecTo((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Size_Set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSize *arg1 = (wxSize *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "w",(char *) "h", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Size_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Set(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Size_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSize *arg1 = (wxSize *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "w", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetWidth",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetWidth(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Size_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSize *arg1 = (wxSize *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "h", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetHeight",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetHeight(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Size_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSize *arg1 = (wxSize *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetWidth",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSize const *)arg1)->GetWidth(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Size_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSize *arg1 = (wxSize *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetHeight",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSize const *)arg1)->GetHeight(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Size_IsFullySpecified(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSize *arg1 = (wxSize *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_IsFullySpecified",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxSize const *)arg1)->IsFullySpecified(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Size_SetDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSize *arg1 = (wxSize *) 0 ; - wxSize *arg2 = 0 ; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetDefaults",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDefaults((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Size_Get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSize *arg1 = (wxSize *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_Get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxSize_Get(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject * Size_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxSize, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_RealPoint_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRealPoint *arg1 = (wxRealPoint *) 0 ; - double arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_x_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (double) SWIG_AsDouble(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->x = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RealPoint_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRealPoint *arg1 = (wxRealPoint *) 0 ; - double result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_x_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (double) ((arg1)->x); - - resultobj = SWIG_FromDouble((double)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RealPoint_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRealPoint *arg1 = (wxRealPoint *) 0 ; - double arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_y_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (double) SWIG_AsDouble(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->y = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RealPoint_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRealPoint *arg1 = (wxRealPoint *) 0 ; - double result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_y_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (double) ((arg1)->y); - - resultobj = SWIG_FromDouble((double)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - double arg1 = (double) 0.0 ; - double arg2 = (double) 0.0 ; - wxRealPoint *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RealPoint",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (double) SWIG_AsDouble(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (double) SWIG_AsDouble(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxRealPoint *)new wxRealPoint(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRealPoint, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRealPoint *arg1 = (wxRealPoint *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RealPoint",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RealPoint___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRealPoint *arg1 = (wxRealPoint *) 0 ; - wxRealPoint *arg2 = 0 ; - bool result; - wxRealPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___eq__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->operator ==((wxRealPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RealPoint___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRealPoint *arg1 = (wxRealPoint *) 0 ; - wxRealPoint *arg2 = 0 ; - bool result; - wxRealPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___ne__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->operator !=((wxRealPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RealPoint___add__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRealPoint *arg1 = (wxRealPoint *) 0 ; - wxRealPoint *arg2 = 0 ; - wxRealPoint result; - wxRealPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___add__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->operator +((wxRealPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxRealPoint * resultptr; - resultptr = new wxRealPoint((wxRealPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RealPoint___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRealPoint *arg1 = (wxRealPoint *) 0 ; - wxRealPoint *arg2 = 0 ; - wxRealPoint result; - wxRealPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___sub__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->operator -((wxRealPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxRealPoint * resultptr; - resultptr = new wxRealPoint((wxRealPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RealPoint_Set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRealPoint *arg1 = (wxRealPoint *) 0 ; - double arg2 ; - double arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RealPoint_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (double) SWIG_AsDouble(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (double) SWIG_AsDouble(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxRealPoint_Set(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RealPoint_Get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRealPoint *arg1 = (wxRealPoint *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_Get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxRealPoint_Get(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject * RealPoint_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxRealPoint, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_Point_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint *arg1 = (wxPoint *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_x_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->x = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint *arg1 = (wxPoint *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_x_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->x); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint *arg1 = (wxPoint *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_y_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->y = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint *arg1 = (wxPoint *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_y_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->y); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_Point(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - int arg2 = (int) 0 ; - wxPoint *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPoint *)new wxPoint(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_Point(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint *arg1 = (wxPoint *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Point",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint *arg1 = (wxPoint *) 0 ; - wxPoint *arg2 = 0 ; - bool result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___eq__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->operator ==((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint *arg1 = (wxPoint *) 0 ; - wxPoint *arg2 = 0 ; - bool result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___ne__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->operator !=((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point___add__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint *arg1 = (wxPoint *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___add__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->operator +((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint *arg1 = (wxPoint *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___sub__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->operator -((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint *arg1 = (wxPoint *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint *result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___iadd__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxPoint &_result_ref = (arg1)->operator +=((wxPoint const &)*arg2); - result = (wxPoint *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint *arg1 = (wxPoint *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint *result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___isub__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxPoint &_result_ref = (arg1)->operator -=((wxPoint const &)*arg2); - result = (wxPoint *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point_Set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint *arg1 = (wxPoint *) 0 ; - long arg2 ; - long arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Point_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxPoint_Set(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point_Get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint *arg1 = (wxPoint *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_Get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxPoint_Get(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject * Point_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPoint, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Rect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - int arg2 = (int) 0 ; - int arg3 = (int) 0 ; - int arg4 = (int) 0 ; - wxRect *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Rect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxRect *)new wxRect(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_RectPP(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint *arg1 = 0 ; - wxPoint *arg2 = 0 ; - wxRect *result; - wxPoint temp1 ; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "topLeft",(char *) "bottomRight", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPP",kwnames,&obj0,&obj1)) goto fail; - { - arg1 = &temp1; - if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; - } - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_RectPS(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint *arg1 = 0 ; - wxSize *arg2 = 0 ; - wxRect *result; - wxPoint temp1 ; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "pos",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPS",kwnames,&obj0,&obj1)) goto fail; - { - arg1 = &temp1; - if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; - } - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_Rect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Rect",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetX",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxRect const *)arg1)->GetX(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_SetX(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetX",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetX(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetY",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetY(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_SetY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetY",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetY(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetWidth",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxRect const *)arg1)->GetWidth(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "w", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetWidth",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetWidth(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetHeight",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxRect const *)arg1)->GetHeight(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "h", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetHeight",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetHeight(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxRect const *)arg1)->GetPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "p", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetPosition",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPosition((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxRect const *)arg1)->GetSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - wxSize *arg2 = 0 ; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "s", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSize((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_GetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTopLeft",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxRect const *)arg1)->GetTopLeft(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_SetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "p", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTopLeft",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetTopLeft((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_GetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottomRight",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxRect const *)arg1)->GetBottomRight(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_SetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "p", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottomRight",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetBottomRight((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_GetLeft(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetLeft",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxRect const *)arg1)->GetLeft(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_GetTop(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTop",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxRect const *)arg1)->GetTop(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_GetBottom(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottom",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxRect const *)arg1)->GetBottom(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_GetRight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetRight",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxRect const *)arg1)->GetRight(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_SetLeft(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "left", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetLeft",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetLeft(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_SetRight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "right", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetRight",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetRight(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_SetTop(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "top", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTop",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetTop(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_SetBottom(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bottom", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottom",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetBottom(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_Inflate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int arg2 ; - int arg3 ; - wxRect *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "dx",(char *) "dy", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Inflate",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxRect &_result_ref = (arg1)->Inflate(arg2,arg3); - result = (wxRect *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_Deflate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int arg2 ; - int arg3 ; - wxRect *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "dx",(char *) "dy", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Deflate",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxRect &_result_ref = (arg1)->Deflate(arg2,arg3); - result = (wxRect *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_OffsetXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "dx",(char *) "dy", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_OffsetXY",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Offset(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_Offset(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Offset",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Offset((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - wxRect *arg2 = 0 ; - wxRect *result; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersect",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxRect &_result_ref = (arg1)->Intersect((wxRect const &)*arg2); - result = (wxRect *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect___add__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - wxRect *arg2 = 0 ; - wxRect result; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___add__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxRect const *)arg1)->operator +((wxRect const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxRect * resultptr; - resultptr = new wxRect((wxRect &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - wxRect *arg2 = 0 ; - wxRect *result; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___iadd__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxRect &_result_ref = (arg1)->operator +=((wxRect const &)*arg2); - result = (wxRect *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - wxRect *arg2 = 0 ; - bool result; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___eq__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxRect const *)arg1)->operator ==((wxRect const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - wxRect *arg2 = 0 ; - bool result; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___ne__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxRect const *)arg1)->operator !=((wxRect const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_InsideXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int arg2 ; - int arg3 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_InsideXY",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxRect const *)arg1)->Inside(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_Inside(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - wxPoint *arg2 = 0 ; - bool result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Inside",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxRect const *)arg1)->Inside((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_Intersects(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - wxRect *arg2 = 0 ; - bool result; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersects",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxRect const *)arg1)->Intersects((wxRect const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_x_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->x = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_x_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->x); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_y_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->y = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_y_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->y); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "width", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_width_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->width = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_width_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->width); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_height_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_height_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->height = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_height_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->height); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_Set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - int arg2 = (int) 0 ; - int arg3 = (int) 0 ; - int arg4 = (int) 0 ; - int arg5 = (int) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Rect_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxRect_Set(arg1,arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Rect_Get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_Get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxRect_Get(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject * Rect_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxRect, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect *arg1 = (wxRect *) 0 ; - wxRect *arg2 = (wxRect *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "r1",(char *) "r2", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IntersectRect",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxIntersectRect(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_Point2D(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - double arg1 = (double) 0.0 ; - double arg2 = (double) 0.0 ; - wxPoint2D *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point2D",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (double) SWIG_AsDouble(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (double) SWIG_AsDouble(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPoint2D *)new wxPoint2D(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_Point2DCopy(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint2D *arg1 = 0 ; - wxPoint2D *result; - wxPoint2D temp1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DCopy",kwnames,&obj0)) goto fail; - { - arg1 = &temp1; - if ( ! wxPoint2D_helper(obj0, &arg1)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPoint2D *)new wxPoint2D((wxPoint2D const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_Point2DFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint *arg1 = 0 ; - wxPoint2D *result; - wxPoint temp1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DFromPoint",kwnames,&obj0)) goto fail; - { - arg1 = &temp1; - if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPoint2D *)new wxPoint2D((wxPoint const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point2D_GetFloor(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint2D *arg1 = (wxPoint2D *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetFloor",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxPoint2D const *)arg1)->GetFloor(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point2D_GetRounded(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint2D *arg1 = (wxPoint2D *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetRounded",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxPoint2D const *)arg1)->GetRounded(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point2D_GetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint2D *arg1 = (wxPoint2D *) 0 ; - double result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorLength",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (double)((wxPoint2D const *)arg1)->GetVectorLength(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromDouble((double)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point2D_GetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint2D *arg1 = (wxPoint2D *) 0 ; - double result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorAngle",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (double)((wxPoint2D const *)arg1)->GetVectorAngle(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromDouble((double)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point2D_SetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint2D *arg1 = (wxPoint2D *) 0 ; - double arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "length", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorLength",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (double) SWIG_AsDouble(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetVectorLength(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point2D_SetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint2D *arg1 = (wxPoint2D *) 0 ; - double arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "degrees", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorAngle",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (double) SWIG_AsDouble(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetVectorAngle(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point2D_GetDistance(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint2D *arg1 = (wxPoint2D *) 0 ; - wxPoint2D *arg2 = 0 ; - double result; - wxPoint2D temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistance",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (double)((wxPoint2D const *)arg1)->GetDistance((wxPoint2D const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromDouble((double)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point2D_GetDistanceSquare(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint2D *arg1 = (wxPoint2D *) 0 ; - wxPoint2D *arg2 = 0 ; - double result; - wxPoint2D temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistanceSquare",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (double)((wxPoint2D const *)arg1)->GetDistanceSquare((wxPoint2D const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromDouble((double)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point2D_GetDotProduct(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint2D *arg1 = (wxPoint2D *) 0 ; - wxPoint2D *arg2 = 0 ; - double result; - wxPoint2D temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "vec", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDotProduct",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (double)((wxPoint2D const *)arg1)->GetDotProduct((wxPoint2D const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromDouble((double)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point2D_GetCrossProduct(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint2D *arg1 = (wxPoint2D *) 0 ; - wxPoint2D *arg2 = 0 ; - double result; - wxPoint2D temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "vec", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetCrossProduct",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (double)((wxPoint2D const *)arg1)->GetCrossProduct((wxPoint2D const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromDouble((double)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point2D___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint2D *arg1 = (wxPoint2D *) 0 ; - wxPoint2D result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D___neg__",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->operator -(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint2D * resultptr; - resultptr = new wxPoint2D((wxPoint2D &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint2D, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point2D___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint2D *arg1 = (wxPoint2D *) 0 ; - wxPoint2D *arg2 = 0 ; - wxPoint2D *result; - wxPoint2D temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___iadd__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxPoint2D &_result_ref = (arg1)->operator +=((wxPoint2D const &)*arg2); - result = (wxPoint2D *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point2D___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint2D *arg1 = (wxPoint2D *) 0 ; - wxPoint2D *arg2 = 0 ; - wxPoint2D *result; - wxPoint2D temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___isub__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxPoint2D &_result_ref = (arg1)->operator -=((wxPoint2D const &)*arg2); - result = (wxPoint2D *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point2D___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint2D *arg1 = (wxPoint2D *) 0 ; - wxPoint2D *arg2 = 0 ; - wxPoint2D *result; - wxPoint2D temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___imul__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxPoint2D &_result_ref = (arg1)->operator *=((wxPoint2D const &)*arg2); - result = (wxPoint2D *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point2D___idiv__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint2D *arg1 = (wxPoint2D *) 0 ; - wxPoint2D *arg2 = 0 ; - wxPoint2D *result; - wxPoint2D temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___idiv__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxPoint2D &_result_ref = (arg1)->operator /=((wxPoint2D const &)*arg2); - result = (wxPoint2D *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point2D___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint2D *arg1 = (wxPoint2D *) 0 ; - wxPoint2D *arg2 = 0 ; - bool result; - wxPoint2D temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___eq__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPoint2D const *)arg1)->operator ==((wxPoint2D const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point2D___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint2D *arg1 = (wxPoint2D *) 0 ; - wxPoint2D *arg2 = 0 ; - bool result; - wxPoint2D temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___ne__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPoint2D const *)arg1)->operator !=((wxPoint2D const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point2D_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint2D *arg1 = (wxPoint2D *) 0 ; - double arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_x", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_x_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (double) SWIG_AsDouble(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_x = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point2D_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint2D *arg1 = (wxPoint2D *) 0 ; - double result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_x_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (double) ((arg1)->m_x); - - resultobj = SWIG_FromDouble((double)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point2D_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint2D *arg1 = (wxPoint2D *) 0 ; - double arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_y_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (double) SWIG_AsDouble(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_y = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point2D_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint2D *arg1 = (wxPoint2D *) 0 ; - double result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_y_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (double) ((arg1)->m_y); - - resultobj = SWIG_FromDouble((double)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point2D_Set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint2D *arg1 = (wxPoint2D *) 0 ; - double arg2 = (double) 0 ; - double arg3 = (double) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Point2D_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (double) SWIG_AsDouble(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (double) SWIG_AsDouble(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxPoint2D_Set(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Point2D_Get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint2D *arg1 = (wxPoint2D *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_Get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxPoint2D_Get(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject * Point2D_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPoint2D, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_DefaultPosition_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable DefaultPosition is read-only."); - return 1; -} - - -static PyObject *_wrap_DefaultPosition_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(&wxDefaultPosition), SWIGTYPE_p_wxPoint, 0); - return pyobj; -} - - -static int _wrap_DefaultSize_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable DefaultSize is read-only."); - return 1; -} - - -static PyObject *_wrap_DefaultSize_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSize), SWIGTYPE_p_wxSize, 0); - return pyobj; -} - - -static PyObject *_wrap_new_InputStream(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - PyObject *arg1 = (PyObject *) 0 ; - wxPyInputStream *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "p", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_InputStream",kwnames,&obj0)) goto fail; - arg1 = obj0; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyInputStream *)new_wxPyInputStream(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyInputStream, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_InputStream_close(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_close",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->close(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_InputStream_flush(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_flush",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->flush(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_InputStream_eof(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_eof",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->eof(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_InputStream_read(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; - int arg2 = (int) -1 ; - PyObject *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_read",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)(arg1)->read(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_InputStream_readline(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; - int arg2 = (int) -1 ; - PyObject *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readline",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)(arg1)->readline(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_InputStream_readlines(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; - int arg2 = (int) -1 ; - PyObject *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sizehint", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readlines",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)(arg1)->readlines(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_InputStream_seek(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; - int arg2 ; - int arg3 = (int) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "offset",(char *) "whence", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_seek",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->seek(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_InputStream_tell(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_tell",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->tell(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_InputStream_Peek(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; - char result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Peek",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (char)(arg1)->Peek(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromChar((char)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_InputStream_GetC(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; - char result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_GetC",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (char)(arg1)->GetC(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromChar((char)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_InputStream_LastRead(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; - size_t result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_LastRead",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (size_t)(arg1)->LastRead(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_InputStream_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_CanRead",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->CanRead(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_InputStream_Eof(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Eof",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Eof(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_InputStream_Ungetch(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; - char arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "c", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InputStream_Ungetch",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (char) SWIG_AsChar(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Ungetch(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_InputStream_SeekI(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; - long arg2 ; - int arg3 = (int) wxFromStart ; - long result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos",(char *) "mode", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_SeekI",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (wxSeekMode) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->SeekI(arg2,(wxSeekMode )arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_InputStream_TellI(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_TellI",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->TellI(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * InputStream_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyInputStream, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_OutputStream_write(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxOutputStream *arg1 = (wxOutputStream *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "obj", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:OutputStream_write",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxOutputStream, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxOutputStream_write(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * OutputStream_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxOutputStream, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxInputStream *arg1 = (wxInputStream *) 0 ; - wxString *arg2 = 0 ; - wxString *arg3 = 0 ; - wxString *arg4 = 0 ; - wxDateTime arg5 ; - wxFSFile *result; - wxPyInputStream *temp1 ; - bool created1 ; - bool temp2 = False ; - bool temp3 = False ; - bool temp4 = False ; - wxDateTime *argp5 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "stream",(char *) "loc",(char *) "mimetype",(char *) "anchor",(char *) "modif", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_FSFile",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - { - if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { - arg1 = temp1->m_wxis; - created1 = False; - } else { - PyErr_Clear(); // clear the failure of the wxPyConvert above - arg1 = wxPyCBInputStream_create(obj0, False); - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); - SWIG_fail; - } - created1 = True; - } - } - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - if ((SWIG_ConvertPtr(obj4,(void **)(&argp5),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; - arg5 = *argp5; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFSFile *)new wxFSFile(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (created1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (created1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_delete_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFSFile *arg1 = (wxFSFile *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FSFile",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FSFile_GetStream(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFSFile *arg1 = (wxFSFile *) 0 ; - wxInputStream *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetStream",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxInputStream *)(arg1)->GetStream(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPyInputStream * _ptr = NULL; - - if (result) { - _ptr = new wxPyInputStream(result); - } - resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FSFile_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFSFile *arg1 = (wxFSFile *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetMimeType",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = (arg1)->GetMimeType(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FSFile_GetLocation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFSFile *arg1 = (wxFSFile *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetLocation",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = (arg1)->GetLocation(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FSFile_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFSFile *arg1 = (wxFSFile *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetAnchor",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = (arg1)->GetAnchor(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FSFile_GetModificationTime(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFSFile *arg1 = (wxFSFile *) 0 ; - wxDateTime result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetModificationTime",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetModificationTime(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateTime * resultptr; - resultptr = new wxDateTime((wxDateTime &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * FSFile_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxFSFile, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject * CPPFileSystemHandler_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxFileSystemHandler, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_FileSystemHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFileSystemHandler *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystemHandler",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyFileSystemHandler *)new wxPyFileSystemHandler(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileSystemHandler, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileSystemHandler__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileSystemHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; - wxString *arg2 = 0 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "location", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->CanOpen((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_FileSystemHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; - wxFileSystem *arg2 = 0 ; - wxString *arg3 = 0 ; - wxFSFile *result; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "fs",(char *) "location", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_FileSystemHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; - wxString *arg2 = 0 ; - int arg3 = (int) 0 ; - wxString result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "spec",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystemHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->FindFirst((wxString const &)*arg2,arg3); - - 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 (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_FileSystemHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystemHandler_FindNext",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->FindNext(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileSystemHandler_GetProtocol(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; - wxString *arg2 = 0 ; - wxString result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "location", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetProtocol",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetProtocol((wxString const &)*arg2); - - 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 (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_FileSystemHandler_GetLeftLocation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; - wxString *arg2 = 0 ; - wxString result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "location", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetLeftLocation",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetLeftLocation((wxString const &)*arg2); - - 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 (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_FileSystemHandler_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; - wxString *arg2 = 0 ; - wxString result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "location", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetAnchor",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetAnchor((wxString const &)*arg2); - - 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 (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_FileSystemHandler_GetRightLocation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; - wxString *arg2 = 0 ; - wxString result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "location", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetRightLocation",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetRightLocation((wxString const &)*arg2); - - 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 (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_FileSystemHandler_GetMimeTypeFromExt(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; - wxString *arg2 = 0 ; - wxString result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "location", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetMimeTypeFromExt",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetMimeTypeFromExt((wxString const &)*arg2); - - 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 (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject * FileSystemHandler_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyFileSystemHandler, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileSystem *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystem",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFileSystem *)new wxFileSystem(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileSystem *arg1 = (wxFileSystem *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileSystem",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileSystem_ChangePathTo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileSystem *arg1 = (wxFileSystem *) 0 ; - wxString *arg2 = 0 ; - bool arg3 = (bool) False ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "location",(char *) "is_dir", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_ChangePathTo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ChangePathTo((wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_FileSystem_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileSystem *arg1 = (wxFileSystem *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_GetPath",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetPath(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileSystem_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileSystem *arg1 = (wxFileSystem *) 0 ; - wxString *arg2 = 0 ; - wxFSFile *result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "location", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystem_OpenFile",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFSFile *)(arg1)->OpenFile((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_FileSystem_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileSystem *arg1 = (wxFileSystem *) 0 ; - wxString *arg2 = 0 ; - int arg3 = (int) 0 ; - wxString result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "spec",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->FindFirst((wxString const &)*arg2,arg3); - - 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 (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_FileSystem_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileSystem *arg1 = (wxFileSystem *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FindNext",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->FindNext(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileSystem_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileSystemHandler *arg1 = (wxFileSystemHandler *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "handler", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_AddHandler",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystemHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxFileSystem::AddHandler(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileSystem_CleanUpHandlers(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FileSystem_CleanUpHandlers",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxFileSystem::CleanUpHandlers(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileSystem_FileNameToURL(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "filename", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FileNameToURL",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxFileSystem::FileNameToURL((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; -} - - -static PyObject * FileSystem_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxFileSystem, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_FileSystem_URLToFileName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "url", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_URLToFileName",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxFileSystem_URLToFileName((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; -} - - -static PyObject *_wrap_new_InternetFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxInternetFSHandler *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_InternetFSHandler",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxInternetFSHandler *)new wxInternetFSHandler(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInternetFSHandler, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_InternetFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; - wxString *arg2 = 0 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "location", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InternetFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->CanOpen((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_InternetFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; - wxFileSystem *arg2 = 0 ; - wxString *arg3 = 0 ; - wxFSFile *result; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "fs",(char *) "location", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:InternetFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject * InternetFSHandler_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxInternetFSHandler, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ZipFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxZipFSHandler *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ZipFSHandler",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxZipFSHandler *)new wxZipFSHandler(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxZipFSHandler, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ZipFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; - wxString *arg2 = 0 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "location", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ZipFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->CanOpen((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ZipFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; - wxFileSystem *arg2 = 0 ; - wxString *arg3 = 0 ; - wxFSFile *result; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "fs",(char *) "location", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ZipFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_ZipFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; - wxString *arg2 = 0 ; - int arg3 = (int) 0 ; - wxString result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "spec",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ZipFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->FindFirst((wxString const &)*arg2,arg3); - - 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 (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ZipFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ZipFSHandler_FindNext",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->FindNext(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * ZipFSHandler_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxZipFSHandler, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxImage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxImage *arg2 = 0 ; - long arg3 ; - bool temp1 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "filename",(char *) "image",(char *) "type", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxImage",kwnames,&obj0,&obj1,&obj2)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - __wxMemoryFSHandler_AddFile_wxImage((wxString const &)*arg1,*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxBitmap *arg2 = 0 ; - long arg3 ; - bool temp1 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "filename",(char *) "bitmap",(char *) "type", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - __wxMemoryFSHandler_AddFile_wxBitmap((wxString const &)*arg1,(wxBitmap const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap___wxMemoryFSHandler_AddFile_Data(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - PyObject *arg2 = (PyObject *) 0 ; - bool temp1 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "filename",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:__wxMemoryFSHandler_AddFile_Data",kwnames,&obj0,&obj1)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - arg2 = obj1; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - __wxMemoryFSHandler_AddFile_Data((wxString const &)*arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_new_MemoryFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMemoryFSHandler *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryFSHandler",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMemoryFSHandler *)new wxMemoryFSHandler(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryFSHandler, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MemoryFSHandler_RemoveFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "filename", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_RemoveFile",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxMemoryFSHandler::RemoveFile((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_MemoryFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; - wxString *arg2 = 0 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "location", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->CanOpen((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_MemoryFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; - wxFileSystem *arg2 = 0 ; - wxString *arg3 = 0 ; - wxFSFile *result; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "fs",(char *) "location", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MemoryFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_MemoryFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; - wxString *arg2 = 0 ; - int arg3 = (int) 0 ; - wxString result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "spec",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MemoryFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->FindFirst((wxString const &)*arg2,arg3); - - 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 (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_MemoryFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_FindNext",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->FindNext(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * MemoryFSHandler_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxMemoryFSHandler, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_ImageHandler_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImageHandler *arg1 = (wxImageHandler *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetName",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetName(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ImageHandler_GetExtension(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImageHandler *arg1 = (wxImageHandler *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetExtension",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetExtension(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ImageHandler_GetType(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImageHandler *arg1 = (wxImageHandler *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetType",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->GetType(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ImageHandler_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImageHandler *arg1 = (wxImageHandler *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetMimeType",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetMimeType(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ImageHandler_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImageHandler *arg1 = (wxImageHandler *) 0 ; - wxString *arg2 = 0 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_CanRead",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->CanRead((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ImageHandler_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImageHandler *arg1 = (wxImageHandler *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetName",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetName((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ImageHandler_SetExtension(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImageHandler *arg1 = (wxImageHandler *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "extension", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetExtension",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetExtension((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ImageHandler_SetType(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImageHandler *arg1 = (wxImageHandler *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "type", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetType",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetType(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ImageHandler_SetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImageHandler *arg1 = (wxImageHandler *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "mimetype", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetMimeType",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMimeType((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject * ImageHandler_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxImageHandler, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ImageHistogram(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImageHistogram *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ImageHistogram",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxImageHistogram *)new wxImageHistogram(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImageHistogram, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ImageHistogram_MakeKey(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - unsigned char arg1 ; - unsigned char arg2 ; - unsigned char arg3 ; - unsigned long result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "r",(char *) "g",(char *) "b", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageHistogram_MakeKey",kwnames,&obj0,&obj1,&obj2)) goto fail; - arg1 = (unsigned char) SWIG_AsUnsignedChar(obj0); - if (PyErr_Occurred()) SWIG_fail; - arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (unsigned long)wxImageHistogram::MakeKey(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ImageHistogram_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImageHistogram *arg1 = (wxImageHistogram *) 0 ; - unsigned char *arg2 = (unsigned char *) 0 ; - unsigned char *arg3 = (unsigned char *) 0 ; - unsigned char *arg4 = (unsigned char *) 0 ; - unsigned char arg5 = (unsigned char) 1 ; - unsigned char arg6 = (unsigned char) 0 ; - unsigned char arg7 = (unsigned char) 0 ; - bool result; - unsigned char temp2 ; - unsigned char temp3 ; - unsigned char temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - arg4 = &temp4; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:ImageHistogram_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHistogram, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg5 = (unsigned char) SWIG_AsUnsignedChar(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg6 = (unsigned char) SWIG_AsUnsignedChar(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg7 = (unsigned char) SWIG_AsUnsignedChar(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxImageHistogram const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg4)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * ImageHistogram_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxImageHistogram, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Image(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - long arg2 = (long) wxBITMAP_TYPE_ANY ; - int arg3 = (int) -1 ; - wxImage *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "name",(char *) "type",(char *) "index", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Image",kwnames,&obj0,&obj1,&obj2)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - if (obj1) { - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxImage *)new wxImage((wxString const &)*arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_delete_Image(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Image",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_ImageFromMime(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString *arg2 = 0 ; - int arg3 = (int) -1 ; - wxImage *result; - bool temp1 = False ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "name",(char *) "mimetype",(char *) "index", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromMime",kwnames,&obj0,&obj1,&obj2)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxImage *)new wxImage((wxString const &)*arg1,(wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_new_ImageFromStream(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxInputStream *arg1 = 0 ; - long arg2 = (long) wxBITMAP_TYPE_ANY ; - int arg3 = (int) -1 ; - wxImage *result; - wxPyInputStream *temp1 ; - bool created1 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "stream",(char *) "type",(char *) "index", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_ImageFromStream",kwnames,&obj0,&obj1,&obj2)) goto fail; - { - if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { - arg1 = temp1->m_wxis; - created1 = False; - } else { - PyErr_Clear(); // clear the failure of the wxPyConvert above - arg1 = wxPyCBInputStream_create(obj0, False); - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); - SWIG_fail; - } - created1 = True; - } - } - if (obj1) { - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxImage *)new wxImage(*arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); - { - if (created1) - delete arg1; - } - return resultobj; - fail: - { - if (created1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_new_ImageFromStreamMime(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxInputStream *arg1 = 0 ; - wxString *arg2 = 0 ; - int arg3 = (int) -1 ; - wxImage *result; - wxPyInputStream *temp1 ; - bool created1 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "stream",(char *) "mimetype",(char *) "index", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromStreamMime",kwnames,&obj0,&obj1,&obj2)) goto fail; - { - if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { - arg1 = temp1->m_wxis; - created1 = False; - } else { - PyErr_Clear(); // clear the failure of the wxPyConvert above - arg1 = wxPyCBInputStream_create(obj0, False); - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); - SWIG_fail; - } - created1 = True; - } - } - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxImage *)new wxImage(*arg1,(wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); - { - if (created1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (created1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_new_EmptyImage__SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - int arg1 = (int) 0 ; - int arg2 = (int) 0 ; - bool arg3 = (bool) True ; - wxImage *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"|OOO:new_EmptyImage",&obj0,&obj1,&obj2)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxImage *)new_wxImage__SWIG_0(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_EmptyImage__SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxSize *arg1 = 0 ; - bool arg2 = (bool) True ; - wxImage *result; - wxSize temp1 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"O|O:new_EmptyImage",&obj0,&obj1)) goto fail; - { - arg1 = &temp1; - if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; - } - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxImage *)new_wxImage__SWIG_1((wxSize const &)*arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_EmptyImage(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if ((argc >= 0) && (argc <= 3)) { - int _v; - if (argc <= 0) { - return _wrap_new_EmptyImage__SWIG_0(self,args); - } - _v = SWIG_CheckInt(argv[0]); - if (_v) { - if (argc <= 1) { - return _wrap_new_EmptyImage__SWIG_0(self,args); - } - _v = SWIG_CheckInt(argv[1]); - if (_v) { - if (argc <= 2) { - return _wrap_new_EmptyImage__SWIG_0(self,args); - } - _v = SWIG_CheckBool(argv[2]); - if (_v) { - return _wrap_new_EmptyImage__SWIG_0(self,args); - } - } - } - } - if ((argc >= 1) && (argc <= 2)) { - int _v; - { - _v = wxPySimple_typecheck(argv[0], wxT("wxSize"), 2); - } - if (_v) { - if (argc <= 1) { - return _wrap_new_EmptyImage__SWIG_1(self,args); - } - _v = SWIG_CheckBool(argv[1]); - if (_v) { - return _wrap_new_EmptyImage__SWIG_1(self,args); - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_EmptyImage'"); - return NULL; -} - - -static PyObject *_wrap_new_ImageFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = 0 ; - wxImage *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "bitmap", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ImageFromBitmap",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxImage *)new_wxImage((wxBitmap const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_ImageFromData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - int arg2 ; - unsigned char *arg3 = (unsigned char *) 0 ; - wxImage *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "width",(char *) "height",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ImageFromData",kwnames,&obj0,&obj1,&obj2)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxImage *)new_wxImage(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Create(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Destroy",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Destroy(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_Scale(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - int arg2 ; - int arg3 ; - SwigValueWrapper< wxImage > result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Scale",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->Scale(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxImage * resultptr; - resultptr = new wxImage((wxImage &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_ShrinkBy(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - int arg2 ; - int arg3 ; - SwigValueWrapper< wxImage > result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "xFactor",(char *) "yFactor", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_ShrinkBy",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxImage const *)arg1)->ShrinkBy(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxImage * resultptr; - resultptr = new wxImage((wxImage &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_Rescale(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - int arg2 ; - int arg3 ; - wxImage *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Rescale",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxImage &_result_ref = (arg1)->Rescale(arg2,arg3); - result = (wxImage *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - int arg2 ; - int arg3 ; - unsigned char arg4 ; - unsigned char arg5 ; - unsigned char arg6 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "g",(char *) "b", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Image_SetRGB",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (unsigned char) SWIG_AsUnsignedChar(obj4); - if (PyErr_Occurred()) SWIG_fail; - arg6 = (unsigned char) SWIG_AsUnsignedChar(obj5); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetRGB(arg2,arg3,arg4,arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_GetRed(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - int arg2 ; - int arg3 ; - unsigned char result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetRed",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (unsigned char)(arg1)->GetRed(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedChar((unsigned char)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_GetGreen(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - int arg2 ; - int arg3 ; - unsigned char result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetGreen",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (unsigned char)(arg1)->GetGreen(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedChar((unsigned char)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_GetBlue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - int arg2 ; - int arg3 ; - unsigned char result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetBlue",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (unsigned char)(arg1)->GetBlue(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedChar((unsigned char)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_SetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - int arg2 ; - int arg3 ; - unsigned char arg4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "alpha", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetAlpha(arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_GetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - int arg2 ; - int arg3 ; - unsigned char result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetAlpha",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (unsigned char)(arg1)->GetAlpha(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedChar((unsigned char)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_HasAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasAlpha",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->HasAlpha(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - byte *arg2 = (byte *) 0 ; - byte *arg3 = (byte *) 0 ; - byte *arg4 = (byte *) 0 ; - byte arg5 = (byte) 0 ; - byte arg6 = (byte) 0 ; - byte arg7 = (byte) 0 ; - bool result; - byte temp2 ; - byte temp3 ; - byte temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - arg4 = &temp4; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Image_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg5 = (byte) SWIG_AsUnsignedChar(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg6 = (byte) SWIG_AsUnsignedChar(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg7 = (byte) SWIG_AsUnsignedChar(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxImage const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg4)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_SetMaskFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - wxImage *arg2 = 0 ; - byte arg3 ; - byte arg4 ; - byte arg5 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "mask",(char *) "mr",(char *) "mg",(char *) "mb", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Image_SetMaskFromImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - arg3 = (byte) SWIG_AsUnsignedChar(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (byte) SWIG_AsUnsignedChar(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (byte) SWIG_AsUnsignedChar(obj4); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetMaskFromImage((wxImage const &)*arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_CanRead(PyObject *self, 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:Image_CanRead",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxImage::CanRead((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 *_wrap_Image_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - long arg2 = (long) wxBITMAP_TYPE_ANY ; - int result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "name",(char *) "type", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_GetImageCount",kwnames,&obj0,&obj1)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - if (obj1) { - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxImage::GetImageCount((wxString const &)*arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_Image_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - wxString *arg2 = 0 ; - long arg3 = (long) wxBITMAP_TYPE_ANY ; - int arg4 = (int) -1 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name",(char *) "type",(char *) "index", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Image_LoadMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - wxString *arg2 = 0 ; - wxString *arg3 = 0 ; - int arg4 = (int) -1 ; - bool result; - bool temp2 = False ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name",(char *) "mimetype",(char *) "index", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxString const &)*arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_Image_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - wxString *arg2 = 0 ; - int arg3 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name",(char *) "type", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveFile",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Image_SaveMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - wxString *arg2 = 0 ; - wxString *arg3 = 0 ; - bool result; - bool temp2 = False ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name",(char *) "mimetype", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveMimeFile",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_Image_CanReadStream(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxInputStream *arg1 = 0 ; - bool result; - wxPyInputStream *temp1 ; - bool created1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "stream", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanReadStream",kwnames,&obj0)) goto fail; - { - if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { - arg1 = temp1->m_wxis; - created1 = False; - } else { - PyErr_Clear(); // clear the failure of the wxPyConvert above - arg1 = wxPyCBInputStream_create(obj0, False); - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); - SWIG_fail; - } - created1 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxImage::CanRead(*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (created1) - delete arg1; - } - return resultobj; - fail: - { - if (created1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_Image_LoadStream(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - wxInputStream *arg2 = 0 ; - long arg3 = (long) wxBITMAP_TYPE_ANY ; - int arg4 = (int) -1 ; - bool result; - wxPyInputStream *temp2 ; - bool created2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "stream",(char *) "type",(char *) "index", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { - arg2 = temp2->m_wxis; - created2 = False; - } else { - PyErr_Clear(); // clear the failure of the wxPyConvert above - arg2 = wxPyCBInputStream_create(obj1, False); - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); - SWIG_fail; - } - created2 = True; - } - } - if (obj2) { - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->LoadFile(*arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (created2) - delete arg2; - } - return resultobj; - fail: - { - if (created2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Image_LoadMimeStream(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - wxInputStream *arg2 = 0 ; - wxString *arg3 = 0 ; - int arg4 = (int) -1 ; - bool result; - wxPyInputStream *temp2 ; - bool created2 ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "stream",(char *) "mimetype",(char *) "index", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { - arg2 = temp2->m_wxis; - created2 = False; - } else { - PyErr_Clear(); // clear the failure of the wxPyConvert above - arg2 = wxPyCBInputStream_create(obj1, False); - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); - SWIG_fail; - } - created2 = True; - } - } - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->LoadFile(*arg2,(wxString const &)*arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (created2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (created2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_Image_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Ok",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Ok(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetWidth",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetWidth(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetHeight",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetHeight(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxImage_GetSize(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_GetSubImage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - wxRect *arg2 = 0 ; - SwigValueWrapper< wxImage > result; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetSubImage",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetSubImage((wxRect const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxImage * resultptr; - resultptr = new wxImage((wxImage &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - SwigValueWrapper< wxImage > result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Copy",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->Copy(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxImage * resultptr; - resultptr = new wxImage((wxImage &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - wxImage *arg2 = 0 ; - int arg3 ; - int arg4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "image",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_Paste",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Paste((wxImage const &)*arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxImage_GetData(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetData",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxImage_SetData(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_GetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetDataBuffer",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxImage_GetDataBuffer(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_SetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetDataBuffer",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxImage_SetDataBuffer(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_GetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxImage_GetAlphaData(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_SetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaData",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxImage_SetAlphaData(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_GetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaBuffer",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxImage_GetAlphaBuffer(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_SetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaBuffer",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxImage_SetAlphaBuffer(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - unsigned char arg2 ; - unsigned char arg3 ; - unsigned char arg4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetMaskColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMaskColour(arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_GetMaskRed(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - unsigned char result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskRed",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (unsigned char)(arg1)->GetMaskRed(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedChar((unsigned char)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_GetMaskGreen(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - unsigned char result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskGreen",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (unsigned char)(arg1)->GetMaskGreen(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedChar((unsigned char)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_GetMaskBlue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - unsigned char result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskBlue",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (unsigned char)(arg1)->GetMaskBlue(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedChar((unsigned char)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - bool arg2 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "mask", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_SetMask",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMask(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_HasMask(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasMask",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->HasMask(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_Rotate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - double arg2 ; - wxPoint *arg3 = 0 ; - bool arg4 = (bool) True ; - wxPoint *arg5 = (wxPoint *) NULL ; - SwigValueWrapper< wxImage > result; - wxPoint temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "angle",(char *) "centre_of_rotation",(char *) "interpolating",(char *) "offset_after_rotation", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Image_Rotate",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (double) SWIG_AsDouble(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - if (obj3) { - arg4 = (bool) SWIG_AsBool(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj4) { - if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxImage const *)arg1)->Rotate(arg2,(wxPoint const &)*arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxImage * resultptr; - resultptr = new wxImage((wxImage &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_Rotate90(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - bool arg2 = (bool) True ; - SwigValueWrapper< wxImage > result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "clockwise", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Rotate90",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->Rotate90(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxImage * resultptr; - resultptr = new wxImage((wxImage &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_Mirror(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - bool arg2 = (bool) True ; - SwigValueWrapper< wxImage > result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "horizontally", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Mirror",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->Mirror(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxImage * resultptr; - resultptr = new wxImage((wxImage &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - unsigned char arg2 ; - unsigned char arg3 ; - unsigned char arg4 ; - unsigned char arg5 ; - unsigned char arg6 ; - unsigned char arg7 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "r1",(char *) "g1",(char *) "b1",(char *) "r2",(char *) "g2",(char *) "b2", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:Image_Replace",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (unsigned char) SWIG_AsUnsignedChar(obj4); - if (PyErr_Occurred()) SWIG_fail; - arg6 = (unsigned char) SWIG_AsUnsignedChar(obj5); - if (PyErr_Occurred()) SWIG_fail; - arg7 = (unsigned char) SWIG_AsUnsignedChar(obj6); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Replace(arg2,arg3,arg4,arg5,arg6,arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_ConvertToMono(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - unsigned char arg2 ; - unsigned char arg3 ; - unsigned char arg4 ; - SwigValueWrapper< wxImage > result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMono",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxImage const *)arg1)->ConvertToMono(arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxImage * resultptr; - resultptr = new wxImage((wxImage &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - wxString *arg2 = 0 ; - wxString *arg3 = 0 ; - bool temp2 = False ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name",(char *) "value", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOption",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetOption((wxString const &)*arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_Image_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - wxString *arg2 = 0 ; - int arg3 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name",(char *) "value", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOptionInt",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetOption((wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Image_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - wxString *arg2 = 0 ; - wxString result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOption",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxImage const *)arg1)->GetOption((wxString const &)*arg2); - - 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 (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Image_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - wxString *arg2 = 0 ; - int result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOptionInt",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxImage const *)arg1)->GetOptionInt((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Image_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - wxString *arg2 = 0 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_HasOption",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxImage const *)arg1)->HasOption((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Image_CountColours(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - unsigned long arg2 = (unsigned long) (unsigned long) -1 ; - unsigned long result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "stopafter", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_CountColours",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (unsigned long)(arg1)->CountColours(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_ComputeHistogram(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - wxImageHistogram *arg2 = 0 ; - unsigned long result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "h", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_ComputeHistogram",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageHistogram, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (unsigned long)(arg1)->ComputeHistogram(*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImageHandler *arg1 = (wxImageHandler *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "handler", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_AddHandler",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxImage::AddHandler(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_InsertHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImageHandler *arg1 = (wxImageHandler *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "handler", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_InsertHandler",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxImage::InsertHandler(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_RemoveHandler(PyObject *self, 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:Image_RemoveHandler",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxImage::RemoveHandler((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 *_wrap_Image_GetImageExtWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Image_GetImageExtWildcard",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxImage::GetImageExtWildcard(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - wxBitmap result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_ConvertToBitmap",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxImage_ConvertToBitmap(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxBitmap * resultptr; - resultptr = new wxBitmap((wxBitmap &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Image_ConvertToMonoBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = (wxImage *) 0 ; - unsigned char arg2 ; - unsigned char arg3 ; - unsigned char arg4 ; - wxBitmap result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMonoBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxImage_ConvertToMonoBitmap(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxBitmap * resultptr; - resultptr = new wxBitmap((wxBitmap &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * Image_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxImage, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_InitAllImageHandlers(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":InitAllImageHandlers",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxInitAllImageHandlers(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static int _wrap_NullImage_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable NullImage is read-only."); - return 1; -} - - -static PyObject *_wrap_NullImage_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(&wxNullImage), SWIGTYPE_p_wxImage, 0); - return pyobj; -} - - -static int _wrap_IMAGE_OPTION_BMP_FORMAT_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_BMP_FORMAT is read-only."); - return 1; -} - - -static PyObject *_wrap_IMAGE_OPTION_BMP_FORMAT_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_X is read-only."); - return 1; -} - - -static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_Y is read-only."); - return 1; -} - - -static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_IMAGE_OPTION_RESOLUTION_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTION is read-only."); - return 1; -} - - -static PyObject *_wrap_IMAGE_OPTION_RESOLUTION_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTIONUNIT is read-only."); - return 1; -} - - -static PyObject *_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_BMPHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBMPHandler *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_BMPHandler",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxBMPHandler *)new wxBMPHandler(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBMPHandler, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * BMPHandler_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxBMPHandler, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ICOHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxICOHandler *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ICOHandler",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxICOHandler *)new wxICOHandler(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxICOHandler, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * ICOHandler_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxICOHandler, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_CURHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCURHandler *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_CURHandler",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxCURHandler *)new wxCURHandler(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCURHandler, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * CURHandler_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxCURHandler, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ANIHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxANIHandler *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ANIHandler",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxANIHandler *)new wxANIHandler(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxANIHandler, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * ANIHandler_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxANIHandler, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PNGHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPNGHandler *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNGHandler",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPNGHandler *)new wxPNGHandler(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNGHandler, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * PNGHandler_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPNGHandler, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_GIFHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGIFHandler *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GIFHandler",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGIFHandler *)new wxGIFHandler(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGIFHandler, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * GIFHandler_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxGIFHandler, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PCXHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPCXHandler *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PCXHandler",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPCXHandler *)new wxPCXHandler(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPCXHandler, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * PCXHandler_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPCXHandler, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_JPEGHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJPEGHandler *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_JPEGHandler",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxJPEGHandler *)new wxJPEGHandler(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJPEGHandler, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * JPEGHandler_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxJPEGHandler, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PNMHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPNMHandler *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNMHandler",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPNMHandler *)new wxPNMHandler(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNMHandler, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * PNMHandler_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPNMHandler, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_XPMHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxXPMHandler *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_XPMHandler",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxXPMHandler *)new wxXPMHandler(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXPMHandler, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * XPMHandler_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxXPMHandler, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_TIFFHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTIFFHandler *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TIFFHandler",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxTIFFHandler *)new wxTIFFHandler(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTIFFHandler, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * TIFFHandler_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxTIFFHandler, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_EvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvtHandler *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EvtHandler",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxEvtHandler *)new wxEvtHandler(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_EvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; - wxEvtHandler *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetNextHandler",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxEvtHandler *)(arg1)->GetNextHandler(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_EvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; - wxEvtHandler *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetPreviousHandler",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxEvtHandler *)(arg1)->GetPreviousHandler(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_EvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; - wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "handler", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetNextHandler",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetNextHandler(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_EvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; - wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "handler", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetPreviousHandler",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPreviousHandler(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_EvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetEvtHandlerEnabled",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetEvtHandlerEnabled(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_EvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "enabled", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetEvtHandlerEnabled",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetEvtHandlerEnabled(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_EvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; - wxEvent *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "event", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_ProcessEvent",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->ProcessEvent(*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_EvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; - wxEvent *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "event", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_AddPendingEvent",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AddPendingEvent(*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_EvtHandler_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_ProcessPendingEvents",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ProcessPendingEvents(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_EvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - PyObject *arg5 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType",(char *) "func", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:EvtHandler_Connect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = obj4; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxEvtHandler_Connect(arg1,arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_EvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; - int arg2 ; - int arg3 = (int) -1 ; - wxEventType arg4 = (wxEventType) wxEVT_NULL ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:EvtHandler_Disconnect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (wxEventType) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxEvtHandler_Disconnect(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_EvtHandler__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "_self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler__setOORInfo",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxEvtHandler__setOORInfo(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * EvtHandler_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxEvtHandler, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_NewEventType(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEventType result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewEventType",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxEventType)wxNewEventType(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_Event(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvent *arg1 = (wxEvent *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Event",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Event_SetEventType(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvent *arg1 = (wxEvent *) 0 ; - wxEventType arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "typ", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventType",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxEventType) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetEventType(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Event_GetEventType(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvent *arg1 = (wxEvent *) 0 ; - wxEventType result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventType",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxEventType)((wxEvent const *)arg1)->GetEventType(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Event_GetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvent *arg1 = (wxEvent *) 0 ; - wxObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventObject",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxObject *)((wxEvent const *)arg1)->GetEventObject(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Event_SetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvent *arg1 = (wxEvent *) 0 ; - wxObject *arg2 = (wxObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "obj", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventObject",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetEventObject(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Event_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvent *arg1 = (wxEvent *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetTimestamp",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxEvent const *)arg1)->GetTimestamp(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Event_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvent *arg1 = (wxEvent *) 0 ; - long arg2 = (long) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "ts", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_SetTimestamp",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetTimestamp(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Event_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvent *arg1 = (wxEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetId",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxEvent const *)arg1)->GetId(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Event_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvent *arg1 = (wxEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "Id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetId",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetId(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Event_IsCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvent *arg1 = (wxEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_IsCommandEvent",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxEvent const *)arg1)->IsCommandEvent(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Event_Skip(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvent *arg1 = (wxEvent *) 0 ; - bool arg2 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "skip", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_Skip",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Skip(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Event_GetSkipped(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvent *arg1 = (wxEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetSkipped",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxEvent const *)arg1)->GetSkipped(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Event_ShouldPropagate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvent *arg1 = (wxEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_ShouldPropagate",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxEvent const *)arg1)->ShouldPropagate(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Event_StopPropagation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvent *arg1 = (wxEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_StopPropagation",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->StopPropagation(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Event_ResumePropagation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvent *arg1 = (wxEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "propagationLevel", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_ResumePropagation",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ResumePropagation(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Event_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvent *arg1 = (wxEvent *) 0 ; - wxEvent *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_Clone",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxEvent *)(arg1)->Clone(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject * Event_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvent *arg1 = 0 ; - wxPropagationDisabler *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "event", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagationDisabler",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPropagationDisabler *)new wxPropagationDisabler(*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagationDisabler, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPropagationDisabler *arg1 = (wxPropagationDisabler *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagationDisabler",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagationDisabler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * PropagationDisabler_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPropagationDisabler, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvent *arg1 = 0 ; - wxPropagateOnce *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "event", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagateOnce",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPropagateOnce *)new wxPropagateOnce(*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagateOnce, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPropagateOnce *arg1 = (wxPropagateOnce *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagateOnce",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagateOnce, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * PropagateOnce_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPropagateOnce, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_CommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEventType arg1 = (wxEventType) wxEVT_NULL ; - int arg2 = (int) 0 ; - wxCommandEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "commandType",(char *) "winid", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CommandEvent",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (wxEventType) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxCommandEvent *)new wxCommandEvent(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCommandEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CommandEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetSelection",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxCommandEvent const *)arg1)->GetSelection(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CommandEvent_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "s", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetString",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetString((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_CommandEvent_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetString",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxCommandEvent const *)arg1)->GetString(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CommandEvent_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsChecked",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxCommandEvent const *)arg1)->IsChecked(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CommandEvent_IsSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsSelection",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxCommandEvent const *)arg1)->IsSelection(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CommandEvent_SetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "extraLong", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetExtraLong",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetExtraLong(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CommandEvent_GetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetExtraLong",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxCommandEvent const *)arg1)->GetExtraLong(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CommandEvent_SetInt(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "i", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetInt",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetInt(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CommandEvent_GetInt(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetInt",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxCommandEvent const *)arg1)->GetInt(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CommandEvent_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; - wxEvent *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_Clone",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxEvent *)((wxCommandEvent const *)arg1)->Clone(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject * CommandEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxCommandEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_NotifyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEventType arg1 = (wxEventType) wxEVT_NULL ; - int arg2 = (int) 0 ; - wxNotifyEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "commandType",(char *) "winid", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_NotifyEvent",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (wxEventType) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxNotifyEvent *)new wxNotifyEvent(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotifyEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NotifyEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Veto",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Veto(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NotifyEvent_Allow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Allow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Allow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NotifyEvent_IsAllowed(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_IsAllowed",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->IsAllowed(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * NotifyEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxNotifyEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ScrollEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEventType arg1 = (wxEventType) wxEVT_NULL ; - int arg2 = (int) 0 ; - int arg3 = (int) 0 ; - int arg4 = (int) 0 ; - wxScrollEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "commandType",(char *) "winid",(char *) "pos",(char *) "orient", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ScrollEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if (obj0) { - arg1 = (wxEventType) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxScrollEvent *)new wxScrollEvent(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrollEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetOrientation",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxScrollEvent const *)arg1)->GetOrientation(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrollEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxScrollEvent const *)arg1)->GetPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrollEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "orient", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetOrientation(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrollEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPosition(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * ScrollEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxScrollEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ScrollWinEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEventType arg1 = (wxEventType) wxEVT_NULL ; - int arg2 = (int) 0 ; - int arg3 = (int) 0 ; - wxScrollWinEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "commandType",(char *) "pos",(char *) "orient", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ScrollWinEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; - if (obj0) { - arg1 = (wxEventType) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxScrollWinEvent *)new wxScrollWinEvent(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollWinEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrollWinEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetOrientation",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxScrollWinEvent const *)arg1)->GetOrientation(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrollWinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxScrollWinEvent const *)arg1)->GetPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrollWinEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "orient", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetOrientation(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrollWinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPosition(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * ScrollWinEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxScrollWinEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_MouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEventType arg1 = (wxEventType) wxEVT_NULL ; - wxMouseEvent *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "mouseType", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MouseEvent",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (wxEventType) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMouseEvent *)new wxMouseEvent(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsButton",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMouseEvent const *)arg1)->IsButton(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - int arg2 = (int) wxMOUSE_BTN_ANY ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "but", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMouseEvent const *)arg1)->ButtonDown(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_ButtonDClick(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - int arg2 = (int) wxMOUSE_BTN_ANY ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "but", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDClick",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMouseEvent const *)arg1)->ButtonDClick(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - int arg2 = (int) wxMOUSE_BTN_ANY ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "but", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMouseEvent const *)arg1)->ButtonUp(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_Button(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "but", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_Button",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMouseEvent const *)arg1)->Button(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "but", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMouseEvent const *)arg1)->ButtonIsDown(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_GetButton(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetButton",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxMouseEvent const *)arg1)->GetButton(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ControlDown",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMouseEvent const *)arg1)->ControlDown(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MetaDown",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMouseEvent const *)arg1)->MetaDown(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_AltDown",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMouseEvent const *)arg1)->AltDown(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ShiftDown",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMouseEvent const *)arg1)->ShiftDown(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_LeftDown(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDown",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMouseEvent const *)arg1)->LeftDown(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_MiddleDown(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDown",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMouseEvent const *)arg1)->MiddleDown(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_RightDown(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDown",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMouseEvent const *)arg1)->RightDown(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_LeftUp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftUp",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMouseEvent const *)arg1)->LeftUp(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_MiddleUp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleUp",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMouseEvent const *)arg1)->MiddleUp(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_RightUp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightUp",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMouseEvent const *)arg1)->RightUp(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_LeftDClick(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDClick",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMouseEvent const *)arg1)->LeftDClick(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_MiddleDClick(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDClick",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMouseEvent const *)arg1)->MiddleDClick(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_RightDClick(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDClick",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMouseEvent const *)arg1)->RightDClick(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_LeftIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftIsDown",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->LeftIsDown(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_MiddleIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleIsDown",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->MiddleIsDown(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_RightIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightIsDown",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->RightIsDown(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_Dragging(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Dragging",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMouseEvent const *)arg1)->Dragging(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_Moving(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Moving",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMouseEvent const *)arg1)->Moving(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_Entering(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Entering",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMouseEvent const *)arg1)->Entering(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_Leaving(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Leaving",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMouseEvent const *)arg1)->Leaving(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - long *arg2 = (long *) 0 ; - long *arg3 = (long *) 0 ; - long temp2 ; - long temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPositionTuple",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->GetPosition(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_GetLogicalPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - wxDC *arg2 = 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "dc", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_GetLogicalPosition",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxMouseEvent const *)arg1)->GetLogicalPosition((wxDC const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetX",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxMouseEvent const *)arg1)->GetX(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetY",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxMouseEvent const *)arg1)->GetY(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_GetWheelRotation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelRotation",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxMouseEvent const *)arg1)->GetWheelRotation(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_GetWheelDelta(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelDelta",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxMouseEvent const *)arg1)->GetWheelDelta(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_GetLinesPerAction(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetLinesPerAction",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxMouseEvent const *)arg1)->GetLinesPerAction(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_IsPageScroll(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsPageScroll",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMouseEvent const *)arg1)->IsPageScroll(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_x", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_x = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_x_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->m_x); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_y = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_y_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->m_y); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_m_leftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_leftDown", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_leftDown_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_leftDown = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_m_leftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_leftDown_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (bool) ((arg1)->m_leftDown); - - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_m_middleDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_middleDown", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_middleDown_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_middleDown = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_m_middleDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_middleDown_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (bool) ((arg1)->m_middleDown); - - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_m_rightDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_rightDown", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_rightDown_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_rightDown = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_m_rightDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_rightDown_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (bool) ((arg1)->m_rightDown); - - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_controlDown", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_controlDown = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_controlDown_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (bool) ((arg1)->m_controlDown); - - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_shiftDown", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_shiftDown = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (bool) ((arg1)->m_shiftDown); - - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_altDown", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_altDown = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_altDown_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (bool) ((arg1)->m_altDown); - - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_metaDown", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_metaDown = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_metaDown_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (bool) ((arg1)->m_metaDown); - - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_m_wheelRotation_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_wheelRotation", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelRotation_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_wheelRotation = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_m_wheelRotation_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelRotation_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->m_wheelRotation); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_m_wheelDelta_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_wheelDelta", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelDelta_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_wheelDelta = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_m_wheelDelta_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelDelta_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->m_wheelDelta); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_m_linesPerAction_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_linesPerAction", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_linesPerAction_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_linesPerAction = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseEvent_m_linesPerAction_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_linesPerAction_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->m_linesPerAction); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * MouseEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxMouseEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_SetCursorEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - int arg2 = (int) 0 ; - wxSetCursorEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SetCursorEvent",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSetCursorEvent *)new wxSetCursorEvent(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSetCursorEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SetCursorEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetX",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSetCursorEvent const *)arg1)->GetX(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SetCursorEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetY",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSetCursorEvent const *)arg1)->GetY(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SetCursorEvent_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; - wxCursor *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "cursor", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SetCursorEvent_SetCursor",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetCursor((wxCursor const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SetCursorEvent_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; - wxCursor *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetCursor",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxCursor const &_result_ref = ((wxSetCursorEvent const *)arg1)->GetCursor(); - result = (wxCursor *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxCursor* resultptr = new wxCursor(*result); - resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxCursor, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SetCursorEvent_HasCursor(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_HasCursor",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxSetCursorEvent const *)arg1)->HasCursor(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * SetCursorEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxSetCursorEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_KeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEventType arg1 = (wxEventType) wxEVT_NULL ; - wxKeyEvent *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "keyType", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_KeyEvent",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (wxEventType) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxKeyEvent *)new wxKeyEvent(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ControlDown",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxKeyEvent const *)arg1)->ControlDown(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_MetaDown",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxKeyEvent const *)arg1)->MetaDown(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_AltDown",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxKeyEvent const *)arg1)->AltDown(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ShiftDown",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxKeyEvent const *)arg1)->ShiftDown(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_HasModifiers(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_HasModifiers",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxKeyEvent const *)arg1)->HasModifiers(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetKeyCode",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxKeyEvent const *)arg1)->GetKeyCode(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_GetUniChar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetUniChar",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxKeyEvent_GetUniChar(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_GetRawKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - unsigned int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyCode",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyCode(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedInt((unsigned int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_GetRawKeyFlags(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - unsigned int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyFlags",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyFlags(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedInt((unsigned int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - long *arg2 = (long *) 0 ; - long *arg3 = (long *) 0 ; - long temp2 ; - long temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPositionTuple",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->GetPosition(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetX",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxKeyEvent const *)arg1)->GetX(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetY",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxKeyEvent const *)arg1)->GetY(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_x", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_x = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_x_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->m_x); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_y = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_y_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->m_y); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_m_keyCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_keyCode", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_keyCode_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_keyCode = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_m_keyCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_keyCode_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (long) ((arg1)->m_keyCode); - - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_controlDown", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_controlDown = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_controlDown_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (bool) ((arg1)->m_controlDown); - - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_shiftDown", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_shiftDown = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (bool) ((arg1)->m_shiftDown); - - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_altDown", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_altDown = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_altDown_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (bool) ((arg1)->m_altDown); - - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_metaDown", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_metaDown = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_metaDown_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (bool) ((arg1)->m_metaDown); - - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_m_scanCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_scanCode", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_scanCode_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_scanCode = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_m_scanCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_scanCode_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (bool) ((arg1)->m_scanCode); - - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_m_rawCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - unsigned int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_rawCode", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawCode_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_rawCode = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_m_rawCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - unsigned int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawCode_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (unsigned int) ((arg1)->m_rawCode); - - resultobj = SWIG_FromUnsignedInt((unsigned int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_m_rawFlags_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - unsigned int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_rawFlags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawFlags_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_rawFlags = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_KeyEvent_m_rawFlags_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; - unsigned int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawFlags_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (unsigned int) ((arg1)->m_rawFlags); - - resultobj = SWIG_FromUnsignedInt((unsigned int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * KeyEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxKeyEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_SizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSize const &arg1_defvalue = wxDefaultSize ; - wxSize *arg1 = (wxSize *) &arg1_defvalue ; - int arg2 = (int) 0 ; - wxSizeEvent *result; - wxSize temp1 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "sz",(char *) "winid", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SizeEvent",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - { - arg1 = &temp1; - if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; - } - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSizeEvent *)new wxSizeEvent((wxSize const &)*arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizeEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizeEvent_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxSizeEvent const *)arg1)->GetSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizeEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; - wxRect result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetRect",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxSizeEvent const *)arg1)->GetRect(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxRect * resultptr; - resultptr = new wxRect((wxRect &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizeEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; - wxRect arg2 ; - wxRect *argp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; - arg2 = *argp2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetRect(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizeEvent_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; - wxSize arg2 ; - wxSize *argp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize, - SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; - arg2 = *argp2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxSizeEvent_SetSize(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizeEvent_m_size_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; - wxSize *arg2 = (wxSize *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_size_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSize, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (arg1) (arg1)->m_size = *arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizeEvent_m_size_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; - wxSize *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_size_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (wxSize *)& ((arg1)->m_size); - - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizeEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; - wxRect *arg2 = (wxRect *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (arg1) (arg1)->m_rect = *arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizeEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; - wxRect *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_rect_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (wxRect *)& ((arg1)->m_rect); - - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject * SizeEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxSizeEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_MoveEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint const &arg1_defvalue = wxDefaultPosition ; - wxPoint *arg1 = (wxPoint *) &arg1_defvalue ; - int arg2 = (int) 0 ; - wxMoveEvent *result; - wxPoint temp1 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "pos",(char *) "winid", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MoveEvent",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - { - arg1 = &temp1; - if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; - } - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMoveEvent *)new wxMoveEvent((wxPoint const &)*arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMoveEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MoveEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxMoveEvent const *)arg1)->GetPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MoveEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; - wxRect result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetRect",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxMoveEvent const *)arg1)->GetRect(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxRect * resultptr; - resultptr = new wxRect((wxRect &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MoveEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; - wxRect arg2 ; - wxRect *argp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; - arg2 = *argp2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetRect(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MoveEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; - wxPoint arg2 ; - wxPoint *argp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint, - SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; - arg2 = *argp2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxMoveEvent_SetPosition(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MoveEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; - wxPoint *arg2 = (wxPoint *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (arg1) (arg1)->m_pos = *arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MoveEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; - wxPoint *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_pos_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (wxPoint *)& ((arg1)->m_pos); - - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MoveEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; - wxRect *arg2 = (wxRect *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (arg1) (arg1)->m_rect = *arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MoveEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; - wxRect *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_rect_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (wxRect *)& ((arg1)->m_rect); - - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject * MoveEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxMoveEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - wxPaintEvent *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "Id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaintEvent",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPaintEvent *)new wxPaintEvent(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * PaintEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPaintEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_NcPaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - wxNcPaintEvent *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "winid", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_NcPaintEvent",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxNcPaintEvent *)new wxNcPaintEvent(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNcPaintEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * NcPaintEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxNcPaintEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_EraseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - wxDC *arg2 = (wxDC *) (wxDC *) NULL ; - wxEraseEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "Id",(char *) "dc", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_EraseEvent",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxEraseEvent *)new wxEraseEvent(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEraseEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_EraseEvent_GetDC(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEraseEvent *arg1 = (wxEraseEvent *) 0 ; - wxDC *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EraseEvent_GetDC",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEraseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxDC *)((wxEraseEvent const *)arg1)->GetDC(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * EraseEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxEraseEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_FocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEventType arg1 = (wxEventType) wxEVT_NULL ; - int arg2 = (int) 0 ; - wxFocusEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "type",(char *) "winid", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FocusEvent",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (wxEventType) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFocusEvent *)new wxFocusEvent(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFocusEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FocusEvent_GetWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)((wxFocusEvent const *)arg1)->GetWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FocusEvent_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "win", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FocusEvent_SetWindow",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetWindow(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * FocusEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxFocusEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ChildFocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) NULL ; - wxChildFocusEvent *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "win", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ChildFocusEvent",kwnames,&obj0)) goto fail; - if (obj0) { - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxChildFocusEvent *)new wxChildFocusEvent(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChildFocusEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ChildFocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxChildFocusEvent *arg1 = (wxChildFocusEvent *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ChildFocusEvent_GetWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChildFocusEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)((wxChildFocusEvent const *)arg1)->GetWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * ChildFocusEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxChildFocusEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ActivateEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEventType arg1 = (wxEventType) wxEVT_NULL ; - bool arg2 = (bool) True ; - int arg3 = (int) 0 ; - wxActivateEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "type",(char *) "active",(char *) "Id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ActivateEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; - if (obj0) { - arg1 = (wxEventType) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxActivateEvent *)new wxActivateEvent(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxActivateEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ActivateEvent_GetActive(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxActivateEvent *arg1 = (wxActivateEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActivateEvent_GetActive",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxActivateEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxActivateEvent const *)arg1)->GetActive(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * ActivateEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxActivateEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_InitDialogEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - wxInitDialogEvent *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "Id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_InitDialogEvent",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxInitDialogEvent *)new wxInitDialogEvent(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInitDialogEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * InitDialogEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxInitDialogEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_MenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEventType arg1 = (wxEventType) wxEVT_NULL ; - int arg2 = (int) 0 ; - wxMenu *arg3 = (wxMenu *) NULL ; - wxMenuEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "type",(char *) "winid",(char *) "menu", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_MenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; - if (obj0) { - arg1 = (wxEventType) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuEvent *)new wxMenuEvent(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuEvent_GetMenuId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenuId",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxMenuEvent const *)arg1)->GetMenuId(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuEvent_IsPopup(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_IsPopup",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMenuEvent const *)arg1)->IsPopup(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuEvent_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; - wxMenu *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenu",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenu *)((wxMenuEvent const *)arg1)->GetMenu(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * MenuEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxMenuEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_CloseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEventType arg1 = (wxEventType) wxEVT_NULL ; - int arg2 = (int) 0 ; - wxCloseEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "type",(char *) "winid", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CloseEvent",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (wxEventType) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxCloseEvent *)new wxCloseEvent(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCloseEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CloseEvent_SetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "logOff", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetLoggingOff",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetLoggingOff(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CloseEvent_GetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetLoggingOff",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxCloseEvent const *)arg1)->GetLoggingOff(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CloseEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; - bool arg2 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "veto", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CloseEvent_Veto",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Veto(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CloseEvent_SetCanVeto(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "canVeto", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetCanVeto",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetCanVeto(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CloseEvent_CanVeto(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_CanVeto",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxCloseEvent const *)arg1)->CanVeto(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CloseEvent_GetVeto(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetVeto",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxCloseEvent const *)arg1)->GetVeto(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * CloseEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxCloseEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ShowEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - bool arg2 = (bool) False ; - wxShowEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "winid",(char *) "show", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ShowEvent",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxShowEvent *)new wxShowEvent(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxShowEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ShowEvent_SetShow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxShowEvent *arg1 = (wxShowEvent *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "show", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShowEvent_SetShow",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetShow(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ShowEvent_GetShow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxShowEvent *arg1 = (wxShowEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShowEvent_GetShow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxShowEvent const *)arg1)->GetShow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * ShowEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxShowEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_IconizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - bool arg2 = (bool) True ; - wxIconizeEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "id",(char *) "iconized", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconizeEvent",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxIconizeEvent *)new wxIconizeEvent(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconizeEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IconizeEvent_Iconized(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIconizeEvent *arg1 = (wxIconizeEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconizeEvent_Iconized",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconizeEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Iconized(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * IconizeEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxIconizeEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_MaximizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - wxMaximizeEvent *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MaximizeEvent",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMaximizeEvent *)new wxMaximizeEvent(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMaximizeEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * MaximizeEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxMaximizeEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_DropFilesEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DropFilesEvent_GetNumberOfFiles(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetNumberOfFiles",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetNumberOfFiles(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DropFilesEvent_GetFiles(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetFiles",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxDropFilesEvent_GetFiles(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject * DropFilesEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxDropFilesEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_UpdateUIEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - wxUpdateUIEvent *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "commandId", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_UpdateUIEvent",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxUpdateUIEvent *)new wxUpdateUIEvent(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxUpdateUIEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_UpdateUIEvent_GetChecked(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetChecked",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxUpdateUIEvent const *)arg1)->GetChecked(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_UpdateUIEvent_GetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetEnabled",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxUpdateUIEvent const *)arg1)->GetEnabled(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_UpdateUIEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetText",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxUpdateUIEvent const *)arg1)->GetText(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_UpdateUIEvent_GetSetText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetText",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetText(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_UpdateUIEvent_GetSetChecked(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetChecked",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetChecked(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_UpdateUIEvent_GetSetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetEnabled",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetEnabled(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_UpdateUIEvent_Check(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "check", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Check",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Check(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_UpdateUIEvent_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "enable", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Enable",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Enable(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_UpdateUIEvent_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "text", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_SetText",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetText((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_UpdateUIEvent_SetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - long arg1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "updateInterval", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetUpdateInterval",kwnames,&obj0)) goto fail; - arg1 = (long) SWIG_AsLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxUpdateUIEvent::SetUpdateInterval(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_UpdateUIEvent_GetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - long result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetUpdateInterval",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)wxUpdateUIEvent::GetUpdateInterval(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_UpdateUIEvent_CanUpdate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "win", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_CanUpdate",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxUpdateUIEvent::CanUpdate(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_UpdateUIEvent_ResetUpdateTime(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_ResetUpdateTime",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxUpdateUIEvent::ResetUpdateTime(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_UpdateUIEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "mode", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetMode",kwnames,&obj0)) goto fail; - arg1 = (wxUpdateUIMode) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxUpdateUIEvent::SetMode((wxUpdateUIMode )arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_UpdateUIEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetMode",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxUpdateUIEvent::GetMode(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * UpdateUIEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxUpdateUIEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_SysColourChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSysColourChangedEvent *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SysColourChangedEvent",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSysColourChangedEvent *)new wxSysColourChangedEvent(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSysColourChangedEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * SysColourChangedEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxSysColourChangedEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_MouseCaptureChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - wxWindow *arg2 = (wxWindow *) NULL ; - wxMouseCaptureChangedEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "winid",(char *) "gainedCapture", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MouseCaptureChangedEvent",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMouseCaptureChangedEvent *)new wxMouseCaptureChangedEvent(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseCaptureChangedEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MouseCaptureChangedEvent_GetCapturedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMouseCaptureChangedEvent *arg1 = (wxMouseCaptureChangedEvent *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseCaptureChangedEvent_GetCapturedWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseCaptureChangedEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)((wxMouseCaptureChangedEvent const *)arg1)->GetCapturedWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * MouseCaptureChangedEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxMouseCaptureChangedEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_DisplayChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDisplayChangedEvent *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DisplayChangedEvent",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxDisplayChangedEvent *)new wxDisplayChangedEvent(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplayChangedEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * DisplayChangedEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxDisplayChangedEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PaletteChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - wxPaletteChangedEvent *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaletteChangedEvent",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPaletteChangedEvent *)new wxPaletteChangedEvent(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaletteChangedEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PaletteChangedEvent_SetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "win", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PaletteChangedEvent_SetChangedWindow",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetChangedWindow(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PaletteChangedEvent_GetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PaletteChangedEvent_GetChangedWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)(arg1)->GetChangedWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * PaletteChangedEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPaletteChangedEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_QueryNewPaletteEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - wxQueryNewPaletteEvent *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "winid", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryNewPaletteEvent",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxQueryNewPaletteEvent *)new wxQueryNewPaletteEvent(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxQueryNewPaletteEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_QueryNewPaletteEvent_SetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "realized", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryNewPaletteEvent_SetPaletteRealized",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPaletteRealized(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_QueryNewPaletteEvent_GetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryNewPaletteEvent_GetPaletteRealized",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxQueryNewPaletteEvent const *)arg1)->GetPaletteRealized(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * QueryNewPaletteEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxQueryNewPaletteEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_NavigationKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNavigationKeyEvent *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NavigationKeyEvent",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxNavigationKeyEvent *)new wxNavigationKeyEvent(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNavigationKeyEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NavigationKeyEvent_GetDirection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetDirection",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxNavigationKeyEvent const *)arg1)->GetDirection(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NavigationKeyEvent_SetDirection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bForward", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetDirection",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDirection(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NavigationKeyEvent_IsWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_IsWindowChange",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxNavigationKeyEvent const *)arg1)->IsWindowChange(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NavigationKeyEvent_SetWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bIs", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetWindowChange",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetWindowChange(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NavigationKeyEvent_GetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetCurrentFocus",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)((wxNavigationKeyEvent const *)arg1)->GetCurrentFocus(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NavigationKeyEvent_SetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "win", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetCurrentFocus",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetCurrentFocus(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * NavigationKeyEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxNavigationKeyEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_WindowCreateEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) NULL ; - wxWindowCreateEvent *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "win", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowCreateEvent",kwnames,&obj0)) goto fail; - if (obj0) { - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindowCreateEvent *)new wxWindowCreateEvent(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowCreateEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_WindowCreateEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindowCreateEvent *arg1 = (wxWindowCreateEvent *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowCreateEvent_GetWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowCreateEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)((wxWindowCreateEvent const *)arg1)->GetWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * WindowCreateEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxWindowCreateEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_WindowDestroyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) NULL ; - wxWindowDestroyEvent *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "win", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDestroyEvent",kwnames,&obj0)) goto fail; - if (obj0) { - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindowDestroyEvent *)new wxWindowDestroyEvent(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDestroyEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_WindowDestroyEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindowDestroyEvent *arg1 = (wxWindowDestroyEvent *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowDestroyEvent_GetWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDestroyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)((wxWindowDestroyEvent const *)arg1)->GetWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * WindowDestroyEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxWindowDestroyEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ContextMenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEventType arg1 = (wxEventType) wxEVT_NULL ; - int arg2 = (int) 0 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxContextMenuEvent *result; - wxPoint temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "type",(char *) "winid",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ContextMenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; - if (obj0) { - arg1 = (wxEventType) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxContextMenuEvent *)new wxContextMenuEvent(arg1,arg2,(wxPoint const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextMenuEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ContextMenuEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; - wxPoint *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextMenuEvent_GetPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxPoint const &_result_ref = ((wxContextMenuEvent const *)arg1)->GetPosition(); - result = (wxPoint *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ContextMenuEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ContextMenuEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPosition((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * ContextMenuEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxContextMenuEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_IdleEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIdleEvent *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IdleEvent",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxIdleEvent *)new wxIdleEvent(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIdleEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IdleEvent_RequestMore(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; - bool arg2 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "needMore", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:IdleEvent_RequestMore",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RequestMore(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IdleEvent_MoreRequested(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_MoreRequested",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxIdleEvent const *)arg1)->MoreRequested(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IdleEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "mode", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_SetMode",kwnames,&obj0)) goto fail; - arg1 = (wxIdleMode) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxIdleEvent::SetMode((wxIdleMode )arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IdleEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IdleEvent_GetMode",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxIdleEvent::GetMode(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IdleEvent_CanSend(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "win", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_CanSend",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxIdleEvent::CanSend(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * IdleEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxIdleEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - wxEventType arg2 = (wxEventType) wxEVT_NULL ; - wxPyEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "winid",(char *) "commandType", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyEvent",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (wxEventType) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyEvent *)new wxPyEvent(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyEvent *arg1 = (wxPyEvent *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyEvent",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyEvent *arg1 = (wxPyEvent *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSelf(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyEvent *arg1 = (wxPyEvent *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyEvent_GetSelf",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)(arg1)->GetSelf(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject * PyEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEventType arg1 = (wxEventType) wxEVT_NULL ; - int arg2 = (int) 0 ; - wxPyCommandEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "commandType",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyCommandEvent",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (wxEventType) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyCommandEvent *)new wxPyCommandEvent(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyCommandEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyCommandEvent",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyCommandEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCommandEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSelf(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyCommandEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCommandEvent_GetSelf",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)(arg1)->GetSelf(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject * PyCommandEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyCommandEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyApp",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyApp *)new_wxPyApp(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyApp",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAppName",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyApp const *)arg1)->GetAppName(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAppName",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetAppName((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_PyApp_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetClassName",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyApp const *)arg1)->GetClassName(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_SetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetClassName",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetClassName((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_PyApp_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetVendorName",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = ((wxPyApp const *)arg1)->GetVendorName(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetVendorName",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetVendorName((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_PyApp_GetTraits(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - wxAppTraits *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTraits",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxAppTraits *)(arg1)->GetTraits(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAppTraits, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessPendingEvents",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ProcessPendingEvents(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_Yield(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - bool arg2 = (bool) False ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "onlyIfNeeded", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyApp_Yield",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Yield(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_WakeUpIdle",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->WakeUpIdle(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_MainLoop(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_MainLoop",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->MainLoop(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_Exit(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Exit",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Exit(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_ExitMainLoop(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ExitMainLoop",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ExitMainLoop(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_Pending(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Pending",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Pending(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_Dispatch(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Dispatch",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Dispatch(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_ProcessIdle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessIdle",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->ProcessIdle(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_SendIdleEvents(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - wxIdleEvent *arg3 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "win",(char *) "event", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp_SendIdleEvents",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxIdleEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SendIdleEvents(arg2,*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_IsActive(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_IsActive",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyApp const *)arg1)->IsActive(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_SetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "win", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetTopWindow",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetTopWindow(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_GetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTopWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)((wxPyApp const *)arg1)->GetTopWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_SetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetExitOnFrameDelete",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetExitOnFrameDelete(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_GetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetExitOnFrameDelete",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyApp const *)arg1)->GetExitOnFrameDelete(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_SetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetUseBestVisual",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetUseBestVisual(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_GetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetUseBestVisual",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyApp const *)arg1)->GetUseBestVisual(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_SetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "mode", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetPrintMode",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPrintMode(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_GetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetPrintMode",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxPyApp const *)arg1)->GetPrintMode(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_SetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "mode", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAssertMode",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetAssertMode(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_GetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAssertMode",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetAssertMode(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_GetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - bool result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacSupportPCMenuShortcuts",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxPyApp::GetMacSupportPCMenuShortcuts(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_GetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - long result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacAboutMenuItemId",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)wxPyApp::GetMacAboutMenuItemId(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_GetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - long result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacPreferencesMenuItemId",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)wxPyApp::GetMacPreferencesMenuItemId(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_GetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - long result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacExitMenuItemId",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)wxPyApp::GetMacExitMenuItemId(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_GetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacHelpMenuTitleName",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxPyApp::GetMacHelpMenuTitleName(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_SetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - bool arg1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "val", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacSupportPCMenuShortcuts",kwnames,&obj0)) goto fail; - arg1 = (bool) SWIG_AsBool(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxPyApp::SetMacSupportPCMenuShortcuts(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_SetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - long arg1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "val", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacAboutMenuItemId",kwnames,&obj0)) goto fail; - arg1 = (long) SWIG_AsLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxPyApp::SetMacAboutMenuItemId(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_SetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - long arg1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "val", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacPreferencesMenuItemId",kwnames,&obj0)) goto fail; - arg1 = (long) SWIG_AsLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxPyApp::SetMacPreferencesMenuItemId(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_SetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - long arg1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "val", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacExitMenuItemId",kwnames,&obj0)) goto fail; - arg1 = (long) SWIG_AsLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxPyApp::SetMacExitMenuItemId(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_SetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "val", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacHelpMenuTitleName",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxPyApp::SetMacHelpMenuTitleName((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_PyApp__BootstrapApp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *arg1 = (wxPyApp *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp__BootstrapApp",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_BootstrapApp(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyApp_GetComCtl32Version(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetComCtl32Version",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxPyApp::GetComCtl32Version(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * PyApp_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyApp, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_Exit(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Exit",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxExit(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Yield(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - bool result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Yield",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxYield(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_YieldIfNeeded(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - bool result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":YieldIfNeeded",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxYieldIfNeeded(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SafeYield(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) NULL ; - bool arg2 = (bool) False ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "win",(char *) "onlyIfNeeded", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:SafeYield",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxSafeYield(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpIdle",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxWakeUpIdle(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PostEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; - wxEvent *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "dest",(char *) "event", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostEvent",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxPostEvent(arg1,*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_App_CleanUp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":App_CleanUp",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxApp_CleanUp(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GetApp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyApp *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetApp",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyApp *)wxGetApp(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - int arg2 = (int) 0 ; - int arg3 = (int) 0 ; - wxMenuItem *arg4 = (wxMenuItem *) NULL ; - wxAcceleratorEntry *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "flags",(char *) "keyCode",(char *) "cmd",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_AcceleratorEntry",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxAcceleratorEntry *)new wxAcceleratorEntry(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorEntry",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_AcceleratorEntry_Set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - wxMenuItem *arg5 = (wxMenuItem *) NULL ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flags",(char *) "keyCode",(char *) "cmd",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:AcceleratorEntry_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - if (obj4) { - if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Set(arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_AcceleratorEntry_SetMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; - wxMenuItem *arg2 = (wxMenuItem *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AcceleratorEntry_SetMenuItem",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMenuItem(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_AcceleratorEntry_GetMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; - wxMenuItem *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetMenuItem",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)((wxAcceleratorEntry const *)arg1)->GetMenuItem(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_AcceleratorEntry_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetFlags",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetFlags(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_AcceleratorEntry_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetKeyCode",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetKeyCode(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_AcceleratorEntry_GetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetCommand",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetCommand(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * AcceleratorEntry_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorEntry, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; - wxAcceleratorTable *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AcceleratorTable",kwnames,&obj0)) goto fail; - { - arg2 = wxAcceleratorEntry_LIST_helper(obj0); - if (arg2) arg1 = PyList_Size(obj0); - else arg1 = 0; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxAcceleratorTable *)new wxAcceleratorTable(arg1,(wxAcceleratorEntry const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 1); - { - delete [] arg2; - } - return resultobj; - fail: - { - delete [] arg2; - } - return NULL; -} - - -static PyObject *_wrap_delete_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorTable",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_AcceleratorTable_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorTable_Ok",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxAcceleratorTable const *)arg1)->Ok(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * AcceleratorTable_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorTable, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_NullAcceleratorTable_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable NullAcceleratorTable is read-only."); - return 1; -} - - -static PyObject *_wrap_NullAcceleratorTable_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(&wxNullAcceleratorTable), SWIGTYPE_p_wxAcceleratorTable, 0); - return pyobj; -} - - -static PyObject *_wrap_GetAccelFromString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxAcceleratorEntry *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "label", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetAccelFromString",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxAcceleratorEntry *)wxGetAccelFromString((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static int _wrap_PanelNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable PanelNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_PanelNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_VisualAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxVisualAttributes *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_VisualAttributes",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxVisualAttributes *)new_wxVisualAttributes(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVisualAttributes, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_VisualAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VisualAttributes",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete_wxVisualAttributes(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VisualAttributes_font_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; - wxFont *arg2 = (wxFont *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "font", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_font_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (arg1) (arg1)->font = *arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VisualAttributes_font_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; - wxFont *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_font_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (wxFont *)& ((arg1)->font); - - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VisualAttributes_colFg_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; - wxColour *arg2 = (wxColour *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colFg", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colFg_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (arg1) (arg1)->colFg = *arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VisualAttributes_colFg_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; - wxColour *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colFg_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (wxColour *)& ((arg1)->colFg); - - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VisualAttributes_colBg_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; - wxColour *arg2 = (wxColour *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colBg", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colBg_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (arg1) (arg1)->colBg = *arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VisualAttributes_colBg_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; - wxColour *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colBg_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (wxColour *)& ((arg1)->colBg); - - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject * VisualAttributes_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxVisualAttributes, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Window(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) (int)-1 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) 0 ; - wxString const &arg6_defvalue = wxPyPanelNameStr ; - wxString *arg6 = (wxString *) &arg6_defvalue ; - wxWindow *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp6 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Window",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int const) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - { - arg6 = wxString_in_helper(obj5); - if (arg6 == NULL) SWIG_fail; - temp6 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)new wxWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp6) - delete arg6; - } - return resultobj; - fail: - { - if (temp6) - delete arg6; - } - return NULL; -} - - -static PyObject *_wrap_new_PreWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreWindow",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)new wxWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 = (int) (int)-1 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) 0 ; - wxString const &arg7_defvalue = wxPyPanelNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - bool result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Window_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (int const) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_Window_Close(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool arg2 = (bool) False ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "force", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Close",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Close(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Destroy",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Destroy(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DestroyChildren",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->DestroyChildren(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_IsBeingDeleted(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsBeingDeleted",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxWindow const *)arg1)->IsBeingDeleted(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "title", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTitle",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetTitle((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Window_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetTitle",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxWindow const *)arg1)->GetTitle(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "label", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetLabel",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetLabel((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Window_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetLabel",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxWindow const *)arg1)->GetLabel(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetName",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetName((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Window_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetName",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxWindow const *)arg1)->GetName(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetWindowVariant(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "variant", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowVariant",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxWindowVariant) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetWindowVariant((wxWindowVariant )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetWindowVariant(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowVariant",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxWindow const *)arg1)->GetWindowVariant(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "winid", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetId",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetId(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetId",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxWindow const *)arg1)->GetId(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_NewControlId",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxWindow::NewControlId(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "winid", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_NextControlId",kwnames,&obj0)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxWindow::NextControlId(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "winid", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PrevControlId",kwnames,&obj0)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxWindow::PrevControlId(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxSize *arg2 = 0 ; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSize((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 = (int) wxSIZE_AUTO ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetDimensions",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - if (obj5) { - arg6 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSize(arg2,arg3,arg4,arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxRect *arg2 = 0 ; - int arg3 = (int) wxSIZE_AUTO ; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect",(char *) "sizeFlags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetRect",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSize((wxRect const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_Move(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxPoint *arg2 = 0 ; - int arg3 = (int) wxSIZE_USE_EXISTING ; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_Move",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Move((wxPoint const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - int arg3 ; - int arg4 = (int) wxSIZE_USE_EXISTING ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_MoveXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Move(arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Raise",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Raise(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Lower",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Lower(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxSize *arg2 = 0 ; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetClientSize((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetClientSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetClientSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxRect *arg2 = 0 ; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientRect",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetClientSize((wxRect const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPositionTuple",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->GetPosition(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxWindow const *)arg1)->GetSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizeTuple",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxWindow const *)arg1)->GetSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxRect result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetRect",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxWindow const *)arg1)->GetRect(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxRect * resultptr; - resultptr = new wxRect((wxRect &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxWindow const *)arg1)->GetClientSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSizeTuple",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxWindow const *)arg1)->GetClientSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientAreaOrigin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxWindow const *)arg1)->GetClientAreaOrigin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxRect result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientRect",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxWindow const *)arg1)->GetClientRect(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxRect * resultptr; - resultptr = new wxRect((wxRect &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxWindow const *)arg1)->GetBestSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetBestSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSizeTuple",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxWindow const *)arg1)->GetBestSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetAdjustedBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAdjustedBestSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxWindow const *)arg1)->GetAdjustedBestSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_Center(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) wxBOTH ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "direction", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Center",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Center(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) wxBOTH ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "dir", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnScreen",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->CenterOnScreen(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) wxBOTH ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "dir", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnParent",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->CenterOnParent(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Fit",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Fit(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FitInside",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->FitInside(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetSizeHints__SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - int arg3 ; - int arg4 = (int) -1 ; - int arg5 = (int) -1 ; - int arg6 = (int) -1 ; - int arg7 = (int) -1 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OOO|OOOO:Window_SetSizeHints",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - arg6 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - arg7 = (int) SWIG_AsInt(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSizeHints(arg2,arg3,arg4,arg5,arg6,arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetSizeHints__SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxSize *arg2 = 0 ; - wxSize const &arg3_defvalue = wxDefaultSize ; - wxSize *arg3 = (wxSize *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - wxSize temp2 ; - wxSize temp3 ; - wxSize temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO|OO:Window_SetSizeHints",&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - if (obj2) { - { - arg3 = &temp3; - if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3,(wxSize const &)*arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetSizeHints(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[8]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 7); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if ((argc >= 2) && (argc <= 4)) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2); - } - if (_v) { - if (argc <= 2) { - return _wrap_Window_SetSizeHints__SWIG_1(self,args); - } - { - _v = wxPySimple_typecheck(argv[2], wxT("wxSize"), 2); - } - if (_v) { - if (argc <= 3) { - return _wrap_Window_SetSizeHints__SWIG_1(self,args); - } - { - _v = wxPySimple_typecheck(argv[3], wxT("wxSize"), 2); - } - if (_v) { - return _wrap_Window_SetSizeHints__SWIG_1(self,args); - } - } - } - } - } - if ((argc >= 3) && (argc <= 7)) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - _v = SWIG_CheckInt(argv[1]); - if (_v) { - _v = SWIG_CheckInt(argv[2]); - if (_v) { - if (argc <= 3) { - return _wrap_Window_SetSizeHints__SWIG_0(self,args); - } - _v = SWIG_CheckInt(argv[3]); - if (_v) { - if (argc <= 4) { - return _wrap_Window_SetSizeHints__SWIG_0(self,args); - } - _v = SWIG_CheckInt(argv[4]); - if (_v) { - if (argc <= 5) { - return _wrap_Window_SetSizeHints__SWIG_0(self,args); - } - _v = SWIG_CheckInt(argv[5]); - if (_v) { - if (argc <= 6) { - return _wrap_Window_SetSizeHints__SWIG_0(self,args); - } - _v = SWIG_CheckInt(argv[6]); - if (_v) { - return _wrap_Window_SetSizeHints__SWIG_0(self,args); - } - } - } - } - } - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_SetSizeHints'"); - return NULL; -} - - -static PyObject *_wrap_Window_SetVirtualSizeHints__SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - int arg3 ; - int arg4 = (int) -1 ; - int arg5 = (int) -1 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OOO|OO:Window_SetVirtualSizeHints",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetVirtualSizeHints(arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetVirtualSizeHints__SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxSize *arg2 = 0 ; - wxSize const &arg3_defvalue = wxDefaultSize ; - wxSize *arg3 = (wxSize *) &arg3_defvalue ; - wxSize temp2 ; - wxSize temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO|O:Window_SetVirtualSizeHints",&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - if (obj2) { - { - arg3 = &temp3; - if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetVirtualSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetVirtualSizeHints(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[6]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 5); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if ((argc >= 2) && (argc <= 3)) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2); - } - if (_v) { - if (argc <= 2) { - return _wrap_Window_SetVirtualSizeHints__SWIG_1(self,args); - } - { - _v = wxPySimple_typecheck(argv[2], wxT("wxSize"), 2); - } - if (_v) { - return _wrap_Window_SetVirtualSizeHints__SWIG_1(self,args); - } - } - } - } - if ((argc >= 3) && (argc <= 5)) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - _v = SWIG_CheckInt(argv[1]); - if (_v) { - _v = SWIG_CheckInt(argv[2]); - if (_v) { - if (argc <= 3) { - return _wrap_Window_SetVirtualSizeHints__SWIG_0(self,args); - } - _v = SWIG_CheckInt(argv[3]); - if (_v) { - if (argc <= 4) { - return _wrap_Window_SetVirtualSizeHints__SWIG_0(self,args); - } - _v = SWIG_CheckInt(argv[4]); - if (_v) { - return _wrap_Window_SetVirtualSizeHints__SWIG_0(self,args); - } - } - } - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_SetVirtualSizeHints'"); - return NULL; -} - - -static PyObject *_wrap_Window_GetMinWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinWidth",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxWindow const *)arg1)->GetMinWidth(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetMinHeight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinHeight",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxWindow const *)arg1)->GetMinHeight(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetMaxWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxWidth",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxWindow const *)arg1)->GetMaxWidth(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetMaxHeight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxHeight",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxWindow const *)arg1)->GetMaxHeight(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxWindow const *)arg1)->GetMaxSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxWindow const *)arg1)->GetMinSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxSize *arg2 = 0 ; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetVirtualSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetVirtualSize((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetVirtualSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "w",(char *) "h", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetVirtualSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetVirtualSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxWindow const *)arg1)->GetVirtualSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetVirtualSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSizeTuple",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxWindow const *)arg1)->GetVirtualSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetBestVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestVirtualSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxWindow const *)arg1)->GetBestVirtualSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_Show(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool arg2 = (bool) True ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "show", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Show",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Show(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Hide",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Hide(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool arg2 = (bool) True ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "enable", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Enable",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Enable(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_Disable(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Disable",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Disable(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsShown",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxWindow const *)arg1)->IsShown(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsEnabled",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxWindow const *)arg1)->IsEnabled(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetWindowStyleFlag(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyleFlag",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxWindow const *)arg1)->GetWindowStyleFlag(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasFlag",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxWindow const *)arg1)->HasFlag(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsRetained",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxWindow const *)arg1)->IsRetained(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "exStyle", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetExtraStyle",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetExtraStyle(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetExtraStyle",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxWindow const *)arg1)->GetExtraStyle(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool arg2 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "modal", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_MakeModal",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->MakeModal(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "enableTheme", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetThemeEnabled",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetThemeEnabled(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetThemeEnabled",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxWindow const *)arg1)->GetThemeEnabled(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocus",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFocus(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetFocusFromKbd(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocusFromKbd",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFocusFromKbd(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_FindFocus",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)wxWindow::FindFocus(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocus",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxWindow const *)arg1)->AcceptsFocus(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxWindow const *)arg1)->AcceptsFocusFromKeyboard(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultItem",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)((wxWindow const *)arg1)->GetDefaultItem(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "child", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultItem",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)(arg1)->SetDefaultItem(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetTmpDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "win", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTmpDefaultItem",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetTmpDefaultItem(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetChildren",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxWindow_GetChildren(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetParent",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)((wxWindow const *)arg1)->GetParent(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetGrandParent",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)((wxWindow const *)arg1)->GetGrandParent(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsTopLevel",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxWindow const *)arg1)->IsTopLevel(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "newParent", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_Reparent",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Reparent(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "child", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AddChild",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AddChild(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "child", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveChild",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RemoveChild(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - long arg2 ; - wxWindow *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "winid", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowById",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)(arg1)->FindWindow(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxString *arg2 = 0 ; - wxWindow *result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowByName",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)(arg1)->FindWindow((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Window_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxEvtHandler *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetEventHandler",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxEvtHandler *)((wxWindow const *)arg1)->GetEventHandler(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "handler", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetEventHandler(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "handler", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PushEventHandler",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->PushEventHandler(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool arg2 = (bool) False ; - wxEvtHandler *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "deleteHandler", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_PopEventHandler",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxEvtHandler *)(arg1)->PopEventHandler(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_RemoveEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "handler", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveEventHandler",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->RemoveEventHandler(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxValidator *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "validator", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetValidator",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetValidator((wxValidator const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxValidator *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetValidator",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxValidator *)(arg1)->GetValidator(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Validate",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Validate(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataToWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->TransferDataToWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataFromWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->TransferDataFromWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InitDialog",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->InitDialog(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxAcceleratorTable *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "accel", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAcceleratorTable",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorTable, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetAcceleratorTable((wxAcceleratorTable const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxAcceleratorTable *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAcceleratorTable",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxAcceleratorTable *)(arg1)->GetAcceleratorTable(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_RegisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "hotkeyId",(char *) "modifiers",(char *) "keycode", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_RegisterHotKey",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxWindow_RegisterHotKey(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_UnregisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "hotkeyId", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_UnregisterHotKey",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxWindow_UnregisterHotKey(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogPointToPixels",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxSize *arg2 = 0 ; - wxSize result; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogSizeToPixels",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_DLG_PNT(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_PNT",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_DLG_SZE(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxSize *arg2 = 0 ; - wxSize result; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_SZE",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelPointToDialog",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->ConvertPixelsToDialog((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxSize *arg2 = 0 ; - wxSize result; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelSizeToDialog",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->ConvertPixelsToDialog((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_WarpPointer",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->WarpPointer(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_CaptureMouse",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->CaptureMouse(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ReleaseMouse",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ReleaseMouse(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_GetCapture",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)wxWindow::GetCapture(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_HasCapture(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_HasCapture",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxWindow const *)arg1)->HasCapture(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool arg2 = (bool) True ; - wxRect *arg3 = (wxRect *) NULL ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "eraseBackground",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Window_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Refresh(arg2,(wxRect const *)arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_RefreshRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxRect *arg2 = 0 ; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RefreshRect",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RefreshRect((wxRect const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_Update(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Update",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Update(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_ClearBackground(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ClearBackground",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ClearBackground(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Freeze",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Freeze(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Thaw",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Thaw(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxDC *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "dc", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PrepareDC",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->PrepareDC(*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxRegion *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateRegion",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxRegion &_result_ref = (arg1)->GetUpdateRegion(); - result = (wxRegion *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetUpdateClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxRect result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateClientRect",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxWindow const *)arg1)->GetUpdateClientRect(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxRect * resultptr; - resultptr = new wxRect((wxRect &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - int arg3 ; - int arg4 = (int) 1 ; - int arg5 = (int) 1 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_IsExposed",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxWindow const *)arg1)->IsExposed(arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxPoint *arg2 = 0 ; - bool result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedPoint",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxWindow const *)arg1)->IsExposed((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxRect *arg2 = 0 ; - bool result; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedRect",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxWindow const *)arg1)->IsExposed((wxRect const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxVisualAttributes result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultAttributes",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxWindow const *)arg1)->GetDefaultAttributes(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxVisualAttributes * resultptr; - resultptr = new wxVisualAttributes((wxVisualAttributes &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; - wxVisualAttributes result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "variant", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Window_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (wxWindowVariant) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxWindow::GetClassDefaultAttributes((wxWindowVariant )arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxVisualAttributes * resultptr; - resultptr = new wxVisualAttributes((wxVisualAttributes &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxColour *arg2 = 0 ; - bool result; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colour", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetDefaultBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colour", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultBackgroundColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDefaultBackgroundColour((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxColour *arg2 = 0 ; - bool result; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colour", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetDefaultForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colour", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultForegroundColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDefaultForegroundColour((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxColour result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundColour",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxWindow const *)arg1)->GetBackgroundColour(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxColour result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetForegroundColour",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxWindow const *)arg1)->GetForegroundColour(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxCursor *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "cursor", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCursor",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetCursor((wxCursor const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxCursor *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCursor",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxCursor &_result_ref = (arg1)->GetCursor(); - result = (wxCursor *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxCursor* resultptr = new wxCursor(*result); - resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxCursor, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxFont *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "font", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetFont",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetFont((wxFont const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetDefaultFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxFont *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "font", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultFont",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDefaultFont((wxFont const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxFont *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetFont",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxFont &_result_ref = (arg1)->GetFont(); - result = (wxFont *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxFont* resultptr = new wxFont(*result); - resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxCaret *arg2 = (wxCaret *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "caret", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCaret",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCaret, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetCaret(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxCaret *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCaret",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxCaret *)((wxWindow const *)arg1)->GetCaret(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharHeight",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxWindow const *)arg1)->GetCharHeight(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharWidth",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxWindow const *)arg1)->GetCharWidth(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxString *arg2 = 0 ; - int *arg3 = (int *) 0 ; - int *arg4 = (int *) 0 ; - bool temp2 = False ; - int temp3 ; - int temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "string", NULL - }; - - arg3 = &temp3; - arg4 = &temp4; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg4)); - resultobj = t_output_helper(resultobj,o); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Window_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxString *arg2 = 0 ; - int *arg3 = (int *) 0 ; - int *arg4 = (int *) 0 ; - int *arg5 = (int *) 0 ; - int *arg6 = (int *) 0 ; - wxFont *arg7 = (wxFont *) NULL ; - bool temp2 = False ; - int temp3 ; - int temp4 ; - int temp5 ; - int temp6 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "string",(char *) "font", NULL - }; - - arg3 = &temp3; - arg4 = &temp4; - arg5 = &temp5; - arg6 = &temp6; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,(wxFont const *)arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg4)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg5)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg6)); - resultobj = t_output_helper(resultobj,o); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Window_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ClientToScreenXY",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - temp2 = PyInt_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg2 = &temp2; - } - { - temp3 = PyInt_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg3 = &temp3; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxWindow const *)arg1)->ClientToScreen(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ScreenToClientXY",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - temp2 = PyInt_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg2 = &temp2; - } - { - temp3 = PyInt_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg3 = &temp3; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxWindow const *)arg1)->ScreenToClient(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ClientToScreen",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxWindow const *)arg1)->ClientToScreen((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScreenToClient",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxWindow const *)arg1)->ScreenToClient((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - int arg3 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxWindow const *)arg1)->HitTest(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxPoint *arg2 = 0 ; - int result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HitTest",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxWindow const *)arg1)->HitTest((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetBorder__SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - long arg2 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:Window_GetBorder",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxWindow const *)arg1)->GetBorder(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetBorder__SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int result; - PyObject * obj0 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"O:Window_GetBorder",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxWindow const *)arg1)->GetBorder(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetBorder(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if (argc == 1) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_Window_GetBorder__SWIG_1(self,args); - } - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - _v = SWIG_CheckLong(argv[1]); - if (_v) { - return _wrap_Window_GetBorder__SWIG_0(self,args); - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_GetBorder'"); - return NULL; -} - - -static PyObject *_wrap_Window_UpdateWindowUI(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - long arg2 = (long) wxUPDATE_UI_NONE ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_UpdateWindowUI",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->UpdateWindowUI(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxMenu *arg2 = (wxMenu *) 0 ; - int arg3 ; - int arg4 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "menu",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_PopupMenuXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->PopupMenu(arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxMenu *arg2 = (wxMenu *) 0 ; - wxPoint *arg3 = 0 ; - bool result; - wxPoint temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "menu",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_PopupMenu",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->PopupMenu(arg2,(wxPoint const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHandle",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)wxWindow_GetHandle(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_OnPaint(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxPaintEvent *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "event", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_OnPaint",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPaintEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->OnPaint(*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_HasScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "orient", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasScrollbar",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxWindow const *)arg1)->HasScrollbar(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - bool arg6 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "orientation",(char *) "pos",(char *) "thumbvisible",(char *) "range",(char *) "refresh", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - if (obj5) { - arg6 = (bool) SWIG_AsBool(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - int arg3 ; - bool arg4 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "orientation",(char *) "pos",(char *) "refresh", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_SetScrollPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - arg4 = (bool) SWIG_AsBool(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetScrollPos(arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "orientation", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollPos",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxWindow const *)arg1)->GetScrollPos(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "orientation", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollThumb",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxWindow const *)arg1)->GetScrollThumb(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "orientation", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollRange",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxWindow const *)arg1)->GetScrollRange(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - int arg3 ; - wxRect *arg4 = (wxRect *) NULL ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "dx",(char *) "dy",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_ScrollWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ScrollWindow(arg2,arg3,(wxRect const *)arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "lines", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollLines",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->ScrollLines(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pages", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollPages",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->ScrollPages(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineUp",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->LineUp(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineDown",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->LineDown(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageUp",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->PageUp(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_PageDown(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageDown",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->PageDown(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "text", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpText",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetHelpText((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Window_SetHelpTextForId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "text", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpTextForId",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetHelpTextForId((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Window_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHelpText",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxWindow const *)arg1)->GetHelpText(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "tip", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTipString",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetToolTip((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Window_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxToolTip *arg2 = (wxToolTip *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "tip", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTip",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolTip, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetToolTip(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxToolTip *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetToolTip",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxToolTip *)((wxWindow const *)arg1)->GetToolTip(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxPyDropTarget *arg2 = (wxPyDropTarget *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "dropTarget", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDropTarget",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyDropTarget, - SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDropTarget(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxPyDropTarget *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDropTarget",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyDropTarget *)((wxWindow const *)arg1)->GetDropTarget(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_DragAcceptFiles(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "accept", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DragAcceptFiles",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DragAcceptFiles(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "constraints", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetConstraints",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetConstraints(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxLayoutConstraints *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetConstraints",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxLayoutConstraints *)((wxWindow const *)arg1)->GetConstraints(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "autoLayout", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAutoLayout",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetAutoLayout(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAutoLayout",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxWindow const *)arg1)->GetAutoLayout(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Layout",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Layout(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxSizer *arg2 = (wxSizer *) 0 ; - bool arg3 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizer",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSizer(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetSizerAndFit(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxSizer *arg2 = (wxSizer *) 0 ; - bool arg3 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizerAndFit",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSizerAndFit(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxSizer *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizer",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSizer *)((wxWindow const *)arg1)->GetSizer(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxSizer(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_SetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxSizer *arg2 = (wxSizer *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sizer", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetContainingSizer",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetContainingSizer(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_GetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxSizer *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetContainingSizer",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSizer *)((wxWindow const *)arg1)->GetContainingSizer(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxSizer(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_InheritAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InheritAttributes",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->InheritAttributes(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Window_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ShouldInheritColours",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxWindow const *)arg1)->ShouldInheritColours(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * Window_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxWindow, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - long arg1 ; - wxWindow *arg2 = (wxWindow *) NULL ; - wxWindow *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "id",(char *) "parent", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowById",kwnames,&obj0,&obj1)) goto fail; - arg1 = (long) SWIG_AsLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - if (obj1) { - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)wxFindWindowById(arg1,(wxWindow const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxWindow *arg2 = (wxWindow *) NULL ; - wxWindow *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "name",(char *) "parent", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByName",kwnames,&obj0,&obj1)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - if (obj1) { - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)wxFindWindowByName((wxString const &)*arg1,(wxWindow const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_FindWindowByLabel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxWindow *arg2 = (wxWindow *) NULL ; - wxWindow *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "label",(char *) "parent", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByLabel",kwnames,&obj0,&obj1)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - if (obj1) { - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)wxFindWindowByLabel((wxString const &)*arg1,(wxWindow const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_Window_FromHWND(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - unsigned long arg2 ; - wxWindow *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "_hWnd", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FromHWND",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)wxWindow_FromHWND(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_Validator(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxValidator *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Validator",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxValidator *)new wxValidator(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Validator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxValidator *arg1 = (wxValidator *) 0 ; - wxValidator *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_Clone",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxValidator *)(arg1)->Clone(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Validator_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxValidator *arg1 = (wxValidator *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_Validate",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Validate(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Validator_TransferToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxValidator *arg1 = (wxValidator *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferToWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->TransferToWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Validator_TransferFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxValidator *arg1 = (wxValidator *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferFromWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->TransferFromWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Validator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxValidator *arg1 = (wxValidator *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_GetWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)(arg1)->GetWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Validator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxValidator *arg1 = (wxValidator *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "window", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_SetWindow",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetWindow(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Validator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - bool result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Validator_IsSilent",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxValidator::IsSilent(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Validator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) True ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "doIt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Validator_SetBellOnError",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxValidator::SetBellOnError(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * Validator_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxValidator, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyValidator *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyValidator",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyValidator *)new wxPyValidator(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyValidator, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyValidator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyValidator *arg1 = (wxPyValidator *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - int arg4 = (int) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyValidator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * PyValidator_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyValidator, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_DefaultValidator_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable DefaultValidator is read-only."); - return 1; -} - - -static PyObject *_wrap_DefaultValidator_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(&wxDefaultValidator), SWIGTYPE_p_wxValidator, 0); - return pyobj; -} - - -static PyObject *_wrap_new_Menu(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString const &arg1_defvalue = wxPyEmptyString ; - wxString *arg1 = (wxString *) &arg1_defvalue ; - long arg2 = (long) 0 ; - wxMenu *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "title",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Menu",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - } - if (obj1) { - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenu *)new wxMenu((wxString const &)*arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_Menu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - wxString const &arg4_defvalue = wxPyEmptyString ; - wxString *arg4 = (wxString *) &arg4_defvalue ; - int arg5 = (int) wxITEM_NORMAL ; - wxMenuItem *result; - bool temp3 = False ; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - } - if (obj4) { - arg5 = (wxItemKind) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_Menu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - wxMenuItem *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_AppendSeparator",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)(arg1)->AppendSeparator(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_AppendCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - wxString const &arg4_defvalue = wxPyEmptyString ; - wxString *arg4 = (wxString *) &arg4_defvalue ; - wxMenuItem *result; - bool temp3 = False ; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)(arg1)->AppendCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_Menu_AppendRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - wxString const &arg4_defvalue = wxPyEmptyString ; - wxString *arg4 = (wxString *) &arg4_defvalue ; - wxMenuItem *result; - bool temp3 = False ; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)(arg1)->AppendRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_Menu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - wxMenu *arg4 = (wxMenu *) 0 ; - wxString const &arg5_defvalue = wxPyEmptyString ; - wxString *arg5 = (wxString *) &arg5_defvalue ; - wxMenuItem *result; - bool temp3 = False ; - bool temp5 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_AppendMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj4) { - { - arg5 = wxString_in_helper(obj4); - if (arg5 == NULL) SWIG_fail; - temp5 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp3) - delete arg3; - } - { - if (temp5) - delete arg5; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp5) - delete arg5; - } - return NULL; -} - - -static PyObject *_wrap_Menu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - wxMenuItem *arg2 = (wxMenuItem *) 0 ; - wxMenuItem *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_AppendItem",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)(arg1)->Append(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Break",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Break(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - size_t arg2 ; - wxMenuItem *arg3 = (wxMenuItem *) 0 ; - wxMenuItem *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)(arg1)->Insert(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - size_t arg2 ; - int arg3 ; - wxString *arg4 = 0 ; - wxString const &arg5_defvalue = wxPyEmptyString ; - wxString *arg5 = (wxString *) &arg5_defvalue ; - int arg6 = (int) wxITEM_NORMAL ; - wxMenuItem *result; - bool temp4 = False ; - bool temp5 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Menu_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - if (obj4) { - { - arg5 = wxString_in_helper(obj4); - if (arg5 == NULL) SWIG_fail; - temp5 = True; - } - } - if (obj5) { - arg6 = (wxItemKind) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxItemKind )arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp4) - delete arg4; - } - { - if (temp5) - delete arg5; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - { - if (temp5) - delete arg5; - } - return NULL; -} - - -static PyObject *_wrap_Menu_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - size_t arg2 ; - wxMenuItem *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)(arg1)->InsertSeparator(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_InsertCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - size_t arg2 ; - int arg3 ; - wxString *arg4 = 0 ; - wxString const &arg5_defvalue = wxPyEmptyString ; - wxString *arg5 = (wxString *) &arg5_defvalue ; - wxMenuItem *result; - bool temp4 = False ; - bool temp5 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - if (obj4) { - { - arg5 = wxString_in_helper(obj4); - if (arg5 == NULL) SWIG_fail; - temp5 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)(arg1)->InsertCheckItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp4) - delete arg4; - } - { - if (temp5) - delete arg5; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - { - if (temp5) - delete arg5; - } - return NULL; -} - - -static PyObject *_wrap_Menu_InsertRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - size_t arg2 ; - int arg3 ; - wxString *arg4 = 0 ; - wxString const &arg5_defvalue = wxPyEmptyString ; - wxString *arg5 = (wxString *) &arg5_defvalue ; - wxMenuItem *result; - bool temp4 = False ; - bool temp5 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - if (obj4) { - { - arg5 = wxString_in_helper(obj4); - if (arg5 == NULL) SWIG_fail; - temp5 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)(arg1)->InsertRadioItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp4) - delete arg4; - } - { - if (temp5) - delete arg5; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - { - if (temp5) - delete arg5; - } - return NULL; -} - - -static PyObject *_wrap_Menu_InsertMenu(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - size_t arg2 ; - int arg3 ; - wxString *arg4 = 0 ; - wxMenu *arg5 = (wxMenu *) 0 ; - wxString const &arg6_defvalue = wxPyEmptyString ; - wxString *arg6 = (wxString *) &arg6_defvalue ; - wxMenuItem *result; - bool temp4 = False ; - bool temp6 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Menu_InsertMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj5) { - { - arg6 = wxString_in_helper(obj5); - if (arg6 == NULL) SWIG_fail; - temp6 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,arg5,(wxString const &)*arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp4) - delete arg4; - } - { - if (temp6) - delete arg6; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - { - if (temp6) - delete arg6; - } - return NULL; -} - - -static PyObject *_wrap_Menu_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - wxMenuItem *arg2 = (wxMenuItem *) 0 ; - wxMenuItem *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_PrependItem",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)(arg1)->Prepend(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - wxString const &arg4_defvalue = wxPyEmptyString ; - wxString *arg4 = (wxString *) &arg4_defvalue ; - int arg5 = (int) wxITEM_NORMAL ; - wxMenuItem *result; - bool temp3 = False ; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - } - if (obj4) { - arg5 = (wxItemKind) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_Menu_PrependSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - wxMenuItem *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_PrependSeparator",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)(arg1)->PrependSeparator(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_PrependCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - wxString const &arg4_defvalue = wxPyEmptyString ; - wxString *arg4 = (wxString *) &arg4_defvalue ; - wxMenuItem *result; - bool temp3 = False ; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)(arg1)->PrependCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_Menu_PrependRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - wxString const &arg4_defvalue = wxPyEmptyString ; - wxString *arg4 = (wxString *) &arg4_defvalue ; - wxMenuItem *result; - bool temp3 = False ; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)(arg1)->PrependRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_Menu_PrependMenu(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - wxMenu *arg4 = (wxMenu *) 0 ; - wxString const &arg5_defvalue = wxPyEmptyString ; - wxString *arg5 = (wxString *) &arg5_defvalue ; - wxMenuItem *result; - bool temp3 = False ; - bool temp5 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_PrependMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj4) { - { - arg5 = wxString_in_helper(obj4); - if (arg5 == NULL) SWIG_fail; - temp5 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp3) - delete arg3; - } - { - if (temp5) - delete arg5; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp5) - delete arg5; - } - return NULL; -} - - -static PyObject *_wrap_Menu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - int arg2 ; - wxMenuItem *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Remove",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)(arg1)->Remove(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - wxMenuItem *arg2 = (wxMenuItem *) 0 ; - wxMenuItem *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_RemoveItem",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)(arg1)->Remove(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Delete",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Delete(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - wxMenuItem *arg2 = (wxMenuItem *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DeleteItem",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Delete(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Destroy",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxMenu_Destroy(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyId",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Destroy(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - wxMenuItem *arg2 = (wxMenuItem *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyItem",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Destroy(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - size_t result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItemCount",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (size_t)((wxMenu const *)arg1)->GetMenuItemCount(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItems",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxMenu_GetMenuItems(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - wxString *arg2 = 0 ; - int result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItem",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxMenu const *)arg1)->FindItem((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Menu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - int arg2 ; - wxMenuItem *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemById",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)((wxMenu const *)arg1)->FindItem(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_FindItemByPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - size_t arg2 ; - wxMenuItem *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "position", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemByPosition",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)((wxMenu const *)arg1)->FindItemByPosition(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - int arg2 ; - bool arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "enable", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Enable(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsEnabled",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMenu const *)arg1)->IsEnabled(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - int arg2 ; - bool arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "check", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Check(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsChecked",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMenu const *)arg1)->IsChecked(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "label", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetLabel(arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_Menu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - int arg2 ; - wxString result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetLabel",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxMenu const *)arg1)->GetLabel(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "helpString", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetHelpString(arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_Menu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - int arg2 ; - wxString result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetHelpString",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxMenu const *)arg1)->GetHelpString(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "title", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetTitle",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetTitle((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Menu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetTitle",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxMenu const *)arg1)->GetTitle(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "handler", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetEventHandler(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - wxEvtHandler *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetEventHandler",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxEvtHandler *)((wxMenu const *)arg1)->GetEventHandler(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "win", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetInvokingWindow",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetInvokingWindow(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetInvokingWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)((wxMenu const *)arg1)->GetInvokingWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetStyle",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxMenu const *)arg1)->GetStyle(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - wxEvtHandler *arg2 = (wxEvtHandler *) NULL ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "source", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Menu_UpdateUI",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->UpdateUI(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_GetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - wxMenuBar *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuBar",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuBar *)((wxMenu const *)arg1)->GetMenuBar(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - wxMenuBarBase *arg2 = (wxMenuBarBase *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "menubar", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Attach",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuBarBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Attach(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Detach",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Detach(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_IsAttached",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMenu const *)arg1)->IsAttached(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - wxMenu *arg2 = (wxMenu *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetParent",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetParent(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Menu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) 0 ; - wxMenu *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetParent",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenu *)((wxMenu const *)arg1)->GetParent(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * Menu_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxMenu, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_MenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - long arg1 = (long) 0 ; - wxMenuBar *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MenuBar",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (long) SWIG_AsLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuBar *)new wxMenuBar(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - wxMenu *arg2 = (wxMenu *) 0 ; - wxString *arg3 = 0 ; - bool result; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "menu",(char *) "title", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Append(arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_MenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - size_t arg2 ; - wxMenu *arg3 = (wxMenu *) 0 ; - wxString *arg4 = 0 ; - bool result; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_MenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - size_t result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetMenuCount",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (size_t)((wxMenuBar const *)arg1)->GetMenuCount(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - size_t arg2 ; - wxMenu *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetMenu",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenu *)((wxMenuBar const *)arg1)->GetMenu(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - size_t arg2 ; - wxMenu *arg3 = (wxMenu *) 0 ; - wxString *arg4 = 0 ; - wxMenu *result; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenu *)(arg1)->Replace(arg2,arg3,(wxString const &)*arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_MenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - size_t arg2 ; - wxMenu *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Remove",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenu *)(arg1)->Remove(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - size_t arg2 ; - bool arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos",(char *) "enable", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_EnableTop",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->EnableTop(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuBar_IsEnabledTop(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - size_t arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabledTop",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMenuBar const *)arg1)->IsEnabledTop(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - size_t arg2 ; - wxString *arg3 = 0 ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos",(char *) "label", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabelTop",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetLabelTop(arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_MenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - size_t arg2 ; - wxString result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabelTop",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxMenuBar const *)arg1)->GetLabelTop(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - wxString *arg2 = 0 ; - wxString *arg3 = 0 ; - int result; - bool temp2 = False ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "menu",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_FindMenuItem",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxMenuBar const *)arg1)->FindMenuItem((wxString const &)*arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_MenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - int arg2 ; - wxMenuItem *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindItemById",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)((wxMenuBar const *)arg1)->FindItem(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - wxString *arg2 = 0 ; - int result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "title", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindMenu",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxMenuBar const *)arg1)->FindMenu((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_MenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - int arg2 ; - bool arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "enable", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Enable(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - int arg2 ; - bool arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "check", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Check(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsChecked",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMenuBar const *)arg1)->IsChecked(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabled",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMenuBar const *)arg1)->IsEnabled(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "label", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetLabel(arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_MenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - int arg2 ; - wxString result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabel",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxMenuBar const *)arg1)->GetLabel(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id",(char *) "helpString", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetHelpString(arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_MenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - int arg2 ; - wxString result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetHelpString",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxMenuBar const *)arg1)->GetHelpString(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuBar_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - wxFrame *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetFrame",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFrame *)((wxMenuBar const *)arg1)->GetFrame(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuBar_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_IsAttached",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMenuBar const *)arg1)->IsAttached(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuBar_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - wxFrame *arg2 = (wxFrame *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "frame", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Attach",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Attach(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuBar_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuBar *arg1 = (wxMenuBar *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_Detach",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Detach(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * MenuBar_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxMenuBar, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_MenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenu *arg1 = (wxMenu *) NULL ; - int arg2 = (int) wxID_ANY ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - wxString const &arg4_defvalue = wxPyEmptyString ; - wxString *arg4 = (wxString *) &arg4_defvalue ; - int arg5 = (int) wxITEM_NORMAL ; - wxMenu *arg6 = (wxMenu *) NULL ; - wxMenuItem *result; - bool temp3 = False ; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "parentMenu",(char *) "id",(char *) "text",(char *) "help",(char *) "kind",(char *) "subMenu", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_MenuItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if (obj0) { - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - if (obj3) { - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - } - if (obj4) { - arg5 = (wxItemKind) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuItem *)new wxMenuItem(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_MenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - wxMenu *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMenu",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenu *)((wxMenuItem const *)arg1)->GetMenu(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_SetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - wxMenu *arg2 = (wxMenu *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "menu", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMenu",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMenu(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetId",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetId(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetId",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxMenuItem const *)arg1)->GetId(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSeparator",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMenuItem const *)arg1)->IsSeparator(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "str", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetText",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetText((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_MenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabel",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxMenuItem const *)arg1)->GetLabel(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetText",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetText(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "text", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabelFromText",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxMenuItem::GetLabelFromText((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; -} - - -static PyObject *_wrap_MenuItem_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetKind",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxMenuItem const *)arg1)->GetKind(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_SetKind(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "kind", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetKind",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxItemKind) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetKind((wxItemKind )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "checkable", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetCheckable",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetCheckable(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsCheckable",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMenuItem const *)arg1)->IsCheckable(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSubMenu",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMenuItem const *)arg1)->IsSubMenu(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - wxMenu *arg2 = (wxMenu *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "menu", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetSubMenu",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSubMenu(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - wxMenu *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetSubMenu",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenu *)((wxMenuItem const *)arg1)->GetSubMenu(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - bool arg2 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "enable", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Enable",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Enable(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsEnabled",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMenuItem const *)arg1)->IsEnabled(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - bool arg2 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "check", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Check",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Check(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsChecked",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxMenuItem const *)arg1)->IsChecked(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_Toggle",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Toggle(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "str", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetHelp",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetHelp((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_MenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetHelp",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetHelp(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - wxAcceleratorEntry *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetAccel",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxAcceleratorEntry *)((wxMenuItem const *)arg1)->GetAccel(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "accel", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetAccel",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorEntry, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetAccel(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - wxFont *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "font", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetFont",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFont((wxFont const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - wxFont result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetFont",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetFont(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxFont * resultptr; - resultptr = new wxFont((wxFont &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colText", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetTextColour((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - wxColour result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetTextColour",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetTextColour(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colBack", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetBackgroundColour((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - wxColour result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBackgroundColour",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetBackgroundColour(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_SetBitmaps(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - wxBitmap *arg2 = 0 ; - wxBitmap const &arg3_defvalue = wxNullBitmap ; - wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bmpChecked",(char *) "bmpUnchecked", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MenuItem_SetBitmaps",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if (obj2) { - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetBitmaps((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - wxBitmap *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bmpDisabled", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - wxBitmap *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetDisabledBitmap",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxBitmap const &_result_ref = ((wxMenuItem const *)arg1)->GetDisabledBitmap(); - result = (wxBitmap *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxBitmap* resultptr = new wxBitmap(*result); - resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_SetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "nWidth", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMarginWidth",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMarginWidth(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_GetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMarginWidth",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetMarginWidth(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_GetDefaultMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MenuItem_GetDefaultMarginWidth",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxMenuItem::GetDefaultMarginWidth(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_IsOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsOwnerDrawn",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->IsOwnerDrawn(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_SetOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - bool arg2 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "ownerDrawn", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_SetOwnerDrawn",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetOwnerDrawn(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_ResetOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_ResetOwnerDrawn",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ResetOwnerDrawn(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - wxBitmap *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bitmap", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBitmap",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetBitmap((wxBitmap const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMenuItem *arg1 = (wxMenuItem *) 0 ; - wxBitmap *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBitmap",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxBitmap const &_result_ref = (arg1)->GetBitmap(); - result = (wxBitmap *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxBitmap* resultptr = new wxBitmap(*result); - resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * MenuItem_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxMenuItem, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_ControlNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ControlNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_ControlNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_Control(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) 0 ; - wxValidator const &arg6_defvalue = wxDefaultValidator ; - wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; - wxString const &arg7_defvalue = wxPyControlNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - wxControl *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_Control",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg6 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxControl *)new wxControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_new_PreControl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxControl *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreControl",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxControl *)new wxControl(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Control_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxControl *arg1 = (wxControl *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) 0 ; - wxValidator const &arg7_defvalue = wxDefaultValidator ; - wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; - wxString const &arg8_defvalue = wxPyControlNameStr ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - bool result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp8 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:Control_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg7 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp8) - delete arg8; - } - return resultobj; - fail: - { - if (temp8) - delete arg8; - } - return NULL; -} - - -static PyObject *_wrap_Control_Command(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxControl *arg1 = (wxControl *) 0 ; - wxCommandEvent *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "event", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_Command",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCommandEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Command(*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Control_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxControl *arg1 = (wxControl *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Control_GetLabel",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetLabel(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Control_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxControl *arg1 = (wxControl *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "label", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_SetLabel",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetLabel((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Control_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; - wxVisualAttributes result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "variant", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Control_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (wxWindowVariant) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxControl::GetClassDefaultAttributes((wxWindowVariant )arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxVisualAttributes * resultptr; - resultptr = new wxVisualAttributes((wxVisualAttributes &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * Control_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxControl, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_ItemContainer_Append(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxItemContainer *arg1 = (wxItemContainer *) 0 ; - wxString *arg2 = 0 ; - PyObject *arg3 = (PyObject *) NULL ; - int result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "clientData", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ItemContainer_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = obj2; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxItemContainer_Append(arg1,(wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ItemContainer_AppendItems(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxItemContainer *arg1 = (wxItemContainer *) 0 ; - wxArrayString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "strings", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_AppendItems",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - if (! PySequence_Check(obj1)) { - PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); - SWIG_fail; - } - arg2 = new wxArrayString; - temp2 = True; - int i, len=PySequence_Length(obj1); - for (i=0; iAdd(Py2wxString(str)); - Py_DECREF(item); - Py_DECREF(str); - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Append((wxArrayString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) delete arg2; - } - return resultobj; - fail: - { - if (temp2) delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ItemContainer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxItemContainer *arg1 = (wxItemContainer *) 0 ; - wxString *arg2 = 0 ; - int arg3 ; - PyObject *arg4 = (PyObject *) NULL ; - int result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ItemContainer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - arg4 = obj3; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxItemContainer_Insert(arg1,(wxString const &)*arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ItemContainer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxItemContainer *arg1 = (wxItemContainer *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_Clear",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Clear(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ItemContainer_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxItemContainer *arg1 = (wxItemContainer *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Delete",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Delete(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ItemContainer_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxItemContainer *arg1 = (wxItemContainer *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetCount",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxItemContainer const *)arg1)->GetCount(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ItemContainer_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxItemContainer *arg1 = (wxItemContainer *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_IsEmpty",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxItemContainer const *)arg1)->IsEmpty(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ItemContainer_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxItemContainer *arg1 = (wxItemContainer *) 0 ; - int arg2 ; - wxString result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetString",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxItemContainer const *)arg1)->GetString(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ItemContainer_GetStrings(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxItemContainer *arg1 = (wxItemContainer *) 0 ; - wxArrayString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStrings",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxItemContainer const *)arg1)->GetStrings(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxArrayString2PyList_helper(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ItemContainer_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxItemContainer *arg1 = (wxItemContainer *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n",(char *) "s", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetString(arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_ItemContainer_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxItemContainer *arg1 = (wxItemContainer *) 0 ; - wxString *arg2 = 0 ; - int result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "s", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_FindString",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxItemContainer const *)arg1)->FindString((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ItemContainer_Select(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxItemContainer *arg1 = (wxItemContainer *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Select",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Select(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ItemContainer_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxItemContainer *arg1 = (wxItemContainer *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetSelection",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxItemContainer const *)arg1)->GetSelection(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ItemContainer_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxItemContainer *arg1 = (wxItemContainer *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStringSelection",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxItemContainer const *)arg1)->GetStringSelection(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ItemContainer_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxItemContainer *arg1 = (wxItemContainer *) 0 ; - int arg2 ; - PyObject *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetClientData",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxItemContainer_GetClientData(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ItemContainer_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxItemContainer *arg1 = (wxItemContainer *) 0 ; - int arg2 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n",(char *) "clientData", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxItemContainer_SetClientData(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * ItemContainer_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxItemContainer, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject * ControlWithItems_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxControlWithItems, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_SizerItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SizerItem",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSizerItem *)new wxSizerItem(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_SizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - wxObject *arg6 = (wxObject *) 0 ; - wxSizerItem *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "width",(char *) "height",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_SizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_SizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - wxObject *arg5 = (wxObject *) 0 ; - wxSizerItem *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "window",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_SizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_SizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - wxObject *arg5 = (wxObject *) 0 ; - wxSizerItem *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "sizer",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_SizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DeleteWindows",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DeleteWindows(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_DetachSizer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DetachSizer",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DetachSizer(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_CalcMin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->CalcMin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - wxPoint arg2 ; - wxSize arg3 ; - wxPoint *argp2 ; - wxSize *argp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetDimension",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint, - SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; - arg2 = *argp2; - if ((SWIG_ConvertPtr(obj2,(void **)(&argp3),SWIGTYPE_p_wxSize, - SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; - arg3 = *argp3; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDimension(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetMinSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_SetInitSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetInitSize",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetInitSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_SetRatioWH(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetRatioWH",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetRatio(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_SetRatioSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - wxSize arg2 ; - wxSize *argp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatioSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize, - SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; - arg2 = *argp2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetRatio(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_SetRatio(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - float arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "ratio", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatio",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (float) SWIG_AsFloat(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetRatio(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_GetRatio(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - float result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRatio",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (float)(arg1)->GetRatio(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromFloat((float)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_IsWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->IsWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_IsSizer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSizer",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->IsSizer(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_IsSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSpacer",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->IsSpacer(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_SetProportion(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "proportion", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetProportion",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetProportion(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_GetProportion(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetProportion",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetProportion(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_SetFlag(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetFlag",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFlag(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_GetFlag(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetFlag",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetFlag(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_SetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "border", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetBorder",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetBorder(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetBorder",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetBorder(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)(arg1)->GetWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "window", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetWindow",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetWindow(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - wxSizer *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSizer",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSizer *)(arg1)->GetSizer(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxSizer(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - wxSizer *arg2 = (wxSizer *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sizer", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSizer",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSizer(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_GetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - wxSize *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSpacer",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxSize const &_result_ref = (arg1)->GetSpacer(); - result = (wxSize *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_SetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - wxSize *arg2 = 0 ; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSpacer",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSpacer((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_Show(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "show", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_Show",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Show(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsShown",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->IsShown(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SizerItem_GetUserData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizerItem *arg1 = (wxSizerItem *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetUserData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxSizerItem_GetUserData(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject * SizerItem_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxSizerItem, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_Sizer__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "_self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer__setOORInfo",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxSizer__setOORInfo(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - int arg3 = (int) 0 ; - int arg4 = (int) 0 ; - int arg5 = (int) 0 ; - PyObject *arg6 = (PyObject *) NULL ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - arg6 = obj5; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxSizer_Add(arg1,arg2,arg3,arg4,arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - int arg2 ; - PyObject *arg3 = (PyObject *) 0 ; - int arg4 = (int) 0 ; - int arg5 = (int) 0 ; - int arg6 = (int) 0 ; - PyObject *arg7 = (PyObject *) NULL ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "before",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Sizer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = obj2; - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - arg6 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - arg7 = obj6; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxSizer_Insert(arg1,arg2,arg3,arg4,arg5,arg6,arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - int arg3 = (int) 0 ; - int arg4 = (int) 0 ; - int arg5 = (int) 0 ; - PyObject *arg6 = (PyObject *) NULL ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - arg6 = obj5; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxSizer_Prepend(arg1,arg2,arg3,arg4,arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Remove",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxSizer_Remove(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer__SetItemMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - wxSize *arg3 = 0 ; - wxSize temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer__SetItemMinSize",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - { - arg3 = &temp3; - if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxSizer__SetItemMinSize(arg1,arg2,(wxSize const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - wxSizerItem *arg2 = (wxSizerItem *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_AddItem",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Add(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - size_t arg2 ; - wxSizerItem *arg3 = (wxSizerItem *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "index",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Insert(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - wxSizerItem *arg2 = (wxSizerItem *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_PrependItem",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Prepend(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Sizer_SetDimension",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDimension(arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_SetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - wxSize *arg2 = 0 ; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetMinSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMinSize((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetMinSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetMinSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_RecalcSizes",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RecalcSizes(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_CalcMin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->CalcMin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_Layout",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Layout(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "window", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Fit",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->Fit(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "window", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_FitInside",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->FitInside(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "window", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetSizeHints",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSizeHints(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "window", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetVirtualSizeHints",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetVirtualSizeHints(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - bool arg2 = (bool) False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "delete_windows", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sizer_Clear",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Clear(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_DeleteWindows",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DeleteWindows(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetChildren",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxSizer_GetChildren(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_Show(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - bool arg3 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "show", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Sizer_Show",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxSizer_Show(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Hide",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxSizer_Hide(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_IsShown",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxSizer_IsShown(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sizer_ShowItems(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "show", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_ShowItems",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ShowItems(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * Sizer_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxSizer, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PySizer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPySizer *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PySizer",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPySizer *)new wxPySizer(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPySizer, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PySizer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPySizer *arg1 = (wxPySizer *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PySizer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPySizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * PySizer_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPySizer, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_BoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) wxHORIZONTAL ; - wxBoxSizer *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "orient", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BoxSizer",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxBoxSizer *)new wxBoxSizer(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBoxSizer, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BoxSizer_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_GetOrientation",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetOrientation(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BoxSizer_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "orient", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BoxSizer_SetOrientation",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetOrientation(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BoxSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_RecalcSizes",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RecalcSizes(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BoxSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_CalcMin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->CalcMin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * BoxSizer_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxBoxSizer, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_StaticBoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStaticBox *arg1 = (wxStaticBox *) 0 ; - int arg2 = (int) wxHORIZONTAL ; - wxStaticBoxSizer *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "box",(char *) "orient", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_StaticBoxSizer",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxStaticBoxSizer *)new wxStaticBoxSizer(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBoxSizer, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_StaticBoxSizer_GetStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; - wxStaticBox *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_GetStaticBox",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxStaticBox *)(arg1)->GetStaticBox(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_StaticBoxSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_RecalcSizes",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RecalcSizes(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_StaticBoxSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_CalcMin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->CalcMin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * StaticBoxSizer_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxStaticBoxSizer, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_GridSizer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 1 ; - int arg2 = (int) 0 ; - int arg3 = (int) 0 ; - int arg4 = (int) 0 ; - wxGridSizer *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_GridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGridSizer *)new wxGridSizer(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridSizer, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGridSizer *arg1 = (wxGridSizer *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_RecalcSizes",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RecalcSizes(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGridSizer *arg1 = (wxGridSizer *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_CalcMin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->CalcMin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridSizer_SetCols(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGridSizer *arg1 = (wxGridSizer *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "cols", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetCols",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetCols(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridSizer_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGridSizer *arg1 = (wxGridSizer *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rows", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetRows",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetRows(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridSizer_SetVGap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGridSizer *arg1 = (wxGridSizer *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "gap", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetVGap",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetVGap(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridSizer_SetHGap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGridSizer *arg1 = (wxGridSizer *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "gap", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetHGap",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetHGap(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridSizer_GetCols(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGridSizer *arg1 = (wxGridSizer *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetCols",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetCols(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridSizer_GetRows(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGridSizer *arg1 = (wxGridSizer *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetRows",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetRows(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridSizer_GetVGap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGridSizer *arg1 = (wxGridSizer *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetVGap",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetVGap(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridSizer_GetHGap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGridSizer *arg1 = (wxGridSizer *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetHGap",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetHGap(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * GridSizer_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxGridSizer, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_FlexGridSizer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 1 ; - int arg2 = (int) 0 ; - int arg3 = (int) 0 ; - int arg4 = (int) 0 ; - wxFlexGridSizer *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_FlexGridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFlexGridSizer *)new wxFlexGridSizer(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFlexGridSizer, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FlexGridSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_RecalcSizes",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RecalcSizes(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FlexGridSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_CalcMin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->CalcMin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FlexGridSizer_AddGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; - size_t arg2 ; - int arg3 = (int) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "idx",(char *) "proportion", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableRow",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AddGrowableRow(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FlexGridSizer_RemoveGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; - size_t arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "idx", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableRow",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RemoveGrowableRow(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FlexGridSizer_AddGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; - size_t arg2 ; - int arg3 = (int) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "idx",(char *) "proportion", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableCol",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AddGrowableCol(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FlexGridSizer_RemoveGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; - size_t arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "idx", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableCol",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RemoveGrowableCol(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FlexGridSizer_SetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "direction", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetFlexibleDirection",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFlexibleDirection(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FlexGridSizer_GetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetFlexibleDirection",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetFlexibleDirection(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FlexGridSizer_SetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "mode", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetNonFlexibleGrowMode",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxFlexSizerGrowMode) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetNonFlexibleGrowMode((wxFlexSizerGrowMode )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FlexGridSizer_GetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetNonFlexibleGrowMode",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetNonFlexibleGrowMode(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FlexGridSizer_GetRowHeights(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; - wxArrayInt *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetRowHeights",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetRowHeights(); - result = (wxArrayInt *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = PyList_New(0); - size_t idx; - for (idx = 0; idx < result->GetCount(); idx += 1) { - PyObject* val = PyInt_FromLong( result->Item(idx) ); - PyList_Append(resultobj, val); - Py_DECREF(val); - } - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FlexGridSizer_GetColWidths(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; - wxArrayInt *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetColWidths",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetColWidths(); - result = (wxArrayInt *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = PyList_New(0); - size_t idx; - for (idx = 0; idx < result->GetCount(); idx += 1) { - PyObject* val = PyInt_FromLong( result->Item(idx) ); - PyList_Append(resultobj, val); - Py_DECREF(val); - } - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * FlexGridSizer_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxFlexGridSizer, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_GBPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - int arg2 = (int) 0 ; - wxGBPosition *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "row",(char *) "col", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBPosition",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGBPosition *)new wxGBPosition(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBPosition, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBPosition_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGBPosition *arg1 = (wxGBPosition *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetRow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxGBPosition const *)arg1)->GetRow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBPosition_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGBPosition *arg1 = (wxGBPosition *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetCol",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxGBPosition const *)arg1)->GetCol(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBPosition_SetRow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGBPosition *arg1 = (wxGBPosition *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "row", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetRow",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetRow(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBPosition_SetCol(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGBPosition *arg1 = (wxGBPosition *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "col", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetCol",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetCol(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBPosition___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGBPosition *arg1 = (wxGBPosition *) 0 ; - wxGBPosition *arg2 = 0 ; - bool result; - wxGBPosition temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___eq__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->operator ==((wxGBPosition const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBPosition___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGBPosition *arg1 = (wxGBPosition *) 0 ; - wxGBPosition *arg2 = 0 ; - bool result; - wxGBPosition temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___ne__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->operator !=((wxGBPosition const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBPosition_Set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGBPosition *arg1 = (wxGBPosition *) 0 ; - int arg2 = (int) 0 ; - int arg3 = (int) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "row",(char *) "col", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBPosition_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxGBPosition_Set(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBPosition_Get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGBPosition *arg1 = (wxGBPosition *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_Get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxGBPosition_Get(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject * GBPosition_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxGBPosition, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_GBSpan(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 1 ; - int arg2 = (int) 1 ; - wxGBSpan *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "rowspan",(char *) "colspan", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBSpan",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGBSpan *)new wxGBSpan(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSpan, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBSpan_GetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGBSpan *arg1 = (wxGBSpan *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetRowspan",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxGBSpan const *)arg1)->GetRowspan(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBSpan_GetColspan(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGBSpan *arg1 = (wxGBSpan *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetColspan",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxGBSpan const *)arg1)->GetColspan(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBSpan_SetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGBSpan *arg1 = (wxGBSpan *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rowspan", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetRowspan",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetRowspan(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBSpan_SetColspan(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGBSpan *arg1 = (wxGBSpan *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colspan", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetColspan",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetColspan(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGBSpan *arg1 = (wxGBSpan *) 0 ; - wxGBSpan *arg2 = 0 ; - bool result; - wxGBSpan temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___eq__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->operator ==((wxGBSpan const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGBSpan *arg1 = (wxGBSpan *) 0 ; - wxGBSpan *arg2 = 0 ; - bool result; - wxGBSpan temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___ne__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->operator !=((wxGBSpan const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBSpan_Set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGBSpan *arg1 = (wxGBSpan *) 0 ; - int arg2 = (int) 1 ; - int arg3 = (int) 1 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rowspan",(char *) "colspan", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBSpan_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxGBSpan_Set(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBSpan_Get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGBSpan *arg1 = (wxGBSpan *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_Get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxGBSpan_Get(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject * GBSpan_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxGBSpan, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_DefaultSpan_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable DefaultSpan is read-only."); - return 1; -} - - -static PyObject *_wrap_DefaultSpan_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSpan), SWIGTYPE_p_wxGBSpan, 0); - return pyobj; -} - - -static PyObject *_wrap_new_GBSizerItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGBSizerItem *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GBSizerItem",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGBSizerItem *)new wxGBSizerItem(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_GBSizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxGBPosition *arg2 = 0 ; - wxGBSpan *arg3 = 0 ; - int arg4 ; - int arg5 ; - wxObject *arg6 = (wxObject *) 0 ; - wxGBSizerItem *result; - wxGBPosition temp2 ; - wxGBSpan temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "window",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_GBSizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; - } - { - arg3 = &temp3; - if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; - } - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGBSizerItem *)new wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_GBSizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSizer *arg1 = (wxSizer *) 0 ; - wxGBPosition *arg2 = 0 ; - wxGBSpan *arg3 = 0 ; - int arg4 ; - int arg5 ; - wxObject *arg6 = (wxObject *) 0 ; - wxGBSizerItem *result; - wxGBPosition temp2 ; - wxGBSpan temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "sizer",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_GBSizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; - } - { - arg3 = &temp3; - if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; - } - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGBSizerItem *)new wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_GBSizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - int arg2 ; - wxGBPosition *arg3 = 0 ; - wxGBSpan *arg4 = 0 ; - int arg5 ; - int arg6 ; - wxObject *arg7 = (wxObject *) 0 ; - wxGBSizerItem *result; - wxGBPosition temp3 ; - wxGBSpan temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "width",(char *) "height",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:new_GBSizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = &temp3; - if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; - } - { - arg4 = &temp4; - if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; - } - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - arg6 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGBSizerItem *)new wxGBSizerItem(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBSizerItem_GetPos(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; - wxGBPosition result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetPos",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxGBSizerItem const *)arg1)->GetPos(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxGBPosition * resultptr; - resultptr = new wxGBPosition((wxGBPosition &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBSizerItem_GetSpan(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; - wxGBSpan result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetSpan",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxGBSizerItem const *)arg1)->GetSpan(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxGBSpan * resultptr; - resultptr = new wxGBSpan((wxGBSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBSizerItem_SetPos(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; - wxGBPosition *arg2 = 0 ; - bool result; - wxGBPosition temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetPos",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetPos((wxGBPosition const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBSizerItem_SetSpan(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; - wxGBSpan *arg2 = 0 ; - bool result; - wxGBSpan temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "span", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetSpan",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetSpan((wxGBSpan const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBSizerItem_Intersects__SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; - wxGBSizerItem *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:GBSizerItem_Intersects",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Intersects((wxGBSizerItem const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBSizerItem_Intersects__SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; - wxGBPosition *arg2 = 0 ; - wxGBSpan *arg3 = 0 ; - bool result; - wxGBPosition temp2 ; - wxGBSpan temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OOO:GBSizerItem_Intersects",&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; - } - { - arg3 = &temp3; - if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Intersects((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBSizerItem_Intersects(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_GBSizerItem_Intersects__SWIG_0(self,args); - } - } - } - if (argc == 3) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - _v = wxPySimple_typecheck(argv[1], wxT("wxGBPosition"), 2); - } - if (_v) { - { - _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); - } - if (_v) { - return _wrap_GBSizerItem_Intersects__SWIG_1(self,args); - } - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GBSizerItem_Intersects'"); - return NULL; -} - - -static PyObject *_wrap_GBSizerItem_GetEndPos(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; - int *arg2 = 0 ; - int *arg3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "row",(char *) "col", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GBSizerItem_GetEndPos",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_int, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_int, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->GetEndPos(*arg2,*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBSizerItem_GetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; - wxGridBagSizer *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetGBSizer",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGridBagSizer *)((wxGBSizerItem const *)arg1)->GetGBSizer(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GBSizerItem_SetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; - wxGridBagSizer *arg2 = (wxGridBagSizer *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sizer", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetGBSizer",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetGBSizer(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * GBSizerItem_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxGBSizerItem, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_GridBagSizer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - int arg2 = (int) 0 ; - wxGridBagSizer *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "vgap",(char *) "hgap", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridBagSizer",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGridBagSizer *)new wxGridBagSizer(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - wxGBPosition *arg3 = 0 ; - wxGBSpan const &arg4_defvalue = wxDefaultSpan ; - wxGBSpan *arg4 = (wxGBSpan *) &arg4_defvalue ; - int arg5 = (int) 0 ; - int arg6 = (int) 0 ; - PyObject *arg7 = (PyObject *) NULL ; - bool result; - wxGBPosition temp3 ; - wxGBSpan temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:GridBagSizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - { - arg3 = &temp3; - if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - arg6 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - arg7 = obj6; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxGridBagSizer_Add(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_AddItem",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Add(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_GetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_GetEmptyCellSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxGridBagSizer const *)arg1)->GetEmptyCellSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_SetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - wxSize *arg2 = 0 ; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_SetEmptyCellSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetEmptyCellSize((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - wxGBPosition result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetItemPosition(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxGBPosition * resultptr; - resultptr = new wxGBPosition((wxGBPosition &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - wxSizer *arg2 = (wxSizer *) 0 ; - wxGBPosition result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetItemPosition(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxGBPosition * resultptr; - resultptr = new wxGBPosition((wxGBPosition &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_2(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - size_t arg2 ; - wxGBPosition result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetItemPosition(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxGBPosition * resultptr; - resultptr = new wxGBPosition((wxGBPosition &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_GetItemPosition(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_GridBagSizer_GetItemPosition__SWIG_0(self,args); - } - } - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_GridBagSizer_GetItemPosition__SWIG_1(self,args); - } - } - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - _v = SWIG_CheckUnsignedLong(argv[1]); - if (_v) { - return _wrap_GridBagSizer_GetItemPosition__SWIG_2(self,args); - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemPosition'"); - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - wxGBPosition *arg3 = 0 ; - bool result; - wxGBPosition temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg3 = &temp3; - if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - wxSizer *arg2 = (wxSizer *) 0 ; - wxGBPosition *arg3 = 0 ; - bool result; - wxGBPosition temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg3 = &temp3; - if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_2(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - size_t arg2 ; - wxGBPosition *arg3 = 0 ; - bool result; - wxGBPosition temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = &temp3; - if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_SetItemPosition(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if (argc == 3) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); - } - if (_v) { - return _wrap_GridBagSizer_SetItemPosition__SWIG_0(self,args); - } - } - } - } - if (argc == 3) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); - } - if (_v) { - return _wrap_GridBagSizer_SetItemPosition__SWIG_1(self,args); - } - } - } - } - if (argc == 3) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - _v = SWIG_CheckUnsignedLong(argv[1]); - if (_v) { - { - _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); - } - if (_v) { - return _wrap_GridBagSizer_SetItemPosition__SWIG_2(self,args); - } - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemPosition'"); - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - wxGBSpan result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetItemSpan(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxGBSpan * resultptr; - resultptr = new wxGBSpan((wxGBSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - wxSizer *arg2 = (wxSizer *) 0 ; - wxGBSpan result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetItemSpan(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxGBSpan * resultptr; - resultptr = new wxGBSpan((wxGBSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_2(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - size_t arg2 ; - wxGBSpan result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetItemSpan(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxGBSpan * resultptr; - resultptr = new wxGBSpan((wxGBSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_GetItemSpan(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_GridBagSizer_GetItemSpan__SWIG_0(self,args); - } - } - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_GridBagSizer_GetItemSpan__SWIG_1(self,args); - } - } - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - _v = SWIG_CheckUnsignedLong(argv[1]); - if (_v) { - return _wrap_GridBagSizer_GetItemSpan__SWIG_2(self,args); - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemSpan'"); - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - wxGBSpan *arg3 = 0 ; - bool result; - wxGBSpan temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg3 = &temp3; - if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - wxSizer *arg2 = (wxSizer *) 0 ; - wxGBSpan *arg3 = 0 ; - bool result; - wxGBSpan temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg3 = &temp3; - if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_2(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - size_t arg2 ; - wxGBSpan *arg3 = 0 ; - bool result; - wxGBSpan temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = &temp3; - if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_SetItemSpan(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if (argc == 3) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); - } - if (_v) { - return _wrap_GridBagSizer_SetItemSpan__SWIG_0(self,args); - } - } - } - } - if (argc == 3) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); - } - if (_v) { - return _wrap_GridBagSizer_SetItemSpan__SWIG_1(self,args); - } - } - } - } - if (argc == 3) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - _v = SWIG_CheckUnsignedLong(argv[1]); - if (_v) { - { - _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); - } - if (_v) { - return _wrap_GridBagSizer_SetItemSpan__SWIG_2(self,args); - } - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemSpan'"); - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_FindItem__SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - wxGBSizerItem *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGBSizerItem *)(arg1)->FindItem(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_FindItem__SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - wxSizer *arg2 = (wxSizer *) 0 ; - wxGBSizerItem *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGBSizerItem *)(arg1)->FindItem(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_FindItem(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_GridBagSizer_FindItem__SWIG_0(self,args); - } - } - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_GridBagSizer_FindItem__SWIG_1(self,args); - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_FindItem'"); - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_FindItemAtPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - wxGBPosition *arg2 = 0 ; - wxGBSizerItem *result; - wxGBPosition temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPosition",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGBSizerItem *)(arg1)->FindItemAtPosition((wxGBPosition const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_FindItemAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - wxPoint *arg2 = 0 ; - wxGBSizerItem *result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPoint",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGBSizerItem *)(arg1)->FindItemAtPoint((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_FindItemWithData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - wxObject *arg2 = (wxObject *) 0 ; - wxGBSizerItem *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "userData", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemWithData",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGBSizerItem *)(arg1)->FindItemWithData((wxObject const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_RecalcSizes",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RecalcSizes(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_CalcMin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->CalcMin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_CheckForIntersection__SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; - wxGBSizerItem *arg3 = (wxGBSizerItem *) NULL ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO|O:GridBagSizer_CheckForIntersection",&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGBSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->CheckForIntersection(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_CheckForIntersection__SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; - wxGBPosition *arg2 = 0 ; - wxGBSpan *arg3 = 0 ; - wxGBSizerItem *arg4 = (wxGBSizerItem *) NULL ; - bool result; - wxGBPosition temp2 ; - wxGBSpan temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OOO|O:GridBagSizer_CheckForIntersection",&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; - } - { - arg3 = &temp3; - if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; - } - if (obj3) { - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGBSizerItem, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->CheckForIntersection((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GridBagSizer_CheckForIntersection(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 4); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if ((argc >= 2) && (argc <= 3)) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - if (argc <= 2) { - return _wrap_GridBagSizer_CheckForIntersection__SWIG_0(self,args); - } - { - void *ptr; - if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_GridBagSizer_CheckForIntersection__SWIG_0(self,args); - } - } - } - } - if ((argc >= 3) && (argc <= 4)) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - _v = wxPySimple_typecheck(argv[1], wxT("wxGBPosition"), 2); - } - if (_v) { - { - _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); - } - if (_v) { - if (argc <= 3) { - return _wrap_GridBagSizer_CheckForIntersection__SWIG_1(self,args); - } - { - void *ptr; - if (SWIG_ConvertPtr(argv[3], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_GridBagSizer_CheckForIntersection__SWIG_1(self,args); - } - } - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_CheckForIntersection'"); - return NULL; -} - - -static PyObject * GridBagSizer_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxGridBagSizer, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_IndividualLayoutConstraint_Set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - int arg2 ; - wxWindow *arg3 = (wxWindow *) 0 ; - int arg4 ; - int arg5 = (int) 0 ; - int arg6 = (int) wxLAYOUT_DEFAULT_MARGIN ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rel",(char *) "otherW",(char *) "otherE",(char *) "val",(char *) "marg", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:IndividualLayoutConstraint_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxRelationship) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg4 = (wxEdge) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - arg6 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Set((wxRelationship )arg2,arg3,(wxEdge )arg4,arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_LeftOf(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 = (int) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sibling",(char *) "marg", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_LeftOf",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->LeftOf(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_RightOf(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 = (int) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sibling",(char *) "marg", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_RightOf",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RightOf(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_Above(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 = (int) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sibling",(char *) "marg", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Above",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Above(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_Below(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 = (int) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sibling",(char *) "marg", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Below",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Below(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_SameAs(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - int arg4 = (int) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "otherW",(char *) "edge",(char *) "marg", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:IndividualLayoutConstraint_SameAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (wxEdge) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SameAs(arg2,(wxEdge )arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_PercentOf(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - int arg4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "otherW",(char *) "wh",(char *) "per", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_PercentOf",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (wxEdge) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->PercentOf(arg2,(wxEdge )arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_Absolute(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "val", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_Absolute",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Absolute(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_Unconstrained(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_Unconstrained",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Unconstrained(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_AsIs(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_AsIs",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AsIs(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_GetOtherWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)(arg1)->GetOtherWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_GetMyEdge(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMyEdge",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetMyEdge(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_SetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "which", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetEdge",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxEdge) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetEdge((wxEdge )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "v", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetValue",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetValue(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_GetMargin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMargin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetMargin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_SetMargin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetMargin",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMargin(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetValue",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetValue(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_GetPercent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetPercent",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetPercent(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_GetOtherEdge(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherEdge",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetOtherEdge(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_GetDone(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetDone",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxIndividualLayoutConstraint const *)arg1)->GetDone(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_SetDone(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "d", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetDone",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDone(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_GetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetRelationship",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetRelationship(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_SetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "r", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetRelationship",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxRelationship) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetRelationship((wxRelationship )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_ResetIfWin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "otherW", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_ResetIfWin",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->ResetIfWin(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_SatisfyConstraint(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; - wxWindow *arg3 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "constraints",(char *) "win", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IndividualLayoutConstraint_SatisfyConstraint",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SatisfyConstraint(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IndividualLayoutConstraint_GetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; - int arg2 ; - wxWindow *arg3 = (wxWindow *) 0 ; - wxWindow *arg4 = (wxWindow *) 0 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "which",(char *) "thisWin",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_GetEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxEdge) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetEdge((wxEdge )arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * IndividualLayoutConstraint_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxIndividualLayoutConstraint, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_LayoutConstraints_left_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; - wxIndividualLayoutConstraint *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_left_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (wxIndividualLayoutConstraint *)& ((arg1)->left); - - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_LayoutConstraints_top_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; - wxIndividualLayoutConstraint *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_top_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (wxIndividualLayoutConstraint *)& ((arg1)->top); - - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_LayoutConstraints_right_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; - wxIndividualLayoutConstraint *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_right_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (wxIndividualLayoutConstraint *)& ((arg1)->right); - - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_LayoutConstraints_bottom_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; - wxIndividualLayoutConstraint *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_bottom_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (wxIndividualLayoutConstraint *)& ((arg1)->bottom); - - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_LayoutConstraints_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; - wxIndividualLayoutConstraint *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_width_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (wxIndividualLayoutConstraint *)& ((arg1)->width); - - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_LayoutConstraints_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; - wxIndividualLayoutConstraint *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_height_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (wxIndividualLayoutConstraint *)& ((arg1)->height); - - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_LayoutConstraints_centreX_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; - wxIndividualLayoutConstraint *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreX_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (wxIndividualLayoutConstraint *)& ((arg1)->centreX); - - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_LayoutConstraints_centreY_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; - wxIndividualLayoutConstraint *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreY_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (wxIndividualLayoutConstraint *)& ((arg1)->centreY); - - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_LayoutConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLayoutConstraints *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutConstraints",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxLayoutConstraints *)new wxLayoutConstraints(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_LayoutConstraints_SatisfyConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int *arg3 = (int *) 0 ; - bool result; - int temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "win", NULL - }; - - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LayoutConstraints_SatisfyConstraints",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SatisfyConstraints(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_LayoutConstraints_AreSatisfied(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_AreSatisfied",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxLayoutConstraints const *)arg1)->AreSatisfied(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * LayoutConstraints_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxLayoutConstraints, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyMethodDef SwigMethods[] = { - { (char *)"_wxPySetDictionary", __wxPySetDictionary, METH_VARARGS }, - { (char *)"_wxPyFixStockObjects", __wxPyFixStockObjects, METH_VARARGS }, - { (char *)"Object_GetClassName", (PyCFunction) _wrap_Object_GetClassName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Object_Destroy", (PyCFunction) _wrap_Object_Destroy, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Object_swigregister", Object_swigregister, METH_VARARGS }, - { (char *)"Size_width_set", (PyCFunction) _wrap_Size_width_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Size_width_get", (PyCFunction) _wrap_Size_width_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Size_height_set", (PyCFunction) _wrap_Size_height_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Size_height_get", (PyCFunction) _wrap_Size_height_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_Size", (PyCFunction) _wrap_new_Size, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_Size", (PyCFunction) _wrap_delete_Size, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Size___eq__", (PyCFunction) _wrap_Size___eq__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Size___ne__", (PyCFunction) _wrap_Size___ne__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Size___add__", (PyCFunction) _wrap_Size___add__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Size___sub__", (PyCFunction) _wrap_Size___sub__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Size_IncTo", (PyCFunction) _wrap_Size_IncTo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Size_DecTo", (PyCFunction) _wrap_Size_DecTo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Size_Set", (PyCFunction) _wrap_Size_Set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Size_SetWidth", (PyCFunction) _wrap_Size_SetWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Size_SetHeight", (PyCFunction) _wrap_Size_SetHeight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Size_GetWidth", (PyCFunction) _wrap_Size_GetWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Size_GetHeight", (PyCFunction) _wrap_Size_GetHeight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Size_IsFullySpecified", (PyCFunction) _wrap_Size_IsFullySpecified, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Size_SetDefaults", (PyCFunction) _wrap_Size_SetDefaults, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Size_Get", (PyCFunction) _wrap_Size_Get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Size_swigregister", Size_swigregister, METH_VARARGS }, - { (char *)"RealPoint_x_set", (PyCFunction) _wrap_RealPoint_x_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RealPoint_x_get", (PyCFunction) _wrap_RealPoint_x_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RealPoint_y_set", (PyCFunction) _wrap_RealPoint_y_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RealPoint_y_get", (PyCFunction) _wrap_RealPoint_y_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_RealPoint", (PyCFunction) _wrap_new_RealPoint, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_RealPoint", (PyCFunction) _wrap_delete_RealPoint, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RealPoint___eq__", (PyCFunction) _wrap_RealPoint___eq__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RealPoint___ne__", (PyCFunction) _wrap_RealPoint___ne__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RealPoint___add__", (PyCFunction) _wrap_RealPoint___add__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RealPoint___sub__", (PyCFunction) _wrap_RealPoint___sub__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RealPoint_Set", (PyCFunction) _wrap_RealPoint_Set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RealPoint_Get", (PyCFunction) _wrap_RealPoint_Get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RealPoint_swigregister", RealPoint_swigregister, METH_VARARGS }, - { (char *)"Point_x_set", (PyCFunction) _wrap_Point_x_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point_x_get", (PyCFunction) _wrap_Point_x_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point_y_set", (PyCFunction) _wrap_Point_y_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point_y_get", (PyCFunction) _wrap_Point_y_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_Point", (PyCFunction) _wrap_new_Point, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_Point", (PyCFunction) _wrap_delete_Point, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point___eq__", (PyCFunction) _wrap_Point___eq__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point___ne__", (PyCFunction) _wrap_Point___ne__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point___add__", (PyCFunction) _wrap_Point___add__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point___sub__", (PyCFunction) _wrap_Point___sub__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point___iadd__", (PyCFunction) _wrap_Point___iadd__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point___isub__", (PyCFunction) _wrap_Point___isub__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point_Set", (PyCFunction) _wrap_Point_Set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point_Get", (PyCFunction) _wrap_Point_Get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS }, - { (char *)"new_Rect", (PyCFunction) _wrap_new_Rect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_RectPP", (PyCFunction) _wrap_new_RectPP, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_RectPS", (PyCFunction) _wrap_new_RectPS, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_Rect", (PyCFunction) _wrap_delete_Rect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_GetX", (PyCFunction) _wrap_Rect_GetX, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_SetX", (PyCFunction) _wrap_Rect_SetX, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_GetY", (PyCFunction) _wrap_Rect_GetY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_SetY", (PyCFunction) _wrap_Rect_SetY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_GetWidth", (PyCFunction) _wrap_Rect_GetWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_SetWidth", (PyCFunction) _wrap_Rect_SetWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_GetHeight", (PyCFunction) _wrap_Rect_GetHeight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_SetHeight", (PyCFunction) _wrap_Rect_SetHeight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_GetPosition", (PyCFunction) _wrap_Rect_GetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_SetPosition", (PyCFunction) _wrap_Rect_SetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_GetSize", (PyCFunction) _wrap_Rect_GetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_SetSize", (PyCFunction) _wrap_Rect_SetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_GetTopLeft", (PyCFunction) _wrap_Rect_GetTopLeft, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_SetTopLeft", (PyCFunction) _wrap_Rect_SetTopLeft, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_GetBottomRight", (PyCFunction) _wrap_Rect_GetBottomRight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_SetBottomRight", (PyCFunction) _wrap_Rect_SetBottomRight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_GetLeft", (PyCFunction) _wrap_Rect_GetLeft, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_GetTop", (PyCFunction) _wrap_Rect_GetTop, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_GetBottom", (PyCFunction) _wrap_Rect_GetBottom, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_GetRight", (PyCFunction) _wrap_Rect_GetRight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_SetLeft", (PyCFunction) _wrap_Rect_SetLeft, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_SetRight", (PyCFunction) _wrap_Rect_SetRight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_SetTop", (PyCFunction) _wrap_Rect_SetTop, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_SetBottom", (PyCFunction) _wrap_Rect_SetBottom, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_Inflate", (PyCFunction) _wrap_Rect_Inflate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_Deflate", (PyCFunction) _wrap_Rect_Deflate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_OffsetXY", (PyCFunction) _wrap_Rect_OffsetXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_Offset", (PyCFunction) _wrap_Rect_Offset, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_Intersect", (PyCFunction) _wrap_Rect_Intersect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect___add__", (PyCFunction) _wrap_Rect___add__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect___iadd__", (PyCFunction) _wrap_Rect___iadd__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect___eq__", (PyCFunction) _wrap_Rect___eq__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect___ne__", (PyCFunction) _wrap_Rect___ne__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_InsideXY", (PyCFunction) _wrap_Rect_InsideXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_Inside", (PyCFunction) _wrap_Rect_Inside, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_Intersects", (PyCFunction) _wrap_Rect_Intersects, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_x_set", (PyCFunction) _wrap_Rect_x_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_x_get", (PyCFunction) _wrap_Rect_x_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_y_set", (PyCFunction) _wrap_Rect_y_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_y_get", (PyCFunction) _wrap_Rect_y_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_width_set", (PyCFunction) _wrap_Rect_width_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_width_get", (PyCFunction) _wrap_Rect_width_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_height_set", (PyCFunction) _wrap_Rect_height_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_height_get", (PyCFunction) _wrap_Rect_height_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_Set", (PyCFunction) _wrap_Rect_Set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_Get", (PyCFunction) _wrap_Rect_Get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS }, - { (char *)"IntersectRect", (PyCFunction) _wrap_IntersectRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_Point2D", (PyCFunction) _wrap_new_Point2D, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_Point2DCopy", (PyCFunction) _wrap_new_Point2DCopy, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_Point2DFromPoint", (PyCFunction) _wrap_new_Point2DFromPoint, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point2D_GetFloor", (PyCFunction) _wrap_Point2D_GetFloor, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point2D_GetRounded", (PyCFunction) _wrap_Point2D_GetRounded, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point2D_GetVectorLength", (PyCFunction) _wrap_Point2D_GetVectorLength, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point2D_GetVectorAngle", (PyCFunction) _wrap_Point2D_GetVectorAngle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point2D_SetVectorLength", (PyCFunction) _wrap_Point2D_SetVectorLength, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point2D_SetVectorAngle", (PyCFunction) _wrap_Point2D_SetVectorAngle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point2D_GetDistance", (PyCFunction) _wrap_Point2D_GetDistance, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point2D_GetDistanceSquare", (PyCFunction) _wrap_Point2D_GetDistanceSquare, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point2D_GetDotProduct", (PyCFunction) _wrap_Point2D_GetDotProduct, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point2D_GetCrossProduct", (PyCFunction) _wrap_Point2D_GetCrossProduct, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point2D___neg__", (PyCFunction) _wrap_Point2D___neg__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point2D___iadd__", (PyCFunction) _wrap_Point2D___iadd__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point2D___isub__", (PyCFunction) _wrap_Point2D___isub__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point2D___imul__", (PyCFunction) _wrap_Point2D___imul__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point2D___idiv__", (PyCFunction) _wrap_Point2D___idiv__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point2D___eq__", (PyCFunction) _wrap_Point2D___eq__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point2D___ne__", (PyCFunction) _wrap_Point2D___ne__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point2D_x_set", (PyCFunction) _wrap_Point2D_x_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point2D_x_get", (PyCFunction) _wrap_Point2D_x_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point2D_y_set", (PyCFunction) _wrap_Point2D_y_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point2D_y_get", (PyCFunction) _wrap_Point2D_y_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point2D_Set", (PyCFunction) _wrap_Point2D_Set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point2D_Get", (PyCFunction) _wrap_Point2D_Get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Point2D_swigregister", Point2D_swigregister, METH_VARARGS }, - { (char *)"new_InputStream", (PyCFunction) _wrap_new_InputStream, METH_VARARGS | METH_KEYWORDS }, - { (char *)"InputStream_close", (PyCFunction) _wrap_InputStream_close, METH_VARARGS | METH_KEYWORDS }, - { (char *)"InputStream_flush", (PyCFunction) _wrap_InputStream_flush, METH_VARARGS | METH_KEYWORDS }, - { (char *)"InputStream_eof", (PyCFunction) _wrap_InputStream_eof, METH_VARARGS | METH_KEYWORDS }, - { (char *)"InputStream_read", (PyCFunction) _wrap_InputStream_read, METH_VARARGS | METH_KEYWORDS }, - { (char *)"InputStream_readline", (PyCFunction) _wrap_InputStream_readline, METH_VARARGS | METH_KEYWORDS }, - { (char *)"InputStream_readlines", (PyCFunction) _wrap_InputStream_readlines, METH_VARARGS | METH_KEYWORDS }, - { (char *)"InputStream_seek", (PyCFunction) _wrap_InputStream_seek, METH_VARARGS | METH_KEYWORDS }, - { (char *)"InputStream_tell", (PyCFunction) _wrap_InputStream_tell, METH_VARARGS | METH_KEYWORDS }, - { (char *)"InputStream_Peek", (PyCFunction) _wrap_InputStream_Peek, METH_VARARGS | METH_KEYWORDS }, - { (char *)"InputStream_GetC", (PyCFunction) _wrap_InputStream_GetC, METH_VARARGS | METH_KEYWORDS }, - { (char *)"InputStream_LastRead", (PyCFunction) _wrap_InputStream_LastRead, METH_VARARGS | METH_KEYWORDS }, - { (char *)"InputStream_CanRead", (PyCFunction) _wrap_InputStream_CanRead, METH_VARARGS | METH_KEYWORDS }, - { (char *)"InputStream_Eof", (PyCFunction) _wrap_InputStream_Eof, METH_VARARGS | METH_KEYWORDS }, - { (char *)"InputStream_Ungetch", (PyCFunction) _wrap_InputStream_Ungetch, METH_VARARGS | METH_KEYWORDS }, - { (char *)"InputStream_SeekI", (PyCFunction) _wrap_InputStream_SeekI, METH_VARARGS | METH_KEYWORDS }, - { (char *)"InputStream_TellI", (PyCFunction) _wrap_InputStream_TellI, METH_VARARGS | METH_KEYWORDS }, - { (char *)"InputStream_swigregister", InputStream_swigregister, METH_VARARGS }, - { (char *)"OutputStream_write", (PyCFunction) _wrap_OutputStream_write, METH_VARARGS | METH_KEYWORDS }, - { (char *)"OutputStream_swigregister", OutputStream_swigregister, METH_VARARGS }, - { (char *)"new_FSFile", (PyCFunction) _wrap_new_FSFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_FSFile", (PyCFunction) _wrap_delete_FSFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FSFile_GetStream", (PyCFunction) _wrap_FSFile_GetStream, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FSFile_GetMimeType", (PyCFunction) _wrap_FSFile_GetMimeType, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FSFile_GetLocation", (PyCFunction) _wrap_FSFile_GetLocation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FSFile_GetAnchor", (PyCFunction) _wrap_FSFile_GetAnchor, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FSFile_GetModificationTime", (PyCFunction) _wrap_FSFile_GetModificationTime, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FSFile_swigregister", FSFile_swigregister, METH_VARARGS }, - { (char *)"CPPFileSystemHandler_swigregister", CPPFileSystemHandler_swigregister, METH_VARARGS }, - { (char *)"new_FileSystemHandler", (PyCFunction) _wrap_new_FileSystemHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileSystemHandler__setCallbackInfo", (PyCFunction) _wrap_FileSystemHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileSystemHandler_CanOpen", (PyCFunction) _wrap_FileSystemHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileSystemHandler_OpenFile", (PyCFunction) _wrap_FileSystemHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileSystemHandler_FindFirst", (PyCFunction) _wrap_FileSystemHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileSystemHandler_FindNext", (PyCFunction) _wrap_FileSystemHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileSystemHandler_GetProtocol", (PyCFunction) _wrap_FileSystemHandler_GetProtocol, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileSystemHandler_GetLeftLocation", (PyCFunction) _wrap_FileSystemHandler_GetLeftLocation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileSystemHandler_GetAnchor", (PyCFunction) _wrap_FileSystemHandler_GetAnchor, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileSystemHandler_GetRightLocation", (PyCFunction) _wrap_FileSystemHandler_GetRightLocation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileSystemHandler_GetMimeTypeFromExt", (PyCFunction) _wrap_FileSystemHandler_GetMimeTypeFromExt, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileSystemHandler_swigregister", FileSystemHandler_swigregister, METH_VARARGS }, - { (char *)"new_FileSystem", (PyCFunction) _wrap_new_FileSystem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_FileSystem", (PyCFunction) _wrap_delete_FileSystem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileSystem_ChangePathTo", (PyCFunction) _wrap_FileSystem_ChangePathTo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileSystem_GetPath", (PyCFunction) _wrap_FileSystem_GetPath, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileSystem_OpenFile", (PyCFunction) _wrap_FileSystem_OpenFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileSystem_FindFirst", (PyCFunction) _wrap_FileSystem_FindFirst, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileSystem_FindNext", (PyCFunction) _wrap_FileSystem_FindNext, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileSystem_AddHandler", (PyCFunction) _wrap_FileSystem_AddHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileSystem_CleanUpHandlers", (PyCFunction) _wrap_FileSystem_CleanUpHandlers, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileSystem_FileNameToURL", (PyCFunction) _wrap_FileSystem_FileNameToURL, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileSystem_swigregister", FileSystem_swigregister, METH_VARARGS }, - { (char *)"FileSystem_URLToFileName", (PyCFunction) _wrap_FileSystem_URLToFileName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_InternetFSHandler", (PyCFunction) _wrap_new_InternetFSHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"InternetFSHandler_CanOpen", (PyCFunction) _wrap_InternetFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, - { (char *)"InternetFSHandler_OpenFile", (PyCFunction) _wrap_InternetFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"InternetFSHandler_swigregister", InternetFSHandler_swigregister, METH_VARARGS }, - { (char *)"new_ZipFSHandler", (PyCFunction) _wrap_new_ZipFSHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ZipFSHandler_CanOpen", (PyCFunction) _wrap_ZipFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ZipFSHandler_OpenFile", (PyCFunction) _wrap_ZipFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ZipFSHandler_FindFirst", (PyCFunction) _wrap_ZipFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ZipFSHandler_FindNext", (PyCFunction) _wrap_ZipFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ZipFSHandler_swigregister", ZipFSHandler_swigregister, METH_VARARGS }, - { (char *)"__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxImage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"__wxMemoryFSHandler_AddFile_Data", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_Data, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_MemoryFSHandler", (PyCFunction) _wrap_new_MemoryFSHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MemoryFSHandler_RemoveFile", (PyCFunction) _wrap_MemoryFSHandler_RemoveFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MemoryFSHandler_CanOpen", (PyCFunction) _wrap_MemoryFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MemoryFSHandler_OpenFile", (PyCFunction) _wrap_MemoryFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MemoryFSHandler_FindFirst", (PyCFunction) _wrap_MemoryFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MemoryFSHandler_FindNext", (PyCFunction) _wrap_MemoryFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MemoryFSHandler_swigregister", MemoryFSHandler_swigregister, METH_VARARGS }, - { (char *)"ImageHandler_GetName", (PyCFunction) _wrap_ImageHandler_GetName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ImageHandler_GetExtension", (PyCFunction) _wrap_ImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ImageHandler_GetType", (PyCFunction) _wrap_ImageHandler_GetType, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ImageHandler_GetMimeType", (PyCFunction) _wrap_ImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ImageHandler_CanRead", (PyCFunction) _wrap_ImageHandler_CanRead, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ImageHandler_SetName", (PyCFunction) _wrap_ImageHandler_SetName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ImageHandler_SetExtension", (PyCFunction) _wrap_ImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ImageHandler_SetType", (PyCFunction) _wrap_ImageHandler_SetType, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ImageHandler_SetMimeType", (PyCFunction) _wrap_ImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ImageHandler_swigregister", ImageHandler_swigregister, METH_VARARGS }, - { (char *)"new_ImageHistogram", (PyCFunction) _wrap_new_ImageHistogram, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ImageHistogram_MakeKey", (PyCFunction) _wrap_ImageHistogram_MakeKey, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ImageHistogram_FindFirstUnusedColour", (PyCFunction) _wrap_ImageHistogram_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ImageHistogram_swigregister", ImageHistogram_swigregister, METH_VARARGS }, - { (char *)"new_Image", (PyCFunction) _wrap_new_Image, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_Image", (PyCFunction) _wrap_delete_Image, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_ImageFromMime", (PyCFunction) _wrap_new_ImageFromMime, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_ImageFromStream", (PyCFunction) _wrap_new_ImageFromStream, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_ImageFromStreamMime", (PyCFunction) _wrap_new_ImageFromStreamMime, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_EmptyImage", _wrap_new_EmptyImage, METH_VARARGS }, - { (char *)"new_ImageFromBitmap", (PyCFunction) _wrap_new_ImageFromBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_ImageFromData", (PyCFunction) _wrap_new_ImageFromData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_Create", (PyCFunction) _wrap_Image_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_Destroy", (PyCFunction) _wrap_Image_Destroy, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_Scale", (PyCFunction) _wrap_Image_Scale, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_ShrinkBy", (PyCFunction) _wrap_Image_ShrinkBy, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_Rescale", (PyCFunction) _wrap_Image_Rescale, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_SetRGB", (PyCFunction) _wrap_Image_SetRGB, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_GetRed", (PyCFunction) _wrap_Image_GetRed, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_GetGreen", (PyCFunction) _wrap_Image_GetGreen, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_GetBlue", (PyCFunction) _wrap_Image_GetBlue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_SetAlpha", (PyCFunction) _wrap_Image_SetAlpha, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_GetAlpha", (PyCFunction) _wrap_Image_GetAlpha, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_HasAlpha", (PyCFunction) _wrap_Image_HasAlpha, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_FindFirstUnusedColour", (PyCFunction) _wrap_Image_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_SetMaskFromImage", (PyCFunction) _wrap_Image_SetMaskFromImage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_CanRead", (PyCFunction) _wrap_Image_CanRead, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_GetImageCount", (PyCFunction) _wrap_Image_GetImageCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_LoadFile", (PyCFunction) _wrap_Image_LoadFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_LoadMimeFile", (PyCFunction) _wrap_Image_LoadMimeFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_SaveFile", (PyCFunction) _wrap_Image_SaveFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_SaveMimeFile", (PyCFunction) _wrap_Image_SaveMimeFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_CanReadStream", (PyCFunction) _wrap_Image_CanReadStream, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_LoadStream", (PyCFunction) _wrap_Image_LoadStream, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_LoadMimeStream", (PyCFunction) _wrap_Image_LoadMimeStream, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_Ok", (PyCFunction) _wrap_Image_Ok, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_GetWidth", (PyCFunction) _wrap_Image_GetWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_GetHeight", (PyCFunction) _wrap_Image_GetHeight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_GetSize", (PyCFunction) _wrap_Image_GetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_GetSubImage", (PyCFunction) _wrap_Image_GetSubImage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_Copy", (PyCFunction) _wrap_Image_Copy, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_Paste", (PyCFunction) _wrap_Image_Paste, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_GetData", (PyCFunction) _wrap_Image_GetData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_SetData", (PyCFunction) _wrap_Image_SetData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_GetDataBuffer", (PyCFunction) _wrap_Image_GetDataBuffer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_SetDataBuffer", (PyCFunction) _wrap_Image_SetDataBuffer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_GetAlphaData", (PyCFunction) _wrap_Image_GetAlphaData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_SetAlphaData", (PyCFunction) _wrap_Image_SetAlphaData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_GetAlphaBuffer", (PyCFunction) _wrap_Image_GetAlphaBuffer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_SetAlphaBuffer", (PyCFunction) _wrap_Image_SetAlphaBuffer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_SetMaskColour", (PyCFunction) _wrap_Image_SetMaskColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_GetMaskRed", (PyCFunction) _wrap_Image_GetMaskRed, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_GetMaskGreen", (PyCFunction) _wrap_Image_GetMaskGreen, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_GetMaskBlue", (PyCFunction) _wrap_Image_GetMaskBlue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_SetMask", (PyCFunction) _wrap_Image_SetMask, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_HasMask", (PyCFunction) _wrap_Image_HasMask, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_Rotate", (PyCFunction) _wrap_Image_Rotate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_Rotate90", (PyCFunction) _wrap_Image_Rotate90, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_Mirror", (PyCFunction) _wrap_Image_Mirror, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_Replace", (PyCFunction) _wrap_Image_Replace, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_ConvertToMono", (PyCFunction) _wrap_Image_ConvertToMono, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_SetOption", (PyCFunction) _wrap_Image_SetOption, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_SetOptionInt", (PyCFunction) _wrap_Image_SetOptionInt, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_GetOption", (PyCFunction) _wrap_Image_GetOption, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_GetOptionInt", (PyCFunction) _wrap_Image_GetOptionInt, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_HasOption", (PyCFunction) _wrap_Image_HasOption, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_CountColours", (PyCFunction) _wrap_Image_CountColours, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_ComputeHistogram", (PyCFunction) _wrap_Image_ComputeHistogram, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_AddHandler", (PyCFunction) _wrap_Image_AddHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_InsertHandler", (PyCFunction) _wrap_Image_InsertHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_RemoveHandler", (PyCFunction) _wrap_Image_RemoveHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_GetImageExtWildcard", (PyCFunction) _wrap_Image_GetImageExtWildcard, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_ConvertToBitmap", (PyCFunction) _wrap_Image_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_ConvertToMonoBitmap", (PyCFunction) _wrap_Image_ConvertToMonoBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Image_swigregister", Image_swigregister, METH_VARARGS }, - { (char *)"InitAllImageHandlers", (PyCFunction) _wrap_InitAllImageHandlers, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_BMPHandler", (PyCFunction) _wrap_new_BMPHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BMPHandler_swigregister", BMPHandler_swigregister, METH_VARARGS }, - { (char *)"new_ICOHandler", (PyCFunction) _wrap_new_ICOHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ICOHandler_swigregister", ICOHandler_swigregister, METH_VARARGS }, - { (char *)"new_CURHandler", (PyCFunction) _wrap_new_CURHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CURHandler_swigregister", CURHandler_swigregister, METH_VARARGS }, - { (char *)"new_ANIHandler", (PyCFunction) _wrap_new_ANIHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ANIHandler_swigregister", ANIHandler_swigregister, METH_VARARGS }, - { (char *)"new_PNGHandler", (PyCFunction) _wrap_new_PNGHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PNGHandler_swigregister", PNGHandler_swigregister, METH_VARARGS }, - { (char *)"new_GIFHandler", (PyCFunction) _wrap_new_GIFHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GIFHandler_swigregister", GIFHandler_swigregister, METH_VARARGS }, - { (char *)"new_PCXHandler", (PyCFunction) _wrap_new_PCXHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PCXHandler_swigregister", PCXHandler_swigregister, METH_VARARGS }, - { (char *)"new_JPEGHandler", (PyCFunction) _wrap_new_JPEGHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JPEGHandler_swigregister", JPEGHandler_swigregister, METH_VARARGS }, - { (char *)"new_PNMHandler", (PyCFunction) _wrap_new_PNMHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PNMHandler_swigregister", PNMHandler_swigregister, METH_VARARGS }, - { (char *)"new_XPMHandler", (PyCFunction) _wrap_new_XPMHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"XPMHandler_swigregister", XPMHandler_swigregister, METH_VARARGS }, - { (char *)"new_TIFFHandler", (PyCFunction) _wrap_new_TIFFHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TIFFHandler_swigregister", TIFFHandler_swigregister, METH_VARARGS }, - { (char *)"new_EvtHandler", (PyCFunction) _wrap_new_EvtHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"EvtHandler_GetNextHandler", (PyCFunction) _wrap_EvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"EvtHandler_GetPreviousHandler", (PyCFunction) _wrap_EvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"EvtHandler_SetNextHandler", (PyCFunction) _wrap_EvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"EvtHandler_SetPreviousHandler", (PyCFunction) _wrap_EvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"EvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, - { (char *)"EvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, - { (char *)"EvtHandler_ProcessEvent", (PyCFunction) _wrap_EvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"EvtHandler_AddPendingEvent", (PyCFunction) _wrap_EvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"EvtHandler_ProcessPendingEvents", (PyCFunction) _wrap_EvtHandler_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS }, - { (char *)"EvtHandler_Connect", (PyCFunction) _wrap_EvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"EvtHandler_Disconnect", (PyCFunction) _wrap_EvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"EvtHandler__setOORInfo", (PyCFunction) _wrap_EvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"EvtHandler_swigregister", EvtHandler_swigregister, METH_VARARGS }, - { (char *)"NewEventType", (PyCFunction) _wrap_NewEventType, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_Event", (PyCFunction) _wrap_delete_Event, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Event_SetEventType", (PyCFunction) _wrap_Event_SetEventType, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Event_GetEventType", (PyCFunction) _wrap_Event_GetEventType, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Event_GetEventObject", (PyCFunction) _wrap_Event_GetEventObject, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Event_SetEventObject", (PyCFunction) _wrap_Event_SetEventObject, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Event_GetTimestamp", (PyCFunction) _wrap_Event_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Event_SetTimestamp", (PyCFunction) _wrap_Event_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Event_GetId", (PyCFunction) _wrap_Event_GetId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Event_SetId", (PyCFunction) _wrap_Event_SetId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Event_IsCommandEvent", (PyCFunction) _wrap_Event_IsCommandEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Event_Skip", (PyCFunction) _wrap_Event_Skip, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Event_GetSkipped", (PyCFunction) _wrap_Event_GetSkipped, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Event_ShouldPropagate", (PyCFunction) _wrap_Event_ShouldPropagate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Event_StopPropagation", (PyCFunction) _wrap_Event_StopPropagation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Event_ResumePropagation", (PyCFunction) _wrap_Event_ResumePropagation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Event_Clone", (PyCFunction) _wrap_Event_Clone, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Event_swigregister", Event_swigregister, METH_VARARGS }, - { (char *)"new_PropagationDisabler", (PyCFunction) _wrap_new_PropagationDisabler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_PropagationDisabler", (PyCFunction) _wrap_delete_PropagationDisabler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PropagationDisabler_swigregister", PropagationDisabler_swigregister, METH_VARARGS }, - { (char *)"new_PropagateOnce", (PyCFunction) _wrap_new_PropagateOnce, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_PropagateOnce", (PyCFunction) _wrap_delete_PropagateOnce, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PropagateOnce_swigregister", PropagateOnce_swigregister, METH_VARARGS }, - { (char *)"new_CommandEvent", (PyCFunction) _wrap_new_CommandEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CommandEvent_GetSelection", (PyCFunction) _wrap_CommandEvent_GetSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CommandEvent_SetString", (PyCFunction) _wrap_CommandEvent_SetString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CommandEvent_GetString", (PyCFunction) _wrap_CommandEvent_GetString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CommandEvent_IsChecked", (PyCFunction) _wrap_CommandEvent_IsChecked, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CommandEvent_IsSelection", (PyCFunction) _wrap_CommandEvent_IsSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CommandEvent_SetExtraLong", (PyCFunction) _wrap_CommandEvent_SetExtraLong, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CommandEvent_GetExtraLong", (PyCFunction) _wrap_CommandEvent_GetExtraLong, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CommandEvent_SetInt", (PyCFunction) _wrap_CommandEvent_SetInt, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CommandEvent_GetInt", (PyCFunction) _wrap_CommandEvent_GetInt, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CommandEvent_Clone", (PyCFunction) _wrap_CommandEvent_Clone, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CommandEvent_swigregister", CommandEvent_swigregister, METH_VARARGS }, - { (char *)"new_NotifyEvent", (PyCFunction) _wrap_new_NotifyEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NotifyEvent_Veto", (PyCFunction) _wrap_NotifyEvent_Veto, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NotifyEvent_Allow", (PyCFunction) _wrap_NotifyEvent_Allow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NotifyEvent_IsAllowed", (PyCFunction) _wrap_NotifyEvent_IsAllowed, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NotifyEvent_swigregister", NotifyEvent_swigregister, METH_VARARGS }, - { (char *)"new_ScrollEvent", (PyCFunction) _wrap_new_ScrollEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrollEvent_GetOrientation", (PyCFunction) _wrap_ScrollEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrollEvent_GetPosition", (PyCFunction) _wrap_ScrollEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrollEvent_SetOrientation", (PyCFunction) _wrap_ScrollEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrollEvent_SetPosition", (PyCFunction) _wrap_ScrollEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrollEvent_swigregister", ScrollEvent_swigregister, METH_VARARGS }, - { (char *)"new_ScrollWinEvent", (PyCFunction) _wrap_new_ScrollWinEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrollWinEvent_GetOrientation", (PyCFunction) _wrap_ScrollWinEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrollWinEvent_GetPosition", (PyCFunction) _wrap_ScrollWinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrollWinEvent_SetOrientation", (PyCFunction) _wrap_ScrollWinEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrollWinEvent_SetPosition", (PyCFunction) _wrap_ScrollWinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrollWinEvent_swigregister", ScrollWinEvent_swigregister, METH_VARARGS }, - { (char *)"new_MouseEvent", (PyCFunction) _wrap_new_MouseEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_IsButton", (PyCFunction) _wrap_MouseEvent_IsButton, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_ButtonDown", (PyCFunction) _wrap_MouseEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_ButtonDClick", (PyCFunction) _wrap_MouseEvent_ButtonDClick, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_ButtonUp", (PyCFunction) _wrap_MouseEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_Button", (PyCFunction) _wrap_MouseEvent_Button, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_ButtonIsDown", (PyCFunction) _wrap_MouseEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_GetButton", (PyCFunction) _wrap_MouseEvent_GetButton, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_ControlDown", (PyCFunction) _wrap_MouseEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_MetaDown", (PyCFunction) _wrap_MouseEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_AltDown", (PyCFunction) _wrap_MouseEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_ShiftDown", (PyCFunction) _wrap_MouseEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_LeftDown", (PyCFunction) _wrap_MouseEvent_LeftDown, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_MiddleDown", (PyCFunction) _wrap_MouseEvent_MiddleDown, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_RightDown", (PyCFunction) _wrap_MouseEvent_RightDown, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_LeftUp", (PyCFunction) _wrap_MouseEvent_LeftUp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_MiddleUp", (PyCFunction) _wrap_MouseEvent_MiddleUp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_RightUp", (PyCFunction) _wrap_MouseEvent_RightUp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_LeftDClick", (PyCFunction) _wrap_MouseEvent_LeftDClick, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_MiddleDClick", (PyCFunction) _wrap_MouseEvent_MiddleDClick, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_RightDClick", (PyCFunction) _wrap_MouseEvent_RightDClick, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_LeftIsDown", (PyCFunction) _wrap_MouseEvent_LeftIsDown, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_MiddleIsDown", (PyCFunction) _wrap_MouseEvent_MiddleIsDown, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_RightIsDown", (PyCFunction) _wrap_MouseEvent_RightIsDown, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_Dragging", (PyCFunction) _wrap_MouseEvent_Dragging, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_Moving", (PyCFunction) _wrap_MouseEvent_Moving, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_Entering", (PyCFunction) _wrap_MouseEvent_Entering, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_Leaving", (PyCFunction) _wrap_MouseEvent_Leaving, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_GetPosition", (PyCFunction) _wrap_MouseEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_GetPositionTuple", (PyCFunction) _wrap_MouseEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_GetLogicalPosition", (PyCFunction) _wrap_MouseEvent_GetLogicalPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_GetX", (PyCFunction) _wrap_MouseEvent_GetX, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_GetY", (PyCFunction) _wrap_MouseEvent_GetY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_GetWheelRotation", (PyCFunction) _wrap_MouseEvent_GetWheelRotation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_GetWheelDelta", (PyCFunction) _wrap_MouseEvent_GetWheelDelta, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_GetLinesPerAction", (PyCFunction) _wrap_MouseEvent_GetLinesPerAction, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_IsPageScroll", (PyCFunction) _wrap_MouseEvent_IsPageScroll, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_m_x_set", (PyCFunction) _wrap_MouseEvent_m_x_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_m_x_get", (PyCFunction) _wrap_MouseEvent_m_x_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_m_y_set", (PyCFunction) _wrap_MouseEvent_m_y_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_m_y_get", (PyCFunction) _wrap_MouseEvent_m_y_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_m_leftDown_set", (PyCFunction) _wrap_MouseEvent_m_leftDown_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_m_leftDown_get", (PyCFunction) _wrap_MouseEvent_m_leftDown_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_m_middleDown_set", (PyCFunction) _wrap_MouseEvent_m_middleDown_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_m_middleDown_get", (PyCFunction) _wrap_MouseEvent_m_middleDown_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_m_rightDown_set", (PyCFunction) _wrap_MouseEvent_m_rightDown_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_m_rightDown_get", (PyCFunction) _wrap_MouseEvent_m_rightDown_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_m_controlDown_set", (PyCFunction) _wrap_MouseEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_m_controlDown_get", (PyCFunction) _wrap_MouseEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_m_shiftDown_set", (PyCFunction) _wrap_MouseEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_m_shiftDown_get", (PyCFunction) _wrap_MouseEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_m_altDown_set", (PyCFunction) _wrap_MouseEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_m_altDown_get", (PyCFunction) _wrap_MouseEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_m_metaDown_set", (PyCFunction) _wrap_MouseEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_m_metaDown_get", (PyCFunction) _wrap_MouseEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_m_wheelRotation_set", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_m_wheelRotation_get", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_m_wheelDelta_set", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_m_wheelDelta_get", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_m_linesPerAction_set", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_m_linesPerAction_get", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseEvent_swigregister", MouseEvent_swigregister, METH_VARARGS }, - { (char *)"new_SetCursorEvent", (PyCFunction) _wrap_new_SetCursorEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SetCursorEvent_GetX", (PyCFunction) _wrap_SetCursorEvent_GetX, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SetCursorEvent_GetY", (PyCFunction) _wrap_SetCursorEvent_GetY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SetCursorEvent_SetCursor", (PyCFunction) _wrap_SetCursorEvent_SetCursor, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SetCursorEvent_GetCursor", (PyCFunction) _wrap_SetCursorEvent_GetCursor, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SetCursorEvent_HasCursor", (PyCFunction) _wrap_SetCursorEvent_HasCursor, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SetCursorEvent_swigregister", SetCursorEvent_swigregister, METH_VARARGS }, - { (char *)"new_KeyEvent", (PyCFunction) _wrap_new_KeyEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_ControlDown", (PyCFunction) _wrap_KeyEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_MetaDown", (PyCFunction) _wrap_KeyEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_AltDown", (PyCFunction) _wrap_KeyEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_ShiftDown", (PyCFunction) _wrap_KeyEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_HasModifiers", (PyCFunction) _wrap_KeyEvent_HasModifiers, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_GetKeyCode", (PyCFunction) _wrap_KeyEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_GetUniChar", (PyCFunction) _wrap_KeyEvent_GetUniChar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_GetRawKeyCode", (PyCFunction) _wrap_KeyEvent_GetRawKeyCode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_GetRawKeyFlags", (PyCFunction) _wrap_KeyEvent_GetRawKeyFlags, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_GetPosition", (PyCFunction) _wrap_KeyEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_GetPositionTuple", (PyCFunction) _wrap_KeyEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_GetX", (PyCFunction) _wrap_KeyEvent_GetX, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_GetY", (PyCFunction) _wrap_KeyEvent_GetY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_m_x_set", (PyCFunction) _wrap_KeyEvent_m_x_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_m_x_get", (PyCFunction) _wrap_KeyEvent_m_x_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_m_y_set", (PyCFunction) _wrap_KeyEvent_m_y_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_m_y_get", (PyCFunction) _wrap_KeyEvent_m_y_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_m_keyCode_set", (PyCFunction) _wrap_KeyEvent_m_keyCode_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_m_keyCode_get", (PyCFunction) _wrap_KeyEvent_m_keyCode_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_m_controlDown_set", (PyCFunction) _wrap_KeyEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_m_controlDown_get", (PyCFunction) _wrap_KeyEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_m_shiftDown_set", (PyCFunction) _wrap_KeyEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_m_shiftDown_get", (PyCFunction) _wrap_KeyEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_m_altDown_set", (PyCFunction) _wrap_KeyEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_m_altDown_get", (PyCFunction) _wrap_KeyEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_m_metaDown_set", (PyCFunction) _wrap_KeyEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_m_metaDown_get", (PyCFunction) _wrap_KeyEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_m_scanCode_set", (PyCFunction) _wrap_KeyEvent_m_scanCode_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_m_scanCode_get", (PyCFunction) _wrap_KeyEvent_m_scanCode_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_m_rawCode_set", (PyCFunction) _wrap_KeyEvent_m_rawCode_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_m_rawCode_get", (PyCFunction) _wrap_KeyEvent_m_rawCode_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_m_rawFlags_set", (PyCFunction) _wrap_KeyEvent_m_rawFlags_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_m_rawFlags_get", (PyCFunction) _wrap_KeyEvent_m_rawFlags_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"KeyEvent_swigregister", KeyEvent_swigregister, METH_VARARGS }, - { (char *)"new_SizeEvent", (PyCFunction) _wrap_new_SizeEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizeEvent_GetSize", (PyCFunction) _wrap_SizeEvent_GetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizeEvent_GetRect", (PyCFunction) _wrap_SizeEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizeEvent_SetRect", (PyCFunction) _wrap_SizeEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizeEvent_SetSize", (PyCFunction) _wrap_SizeEvent_SetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizeEvent_m_size_set", (PyCFunction) _wrap_SizeEvent_m_size_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizeEvent_m_size_get", (PyCFunction) _wrap_SizeEvent_m_size_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizeEvent_m_rect_set", (PyCFunction) _wrap_SizeEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizeEvent_m_rect_get", (PyCFunction) _wrap_SizeEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizeEvent_swigregister", SizeEvent_swigregister, METH_VARARGS }, - { (char *)"new_MoveEvent", (PyCFunction) _wrap_new_MoveEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MoveEvent_GetPosition", (PyCFunction) _wrap_MoveEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MoveEvent_GetRect", (PyCFunction) _wrap_MoveEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MoveEvent_SetRect", (PyCFunction) _wrap_MoveEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MoveEvent_SetPosition", (PyCFunction) _wrap_MoveEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MoveEvent_m_pos_set", (PyCFunction) _wrap_MoveEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MoveEvent_m_pos_get", (PyCFunction) _wrap_MoveEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MoveEvent_m_rect_set", (PyCFunction) _wrap_MoveEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MoveEvent_m_rect_get", (PyCFunction) _wrap_MoveEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MoveEvent_swigregister", MoveEvent_swigregister, METH_VARARGS }, - { (char *)"new_PaintEvent", (PyCFunction) _wrap_new_PaintEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PaintEvent_swigregister", PaintEvent_swigregister, METH_VARARGS }, - { (char *)"new_NcPaintEvent", (PyCFunction) _wrap_new_NcPaintEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NcPaintEvent_swigregister", NcPaintEvent_swigregister, METH_VARARGS }, - { (char *)"new_EraseEvent", (PyCFunction) _wrap_new_EraseEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"EraseEvent_GetDC", (PyCFunction) _wrap_EraseEvent_GetDC, METH_VARARGS | METH_KEYWORDS }, - { (char *)"EraseEvent_swigregister", EraseEvent_swigregister, METH_VARARGS }, - { (char *)"new_FocusEvent", (PyCFunction) _wrap_new_FocusEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FocusEvent_GetWindow", (PyCFunction) _wrap_FocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FocusEvent_SetWindow", (PyCFunction) _wrap_FocusEvent_SetWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FocusEvent_swigregister", FocusEvent_swigregister, METH_VARARGS }, - { (char *)"new_ChildFocusEvent", (PyCFunction) _wrap_new_ChildFocusEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ChildFocusEvent_GetWindow", (PyCFunction) _wrap_ChildFocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ChildFocusEvent_swigregister", ChildFocusEvent_swigregister, METH_VARARGS }, - { (char *)"new_ActivateEvent", (PyCFunction) _wrap_new_ActivateEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ActivateEvent_GetActive", (PyCFunction) _wrap_ActivateEvent_GetActive, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ActivateEvent_swigregister", ActivateEvent_swigregister, METH_VARARGS }, - { (char *)"new_InitDialogEvent", (PyCFunction) _wrap_new_InitDialogEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"InitDialogEvent_swigregister", InitDialogEvent_swigregister, METH_VARARGS }, - { (char *)"new_MenuEvent", (PyCFunction) _wrap_new_MenuEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuEvent_GetMenuId", (PyCFunction) _wrap_MenuEvent_GetMenuId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuEvent_IsPopup", (PyCFunction) _wrap_MenuEvent_IsPopup, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuEvent_GetMenu", (PyCFunction) _wrap_MenuEvent_GetMenu, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuEvent_swigregister", MenuEvent_swigregister, METH_VARARGS }, - { (char *)"new_CloseEvent", (PyCFunction) _wrap_new_CloseEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CloseEvent_SetLoggingOff", (PyCFunction) _wrap_CloseEvent_SetLoggingOff, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CloseEvent_GetLoggingOff", (PyCFunction) _wrap_CloseEvent_GetLoggingOff, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CloseEvent_Veto", (PyCFunction) _wrap_CloseEvent_Veto, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CloseEvent_SetCanVeto", (PyCFunction) _wrap_CloseEvent_SetCanVeto, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CloseEvent_CanVeto", (PyCFunction) _wrap_CloseEvent_CanVeto, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CloseEvent_GetVeto", (PyCFunction) _wrap_CloseEvent_GetVeto, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CloseEvent_swigregister", CloseEvent_swigregister, METH_VARARGS }, - { (char *)"new_ShowEvent", (PyCFunction) _wrap_new_ShowEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ShowEvent_SetShow", (PyCFunction) _wrap_ShowEvent_SetShow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ShowEvent_GetShow", (PyCFunction) _wrap_ShowEvent_GetShow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ShowEvent_swigregister", ShowEvent_swigregister, METH_VARARGS }, - { (char *)"new_IconizeEvent", (PyCFunction) _wrap_new_IconizeEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IconizeEvent_Iconized", (PyCFunction) _wrap_IconizeEvent_Iconized, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IconizeEvent_swigregister", IconizeEvent_swigregister, METH_VARARGS }, - { (char *)"new_MaximizeEvent", (PyCFunction) _wrap_new_MaximizeEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MaximizeEvent_swigregister", MaximizeEvent_swigregister, METH_VARARGS }, - { (char *)"DropFilesEvent_GetPosition", (PyCFunction) _wrap_DropFilesEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DropFilesEvent_GetNumberOfFiles", (PyCFunction) _wrap_DropFilesEvent_GetNumberOfFiles, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DropFilesEvent_GetFiles", (PyCFunction) _wrap_DropFilesEvent_GetFiles, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DropFilesEvent_swigregister", DropFilesEvent_swigregister, METH_VARARGS }, - { (char *)"new_UpdateUIEvent", (PyCFunction) _wrap_new_UpdateUIEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"UpdateUIEvent_GetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetChecked, METH_VARARGS | METH_KEYWORDS }, - { (char *)"UpdateUIEvent_GetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetEnabled, METH_VARARGS | METH_KEYWORDS }, - { (char *)"UpdateUIEvent_GetText", (PyCFunction) _wrap_UpdateUIEvent_GetText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"UpdateUIEvent_GetSetText", (PyCFunction) _wrap_UpdateUIEvent_GetSetText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"UpdateUIEvent_GetSetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetSetChecked, METH_VARARGS | METH_KEYWORDS }, - { (char *)"UpdateUIEvent_GetSetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetSetEnabled, METH_VARARGS | METH_KEYWORDS }, - { (char *)"UpdateUIEvent_Check", (PyCFunction) _wrap_UpdateUIEvent_Check, METH_VARARGS | METH_KEYWORDS }, - { (char *)"UpdateUIEvent_Enable", (PyCFunction) _wrap_UpdateUIEvent_Enable, METH_VARARGS | METH_KEYWORDS }, - { (char *)"UpdateUIEvent_SetText", (PyCFunction) _wrap_UpdateUIEvent_SetText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"UpdateUIEvent_SetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_SetUpdateInterval, METH_VARARGS | METH_KEYWORDS }, - { (char *)"UpdateUIEvent_GetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_GetUpdateInterval, METH_VARARGS | METH_KEYWORDS }, - { (char *)"UpdateUIEvent_CanUpdate", (PyCFunction) _wrap_UpdateUIEvent_CanUpdate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"UpdateUIEvent_ResetUpdateTime", (PyCFunction) _wrap_UpdateUIEvent_ResetUpdateTime, METH_VARARGS | METH_KEYWORDS }, - { (char *)"UpdateUIEvent_SetMode", (PyCFunction) _wrap_UpdateUIEvent_SetMode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"UpdateUIEvent_GetMode", (PyCFunction) _wrap_UpdateUIEvent_GetMode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"UpdateUIEvent_swigregister", UpdateUIEvent_swigregister, METH_VARARGS }, - { (char *)"new_SysColourChangedEvent", (PyCFunction) _wrap_new_SysColourChangedEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SysColourChangedEvent_swigregister", SysColourChangedEvent_swigregister, METH_VARARGS }, - { (char *)"new_MouseCaptureChangedEvent", (PyCFunction) _wrap_new_MouseCaptureChangedEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseCaptureChangedEvent_GetCapturedWindow", (PyCFunction) _wrap_MouseCaptureChangedEvent_GetCapturedWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MouseCaptureChangedEvent_swigregister", MouseCaptureChangedEvent_swigregister, METH_VARARGS }, - { (char *)"new_DisplayChangedEvent", (PyCFunction) _wrap_new_DisplayChangedEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DisplayChangedEvent_swigregister", DisplayChangedEvent_swigregister, METH_VARARGS }, - { (char *)"new_PaletteChangedEvent", (PyCFunction) _wrap_new_PaletteChangedEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PaletteChangedEvent_SetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_SetChangedWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PaletteChangedEvent_GetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_GetChangedWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PaletteChangedEvent_swigregister", PaletteChangedEvent_swigregister, METH_VARARGS }, - { (char *)"new_QueryNewPaletteEvent", (PyCFunction) _wrap_new_QueryNewPaletteEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"QueryNewPaletteEvent_SetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_SetPaletteRealized, METH_VARARGS | METH_KEYWORDS }, - { (char *)"QueryNewPaletteEvent_GetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_GetPaletteRealized, METH_VARARGS | METH_KEYWORDS }, - { (char *)"QueryNewPaletteEvent_swigregister", QueryNewPaletteEvent_swigregister, METH_VARARGS }, - { (char *)"new_NavigationKeyEvent", (PyCFunction) _wrap_new_NavigationKeyEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NavigationKeyEvent_GetDirection", (PyCFunction) _wrap_NavigationKeyEvent_GetDirection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NavigationKeyEvent_SetDirection", (PyCFunction) _wrap_NavigationKeyEvent_SetDirection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NavigationKeyEvent_IsWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_IsWindowChange, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NavigationKeyEvent_SetWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_SetWindowChange, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NavigationKeyEvent_GetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_GetCurrentFocus, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NavigationKeyEvent_SetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_SetCurrentFocus, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NavigationKeyEvent_swigregister", NavigationKeyEvent_swigregister, METH_VARARGS }, - { (char *)"new_WindowCreateEvent", (PyCFunction) _wrap_new_WindowCreateEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"WindowCreateEvent_GetWindow", (PyCFunction) _wrap_WindowCreateEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"WindowCreateEvent_swigregister", WindowCreateEvent_swigregister, METH_VARARGS }, - { (char *)"new_WindowDestroyEvent", (PyCFunction) _wrap_new_WindowDestroyEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"WindowDestroyEvent_GetWindow", (PyCFunction) _wrap_WindowDestroyEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"WindowDestroyEvent_swigregister", WindowDestroyEvent_swigregister, METH_VARARGS }, - { (char *)"new_ContextMenuEvent", (PyCFunction) _wrap_new_ContextMenuEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ContextMenuEvent_GetPosition", (PyCFunction) _wrap_ContextMenuEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ContextMenuEvent_SetPosition", (PyCFunction) _wrap_ContextMenuEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ContextMenuEvent_swigregister", ContextMenuEvent_swigregister, METH_VARARGS }, - { (char *)"new_IdleEvent", (PyCFunction) _wrap_new_IdleEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IdleEvent_RequestMore", (PyCFunction) _wrap_IdleEvent_RequestMore, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IdleEvent_MoreRequested", (PyCFunction) _wrap_IdleEvent_MoreRequested, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IdleEvent_SetMode", (PyCFunction) _wrap_IdleEvent_SetMode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IdleEvent_GetMode", (PyCFunction) _wrap_IdleEvent_GetMode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IdleEvent_CanSend", (PyCFunction) _wrap_IdleEvent_CanSend, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IdleEvent_swigregister", IdleEvent_swigregister, METH_VARARGS }, - { (char *)"new_PyEvent", (PyCFunction) _wrap_new_PyEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_PyEvent", (PyCFunction) _wrap_delete_PyEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyEvent_SetSelf", (PyCFunction) _wrap_PyEvent_SetSelf, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyEvent_GetSelf", (PyCFunction) _wrap_PyEvent_GetSelf, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyEvent_swigregister", PyEvent_swigregister, METH_VARARGS }, - { (char *)"new_PyCommandEvent", (PyCFunction) _wrap_new_PyCommandEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_PyCommandEvent", (PyCFunction) _wrap_delete_PyCommandEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyCommandEvent_SetSelf", (PyCFunction) _wrap_PyCommandEvent_SetSelf, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyCommandEvent_GetSelf", (PyCFunction) _wrap_PyCommandEvent_GetSelf, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyCommandEvent_swigregister", PyCommandEvent_swigregister, METH_VARARGS }, - { (char *)"new_PyApp", (PyCFunction) _wrap_new_PyApp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_PyApp", (PyCFunction) _wrap_delete_PyApp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp__setCallbackInfo", (PyCFunction) _wrap_PyApp__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_GetAppName", (PyCFunction) _wrap_PyApp_GetAppName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_SetAppName", (PyCFunction) _wrap_PyApp_SetAppName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_GetClassName", (PyCFunction) _wrap_PyApp_GetClassName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_SetClassName", (PyCFunction) _wrap_PyApp_SetClassName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_GetVendorName", (PyCFunction) _wrap_PyApp_GetVendorName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_SetVendorName", (PyCFunction) _wrap_PyApp_SetVendorName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_GetTraits", (PyCFunction) _wrap_PyApp_GetTraits, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_ProcessPendingEvents", (PyCFunction) _wrap_PyApp_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_Yield", (PyCFunction) _wrap_PyApp_Yield, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_WakeUpIdle", (PyCFunction) _wrap_PyApp_WakeUpIdle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_MainLoop", (PyCFunction) _wrap_PyApp_MainLoop, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_Exit", (PyCFunction) _wrap_PyApp_Exit, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_ExitMainLoop", (PyCFunction) _wrap_PyApp_ExitMainLoop, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_Pending", (PyCFunction) _wrap_PyApp_Pending, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_Dispatch", (PyCFunction) _wrap_PyApp_Dispatch, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_ProcessIdle", (PyCFunction) _wrap_PyApp_ProcessIdle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_SendIdleEvents", (PyCFunction) _wrap_PyApp_SendIdleEvents, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_IsActive", (PyCFunction) _wrap_PyApp_IsActive, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_SetTopWindow", (PyCFunction) _wrap_PyApp_SetTopWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_GetTopWindow", (PyCFunction) _wrap_PyApp_GetTopWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_SetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_SetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_GetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_GetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_SetUseBestVisual", (PyCFunction) _wrap_PyApp_SetUseBestVisual, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_GetUseBestVisual", (PyCFunction) _wrap_PyApp_GetUseBestVisual, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_SetPrintMode", (PyCFunction) _wrap_PyApp_SetPrintMode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_GetPrintMode", (PyCFunction) _wrap_PyApp_GetPrintMode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_SetAssertMode", (PyCFunction) _wrap_PyApp_SetAssertMode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_GetAssertMode", (PyCFunction) _wrap_PyApp_GetAssertMode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_GetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_GetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_GetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_GetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_GetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_GetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_GetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_GetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_GetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_GetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_SetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_SetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_SetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_SetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_SetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_SetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_SetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_SetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_SetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_SetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp__BootstrapApp", (PyCFunction) _wrap_PyApp__BootstrapApp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_GetComCtl32Version", (PyCFunction) _wrap_PyApp_GetComCtl32Version, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyApp_swigregister", PyApp_swigregister, METH_VARARGS }, - { (char *)"Exit", (PyCFunction) _wrap_Exit, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Yield", (PyCFunction) _wrap_Yield, METH_VARARGS | METH_KEYWORDS }, - { (char *)"YieldIfNeeded", (PyCFunction) _wrap_YieldIfNeeded, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SafeYield", (PyCFunction) _wrap_SafeYield, METH_VARARGS | METH_KEYWORDS }, - { (char *)"WakeUpIdle", (PyCFunction) _wrap_WakeUpIdle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PostEvent", (PyCFunction) _wrap_PostEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"App_CleanUp", (PyCFunction) _wrap_App_CleanUp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetApp", (PyCFunction) _wrap_GetApp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_AcceleratorEntry", (PyCFunction) _wrap_new_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_AcceleratorEntry", (PyCFunction) _wrap_delete_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS }, - { (char *)"AcceleratorEntry_Set", (PyCFunction) _wrap_AcceleratorEntry_Set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"AcceleratorEntry_SetMenuItem", (PyCFunction) _wrap_AcceleratorEntry_SetMenuItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"AcceleratorEntry_GetMenuItem", (PyCFunction) _wrap_AcceleratorEntry_GetMenuItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"AcceleratorEntry_GetFlags", (PyCFunction) _wrap_AcceleratorEntry_GetFlags, METH_VARARGS | METH_KEYWORDS }, - { (char *)"AcceleratorEntry_GetKeyCode", (PyCFunction) _wrap_AcceleratorEntry_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"AcceleratorEntry_GetCommand", (PyCFunction) _wrap_AcceleratorEntry_GetCommand, METH_VARARGS | METH_KEYWORDS }, - { (char *)"AcceleratorEntry_swigregister", AcceleratorEntry_swigregister, METH_VARARGS }, - { (char *)"new_AcceleratorTable", (PyCFunction) _wrap_new_AcceleratorTable, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_AcceleratorTable", (PyCFunction) _wrap_delete_AcceleratorTable, METH_VARARGS | METH_KEYWORDS }, - { (char *)"AcceleratorTable_Ok", (PyCFunction) _wrap_AcceleratorTable_Ok, METH_VARARGS | METH_KEYWORDS }, - { (char *)"AcceleratorTable_swigregister", AcceleratorTable_swigregister, METH_VARARGS }, - { (char *)"GetAccelFromString", (PyCFunction) _wrap_GetAccelFromString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_VisualAttributes", (PyCFunction) _wrap_new_VisualAttributes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_VisualAttributes", (PyCFunction) _wrap_delete_VisualAttributes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VisualAttributes_font_set", (PyCFunction) _wrap_VisualAttributes_font_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VisualAttributes_font_get", (PyCFunction) _wrap_VisualAttributes_font_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VisualAttributes_colFg_set", (PyCFunction) _wrap_VisualAttributes_colFg_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VisualAttributes_colFg_get", (PyCFunction) _wrap_VisualAttributes_colFg_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VisualAttributes_colBg_set", (PyCFunction) _wrap_VisualAttributes_colBg_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VisualAttributes_colBg_get", (PyCFunction) _wrap_VisualAttributes_colBg_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VisualAttributes_swigregister", VisualAttributes_swigregister, METH_VARARGS }, - { (char *)"new_Window", (PyCFunction) _wrap_new_Window, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreWindow", (PyCFunction) _wrap_new_PreWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_Create", (PyCFunction) _wrap_Window_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_Close", (PyCFunction) _wrap_Window_Close, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_Destroy", (PyCFunction) _wrap_Window_Destroy, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_DestroyChildren", (PyCFunction) _wrap_Window_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_IsBeingDeleted", (PyCFunction) _wrap_Window_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetTitle", (PyCFunction) _wrap_Window_SetTitle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetTitle", (PyCFunction) _wrap_Window_GetTitle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetLabel", (PyCFunction) _wrap_Window_SetLabel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetLabel", (PyCFunction) _wrap_Window_GetLabel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetName", (PyCFunction) _wrap_Window_SetName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetName", (PyCFunction) _wrap_Window_GetName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetWindowVariant", (PyCFunction) _wrap_Window_SetWindowVariant, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetWindowVariant", (PyCFunction) _wrap_Window_GetWindowVariant, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetId", (PyCFunction) _wrap_Window_SetId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetId", (PyCFunction) _wrap_Window_GetId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_NewControlId", (PyCFunction) _wrap_Window_NewControlId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_NextControlId", (PyCFunction) _wrap_Window_NextControlId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_PrevControlId", (PyCFunction) _wrap_Window_PrevControlId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetSize", (PyCFunction) _wrap_Window_SetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetDimensions", (PyCFunction) _wrap_Window_SetDimensions, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetRect", (PyCFunction) _wrap_Window_SetRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetSizeWH", (PyCFunction) _wrap_Window_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_Move", (PyCFunction) _wrap_Window_Move, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_MoveXY", (PyCFunction) _wrap_Window_MoveXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_Raise", (PyCFunction) _wrap_Window_Raise, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_Lower", (PyCFunction) _wrap_Window_Lower, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetClientSize", (PyCFunction) _wrap_Window_SetClientSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetClientSizeWH", (PyCFunction) _wrap_Window_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetClientRect", (PyCFunction) _wrap_Window_SetClientRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetPosition", (PyCFunction) _wrap_Window_GetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetPositionTuple", (PyCFunction) _wrap_Window_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetSize", (PyCFunction) _wrap_Window_GetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetSizeTuple", (PyCFunction) _wrap_Window_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetRect", (PyCFunction) _wrap_Window_GetRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetClientSize", (PyCFunction) _wrap_Window_GetClientSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetClientSizeTuple", (PyCFunction) _wrap_Window_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetClientAreaOrigin", (PyCFunction) _wrap_Window_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetClientRect", (PyCFunction) _wrap_Window_GetClientRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetBestSize", (PyCFunction) _wrap_Window_GetBestSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetBestSizeTuple", (PyCFunction) _wrap_Window_GetBestSizeTuple, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetAdjustedBestSize", (PyCFunction) _wrap_Window_GetAdjustedBestSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_Center", (PyCFunction) _wrap_Window_Center, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_CenterOnScreen", (PyCFunction) _wrap_Window_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_CenterOnParent", (PyCFunction) _wrap_Window_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_Fit", (PyCFunction) _wrap_Window_Fit, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_FitInside", (PyCFunction) _wrap_Window_FitInside, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetSizeHints", _wrap_Window_SetSizeHints, METH_VARARGS }, - { (char *)"Window_SetVirtualSizeHints", _wrap_Window_SetVirtualSizeHints, METH_VARARGS }, - { (char *)"Window_GetMinWidth", (PyCFunction) _wrap_Window_GetMinWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetMinHeight", (PyCFunction) _wrap_Window_GetMinHeight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetMaxWidth", (PyCFunction) _wrap_Window_GetMaxWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetMaxHeight", (PyCFunction) _wrap_Window_GetMaxHeight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetMaxSize", (PyCFunction) _wrap_Window_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetMinSize", (PyCFunction) _wrap_Window_GetMinSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetVirtualSize", (PyCFunction) _wrap_Window_SetVirtualSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetVirtualSizeWH", (PyCFunction) _wrap_Window_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetVirtualSize", (PyCFunction) _wrap_Window_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetVirtualSizeTuple", (PyCFunction) _wrap_Window_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetBestVirtualSize", (PyCFunction) _wrap_Window_GetBestVirtualSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_Show", (PyCFunction) _wrap_Window_Show, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_Hide", (PyCFunction) _wrap_Window_Hide, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_Enable", (PyCFunction) _wrap_Window_Enable, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_Disable", (PyCFunction) _wrap_Window_Disable, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_IsShown", (PyCFunction) _wrap_Window_IsShown, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_IsEnabled", (PyCFunction) _wrap_Window_IsEnabled, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetWindowStyleFlag", (PyCFunction) _wrap_Window_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetWindowStyleFlag", (PyCFunction) _wrap_Window_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_HasFlag", (PyCFunction) _wrap_Window_HasFlag, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_IsRetained", (PyCFunction) _wrap_Window_IsRetained, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetExtraStyle", (PyCFunction) _wrap_Window_SetExtraStyle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetExtraStyle", (PyCFunction) _wrap_Window_GetExtraStyle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_MakeModal", (PyCFunction) _wrap_Window_MakeModal, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetThemeEnabled", (PyCFunction) _wrap_Window_SetThemeEnabled, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetThemeEnabled", (PyCFunction) _wrap_Window_GetThemeEnabled, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetFocus", (PyCFunction) _wrap_Window_SetFocus, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetFocusFromKbd", (PyCFunction) _wrap_Window_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_FindFocus", (PyCFunction) _wrap_Window_FindFocus, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_AcceptsFocus", (PyCFunction) _wrap_Window_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_Window_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetDefaultItem", (PyCFunction) _wrap_Window_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetDefaultItem", (PyCFunction) _wrap_Window_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetTmpDefaultItem", (PyCFunction) _wrap_Window_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetChildren", (PyCFunction) _wrap_Window_GetChildren, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetParent", (PyCFunction) _wrap_Window_GetParent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetGrandParent", (PyCFunction) _wrap_Window_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_IsTopLevel", (PyCFunction) _wrap_Window_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_Reparent", (PyCFunction) _wrap_Window_Reparent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_AddChild", (PyCFunction) _wrap_Window_AddChild, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_RemoveChild", (PyCFunction) _wrap_Window_RemoveChild, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_FindWindowById", (PyCFunction) _wrap_Window_FindWindowById, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_FindWindowByName", (PyCFunction) _wrap_Window_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetEventHandler", (PyCFunction) _wrap_Window_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetEventHandler", (PyCFunction) _wrap_Window_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_PushEventHandler", (PyCFunction) _wrap_Window_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_PopEventHandler", (PyCFunction) _wrap_Window_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_RemoveEventHandler", (PyCFunction) _wrap_Window_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetValidator", (PyCFunction) _wrap_Window_SetValidator, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetValidator", (PyCFunction) _wrap_Window_GetValidator, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_Validate", (PyCFunction) _wrap_Window_Validate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_TransferDataToWindow", (PyCFunction) _wrap_Window_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_TransferDataFromWindow", (PyCFunction) _wrap_Window_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_InitDialog", (PyCFunction) _wrap_Window_InitDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetAcceleratorTable", (PyCFunction) _wrap_Window_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetAcceleratorTable", (PyCFunction) _wrap_Window_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_RegisterHotKey", (PyCFunction) _wrap_Window_RegisterHotKey, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_UnregisterHotKey", (PyCFunction) _wrap_Window_UnregisterHotKey, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_ConvertDialogPointToPixels", (PyCFunction) _wrap_Window_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_ConvertDialogSizeToPixels", (PyCFunction) _wrap_Window_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_DLG_PNT", (PyCFunction) _wrap_Window_DLG_PNT, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_DLG_SZE", (PyCFunction) _wrap_Window_DLG_SZE, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_ConvertPixelPointToDialog", (PyCFunction) _wrap_Window_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_ConvertPixelSizeToDialog", (PyCFunction) _wrap_Window_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_WarpPointer", (PyCFunction) _wrap_Window_WarpPointer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_CaptureMouse", (PyCFunction) _wrap_Window_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_ReleaseMouse", (PyCFunction) _wrap_Window_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetCapture", (PyCFunction) _wrap_Window_GetCapture, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_HasCapture", (PyCFunction) _wrap_Window_HasCapture, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_Refresh", (PyCFunction) _wrap_Window_Refresh, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_RefreshRect", (PyCFunction) _wrap_Window_RefreshRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_Update", (PyCFunction) _wrap_Window_Update, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_ClearBackground", (PyCFunction) _wrap_Window_ClearBackground, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_Freeze", (PyCFunction) _wrap_Window_Freeze, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_Thaw", (PyCFunction) _wrap_Window_Thaw, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_PrepareDC", (PyCFunction) _wrap_Window_PrepareDC, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetUpdateRegion", (PyCFunction) _wrap_Window_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetUpdateClientRect", (PyCFunction) _wrap_Window_GetUpdateClientRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_IsExposed", (PyCFunction) _wrap_Window_IsExposed, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_IsExposedPoint", (PyCFunction) _wrap_Window_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_IsExposedRect", (PyCFunction) _wrap_Window_IsExposedRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetDefaultAttributes", (PyCFunction) _wrap_Window_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetClassDefaultAttributes", (PyCFunction) _wrap_Window_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetBackgroundColour", (PyCFunction) _wrap_Window_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetDefaultBackgroundColour", (PyCFunction) _wrap_Window_SetDefaultBackgroundColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetForegroundColour", (PyCFunction) _wrap_Window_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetDefaultForegroundColour", (PyCFunction) _wrap_Window_SetDefaultForegroundColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetBackgroundColour", (PyCFunction) _wrap_Window_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetForegroundColour", (PyCFunction) _wrap_Window_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetCursor", (PyCFunction) _wrap_Window_SetCursor, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetCursor", (PyCFunction) _wrap_Window_GetCursor, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetFont", (PyCFunction) _wrap_Window_SetFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetDefaultFont", (PyCFunction) _wrap_Window_SetDefaultFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetFont", (PyCFunction) _wrap_Window_GetFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetCaret", (PyCFunction) _wrap_Window_SetCaret, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetCaret", (PyCFunction) _wrap_Window_GetCaret, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetCharHeight", (PyCFunction) _wrap_Window_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetCharWidth", (PyCFunction) _wrap_Window_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetTextExtent", (PyCFunction) _wrap_Window_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetFullTextExtent", (PyCFunction) _wrap_Window_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_ClientToScreenXY", (PyCFunction) _wrap_Window_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_ScreenToClientXY", (PyCFunction) _wrap_Window_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_ClientToScreen", (PyCFunction) _wrap_Window_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_ScreenToClient", (PyCFunction) _wrap_Window_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_HitTestXY", (PyCFunction) _wrap_Window_HitTestXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_HitTest", (PyCFunction) _wrap_Window_HitTest, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetBorder", _wrap_Window_GetBorder, METH_VARARGS }, - { (char *)"Window_UpdateWindowUI", (PyCFunction) _wrap_Window_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_PopupMenuXY", (PyCFunction) _wrap_Window_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_PopupMenu", (PyCFunction) _wrap_Window_PopupMenu, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetHandle", (PyCFunction) _wrap_Window_GetHandle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_OnPaint", (PyCFunction) _wrap_Window_OnPaint, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_HasScrollbar", (PyCFunction) _wrap_Window_HasScrollbar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetScrollbar", (PyCFunction) _wrap_Window_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetScrollPos", (PyCFunction) _wrap_Window_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetScrollPos", (PyCFunction) _wrap_Window_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetScrollThumb", (PyCFunction) _wrap_Window_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetScrollRange", (PyCFunction) _wrap_Window_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_ScrollWindow", (PyCFunction) _wrap_Window_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_ScrollLines", (PyCFunction) _wrap_Window_ScrollLines, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_ScrollPages", (PyCFunction) _wrap_Window_ScrollPages, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_LineUp", (PyCFunction) _wrap_Window_LineUp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_LineDown", (PyCFunction) _wrap_Window_LineDown, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_PageUp", (PyCFunction) _wrap_Window_PageUp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_PageDown", (PyCFunction) _wrap_Window_PageDown, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetHelpText", (PyCFunction) _wrap_Window_SetHelpText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetHelpTextForId", (PyCFunction) _wrap_Window_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetHelpText", (PyCFunction) _wrap_Window_GetHelpText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetToolTipString", (PyCFunction) _wrap_Window_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetToolTip", (PyCFunction) _wrap_Window_SetToolTip, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetToolTip", (PyCFunction) _wrap_Window_GetToolTip, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetDropTarget", (PyCFunction) _wrap_Window_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetDropTarget", (PyCFunction) _wrap_Window_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_DragAcceptFiles", (PyCFunction) _wrap_Window_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetConstraints", (PyCFunction) _wrap_Window_SetConstraints, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetConstraints", (PyCFunction) _wrap_Window_GetConstraints, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetAutoLayout", (PyCFunction) _wrap_Window_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetAutoLayout", (PyCFunction) _wrap_Window_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_Layout", (PyCFunction) _wrap_Window_Layout, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetSizer", (PyCFunction) _wrap_Window_SetSizer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetSizerAndFit", (PyCFunction) _wrap_Window_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetSizer", (PyCFunction) _wrap_Window_GetSizer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_SetContainingSizer", (PyCFunction) _wrap_Window_SetContainingSizer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_GetContainingSizer", (PyCFunction) _wrap_Window_GetContainingSizer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_InheritAttributes", (PyCFunction) _wrap_Window_InheritAttributes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_ShouldInheritColours", (PyCFunction) _wrap_Window_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_swigregister", Window_swigregister, METH_VARARGS }, - { (char *)"FindWindowById", (PyCFunction) _wrap_FindWindowById, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FindWindowByName", (PyCFunction) _wrap_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FindWindowByLabel", (PyCFunction) _wrap_FindWindowByLabel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Window_FromHWND", (PyCFunction) _wrap_Window_FromHWND, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_Validator", (PyCFunction) _wrap_new_Validator, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Validator_Clone", (PyCFunction) _wrap_Validator_Clone, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Validator_Validate", (PyCFunction) _wrap_Validator_Validate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Validator_TransferToWindow", (PyCFunction) _wrap_Validator_TransferToWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Validator_TransferFromWindow", (PyCFunction) _wrap_Validator_TransferFromWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Validator_GetWindow", (PyCFunction) _wrap_Validator_GetWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Validator_SetWindow", (PyCFunction) _wrap_Validator_SetWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Validator_IsSilent", (PyCFunction) _wrap_Validator_IsSilent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Validator_SetBellOnError", (PyCFunction) _wrap_Validator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Validator_swigregister", Validator_swigregister, METH_VARARGS }, - { (char *)"new_PyValidator", (PyCFunction) _wrap_new_PyValidator, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyValidator__setCallbackInfo", (PyCFunction) _wrap_PyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyValidator_swigregister", PyValidator_swigregister, METH_VARARGS }, - { (char *)"new_Menu", (PyCFunction) _wrap_new_Menu, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_Append", (PyCFunction) _wrap_Menu_Append, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_AppendSeparator", (PyCFunction) _wrap_Menu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_AppendCheckItem", (PyCFunction) _wrap_Menu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_AppendRadioItem", (PyCFunction) _wrap_Menu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_AppendMenu", (PyCFunction) _wrap_Menu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_AppendItem", (PyCFunction) _wrap_Menu_AppendItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_Break", (PyCFunction) _wrap_Menu_Break, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_InsertItem", (PyCFunction) _wrap_Menu_InsertItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_Insert", (PyCFunction) _wrap_Menu_Insert, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_InsertSeparator", (PyCFunction) _wrap_Menu_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_InsertCheckItem", (PyCFunction) _wrap_Menu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_InsertRadioItem", (PyCFunction) _wrap_Menu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_InsertMenu", (PyCFunction) _wrap_Menu_InsertMenu, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_PrependItem", (PyCFunction) _wrap_Menu_PrependItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_Prepend", (PyCFunction) _wrap_Menu_Prepend, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_PrependSeparator", (PyCFunction) _wrap_Menu_PrependSeparator, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_PrependCheckItem", (PyCFunction) _wrap_Menu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_PrependRadioItem", (PyCFunction) _wrap_Menu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_PrependMenu", (PyCFunction) _wrap_Menu_PrependMenu, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_Remove", (PyCFunction) _wrap_Menu_Remove, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_RemoveItem", (PyCFunction) _wrap_Menu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_Delete", (PyCFunction) _wrap_Menu_Delete, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_DeleteItem", (PyCFunction) _wrap_Menu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_Destroy", (PyCFunction) _wrap_Menu_Destroy, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_DestroyId", (PyCFunction) _wrap_Menu_DestroyId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_DestroyItem", (PyCFunction) _wrap_Menu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_GetMenuItemCount", (PyCFunction) _wrap_Menu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_GetMenuItems", (PyCFunction) _wrap_Menu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_FindItem", (PyCFunction) _wrap_Menu_FindItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_FindItemById", (PyCFunction) _wrap_Menu_FindItemById, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_FindItemByPosition", (PyCFunction) _wrap_Menu_FindItemByPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_Enable", (PyCFunction) _wrap_Menu_Enable, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_IsEnabled", (PyCFunction) _wrap_Menu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_Check", (PyCFunction) _wrap_Menu_Check, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_IsChecked", (PyCFunction) _wrap_Menu_IsChecked, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_SetLabel", (PyCFunction) _wrap_Menu_SetLabel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_GetLabel", (PyCFunction) _wrap_Menu_GetLabel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_SetHelpString", (PyCFunction) _wrap_Menu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_GetHelpString", (PyCFunction) _wrap_Menu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_SetTitle", (PyCFunction) _wrap_Menu_SetTitle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_GetTitle", (PyCFunction) _wrap_Menu_GetTitle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_SetEventHandler", (PyCFunction) _wrap_Menu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_GetEventHandler", (PyCFunction) _wrap_Menu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_SetInvokingWindow", (PyCFunction) _wrap_Menu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_GetInvokingWindow", (PyCFunction) _wrap_Menu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_GetStyle", (PyCFunction) _wrap_Menu_GetStyle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_UpdateUI", (PyCFunction) _wrap_Menu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_GetMenuBar", (PyCFunction) _wrap_Menu_GetMenuBar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_Attach", (PyCFunction) _wrap_Menu_Attach, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_Detach", (PyCFunction) _wrap_Menu_Detach, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_IsAttached", (PyCFunction) _wrap_Menu_IsAttached, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_SetParent", (PyCFunction) _wrap_Menu_SetParent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_GetParent", (PyCFunction) _wrap_Menu_GetParent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Menu_swigregister", Menu_swigregister, METH_VARARGS }, - { (char *)"new_MenuBar", (PyCFunction) _wrap_new_MenuBar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_Append", (PyCFunction) _wrap_MenuBar_Append, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_Insert", (PyCFunction) _wrap_MenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_GetMenuCount", (PyCFunction) _wrap_MenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_GetMenu", (PyCFunction) _wrap_MenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_Replace", (PyCFunction) _wrap_MenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_Remove", (PyCFunction) _wrap_MenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_EnableTop", (PyCFunction) _wrap_MenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_IsEnabledTop", (PyCFunction) _wrap_MenuBar_IsEnabledTop, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_SetLabelTop", (PyCFunction) _wrap_MenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_GetLabelTop", (PyCFunction) _wrap_MenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_FindMenuItem", (PyCFunction) _wrap_MenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_FindItemById", (PyCFunction) _wrap_MenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_FindMenu", (PyCFunction) _wrap_MenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_Enable", (PyCFunction) _wrap_MenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_Check", (PyCFunction) _wrap_MenuBar_Check, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_IsChecked", (PyCFunction) _wrap_MenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_IsEnabled", (PyCFunction) _wrap_MenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_SetLabel", (PyCFunction) _wrap_MenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_GetLabel", (PyCFunction) _wrap_MenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_SetHelpString", (PyCFunction) _wrap_MenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_GetHelpString", (PyCFunction) _wrap_MenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_GetFrame", (PyCFunction) _wrap_MenuBar_GetFrame, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_IsAttached", (PyCFunction) _wrap_MenuBar_IsAttached, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_Attach", (PyCFunction) _wrap_MenuBar_Attach, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_Detach", (PyCFunction) _wrap_MenuBar_Detach, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuBar_swigregister", MenuBar_swigregister, METH_VARARGS }, - { (char *)"new_MenuItem", (PyCFunction) _wrap_new_MenuItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_GetMenu", (PyCFunction) _wrap_MenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_SetMenu", (PyCFunction) _wrap_MenuItem_SetMenu, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_SetId", (PyCFunction) _wrap_MenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_GetId", (PyCFunction) _wrap_MenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_IsSeparator", (PyCFunction) _wrap_MenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_SetText", (PyCFunction) _wrap_MenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_GetLabel", (PyCFunction) _wrap_MenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_GetText", (PyCFunction) _wrap_MenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_GetLabelFromText", (PyCFunction) _wrap_MenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_GetKind", (PyCFunction) _wrap_MenuItem_GetKind, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_SetKind", (PyCFunction) _wrap_MenuItem_SetKind, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_SetCheckable", (PyCFunction) _wrap_MenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_IsCheckable", (PyCFunction) _wrap_MenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_IsSubMenu", (PyCFunction) _wrap_MenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_SetSubMenu", (PyCFunction) _wrap_MenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_GetSubMenu", (PyCFunction) _wrap_MenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_Enable", (PyCFunction) _wrap_MenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_IsEnabled", (PyCFunction) _wrap_MenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_Check", (PyCFunction) _wrap_MenuItem_Check, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_IsChecked", (PyCFunction) _wrap_MenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_Toggle", (PyCFunction) _wrap_MenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_SetHelp", (PyCFunction) _wrap_MenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_GetHelp", (PyCFunction) _wrap_MenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_GetAccel", (PyCFunction) _wrap_MenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_SetAccel", (PyCFunction) _wrap_MenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_SetFont", (PyCFunction) _wrap_MenuItem_SetFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_GetFont", (PyCFunction) _wrap_MenuItem_GetFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_SetTextColour", (PyCFunction) _wrap_MenuItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_GetTextColour", (PyCFunction) _wrap_MenuItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_SetBackgroundColour", (PyCFunction) _wrap_MenuItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_GetBackgroundColour", (PyCFunction) _wrap_MenuItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_SetBitmaps", (PyCFunction) _wrap_MenuItem_SetBitmaps, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_SetDisabledBitmap", (PyCFunction) _wrap_MenuItem_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_GetDisabledBitmap", (PyCFunction) _wrap_MenuItem_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_SetMarginWidth", (PyCFunction) _wrap_MenuItem_SetMarginWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_GetMarginWidth", (PyCFunction) _wrap_MenuItem_GetMarginWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_MenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_IsOwnerDrawn", (PyCFunction) _wrap_MenuItem_IsOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_SetOwnerDrawn", (PyCFunction) _wrap_MenuItem_SetOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_ResetOwnerDrawn", (PyCFunction) _wrap_MenuItem_ResetOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_SetBitmap", (PyCFunction) _wrap_MenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_GetBitmap", (PyCFunction) _wrap_MenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MenuItem_swigregister", MenuItem_swigregister, METH_VARARGS }, - { (char *)"new_Control", (PyCFunction) _wrap_new_Control, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreControl", (PyCFunction) _wrap_new_PreControl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Control_Create", (PyCFunction) _wrap_Control_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Control_Command", (PyCFunction) _wrap_Control_Command, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Control_GetLabel", (PyCFunction) _wrap_Control_GetLabel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Control_SetLabel", (PyCFunction) _wrap_Control_SetLabel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Control_GetClassDefaultAttributes", (PyCFunction) _wrap_Control_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Control_swigregister", Control_swigregister, METH_VARARGS }, - { (char *)"ItemContainer_Append", (PyCFunction) _wrap_ItemContainer_Append, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ItemContainer_AppendItems", (PyCFunction) _wrap_ItemContainer_AppendItems, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ItemContainer_Insert", (PyCFunction) _wrap_ItemContainer_Insert, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ItemContainer_Clear", (PyCFunction) _wrap_ItemContainer_Clear, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ItemContainer_Delete", (PyCFunction) _wrap_ItemContainer_Delete, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ItemContainer_GetCount", (PyCFunction) _wrap_ItemContainer_GetCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ItemContainer_IsEmpty", (PyCFunction) _wrap_ItemContainer_IsEmpty, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ItemContainer_GetString", (PyCFunction) _wrap_ItemContainer_GetString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ItemContainer_GetStrings", (PyCFunction) _wrap_ItemContainer_GetStrings, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ItemContainer_SetString", (PyCFunction) _wrap_ItemContainer_SetString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ItemContainer_FindString", (PyCFunction) _wrap_ItemContainer_FindString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ItemContainer_Select", (PyCFunction) _wrap_ItemContainer_Select, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ItemContainer_GetSelection", (PyCFunction) _wrap_ItemContainer_GetSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ItemContainer_GetStringSelection", (PyCFunction) _wrap_ItemContainer_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ItemContainer_GetClientData", (PyCFunction) _wrap_ItemContainer_GetClientData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ItemContainer_SetClientData", (PyCFunction) _wrap_ItemContainer_SetClientData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ItemContainer_swigregister", ItemContainer_swigregister, METH_VARARGS }, - { (char *)"ControlWithItems_swigregister", ControlWithItems_swigregister, METH_VARARGS }, - { (char *)"new_SizerItem", (PyCFunction) _wrap_new_SizerItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_SizerItemSpacer", (PyCFunction) _wrap_new_SizerItemSpacer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_SizerItemWindow", (PyCFunction) _wrap_new_SizerItemWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_SizerItemSizer", (PyCFunction) _wrap_new_SizerItemSizer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_DeleteWindows", (PyCFunction) _wrap_SizerItem_DeleteWindows, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_DetachSizer", (PyCFunction) _wrap_SizerItem_DetachSizer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_GetSize", (PyCFunction) _wrap_SizerItem_GetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_CalcMin", (PyCFunction) _wrap_SizerItem_CalcMin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_SetDimension", (PyCFunction) _wrap_SizerItem_SetDimension, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_GetMinSize", (PyCFunction) _wrap_SizerItem_GetMinSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_SetInitSize", (PyCFunction) _wrap_SizerItem_SetInitSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_SetRatioWH", (PyCFunction) _wrap_SizerItem_SetRatioWH, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_SetRatioSize", (PyCFunction) _wrap_SizerItem_SetRatioSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_SetRatio", (PyCFunction) _wrap_SizerItem_SetRatio, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_GetRatio", (PyCFunction) _wrap_SizerItem_GetRatio, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_IsWindow", (PyCFunction) _wrap_SizerItem_IsWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_IsSizer", (PyCFunction) _wrap_SizerItem_IsSizer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_IsSpacer", (PyCFunction) _wrap_SizerItem_IsSpacer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_SetProportion", (PyCFunction) _wrap_SizerItem_SetProportion, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_GetProportion", (PyCFunction) _wrap_SizerItem_GetProportion, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_SetFlag", (PyCFunction) _wrap_SizerItem_SetFlag, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_GetFlag", (PyCFunction) _wrap_SizerItem_GetFlag, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_SetBorder", (PyCFunction) _wrap_SizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_GetBorder", (PyCFunction) _wrap_SizerItem_GetBorder, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_GetWindow", (PyCFunction) _wrap_SizerItem_GetWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_GetSizer", (PyCFunction) _wrap_SizerItem_GetSizer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_GetSpacer", (PyCFunction) _wrap_SizerItem_GetSpacer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_SetSpacer", (PyCFunction) _wrap_SizerItem_SetSpacer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_Show", (PyCFunction) _wrap_SizerItem_Show, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_IsShown", (PyCFunction) _wrap_SizerItem_IsShown, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_GetPosition", (PyCFunction) _wrap_SizerItem_GetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_GetUserData", (PyCFunction) _wrap_SizerItem_GetUserData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SizerItem_swigregister", SizerItem_swigregister, METH_VARARGS }, - { (char *)"Sizer__setOORInfo", (PyCFunction) _wrap_Sizer__setOORInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_Add", (PyCFunction) _wrap_Sizer_Add, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_Insert", (PyCFunction) _wrap_Sizer_Insert, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_Prepend", (PyCFunction) _wrap_Sizer_Prepend, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_Remove", (PyCFunction) _wrap_Sizer_Remove, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer__SetItemMinSize", (PyCFunction) _wrap_Sizer__SetItemMinSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_AddItem", (PyCFunction) _wrap_Sizer_AddItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_InsertItem", (PyCFunction) _wrap_Sizer_InsertItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_PrependItem", (PyCFunction) _wrap_Sizer_PrependItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_SetDimension", (PyCFunction) _wrap_Sizer_SetDimension, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_SetMinSize", (PyCFunction) _wrap_Sizer_SetMinSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_GetSize", (PyCFunction) _wrap_Sizer_GetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_GetPosition", (PyCFunction) _wrap_Sizer_GetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_GetMinSize", (PyCFunction) _wrap_Sizer_GetMinSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_RecalcSizes", (PyCFunction) _wrap_Sizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_CalcMin", (PyCFunction) _wrap_Sizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_Layout", (PyCFunction) _wrap_Sizer_Layout, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_Fit", (PyCFunction) _wrap_Sizer_Fit, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_FitInside", (PyCFunction) _wrap_Sizer_FitInside, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_SetSizeHints", (PyCFunction) _wrap_Sizer_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_SetVirtualSizeHints", (PyCFunction) _wrap_Sizer_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_Clear", (PyCFunction) _wrap_Sizer_Clear, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_DeleteWindows", (PyCFunction) _wrap_Sizer_DeleteWindows, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_GetChildren", (PyCFunction) _wrap_Sizer_GetChildren, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_Show", (PyCFunction) _wrap_Sizer_Show, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_Hide", (PyCFunction) _wrap_Sizer_Hide, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_IsShown", (PyCFunction) _wrap_Sizer_IsShown, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_ShowItems", (PyCFunction) _wrap_Sizer_ShowItems, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sizer_swigregister", Sizer_swigregister, METH_VARARGS }, - { (char *)"new_PySizer", (PyCFunction) _wrap_new_PySizer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PySizer__setCallbackInfo", (PyCFunction) _wrap_PySizer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PySizer_swigregister", PySizer_swigregister, METH_VARARGS }, - { (char *)"new_BoxSizer", (PyCFunction) _wrap_new_BoxSizer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BoxSizer_GetOrientation", (PyCFunction) _wrap_BoxSizer_GetOrientation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BoxSizer_SetOrientation", (PyCFunction) _wrap_BoxSizer_SetOrientation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BoxSizer_RecalcSizes", (PyCFunction) _wrap_BoxSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BoxSizer_CalcMin", (PyCFunction) _wrap_BoxSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BoxSizer_swigregister", BoxSizer_swigregister, METH_VARARGS }, - { (char *)"new_StaticBoxSizer", (PyCFunction) _wrap_new_StaticBoxSizer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StaticBoxSizer_GetStaticBox", (PyCFunction) _wrap_StaticBoxSizer_GetStaticBox, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StaticBoxSizer_RecalcSizes", (PyCFunction) _wrap_StaticBoxSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StaticBoxSizer_CalcMin", (PyCFunction) _wrap_StaticBoxSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StaticBoxSizer_swigregister", StaticBoxSizer_swigregister, METH_VARARGS }, - { (char *)"new_GridSizer", (PyCFunction) _wrap_new_GridSizer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GridSizer_RecalcSizes", (PyCFunction) _wrap_GridSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GridSizer_CalcMin", (PyCFunction) _wrap_GridSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GridSizer_SetCols", (PyCFunction) _wrap_GridSizer_SetCols, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GridSizer_SetRows", (PyCFunction) _wrap_GridSizer_SetRows, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GridSizer_SetVGap", (PyCFunction) _wrap_GridSizer_SetVGap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GridSizer_SetHGap", (PyCFunction) _wrap_GridSizer_SetHGap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GridSizer_GetCols", (PyCFunction) _wrap_GridSizer_GetCols, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GridSizer_GetRows", (PyCFunction) _wrap_GridSizer_GetRows, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GridSizer_GetVGap", (PyCFunction) _wrap_GridSizer_GetVGap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GridSizer_GetHGap", (PyCFunction) _wrap_GridSizer_GetHGap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GridSizer_swigregister", GridSizer_swigregister, METH_VARARGS }, - { (char *)"new_FlexGridSizer", (PyCFunction) _wrap_new_FlexGridSizer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FlexGridSizer_RecalcSizes", (PyCFunction) _wrap_FlexGridSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FlexGridSizer_CalcMin", (PyCFunction) _wrap_FlexGridSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FlexGridSizer_AddGrowableRow", (PyCFunction) _wrap_FlexGridSizer_AddGrowableRow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FlexGridSizer_RemoveGrowableRow", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableRow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FlexGridSizer_AddGrowableCol", (PyCFunction) _wrap_FlexGridSizer_AddGrowableCol, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FlexGridSizer_RemoveGrowableCol", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableCol, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FlexGridSizer_SetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_SetFlexibleDirection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FlexGridSizer_GetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_GetFlexibleDirection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FlexGridSizer_SetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_SetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FlexGridSizer_GetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_GetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FlexGridSizer_GetRowHeights", (PyCFunction) _wrap_FlexGridSizer_GetRowHeights, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FlexGridSizer_GetColWidths", (PyCFunction) _wrap_FlexGridSizer_GetColWidths, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FlexGridSizer_swigregister", FlexGridSizer_swigregister, METH_VARARGS }, - { (char *)"new_GBPosition", (PyCFunction) _wrap_new_GBPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBPosition_GetRow", (PyCFunction) _wrap_GBPosition_GetRow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBPosition_GetCol", (PyCFunction) _wrap_GBPosition_GetCol, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBPosition_SetRow", (PyCFunction) _wrap_GBPosition_SetRow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBPosition_SetCol", (PyCFunction) _wrap_GBPosition_SetCol, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBPosition___eq__", (PyCFunction) _wrap_GBPosition___eq__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBPosition___ne__", (PyCFunction) _wrap_GBPosition___ne__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBPosition_Set", (PyCFunction) _wrap_GBPosition_Set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBPosition_Get", (PyCFunction) _wrap_GBPosition_Get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBPosition_swigregister", GBPosition_swigregister, METH_VARARGS }, - { (char *)"new_GBSpan", (PyCFunction) _wrap_new_GBSpan, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBSpan_GetRowspan", (PyCFunction) _wrap_GBSpan_GetRowspan, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBSpan_GetColspan", (PyCFunction) _wrap_GBSpan_GetColspan, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBSpan_SetRowspan", (PyCFunction) _wrap_GBSpan_SetRowspan, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBSpan_SetColspan", (PyCFunction) _wrap_GBSpan_SetColspan, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBSpan___eq__", (PyCFunction) _wrap_GBSpan___eq__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBSpan___ne__", (PyCFunction) _wrap_GBSpan___ne__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBSpan_Set", (PyCFunction) _wrap_GBSpan_Set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBSpan_Get", (PyCFunction) _wrap_GBSpan_Get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBSpan_swigregister", GBSpan_swigregister, METH_VARARGS }, - { (char *)"new_GBSizerItem", (PyCFunction) _wrap_new_GBSizerItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_GBSizerItemWindow", (PyCFunction) _wrap_new_GBSizerItemWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_GBSizerItemSizer", (PyCFunction) _wrap_new_GBSizerItemSizer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_GBSizerItemSpacer", (PyCFunction) _wrap_new_GBSizerItemSpacer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBSizerItem_GetPos", (PyCFunction) _wrap_GBSizerItem_GetPos, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBSizerItem_GetSpan", (PyCFunction) _wrap_GBSizerItem_GetSpan, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBSizerItem_SetPos", (PyCFunction) _wrap_GBSizerItem_SetPos, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBSizerItem_SetSpan", (PyCFunction) _wrap_GBSizerItem_SetSpan, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBSizerItem_Intersects", _wrap_GBSizerItem_Intersects, METH_VARARGS }, - { (char *)"GBSizerItem_GetEndPos", (PyCFunction) _wrap_GBSizerItem_GetEndPos, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBSizerItem_GetGBSizer", (PyCFunction) _wrap_GBSizerItem_GetGBSizer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBSizerItem_SetGBSizer", (PyCFunction) _wrap_GBSizerItem_SetGBSizer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GBSizerItem_swigregister", GBSizerItem_swigregister, METH_VARARGS }, - { (char *)"new_GridBagSizer", (PyCFunction) _wrap_new_GridBagSizer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GridBagSizer_Add", (PyCFunction) _wrap_GridBagSizer_Add, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GridBagSizer_AddItem", (PyCFunction) _wrap_GridBagSizer_AddItem, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GridBagSizer_GetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_GetEmptyCellSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GridBagSizer_SetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_SetEmptyCellSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GridBagSizer_GetItemPosition", _wrap_GridBagSizer_GetItemPosition, METH_VARARGS }, - { (char *)"GridBagSizer_SetItemPosition", _wrap_GridBagSizer_SetItemPosition, METH_VARARGS }, - { (char *)"GridBagSizer_GetItemSpan", _wrap_GridBagSizer_GetItemSpan, METH_VARARGS }, - { (char *)"GridBagSizer_SetItemSpan", _wrap_GridBagSizer_SetItemSpan, METH_VARARGS }, - { (char *)"GridBagSizer_FindItem", _wrap_GridBagSizer_FindItem, METH_VARARGS }, - { (char *)"GridBagSizer_FindItemAtPosition", (PyCFunction) _wrap_GridBagSizer_FindItemAtPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GridBagSizer_FindItemAtPoint", (PyCFunction) _wrap_GridBagSizer_FindItemAtPoint, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GridBagSizer_FindItemWithData", (PyCFunction) _wrap_GridBagSizer_FindItemWithData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GridBagSizer_RecalcSizes", (PyCFunction) _wrap_GridBagSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GridBagSizer_CalcMin", (PyCFunction) _wrap_GridBagSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GridBagSizer_CheckForIntersection", _wrap_GridBagSizer_CheckForIntersection, METH_VARARGS }, - { (char *)"GridBagSizer_swigregister", GridBagSizer_swigregister, METH_VARARGS }, - { (char *)"IndividualLayoutConstraint_Set", (PyCFunction) _wrap_IndividualLayoutConstraint_Set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_LeftOf", (PyCFunction) _wrap_IndividualLayoutConstraint_LeftOf, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_RightOf", (PyCFunction) _wrap_IndividualLayoutConstraint_RightOf, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_Above", (PyCFunction) _wrap_IndividualLayoutConstraint_Above, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_Below", (PyCFunction) _wrap_IndividualLayoutConstraint_Below, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_SameAs", (PyCFunction) _wrap_IndividualLayoutConstraint_SameAs, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_PercentOf", (PyCFunction) _wrap_IndividualLayoutConstraint_PercentOf, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_Absolute", (PyCFunction) _wrap_IndividualLayoutConstraint_Absolute, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_Unconstrained", (PyCFunction) _wrap_IndividualLayoutConstraint_Unconstrained, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_AsIs", (PyCFunction) _wrap_IndividualLayoutConstraint_AsIs, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_GetOtherWindow", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_GetMyEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMyEdge, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_SetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_SetEdge, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_SetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_SetValue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_GetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMargin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_SetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_SetMargin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_GetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_GetValue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_GetPercent", (PyCFunction) _wrap_IndividualLayoutConstraint_GetPercent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_GetOtherEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherEdge, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_GetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_GetDone, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_SetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_SetDone, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_GetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_GetRelationship, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_SetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_SetRelationship, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_ResetIfWin", (PyCFunction) _wrap_IndividualLayoutConstraint_ResetIfWin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_SatisfyConstraint", (PyCFunction) _wrap_IndividualLayoutConstraint_SatisfyConstraint, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_GetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetEdge, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IndividualLayoutConstraint_swigregister", IndividualLayoutConstraint_swigregister, METH_VARARGS }, - { (char *)"LayoutConstraints_left_get", (PyCFunction) _wrap_LayoutConstraints_left_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LayoutConstraints_top_get", (PyCFunction) _wrap_LayoutConstraints_top_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LayoutConstraints_right_get", (PyCFunction) _wrap_LayoutConstraints_right_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LayoutConstraints_bottom_get", (PyCFunction) _wrap_LayoutConstraints_bottom_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LayoutConstraints_width_get", (PyCFunction) _wrap_LayoutConstraints_width_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LayoutConstraints_height_get", (PyCFunction) _wrap_LayoutConstraints_height_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LayoutConstraints_centreX_get", (PyCFunction) _wrap_LayoutConstraints_centreX_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LayoutConstraints_centreY_get", (PyCFunction) _wrap_LayoutConstraints_centreY_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_LayoutConstraints", (PyCFunction) _wrap_new_LayoutConstraints, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LayoutConstraints_SatisfyConstraints", (PyCFunction) _wrap_LayoutConstraints_SatisfyConstraints, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LayoutConstraints_AreSatisfied", (PyCFunction) _wrap_LayoutConstraints_AreSatisfied, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LayoutConstraints_swigregister", LayoutConstraints_swigregister, METH_VARARGS }, - { NULL, NULL } -}; - - -/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ - -static void *_p_wxGBSizerItemTo_p_wxSizerItem(void *x) { - return (void *)((wxSizerItem *) ((wxGBSizerItem *) x)); -} -static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { - return (void *)((wxSizer *) ((wxBoxSizer *) x)); -} -static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { - return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); -} -static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { - return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); -} -static void *_p_wxGridSizerTo_p_wxSizer(void *x) { - return (void *)((wxSizer *) ((wxGridSizer *) x)); -} -static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { - return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); -} -static void *_p_wxPySizerTo_p_wxSizer(void *x) { - return (void *)((wxSizer *) ((wxPySizer *) x)); -} -static void *_p_wxStaticBoxSizerTo_p_wxBoxSizer(void *x) { - return (void *)((wxBoxSizer *) ((wxStaticBoxSizer *) x)); -} -static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); -} -static void *_p_wxMenuEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxMenuEvent *) x)); -} -static void *_p_wxCloseEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxCloseEvent *) x)); -} -static void *_p_wxMouseEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxMouseEvent *) x)); -} -static void *_p_wxEraseEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxEraseEvent *) x)); -} -static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); -} -static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); -} -static void *_p_wxScrollEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); -} -static void *_p_wxPyEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxPyEvent *) x)); -} -static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); -} -static void *_p_wxIdleEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxIdleEvent *) x)); -} -static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); -} -static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); -} -static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); -} -static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxIconizeEvent *) x)); -} -static void *_p_wxActivateEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxActivateEvent *) x)); -} -static void *_p_wxSizeEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxSizeEvent *) x)); -} -static void *_p_wxMoveEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxMoveEvent *) x)); -} -static void *_p_wxPaintEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxPaintEvent *) x)); -} -static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); -} -static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); -} -static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); -} -static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); -} -static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); -} -static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); -} -static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); -} -static void *_p_wxFocusEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxFocusEvent *) x)); -} -static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); -} -static void *_p_wxShowEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxShowEvent *) x)); -} -static void *_p_wxCommandEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxCommandEvent *) x)); -} -static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); -} -static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); -} -static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); -} -static void *_p_wxKeyEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxKeyEvent *) x)); -} -static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); -} -static void *_p_wxGridBagSizerTo_p_wxGridSizer(void *x) { - return (void *)((wxGridSizer *) (wxFlexGridSizer *) ((wxGridBagSizer *) x)); -} -static void *_p_wxFlexGridSizerTo_p_wxGridSizer(void *x) { - return (void *)((wxGridSizer *) ((wxFlexGridSizer *) x)); -} -static void *_p_wxGridBagSizerTo_p_wxFlexGridSizer(void *x) { - return (void *)((wxFlexGridSizer *) ((wxGridBagSizer *) x)); -} -static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { - return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); -} -static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { - return (void *)((wxControl *) ((wxControlWithItems *) x)); -} -static void *_p_wxControlTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); -} -static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) ((wxWindow *) x)); -} -static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); -} -static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) ((wxPyApp *) x)); -} -static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) ((wxValidator *) x)); -} -static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); -} -static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); -} -static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) ((wxMenu *) x)); -} -static void *_p_wxANIHandlerTo_p_wxCURHandler(void *x) { - return (void *)((wxCURHandler *) ((wxANIHandler *) x)); -} -static void *_p_wxCURHandlerTo_p_wxICOHandler(void *x) { - return (void *)((wxICOHandler *) ((wxCURHandler *) x)); -} -static void *_p_wxANIHandlerTo_p_wxICOHandler(void *x) { - return (void *)((wxICOHandler *) (wxCURHandler *) ((wxANIHandler *) x)); -} -static void *_p_wxICOHandlerTo_p_wxBMPHandler(void *x) { - return (void *)((wxBMPHandler *) ((wxICOHandler *) x)); -} -static void *_p_wxCURHandlerTo_p_wxBMPHandler(void *x) { - return (void *)((wxBMPHandler *) (wxICOHandler *) ((wxCURHandler *) x)); -} -static void *_p_wxANIHandlerTo_p_wxBMPHandler(void *x) { - return (void *)((wxBMPHandler *) (wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); -} -static void *_p_wxBMPHandlerTo_p_wxImageHandler(void *x) { - return (void *)((wxImageHandler *) ((wxBMPHandler *) x)); -} -static void *_p_wxICOHandlerTo_p_wxImageHandler(void *x) { - return (void *)((wxImageHandler *) (wxBMPHandler *) ((wxICOHandler *) x)); -} -static void *_p_wxCURHandlerTo_p_wxImageHandler(void *x) { - return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); -} -static void *_p_wxANIHandlerTo_p_wxImageHandler(void *x) { - return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); -} -static void *_p_wxPNGHandlerTo_p_wxImageHandler(void *x) { - return (void *)((wxImageHandler *) ((wxPNGHandler *) x)); -} -static void *_p_wxGIFHandlerTo_p_wxImageHandler(void *x) { - return (void *)((wxImageHandler *) ((wxGIFHandler *) x)); -} -static void *_p_wxPCXHandlerTo_p_wxImageHandler(void *x) { - return (void *)((wxImageHandler *) ((wxPCXHandler *) x)); -} -static void *_p_wxJPEGHandlerTo_p_wxImageHandler(void *x) { - return (void *)((wxImageHandler *) ((wxJPEGHandler *) x)); -} -static void *_p_wxPNMHandlerTo_p_wxImageHandler(void *x) { - return (void *)((wxImageHandler *) ((wxPNMHandler *) x)); -} -static void *_p_wxXPMHandlerTo_p_wxImageHandler(void *x) { - return (void *)((wxImageHandler *) ((wxXPMHandler *) x)); -} -static void *_p_wxTIFFHandlerTo_p_wxImageHandler(void *x) { - return (void *)((wxImageHandler *) ((wxTIFFHandler *) x)); -} -static void *_p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler(void *x) { - return (void *)((wxFileSystemHandler *) ((wxPyFileSystemHandler *) x)); -} -static void *_p_wxInternetFSHandlerTo_p_wxFileSystemHandler(void *x) { - return (void *)((wxFileSystemHandler *) ((wxInternetFSHandler *) x)); -} -static void *_p_wxZipFSHandlerTo_p_wxFileSystemHandler(void *x) { - return (void *)((wxFileSystemHandler *) ((wxZipFSHandler *) x)); -} -static void *_p_wxMemoryFSHandlerTo_p_wxFileSystemHandler(void *x) { - return (void *)((wxFileSystemHandler *) ((wxMemoryFSHandler *) x)); -} -static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); -} -static void *_p_wxMenuEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); -} -static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); -} -static void *_p_wxEraseEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); -} -static void *_p_wxMouseEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); -} -static void *_p_wxCloseEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); -} -static void *_p_wxValidatorTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); -} -static void *_p_wxPyValidatorTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); -} -static void *_p_wxMenuBarTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); -} -static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); -} -static void *_p_wxSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxSizer *) x)); -} -static void *_p_wxBoxSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); -} -static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); -} -static void *_p_wxMenuTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); -} -static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); -} -static void *_p_wxImageTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxImage *) x)); -} -static void *_p_wxScrollEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); -} -static void *_p_wxNotifyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); -} -static void *_p_wxPyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); -} -static void *_p_wxWindowTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); -} -static void *_p_wxControlTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); -} -static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxAcceleratorTable *) x)); -} -static void *_p_wxGridSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); -} -static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); -} -static void *_p_wxPyAppTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); -} -static void *_p_wxEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxEvent *) x)); -} -static void *_p_wxActivateEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); -} -static void *_p_wxMoveEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); -} -static void *_p_wxSizeEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); -} -static void *_p_wxIconizeEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); -} -static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); -} -static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); -} -static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); -} -static void *_p_wxIdleEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); -} -static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); -} -static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxEvtHandler *) x)); -} -static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); -} -static void *_p_wxImageHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxImageHandler *) x)); -} -static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); -} -static void *_p_wxICOHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); -} -static void *_p_wxCURHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); -} -static void *_p_wxANIHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); -} -static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); -} -static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); -} -static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); -} -static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); -} -static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); -} -static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); -} -static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); -} -static void *_p_wxPaintEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); -} -static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); -} -static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); -} -static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); -} -static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); -} -static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); -} -static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxLayoutConstraints *) x)); -} -static void *_p_wxFileSystemTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxFileSystem *) x)); -} -static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); -} -static void *_p_wxFocusEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); -} -static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); -} -static void *_p_wxSizerItemTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxSizerItem *) x)); -} -static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); -} -static void *_p_wxShowEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); -} -static void *_p_wxFSFileTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxFSFile *) x)); -} -static void *_p_wxCommandEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); -} -static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); -} -static void *_p_wxKeyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); -} -static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); -} -static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); -} -static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); -} -static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); -} -static void *_p_wxMenuItemTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxMenuItem *) x)); -} -static void *_p_wxPySizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); -} -static void *_p_wxControlTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) ((wxControl *) x)); -} -static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); -} -static void *_p_wxMenuBarTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) ((wxMenuBar *) x)); -} -static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); -} -static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); -} -static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); -} -static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); -} -static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); -} -static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); -} -static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); -} -static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); -} -static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { - return (void *)((wxValidator *) ((wxPyValidator *) x)); -} -static swig_type_info _swigt__p_wxLayoutConstraints[] = {{"_p_wxLayoutConstraints", 0, "wxLayoutConstraints *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxRealPoint[] = {{"_p_wxRealPoint", 0, "wxRealPoint *", 0, 0, 0, 0},{"_p_wxRealPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSizerItem[] = {{"_p_wxSizerItem", 0, "wxSizerItem *", 0, 0, 0, 0},{"_p_wxSizerItem", 0, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxSizerItem, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxGBSizerItem[] = {{"_p_wxGBSizerItem", 0, "wxGBSizerItem *", 0, 0, 0, 0},{"_p_wxGBSizerItem", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxScrollEvent[] = {{"_p_wxScrollEvent", 0, "wxScrollEvent *", 0, 0, 0, 0},{"_p_wxScrollEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxIndividualLayoutConstraint[] = {{"_p_wxIndividualLayoutConstraint", 0, "wxIndividualLayoutConstraint *", 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSizer[] = {{"_p_wxSizer", 0, "wxSizer *", 0, 0, 0, 0},{"_p_wxSizer", 0, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxSizer, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxBoxSizer[] = {{"_p_wxBoxSizer", 0, "wxBoxSizer *", 0, 0, 0, 0},{"_p_wxBoxSizer", 0, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxBoxSizer, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxStaticBoxSizer[] = {{"_p_wxStaticBoxSizer", 0, "wxStaticBoxSizer *", 0, 0, 0, 0},{"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxGridBagSizer[] = {{"_p_wxGridBagSizer", 0, "wxGridBagSizer *", 0, 0, 0, 0},{"_p_wxGridBagSizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxAcceleratorEntry[] = {{"_p_wxAcceleratorEntry", 0, "wxAcceleratorEntry *", 0, 0, 0, 0},{"_p_wxAcceleratorEntry", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxUpdateUIEvent[] = {{"_p_wxUpdateUIEvent", 0, "wxUpdateUIEvent *", 0, 0, 0, 0},{"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMenu[] = {{"_p_wxMenu", 0, "wxMenu *", 0, 0, 0, 0},{"_p_wxMenu", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxGridSizer[] = {{"_p_wxGridSizer", 0, "wxGridSizer *", 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxGridSizer, 0, 0, 0, 0, 0},{"_p_wxGridSizer", 0, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxGridSizer, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFlexGridSizer[] = {{"_p_wxFlexGridSizer", 0, "wxFlexGridSizer *", 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxFlexGridSizer, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxInitDialogEvent[] = {{"_p_wxInitDialogEvent", 0, "wxInitDialogEvent *", 0, 0, 0, 0},{"_p_wxInitDialogEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxItemContainer[] = {{"_p_wxItemContainer", 0, "wxItemContainer *", 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxItemContainer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxNcPaintEvent[] = {{"_p_wxNcPaintEvent", 0, "wxNcPaintEvent *", 0, 0, 0, 0},{"_p_wxNcPaintEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPaintEvent[] = {{"_p_wxPaintEvent", 0, "wxPaintEvent *", 0, 0, 0, 0},{"_p_wxPaintEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSysColourChangedEvent[] = {{"_p_wxSysColourChangedEvent", 0, "wxSysColourChangedEvent *", 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMouseCaptureChangedEvent[] = {{"_p_wxMouseCaptureChangedEvent", 0, "wxMouseCaptureChangedEvent *", 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxDisplayChangedEvent[] = {{"_p_wxDisplayChangedEvent", 0, "wxDisplayChangedEvent *", 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPaletteChangedEvent[] = {{"_p_wxPaletteChangedEvent", 0, "wxPaletteChangedEvent *", 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0, 0, 0, 0},{"_p_wxControl", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0, 0, 0, 0},{"_p_wxFont", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMenuBarBase[] = {{"_p_wxMenuBarBase", 0, "wxMenuBarBase *", 0, 0, 0, 0},{"_p_wxMenuBarBase", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSetCursorEvent[] = {{"_p_wxSetCursorEvent", 0, "wxSetCursorEvent *", 0, 0, 0, 0},{"_p_wxSetCursorEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFSFile[] = {{"_p_wxFSFile", 0, "wxFSFile *", 0, 0, 0, 0},{"_p_wxFSFile", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxCaret[] = {{"_p_wxCaret", 0, "wxCaret *", 0, 0, 0, 0},{"_p_wxCaret", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0, 0, 0, 0},{"_p_wxRegion", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPoint2D[] = {{"_p_wxPoint2D", 0, "wxPoint2D *", 0, 0, 0, 0},{"_p_wxPoint2D", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0, 0, 0, 0},{"_p_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0, 0, 0, 0},{"_p_wxSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0, 0, 0, 0},{"_p_wxDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPySizer[] = {{"_p_wxPySizer", 0, "wxPySizer *", 0, 0, 0, 0},{"_p_wxPySizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxVisualAttributes[] = {{"_p_wxVisualAttributes", 0, "wxVisualAttributes *", 0, 0, 0, 0},{"_p_wxVisualAttributes", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxNotifyEvent[] = {{"_p_wxNotifyEvent", 0, "wxNotifyEvent *", 0, 0, 0, 0},{"_p_wxNotifyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyEvent[] = {{"_p_wxPyEvent", 0, "wxPyEvent *", 0, 0, 0, 0},{"_p_wxPyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPropagationDisabler[] = {{"_p_wxPropagationDisabler", 0, "wxPropagationDisabler *", 0, 0, 0, 0},{"_p_wxPropagationDisabler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxAppTraits[] = {{"_p_wxAppTraits", 0, "wxAppTraits *", 0, 0, 0, 0},{"_p_wxAppTraits", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0, 0, 0, 0},{"_p_wxArrayString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxShowEvent[] = {{"_p_wxShowEvent", 0, "wxShowEvent *", 0, 0, 0, 0},{"_p_wxShowEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxToolTip[] = {{"_p_wxToolTip", 0, "wxToolTip *", 0, 0, 0, 0},{"_p_wxToolTip", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMaximizeEvent[] = {{"_p_wxMaximizeEvent", 0, "wxMaximizeEvent *", 0, 0, 0, 0},{"_p_wxMaximizeEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxIconizeEvent[] = {{"_p_wxIconizeEvent", 0, "wxIconizeEvent *", 0, 0, 0, 0},{"_p_wxIconizeEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxActivateEvent[] = {{"_p_wxActivateEvent", 0, "wxActivateEvent *", 0, 0, 0, 0},{"_p_wxActivateEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMoveEvent[] = {{"_p_wxMoveEvent", 0, "wxMoveEvent *", 0, 0, 0, 0},{"_p_wxMoveEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSizeEvent[] = {{"_p_wxSizeEvent", 0, "wxSizeEvent *", 0, 0, 0, 0},{"_p_wxSizeEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxQueryNewPaletteEvent[] = {{"_p_wxQueryNewPaletteEvent", 0, "wxQueryNewPaletteEvent *", 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxWindowCreateEvent[] = {{"_p_wxWindowCreateEvent", 0, "wxWindowCreateEvent *", 0, 0, 0, 0},{"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxIdleEvent[] = {{"_p_wxIdleEvent", 0, "wxIdleEvent *", 0, 0, 0, 0},{"_p_wxIdleEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMenuItem[] = {{"_p_wxMenuItem", 0, "wxMenuItem *", 0, 0, 0, 0},{"_p_wxMenuItem", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxStaticBox[] = {{"_p_wxStaticBox", 0, "wxStaticBox *", 0, 0, 0, 0},{"_p_wxStaticBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0, 0, 0, 0},{"_p_long", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxTIFFHandler[] = {{"_p_wxTIFFHandler", 0, "wxTIFFHandler *", 0, 0, 0, 0},{"_p_wxTIFFHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxXPMHandler[] = {{"_p_wxXPMHandler", 0, "wxXPMHandler *", 0, 0, 0, 0},{"_p_wxXPMHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPNMHandler[] = {{"_p_wxPNMHandler", 0, "wxPNMHandler *", 0, 0, 0, 0},{"_p_wxPNMHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxJPEGHandler[] = {{"_p_wxJPEGHandler", 0, "wxJPEGHandler *", 0, 0, 0, 0},{"_p_wxJPEGHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPCXHandler[] = {{"_p_wxPCXHandler", 0, "wxPCXHandler *", 0, 0, 0, 0},{"_p_wxPCXHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxGIFHandler[] = {{"_p_wxGIFHandler", 0, "wxGIFHandler *", 0, 0, 0, 0},{"_p_wxGIFHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPNGHandler[] = {{"_p_wxPNGHandler", 0, "wxPNGHandler *", 0, 0, 0, 0},{"_p_wxPNGHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxANIHandler[] = {{"_p_wxANIHandler", 0, "wxANIHandler *", 0, 0, 0, 0},{"_p_wxANIHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMemoryFSHandler[] = {{"_p_wxMemoryFSHandler", 0, "wxMemoryFSHandler *", 0, 0, 0, 0},{"_p_wxMemoryFSHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxCURHandler[] = {{"_p_wxCURHandler", 0, "wxCURHandler *", 0, 0, 0, 0},{"_p_wxCURHandler", 0, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxCURHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxICOHandler[] = {{"_p_wxICOHandler", 0, "wxICOHandler *", 0, 0, 0, 0},{"_p_wxICOHandler", 0, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxICOHandler, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxICOHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxBMPHandler[] = {{"_p_wxBMPHandler", 0, "wxBMPHandler *", 0, 0, 0, 0},{"_p_wxBMPHandler", 0, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxBMPHandler, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxBMPHandler, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxBMPHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxImageHandler[] = {{"_p_wxImageHandler", 0, "wxImageHandler *", 0, 0, 0, 0},{"_p_wxImageHandler", 0, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFileSystemHandler[] = {{"_p_wxFileSystemHandler", 0, "wxFileSystemHandler *", 0, 0, 0, 0},{"_p_wxFileSystemHandler", 0, 0, 0, 0, 0, 0},{"_p_wxPyFileSystemHandler", _p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler, 0, 0, 0, 0, 0},{"_p_wxInternetFSHandler", _p_wxInternetFSHandlerTo_p_wxFileSystemHandler, 0, 0, 0, 0, 0},{"_p_wxZipFSHandler", _p_wxZipFSHandlerTo_p_wxFileSystemHandler, 0, 0, 0, 0, 0},{"_p_wxMemoryFSHandler", _p_wxMemoryFSHandlerTo_p_wxFileSystemHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyFileSystemHandler[] = {{"_p_wxPyFileSystemHandler", 0, "wxPyFileSystemHandler *", 0, 0, 0, 0},{"_p_wxPyFileSystemHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxInternetFSHandler[] = {{"_p_wxInternetFSHandler", 0, "wxInternetFSHandler *", 0, 0, 0, 0},{"_p_wxInternetFSHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxZipFSHandler[] = {{"_p_wxZipFSHandler", 0, "wxZipFSHandler *", 0, 0, 0, 0},{"_p_wxZipFSHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0, 0, 0, 0},{"_p_wxRect", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxGBSpan[] = {{"_p_wxGBSpan", 0, "wxGBSpan *", 0, 0, 0, 0},{"_p_wxGBSpan", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPropagateOnce[] = {{"_p_wxPropagateOnce", 0, "wxPropagateOnce *", 0, 0, 0, 0},{"_p_wxPropagateOnce", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxAcceleratorTable[] = {{"_p_wxAcceleratorTable", 0, "wxAcceleratorTable *", 0, 0, 0, 0},{"_p_wxAcceleratorTable", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxGBPosition[] = {{"_p_wxGBPosition", 0, "wxGBPosition *", 0, 0, 0, 0},{"_p_wxGBPosition", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0, 0, 0, 0},{"_p_wxImage", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFrame[] = {{"_p_wxFrame", 0, "wxFrame *", 0, 0, 0, 0},{"_p_wxFrame", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxScrollWinEvent[] = {{"_p_wxScrollWinEvent", 0, "wxScrollWinEvent *", 0, 0, 0, 0},{"_p_wxScrollWinEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxImageHistogram[] = {{"_p_wxImageHistogram", 0, "wxImageHistogram *", 0, 0, 0, 0},{"_p_wxImageHistogram", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "unsigned char *|byte *", 0, 0, 0, 0},{"_p_unsigned_char", 0, 0, 0, 0, 0, 0},{"_p_byte", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0, 0, 0, 0},{"_p_wxPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0, 0, 0, 0},{"_p_wxCursor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyInputStream[] = {{"_p_wxPyInputStream", 0, "wxPyInputStream *", 0, 0, 0, 0},{"_p_wxPyInputStream", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxOutputStream[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0, 0, 0, 0},{"_p_wxOutputStream", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxInputStream[] = {{"_p_wxInputStream", 0, "wxInputStream *", 0, 0, 0, 0},{"_p_wxInputStream", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxDateTime[] = {{"_p_wxDateTime", 0, "wxDateTime *", 0, 0, 0, 0},{"_p_wxDateTime", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0, 0, 0, 0},{"_p_wxKeyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxNavigationKeyEvent[] = {{"_p_wxNavigationKeyEvent", 0, "wxNavigationKeyEvent *", 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxWindowDestroyEvent[] = {{"_p_wxWindowDestroyEvent", 0, "wxWindowDestroyEvent *", 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMenuBar[] = {{"_p_wxMenuBar", 0, "wxMenuBar *", 0, 0, 0, 0},{"_p_wxMenuBar", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFileSystem[] = {{"_p_wxFileSystem", 0, "wxFileSystem *", 0, 0, 0, 0},{"_p_wxFileSystem", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0, 0, 0, 0},{"_p_wxBitmap", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMenuEvent[] = {{"_p_wxMenuEvent", 0, "wxMenuEvent *", 0, 0, 0, 0},{"_p_wxMenuEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxContextMenuEvent[] = {{"_p_wxContextMenuEvent", 0, "wxContextMenuEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0, 0, 0, 0},{"_p_unsigned_char", 0, 0, 0, 0, 0, 0},{"_p_byte", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxCloseEvent[] = {{"_p_wxCloseEvent", 0, "wxCloseEvent *", 0, 0, 0, 0},{"_p_wxCloseEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxEraseEvent[] = {{"_p_wxEraseEvent", 0, "wxEraseEvent *", 0, 0, 0, 0},{"_p_wxEraseEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMouseEvent[] = {{"_p_wxMouseEvent", 0, "wxMouseEvent *", 0, 0, 0, 0},{"_p_wxMouseEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyApp[] = {{"_p_wxPyApp", 0, "wxPyApp *", 0, 0, 0, 0},{"_p_wxPyApp", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", 0, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyCommandEvent[] = {{"_p_wxPyCommandEvent", 0, "wxPyCommandEvent *", 0, 0, 0, 0},{"_p_wxPyCommandEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyDropTarget[] = {{"_p_wxPyDropTarget", 0, "wxPyDropTarget *", 0, 0, 0, 0},{"_p_wxPyDropTarget", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxChildFocusEvent[] = {{"_p_wxChildFocusEvent", 0, "wxChildFocusEvent *", 0, 0, 0, 0},{"_p_wxChildFocusEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFocusEvent[] = {{"_p_wxFocusEvent", 0, "wxFocusEvent *", 0, 0, 0, 0},{"_p_wxFocusEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxDropFilesEvent[] = {{"_p_wxDropFilesEvent", 0, "wxDropFilesEvent *", 0, 0, 0, 0},{"_p_wxDropFilesEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxControlWithItems[] = {{"_p_wxControlWithItems", 0, "wxControlWithItems *", 0, 0, 0, 0},{"_p_wxControlWithItems", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0, 0, 0, 0},{"_p_wxColour", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxValidator[] = {{"_p_wxValidator", 0, "wxValidator *", 0, 0, 0, 0},{"_p_wxValidator", 0, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxValidator, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyValidator[] = {{"_p_wxPyValidator", 0, "wxPyValidator *", 0, 0, 0, 0},{"_p_wxPyValidator", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; - -static swig_type_info *swig_types_initial[] = { -_swigt__p_wxLayoutConstraints, -_swigt__p_wxRealPoint, -_swigt__p_wxSizerItem, -_swigt__p_wxGBSizerItem, -_swigt__p_wxScrollEvent, -_swigt__p_wxIndividualLayoutConstraint, -_swigt__p_wxSizer, -_swigt__p_wxBoxSizer, -_swigt__p_wxStaticBoxSizer, -_swigt__p_wxGridBagSizer, -_swigt__p_wxAcceleratorEntry, -_swigt__p_wxUpdateUIEvent, -_swigt__p_wxMenu, -_swigt__p_wxEvent, -_swigt__p_wxGridSizer, -_swigt__p_wxFlexGridSizer, -_swigt__p_wxInitDialogEvent, -_swigt__p_wxItemContainer, -_swigt__p_wxNcPaintEvent, -_swigt__p_wxPaintEvent, -_swigt__p_wxSysColourChangedEvent, -_swigt__p_wxMouseCaptureChangedEvent, -_swigt__p_wxDisplayChangedEvent, -_swigt__p_wxPaletteChangedEvent, -_swigt__p_wxControl, -_swigt__p_wxFont, -_swigt__p_wxMenuBarBase, -_swigt__p_wxSetCursorEvent, -_swigt__p_wxFSFile, -_swigt__p_wxCaret, -_swigt__p_wxRegion, -_swigt__p_wxPoint2D, -_swigt__p_int, -_swigt__p_wxSize, -_swigt__p_wxDC, -_swigt__p_wxPySizer, -_swigt__p_wxVisualAttributes, -_swigt__p_wxNotifyEvent, -_swigt__p_wxPyEvent, -_swigt__p_wxPropagationDisabler, -_swigt__p_wxAppTraits, -_swigt__p_wxArrayString, -_swigt__p_wxShowEvent, -_swigt__p_wxToolTip, -_swigt__p_wxMaximizeEvent, -_swigt__p_wxIconizeEvent, -_swigt__p_wxActivateEvent, -_swigt__p_wxMoveEvent, -_swigt__p_wxSizeEvent, -_swigt__p_wxQueryNewPaletteEvent, -_swigt__p_wxWindowCreateEvent, -_swigt__p_wxIdleEvent, -_swigt__p_wxMenuItem, -_swigt__p_wxStaticBox, -_swigt__p_long, -_swigt__p_wxTIFFHandler, -_swigt__p_wxXPMHandler, -_swigt__p_wxPNMHandler, -_swigt__p_wxJPEGHandler, -_swigt__p_wxPCXHandler, -_swigt__p_wxGIFHandler, -_swigt__p_wxPNGHandler, -_swigt__p_wxANIHandler, -_swigt__p_wxMemoryFSHandler, -_swigt__p_wxEvtHandler, -_swigt__p_wxCURHandler, -_swigt__p_wxICOHandler, -_swigt__p_wxBMPHandler, -_swigt__p_wxImageHandler, -_swigt__p_wxFileSystemHandler, -_swigt__p_wxPyFileSystemHandler, -_swigt__p_wxInternetFSHandler, -_swigt__p_wxZipFSHandler, -_swigt__p_wxRect, -_swigt__p_wxGBSpan, -_swigt__p_wxPropagateOnce, -_swigt__p_wxAcceleratorTable, -_swigt__p_char, -_swigt__p_wxGBPosition, -_swigt__p_wxImage, -_swigt__p_wxFrame, -_swigt__p_wxScrollWinEvent, -_swigt__p_wxImageHistogram, -_swigt__p_byte, -_swigt__p_wxPoint, -_swigt__p_wxCursor, -_swigt__p_wxObject, -_swigt__p_wxPyInputStream, -_swigt__p_wxOutputStream, -_swigt__p_wxInputStream, -_swigt__p_wxDateTime, -_swigt__p_wxKeyEvent, -_swigt__p_wxNavigationKeyEvent, -_swigt__p_wxWindowDestroyEvent, -_swigt__p_wxWindow, -_swigt__p_wxMenuBar, -_swigt__p_wxFileSystem, -_swigt__p_wxBitmap, -_swigt__p_wxMenuEvent, -_swigt__p_wxContextMenuEvent, -_swigt__p_unsigned_char, -_swigt__p_wxCloseEvent, -_swigt__p_wxEraseEvent, -_swigt__p_wxMouseEvent, -_swigt__p_wxPyApp, -_swigt__p_wxCommandEvent, -_swigt__p_wxPyCommandEvent, -_swigt__p_wxPyDropTarget, -_swigt__p_wxChildFocusEvent, -_swigt__p_wxFocusEvent, -_swigt__p_wxDropFilesEvent, -_swigt__p_wxControlWithItems, -_swigt__p_wxColour, -_swigt__p_wxValidator, -_swigt__p_wxPyValidator, -0 -}; - - -/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ - -static swig_const_info swig_const_table[] = { -{0}}; - -#ifdef __cplusplus -} -#endif - -#ifdef __cplusplus -extern "C" -#endif -SWIGEXPORT(void) SWIG_init(void) { - static PyObject *SWIG_globals = 0; - static int typeinit = 0; - PyObject *m, *d; - int i; - if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); - m = Py_InitModule((char *) SWIG_name, SwigMethods); - d = PyModule_GetDict(m); - - if (!typeinit) { - for (i = 0; swig_types_initial[i]; i++) { - swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); - } - typeinit = 1; - } - SWIG_InstallConstants(d,swig_const_table); - - -#ifndef wxPyUSE_EXPORT - // Make our API structure a CObject so other modules can import it - // from this module. - PyObject* cobj = PyCObject_FromVoidPtr(&API, NULL); - PyDict_SetItemString(d,"_wxPyCoreAPI", cobj); - Py_XDECREF(cobj); -#endif - - PyDict_SetItemString(d,"NOT_FOUND", SWIG_FromInt((int)wxNOT_FOUND)); - PyDict_SetItemString(d,"VSCROLL", SWIG_FromInt((int)wxVSCROLL)); - PyDict_SetItemString(d,"HSCROLL", SWIG_FromInt((int)wxHSCROLL)); - PyDict_SetItemString(d,"CAPTION", SWIG_FromInt((int)wxCAPTION)); - PyDict_SetItemString(d,"DOUBLE_BORDER", SWIG_FromInt((int)wxDOUBLE_BORDER)); - PyDict_SetItemString(d,"SUNKEN_BORDER", SWIG_FromInt((int)wxSUNKEN_BORDER)); - PyDict_SetItemString(d,"RAISED_BORDER", SWIG_FromInt((int)wxRAISED_BORDER)); - PyDict_SetItemString(d,"BORDER", SWIG_FromInt((int)wxBORDER)); - PyDict_SetItemString(d,"SIMPLE_BORDER", SWIG_FromInt((int)wxSIMPLE_BORDER)); - PyDict_SetItemString(d,"STATIC_BORDER", SWIG_FromInt((int)wxSTATIC_BORDER)); - PyDict_SetItemString(d,"TRANSPARENT_WINDOW", SWIG_FromInt((int)wxTRANSPARENT_WINDOW)); - PyDict_SetItemString(d,"NO_BORDER", SWIG_FromInt((int)wxNO_BORDER)); - PyDict_SetItemString(d,"TAB_TRAVERSAL", SWIG_FromInt((int)wxTAB_TRAVERSAL)); - PyDict_SetItemString(d,"WANTS_CHARS", SWIG_FromInt((int)wxWANTS_CHARS)); - PyDict_SetItemString(d,"POPUP_WINDOW", SWIG_FromInt((int)wxPOPUP_WINDOW)); - PyDict_SetItemString(d,"CENTER_FRAME", SWIG_FromInt((int)wxCENTER_FRAME)); - PyDict_SetItemString(d,"CENTRE_ON_SCREEN", SWIG_FromInt((int)wxCENTRE_ON_SCREEN)); - PyDict_SetItemString(d,"CENTER_ON_SCREEN", SWIG_FromInt((int)wxCENTER_ON_SCREEN)); - PyDict_SetItemString(d,"ED_CLIENT_MARGIN", SWIG_FromInt((int)wxED_CLIENT_MARGIN)); - PyDict_SetItemString(d,"ED_BUTTONS_BOTTOM", SWIG_FromInt((int)wxED_BUTTONS_BOTTOM)); - PyDict_SetItemString(d,"ED_BUTTONS_RIGHT", SWIG_FromInt((int)wxED_BUTTONS_RIGHT)); - PyDict_SetItemString(d,"ED_STATIC_LINE", SWIG_FromInt((int)wxED_STATIC_LINE)); - PyDict_SetItemString(d,"EXT_DIALOG_STYLE", SWIG_FromInt((int)wxEXT_DIALOG_STYLE)); - PyDict_SetItemString(d,"CLIP_CHILDREN", SWIG_FromInt((int)wxCLIP_CHILDREN)); - PyDict_SetItemString(d,"CLIP_SIBLINGS", SWIG_FromInt((int)wxCLIP_SIBLINGS)); - PyDict_SetItemString(d,"ALWAYS_SHOW_SB", SWIG_FromInt((int)wxALWAYS_SHOW_SB)); - PyDict_SetItemString(d,"RETAINED", SWIG_FromInt((int)wxRETAINED)); - PyDict_SetItemString(d,"BACKINGSTORE", SWIG_FromInt((int)wxBACKINGSTORE)); - PyDict_SetItemString(d,"COLOURED", SWIG_FromInt((int)wxCOLOURED)); - PyDict_SetItemString(d,"FIXED_LENGTH", SWIG_FromInt((int)wxFIXED_LENGTH)); - PyDict_SetItemString(d,"LB_NEEDED_SB", SWIG_FromInt((int)wxLB_NEEDED_SB)); - PyDict_SetItemString(d,"LB_ALWAYS_SB", SWIG_FromInt((int)wxLB_ALWAYS_SB)); - PyDict_SetItemString(d,"LB_SORT", SWIG_FromInt((int)wxLB_SORT)); - PyDict_SetItemString(d,"LB_SINGLE", SWIG_FromInt((int)wxLB_SINGLE)); - PyDict_SetItemString(d,"LB_MULTIPLE", SWIG_FromInt((int)wxLB_MULTIPLE)); - PyDict_SetItemString(d,"LB_EXTENDED", SWIG_FromInt((int)wxLB_EXTENDED)); - PyDict_SetItemString(d,"LB_OWNERDRAW", SWIG_FromInt((int)wxLB_OWNERDRAW)); - PyDict_SetItemString(d,"LB_HSCROLL", SWIG_FromInt((int)wxLB_HSCROLL)); - PyDict_SetItemString(d,"PROCESS_ENTER", SWIG_FromInt((int)wxPROCESS_ENTER)); - PyDict_SetItemString(d,"PASSWORD", SWIG_FromInt((int)wxPASSWORD)); - PyDict_SetItemString(d,"CB_SIMPLE", SWIG_FromInt((int)wxCB_SIMPLE)); - PyDict_SetItemString(d,"CB_DROPDOWN", SWIG_FromInt((int)wxCB_DROPDOWN)); - PyDict_SetItemString(d,"CB_SORT", SWIG_FromInt((int)wxCB_SORT)); - PyDict_SetItemString(d,"CB_READONLY", SWIG_FromInt((int)wxCB_READONLY)); - PyDict_SetItemString(d,"RA_HORIZONTAL", SWIG_FromInt((int)wxRA_HORIZONTAL)); - PyDict_SetItemString(d,"RA_VERTICAL", SWIG_FromInt((int)wxRA_VERTICAL)); - PyDict_SetItemString(d,"RA_SPECIFY_ROWS", SWIG_FromInt((int)wxRA_SPECIFY_ROWS)); - PyDict_SetItemString(d,"RA_SPECIFY_COLS", SWIG_FromInt((int)wxRA_SPECIFY_COLS)); - PyDict_SetItemString(d,"RB_GROUP", SWIG_FromInt((int)wxRB_GROUP)); - PyDict_SetItemString(d,"RB_SINGLE", SWIG_FromInt((int)wxRB_SINGLE)); - PyDict_SetItemString(d,"SL_HORIZONTAL", SWIG_FromInt((int)wxSL_HORIZONTAL)); - PyDict_SetItemString(d,"SL_VERTICAL", SWIG_FromInt((int)wxSL_VERTICAL)); - PyDict_SetItemString(d,"SL_AUTOTICKS", SWIG_FromInt((int)wxSL_AUTOTICKS)); - PyDict_SetItemString(d,"SL_LABELS", SWIG_FromInt((int)wxSL_LABELS)); - PyDict_SetItemString(d,"SL_LEFT", SWIG_FromInt((int)wxSL_LEFT)); - PyDict_SetItemString(d,"SL_TOP", SWIG_FromInt((int)wxSL_TOP)); - PyDict_SetItemString(d,"SL_RIGHT", SWIG_FromInt((int)wxSL_RIGHT)); - PyDict_SetItemString(d,"SL_BOTTOM", SWIG_FromInt((int)wxSL_BOTTOM)); - PyDict_SetItemString(d,"SL_BOTH", SWIG_FromInt((int)wxSL_BOTH)); - PyDict_SetItemString(d,"SL_SELRANGE", SWIG_FromInt((int)wxSL_SELRANGE)); - PyDict_SetItemString(d,"SB_HORIZONTAL", SWIG_FromInt((int)wxSB_HORIZONTAL)); - PyDict_SetItemString(d,"SB_VERTICAL", SWIG_FromInt((int)wxSB_VERTICAL)); - PyDict_SetItemString(d,"ST_SIZEGRIP", SWIG_FromInt((int)wxST_SIZEGRIP)); - PyDict_SetItemString(d,"ST_NO_AUTORESIZE", SWIG_FromInt((int)wxST_NO_AUTORESIZE)); - PyDict_SetItemString(d,"FLOOD_SURFACE", SWIG_FromInt((int)wxFLOOD_SURFACE)); - PyDict_SetItemString(d,"FLOOD_BORDER", SWIG_FromInt((int)wxFLOOD_BORDER)); - PyDict_SetItemString(d,"ODDEVEN_RULE", SWIG_FromInt((int)wxODDEVEN_RULE)); - PyDict_SetItemString(d,"WINDING_RULE", SWIG_FromInt((int)wxWINDING_RULE)); - PyDict_SetItemString(d,"TOOL_TOP", SWIG_FromInt((int)wxTOOL_TOP)); - PyDict_SetItemString(d,"TOOL_BOTTOM", SWIG_FromInt((int)wxTOOL_BOTTOM)); - PyDict_SetItemString(d,"TOOL_LEFT", SWIG_FromInt((int)wxTOOL_LEFT)); - PyDict_SetItemString(d,"TOOL_RIGHT", SWIG_FromInt((int)wxTOOL_RIGHT)); - PyDict_SetItemString(d,"OK", SWIG_FromInt((int)wxOK)); - PyDict_SetItemString(d,"YES_NO", SWIG_FromInt((int)wxYES_NO)); - PyDict_SetItemString(d,"CANCEL", SWIG_FromInt((int)wxCANCEL)); - PyDict_SetItemString(d,"YES", SWIG_FromInt((int)wxYES)); - PyDict_SetItemString(d,"NO", SWIG_FromInt((int)wxNO)); - PyDict_SetItemString(d,"NO_DEFAULT", SWIG_FromInt((int)wxNO_DEFAULT)); - PyDict_SetItemString(d,"YES_DEFAULT", SWIG_FromInt((int)wxYES_DEFAULT)); - PyDict_SetItemString(d,"ICON_EXCLAMATION", SWIG_FromInt((int)wxICON_EXCLAMATION)); - PyDict_SetItemString(d,"ICON_HAND", SWIG_FromInt((int)wxICON_HAND)); - PyDict_SetItemString(d,"ICON_QUESTION", SWIG_FromInt((int)wxICON_QUESTION)); - PyDict_SetItemString(d,"ICON_INFORMATION", SWIG_FromInt((int)wxICON_INFORMATION)); - PyDict_SetItemString(d,"ICON_STOP", SWIG_FromInt((int)wxICON_STOP)); - PyDict_SetItemString(d,"ICON_ASTERISK", SWIG_FromInt((int)wxICON_ASTERISK)); - PyDict_SetItemString(d,"ICON_MASK", SWIG_FromInt((int)wxICON_MASK)); - PyDict_SetItemString(d,"ICON_WARNING", SWIG_FromInt((int)wxICON_WARNING)); - PyDict_SetItemString(d,"ICON_ERROR", SWIG_FromInt((int)wxICON_ERROR)); - PyDict_SetItemString(d,"FORWARD", SWIG_FromInt((int)wxFORWARD)); - PyDict_SetItemString(d,"BACKWARD", SWIG_FromInt((int)wxBACKWARD)); - PyDict_SetItemString(d,"RESET", SWIG_FromInt((int)wxRESET)); - PyDict_SetItemString(d,"HELP", SWIG_FromInt((int)wxHELP)); - PyDict_SetItemString(d,"MORE", SWIG_FromInt((int)wxMORE)); - PyDict_SetItemString(d,"SETUP", SWIG_FromInt((int)wxSETUP)); - PyDict_SetItemString(d,"SIZE_AUTO_WIDTH", SWIG_FromInt((int)wxSIZE_AUTO_WIDTH)); - PyDict_SetItemString(d,"SIZE_AUTO_HEIGHT", SWIG_FromInt((int)wxSIZE_AUTO_HEIGHT)); - PyDict_SetItemString(d,"SIZE_AUTO", SWIG_FromInt((int)wxSIZE_AUTO)); - PyDict_SetItemString(d,"SIZE_USE_EXISTING", SWIG_FromInt((int)wxSIZE_USE_EXISTING)); - PyDict_SetItemString(d,"SIZE_ALLOW_MINUS_ONE", SWIG_FromInt((int)wxSIZE_ALLOW_MINUS_ONE)); - PyDict_SetItemString(d,"PORTRAIT", SWIG_FromInt((int)wxPORTRAIT)); - PyDict_SetItemString(d,"LANDSCAPE", SWIG_FromInt((int)wxLANDSCAPE)); - PyDict_SetItemString(d,"PRINT_QUALITY_HIGH", SWIG_FromInt((int)wxPRINT_QUALITY_HIGH)); - PyDict_SetItemString(d,"PRINT_QUALITY_MEDIUM", SWIG_FromInt((int)wxPRINT_QUALITY_MEDIUM)); - PyDict_SetItemString(d,"PRINT_QUALITY_LOW", SWIG_FromInt((int)wxPRINT_QUALITY_LOW)); - PyDict_SetItemString(d,"PRINT_QUALITY_DRAFT", SWIG_FromInt((int)wxPRINT_QUALITY_DRAFT)); - PyDict_SetItemString(d,"ID_ANY", SWIG_FromInt((int)wxID_ANY)); - PyDict_SetItemString(d,"ID_SEPARATOR", SWIG_FromInt((int)wxID_SEPARATOR)); - PyDict_SetItemString(d,"ID_LOWEST", SWIG_FromInt((int)wxID_LOWEST)); - PyDict_SetItemString(d,"ID_OPEN", SWIG_FromInt((int)wxID_OPEN)); - PyDict_SetItemString(d,"ID_CLOSE", SWIG_FromInt((int)wxID_CLOSE)); - PyDict_SetItemString(d,"ID_NEW", SWIG_FromInt((int)wxID_NEW)); - PyDict_SetItemString(d,"ID_SAVE", SWIG_FromInt((int)wxID_SAVE)); - PyDict_SetItemString(d,"ID_SAVEAS", SWIG_FromInt((int)wxID_SAVEAS)); - PyDict_SetItemString(d,"ID_REVERT", SWIG_FromInt((int)wxID_REVERT)); - PyDict_SetItemString(d,"ID_EXIT", SWIG_FromInt((int)wxID_EXIT)); - PyDict_SetItemString(d,"ID_UNDO", SWIG_FromInt((int)wxID_UNDO)); - PyDict_SetItemString(d,"ID_REDO", SWIG_FromInt((int)wxID_REDO)); - PyDict_SetItemString(d,"ID_HELP", SWIG_FromInt((int)wxID_HELP)); - PyDict_SetItemString(d,"ID_PRINT", SWIG_FromInt((int)wxID_PRINT)); - PyDict_SetItemString(d,"ID_PRINT_SETUP", SWIG_FromInt((int)wxID_PRINT_SETUP)); - PyDict_SetItemString(d,"ID_PREVIEW", SWIG_FromInt((int)wxID_PREVIEW)); - PyDict_SetItemString(d,"ID_ABOUT", SWIG_FromInt((int)wxID_ABOUT)); - PyDict_SetItemString(d,"ID_HELP_CONTENTS", SWIG_FromInt((int)wxID_HELP_CONTENTS)); - PyDict_SetItemString(d,"ID_HELP_COMMANDS", SWIG_FromInt((int)wxID_HELP_COMMANDS)); - PyDict_SetItemString(d,"ID_HELP_PROCEDURES", SWIG_FromInt((int)wxID_HELP_PROCEDURES)); - PyDict_SetItemString(d,"ID_HELP_CONTEXT", SWIG_FromInt((int)wxID_HELP_CONTEXT)); - PyDict_SetItemString(d,"ID_CLOSE_ALL", SWIG_FromInt((int)wxID_CLOSE_ALL)); - PyDict_SetItemString(d,"ID_PREFERENCES", SWIG_FromInt((int)wxID_PREFERENCES)); - PyDict_SetItemString(d,"ID_CUT", SWIG_FromInt((int)wxID_CUT)); - PyDict_SetItemString(d,"ID_COPY", SWIG_FromInt((int)wxID_COPY)); - PyDict_SetItemString(d,"ID_PASTE", SWIG_FromInt((int)wxID_PASTE)); - PyDict_SetItemString(d,"ID_CLEAR", SWIG_FromInt((int)wxID_CLEAR)); - PyDict_SetItemString(d,"ID_FIND", SWIG_FromInt((int)wxID_FIND)); - PyDict_SetItemString(d,"ID_DUPLICATE", SWIG_FromInt((int)wxID_DUPLICATE)); - PyDict_SetItemString(d,"ID_SELECTALL", SWIG_FromInt((int)wxID_SELECTALL)); - PyDict_SetItemString(d,"ID_DELETE", SWIG_FromInt((int)wxID_DELETE)); - PyDict_SetItemString(d,"ID_REPLACE", SWIG_FromInt((int)wxID_REPLACE)); - PyDict_SetItemString(d,"ID_REPLACE_ALL", SWIG_FromInt((int)wxID_REPLACE_ALL)); - PyDict_SetItemString(d,"ID_PROPERTIES", SWIG_FromInt((int)wxID_PROPERTIES)); - PyDict_SetItemString(d,"ID_VIEW_DETAILS", SWIG_FromInt((int)wxID_VIEW_DETAILS)); - PyDict_SetItemString(d,"ID_VIEW_LARGEICONS", SWIG_FromInt((int)wxID_VIEW_LARGEICONS)); - PyDict_SetItemString(d,"ID_VIEW_SMALLICONS", SWIG_FromInt((int)wxID_VIEW_SMALLICONS)); - PyDict_SetItemString(d,"ID_VIEW_LIST", SWIG_FromInt((int)wxID_VIEW_LIST)); - PyDict_SetItemString(d,"ID_VIEW_SORTDATE", SWIG_FromInt((int)wxID_VIEW_SORTDATE)); - PyDict_SetItemString(d,"ID_VIEW_SORTNAME", SWIG_FromInt((int)wxID_VIEW_SORTNAME)); - PyDict_SetItemString(d,"ID_VIEW_SORTSIZE", SWIG_FromInt((int)wxID_VIEW_SORTSIZE)); - PyDict_SetItemString(d,"ID_VIEW_SORTTYPE", SWIG_FromInt((int)wxID_VIEW_SORTTYPE)); - PyDict_SetItemString(d,"ID_FILE1", SWIG_FromInt((int)wxID_FILE1)); - PyDict_SetItemString(d,"ID_FILE2", SWIG_FromInt((int)wxID_FILE2)); - PyDict_SetItemString(d,"ID_FILE3", SWIG_FromInt((int)wxID_FILE3)); - PyDict_SetItemString(d,"ID_FILE4", SWIG_FromInt((int)wxID_FILE4)); - PyDict_SetItemString(d,"ID_FILE5", SWIG_FromInt((int)wxID_FILE5)); - PyDict_SetItemString(d,"ID_FILE6", SWIG_FromInt((int)wxID_FILE6)); - PyDict_SetItemString(d,"ID_FILE7", SWIG_FromInt((int)wxID_FILE7)); - PyDict_SetItemString(d,"ID_FILE8", SWIG_FromInt((int)wxID_FILE8)); - PyDict_SetItemString(d,"ID_FILE9", SWIG_FromInt((int)wxID_FILE9)); - PyDict_SetItemString(d,"ID_OK", SWIG_FromInt((int)wxID_OK)); - PyDict_SetItemString(d,"ID_CANCEL", SWIG_FromInt((int)wxID_CANCEL)); - PyDict_SetItemString(d,"ID_APPLY", SWIG_FromInt((int)wxID_APPLY)); - PyDict_SetItemString(d,"ID_YES", SWIG_FromInt((int)wxID_YES)); - PyDict_SetItemString(d,"ID_NO", SWIG_FromInt((int)wxID_NO)); - PyDict_SetItemString(d,"ID_STATIC", SWIG_FromInt((int)wxID_STATIC)); - PyDict_SetItemString(d,"ID_FORWARD", SWIG_FromInt((int)wxID_FORWARD)); - PyDict_SetItemString(d,"ID_BACKWARD", SWIG_FromInt((int)wxID_BACKWARD)); - PyDict_SetItemString(d,"ID_DEFAULT", SWIG_FromInt((int)wxID_DEFAULT)); - PyDict_SetItemString(d,"ID_MORE", SWIG_FromInt((int)wxID_MORE)); - PyDict_SetItemString(d,"ID_SETUP", SWIG_FromInt((int)wxID_SETUP)); - PyDict_SetItemString(d,"ID_RESET", SWIG_FromInt((int)wxID_RESET)); - PyDict_SetItemString(d,"ID_CONTEXT_HELP", SWIG_FromInt((int)wxID_CONTEXT_HELP)); - PyDict_SetItemString(d,"ID_YESTOALL", SWIG_FromInt((int)wxID_YESTOALL)); - PyDict_SetItemString(d,"ID_NOTOALL", SWIG_FromInt((int)wxID_NOTOALL)); - PyDict_SetItemString(d,"ID_ABORT", SWIG_FromInt((int)wxID_ABORT)); - PyDict_SetItemString(d,"ID_RETRY", SWIG_FromInt((int)wxID_RETRY)); - PyDict_SetItemString(d,"ID_IGNORE", SWIG_FromInt((int)wxID_IGNORE)); - PyDict_SetItemString(d,"ID_HIGHEST", SWIG_FromInt((int)wxID_HIGHEST)); - PyDict_SetItemString(d,"OPEN", SWIG_FromInt((int)wxOPEN)); - PyDict_SetItemString(d,"SAVE", SWIG_FromInt((int)wxSAVE)); - PyDict_SetItemString(d,"HIDE_READONLY", SWIG_FromInt((int)wxHIDE_READONLY)); - PyDict_SetItemString(d,"OVERWRITE_PROMPT", SWIG_FromInt((int)wxOVERWRITE_PROMPT)); - PyDict_SetItemString(d,"FILE_MUST_EXIST", SWIG_FromInt((int)wxFILE_MUST_EXIST)); - PyDict_SetItemString(d,"MULTIPLE", SWIG_FromInt((int)wxMULTIPLE)); - PyDict_SetItemString(d,"CHANGE_DIR", SWIG_FromInt((int)wxCHANGE_DIR)); - PyDict_SetItemString(d,"ACCEL_ALT", SWIG_FromInt((int)wxACCEL_ALT)); - PyDict_SetItemString(d,"ACCEL_CTRL", SWIG_FromInt((int)wxACCEL_CTRL)); - PyDict_SetItemString(d,"ACCEL_SHIFT", SWIG_FromInt((int)wxACCEL_SHIFT)); - PyDict_SetItemString(d,"ACCEL_NORMAL", SWIG_FromInt((int)wxACCEL_NORMAL)); - PyDict_SetItemString(d,"PD_AUTO_HIDE", SWIG_FromInt((int)wxPD_AUTO_HIDE)); - PyDict_SetItemString(d,"PD_APP_MODAL", SWIG_FromInt((int)wxPD_APP_MODAL)); - PyDict_SetItemString(d,"PD_CAN_ABORT", SWIG_FromInt((int)wxPD_CAN_ABORT)); - PyDict_SetItemString(d,"PD_ELAPSED_TIME", SWIG_FromInt((int)wxPD_ELAPSED_TIME)); - PyDict_SetItemString(d,"PD_ESTIMATED_TIME", SWIG_FromInt((int)wxPD_ESTIMATED_TIME)); - PyDict_SetItemString(d,"PD_REMAINING_TIME", SWIG_FromInt((int)wxPD_REMAINING_TIME)); - PyDict_SetItemString(d,"DD_NEW_DIR_BUTTON", SWIG_FromInt((int)wxDD_NEW_DIR_BUTTON)); - PyDict_SetItemString(d,"DD_DEFAULT_STYLE", SWIG_FromInt((int)wxDD_DEFAULT_STYLE)); - PyDict_SetItemString(d,"MENU_TEAROFF", SWIG_FromInt((int)wxMENU_TEAROFF)); - PyDict_SetItemString(d,"MB_DOCKABLE", SWIG_FromInt((int)wxMB_DOCKABLE)); - PyDict_SetItemString(d,"NO_FULL_REPAINT_ON_RESIZE", SWIG_FromInt((int)wxNO_FULL_REPAINT_ON_RESIZE)); - PyDict_SetItemString(d,"FULL_REPAINT_ON_RESIZE", SWIG_FromInt((int)wxFULL_REPAINT_ON_RESIZE)); - PyDict_SetItemString(d,"LI_HORIZONTAL", SWIG_FromInt((int)wxLI_HORIZONTAL)); - PyDict_SetItemString(d,"LI_VERTICAL", SWIG_FromInt((int)wxLI_VERTICAL)); - PyDict_SetItemString(d,"WS_EX_VALIDATE_RECURSIVELY", SWIG_FromInt((int)wxWS_EX_VALIDATE_RECURSIVELY)); - PyDict_SetItemString(d,"WS_EX_BLOCK_EVENTS", SWIG_FromInt((int)wxWS_EX_BLOCK_EVENTS)); - PyDict_SetItemString(d,"WS_EX_TRANSIENT", SWIG_FromInt((int)wxWS_EX_TRANSIENT)); - PyDict_SetItemString(d,"WS_EX_THEMED_BACKGROUND", SWIG_FromInt((int)wxWS_EX_THEMED_BACKGROUND)); - PyDict_SetItemString(d,"WS_EX_PROCESS_IDLE", SWIG_FromInt((int)wxWS_EX_PROCESS_IDLE)); - PyDict_SetItemString(d,"WS_EX_PROCESS_UI_UPDATES", SWIG_FromInt((int)wxWS_EX_PROCESS_UI_UPDATES)); - PyDict_SetItemString(d,"MM_TEXT", SWIG_FromInt((int)wxMM_TEXT)); - PyDict_SetItemString(d,"MM_LOMETRIC", SWIG_FromInt((int)wxMM_LOMETRIC)); - PyDict_SetItemString(d,"MM_HIMETRIC", SWIG_FromInt((int)wxMM_HIMETRIC)); - PyDict_SetItemString(d,"MM_LOENGLISH", SWIG_FromInt((int)wxMM_LOENGLISH)); - PyDict_SetItemString(d,"MM_HIENGLISH", SWIG_FromInt((int)wxMM_HIENGLISH)); - PyDict_SetItemString(d,"MM_TWIPS", SWIG_FromInt((int)wxMM_TWIPS)); - PyDict_SetItemString(d,"MM_ISOTROPIC", SWIG_FromInt((int)wxMM_ISOTROPIC)); - PyDict_SetItemString(d,"MM_ANISOTROPIC", SWIG_FromInt((int)wxMM_ANISOTROPIC)); - PyDict_SetItemString(d,"MM_POINTS", SWIG_FromInt((int)wxMM_POINTS)); - PyDict_SetItemString(d,"MM_METRIC", SWIG_FromInt((int)wxMM_METRIC)); - PyDict_SetItemString(d,"CENTRE", SWIG_FromInt((int)wxCENTRE)); - PyDict_SetItemString(d,"CENTER", SWIG_FromInt((int)wxCENTER)); - PyDict_SetItemString(d,"HORIZONTAL", SWIG_FromInt((int)wxHORIZONTAL)); - PyDict_SetItemString(d,"VERTICAL", SWIG_FromInt((int)wxVERTICAL)); - PyDict_SetItemString(d,"BOTH", SWIG_FromInt((int)wxBOTH)); - PyDict_SetItemString(d,"LEFT", SWIG_FromInt((int)wxLEFT)); - PyDict_SetItemString(d,"RIGHT", SWIG_FromInt((int)wxRIGHT)); - PyDict_SetItemString(d,"UP", SWIG_FromInt((int)wxUP)); - PyDict_SetItemString(d,"DOWN", SWIG_FromInt((int)wxDOWN)); - PyDict_SetItemString(d,"TOP", SWIG_FromInt((int)wxTOP)); - PyDict_SetItemString(d,"BOTTOM", SWIG_FromInt((int)wxBOTTOM)); - PyDict_SetItemString(d,"NORTH", SWIG_FromInt((int)wxNORTH)); - PyDict_SetItemString(d,"SOUTH", SWIG_FromInt((int)wxSOUTH)); - PyDict_SetItemString(d,"WEST", SWIG_FromInt((int)wxWEST)); - PyDict_SetItemString(d,"EAST", SWIG_FromInt((int)wxEAST)); - PyDict_SetItemString(d,"ALL", SWIG_FromInt((int)wxALL)); - PyDict_SetItemString(d,"ALIGN_NOT", SWIG_FromInt((int)wxALIGN_NOT)); - PyDict_SetItemString(d,"ALIGN_CENTER_HORIZONTAL", SWIG_FromInt((int)wxALIGN_CENTER_HORIZONTAL)); - PyDict_SetItemString(d,"ALIGN_CENTRE_HORIZONTAL", SWIG_FromInt((int)wxALIGN_CENTRE_HORIZONTAL)); - PyDict_SetItemString(d,"ALIGN_LEFT", SWIG_FromInt((int)wxALIGN_LEFT)); - PyDict_SetItemString(d,"ALIGN_TOP", SWIG_FromInt((int)wxALIGN_TOP)); - PyDict_SetItemString(d,"ALIGN_RIGHT", SWIG_FromInt((int)wxALIGN_RIGHT)); - PyDict_SetItemString(d,"ALIGN_BOTTOM", SWIG_FromInt((int)wxALIGN_BOTTOM)); - PyDict_SetItemString(d,"ALIGN_CENTER_VERTICAL", SWIG_FromInt((int)wxALIGN_CENTER_VERTICAL)); - PyDict_SetItemString(d,"ALIGN_CENTRE_VERTICAL", SWIG_FromInt((int)wxALIGN_CENTRE_VERTICAL)); - PyDict_SetItemString(d,"ALIGN_CENTER", SWIG_FromInt((int)wxALIGN_CENTER)); - PyDict_SetItemString(d,"ALIGN_CENTRE", SWIG_FromInt((int)wxALIGN_CENTRE)); - PyDict_SetItemString(d,"ALIGN_MASK", SWIG_FromInt((int)wxALIGN_MASK)); - PyDict_SetItemString(d,"STRETCH_NOT", SWIG_FromInt((int)wxSTRETCH_NOT)); - PyDict_SetItemString(d,"SHRINK", SWIG_FromInt((int)wxSHRINK)); - PyDict_SetItemString(d,"GROW", SWIG_FromInt((int)wxGROW)); - PyDict_SetItemString(d,"EXPAND", SWIG_FromInt((int)wxEXPAND)); - PyDict_SetItemString(d,"SHAPED", SWIG_FromInt((int)wxSHAPED)); - PyDict_SetItemString(d,"FIXED_MINSIZE", SWIG_FromInt((int)wxFIXED_MINSIZE)); - PyDict_SetItemString(d,"TILE", SWIG_FromInt((int)wxTILE)); - PyDict_SetItemString(d,"ADJUST_MINSIZE", SWIG_FromInt((int)wxADJUST_MINSIZE)); - PyDict_SetItemString(d,"BORDER_DEFAULT", SWIG_FromInt((int)wxBORDER_DEFAULT)); - PyDict_SetItemString(d,"BORDER_NONE", SWIG_FromInt((int)wxBORDER_NONE)); - PyDict_SetItemString(d,"BORDER_STATIC", SWIG_FromInt((int)wxBORDER_STATIC)); - PyDict_SetItemString(d,"BORDER_SIMPLE", SWIG_FromInt((int)wxBORDER_SIMPLE)); - PyDict_SetItemString(d,"BORDER_RAISED", SWIG_FromInt((int)wxBORDER_RAISED)); - PyDict_SetItemString(d,"BORDER_SUNKEN", SWIG_FromInt((int)wxBORDER_SUNKEN)); - PyDict_SetItemString(d,"BORDER_DOUBLE", SWIG_FromInt((int)wxBORDER_DOUBLE)); - PyDict_SetItemString(d,"BORDER_MASK", SWIG_FromInt((int)wxBORDER_MASK)); - PyDict_SetItemString(d,"DEFAULT", SWIG_FromInt((int)wxDEFAULT)); - PyDict_SetItemString(d,"DECORATIVE", SWIG_FromInt((int)wxDECORATIVE)); - PyDict_SetItemString(d,"ROMAN", SWIG_FromInt((int)wxROMAN)); - PyDict_SetItemString(d,"SCRIPT", SWIG_FromInt((int)wxSCRIPT)); - PyDict_SetItemString(d,"SWISS", SWIG_FromInt((int)wxSWISS)); - PyDict_SetItemString(d,"MODERN", SWIG_FromInt((int)wxMODERN)); - PyDict_SetItemString(d,"TELETYPE", SWIG_FromInt((int)wxTELETYPE)); - PyDict_SetItemString(d,"VARIABLE", SWIG_FromInt((int)wxVARIABLE)); - PyDict_SetItemString(d,"FIXED", SWIG_FromInt((int)wxFIXED)); - PyDict_SetItemString(d,"NORMAL", SWIG_FromInt((int)wxNORMAL)); - PyDict_SetItemString(d,"LIGHT", SWIG_FromInt((int)wxLIGHT)); - PyDict_SetItemString(d,"BOLD", SWIG_FromInt((int)wxBOLD)); - PyDict_SetItemString(d,"ITALIC", SWIG_FromInt((int)wxITALIC)); - PyDict_SetItemString(d,"SLANT", SWIG_FromInt((int)wxSLANT)); - PyDict_SetItemString(d,"SOLID", SWIG_FromInt((int)wxSOLID)); - PyDict_SetItemString(d,"DOT", SWIG_FromInt((int)wxDOT)); - PyDict_SetItemString(d,"LONG_DASH", SWIG_FromInt((int)wxLONG_DASH)); - PyDict_SetItemString(d,"SHORT_DASH", SWIG_FromInt((int)wxSHORT_DASH)); - PyDict_SetItemString(d,"DOT_DASH", SWIG_FromInt((int)wxDOT_DASH)); - PyDict_SetItemString(d,"USER_DASH", SWIG_FromInt((int)wxUSER_DASH)); - PyDict_SetItemString(d,"TRANSPARENT", SWIG_FromInt((int)wxTRANSPARENT)); - PyDict_SetItemString(d,"STIPPLE", SWIG_FromInt((int)wxSTIPPLE)); - PyDict_SetItemString(d,"BDIAGONAL_HATCH", SWIG_FromInt((int)wxBDIAGONAL_HATCH)); - PyDict_SetItemString(d,"CROSSDIAG_HATCH", SWIG_FromInt((int)wxCROSSDIAG_HATCH)); - PyDict_SetItemString(d,"FDIAGONAL_HATCH", SWIG_FromInt((int)wxFDIAGONAL_HATCH)); - PyDict_SetItemString(d,"CROSS_HATCH", SWIG_FromInt((int)wxCROSS_HATCH)); - PyDict_SetItemString(d,"HORIZONTAL_HATCH", SWIG_FromInt((int)wxHORIZONTAL_HATCH)); - PyDict_SetItemString(d,"VERTICAL_HATCH", SWIG_FromInt((int)wxVERTICAL_HATCH)); - PyDict_SetItemString(d,"JOIN_BEVEL", SWIG_FromInt((int)wxJOIN_BEVEL)); - PyDict_SetItemString(d,"JOIN_MITER", SWIG_FromInt((int)wxJOIN_MITER)); - PyDict_SetItemString(d,"JOIN_ROUND", SWIG_FromInt((int)wxJOIN_ROUND)); - PyDict_SetItemString(d,"CAP_ROUND", SWIG_FromInt((int)wxCAP_ROUND)); - PyDict_SetItemString(d,"CAP_PROJECTING", SWIG_FromInt((int)wxCAP_PROJECTING)); - PyDict_SetItemString(d,"CAP_BUTT", SWIG_FromInt((int)wxCAP_BUTT)); - PyDict_SetItemString(d,"CLEAR", SWIG_FromInt((int)wxCLEAR)); - PyDict_SetItemString(d,"XOR", SWIG_FromInt((int)wxXOR)); - PyDict_SetItemString(d,"INVERT", SWIG_FromInt((int)wxINVERT)); - PyDict_SetItemString(d,"OR_REVERSE", SWIG_FromInt((int)wxOR_REVERSE)); - PyDict_SetItemString(d,"AND_REVERSE", SWIG_FromInt((int)wxAND_REVERSE)); - PyDict_SetItemString(d,"COPY", SWIG_FromInt((int)wxCOPY)); - PyDict_SetItemString(d,"AND", SWIG_FromInt((int)wxAND)); - PyDict_SetItemString(d,"AND_INVERT", SWIG_FromInt((int)wxAND_INVERT)); - PyDict_SetItemString(d,"NO_OP", SWIG_FromInt((int)wxNO_OP)); - PyDict_SetItemString(d,"NOR", SWIG_FromInt((int)wxNOR)); - PyDict_SetItemString(d,"EQUIV", SWIG_FromInt((int)wxEQUIV)); - PyDict_SetItemString(d,"SRC_INVERT", SWIG_FromInt((int)wxSRC_INVERT)); - PyDict_SetItemString(d,"OR_INVERT", SWIG_FromInt((int)wxOR_INVERT)); - PyDict_SetItemString(d,"NAND", SWIG_FromInt((int)wxNAND)); - PyDict_SetItemString(d,"OR", SWIG_FromInt((int)wxOR)); - PyDict_SetItemString(d,"SET", SWIG_FromInt((int)wxSET)); - PyDict_SetItemString(d,"WXK_BACK", SWIG_FromInt((int)WXK_BACK)); - PyDict_SetItemString(d,"WXK_TAB", SWIG_FromInt((int)WXK_TAB)); - PyDict_SetItemString(d,"WXK_RETURN", SWIG_FromInt((int)WXK_RETURN)); - PyDict_SetItemString(d,"WXK_ESCAPE", SWIG_FromInt((int)WXK_ESCAPE)); - PyDict_SetItemString(d,"WXK_SPACE", SWIG_FromInt((int)WXK_SPACE)); - PyDict_SetItemString(d,"WXK_DELETE", SWIG_FromInt((int)WXK_DELETE)); - PyDict_SetItemString(d,"WXK_START", SWIG_FromInt((int)WXK_START)); - PyDict_SetItemString(d,"WXK_LBUTTON", SWIG_FromInt((int)WXK_LBUTTON)); - PyDict_SetItemString(d,"WXK_RBUTTON", SWIG_FromInt((int)WXK_RBUTTON)); - PyDict_SetItemString(d,"WXK_CANCEL", SWIG_FromInt((int)WXK_CANCEL)); - PyDict_SetItemString(d,"WXK_MBUTTON", SWIG_FromInt((int)WXK_MBUTTON)); - PyDict_SetItemString(d,"WXK_CLEAR", SWIG_FromInt((int)WXK_CLEAR)); - PyDict_SetItemString(d,"WXK_SHIFT", SWIG_FromInt((int)WXK_SHIFT)); - PyDict_SetItemString(d,"WXK_ALT", SWIG_FromInt((int)WXK_ALT)); - PyDict_SetItemString(d,"WXK_CONTROL", SWIG_FromInt((int)WXK_CONTROL)); - PyDict_SetItemString(d,"WXK_MENU", SWIG_FromInt((int)WXK_MENU)); - PyDict_SetItemString(d,"WXK_PAUSE", SWIG_FromInt((int)WXK_PAUSE)); - PyDict_SetItemString(d,"WXK_CAPITAL", SWIG_FromInt((int)WXK_CAPITAL)); - PyDict_SetItemString(d,"WXK_PRIOR", SWIG_FromInt((int)WXK_PRIOR)); - PyDict_SetItemString(d,"WXK_NEXT", SWIG_FromInt((int)WXK_NEXT)); - PyDict_SetItemString(d,"WXK_END", SWIG_FromInt((int)WXK_END)); - PyDict_SetItemString(d,"WXK_HOME", SWIG_FromInt((int)WXK_HOME)); - PyDict_SetItemString(d,"WXK_LEFT", SWIG_FromInt((int)WXK_LEFT)); - PyDict_SetItemString(d,"WXK_UP", SWIG_FromInt((int)WXK_UP)); - PyDict_SetItemString(d,"WXK_RIGHT", SWIG_FromInt((int)WXK_RIGHT)); - PyDict_SetItemString(d,"WXK_DOWN", SWIG_FromInt((int)WXK_DOWN)); - PyDict_SetItemString(d,"WXK_SELECT", SWIG_FromInt((int)WXK_SELECT)); - PyDict_SetItemString(d,"WXK_PRINT", SWIG_FromInt((int)WXK_PRINT)); - PyDict_SetItemString(d,"WXK_EXECUTE", SWIG_FromInt((int)WXK_EXECUTE)); - PyDict_SetItemString(d,"WXK_SNAPSHOT", SWIG_FromInt((int)WXK_SNAPSHOT)); - PyDict_SetItemString(d,"WXK_INSERT", SWIG_FromInt((int)WXK_INSERT)); - PyDict_SetItemString(d,"WXK_HELP", SWIG_FromInt((int)WXK_HELP)); - PyDict_SetItemString(d,"WXK_NUMPAD0", SWIG_FromInt((int)WXK_NUMPAD0)); - PyDict_SetItemString(d,"WXK_NUMPAD1", SWIG_FromInt((int)WXK_NUMPAD1)); - PyDict_SetItemString(d,"WXK_NUMPAD2", SWIG_FromInt((int)WXK_NUMPAD2)); - PyDict_SetItemString(d,"WXK_NUMPAD3", SWIG_FromInt((int)WXK_NUMPAD3)); - PyDict_SetItemString(d,"WXK_NUMPAD4", SWIG_FromInt((int)WXK_NUMPAD4)); - PyDict_SetItemString(d,"WXK_NUMPAD5", SWIG_FromInt((int)WXK_NUMPAD5)); - PyDict_SetItemString(d,"WXK_NUMPAD6", SWIG_FromInt((int)WXK_NUMPAD6)); - PyDict_SetItemString(d,"WXK_NUMPAD7", SWIG_FromInt((int)WXK_NUMPAD7)); - PyDict_SetItemString(d,"WXK_NUMPAD8", SWIG_FromInt((int)WXK_NUMPAD8)); - PyDict_SetItemString(d,"WXK_NUMPAD9", SWIG_FromInt((int)WXK_NUMPAD9)); - PyDict_SetItemString(d,"WXK_MULTIPLY", SWIG_FromInt((int)WXK_MULTIPLY)); - PyDict_SetItemString(d,"WXK_ADD", SWIG_FromInt((int)WXK_ADD)); - PyDict_SetItemString(d,"WXK_SEPARATOR", SWIG_FromInt((int)WXK_SEPARATOR)); - PyDict_SetItemString(d,"WXK_SUBTRACT", SWIG_FromInt((int)WXK_SUBTRACT)); - PyDict_SetItemString(d,"WXK_DECIMAL", SWIG_FromInt((int)WXK_DECIMAL)); - PyDict_SetItemString(d,"WXK_DIVIDE", SWIG_FromInt((int)WXK_DIVIDE)); - PyDict_SetItemString(d,"WXK_F1", SWIG_FromInt((int)WXK_F1)); - PyDict_SetItemString(d,"WXK_F2", SWIG_FromInt((int)WXK_F2)); - PyDict_SetItemString(d,"WXK_F3", SWIG_FromInt((int)WXK_F3)); - PyDict_SetItemString(d,"WXK_F4", SWIG_FromInt((int)WXK_F4)); - PyDict_SetItemString(d,"WXK_F5", SWIG_FromInt((int)WXK_F5)); - PyDict_SetItemString(d,"WXK_F6", SWIG_FromInt((int)WXK_F6)); - PyDict_SetItemString(d,"WXK_F7", SWIG_FromInt((int)WXK_F7)); - PyDict_SetItemString(d,"WXK_F8", SWIG_FromInt((int)WXK_F8)); - PyDict_SetItemString(d,"WXK_F9", SWIG_FromInt((int)WXK_F9)); - PyDict_SetItemString(d,"WXK_F10", SWIG_FromInt((int)WXK_F10)); - PyDict_SetItemString(d,"WXK_F11", SWIG_FromInt((int)WXK_F11)); - PyDict_SetItemString(d,"WXK_F12", SWIG_FromInt((int)WXK_F12)); - PyDict_SetItemString(d,"WXK_F13", SWIG_FromInt((int)WXK_F13)); - PyDict_SetItemString(d,"WXK_F14", SWIG_FromInt((int)WXK_F14)); - PyDict_SetItemString(d,"WXK_F15", SWIG_FromInt((int)WXK_F15)); - PyDict_SetItemString(d,"WXK_F16", SWIG_FromInt((int)WXK_F16)); - PyDict_SetItemString(d,"WXK_F17", SWIG_FromInt((int)WXK_F17)); - PyDict_SetItemString(d,"WXK_F18", SWIG_FromInt((int)WXK_F18)); - PyDict_SetItemString(d,"WXK_F19", SWIG_FromInt((int)WXK_F19)); - PyDict_SetItemString(d,"WXK_F20", SWIG_FromInt((int)WXK_F20)); - PyDict_SetItemString(d,"WXK_F21", SWIG_FromInt((int)WXK_F21)); - PyDict_SetItemString(d,"WXK_F22", SWIG_FromInt((int)WXK_F22)); - PyDict_SetItemString(d,"WXK_F23", SWIG_FromInt((int)WXK_F23)); - PyDict_SetItemString(d,"WXK_F24", SWIG_FromInt((int)WXK_F24)); - PyDict_SetItemString(d,"WXK_NUMLOCK", SWIG_FromInt((int)WXK_NUMLOCK)); - PyDict_SetItemString(d,"WXK_SCROLL", SWIG_FromInt((int)WXK_SCROLL)); - PyDict_SetItemString(d,"WXK_PAGEUP", SWIG_FromInt((int)WXK_PAGEUP)); - PyDict_SetItemString(d,"WXK_PAGEDOWN", SWIG_FromInt((int)WXK_PAGEDOWN)); - PyDict_SetItemString(d,"WXK_NUMPAD_SPACE", SWIG_FromInt((int)WXK_NUMPAD_SPACE)); - PyDict_SetItemString(d,"WXK_NUMPAD_TAB", SWIG_FromInt((int)WXK_NUMPAD_TAB)); - PyDict_SetItemString(d,"WXK_NUMPAD_ENTER", SWIG_FromInt((int)WXK_NUMPAD_ENTER)); - PyDict_SetItemString(d,"WXK_NUMPAD_F1", SWIG_FromInt((int)WXK_NUMPAD_F1)); - PyDict_SetItemString(d,"WXK_NUMPAD_F2", SWIG_FromInt((int)WXK_NUMPAD_F2)); - PyDict_SetItemString(d,"WXK_NUMPAD_F3", SWIG_FromInt((int)WXK_NUMPAD_F3)); - PyDict_SetItemString(d,"WXK_NUMPAD_F4", SWIG_FromInt((int)WXK_NUMPAD_F4)); - PyDict_SetItemString(d,"WXK_NUMPAD_HOME", SWIG_FromInt((int)WXK_NUMPAD_HOME)); - PyDict_SetItemString(d,"WXK_NUMPAD_LEFT", SWIG_FromInt((int)WXK_NUMPAD_LEFT)); - PyDict_SetItemString(d,"WXK_NUMPAD_UP", SWIG_FromInt((int)WXK_NUMPAD_UP)); - PyDict_SetItemString(d,"WXK_NUMPAD_RIGHT", SWIG_FromInt((int)WXK_NUMPAD_RIGHT)); - PyDict_SetItemString(d,"WXK_NUMPAD_DOWN", SWIG_FromInt((int)WXK_NUMPAD_DOWN)); - PyDict_SetItemString(d,"WXK_NUMPAD_PRIOR", SWIG_FromInt((int)WXK_NUMPAD_PRIOR)); - PyDict_SetItemString(d,"WXK_NUMPAD_PAGEUP", SWIG_FromInt((int)WXK_NUMPAD_PAGEUP)); - PyDict_SetItemString(d,"WXK_NUMPAD_NEXT", SWIG_FromInt((int)WXK_NUMPAD_NEXT)); - PyDict_SetItemString(d,"WXK_NUMPAD_PAGEDOWN", SWIG_FromInt((int)WXK_NUMPAD_PAGEDOWN)); - PyDict_SetItemString(d,"WXK_NUMPAD_END", SWIG_FromInt((int)WXK_NUMPAD_END)); - PyDict_SetItemString(d,"WXK_NUMPAD_BEGIN", SWIG_FromInt((int)WXK_NUMPAD_BEGIN)); - PyDict_SetItemString(d,"WXK_NUMPAD_INSERT", SWIG_FromInt((int)WXK_NUMPAD_INSERT)); - PyDict_SetItemString(d,"WXK_NUMPAD_DELETE", SWIG_FromInt((int)WXK_NUMPAD_DELETE)); - PyDict_SetItemString(d,"WXK_NUMPAD_EQUAL", SWIG_FromInt((int)WXK_NUMPAD_EQUAL)); - PyDict_SetItemString(d,"WXK_NUMPAD_MULTIPLY", SWIG_FromInt((int)WXK_NUMPAD_MULTIPLY)); - PyDict_SetItemString(d,"WXK_NUMPAD_ADD", SWIG_FromInt((int)WXK_NUMPAD_ADD)); - PyDict_SetItemString(d,"WXK_NUMPAD_SEPARATOR", SWIG_FromInt((int)WXK_NUMPAD_SEPARATOR)); - PyDict_SetItemString(d,"WXK_NUMPAD_SUBTRACT", SWIG_FromInt((int)WXK_NUMPAD_SUBTRACT)); - PyDict_SetItemString(d,"WXK_NUMPAD_DECIMAL", SWIG_FromInt((int)WXK_NUMPAD_DECIMAL)); - PyDict_SetItemString(d,"WXK_NUMPAD_DIVIDE", SWIG_FromInt((int)WXK_NUMPAD_DIVIDE)); - PyDict_SetItemString(d,"WXK_WINDOWS_LEFT", SWIG_FromInt((int)WXK_WINDOWS_LEFT)); - PyDict_SetItemString(d,"WXK_WINDOWS_RIGHT", SWIG_FromInt((int)WXK_WINDOWS_RIGHT)); - PyDict_SetItemString(d,"WXK_WINDOWS_MENU", SWIG_FromInt((int)WXK_WINDOWS_MENU)); - PyDict_SetItemString(d,"PAPER_NONE", SWIG_FromInt((int)wxPAPER_NONE)); - PyDict_SetItemString(d,"PAPER_LETTER", SWIG_FromInt((int)wxPAPER_LETTER)); - PyDict_SetItemString(d,"PAPER_LEGAL", SWIG_FromInt((int)wxPAPER_LEGAL)); - PyDict_SetItemString(d,"PAPER_A4", SWIG_FromInt((int)wxPAPER_A4)); - PyDict_SetItemString(d,"PAPER_CSHEET", SWIG_FromInt((int)wxPAPER_CSHEET)); - PyDict_SetItemString(d,"PAPER_DSHEET", SWIG_FromInt((int)wxPAPER_DSHEET)); - PyDict_SetItemString(d,"PAPER_ESHEET", SWIG_FromInt((int)wxPAPER_ESHEET)); - PyDict_SetItemString(d,"PAPER_LETTERSMALL", SWIG_FromInt((int)wxPAPER_LETTERSMALL)); - PyDict_SetItemString(d,"PAPER_TABLOID", SWIG_FromInt((int)wxPAPER_TABLOID)); - PyDict_SetItemString(d,"PAPER_LEDGER", SWIG_FromInt((int)wxPAPER_LEDGER)); - PyDict_SetItemString(d,"PAPER_STATEMENT", SWIG_FromInt((int)wxPAPER_STATEMENT)); - PyDict_SetItemString(d,"PAPER_EXECUTIVE", SWIG_FromInt((int)wxPAPER_EXECUTIVE)); - PyDict_SetItemString(d,"PAPER_A3", SWIG_FromInt((int)wxPAPER_A3)); - PyDict_SetItemString(d,"PAPER_A4SMALL", SWIG_FromInt((int)wxPAPER_A4SMALL)); - PyDict_SetItemString(d,"PAPER_A5", SWIG_FromInt((int)wxPAPER_A5)); - PyDict_SetItemString(d,"PAPER_B4", SWIG_FromInt((int)wxPAPER_B4)); - PyDict_SetItemString(d,"PAPER_B5", SWIG_FromInt((int)wxPAPER_B5)); - PyDict_SetItemString(d,"PAPER_FOLIO", SWIG_FromInt((int)wxPAPER_FOLIO)); - PyDict_SetItemString(d,"PAPER_QUARTO", SWIG_FromInt((int)wxPAPER_QUARTO)); - PyDict_SetItemString(d,"PAPER_10X14", SWIG_FromInt((int)wxPAPER_10X14)); - PyDict_SetItemString(d,"PAPER_11X17", SWIG_FromInt((int)wxPAPER_11X17)); - PyDict_SetItemString(d,"PAPER_NOTE", SWIG_FromInt((int)wxPAPER_NOTE)); - PyDict_SetItemString(d,"PAPER_ENV_9", SWIG_FromInt((int)wxPAPER_ENV_9)); - PyDict_SetItemString(d,"PAPER_ENV_10", SWIG_FromInt((int)wxPAPER_ENV_10)); - PyDict_SetItemString(d,"PAPER_ENV_11", SWIG_FromInt((int)wxPAPER_ENV_11)); - PyDict_SetItemString(d,"PAPER_ENV_12", SWIG_FromInt((int)wxPAPER_ENV_12)); - PyDict_SetItemString(d,"PAPER_ENV_14", SWIG_FromInt((int)wxPAPER_ENV_14)); - PyDict_SetItemString(d,"PAPER_ENV_DL", SWIG_FromInt((int)wxPAPER_ENV_DL)); - PyDict_SetItemString(d,"PAPER_ENV_C5", SWIG_FromInt((int)wxPAPER_ENV_C5)); - PyDict_SetItemString(d,"PAPER_ENV_C3", SWIG_FromInt((int)wxPAPER_ENV_C3)); - PyDict_SetItemString(d,"PAPER_ENV_C4", SWIG_FromInt((int)wxPAPER_ENV_C4)); - PyDict_SetItemString(d,"PAPER_ENV_C6", SWIG_FromInt((int)wxPAPER_ENV_C6)); - PyDict_SetItemString(d,"PAPER_ENV_C65", SWIG_FromInt((int)wxPAPER_ENV_C65)); - PyDict_SetItemString(d,"PAPER_ENV_B4", SWIG_FromInt((int)wxPAPER_ENV_B4)); - PyDict_SetItemString(d,"PAPER_ENV_B5", SWIG_FromInt((int)wxPAPER_ENV_B5)); - PyDict_SetItemString(d,"PAPER_ENV_B6", SWIG_FromInt((int)wxPAPER_ENV_B6)); - PyDict_SetItemString(d,"PAPER_ENV_ITALY", SWIG_FromInt((int)wxPAPER_ENV_ITALY)); - PyDict_SetItemString(d,"PAPER_ENV_MONARCH", SWIG_FromInt((int)wxPAPER_ENV_MONARCH)); - PyDict_SetItemString(d,"PAPER_ENV_PERSONAL", SWIG_FromInt((int)wxPAPER_ENV_PERSONAL)); - PyDict_SetItemString(d,"PAPER_FANFOLD_US", SWIG_FromInt((int)wxPAPER_FANFOLD_US)); - PyDict_SetItemString(d,"PAPER_FANFOLD_STD_GERMAN", SWIG_FromInt((int)wxPAPER_FANFOLD_STD_GERMAN)); - PyDict_SetItemString(d,"PAPER_FANFOLD_LGL_GERMAN", SWIG_FromInt((int)wxPAPER_FANFOLD_LGL_GERMAN)); - PyDict_SetItemString(d,"PAPER_ISO_B4", SWIG_FromInt((int)wxPAPER_ISO_B4)); - PyDict_SetItemString(d,"PAPER_JAPANESE_POSTCARD", SWIG_FromInt((int)wxPAPER_JAPANESE_POSTCARD)); - PyDict_SetItemString(d,"PAPER_9X11", SWIG_FromInt((int)wxPAPER_9X11)); - PyDict_SetItemString(d,"PAPER_10X11", SWIG_FromInt((int)wxPAPER_10X11)); - PyDict_SetItemString(d,"PAPER_15X11", SWIG_FromInt((int)wxPAPER_15X11)); - PyDict_SetItemString(d,"PAPER_ENV_INVITE", SWIG_FromInt((int)wxPAPER_ENV_INVITE)); - PyDict_SetItemString(d,"PAPER_LETTER_EXTRA", SWIG_FromInt((int)wxPAPER_LETTER_EXTRA)); - PyDict_SetItemString(d,"PAPER_LEGAL_EXTRA", SWIG_FromInt((int)wxPAPER_LEGAL_EXTRA)); - PyDict_SetItemString(d,"PAPER_TABLOID_EXTRA", SWIG_FromInt((int)wxPAPER_TABLOID_EXTRA)); - PyDict_SetItemString(d,"PAPER_A4_EXTRA", SWIG_FromInt((int)wxPAPER_A4_EXTRA)); - PyDict_SetItemString(d,"PAPER_LETTER_TRANSVERSE", SWIG_FromInt((int)wxPAPER_LETTER_TRANSVERSE)); - PyDict_SetItemString(d,"PAPER_A4_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A4_TRANSVERSE)); - PyDict_SetItemString(d,"PAPER_LETTER_EXTRA_TRANSVERSE", SWIG_FromInt((int)wxPAPER_LETTER_EXTRA_TRANSVERSE)); - PyDict_SetItemString(d,"PAPER_A_PLUS", SWIG_FromInt((int)wxPAPER_A_PLUS)); - PyDict_SetItemString(d,"PAPER_B_PLUS", SWIG_FromInt((int)wxPAPER_B_PLUS)); - PyDict_SetItemString(d,"PAPER_LETTER_PLUS", SWIG_FromInt((int)wxPAPER_LETTER_PLUS)); - PyDict_SetItemString(d,"PAPER_A4_PLUS", SWIG_FromInt((int)wxPAPER_A4_PLUS)); - PyDict_SetItemString(d,"PAPER_A5_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A5_TRANSVERSE)); - PyDict_SetItemString(d,"PAPER_B5_TRANSVERSE", SWIG_FromInt((int)wxPAPER_B5_TRANSVERSE)); - PyDict_SetItemString(d,"PAPER_A3_EXTRA", SWIG_FromInt((int)wxPAPER_A3_EXTRA)); - PyDict_SetItemString(d,"PAPER_A5_EXTRA", SWIG_FromInt((int)wxPAPER_A5_EXTRA)); - PyDict_SetItemString(d,"PAPER_B5_EXTRA", SWIG_FromInt((int)wxPAPER_B5_EXTRA)); - PyDict_SetItemString(d,"PAPER_A2", SWIG_FromInt((int)wxPAPER_A2)); - PyDict_SetItemString(d,"PAPER_A3_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A3_TRANSVERSE)); - PyDict_SetItemString(d,"PAPER_A3_EXTRA_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A3_EXTRA_TRANSVERSE)); - PyDict_SetItemString(d,"DUPLEX_SIMPLEX", SWIG_FromInt((int)wxDUPLEX_SIMPLEX)); - PyDict_SetItemString(d,"DUPLEX_HORIZONTAL", SWIG_FromInt((int)wxDUPLEX_HORIZONTAL)); - PyDict_SetItemString(d,"DUPLEX_VERTICAL", SWIG_FromInt((int)wxDUPLEX_VERTICAL)); - PyDict_SetItemString(d,"ITEM_SEPARATOR", SWIG_FromInt((int)wxITEM_SEPARATOR)); - PyDict_SetItemString(d,"ITEM_NORMAL", SWIG_FromInt((int)wxITEM_NORMAL)); - PyDict_SetItemString(d,"ITEM_CHECK", SWIG_FromInt((int)wxITEM_CHECK)); - PyDict_SetItemString(d,"ITEM_RADIO", SWIG_FromInt((int)wxITEM_RADIO)); - PyDict_SetItemString(d,"ITEM_MAX", SWIG_FromInt((int)wxITEM_MAX)); - PyDict_SetItemString(d,"HT_NOWHERE", SWIG_FromInt((int)wxHT_NOWHERE)); - PyDict_SetItemString(d,"HT_SCROLLBAR_FIRST", SWIG_FromInt((int)wxHT_SCROLLBAR_FIRST)); - PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_1", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_LINE_1)); - PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_2", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_LINE_2)); - PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_1", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_PAGE_1)); - PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_2", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_PAGE_2)); - PyDict_SetItemString(d,"HT_SCROLLBAR_THUMB", SWIG_FromInt((int)wxHT_SCROLLBAR_THUMB)); - PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_1", SWIG_FromInt((int)wxHT_SCROLLBAR_BAR_1)); - PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_2", SWIG_FromInt((int)wxHT_SCROLLBAR_BAR_2)); - PyDict_SetItemString(d,"HT_SCROLLBAR_LAST", SWIG_FromInt((int)wxHT_SCROLLBAR_LAST)); - PyDict_SetItemString(d,"HT_WINDOW_OUTSIDE", SWIG_FromInt((int)wxHT_WINDOW_OUTSIDE)); - PyDict_SetItemString(d,"HT_WINDOW_INSIDE", SWIG_FromInt((int)wxHT_WINDOW_INSIDE)); - PyDict_SetItemString(d,"HT_WINDOW_VERT_SCROLLBAR", SWIG_FromInt((int)wxHT_WINDOW_VERT_SCROLLBAR)); - PyDict_SetItemString(d,"HT_WINDOW_HORZ_SCROLLBAR", SWIG_FromInt((int)wxHT_WINDOW_HORZ_SCROLLBAR)); - PyDict_SetItemString(d,"HT_WINDOW_CORNER", SWIG_FromInt((int)wxHT_WINDOW_CORNER)); - PyDict_SetItemString(d,"HT_MAX", SWIG_FromInt((int)wxHT_MAX)); - PyDict_SetItemString(d,"MOD_NONE", SWIG_FromInt((int)wxMOD_NONE)); - PyDict_SetItemString(d,"MOD_ALT", SWIG_FromInt((int)wxMOD_ALT)); - PyDict_SetItemString(d,"MOD_CONTROL", SWIG_FromInt((int)wxMOD_CONTROL)); - PyDict_SetItemString(d,"MOD_SHIFT", SWIG_FromInt((int)wxMOD_SHIFT)); - PyDict_SetItemString(d,"MOD_WIN", SWIG_FromInt((int)wxMOD_WIN)); - PyDict_SetItemString(d,"UPDATE_UI_NONE", SWIG_FromInt((int)wxUPDATE_UI_NONE)); - PyDict_SetItemString(d,"UPDATE_UI_RECURSE", SWIG_FromInt((int)wxUPDATE_UI_RECURSE)); - PyDict_SetItemString(d,"UPDATE_UI_FROMIDLE", SWIG_FromInt((int)wxUPDATE_UI_FROMIDLE)); - PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); - SWIG_addvarlink(SWIG_globals,(char*)"EmptyString",_wrap_EmptyString_get, _wrap_EmptyString_set); - PyDict_SetItemString(d,"BITMAP_TYPE_INVALID", SWIG_FromInt((int)wxBITMAP_TYPE_INVALID)); - PyDict_SetItemString(d,"BITMAP_TYPE_BMP", SWIG_FromInt((int)wxBITMAP_TYPE_BMP)); - PyDict_SetItemString(d,"BITMAP_TYPE_ICO", SWIG_FromInt((int)wxBITMAP_TYPE_ICO)); - PyDict_SetItemString(d,"BITMAP_TYPE_CUR", SWIG_FromInt((int)wxBITMAP_TYPE_CUR)); - PyDict_SetItemString(d,"BITMAP_TYPE_XBM", SWIG_FromInt((int)wxBITMAP_TYPE_XBM)); - PyDict_SetItemString(d,"BITMAP_TYPE_XBM_DATA", SWIG_FromInt((int)wxBITMAP_TYPE_XBM_DATA)); - PyDict_SetItemString(d,"BITMAP_TYPE_XPM", SWIG_FromInt((int)wxBITMAP_TYPE_XPM)); - PyDict_SetItemString(d,"BITMAP_TYPE_XPM_DATA", SWIG_FromInt((int)wxBITMAP_TYPE_XPM_DATA)); - PyDict_SetItemString(d,"BITMAP_TYPE_TIF", SWIG_FromInt((int)wxBITMAP_TYPE_TIF)); - PyDict_SetItemString(d,"BITMAP_TYPE_GIF", SWIG_FromInt((int)wxBITMAP_TYPE_GIF)); - PyDict_SetItemString(d,"BITMAP_TYPE_PNG", SWIG_FromInt((int)wxBITMAP_TYPE_PNG)); - PyDict_SetItemString(d,"BITMAP_TYPE_JPEG", SWIG_FromInt((int)wxBITMAP_TYPE_JPEG)); - PyDict_SetItemString(d,"BITMAP_TYPE_PNM", SWIG_FromInt((int)wxBITMAP_TYPE_PNM)); - PyDict_SetItemString(d,"BITMAP_TYPE_PCX", SWIG_FromInt((int)wxBITMAP_TYPE_PCX)); - PyDict_SetItemString(d,"BITMAP_TYPE_PICT", SWIG_FromInt((int)wxBITMAP_TYPE_PICT)); - PyDict_SetItemString(d,"BITMAP_TYPE_ICON", SWIG_FromInt((int)wxBITMAP_TYPE_ICON)); - PyDict_SetItemString(d,"BITMAP_TYPE_ANI", SWIG_FromInt((int)wxBITMAP_TYPE_ANI)); - PyDict_SetItemString(d,"BITMAP_TYPE_IFF", SWIG_FromInt((int)wxBITMAP_TYPE_IFF)); - PyDict_SetItemString(d,"BITMAP_TYPE_MACCURSOR", SWIG_FromInt((int)wxBITMAP_TYPE_MACCURSOR)); - PyDict_SetItemString(d,"BITMAP_TYPE_ANY", SWIG_FromInt((int)wxBITMAP_TYPE_ANY)); - PyDict_SetItemString(d,"CURSOR_NONE", SWIG_FromInt((int)wxCURSOR_NONE)); - PyDict_SetItemString(d,"CURSOR_ARROW", SWIG_FromInt((int)wxCURSOR_ARROW)); - PyDict_SetItemString(d,"CURSOR_RIGHT_ARROW", SWIG_FromInt((int)wxCURSOR_RIGHT_ARROW)); - PyDict_SetItemString(d,"CURSOR_BULLSEYE", SWIG_FromInt((int)wxCURSOR_BULLSEYE)); - PyDict_SetItemString(d,"CURSOR_CHAR", SWIG_FromInt((int)wxCURSOR_CHAR)); - PyDict_SetItemString(d,"CURSOR_CROSS", SWIG_FromInt((int)wxCURSOR_CROSS)); - PyDict_SetItemString(d,"CURSOR_HAND", SWIG_FromInt((int)wxCURSOR_HAND)); - PyDict_SetItemString(d,"CURSOR_IBEAM", SWIG_FromInt((int)wxCURSOR_IBEAM)); - PyDict_SetItemString(d,"CURSOR_LEFT_BUTTON", SWIG_FromInt((int)wxCURSOR_LEFT_BUTTON)); - PyDict_SetItemString(d,"CURSOR_MAGNIFIER", SWIG_FromInt((int)wxCURSOR_MAGNIFIER)); - PyDict_SetItemString(d,"CURSOR_MIDDLE_BUTTON", SWIG_FromInt((int)wxCURSOR_MIDDLE_BUTTON)); - PyDict_SetItemString(d,"CURSOR_NO_ENTRY", SWIG_FromInt((int)wxCURSOR_NO_ENTRY)); - PyDict_SetItemString(d,"CURSOR_PAINT_BRUSH", SWIG_FromInt((int)wxCURSOR_PAINT_BRUSH)); - PyDict_SetItemString(d,"CURSOR_PENCIL", SWIG_FromInt((int)wxCURSOR_PENCIL)); - PyDict_SetItemString(d,"CURSOR_POINT_LEFT", SWIG_FromInt((int)wxCURSOR_POINT_LEFT)); - PyDict_SetItemString(d,"CURSOR_POINT_RIGHT", SWIG_FromInt((int)wxCURSOR_POINT_RIGHT)); - PyDict_SetItemString(d,"CURSOR_QUESTION_ARROW", SWIG_FromInt((int)wxCURSOR_QUESTION_ARROW)); - PyDict_SetItemString(d,"CURSOR_RIGHT_BUTTON", SWIG_FromInt((int)wxCURSOR_RIGHT_BUTTON)); - PyDict_SetItemString(d,"CURSOR_SIZENESW", SWIG_FromInt((int)wxCURSOR_SIZENESW)); - PyDict_SetItemString(d,"CURSOR_SIZENS", SWIG_FromInt((int)wxCURSOR_SIZENS)); - PyDict_SetItemString(d,"CURSOR_SIZENWSE", SWIG_FromInt((int)wxCURSOR_SIZENWSE)); - PyDict_SetItemString(d,"CURSOR_SIZEWE", SWIG_FromInt((int)wxCURSOR_SIZEWE)); - PyDict_SetItemString(d,"CURSOR_SIZING", SWIG_FromInt((int)wxCURSOR_SIZING)); - PyDict_SetItemString(d,"CURSOR_SPRAYCAN", SWIG_FromInt((int)wxCURSOR_SPRAYCAN)); - PyDict_SetItemString(d,"CURSOR_WAIT", SWIG_FromInt((int)wxCURSOR_WAIT)); - PyDict_SetItemString(d,"CURSOR_WATCH", SWIG_FromInt((int)wxCURSOR_WATCH)); - PyDict_SetItemString(d,"CURSOR_BLANK", SWIG_FromInt((int)wxCURSOR_BLANK)); - PyDict_SetItemString(d,"CURSOR_DEFAULT", SWIG_FromInt((int)wxCURSOR_DEFAULT)); - PyDict_SetItemString(d,"CURSOR_COPY_ARROW", SWIG_FromInt((int)wxCURSOR_COPY_ARROW)); - PyDict_SetItemString(d,"CURSOR_ARROWWAIT", SWIG_FromInt((int)wxCURSOR_ARROWWAIT)); - PyDict_SetItemString(d,"CURSOR_MAX", SWIG_FromInt((int)wxCURSOR_MAX)); - SWIG_addvarlink(SWIG_globals,(char*)"DefaultPosition",_wrap_DefaultPosition_get, _wrap_DefaultPosition_set); - SWIG_addvarlink(SWIG_globals,(char*)"DefaultSize",_wrap_DefaultSize_get, _wrap_DefaultSize_set); - PyDict_SetItemString(d,"FromStart", SWIG_FromInt((int)wxFromStart)); - PyDict_SetItemString(d,"FromCurrent", SWIG_FromInt((int)wxFromCurrent)); - PyDict_SetItemString(d,"FromEnd", SWIG_FromInt((int)wxFromEnd)); - - wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream"); - - - wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler"); - - SWIG_addvarlink(SWIG_globals,(char*)"NullImage",_wrap_NullImage_get, _wrap_NullImage_set); - SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_BMP_FORMAT",_wrap_IMAGE_OPTION_BMP_FORMAT_get, _wrap_IMAGE_OPTION_BMP_FORMAT_set); - SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_X",_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set); - SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_Y",_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set); - SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTION",_wrap_IMAGE_OPTION_RESOLUTION_get, _wrap_IMAGE_OPTION_RESOLUTION_set); - SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTIONUNIT",_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get, _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set); - PyDict_SetItemString(d,"IMAGE_RESOLUTION_INCHES", SWIG_FromInt((int)wxIMAGE_RESOLUTION_INCHES)); - PyDict_SetItemString(d,"IMAGE_RESOLUTION_CM", SWIG_FromInt((int)wxIMAGE_RESOLUTION_CM)); - PyDict_SetItemString(d,"BMP_24BPP", SWIG_FromInt((int)wxBMP_24BPP)); - PyDict_SetItemString(d,"BMP_8BPP", SWIG_FromInt((int)wxBMP_8BPP)); - PyDict_SetItemString(d,"BMP_8BPP_GREY", SWIG_FromInt((int)wxBMP_8BPP_GREY)); - PyDict_SetItemString(d,"BMP_8BPP_GRAY", SWIG_FromInt((int)wxBMP_8BPP_GRAY)); - PyDict_SetItemString(d,"BMP_8BPP_RED", SWIG_FromInt((int)wxBMP_8BPP_RED)); - PyDict_SetItemString(d,"BMP_8BPP_PALETTE", SWIG_FromInt((int)wxBMP_8BPP_PALETTE)); - PyDict_SetItemString(d,"BMP_4BPP", SWIG_FromInt((int)wxBMP_4BPP)); - PyDict_SetItemString(d,"BMP_1BPP", SWIG_FromInt((int)wxBMP_1BPP)); - PyDict_SetItemString(d,"BMP_1BPP_BW", SWIG_FromInt((int)wxBMP_1BPP_BW)); - PyDict_SetItemString(d,"EVENT_PROPAGATE_NONE", SWIG_FromInt((int)wxEVENT_PROPAGATE_NONE)); - PyDict_SetItemString(d,"EVENT_PROPAGATE_MAX", SWIG_FromInt((int)wxEVENT_PROPAGATE_MAX)); - PyDict_SetItemString(d, "wxEVT_NULL", PyInt_FromLong(wxEVT_NULL)); - PyDict_SetItemString(d, "wxEVT_FIRST", PyInt_FromLong(wxEVT_FIRST)); - PyDict_SetItemString(d, "wxEVT_USER_FIRST", PyInt_FromLong(wxEVT_USER_FIRST)); - PyDict_SetItemString(d, "wxEVT_COMMAND_BUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_BUTTON_CLICKED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKBOX_CLICKED", PyInt_FromLong(wxEVT_COMMAND_CHECKBOX_CLICKED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICE_SELECTED", PyInt_FromLong(wxEVT_COMMAND_CHOICE_SELECTED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_SELECTED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", PyInt_FromLong(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_MENU_SELECTED", PyInt_FromLong(wxEVT_COMMAND_MENU_SELECTED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_CLICKED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_SLIDER_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SLIDER_UPDATED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBOX_SELECTED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBUTTON_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBUTTON_SELECTED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_SCROLLBAR_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SCROLLBAR_UPDATED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_VLBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_VLBOX_SELECTED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_COMBOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_COMBOBOX_SELECTED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_RCLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_RCLICKED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_ENTER", PyInt_FromLong(wxEVT_COMMAND_TOOL_ENTER)); - PyDict_SetItemString(d, "wxEVT_LEFT_DOWN", PyInt_FromLong(wxEVT_LEFT_DOWN)); - PyDict_SetItemString(d, "wxEVT_LEFT_UP", PyInt_FromLong(wxEVT_LEFT_UP)); - PyDict_SetItemString(d, "wxEVT_MIDDLE_DOWN", PyInt_FromLong(wxEVT_MIDDLE_DOWN)); - PyDict_SetItemString(d, "wxEVT_MIDDLE_UP", PyInt_FromLong(wxEVT_MIDDLE_UP)); - PyDict_SetItemString(d, "wxEVT_RIGHT_DOWN", PyInt_FromLong(wxEVT_RIGHT_DOWN)); - PyDict_SetItemString(d, "wxEVT_RIGHT_UP", PyInt_FromLong(wxEVT_RIGHT_UP)); - PyDict_SetItemString(d, "wxEVT_MOTION", PyInt_FromLong(wxEVT_MOTION)); - PyDict_SetItemString(d, "wxEVT_ENTER_WINDOW", PyInt_FromLong(wxEVT_ENTER_WINDOW)); - PyDict_SetItemString(d, "wxEVT_LEAVE_WINDOW", PyInt_FromLong(wxEVT_LEAVE_WINDOW)); - PyDict_SetItemString(d, "wxEVT_LEFT_DCLICK", PyInt_FromLong(wxEVT_LEFT_DCLICK)); - PyDict_SetItemString(d, "wxEVT_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_MIDDLE_DCLICK)); - PyDict_SetItemString(d, "wxEVT_RIGHT_DCLICK", PyInt_FromLong(wxEVT_RIGHT_DCLICK)); - PyDict_SetItemString(d, "wxEVT_SET_FOCUS", PyInt_FromLong(wxEVT_SET_FOCUS)); - PyDict_SetItemString(d, "wxEVT_KILL_FOCUS", PyInt_FromLong(wxEVT_KILL_FOCUS)); - PyDict_SetItemString(d, "wxEVT_CHILD_FOCUS", PyInt_FromLong(wxEVT_CHILD_FOCUS)); - PyDict_SetItemString(d, "wxEVT_MOUSEWHEEL", PyInt_FromLong(wxEVT_MOUSEWHEEL)); - PyDict_SetItemString(d, "wxEVT_NC_LEFT_DOWN", PyInt_FromLong(wxEVT_NC_LEFT_DOWN)); - PyDict_SetItemString(d, "wxEVT_NC_LEFT_UP", PyInt_FromLong(wxEVT_NC_LEFT_UP)); - PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DOWN", PyInt_FromLong(wxEVT_NC_MIDDLE_DOWN)); - PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_UP", PyInt_FromLong(wxEVT_NC_MIDDLE_UP)); - PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DOWN", PyInt_FromLong(wxEVT_NC_RIGHT_DOWN)); - PyDict_SetItemString(d, "wxEVT_NC_RIGHT_UP", PyInt_FromLong(wxEVT_NC_RIGHT_UP)); - PyDict_SetItemString(d, "wxEVT_NC_MOTION", PyInt_FromLong(wxEVT_NC_MOTION)); - PyDict_SetItemString(d, "wxEVT_NC_ENTER_WINDOW", PyInt_FromLong(wxEVT_NC_ENTER_WINDOW)); - PyDict_SetItemString(d, "wxEVT_NC_LEAVE_WINDOW", PyInt_FromLong(wxEVT_NC_LEAVE_WINDOW)); - PyDict_SetItemString(d, "wxEVT_NC_LEFT_DCLICK", PyInt_FromLong(wxEVT_NC_LEFT_DCLICK)); - PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_NC_MIDDLE_DCLICK)); - PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DCLICK", PyInt_FromLong(wxEVT_NC_RIGHT_DCLICK)); - PyDict_SetItemString(d, "wxEVT_CHAR", PyInt_FromLong(wxEVT_CHAR)); - PyDict_SetItemString(d, "wxEVT_CHAR_HOOK", PyInt_FromLong(wxEVT_CHAR_HOOK)); - PyDict_SetItemString(d, "wxEVT_NAVIGATION_KEY", PyInt_FromLong(wxEVT_NAVIGATION_KEY)); - PyDict_SetItemString(d, "wxEVT_KEY_DOWN", PyInt_FromLong(wxEVT_KEY_DOWN)); - PyDict_SetItemString(d, "wxEVT_KEY_UP", PyInt_FromLong(wxEVT_KEY_UP)); - PyDict_SetItemString(d, "wxEVT_HOTKEY", PyInt_FromLong(wxEVT_HOTKEY)); - PyDict_SetItemString(d, "wxEVT_SET_CURSOR", PyInt_FromLong(wxEVT_SET_CURSOR)); - PyDict_SetItemString(d, "wxEVT_SCROLL_TOP", PyInt_FromLong(wxEVT_SCROLL_TOP)); - PyDict_SetItemString(d, "wxEVT_SCROLL_BOTTOM", PyInt_FromLong(wxEVT_SCROLL_BOTTOM)); - PyDict_SetItemString(d, "wxEVT_SCROLL_LINEUP", PyInt_FromLong(wxEVT_SCROLL_LINEUP)); - PyDict_SetItemString(d, "wxEVT_SCROLL_LINEDOWN", PyInt_FromLong(wxEVT_SCROLL_LINEDOWN)); - PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEUP", PyInt_FromLong(wxEVT_SCROLL_PAGEUP)); - PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLL_PAGEDOWN)); - PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLL_THUMBTRACK)); - PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLL_THUMBRELEASE)); - PyDict_SetItemString(d, "wxEVT_SCROLL_ENDSCROLL", PyInt_FromLong(wxEVT_SCROLL_ENDSCROLL)); - PyDict_SetItemString(d, "wxEVT_SCROLLWIN_TOP", PyInt_FromLong(wxEVT_SCROLLWIN_TOP)); - PyDict_SetItemString(d, "wxEVT_SCROLLWIN_BOTTOM", PyInt_FromLong(wxEVT_SCROLLWIN_BOTTOM)); - PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEUP", PyInt_FromLong(wxEVT_SCROLLWIN_LINEUP)); - PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_LINEDOWN)); - PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEUP", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEUP)); - PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEDOWN)); - PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBTRACK)); - PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBRELEASE)); - PyDict_SetItemString(d, "wxEVT_SIZE", PyInt_FromLong(wxEVT_SIZE)); - PyDict_SetItemString(d, "wxEVT_MOVE", PyInt_FromLong(wxEVT_MOVE)); - PyDict_SetItemString(d, "wxEVT_CLOSE_WINDOW", PyInt_FromLong(wxEVT_CLOSE_WINDOW)); - PyDict_SetItemString(d, "wxEVT_END_SESSION", PyInt_FromLong(wxEVT_END_SESSION)); - PyDict_SetItemString(d, "wxEVT_QUERY_END_SESSION", PyInt_FromLong(wxEVT_QUERY_END_SESSION)); - PyDict_SetItemString(d, "wxEVT_ACTIVATE_APP", PyInt_FromLong(wxEVT_ACTIVATE_APP)); - PyDict_SetItemString(d, "wxEVT_POWER", PyInt_FromLong(wxEVT_POWER)); - PyDict_SetItemString(d, "wxEVT_ACTIVATE", PyInt_FromLong(wxEVT_ACTIVATE)); - PyDict_SetItemString(d, "wxEVT_CREATE", PyInt_FromLong(wxEVT_CREATE)); - PyDict_SetItemString(d, "wxEVT_DESTROY", PyInt_FromLong(wxEVT_DESTROY)); - PyDict_SetItemString(d, "wxEVT_SHOW", PyInt_FromLong(wxEVT_SHOW)); - PyDict_SetItemString(d, "wxEVT_ICONIZE", PyInt_FromLong(wxEVT_ICONIZE)); - PyDict_SetItemString(d, "wxEVT_MAXIMIZE", PyInt_FromLong(wxEVT_MAXIMIZE)); - PyDict_SetItemString(d, "wxEVT_MOUSE_CAPTURE_CHANGED", PyInt_FromLong(wxEVT_MOUSE_CAPTURE_CHANGED)); - PyDict_SetItemString(d, "wxEVT_PAINT", PyInt_FromLong(wxEVT_PAINT)); - PyDict_SetItemString(d, "wxEVT_ERASE_BACKGROUND", PyInt_FromLong(wxEVT_ERASE_BACKGROUND)); - PyDict_SetItemString(d, "wxEVT_NC_PAINT", PyInt_FromLong(wxEVT_NC_PAINT)); - PyDict_SetItemString(d, "wxEVT_PAINT_ICON", PyInt_FromLong(wxEVT_PAINT_ICON)); - PyDict_SetItemString(d, "wxEVT_MENU_OPEN", PyInt_FromLong(wxEVT_MENU_OPEN)); - PyDict_SetItemString(d, "wxEVT_MENU_CLOSE", PyInt_FromLong(wxEVT_MENU_CLOSE)); - PyDict_SetItemString(d, "wxEVT_MENU_HIGHLIGHT", PyInt_FromLong(wxEVT_MENU_HIGHLIGHT)); - PyDict_SetItemString(d, "wxEVT_CONTEXT_MENU", PyInt_FromLong(wxEVT_CONTEXT_MENU)); - PyDict_SetItemString(d, "wxEVT_SYS_COLOUR_CHANGED", PyInt_FromLong(wxEVT_SYS_COLOUR_CHANGED)); - PyDict_SetItemString(d, "wxEVT_DISPLAY_CHANGED", PyInt_FromLong(wxEVT_DISPLAY_CHANGED)); - PyDict_SetItemString(d, "wxEVT_SETTING_CHANGED", PyInt_FromLong(wxEVT_SETTING_CHANGED)); - PyDict_SetItemString(d, "wxEVT_QUERY_NEW_PALETTE", PyInt_FromLong(wxEVT_QUERY_NEW_PALETTE)); - PyDict_SetItemString(d, "wxEVT_PALETTE_CHANGED", PyInt_FromLong(wxEVT_PALETTE_CHANGED)); - PyDict_SetItemString(d, "wxEVT_DROP_FILES", PyInt_FromLong(wxEVT_DROP_FILES)); - PyDict_SetItemString(d, "wxEVT_DRAW_ITEM", PyInt_FromLong(wxEVT_DRAW_ITEM)); - PyDict_SetItemString(d, "wxEVT_MEASURE_ITEM", PyInt_FromLong(wxEVT_MEASURE_ITEM)); - PyDict_SetItemString(d, "wxEVT_COMPARE_ITEM", PyInt_FromLong(wxEVT_COMPARE_ITEM)); - PyDict_SetItemString(d, "wxEVT_INIT_DIALOG", PyInt_FromLong(wxEVT_INIT_DIALOG)); - PyDict_SetItemString(d, "wxEVT_IDLE", PyInt_FromLong(wxEVT_IDLE)); - PyDict_SetItemString(d, "wxEVT_UPDATE_UI", PyInt_FromLong(wxEVT_UPDATE_UI)); - PyDict_SetItemString(d, "wxEVT_SIZING", PyInt_FromLong(wxEVT_SIZING)); - PyDict_SetItemString(d, "wxEVT_MOVING", PyInt_FromLong(wxEVT_MOVING)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_CLICK)); - PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_DCLICK)); - PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_CLICK)); - PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_DCLICK)); - PyDict_SetItemString(d, "wxEVT_COMMAND_SET_FOCUS", PyInt_FromLong(wxEVT_COMMAND_SET_FOCUS)); - PyDict_SetItemString(d, "wxEVT_COMMAND_KILL_FOCUS", PyInt_FromLong(wxEVT_COMMAND_KILL_FOCUS)); - PyDict_SetItemString(d, "wxEVT_COMMAND_ENTER", PyInt_FromLong(wxEVT_COMMAND_ENTER)); - PyDict_SetItemString(d,"MOUSE_BTN_ANY", SWIG_FromInt((int)wxMOUSE_BTN_ANY)); - PyDict_SetItemString(d,"MOUSE_BTN_NONE", SWIG_FromInt((int)wxMOUSE_BTN_NONE)); - PyDict_SetItemString(d,"MOUSE_BTN_LEFT", SWIG_FromInt((int)wxMOUSE_BTN_LEFT)); - PyDict_SetItemString(d,"MOUSE_BTN_MIDDLE", SWIG_FromInt((int)wxMOUSE_BTN_MIDDLE)); - PyDict_SetItemString(d,"MOUSE_BTN_RIGHT", SWIG_FromInt((int)wxMOUSE_BTN_RIGHT)); - PyDict_SetItemString(d,"UPDATE_UI_PROCESS_ALL", SWIG_FromInt((int)wxUPDATE_UI_PROCESS_ALL)); - PyDict_SetItemString(d,"UPDATE_UI_PROCESS_SPECIFIED", SWIG_FromInt((int)wxUPDATE_UI_PROCESS_SPECIFIED)); - PyDict_SetItemString(d,"IDLE_PROCESS_ALL", SWIG_FromInt((int)wxIDLE_PROCESS_ALL)); - PyDict_SetItemString(d,"IDLE_PROCESS_SPECIFIED", SWIG_FromInt((int)wxIDLE_PROCESS_SPECIFIED)); - PyDict_SetItemString(d,"PYAPP_ASSERT_SUPPRESS", SWIG_FromInt((int)wxPYAPP_ASSERT_SUPPRESS)); - PyDict_SetItemString(d,"PYAPP_ASSERT_EXCEPTION", SWIG_FromInt((int)wxPYAPP_ASSERT_EXCEPTION)); - PyDict_SetItemString(d,"PYAPP_ASSERT_DIALOG", SWIG_FromInt((int)wxPYAPP_ASSERT_DIALOG)); - PyDict_SetItemString(d,"PYAPP_ASSERT_LOG", SWIG_FromInt((int)wxPYAPP_ASSERT_LOG)); - PyDict_SetItemString(d,"PRINT_WINDOWS", SWIG_FromInt((int)wxPRINT_WINDOWS)); - PyDict_SetItemString(d,"PRINT_POSTSCRIPT", SWIG_FromInt((int)wxPRINT_POSTSCRIPT)); - SWIG_addvarlink(SWIG_globals,(char*)"NullAcceleratorTable",_wrap_NullAcceleratorTable_get, _wrap_NullAcceleratorTable_set); - SWIG_addvarlink(SWIG_globals,(char*)"PanelNameStr",_wrap_PanelNameStr_get, _wrap_PanelNameStr_set); - PyDict_SetItemString(d,"WINDOW_VARIANT_NORMAL", SWIG_FromInt((int)wxWINDOW_VARIANT_NORMAL)); - PyDict_SetItemString(d,"WINDOW_VARIANT_SMALL", SWIG_FromInt((int)wxWINDOW_VARIANT_SMALL)); - PyDict_SetItemString(d,"WINDOW_VARIANT_MINI", SWIG_FromInt((int)wxWINDOW_VARIANT_MINI)); - PyDict_SetItemString(d,"WINDOW_VARIANT_LARGE", SWIG_FromInt((int)wxWINDOW_VARIANT_LARGE)); - PyDict_SetItemString(d,"WINDOW_VARIANT_MAX", SWIG_FromInt((int)wxWINDOW_VARIANT_MAX)); - SWIG_addvarlink(SWIG_globals,(char*)"DefaultValidator",_wrap_DefaultValidator_get, _wrap_DefaultValidator_set); - SWIG_addvarlink(SWIG_globals,(char*)"ControlNameStr",_wrap_ControlNameStr_get, _wrap_ControlNameStr_set); - PyDict_SetItemString(d,"FLEX_GROWMODE_NONE", SWIG_FromInt((int)wxFLEX_GROWMODE_NONE)); - PyDict_SetItemString(d,"FLEX_GROWMODE_SPECIFIED", SWIG_FromInt((int)wxFLEX_GROWMODE_SPECIFIED)); - PyDict_SetItemString(d,"FLEX_GROWMODE_ALL", SWIG_FromInt((int)wxFLEX_GROWMODE_ALL)); - SWIG_addvarlink(SWIG_globals,(char*)"DefaultSpan",_wrap_DefaultSpan_get, _wrap_DefaultSpan_set); - PyDict_SetItemString(d,"Left", SWIG_FromInt((int)wxLeft)); - PyDict_SetItemString(d,"Top", SWIG_FromInt((int)wxTop)); - PyDict_SetItemString(d,"Right", SWIG_FromInt((int)wxRight)); - PyDict_SetItemString(d,"Bottom", SWIG_FromInt((int)wxBottom)); - PyDict_SetItemString(d,"Width", SWIG_FromInt((int)wxWidth)); - PyDict_SetItemString(d,"Height", SWIG_FromInt((int)wxHeight)); - PyDict_SetItemString(d,"Centre", SWIG_FromInt((int)wxCentre)); - PyDict_SetItemString(d,"Center", SWIG_FromInt((int)wxCenter)); - PyDict_SetItemString(d,"CentreX", SWIG_FromInt((int)wxCentreX)); - PyDict_SetItemString(d,"CentreY", SWIG_FromInt((int)wxCentreY)); - PyDict_SetItemString(d,"Unconstrained", SWIG_FromInt((int)wxUnconstrained)); - PyDict_SetItemString(d,"AsIs", SWIG_FromInt((int)wxAsIs)); - PyDict_SetItemString(d,"PercentOf", SWIG_FromInt((int)wxPercentOf)); - PyDict_SetItemString(d,"Above", SWIG_FromInt((int)wxAbove)); - PyDict_SetItemString(d,"Below", SWIG_FromInt((int)wxBelow)); - PyDict_SetItemString(d,"LeftOf", SWIG_FromInt((int)wxLeftOf)); - PyDict_SetItemString(d,"RightOf", SWIG_FromInt((int)wxRightOf)); - PyDict_SetItemString(d,"SameAs", SWIG_FromInt((int)wxSameAs)); - PyDict_SetItemString(d,"Absolute", SWIG_FromInt((int)wxAbsolute)); - - // Initialize threading, some globals and such - __wxPyPreStart(d); - - - // Although these are defined in __version__ they need to be here too so - // that an assert can be done to ensure that the wxPython and the wxWindows - // versions match. - PyDict_SetItemString(d,"MAJOR_VERSION", PyInt_FromLong((long)wxMAJOR_VERSION )); - PyDict_SetItemString(d,"MINOR_VERSION", PyInt_FromLong((long)wxMINOR_VERSION )); - PyDict_SetItemString(d,"RELEASE_VERSION", PyInt_FromLong((long)wxRELEASE_NUMBER )); - -} - diff --git a/wxPython/src/msw/gdi.py b/wxPython/src/msw/gdi.py deleted file mode 100644 index c304819d8f..0000000000 --- a/wxPython/src/msw/gdi.py +++ /dev/null @@ -1,3927 +0,0 @@ -# This file was created automatically by SWIG. -# Don't modify this file, modify the SWIG interface instead. - -import _gdi - -import core -wx = core -__docfilter__ = wx.__docfilter__ -#--------------------------------------------------------------------------- - -class GDIObject(core.Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxGDIObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> GDIObject""" - newobj = _gdi.new_GDIObject(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_gdi.delete_GDIObject): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def GetVisible(*args, **kwargs): - """GetVisible(self) -> bool""" - return _gdi.GDIObject_GetVisible(*args, **kwargs) - - def SetVisible(*args, **kwargs): - """SetVisible(self, bool visible)""" - return _gdi.GDIObject_SetVisible(*args, **kwargs) - - def IsNull(*args, **kwargs): - """IsNull(self) -> bool""" - return _gdi.GDIObject_IsNull(*args, **kwargs) - - -class GDIObjectPtr(GDIObject): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = GDIObject -_gdi.GDIObject_swigregister(GDIObjectPtr) - -#--------------------------------------------------------------------------- - -class Colour(core.Object): - """ - A colour is an object representing a combination of Red, Green, and Blue (RGB) - intensity values, and is used to determine drawing colours, window colours, - etc. Valid RGB values are in the range 0 to 255. - - In wxPython there are typemaps that will automatically convert from a colour - name, or from a '#RRGGBB' colour hex value string to a wx.Colour object when - calling C++ methods that expect a wxColour. This means that the following are - all equivallent: - - win.SetBackgroundColour(wxColour(0,0,255)) - win.SetBackgroundColour('BLUE') - win.SetBackgroundColour('#0000FF') - - You can retrieve the various current system colour settings with - wx.SystemSettings.GetColour. - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxColour instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, unsigned char red=0, unsigned char green=0, unsigned char blue=0) -> Colour - - Constructs a colour from red, green and blue values. - """ - newobj = _gdi.new_Colour(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_gdi.delete_Colour): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Red(*args, **kwargs): - """ - Red(self) -> unsigned char - - Returns the red intensity. - """ - return _gdi.Colour_Red(*args, **kwargs) - - def Green(*args, **kwargs): - """ - Green(self) -> unsigned char - - Returns the green intensity. - """ - return _gdi.Colour_Green(*args, **kwargs) - - def Blue(*args, **kwargs): - """ - Blue(self) -> unsigned char - - Returns the blue intensity. - """ - return _gdi.Colour_Blue(*args, **kwargs) - - def Ok(*args, **kwargs): - """ - Ok(self) -> bool - - Returns True if the colour object is valid (the colour has been - initialised with RGB values). - """ - return _gdi.Colour_Ok(*args, **kwargs) - - def Set(*args, **kwargs): - """ - Set(self, unsigned char red, unsigned char green, unsigned char blue) - - Sets the RGB intensity values. - """ - return _gdi.Colour_Set(*args, **kwargs) - - def SetRGB(*args, **kwargs): - """ - SetRGB(self, unsigned long colRGB) - - Sets the RGB intensity values from a packed RGB value. - """ - return _gdi.Colour_SetRGB(*args, **kwargs) - - def SetFromName(*args, **kwargs): - """ - SetFromName(self, String colourName) - - Sets the RGB intensity values using a colour name listed in wx.TheColourDatabase. - """ - return _gdi.Colour_SetFromName(*args, **kwargs) - - def GetPixel(*args, **kwargs): - """ - GetPixel(self) -> long - - Returns a pixel value which is platform-dependent. On Windows, a - COLORREF is returned. On X, an allocated pixel value is returned. - -1 is returned if the pixel is invalid (on X, unallocated). - """ - return _gdi.Colour_GetPixel(*args, **kwargs) - - def __eq__(*args, **kwargs): - """ - __eq__(self, Colour colour) -> bool - - Compare colours for equality - """ - return _gdi.Colour___eq__(*args, **kwargs) - - def __ne__(*args, **kwargs): - """ - __ne__(self, Colour colour) -> bool - - Compare colours for inequality - """ - return _gdi.Colour___ne__(*args, **kwargs) - - def Get(*args, **kwargs): - """ - Get() -> (r, g, b) - - Returns the RGB intensity values as a tuple. - """ - return _gdi.Colour_Get(*args, **kwargs) - - def GetRGB(*args, **kwargs): - """ - GetRGB(self) -> unsigned long - - Return the colour as a packed RGB value - """ - return _gdi.Colour_GetRGB(*args, **kwargs) - - asTuple = Get - def __str__(self): return str(self.asTuple()) - def __repr__(self): return 'wx.Colour' + str(self.asTuple()) - def __nonzero__(self): return self.Ok() - __safe_for_unpickling__ = True - def __reduce__(self): return (Colour, self.Get()) - - -class ColourPtr(Colour): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Colour -_gdi.Colour_swigregister(ColourPtr) - -def NamedColour(*args, **kwargs): - """ - NamedColour(String colorName) -> Colour - - Constructs a colour object using a colour name listed in wx.TheColourDatabase. - """ - val = _gdi.new_NamedColour(*args, **kwargs) - val.thisown = 1 - return val - -def ColourRGB(*args, **kwargs): - """ - ColourRGB(unsigned long colRGB) -> Colour - - Constructs a colour from a packed RGB value. - """ - val = _gdi.new_ColourRGB(*args, **kwargs) - val.thisown = 1 - return val - -Color = Colour -NamedColor = NamedColour -ColorRGB = ColourRGB - -class Palette(GDIObject): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPalette instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int n, unsigned char red, unsigned char green, unsigned char blue) -> Palette""" - newobj = _gdi.new_Palette(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_gdi.delete_Palette): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def GetPixel(*args, **kwargs): - """GetPixel(self, byte red, byte green, byte blue) -> int""" - return _gdi.Palette_GetPixel(*args, **kwargs) - - def GetRGB(*args, **kwargs): - """GetRGB(int pixel) -> (R,G,B)""" - return _gdi.Palette_GetRGB(*args, **kwargs) - - def Ok(*args, **kwargs): - """Ok(self) -> bool""" - return _gdi.Palette_Ok(*args, **kwargs) - - def __nonzero__(self): return self.Ok() - -class PalettePtr(Palette): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Palette -_gdi.Palette_swigregister(PalettePtr) - -#--------------------------------------------------------------------------- - -class Pen(GDIObject): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPen instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Colour colour, int width=1, int style=SOLID) -> Pen""" - newobj = _gdi.new_Pen(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_gdi.delete_Pen): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def GetCap(*args, **kwargs): - """GetCap(self) -> int""" - return _gdi.Pen_GetCap(*args, **kwargs) - - def GetColour(*args, **kwargs): - """GetColour(self) -> Colour""" - return _gdi.Pen_GetColour(*args, **kwargs) - - def GetJoin(*args, **kwargs): - """GetJoin(self) -> int""" - return _gdi.Pen_GetJoin(*args, **kwargs) - - def GetStyle(*args, **kwargs): - """GetStyle(self) -> int""" - return _gdi.Pen_GetStyle(*args, **kwargs) - - def GetWidth(*args, **kwargs): - """GetWidth(self) -> int""" - return _gdi.Pen_GetWidth(*args, **kwargs) - - def Ok(*args, **kwargs): - """Ok(self) -> bool""" - return _gdi.Pen_Ok(*args, **kwargs) - - def SetCap(*args, **kwargs): - """SetCap(self, int cap_style)""" - return _gdi.Pen_SetCap(*args, **kwargs) - - def SetColour(*args, **kwargs): - """SetColour(self, Colour colour)""" - return _gdi.Pen_SetColour(*args, **kwargs) - - def SetJoin(*args, **kwargs): - """SetJoin(self, int join_style)""" - return _gdi.Pen_SetJoin(*args, **kwargs) - - def SetStyle(*args, **kwargs): - """SetStyle(self, int style)""" - return _gdi.Pen_SetStyle(*args, **kwargs) - - def SetWidth(*args, **kwargs): - """SetWidth(self, int width)""" - return _gdi.Pen_SetWidth(*args, **kwargs) - - def SetDashes(*args, **kwargs): - """SetDashes(self, int dashes, wxDash dashes_array)""" - return _gdi.Pen_SetDashes(*args, **kwargs) - - def GetDashes(*args, **kwargs): - """GetDashes(self) -> PyObject""" - return _gdi.Pen_GetDashes(*args, **kwargs) - - def __eq__(*args, **kwargs): - """__eq__(self, Pen other) -> bool""" - return _gdi.Pen___eq__(*args, **kwargs) - - def __ne__(*args, **kwargs): - """__ne__(self, Pen other) -> bool""" - return _gdi.Pen___ne__(*args, **kwargs) - - def GetDashCount(*args, **kwargs): - """GetDashCount(self) -> int""" - return _gdi.Pen_GetDashCount(*args, **kwargs) - - def GetStipple(*args, **kwargs): - """GetStipple(self) -> Bitmap""" - return _gdi.Pen_GetStipple(*args, **kwargs) - - def SetStipple(*args, **kwargs): - """SetStipple(self, Bitmap stipple)""" - return _gdi.Pen_SetStipple(*args, **kwargs) - - def __nonzero__(self): return self.Ok() - -class PenPtr(Pen): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Pen -_gdi.Pen_swigregister(PenPtr) - -class PyPen(Pen): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyPen instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Colour colour, int width=1, int style=SOLID) -> PyPen""" - newobj = _gdi.new_PyPen(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_gdi.delete_PyPen): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def SetDashes(*args, **kwargs): - """SetDashes(self, int dashes, wxDash dashes_array)""" - return _gdi.PyPen_SetDashes(*args, **kwargs) - - -class PyPenPtr(PyPen): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PyPen -_gdi.PyPen_swigregister(PyPenPtr) - -Pen = PyPen -#--------------------------------------------------------------------------- - -class Brush(GDIObject): - """ - A brush is a drawing tool for filling in areas. It is used for painting the - background of rectangles, ellipses, etc. It has a colour and a style. - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxBrush instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Colour colour, int style=SOLID) -> Brush - - Constructs a brush from a colour object and style. - """ - newobj = _gdi.new_Brush(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_gdi.delete_Brush): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def SetColour(*args, **kwargs): - """SetColour(self, Colour col)""" - return _gdi.Brush_SetColour(*args, **kwargs) - - def SetStyle(*args, **kwargs): - """SetStyle(self, int style)""" - return _gdi.Brush_SetStyle(*args, **kwargs) - - def SetStipple(*args, **kwargs): - """SetStipple(self, Bitmap stipple)""" - return _gdi.Brush_SetStipple(*args, **kwargs) - - def GetColour(*args, **kwargs): - """GetColour(self) -> Colour""" - return _gdi.Brush_GetColour(*args, **kwargs) - - def GetStyle(*args, **kwargs): - """GetStyle(self) -> int""" - return _gdi.Brush_GetStyle(*args, **kwargs) - - def GetStipple(*args, **kwargs): - """GetStipple(self) -> Bitmap""" - return _gdi.Brush_GetStipple(*args, **kwargs) - - def Ok(*args, **kwargs): - """Ok(self) -> bool""" - return _gdi.Brush_Ok(*args, **kwargs) - - def __nonzero__(self): return self.Ok() - -class BrushPtr(Brush): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Brush -_gdi.Brush_swigregister(BrushPtr) - -class Bitmap(GDIObject): - def __repr__(self): - return "<%s.%s; proxy of C++ wxBitmap instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, String name, int type=BITMAP_TYPE_ANY) -> Bitmap - - Loads a bitmap from a file. - """ - newobj = _gdi.new_Bitmap(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_gdi.delete_Bitmap): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def SetPalette(*args, **kwargs): - """SetPalette(self, Palette palette)""" - return _gdi.Bitmap_SetPalette(*args, **kwargs) - - def GetHandle(*args, **kwargs): - """GetHandle(self) -> long""" - return _gdi.Bitmap_GetHandle(*args, **kwargs) - - def SetHandle(*args, **kwargs): - """SetHandle(self, long handle)""" - return _gdi.Bitmap_SetHandle(*args, **kwargs) - - def Ok(*args, **kwargs): - """Ok(self) -> bool""" - return _gdi.Bitmap_Ok(*args, **kwargs) - - def GetWidth(*args, **kwargs): - """ - GetWidth(self) -> int - - Gets the width of the bitmap in pixels. - """ - return _gdi.Bitmap_GetWidth(*args, **kwargs) - - def GetHeight(*args, **kwargs): - """ - GetHeight(self) -> int - - Gets the height of the bitmap in pixels. - """ - return _gdi.Bitmap_GetHeight(*args, **kwargs) - - def GetDepth(*args, **kwargs): - """ - GetDepth(self) -> int - - Gets the colour depth of the bitmap. A value of 1 indicates a - monochrome bitmap. - """ - return _gdi.Bitmap_GetDepth(*args, **kwargs) - - def GetSize(*args, **kwargs): - """ - GetSize(self) -> Size - - Get the size of the bitmap. - """ - return _gdi.Bitmap_GetSize(*args, **kwargs) - - def ConvertToImage(*args, **kwargs): - """ - ConvertToImage(self) -> Image - - Creates a platform-independent image from a platform-dependent bitmap. This - preserves mask information so that bitmaps and images can be converted back - and forth without loss in that respect. - """ - return _gdi.Bitmap_ConvertToImage(*args, **kwargs) - - def GetMask(*args, **kwargs): - """ - GetMask(self) -> Mask - - Gets the associated mask (if any) which may have been loaded from a file - or explpicitly set for the bitmap. - """ - return _gdi.Bitmap_GetMask(*args, **kwargs) - - def SetMask(*args, **kwargs): - """ - SetMask(self, Mask mask) - - Sets the mask for this bitmap. - """ - return _gdi.Bitmap_SetMask(*args, **kwargs) - - def SetMaskColour(*args, **kwargs): - """ - SetMaskColour(self, Colour colour) - - Create a Mask based on a specified colour in the Bitmap. - """ - return _gdi.Bitmap_SetMaskColour(*args, **kwargs) - - def GetSubBitmap(*args, **kwargs): - """ - GetSubBitmap(self, Rect rect) -> Bitmap - - Returns a sub bitmap of the current one as long as the rect belongs entirely - to the bitmap. This function preserves bit depth and mask information. - """ - return _gdi.Bitmap_GetSubBitmap(*args, **kwargs) - - def SaveFile(*args, **kwargs): - """ - SaveFile(self, String name, int type, Palette palette=(wxPalette *) NULL) -> bool - - Saves a bitmap in the named file. - """ - return _gdi.Bitmap_SaveFile(*args, **kwargs) - - def LoadFile(*args, **kwargs): - """ - LoadFile(self, String name, int type) -> bool - - Loads a bitmap from a file - """ - return _gdi.Bitmap_LoadFile(*args, **kwargs) - - def CopyFromIcon(*args, **kwargs): - """CopyFromIcon(self, Icon icon) -> bool""" - return _gdi.Bitmap_CopyFromIcon(*args, **kwargs) - - def SetHeight(*args, **kwargs): - """ - SetHeight(self, int height) - - Set the height property (does not affect the bitmap data). - """ - return _gdi.Bitmap_SetHeight(*args, **kwargs) - - def SetWidth(*args, **kwargs): - """ - SetWidth(self, int width) - - Set the width property (does not affect the bitmap data). - """ - return _gdi.Bitmap_SetWidth(*args, **kwargs) - - def SetDepth(*args, **kwargs): - """ - SetDepth(self, int depth) - - Set the depth property (does not affect the bitmap data). - """ - return _gdi.Bitmap_SetDepth(*args, **kwargs) - - def SetSize(*args, **kwargs): - """ - SetSize(self, Size size) - - Set the bitmap size - """ - return _gdi.Bitmap_SetSize(*args, **kwargs) - - def CopyFromCursor(*args, **kwargs): - """CopyFromCursor(self, Cursor cursor) -> bool""" - return _gdi.Bitmap_CopyFromCursor(*args, **kwargs) - - def GetQuality(*args, **kwargs): - """GetQuality(self) -> int""" - return _gdi.Bitmap_GetQuality(*args, **kwargs) - - def SetQuality(*args, **kwargs): - """SetQuality(self, int q)""" - return _gdi.Bitmap_SetQuality(*args, **kwargs) - - def __nonzero__(self): return self.Ok() - def __eq__(*args, **kwargs): - """__eq__(self, Bitmap other) -> bool""" - return _gdi.Bitmap___eq__(*args, **kwargs) - - def __ne__(*args, **kwargs): - """__ne__(self, Bitmap other) -> bool""" - return _gdi.Bitmap___ne__(*args, **kwargs) - - -class BitmapPtr(Bitmap): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Bitmap -_gdi.Bitmap_swigregister(BitmapPtr) - -def BitmapFromIcon(*args, **kwargs): - """ - BitmapFromIcon(Icon icon) -> Bitmap - - Create a new bitmap from an Icon object. - """ - val = _gdi.new_BitmapFromIcon(*args, **kwargs) - val.thisown = 1 - return val - -def BitmapFromImage(*args, **kwargs): - """ - BitmapFromImage(Image image, int depth=-1) -> Bitmap - - Creates bitmap object from the image. This has to be done to actually display - an image as you cannot draw an image directly on a window. The resulting - bitmap will use the provided colour depth (or that of the current system if - depth is -1) which entails that a colour reduction has to take place. - """ - val = _gdi.new_BitmapFromImage(*args, **kwargs) - val.thisown = 1 - return val - -def BitmapFromXPMData(*args, **kwargs): - """ - BitmapFromXPMData(PyObject listOfStrings) -> Bitmap - - Construct a Bitmap from a list of strings formatted as XPM data. - """ - val = _gdi.new_BitmapFromXPMData(*args, **kwargs) - val.thisown = 1 - return val - -def BitmapFromBits(*args, **kwargs): - """ - BitmapFromBits(PyObject bits, int width, int height, int depth=1) -> Bitmap - - Creates a bitmap from an array of bits. You should only use this function for - monochrome bitmaps (depth 1) in portable programs: in this case the bits - parameter should contain an XBM image. For other bit depths, the behaviour is - platform dependent. - """ - val = _gdi.new_BitmapFromBits(*args, **kwargs) - val.thisown = 1 - return val - -def EmptyBitmap(*args): - """ - EmptyBitmap(int width, int height, int depth=-1) -> Bitmap - EmptyBitmap(Size size, int depth=-1) -> Bitmap - - Creates a new bitmap of the given size. A depth of -1 indicates - the depth of the current screen or visual. Some platforms only - support 1 for monochrome and -1 for the current colour setting. - """ - val = _gdi.new_EmptyBitmap(*args) - val.thisown = 1 - return val - -class Mask(core.Object): - """ - This class encapsulates a monochrome mask bitmap, where the masked area is - black and the unmasked area is white. When associated with a bitmap and drawn - in a device context, the unmasked area of the bitmap will be drawn, and the - masked area will not be drawn. - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxMask instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Bitmap bitmap, Colour colour=NullColour) -> Mask - - Constructs a mask from a bitmap and a colour in that bitmap that indicates - the transparent portions of the mask, by default BLACK is used. - """ - newobj = _gdi.new_Mask(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class MaskPtr(Mask): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Mask -_gdi.Mask_swigregister(MaskPtr) - -MaskColour = Mask -class Icon(GDIObject): - def __repr__(self): - return "<%s.%s; proxy of C++ wxIcon instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, String name, int type, int desiredWidth=-1, int desiredHeight=-1) -> Icon""" - newobj = _gdi.new_Icon(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_gdi.delete_Icon): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def LoadFile(*args, **kwargs): - """LoadFile(self, String name, int type) -> bool""" - return _gdi.Icon_LoadFile(*args, **kwargs) - - def GetHandle(*args, **kwargs): - """GetHandle(self) -> long""" - return _gdi.Icon_GetHandle(*args, **kwargs) - - def SetHandle(*args, **kwargs): - """SetHandle(self, long handle)""" - return _gdi.Icon_SetHandle(*args, **kwargs) - - def Ok(*args, **kwargs): - """Ok(self) -> bool""" - return _gdi.Icon_Ok(*args, **kwargs) - - def GetWidth(*args, **kwargs): - """GetWidth(self) -> int""" - return _gdi.Icon_GetWidth(*args, **kwargs) - - def GetHeight(*args, **kwargs): - """GetHeight(self) -> int""" - return _gdi.Icon_GetHeight(*args, **kwargs) - - def GetDepth(*args, **kwargs): - """GetDepth(self) -> int""" - return _gdi.Icon_GetDepth(*args, **kwargs) - - def SetWidth(*args, **kwargs): - """SetWidth(self, int w)""" - return _gdi.Icon_SetWidth(*args, **kwargs) - - def SetHeight(*args, **kwargs): - """SetHeight(self, int h)""" - return _gdi.Icon_SetHeight(*args, **kwargs) - - def SetDepth(*args, **kwargs): - """SetDepth(self, int d)""" - return _gdi.Icon_SetDepth(*args, **kwargs) - - def SetSize(*args, **kwargs): - """SetSize(self, Size size)""" - return _gdi.Icon_SetSize(*args, **kwargs) - - def CopyFromBitmap(*args, **kwargs): - """CopyFromBitmap(self, Bitmap bmp)""" - return _gdi.Icon_CopyFromBitmap(*args, **kwargs) - - def __nonzero__(self): return self.Ok() - -class IconPtr(Icon): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Icon -_gdi.Icon_swigregister(IconPtr) - -def EmptyIcon(*args, **kwargs): - """EmptyIcon() -> Icon""" - val = _gdi.new_EmptyIcon(*args, **kwargs) - val.thisown = 1 - return val - -def IconFromLocation(*args, **kwargs): - """IconFromLocation(IconLocation loc) -> Icon""" - val = _gdi.new_IconFromLocation(*args, **kwargs) - val.thisown = 1 - return val - -def IconFromBitmap(*args, **kwargs): - """IconFromBitmap(Bitmap bmp) -> Icon""" - val = _gdi.new_IconFromBitmap(*args, **kwargs) - val.thisown = 1 - return val - -def IconFromXPMData(*args, **kwargs): - """IconFromXPMData(PyObject listOfStrings) -> Icon""" - val = _gdi.new_IconFromXPMData(*args, **kwargs) - val.thisown = 1 - return val - -class IconLocation(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxIconLocation instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, String filename=&wxPyEmptyString, int num=0) -> IconLocation""" - newobj = _gdi.new_IconLocation(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_gdi.delete_IconLocation): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def IsOk(*args, **kwargs): - """IsOk(self) -> bool""" - return _gdi.IconLocation_IsOk(*args, **kwargs) - - def __nonzero__(self): return self.Ok() - def SetFileName(*args, **kwargs): - """SetFileName(self, String filename)""" - return _gdi.IconLocation_SetFileName(*args, **kwargs) - - def GetFileName(*args, **kwargs): - """GetFileName(self) -> String""" - return _gdi.IconLocation_GetFileName(*args, **kwargs) - - def SetIndex(*args, **kwargs): - """SetIndex(self, int num)""" - return _gdi.IconLocation_SetIndex(*args, **kwargs) - - def GetIndex(*args, **kwargs): - """GetIndex(self) -> int""" - return _gdi.IconLocation_GetIndex(*args, **kwargs) - - -class IconLocationPtr(IconLocation): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = IconLocation -_gdi.IconLocation_swigregister(IconLocationPtr) - -class IconBundle(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxIconBundle instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> IconBundle""" - newobj = _gdi.new_IconBundle(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_gdi.delete_IconBundle): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def AddIcon(*args, **kwargs): - """AddIcon(self, Icon icon)""" - return _gdi.IconBundle_AddIcon(*args, **kwargs) - - def AddIconFromFile(*args, **kwargs): - """AddIconFromFile(self, String file, long type)""" - return _gdi.IconBundle_AddIconFromFile(*args, **kwargs) - - def GetIcon(*args, **kwargs): - """GetIcon(self, Size size) -> Icon""" - return _gdi.IconBundle_GetIcon(*args, **kwargs) - - -class IconBundlePtr(IconBundle): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = IconBundle -_gdi.IconBundle_swigregister(IconBundlePtr) - -def IconBundleFromFile(*args, **kwargs): - """IconBundleFromFile(String file, long type) -> IconBundle""" - val = _gdi.new_IconBundleFromFile(*args, **kwargs) - val.thisown = 1 - return val - -def IconBundleFromIcon(*args, **kwargs): - """IconBundleFromIcon(Icon icon) -> IconBundle""" - val = _gdi.new_IconBundleFromIcon(*args, **kwargs) - val.thisown = 1 - return val - -class Cursor(GDIObject): - """ - A cursor is a small bitmap usually used for denoting where the - mouse pointer is, with a picture that might indicate the - interpretation of a mouse click. - - A single cursor object may be used in many windows (any subwindow - type). The wxWindows convention is to set the cursor for a - window, as in X, rather than to set it globally as in MS Windows, - although a global wx.SetCursor function is also available for use - on MS Windows. - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxCursor instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, String cursorName, long type, int hotSpotX=0, int hotSpotY=0) -> Cursor - - Construct a Cursor from a file. Specify the type of file using - wx.BITAMP_TYPE* constants, and specify the hotspot if not using a - .cur file. - - This cursor is not available on wxGTK, use wx.StockCursor, - wx.CursorFromImage, or wx.CursorFromBits instead. - """ - newobj = _gdi.new_Cursor(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_gdi.delete_Cursor): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def GetHandle(*args, **kwargs): - """ - GetHandle(self) -> long - - Get the MS Windows handle for the cursor - """ - return _gdi.Cursor_GetHandle(*args, **kwargs) - - def SetHandle(*args, **kwargs): - """ - SetHandle(self, long handle) - - Set the MS Windows handle to use for the cursor - """ - return _gdi.Cursor_SetHandle(*args, **kwargs) - - def Ok(*args, **kwargs): - """Ok(self) -> bool""" - return _gdi.Cursor_Ok(*args, **kwargs) - - def __nonzero__(self): return self.Ok() - def GetWidth(*args, **kwargs): - """GetWidth(self) -> int""" - return _gdi.Cursor_GetWidth(*args, **kwargs) - - def GetHeight(*args, **kwargs): - """GetHeight(self) -> int""" - return _gdi.Cursor_GetHeight(*args, **kwargs) - - def GetDepth(*args, **kwargs): - """GetDepth(self) -> int""" - return _gdi.Cursor_GetDepth(*args, **kwargs) - - def SetWidth(*args, **kwargs): - """SetWidth(self, int w)""" - return _gdi.Cursor_SetWidth(*args, **kwargs) - - def SetHeight(*args, **kwargs): - """SetHeight(self, int h)""" - return _gdi.Cursor_SetHeight(*args, **kwargs) - - def SetDepth(*args, **kwargs): - """SetDepth(self, int d)""" - return _gdi.Cursor_SetDepth(*args, **kwargs) - - def SetSize(*args, **kwargs): - """SetSize(self, Size size)""" - return _gdi.Cursor_SetSize(*args, **kwargs) - - -class CursorPtr(Cursor): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Cursor -_gdi.Cursor_swigregister(CursorPtr) - -def StockCursor(*args, **kwargs): - """ - StockCursor(int id) -> Cursor - - Create a cursor using one of the stock cursors. Note that not - all cursors are available on all platforms. - """ - val = _gdi.new_StockCursor(*args, **kwargs) - val.thisown = 1 - return val - -def CursorFromImage(*args, **kwargs): - """ - CursorFromImage(Image image) -> Cursor - - Constructs a cursor from a wxImage. The cursor is monochrome, - colors with the RGB elements all greater than 127 will be - foreground, colors less than this background. The mask (if any) - will be used as transparent. - - In MSW the foreground will be white and the background black. The - cursor is resized to 32x32 In GTK, the two most frequent colors - will be used for foreground and background. The cursor will be - displayed at the size of the image. On MacOS the cursor is - resized to 16x16 and currently only shown as black/white (mask - respected). - """ - val = _gdi.new_CursorFromImage(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -OutRegion = _gdi.OutRegion -PartRegion = _gdi.PartRegion -InRegion = _gdi.InRegion -class Region(GDIObject): - def __repr__(self): - return "<%s.%s; proxy of C++ wxRegion instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int x=0, int y=0, int width=0, int height=0) -> Region""" - newobj = _gdi.new_Region(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_gdi.delete_Region): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Clear(*args, **kwargs): - """Clear(self)""" - return _gdi.Region_Clear(*args, **kwargs) - - def Offset(*args, **kwargs): - """Offset(self, int x, int y) -> bool""" - return _gdi.Region_Offset(*args, **kwargs) - - def Contains(*args, **kwargs): - """Contains(self, int x, int y) -> int""" - return _gdi.Region_Contains(*args, **kwargs) - - def ContainsPoint(*args, **kwargs): - """ContainsPoint(self, Point pt) -> int""" - return _gdi.Region_ContainsPoint(*args, **kwargs) - - def ContainsRect(*args, **kwargs): - """ContainsRect(self, Rect rect) -> int""" - return _gdi.Region_ContainsRect(*args, **kwargs) - - def ContainsRectDim(*args, **kwargs): - """ContainsRectDim(self, int x, int y, int w, int h) -> int""" - return _gdi.Region_ContainsRectDim(*args, **kwargs) - - def GetBox(*args, **kwargs): - """GetBox(self) -> Rect""" - return _gdi.Region_GetBox(*args, **kwargs) - - def Intersect(*args, **kwargs): - """Intersect(self, int x, int y, int width, int height) -> bool""" - return _gdi.Region_Intersect(*args, **kwargs) - - def IntersectRect(*args, **kwargs): - """IntersectRect(self, Rect rect) -> bool""" - return _gdi.Region_IntersectRect(*args, **kwargs) - - def IntersectRegion(*args, **kwargs): - """IntersectRegion(self, Region region) -> bool""" - return _gdi.Region_IntersectRegion(*args, **kwargs) - - def IsEmpty(*args, **kwargs): - """IsEmpty(self) -> bool""" - return _gdi.Region_IsEmpty(*args, **kwargs) - - def Union(*args, **kwargs): - """Union(self, int x, int y, int width, int height) -> bool""" - return _gdi.Region_Union(*args, **kwargs) - - def UnionRect(*args, **kwargs): - """UnionRect(self, Rect rect) -> bool""" - return _gdi.Region_UnionRect(*args, **kwargs) - - def UnionRegion(*args, **kwargs): - """UnionRegion(self, Region region) -> bool""" - return _gdi.Region_UnionRegion(*args, **kwargs) - - def Subtract(*args, **kwargs): - """Subtract(self, int x, int y, int width, int height) -> bool""" - return _gdi.Region_Subtract(*args, **kwargs) - - def SubtractRect(*args, **kwargs): - """SubtractRect(self, Rect rect) -> bool""" - return _gdi.Region_SubtractRect(*args, **kwargs) - - def SubtractRegion(*args, **kwargs): - """SubtractRegion(self, Region region) -> bool""" - return _gdi.Region_SubtractRegion(*args, **kwargs) - - def Xor(*args, **kwargs): - """Xor(self, int x, int y, int width, int height) -> bool""" - return _gdi.Region_Xor(*args, **kwargs) - - def XorRect(*args, **kwargs): - """XorRect(self, Rect rect) -> bool""" - return _gdi.Region_XorRect(*args, **kwargs) - - def XorRegion(*args, **kwargs): - """XorRegion(self, Region region) -> bool""" - return _gdi.Region_XorRegion(*args, **kwargs) - - def ConvertToBitmap(*args, **kwargs): - """ConvertToBitmap(self) -> Bitmap""" - return _gdi.Region_ConvertToBitmap(*args, **kwargs) - - def UnionBitmap(*args, **kwargs): - """UnionBitmap(self, Bitmap bmp, Colour transColour=NullColour, int tolerance=0) -> bool""" - return _gdi.Region_UnionBitmap(*args, **kwargs) - - -class RegionPtr(Region): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Region -_gdi.Region_swigregister(RegionPtr) - -def RegionFromBitmap(*args, **kwargs): - """RegionFromBitmap(Bitmap bmp, Colour transColour=NullColour, int tolerance=0) -> Region""" - val = _gdi.new_RegionFromBitmap(*args, **kwargs) - val.thisown = 1 - return val - -def RegionFromPoints(*args, **kwargs): - """RegionFromPoints(int points, Point points_array, int fillStyle=WINDING_RULE) -> Region""" - val = _gdi.new_RegionFromPoints(*args, **kwargs) - val.thisown = 1 - return val - -class RegionIterator(core.Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxRegionIterator instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Region region) -> RegionIterator""" - newobj = _gdi.new_RegionIterator(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_gdi.delete_RegionIterator): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def GetX(*args, **kwargs): - """GetX(self) -> int""" - return _gdi.RegionIterator_GetX(*args, **kwargs) - - def GetY(*args, **kwargs): - """GetY(self) -> int""" - return _gdi.RegionIterator_GetY(*args, **kwargs) - - def GetW(*args, **kwargs): - """GetW(self) -> int""" - return _gdi.RegionIterator_GetW(*args, **kwargs) - - def GetWidth(*args, **kwargs): - """GetWidth(self) -> int""" - return _gdi.RegionIterator_GetWidth(*args, **kwargs) - - def GetH(*args, **kwargs): - """GetH(self) -> int""" - return _gdi.RegionIterator_GetH(*args, **kwargs) - - def GetHeight(*args, **kwargs): - """GetHeight(self) -> int""" - return _gdi.RegionIterator_GetHeight(*args, **kwargs) - - def GetRect(*args, **kwargs): - """GetRect(self) -> Rect""" - return _gdi.RegionIterator_GetRect(*args, **kwargs) - - def HaveRects(*args, **kwargs): - """HaveRects(self) -> bool""" - return _gdi.RegionIterator_HaveRects(*args, **kwargs) - - def Reset(*args, **kwargs): - """Reset(self)""" - return _gdi.RegionIterator_Reset(*args, **kwargs) - - def Next(*args, **kwargs): - """Next(self)""" - return _gdi.RegionIterator_Next(*args, **kwargs) - - def __nonzero__(*args, **kwargs): - """__nonzero__(self) -> bool""" - return _gdi.RegionIterator___nonzero__(*args, **kwargs) - - -class RegionIteratorPtr(RegionIterator): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = RegionIterator -_gdi.RegionIterator_swigregister(RegionIteratorPtr) - -#--------------------------------------------------------------------------- - -FONTFAMILY_DEFAULT = _gdi.FONTFAMILY_DEFAULT -FONTFAMILY_DECORATIVE = _gdi.FONTFAMILY_DECORATIVE -FONTFAMILY_ROMAN = _gdi.FONTFAMILY_ROMAN -FONTFAMILY_SCRIPT = _gdi.FONTFAMILY_SCRIPT -FONTFAMILY_SWISS = _gdi.FONTFAMILY_SWISS -FONTFAMILY_MODERN = _gdi.FONTFAMILY_MODERN -FONTFAMILY_TELETYPE = _gdi.FONTFAMILY_TELETYPE -FONTFAMILY_MAX = _gdi.FONTFAMILY_MAX -FONTFAMILY_UNKNOWN = _gdi.FONTFAMILY_UNKNOWN -FONTSTYLE_NORMAL = _gdi.FONTSTYLE_NORMAL -FONTSTYLE_ITALIC = _gdi.FONTSTYLE_ITALIC -FONTSTYLE_SLANT = _gdi.FONTSTYLE_SLANT -FONTSTYLE_MAX = _gdi.FONTSTYLE_MAX -FONTWEIGHT_NORMAL = _gdi.FONTWEIGHT_NORMAL -FONTWEIGHT_LIGHT = _gdi.FONTWEIGHT_LIGHT -FONTWEIGHT_BOLD = _gdi.FONTWEIGHT_BOLD -FONTWEIGHT_MAX = _gdi.FONTWEIGHT_MAX -FONTFLAG_DEFAULT = _gdi.FONTFLAG_DEFAULT -FONTFLAG_ITALIC = _gdi.FONTFLAG_ITALIC -FONTFLAG_SLANT = _gdi.FONTFLAG_SLANT -FONTFLAG_LIGHT = _gdi.FONTFLAG_LIGHT -FONTFLAG_BOLD = _gdi.FONTFLAG_BOLD -FONTFLAG_ANTIALIASED = _gdi.FONTFLAG_ANTIALIASED -FONTFLAG_NOT_ANTIALIASED = _gdi.FONTFLAG_NOT_ANTIALIASED -FONTFLAG_UNDERLINED = _gdi.FONTFLAG_UNDERLINED -FONTFLAG_STRIKETHROUGH = _gdi.FONTFLAG_STRIKETHROUGH -FONTFLAG_MASK = _gdi.FONTFLAG_MASK -FONTENCODING_SYSTEM = _gdi.FONTENCODING_SYSTEM -FONTENCODING_DEFAULT = _gdi.FONTENCODING_DEFAULT -FONTENCODING_ISO8859_1 = _gdi.FONTENCODING_ISO8859_1 -FONTENCODING_ISO8859_2 = _gdi.FONTENCODING_ISO8859_2 -FONTENCODING_ISO8859_3 = _gdi.FONTENCODING_ISO8859_3 -FONTENCODING_ISO8859_4 = _gdi.FONTENCODING_ISO8859_4 -FONTENCODING_ISO8859_5 = _gdi.FONTENCODING_ISO8859_5 -FONTENCODING_ISO8859_6 = _gdi.FONTENCODING_ISO8859_6 -FONTENCODING_ISO8859_7 = _gdi.FONTENCODING_ISO8859_7 -FONTENCODING_ISO8859_8 = _gdi.FONTENCODING_ISO8859_8 -FONTENCODING_ISO8859_9 = _gdi.FONTENCODING_ISO8859_9 -FONTENCODING_ISO8859_10 = _gdi.FONTENCODING_ISO8859_10 -FONTENCODING_ISO8859_11 = _gdi.FONTENCODING_ISO8859_11 -FONTENCODING_ISO8859_12 = _gdi.FONTENCODING_ISO8859_12 -FONTENCODING_ISO8859_13 = _gdi.FONTENCODING_ISO8859_13 -FONTENCODING_ISO8859_14 = _gdi.FONTENCODING_ISO8859_14 -FONTENCODING_ISO8859_15 = _gdi.FONTENCODING_ISO8859_15 -FONTENCODING_ISO8859_MAX = _gdi.FONTENCODING_ISO8859_MAX -FONTENCODING_KOI8 = _gdi.FONTENCODING_KOI8 -FONTENCODING_KOI8_U = _gdi.FONTENCODING_KOI8_U -FONTENCODING_ALTERNATIVE = _gdi.FONTENCODING_ALTERNATIVE -FONTENCODING_BULGARIAN = _gdi.FONTENCODING_BULGARIAN -FONTENCODING_CP437 = _gdi.FONTENCODING_CP437 -FONTENCODING_CP850 = _gdi.FONTENCODING_CP850 -FONTENCODING_CP852 = _gdi.FONTENCODING_CP852 -FONTENCODING_CP855 = _gdi.FONTENCODING_CP855 -FONTENCODING_CP866 = _gdi.FONTENCODING_CP866 -FONTENCODING_CP874 = _gdi.FONTENCODING_CP874 -FONTENCODING_CP932 = _gdi.FONTENCODING_CP932 -FONTENCODING_CP936 = _gdi.FONTENCODING_CP936 -FONTENCODING_CP949 = _gdi.FONTENCODING_CP949 -FONTENCODING_CP950 = _gdi.FONTENCODING_CP950 -FONTENCODING_CP1250 = _gdi.FONTENCODING_CP1250 -FONTENCODING_CP1251 = _gdi.FONTENCODING_CP1251 -FONTENCODING_CP1252 = _gdi.FONTENCODING_CP1252 -FONTENCODING_CP1253 = _gdi.FONTENCODING_CP1253 -FONTENCODING_CP1254 = _gdi.FONTENCODING_CP1254 -FONTENCODING_CP1255 = _gdi.FONTENCODING_CP1255 -FONTENCODING_CP1256 = _gdi.FONTENCODING_CP1256 -FONTENCODING_CP1257 = _gdi.FONTENCODING_CP1257 -FONTENCODING_CP12_MAX = _gdi.FONTENCODING_CP12_MAX -FONTENCODING_UTF7 = _gdi.FONTENCODING_UTF7 -FONTENCODING_UTF8 = _gdi.FONTENCODING_UTF8 -FONTENCODING_EUC_JP = _gdi.FONTENCODING_EUC_JP -FONTENCODING_UTF16BE = _gdi.FONTENCODING_UTF16BE -FONTENCODING_UTF16LE = _gdi.FONTENCODING_UTF16LE -FONTENCODING_UTF32BE = _gdi.FONTENCODING_UTF32BE -FONTENCODING_UTF32LE = _gdi.FONTENCODING_UTF32LE -FONTENCODING_MACROMAN = _gdi.FONTENCODING_MACROMAN -FONTENCODING_MACJAPANESE = _gdi.FONTENCODING_MACJAPANESE -FONTENCODING_MACCHINESETRAD = _gdi.FONTENCODING_MACCHINESETRAD -FONTENCODING_MACKOREAN = _gdi.FONTENCODING_MACKOREAN -FONTENCODING_MACARABIC = _gdi.FONTENCODING_MACARABIC -FONTENCODING_MACHEBREW = _gdi.FONTENCODING_MACHEBREW -FONTENCODING_MACGREEK = _gdi.FONTENCODING_MACGREEK -FONTENCODING_MACCYRILLIC = _gdi.FONTENCODING_MACCYRILLIC -FONTENCODING_MACDEVANAGARI = _gdi.FONTENCODING_MACDEVANAGARI -FONTENCODING_MACGURMUKHI = _gdi.FONTENCODING_MACGURMUKHI -FONTENCODING_MACGUJARATI = _gdi.FONTENCODING_MACGUJARATI -FONTENCODING_MACORIYA = _gdi.FONTENCODING_MACORIYA -FONTENCODING_MACBENGALI = _gdi.FONTENCODING_MACBENGALI -FONTENCODING_MACTAMIL = _gdi.FONTENCODING_MACTAMIL -FONTENCODING_MACTELUGU = _gdi.FONTENCODING_MACTELUGU -FONTENCODING_MACKANNADA = _gdi.FONTENCODING_MACKANNADA -FONTENCODING_MACMALAJALAM = _gdi.FONTENCODING_MACMALAJALAM -FONTENCODING_MACSINHALESE = _gdi.FONTENCODING_MACSINHALESE -FONTENCODING_MACBURMESE = _gdi.FONTENCODING_MACBURMESE -FONTENCODING_MACKHMER = _gdi.FONTENCODING_MACKHMER -FONTENCODING_MACTHAI = _gdi.FONTENCODING_MACTHAI -FONTENCODING_MACLAOTIAN = _gdi.FONTENCODING_MACLAOTIAN -FONTENCODING_MACGEORGIAN = _gdi.FONTENCODING_MACGEORGIAN -FONTENCODING_MACARMENIAN = _gdi.FONTENCODING_MACARMENIAN -FONTENCODING_MACCHINESESIMP = _gdi.FONTENCODING_MACCHINESESIMP -FONTENCODING_MACTIBETAN = _gdi.FONTENCODING_MACTIBETAN -FONTENCODING_MACMONGOLIAN = _gdi.FONTENCODING_MACMONGOLIAN -FONTENCODING_MACETHIOPIC = _gdi.FONTENCODING_MACETHIOPIC -FONTENCODING_MACCENTRALEUR = _gdi.FONTENCODING_MACCENTRALEUR -FONTENCODING_MACVIATNAMESE = _gdi.FONTENCODING_MACVIATNAMESE -FONTENCODING_MACARABICEXT = _gdi.FONTENCODING_MACARABICEXT -FONTENCODING_MACSYMBOL = _gdi.FONTENCODING_MACSYMBOL -FONTENCODING_MACDINGBATS = _gdi.FONTENCODING_MACDINGBATS -FONTENCODING_MACTURKISH = _gdi.FONTENCODING_MACTURKISH -FONTENCODING_MACCROATIAN = _gdi.FONTENCODING_MACCROATIAN -FONTENCODING_MACICELANDIC = _gdi.FONTENCODING_MACICELANDIC -FONTENCODING_MACROMANIAN = _gdi.FONTENCODING_MACROMANIAN -FONTENCODING_MACCELTIC = _gdi.FONTENCODING_MACCELTIC -FONTENCODING_MACGAELIC = _gdi.FONTENCODING_MACGAELIC -FONTENCODING_MACKEYBOARD = _gdi.FONTENCODING_MACKEYBOARD -FONTENCODING_MACMIN = _gdi.FONTENCODING_MACMIN -FONTENCODING_MACMAX = _gdi.FONTENCODING_MACMAX -FONTENCODING_MAX = _gdi.FONTENCODING_MAX -FONTENCODING_UTF16 = _gdi.FONTENCODING_UTF16 -FONTENCODING_UTF32 = _gdi.FONTENCODING_UTF32 -FONTENCODING_UNICODE = _gdi.FONTENCODING_UNICODE -FONTENCODING_GB2312 = _gdi.FONTENCODING_GB2312 -FONTENCODING_BIG5 = _gdi.FONTENCODING_BIG5 -FONTENCODING_SHIFT_JIS = _gdi.FONTENCODING_SHIFT_JIS -#--------------------------------------------------------------------------- - -class NativeFontInfo(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxNativeFontInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> NativeFontInfo""" - newobj = _gdi.new_NativeFontInfo(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_gdi.delete_NativeFontInfo): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Init(*args, **kwargs): - """Init(self)""" - return _gdi.NativeFontInfo_Init(*args, **kwargs) - - def InitFromFont(*args, **kwargs): - """InitFromFont(self, Font font)""" - return _gdi.NativeFontInfo_InitFromFont(*args, **kwargs) - - def GetPointSize(*args, **kwargs): - """GetPointSize(self) -> int""" - return _gdi.NativeFontInfo_GetPointSize(*args, **kwargs) - - def GetStyle(*args, **kwargs): - """GetStyle(self) -> int""" - return _gdi.NativeFontInfo_GetStyle(*args, **kwargs) - - def GetWeight(*args, **kwargs): - """GetWeight(self) -> int""" - return _gdi.NativeFontInfo_GetWeight(*args, **kwargs) - - def GetUnderlined(*args, **kwargs): - """GetUnderlined(self) -> bool""" - return _gdi.NativeFontInfo_GetUnderlined(*args, **kwargs) - - def GetFaceName(*args, **kwargs): - """GetFaceName(self) -> String""" - return _gdi.NativeFontInfo_GetFaceName(*args, **kwargs) - - def GetFamily(*args, **kwargs): - """GetFamily(self) -> int""" - return _gdi.NativeFontInfo_GetFamily(*args, **kwargs) - - def GetEncoding(*args, **kwargs): - """GetEncoding(self) -> int""" - return _gdi.NativeFontInfo_GetEncoding(*args, **kwargs) - - def SetPointSize(*args, **kwargs): - """SetPointSize(self, int pointsize)""" - return _gdi.NativeFontInfo_SetPointSize(*args, **kwargs) - - def SetStyle(*args, **kwargs): - """SetStyle(self, int style)""" - return _gdi.NativeFontInfo_SetStyle(*args, **kwargs) - - def SetWeight(*args, **kwargs): - """SetWeight(self, int weight)""" - return _gdi.NativeFontInfo_SetWeight(*args, **kwargs) - - def SetUnderlined(*args, **kwargs): - """SetUnderlined(self, bool underlined)""" - return _gdi.NativeFontInfo_SetUnderlined(*args, **kwargs) - - def SetFaceName(*args, **kwargs): - """SetFaceName(self, String facename)""" - return _gdi.NativeFontInfo_SetFaceName(*args, **kwargs) - - def SetFamily(*args, **kwargs): - """SetFamily(self, int family)""" - return _gdi.NativeFontInfo_SetFamily(*args, **kwargs) - - def SetEncoding(*args, **kwargs): - """SetEncoding(self, int encoding)""" - return _gdi.NativeFontInfo_SetEncoding(*args, **kwargs) - - def FromString(*args, **kwargs): - """FromString(self, String s) -> bool""" - return _gdi.NativeFontInfo_FromString(*args, **kwargs) - - def ToString(*args, **kwargs): - """ToString(self) -> String""" - return _gdi.NativeFontInfo_ToString(*args, **kwargs) - - def __str__(*args, **kwargs): - """__str__(self) -> String""" - return _gdi.NativeFontInfo___str__(*args, **kwargs) - - def FromUserString(*args, **kwargs): - """FromUserString(self, String s) -> bool""" - return _gdi.NativeFontInfo_FromUserString(*args, **kwargs) - - def ToUserString(*args, **kwargs): - """ToUserString(self) -> String""" - return _gdi.NativeFontInfo_ToUserString(*args, **kwargs) - - -class NativeFontInfoPtr(NativeFontInfo): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = NativeFontInfo -_gdi.NativeFontInfo_swigregister(NativeFontInfoPtr) - -class NativeEncodingInfo(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxNativeEncodingInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - facename = property(_gdi.NativeEncodingInfo_facename_get, _gdi.NativeEncodingInfo_facename_set) - encoding = property(_gdi.NativeEncodingInfo_encoding_get, _gdi.NativeEncodingInfo_encoding_set) - def __init__(self, *args, **kwargs): - """__init__(self) -> NativeEncodingInfo""" - newobj = _gdi.new_NativeEncodingInfo(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_gdi.delete_NativeEncodingInfo): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def FromString(*args, **kwargs): - """FromString(self, String s) -> bool""" - return _gdi.NativeEncodingInfo_FromString(*args, **kwargs) - - def ToString(*args, **kwargs): - """ToString(self) -> String""" - return _gdi.NativeEncodingInfo_ToString(*args, **kwargs) - - -class NativeEncodingInfoPtr(NativeEncodingInfo): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = NativeEncodingInfo -_gdi.NativeEncodingInfo_swigregister(NativeEncodingInfoPtr) - - -def GetNativeFontEncoding(*args, **kwargs): - """GetNativeFontEncoding(int encoding) -> NativeEncodingInfo""" - return _gdi.GetNativeFontEncoding(*args, **kwargs) - -def TestFontEncoding(*args, **kwargs): - """TestFontEncoding(NativeEncodingInfo info) -> bool""" - return _gdi.TestFontEncoding(*args, **kwargs) -#--------------------------------------------------------------------------- - -class FontMapper(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxFontMapper instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> FontMapper""" - newobj = _gdi.new_FontMapper(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_gdi.delete_FontMapper): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Get(*args, **kwargs): - """FontMapper.Get() -> FontMapper""" - return _gdi.FontMapper_Get(*args, **kwargs) - - Get = staticmethod(Get) - def Set(*args, **kwargs): - """FontMapper.Set(FontMapper mapper) -> FontMapper""" - return _gdi.FontMapper_Set(*args, **kwargs) - - Set = staticmethod(Set) - def CharsetToEncoding(*args, **kwargs): - """CharsetToEncoding(self, String charset, bool interactive=True) -> int""" - return _gdi.FontMapper_CharsetToEncoding(*args, **kwargs) - - def GetSupportedEncodingsCount(*args, **kwargs): - """FontMapper.GetSupportedEncodingsCount() -> size_t""" - return _gdi.FontMapper_GetSupportedEncodingsCount(*args, **kwargs) - - GetSupportedEncodingsCount = staticmethod(GetSupportedEncodingsCount) - def GetEncoding(*args, **kwargs): - """FontMapper.GetEncoding(size_t n) -> int""" - return _gdi.FontMapper_GetEncoding(*args, **kwargs) - - GetEncoding = staticmethod(GetEncoding) - def GetEncodingName(*args, **kwargs): - """FontMapper.GetEncodingName(int encoding) -> String""" - return _gdi.FontMapper_GetEncodingName(*args, **kwargs) - - GetEncodingName = staticmethod(GetEncodingName) - def GetEncodingDescription(*args, **kwargs): - """FontMapper.GetEncodingDescription(int encoding) -> String""" - return _gdi.FontMapper_GetEncodingDescription(*args, **kwargs) - - GetEncodingDescription = staticmethod(GetEncodingDescription) - def GetEncodingFromName(*args, **kwargs): - """FontMapper.GetEncodingFromName(String name) -> int""" - return _gdi.FontMapper_GetEncodingFromName(*args, **kwargs) - - GetEncodingFromName = staticmethod(GetEncodingFromName) - def SetConfig(*args, **kwargs): - """SetConfig(self, ConfigBase config)""" - return _gdi.FontMapper_SetConfig(*args, **kwargs) - - def SetConfigPath(*args, **kwargs): - """SetConfigPath(self, String prefix)""" - return _gdi.FontMapper_SetConfigPath(*args, **kwargs) - - def GetDefaultConfigPath(*args, **kwargs): - """FontMapper.GetDefaultConfigPath() -> String""" - return _gdi.FontMapper_GetDefaultConfigPath(*args, **kwargs) - - GetDefaultConfigPath = staticmethod(GetDefaultConfigPath) - def GetAltForEncoding(*args, **kwargs): - """GetAltForEncoding(self, int encoding, String facename=EmptyString, bool interactive=True) -> PyObject""" - return _gdi.FontMapper_GetAltForEncoding(*args, **kwargs) - - def IsEncodingAvailable(*args, **kwargs): - """IsEncodingAvailable(self, int encoding, String facename=EmptyString) -> bool""" - return _gdi.FontMapper_IsEncodingAvailable(*args, **kwargs) - - def SetDialogParent(*args, **kwargs): - """SetDialogParent(self, Window parent)""" - return _gdi.FontMapper_SetDialogParent(*args, **kwargs) - - def SetDialogTitle(*args, **kwargs): - """SetDialogTitle(self, String title)""" - return _gdi.FontMapper_SetDialogTitle(*args, **kwargs) - - -class FontMapperPtr(FontMapper): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = FontMapper -_gdi.FontMapper_swigregister(FontMapperPtr) - -def FontMapper_Get(*args, **kwargs): - """FontMapper_Get() -> FontMapper""" - return _gdi.FontMapper_Get(*args, **kwargs) - -def FontMapper_Set(*args, **kwargs): - """FontMapper_Set(FontMapper mapper) -> FontMapper""" - return _gdi.FontMapper_Set(*args, **kwargs) - -def FontMapper_GetSupportedEncodingsCount(*args, **kwargs): - """FontMapper_GetSupportedEncodingsCount() -> size_t""" - return _gdi.FontMapper_GetSupportedEncodingsCount(*args, **kwargs) - -def FontMapper_GetEncoding(*args, **kwargs): - """FontMapper_GetEncoding(size_t n) -> int""" - return _gdi.FontMapper_GetEncoding(*args, **kwargs) - -def FontMapper_GetEncodingName(*args, **kwargs): - """FontMapper_GetEncodingName(int encoding) -> String""" - return _gdi.FontMapper_GetEncodingName(*args, **kwargs) - -def FontMapper_GetEncodingDescription(*args, **kwargs): - """FontMapper_GetEncodingDescription(int encoding) -> String""" - return _gdi.FontMapper_GetEncodingDescription(*args, **kwargs) - -def FontMapper_GetEncodingFromName(*args, **kwargs): - """FontMapper_GetEncodingFromName(String name) -> int""" - return _gdi.FontMapper_GetEncodingFromName(*args, **kwargs) - -def FontMapper_GetDefaultConfigPath(*args, **kwargs): - """FontMapper_GetDefaultConfigPath() -> String""" - return _gdi.FontMapper_GetDefaultConfigPath(*args, **kwargs) - -#--------------------------------------------------------------------------- - -class Font(GDIObject): - def __repr__(self): - return "<%s.%s; proxy of C++ wxFont instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, int pointSize, int family, int style, int weight, bool underline=False, - String face=EmptyString, - int encoding=FONTENCODING_DEFAULT) -> Font - """ - newobj = _gdi.new_Font(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_gdi.delete_Font): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Ok(*args, **kwargs): - """Ok(self) -> bool""" - return _gdi.Font_Ok(*args, **kwargs) - - def __nonzero__(self): return self.Ok() - def __eq__(*args, **kwargs): - """__eq__(self, Font other) -> bool""" - return _gdi.Font___eq__(*args, **kwargs) - - def __ne__(*args, **kwargs): - """__ne__(self, Font other) -> bool""" - return _gdi.Font___ne__(*args, **kwargs) - - def GetPointSize(*args, **kwargs): - """GetPointSize(self) -> int""" - return _gdi.Font_GetPointSize(*args, **kwargs) - - def GetFamily(*args, **kwargs): - """GetFamily(self) -> int""" - return _gdi.Font_GetFamily(*args, **kwargs) - - def GetStyle(*args, **kwargs): - """GetStyle(self) -> int""" - return _gdi.Font_GetStyle(*args, **kwargs) - - def GetWeight(*args, **kwargs): - """GetWeight(self) -> int""" - return _gdi.Font_GetWeight(*args, **kwargs) - - def GetUnderlined(*args, **kwargs): - """GetUnderlined(self) -> bool""" - return _gdi.Font_GetUnderlined(*args, **kwargs) - - def GetFaceName(*args, **kwargs): - """GetFaceName(self) -> String""" - return _gdi.Font_GetFaceName(*args, **kwargs) - - def GetEncoding(*args, **kwargs): - """GetEncoding(self) -> int""" - return _gdi.Font_GetEncoding(*args, **kwargs) - - def GetNativeFontInfo(*args, **kwargs): - """GetNativeFontInfo(self) -> NativeFontInfo""" - return _gdi.Font_GetNativeFontInfo(*args, **kwargs) - - def IsFixedWidth(*args, **kwargs): - """IsFixedWidth(self) -> bool""" - return _gdi.Font_IsFixedWidth(*args, **kwargs) - - def GetNativeFontInfoDesc(*args, **kwargs): - """GetNativeFontInfoDesc(self) -> String""" - return _gdi.Font_GetNativeFontInfoDesc(*args, **kwargs) - - def GetNativeFontInfoUserDesc(*args, **kwargs): - """GetNativeFontInfoUserDesc(self) -> String""" - return _gdi.Font_GetNativeFontInfoUserDesc(*args, **kwargs) - - def SetPointSize(*args, **kwargs): - """SetPointSize(self, int pointSize)""" - return _gdi.Font_SetPointSize(*args, **kwargs) - - def SetFamily(*args, **kwargs): - """SetFamily(self, int family)""" - return _gdi.Font_SetFamily(*args, **kwargs) - - def SetStyle(*args, **kwargs): - """SetStyle(self, int style)""" - return _gdi.Font_SetStyle(*args, **kwargs) - - def SetWeight(*args, **kwargs): - """SetWeight(self, int weight)""" - return _gdi.Font_SetWeight(*args, **kwargs) - - def SetFaceName(*args, **kwargs): - """SetFaceName(self, String faceName)""" - return _gdi.Font_SetFaceName(*args, **kwargs) - - def SetUnderlined(*args, **kwargs): - """SetUnderlined(self, bool underlined)""" - return _gdi.Font_SetUnderlined(*args, **kwargs) - - def SetEncoding(*args, **kwargs): - """SetEncoding(self, int encoding)""" - return _gdi.Font_SetEncoding(*args, **kwargs) - - def SetNativeFontInfo(*args, **kwargs): - """SetNativeFontInfo(self, NativeFontInfo info)""" - return _gdi.Font_SetNativeFontInfo(*args, **kwargs) - - def SetNativeFontInfoFromString(*args, **kwargs): - """SetNativeFontInfoFromString(self, String info)""" - return _gdi.Font_SetNativeFontInfoFromString(*args, **kwargs) - - def SetNativeFontInfoUserDesc(*args, **kwargs): - """SetNativeFontInfoUserDesc(self, String info)""" - return _gdi.Font_SetNativeFontInfoUserDesc(*args, **kwargs) - - def GetFamilyString(*args, **kwargs): - """GetFamilyString(self) -> String""" - return _gdi.Font_GetFamilyString(*args, **kwargs) - - def GetStyleString(*args, **kwargs): - """GetStyleString(self) -> String""" - return _gdi.Font_GetStyleString(*args, **kwargs) - - def GetWeightString(*args, **kwargs): - """GetWeightString(self) -> String""" - return _gdi.Font_GetWeightString(*args, **kwargs) - - def SetNoAntiAliasing(*args, **kwargs): - """SetNoAntiAliasing(self, bool no=True)""" - return _gdi.Font_SetNoAntiAliasing(*args, **kwargs) - - def GetNoAntiAliasing(*args, **kwargs): - """GetNoAntiAliasing(self) -> bool""" - return _gdi.Font_GetNoAntiAliasing(*args, **kwargs) - - def GetDefaultEncoding(*args, **kwargs): - """Font.GetDefaultEncoding() -> int""" - return _gdi.Font_GetDefaultEncoding(*args, **kwargs) - - GetDefaultEncoding = staticmethod(GetDefaultEncoding) - def SetDefaultEncoding(*args, **kwargs): - """Font.SetDefaultEncoding(int encoding)""" - return _gdi.Font_SetDefaultEncoding(*args, **kwargs) - - SetDefaultEncoding = staticmethod(SetDefaultEncoding) - -class FontPtr(Font): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Font -_gdi.Font_swigregister(FontPtr) - -def FontFromNativeInfo(*args, **kwargs): - """FontFromNativeInfo(NativeFontInfo info) -> Font""" - val = _gdi.new_FontFromNativeInfo(*args, **kwargs) - val.thisown = 1 - return val - -def FontFromNativeInfoString(*args, **kwargs): - """FontFromNativeInfoString(String info) -> Font""" - val = _gdi.new_FontFromNativeInfoString(*args, **kwargs) - val.thisown = 1 - return val - -def Font2(*args, **kwargs): - """ - Font2(int pointSize, int family, int flags=FONTFLAG_DEFAULT, - String face=EmptyString, int encoding=FONTENCODING_DEFAULT) -> Font - """ - val = _gdi.new_Font2(*args, **kwargs) - val.thisown = 1 - return val - -def Font_GetDefaultEncoding(*args, **kwargs): - """Font_GetDefaultEncoding() -> int""" - return _gdi.Font_GetDefaultEncoding(*args, **kwargs) - -def Font_SetDefaultEncoding(*args, **kwargs): - """Font_SetDefaultEncoding(int encoding)""" - return _gdi.Font_SetDefaultEncoding(*args, **kwargs) - -#--------------------------------------------------------------------------- - -class FontEnumerator(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyFontEnumerator instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> FontEnumerator""" - newobj = _gdi.new_FontEnumerator(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setCallbackInfo(self, FontEnumerator, 0) - - def __del__(self, destroy=_gdi.delete_FontEnumerator): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class, bool incref)""" - return _gdi.FontEnumerator__setCallbackInfo(*args, **kwargs) - - def EnumerateFacenames(*args, **kwargs): - """EnumerateFacenames(self, int encoding=FONTENCODING_SYSTEM, bool fixedWidthOnly=False) -> bool""" - return _gdi.FontEnumerator_EnumerateFacenames(*args, **kwargs) - - def EnumerateEncodings(*args, **kwargs): - """EnumerateEncodings(self, String facename=EmptyString) -> bool""" - return _gdi.FontEnumerator_EnumerateEncodings(*args, **kwargs) - - def GetEncodings(*args, **kwargs): - """GetEncodings(self) -> PyObject""" - return _gdi.FontEnumerator_GetEncodings(*args, **kwargs) - - def GetFacenames(*args, **kwargs): - """GetFacenames(self) -> PyObject""" - return _gdi.FontEnumerator_GetFacenames(*args, **kwargs) - - -class FontEnumeratorPtr(FontEnumerator): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = FontEnumerator -_gdi.FontEnumerator_swigregister(FontEnumeratorPtr) - -#--------------------------------------------------------------------------- - -LANGUAGE_DEFAULT = _gdi.LANGUAGE_DEFAULT -LANGUAGE_UNKNOWN = _gdi.LANGUAGE_UNKNOWN -LANGUAGE_ABKHAZIAN = _gdi.LANGUAGE_ABKHAZIAN -LANGUAGE_AFAR = _gdi.LANGUAGE_AFAR -LANGUAGE_AFRIKAANS = _gdi.LANGUAGE_AFRIKAANS -LANGUAGE_ALBANIAN = _gdi.LANGUAGE_ALBANIAN -LANGUAGE_AMHARIC = _gdi.LANGUAGE_AMHARIC -LANGUAGE_ARABIC = _gdi.LANGUAGE_ARABIC -LANGUAGE_ARABIC_ALGERIA = _gdi.LANGUAGE_ARABIC_ALGERIA -LANGUAGE_ARABIC_BAHRAIN = _gdi.LANGUAGE_ARABIC_BAHRAIN -LANGUAGE_ARABIC_EGYPT = _gdi.LANGUAGE_ARABIC_EGYPT -LANGUAGE_ARABIC_IRAQ = _gdi.LANGUAGE_ARABIC_IRAQ -LANGUAGE_ARABIC_JORDAN = _gdi.LANGUAGE_ARABIC_JORDAN -LANGUAGE_ARABIC_KUWAIT = _gdi.LANGUAGE_ARABIC_KUWAIT -LANGUAGE_ARABIC_LEBANON = _gdi.LANGUAGE_ARABIC_LEBANON -LANGUAGE_ARABIC_LIBYA = _gdi.LANGUAGE_ARABIC_LIBYA -LANGUAGE_ARABIC_MOROCCO = _gdi.LANGUAGE_ARABIC_MOROCCO -LANGUAGE_ARABIC_OMAN = _gdi.LANGUAGE_ARABIC_OMAN -LANGUAGE_ARABIC_QATAR = _gdi.LANGUAGE_ARABIC_QATAR -LANGUAGE_ARABIC_SAUDI_ARABIA = _gdi.LANGUAGE_ARABIC_SAUDI_ARABIA -LANGUAGE_ARABIC_SUDAN = _gdi.LANGUAGE_ARABIC_SUDAN -LANGUAGE_ARABIC_SYRIA = _gdi.LANGUAGE_ARABIC_SYRIA -LANGUAGE_ARABIC_TUNISIA = _gdi.LANGUAGE_ARABIC_TUNISIA -LANGUAGE_ARABIC_UAE = _gdi.LANGUAGE_ARABIC_UAE -LANGUAGE_ARABIC_YEMEN = _gdi.LANGUAGE_ARABIC_YEMEN -LANGUAGE_ARMENIAN = _gdi.LANGUAGE_ARMENIAN -LANGUAGE_ASSAMESE = _gdi.LANGUAGE_ASSAMESE -LANGUAGE_AYMARA = _gdi.LANGUAGE_AYMARA -LANGUAGE_AZERI = _gdi.LANGUAGE_AZERI -LANGUAGE_AZERI_CYRILLIC = _gdi.LANGUAGE_AZERI_CYRILLIC -LANGUAGE_AZERI_LATIN = _gdi.LANGUAGE_AZERI_LATIN -LANGUAGE_BASHKIR = _gdi.LANGUAGE_BASHKIR -LANGUAGE_BASQUE = _gdi.LANGUAGE_BASQUE -LANGUAGE_BELARUSIAN = _gdi.LANGUAGE_BELARUSIAN -LANGUAGE_BENGALI = _gdi.LANGUAGE_BENGALI -LANGUAGE_BHUTANI = _gdi.LANGUAGE_BHUTANI -LANGUAGE_BIHARI = _gdi.LANGUAGE_BIHARI -LANGUAGE_BISLAMA = _gdi.LANGUAGE_BISLAMA -LANGUAGE_BRETON = _gdi.LANGUAGE_BRETON -LANGUAGE_BULGARIAN = _gdi.LANGUAGE_BULGARIAN -LANGUAGE_BURMESE = _gdi.LANGUAGE_BURMESE -LANGUAGE_CAMBODIAN = _gdi.LANGUAGE_CAMBODIAN -LANGUAGE_CATALAN = _gdi.LANGUAGE_CATALAN -LANGUAGE_CHINESE = _gdi.LANGUAGE_CHINESE -LANGUAGE_CHINESE_SIMPLIFIED = _gdi.LANGUAGE_CHINESE_SIMPLIFIED -LANGUAGE_CHINESE_TRADITIONAL = _gdi.LANGUAGE_CHINESE_TRADITIONAL -LANGUAGE_CHINESE_HONGKONG = _gdi.LANGUAGE_CHINESE_HONGKONG -LANGUAGE_CHINESE_MACAU = _gdi.LANGUAGE_CHINESE_MACAU -LANGUAGE_CHINESE_SINGAPORE = _gdi.LANGUAGE_CHINESE_SINGAPORE -LANGUAGE_CHINESE_TAIWAN = _gdi.LANGUAGE_CHINESE_TAIWAN -LANGUAGE_CORSICAN = _gdi.LANGUAGE_CORSICAN -LANGUAGE_CROATIAN = _gdi.LANGUAGE_CROATIAN -LANGUAGE_CZECH = _gdi.LANGUAGE_CZECH -LANGUAGE_DANISH = _gdi.LANGUAGE_DANISH -LANGUAGE_DUTCH = _gdi.LANGUAGE_DUTCH -LANGUAGE_DUTCH_BELGIAN = _gdi.LANGUAGE_DUTCH_BELGIAN -LANGUAGE_ENGLISH = _gdi.LANGUAGE_ENGLISH -LANGUAGE_ENGLISH_UK = _gdi.LANGUAGE_ENGLISH_UK -LANGUAGE_ENGLISH_US = _gdi.LANGUAGE_ENGLISH_US -LANGUAGE_ENGLISH_AUSTRALIA = _gdi.LANGUAGE_ENGLISH_AUSTRALIA -LANGUAGE_ENGLISH_BELIZE = _gdi.LANGUAGE_ENGLISH_BELIZE -LANGUAGE_ENGLISH_BOTSWANA = _gdi.LANGUAGE_ENGLISH_BOTSWANA -LANGUAGE_ENGLISH_CANADA = _gdi.LANGUAGE_ENGLISH_CANADA -LANGUAGE_ENGLISH_CARIBBEAN = _gdi.LANGUAGE_ENGLISH_CARIBBEAN -LANGUAGE_ENGLISH_DENMARK = _gdi.LANGUAGE_ENGLISH_DENMARK -LANGUAGE_ENGLISH_EIRE = _gdi.LANGUAGE_ENGLISH_EIRE -LANGUAGE_ENGLISH_JAMAICA = _gdi.LANGUAGE_ENGLISH_JAMAICA -LANGUAGE_ENGLISH_NEW_ZEALAND = _gdi.LANGUAGE_ENGLISH_NEW_ZEALAND -LANGUAGE_ENGLISH_PHILIPPINES = _gdi.LANGUAGE_ENGLISH_PHILIPPINES -LANGUAGE_ENGLISH_SOUTH_AFRICA = _gdi.LANGUAGE_ENGLISH_SOUTH_AFRICA -LANGUAGE_ENGLISH_TRINIDAD = _gdi.LANGUAGE_ENGLISH_TRINIDAD -LANGUAGE_ENGLISH_ZIMBABWE = _gdi.LANGUAGE_ENGLISH_ZIMBABWE -LANGUAGE_ESPERANTO = _gdi.LANGUAGE_ESPERANTO -LANGUAGE_ESTONIAN = _gdi.LANGUAGE_ESTONIAN -LANGUAGE_FAEROESE = _gdi.LANGUAGE_FAEROESE -LANGUAGE_FARSI = _gdi.LANGUAGE_FARSI -LANGUAGE_FIJI = _gdi.LANGUAGE_FIJI -LANGUAGE_FINNISH = _gdi.LANGUAGE_FINNISH -LANGUAGE_FRENCH = _gdi.LANGUAGE_FRENCH -LANGUAGE_FRENCH_BELGIAN = _gdi.LANGUAGE_FRENCH_BELGIAN -LANGUAGE_FRENCH_CANADIAN = _gdi.LANGUAGE_FRENCH_CANADIAN -LANGUAGE_FRENCH_LUXEMBOURG = _gdi.LANGUAGE_FRENCH_LUXEMBOURG -LANGUAGE_FRENCH_MONACO = _gdi.LANGUAGE_FRENCH_MONACO -LANGUAGE_FRENCH_SWISS = _gdi.LANGUAGE_FRENCH_SWISS -LANGUAGE_FRISIAN = _gdi.LANGUAGE_FRISIAN -LANGUAGE_GALICIAN = _gdi.LANGUAGE_GALICIAN -LANGUAGE_GEORGIAN = _gdi.LANGUAGE_GEORGIAN -LANGUAGE_GERMAN = _gdi.LANGUAGE_GERMAN -LANGUAGE_GERMAN_AUSTRIAN = _gdi.LANGUAGE_GERMAN_AUSTRIAN -LANGUAGE_GERMAN_BELGIUM = _gdi.LANGUAGE_GERMAN_BELGIUM -LANGUAGE_GERMAN_LIECHTENSTEIN = _gdi.LANGUAGE_GERMAN_LIECHTENSTEIN -LANGUAGE_GERMAN_LUXEMBOURG = _gdi.LANGUAGE_GERMAN_LUXEMBOURG -LANGUAGE_GERMAN_SWISS = _gdi.LANGUAGE_GERMAN_SWISS -LANGUAGE_GREEK = _gdi.LANGUAGE_GREEK -LANGUAGE_GREENLANDIC = _gdi.LANGUAGE_GREENLANDIC -LANGUAGE_GUARANI = _gdi.LANGUAGE_GUARANI -LANGUAGE_GUJARATI = _gdi.LANGUAGE_GUJARATI -LANGUAGE_HAUSA = _gdi.LANGUAGE_HAUSA -LANGUAGE_HEBREW = _gdi.LANGUAGE_HEBREW -LANGUAGE_HINDI = _gdi.LANGUAGE_HINDI -LANGUAGE_HUNGARIAN = _gdi.LANGUAGE_HUNGARIAN -LANGUAGE_ICELANDIC = _gdi.LANGUAGE_ICELANDIC -LANGUAGE_INDONESIAN = _gdi.LANGUAGE_INDONESIAN -LANGUAGE_INTERLINGUA = _gdi.LANGUAGE_INTERLINGUA -LANGUAGE_INTERLINGUE = _gdi.LANGUAGE_INTERLINGUE -LANGUAGE_INUKTITUT = _gdi.LANGUAGE_INUKTITUT -LANGUAGE_INUPIAK = _gdi.LANGUAGE_INUPIAK -LANGUAGE_IRISH = _gdi.LANGUAGE_IRISH -LANGUAGE_ITALIAN = _gdi.LANGUAGE_ITALIAN -LANGUAGE_ITALIAN_SWISS = _gdi.LANGUAGE_ITALIAN_SWISS -LANGUAGE_JAPANESE = _gdi.LANGUAGE_JAPANESE -LANGUAGE_JAVANESE = _gdi.LANGUAGE_JAVANESE -LANGUAGE_KANNADA = _gdi.LANGUAGE_KANNADA -LANGUAGE_KASHMIRI = _gdi.LANGUAGE_KASHMIRI -LANGUAGE_KASHMIRI_INDIA = _gdi.LANGUAGE_KASHMIRI_INDIA -LANGUAGE_KAZAKH = _gdi.LANGUAGE_KAZAKH -LANGUAGE_KERNEWEK = _gdi.LANGUAGE_KERNEWEK -LANGUAGE_KINYARWANDA = _gdi.LANGUAGE_KINYARWANDA -LANGUAGE_KIRGHIZ = _gdi.LANGUAGE_KIRGHIZ -LANGUAGE_KIRUNDI = _gdi.LANGUAGE_KIRUNDI -LANGUAGE_KONKANI = _gdi.LANGUAGE_KONKANI -LANGUAGE_KOREAN = _gdi.LANGUAGE_KOREAN -LANGUAGE_KURDISH = _gdi.LANGUAGE_KURDISH -LANGUAGE_LAOTHIAN = _gdi.LANGUAGE_LAOTHIAN -LANGUAGE_LATIN = _gdi.LANGUAGE_LATIN -LANGUAGE_LATVIAN = _gdi.LANGUAGE_LATVIAN -LANGUAGE_LINGALA = _gdi.LANGUAGE_LINGALA -LANGUAGE_LITHUANIAN = _gdi.LANGUAGE_LITHUANIAN -LANGUAGE_MACEDONIAN = _gdi.LANGUAGE_MACEDONIAN -LANGUAGE_MALAGASY = _gdi.LANGUAGE_MALAGASY -LANGUAGE_MALAY = _gdi.LANGUAGE_MALAY -LANGUAGE_MALAYALAM = _gdi.LANGUAGE_MALAYALAM -LANGUAGE_MALAY_BRUNEI_DARUSSALAM = _gdi.LANGUAGE_MALAY_BRUNEI_DARUSSALAM -LANGUAGE_MALAY_MALAYSIA = _gdi.LANGUAGE_MALAY_MALAYSIA -LANGUAGE_MALTESE = _gdi.LANGUAGE_MALTESE -LANGUAGE_MANIPURI = _gdi.LANGUAGE_MANIPURI -LANGUAGE_MAORI = _gdi.LANGUAGE_MAORI -LANGUAGE_MARATHI = _gdi.LANGUAGE_MARATHI -LANGUAGE_MOLDAVIAN = _gdi.LANGUAGE_MOLDAVIAN -LANGUAGE_MONGOLIAN = _gdi.LANGUAGE_MONGOLIAN -LANGUAGE_NAURU = _gdi.LANGUAGE_NAURU -LANGUAGE_NEPALI = _gdi.LANGUAGE_NEPALI -LANGUAGE_NEPALI_INDIA = _gdi.LANGUAGE_NEPALI_INDIA -LANGUAGE_NORWEGIAN_BOKMAL = _gdi.LANGUAGE_NORWEGIAN_BOKMAL -LANGUAGE_NORWEGIAN_NYNORSK = _gdi.LANGUAGE_NORWEGIAN_NYNORSK -LANGUAGE_OCCITAN = _gdi.LANGUAGE_OCCITAN -LANGUAGE_ORIYA = _gdi.LANGUAGE_ORIYA -LANGUAGE_OROMO = _gdi.LANGUAGE_OROMO -LANGUAGE_PASHTO = _gdi.LANGUAGE_PASHTO -LANGUAGE_POLISH = _gdi.LANGUAGE_POLISH -LANGUAGE_PORTUGUESE = _gdi.LANGUAGE_PORTUGUESE -LANGUAGE_PORTUGUESE_BRAZILIAN = _gdi.LANGUAGE_PORTUGUESE_BRAZILIAN -LANGUAGE_PUNJABI = _gdi.LANGUAGE_PUNJABI -LANGUAGE_QUECHUA = _gdi.LANGUAGE_QUECHUA -LANGUAGE_RHAETO_ROMANCE = _gdi.LANGUAGE_RHAETO_ROMANCE -LANGUAGE_ROMANIAN = _gdi.LANGUAGE_ROMANIAN -LANGUAGE_RUSSIAN = _gdi.LANGUAGE_RUSSIAN -LANGUAGE_RUSSIAN_UKRAINE = _gdi.LANGUAGE_RUSSIAN_UKRAINE -LANGUAGE_SAMOAN = _gdi.LANGUAGE_SAMOAN -LANGUAGE_SANGHO = _gdi.LANGUAGE_SANGHO -LANGUAGE_SANSKRIT = _gdi.LANGUAGE_SANSKRIT -LANGUAGE_SCOTS_GAELIC = _gdi.LANGUAGE_SCOTS_GAELIC -LANGUAGE_SERBIAN = _gdi.LANGUAGE_SERBIAN -LANGUAGE_SERBIAN_CYRILLIC = _gdi.LANGUAGE_SERBIAN_CYRILLIC -LANGUAGE_SERBIAN_LATIN = _gdi.LANGUAGE_SERBIAN_LATIN -LANGUAGE_SERBO_CROATIAN = _gdi.LANGUAGE_SERBO_CROATIAN -LANGUAGE_SESOTHO = _gdi.LANGUAGE_SESOTHO -LANGUAGE_SETSWANA = _gdi.LANGUAGE_SETSWANA -LANGUAGE_SHONA = _gdi.LANGUAGE_SHONA -LANGUAGE_SINDHI = _gdi.LANGUAGE_SINDHI -LANGUAGE_SINHALESE = _gdi.LANGUAGE_SINHALESE -LANGUAGE_SISWATI = _gdi.LANGUAGE_SISWATI -LANGUAGE_SLOVAK = _gdi.LANGUAGE_SLOVAK -LANGUAGE_SLOVENIAN = _gdi.LANGUAGE_SLOVENIAN -LANGUAGE_SOMALI = _gdi.LANGUAGE_SOMALI -LANGUAGE_SPANISH = _gdi.LANGUAGE_SPANISH -LANGUAGE_SPANISH_ARGENTINA = _gdi.LANGUAGE_SPANISH_ARGENTINA -LANGUAGE_SPANISH_BOLIVIA = _gdi.LANGUAGE_SPANISH_BOLIVIA -LANGUAGE_SPANISH_CHILE = _gdi.LANGUAGE_SPANISH_CHILE -LANGUAGE_SPANISH_COLOMBIA = _gdi.LANGUAGE_SPANISH_COLOMBIA -LANGUAGE_SPANISH_COSTA_RICA = _gdi.LANGUAGE_SPANISH_COSTA_RICA -LANGUAGE_SPANISH_DOMINICAN_REPUBLIC = _gdi.LANGUAGE_SPANISH_DOMINICAN_REPUBLIC -LANGUAGE_SPANISH_ECUADOR = _gdi.LANGUAGE_SPANISH_ECUADOR -LANGUAGE_SPANISH_EL_SALVADOR = _gdi.LANGUAGE_SPANISH_EL_SALVADOR -LANGUAGE_SPANISH_GUATEMALA = _gdi.LANGUAGE_SPANISH_GUATEMALA -LANGUAGE_SPANISH_HONDURAS = _gdi.LANGUAGE_SPANISH_HONDURAS -LANGUAGE_SPANISH_MEXICAN = _gdi.LANGUAGE_SPANISH_MEXICAN -LANGUAGE_SPANISH_MODERN = _gdi.LANGUAGE_SPANISH_MODERN -LANGUAGE_SPANISH_NICARAGUA = _gdi.LANGUAGE_SPANISH_NICARAGUA -LANGUAGE_SPANISH_PANAMA = _gdi.LANGUAGE_SPANISH_PANAMA -LANGUAGE_SPANISH_PARAGUAY = _gdi.LANGUAGE_SPANISH_PARAGUAY -LANGUAGE_SPANISH_PERU = _gdi.LANGUAGE_SPANISH_PERU -LANGUAGE_SPANISH_PUERTO_RICO = _gdi.LANGUAGE_SPANISH_PUERTO_RICO -LANGUAGE_SPANISH_URUGUAY = _gdi.LANGUAGE_SPANISH_URUGUAY -LANGUAGE_SPANISH_US = _gdi.LANGUAGE_SPANISH_US -LANGUAGE_SPANISH_VENEZUELA = _gdi.LANGUAGE_SPANISH_VENEZUELA -LANGUAGE_SUNDANESE = _gdi.LANGUAGE_SUNDANESE -LANGUAGE_SWAHILI = _gdi.LANGUAGE_SWAHILI -LANGUAGE_SWEDISH = _gdi.LANGUAGE_SWEDISH -LANGUAGE_SWEDISH_FINLAND = _gdi.LANGUAGE_SWEDISH_FINLAND -LANGUAGE_TAGALOG = _gdi.LANGUAGE_TAGALOG -LANGUAGE_TAJIK = _gdi.LANGUAGE_TAJIK -LANGUAGE_TAMIL = _gdi.LANGUAGE_TAMIL -LANGUAGE_TATAR = _gdi.LANGUAGE_TATAR -LANGUAGE_TELUGU = _gdi.LANGUAGE_TELUGU -LANGUAGE_THAI = _gdi.LANGUAGE_THAI -LANGUAGE_TIBETAN = _gdi.LANGUAGE_TIBETAN -LANGUAGE_TIGRINYA = _gdi.LANGUAGE_TIGRINYA -LANGUAGE_TONGA = _gdi.LANGUAGE_TONGA -LANGUAGE_TSONGA = _gdi.LANGUAGE_TSONGA -LANGUAGE_TURKISH = _gdi.LANGUAGE_TURKISH -LANGUAGE_TURKMEN = _gdi.LANGUAGE_TURKMEN -LANGUAGE_TWI = _gdi.LANGUAGE_TWI -LANGUAGE_UIGHUR = _gdi.LANGUAGE_UIGHUR -LANGUAGE_UKRAINIAN = _gdi.LANGUAGE_UKRAINIAN -LANGUAGE_URDU = _gdi.LANGUAGE_URDU -LANGUAGE_URDU_INDIA = _gdi.LANGUAGE_URDU_INDIA -LANGUAGE_URDU_PAKISTAN = _gdi.LANGUAGE_URDU_PAKISTAN -LANGUAGE_UZBEK = _gdi.LANGUAGE_UZBEK -LANGUAGE_UZBEK_CYRILLIC = _gdi.LANGUAGE_UZBEK_CYRILLIC -LANGUAGE_UZBEK_LATIN = _gdi.LANGUAGE_UZBEK_LATIN -LANGUAGE_VIETNAMESE = _gdi.LANGUAGE_VIETNAMESE -LANGUAGE_VOLAPUK = _gdi.LANGUAGE_VOLAPUK -LANGUAGE_WELSH = _gdi.LANGUAGE_WELSH -LANGUAGE_WOLOF = _gdi.LANGUAGE_WOLOF -LANGUAGE_XHOSA = _gdi.LANGUAGE_XHOSA -LANGUAGE_YIDDISH = _gdi.LANGUAGE_YIDDISH -LANGUAGE_YORUBA = _gdi.LANGUAGE_YORUBA -LANGUAGE_ZHUANG = _gdi.LANGUAGE_ZHUANG -LANGUAGE_ZULU = _gdi.LANGUAGE_ZULU -LANGUAGE_USER_DEFINED = _gdi.LANGUAGE_USER_DEFINED -class LanguageInfo(object): - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxLanguageInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - Language = property(_gdi.LanguageInfo_Language_get, _gdi.LanguageInfo_Language_set) - CanonicalName = property(_gdi.LanguageInfo_CanonicalName_get, _gdi.LanguageInfo_CanonicalName_set) - Description = property(_gdi.LanguageInfo_Description_get, _gdi.LanguageInfo_Description_set) - -class LanguageInfoPtr(LanguageInfo): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = LanguageInfo -_gdi.LanguageInfo_swigregister(LanguageInfoPtr) - -LOCALE_CAT_NUMBER = _gdi.LOCALE_CAT_NUMBER -LOCALE_CAT_DATE = _gdi.LOCALE_CAT_DATE -LOCALE_CAT_MONEY = _gdi.LOCALE_CAT_MONEY -LOCALE_CAT_MAX = _gdi.LOCALE_CAT_MAX -LOCALE_THOUSANDS_SEP = _gdi.LOCALE_THOUSANDS_SEP -LOCALE_DECIMAL_POINT = _gdi.LOCALE_DECIMAL_POINT -LOCALE_LOAD_DEFAULT = _gdi.LOCALE_LOAD_DEFAULT -LOCALE_CONV_ENCODING = _gdi.LOCALE_CONV_ENCODING -class Locale(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxLocale instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int language=LANGUAGE_DEFAULT, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> Locale""" - newobj = _gdi.new_Locale(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_gdi.delete_Locale): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Init1(*args, **kwargs): - """ - Init1(self, String szName, String szShort=EmptyString, String szLocale=EmptyString, - bool bLoadDefault=True, - bool bConvertEncoding=False) -> bool - """ - return _gdi.Locale_Init1(*args, **kwargs) - - def Init2(*args, **kwargs): - """Init2(self, int language=LANGUAGE_DEFAULT, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> bool""" - return _gdi.Locale_Init2(*args, **kwargs) - - def Init(self, *_args, **_kwargs): - if type(_args[0]) in [type(''), type(u'')]: - val = self.Init1(*_args, **_kwargs) - else: - val = self.Init2(*_args, **_kwargs) - return val - - def GetSystemLanguage(*args, **kwargs): - """Locale.GetSystemLanguage() -> int""" - return _gdi.Locale_GetSystemLanguage(*args, **kwargs) - - GetSystemLanguage = staticmethod(GetSystemLanguage) - def GetSystemEncoding(*args, **kwargs): - """Locale.GetSystemEncoding() -> int""" - return _gdi.Locale_GetSystemEncoding(*args, **kwargs) - - GetSystemEncoding = staticmethod(GetSystemEncoding) - def GetSystemEncodingName(*args, **kwargs): - """Locale.GetSystemEncodingName() -> String""" - return _gdi.Locale_GetSystemEncodingName(*args, **kwargs) - - GetSystemEncodingName = staticmethod(GetSystemEncodingName) - def IsOk(*args, **kwargs): - """IsOk(self) -> bool""" - return _gdi.Locale_IsOk(*args, **kwargs) - - def __nonzero__(self): return self.IsOk() - def GetLocale(*args, **kwargs): - """GetLocale(self) -> String""" - return _gdi.Locale_GetLocale(*args, **kwargs) - - def GetLanguage(*args, **kwargs): - """GetLanguage(self) -> int""" - return _gdi.Locale_GetLanguage(*args, **kwargs) - - def GetSysName(*args, **kwargs): - """GetSysName(self) -> String""" - return _gdi.Locale_GetSysName(*args, **kwargs) - - def GetCanonicalName(*args, **kwargs): - """GetCanonicalName(self) -> String""" - return _gdi.Locale_GetCanonicalName(*args, **kwargs) - - def AddCatalogLookupPathPrefix(*args, **kwargs): - """Locale.AddCatalogLookupPathPrefix(String prefix)""" - return _gdi.Locale_AddCatalogLookupPathPrefix(*args, **kwargs) - - AddCatalogLookupPathPrefix = staticmethod(AddCatalogLookupPathPrefix) - def AddCatalog(*args, **kwargs): - """AddCatalog(self, String szDomain) -> bool""" - return _gdi.Locale_AddCatalog(*args, **kwargs) - - def IsLoaded(*args, **kwargs): - """IsLoaded(self, String szDomain) -> bool""" - return _gdi.Locale_IsLoaded(*args, **kwargs) - - def GetLanguageInfo(*args, **kwargs): - """Locale.GetLanguageInfo(int lang) -> LanguageInfo""" - return _gdi.Locale_GetLanguageInfo(*args, **kwargs) - - GetLanguageInfo = staticmethod(GetLanguageInfo) - def GetLanguageName(*args, **kwargs): - """Locale.GetLanguageName(int lang) -> String""" - return _gdi.Locale_GetLanguageName(*args, **kwargs) - - GetLanguageName = staticmethod(GetLanguageName) - def FindLanguageInfo(*args, **kwargs): - """Locale.FindLanguageInfo(String locale) -> LanguageInfo""" - return _gdi.Locale_FindLanguageInfo(*args, **kwargs) - - FindLanguageInfo = staticmethod(FindLanguageInfo) - def AddLanguage(*args, **kwargs): - """Locale.AddLanguage(LanguageInfo info)""" - return _gdi.Locale_AddLanguage(*args, **kwargs) - - AddLanguage = staticmethod(AddLanguage) - def GetString(*args, **kwargs): - """GetString(self, String szOrigString, String szDomain=EmptyString) -> String""" - return _gdi.Locale_GetString(*args, **kwargs) - - def GetName(*args, **kwargs): - """GetName(self) -> String""" - return _gdi.Locale_GetName(*args, **kwargs) - - -class LocalePtr(Locale): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Locale -_gdi.Locale_swigregister(LocalePtr) - -def Locale_GetSystemLanguage(*args, **kwargs): - """Locale_GetSystemLanguage() -> int""" - return _gdi.Locale_GetSystemLanguage(*args, **kwargs) - -def Locale_GetSystemEncoding(*args, **kwargs): - """Locale_GetSystemEncoding() -> int""" - return _gdi.Locale_GetSystemEncoding(*args, **kwargs) - -def Locale_GetSystemEncodingName(*args, **kwargs): - """Locale_GetSystemEncodingName() -> String""" - return _gdi.Locale_GetSystemEncodingName(*args, **kwargs) - -def Locale_AddCatalogLookupPathPrefix(*args, **kwargs): - """Locale_AddCatalogLookupPathPrefix(String prefix)""" - return _gdi.Locale_AddCatalogLookupPathPrefix(*args, **kwargs) - -def Locale_GetLanguageInfo(*args, **kwargs): - """Locale_GetLanguageInfo(int lang) -> LanguageInfo""" - return _gdi.Locale_GetLanguageInfo(*args, **kwargs) - -def Locale_GetLanguageName(*args, **kwargs): - """Locale_GetLanguageName(int lang) -> String""" - return _gdi.Locale_GetLanguageName(*args, **kwargs) - -def Locale_FindLanguageInfo(*args, **kwargs): - """Locale_FindLanguageInfo(String locale) -> LanguageInfo""" - return _gdi.Locale_FindLanguageInfo(*args, **kwargs) - -def Locale_AddLanguage(*args, **kwargs): - """Locale_AddLanguage(LanguageInfo info)""" - return _gdi.Locale_AddLanguage(*args, **kwargs) - - -def GetLocale(*args, **kwargs): - """GetLocale() -> Locale""" - return _gdi.GetLocale(*args, **kwargs) -#--------------------------------------------------------------------------- - -CONVERT_STRICT = _gdi.CONVERT_STRICT -CONVERT_SUBSTITUTE = _gdi.CONVERT_SUBSTITUTE -PLATFORM_CURRENT = _gdi.PLATFORM_CURRENT -PLATFORM_UNIX = _gdi.PLATFORM_UNIX -PLATFORM_WINDOWS = _gdi.PLATFORM_WINDOWS -PLATFORM_OS2 = _gdi.PLATFORM_OS2 -PLATFORM_MAC = _gdi.PLATFORM_MAC -class EncodingConverter(core.Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxEncodingConverter instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> EncodingConverter""" - newobj = _gdi.new_EncodingConverter(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_gdi.delete_EncodingConverter): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Init(*args, **kwargs): - """Init(self, int input_enc, int output_enc, int method=CONVERT_STRICT) -> bool""" - return _gdi.EncodingConverter_Init(*args, **kwargs) - - def Convert(*args, **kwargs): - """Convert(self, String input) -> String""" - return _gdi.EncodingConverter_Convert(*args, **kwargs) - - def GetPlatformEquivalents(*args, **kwargs): - """EncodingConverter.GetPlatformEquivalents(int enc, int platform=PLATFORM_CURRENT) -> wxFontEncodingArray""" - return _gdi.EncodingConverter_GetPlatformEquivalents(*args, **kwargs) - - GetPlatformEquivalents = staticmethod(GetPlatformEquivalents) - def GetAllEquivalents(*args, **kwargs): - """EncodingConverter.GetAllEquivalents(int enc) -> wxFontEncodingArray""" - return _gdi.EncodingConverter_GetAllEquivalents(*args, **kwargs) - - GetAllEquivalents = staticmethod(GetAllEquivalents) - def CanConvert(*args, **kwargs): - """EncodingConverter.CanConvert(int encIn, int encOut) -> bool""" - return _gdi.EncodingConverter_CanConvert(*args, **kwargs) - - CanConvert = staticmethod(CanConvert) - def __nonzero__(self): return self.IsOk() - -class EncodingConverterPtr(EncodingConverter): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = EncodingConverter -_gdi.EncodingConverter_swigregister(EncodingConverterPtr) - -def GetTranslation(*args): - """ - GetTranslation(String str) -> String - GetTranslation(String str, String strPlural, size_t n) -> String - """ - return _gdi.GetTranslation(*args) - -def EncodingConverter_GetPlatformEquivalents(*args, **kwargs): - """EncodingConverter_GetPlatformEquivalents(int enc, int platform=PLATFORM_CURRENT) -> wxFontEncodingArray""" - return _gdi.EncodingConverter_GetPlatformEquivalents(*args, **kwargs) - -def EncodingConverter_GetAllEquivalents(*args, **kwargs): - """EncodingConverter_GetAllEquivalents(int enc) -> wxFontEncodingArray""" - return _gdi.EncodingConverter_GetAllEquivalents(*args, **kwargs) - -def EncodingConverter_CanConvert(*args, **kwargs): - """EncodingConverter_CanConvert(int encIn, int encOut) -> bool""" - return _gdi.EncodingConverter_CanConvert(*args, **kwargs) - -#---------------------------------------------------------------------------- -# wxGTK sets the locale when initialized. Doing this at the Python -# level should set it up to match what GTK is doing at the C level. -if wx.Platform == "__WXGTK__": - try: - import locale - locale.setlocale(locale.LC_ALL, "") - except: - pass - -# On MSW add the directory where the wxWindows catalogs were installed -# to the default catalog path. -if wx.Platform == "__WXMSW__": - import os - localedir = os.path.join(os.path.split(__file__)[0], "locale") - Locale_AddCatalogLookupPathPrefix(localedir) - del os - -#---------------------------------------------------------------------------- - -#--------------------------------------------------------------------------- - -class DC(core.Object): - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __del__(self, destroy=_gdi.delete_DC): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def BeginDrawing(*args, **kwargs): - """BeginDrawing(self)""" - return _gdi.DC_BeginDrawing(*args, **kwargs) - - def EndDrawing(*args, **kwargs): - """EndDrawing(self)""" - return _gdi.DC_EndDrawing(*args, **kwargs) - - def FloodFillXY(*args, **kwargs): - """FloodFillXY(self, int x, int y, Colour col, int style=FLOOD_SURFACE) -> bool""" - return _gdi.DC_FloodFillXY(*args, **kwargs) - - def FloodFill(*args, **kwargs): - """FloodFill(self, Point pt, Colour col, int style=FLOOD_SURFACE) -> bool""" - return _gdi.DC_FloodFill(*args, **kwargs) - - def GetPixelXY(*args, **kwargs): - """GetPixelXY(self, int x, int y) -> Colour""" - return _gdi.DC_GetPixelXY(*args, **kwargs) - - def GetPixel(*args, **kwargs): - """GetPixel(self, Point pt) -> Colour""" - return _gdi.DC_GetPixel(*args, **kwargs) - - def DrawLineXY(*args, **kwargs): - """DrawLineXY(self, int x1, int y1, int x2, int y2)""" - return _gdi.DC_DrawLineXY(*args, **kwargs) - - def DrawLine(*args, **kwargs): - """DrawLine(self, Point pt1, Point pt2)""" - return _gdi.DC_DrawLine(*args, **kwargs) - - def CrossHairXY(*args, **kwargs): - """CrossHairXY(self, int x, int y)""" - return _gdi.DC_CrossHairXY(*args, **kwargs) - - def CrossHair(*args, **kwargs): - """CrossHair(self, Point pt)""" - return _gdi.DC_CrossHair(*args, **kwargs) - - def DrawArcXY(*args, **kwargs): - """DrawArcXY(self, int x1, int y1, int x2, int y2, int xc, int yc)""" - return _gdi.DC_DrawArcXY(*args, **kwargs) - - def DrawArc(*args, **kwargs): - """DrawArc(self, Point pt1, Point pt2, Point centre)""" - return _gdi.DC_DrawArc(*args, **kwargs) - - def DrawCheckMarkXY(*args, **kwargs): - """DrawCheckMarkXY(self, int x, int y, int width, int height)""" - return _gdi.DC_DrawCheckMarkXY(*args, **kwargs) - - def DrawCheckMark(*args, **kwargs): - """DrawCheckMark(self, Rect rect)""" - return _gdi.DC_DrawCheckMark(*args, **kwargs) - - def DrawEllipticArcXY(*args, **kwargs): - """DrawEllipticArcXY(self, int x, int y, int w, int h, double sa, double ea)""" - return _gdi.DC_DrawEllipticArcXY(*args, **kwargs) - - def DrawEllipticArc(*args, **kwargs): - """DrawEllipticArc(self, Point pt, Size sz, double sa, double ea)""" - return _gdi.DC_DrawEllipticArc(*args, **kwargs) - - def DrawPointXY(*args, **kwargs): - """DrawPointXY(self, int x, int y)""" - return _gdi.DC_DrawPointXY(*args, **kwargs) - - def DrawPoint(*args, **kwargs): - """DrawPoint(self, Point pt)""" - return _gdi.DC_DrawPoint(*args, **kwargs) - - def DrawRectangleXY(*args, **kwargs): - """DrawRectangleXY(self, int x, int y, int width, int height)""" - return _gdi.DC_DrawRectangleXY(*args, **kwargs) - - def DrawRectangle(*args, **kwargs): - """DrawRectangle(self, Point pt, Size sz)""" - return _gdi.DC_DrawRectangle(*args, **kwargs) - - def DrawRectangleRect(*args, **kwargs): - """DrawRectangleRect(self, Rect rect)""" - return _gdi.DC_DrawRectangleRect(*args, **kwargs) - - def DrawRoundedRectangleXY(*args, **kwargs): - """DrawRoundedRectangleXY(self, int x, int y, int width, int height, double radius)""" - return _gdi.DC_DrawRoundedRectangleXY(*args, **kwargs) - - def DrawRoundedRectangle(*args, **kwargs): - """DrawRoundedRectangle(self, Point pt, Size sz, double radius)""" - return _gdi.DC_DrawRoundedRectangle(*args, **kwargs) - - def DrawRoundedRectangleRect(*args, **kwargs): - """DrawRoundedRectangleRect(self, Rect r, double radius)""" - return _gdi.DC_DrawRoundedRectangleRect(*args, **kwargs) - - def DrawCircleXY(*args, **kwargs): - """DrawCircleXY(self, int x, int y, int radius)""" - return _gdi.DC_DrawCircleXY(*args, **kwargs) - - def DrawCircle(*args, **kwargs): - """DrawCircle(self, Point pt, int radius)""" - return _gdi.DC_DrawCircle(*args, **kwargs) - - def DrawEllipseXY(*args, **kwargs): - """DrawEllipseXY(self, int x, int y, int width, int height)""" - return _gdi.DC_DrawEllipseXY(*args, **kwargs) - - def DrawEllipse(*args, **kwargs): - """DrawEllipse(self, Point pt, Size sz)""" - return _gdi.DC_DrawEllipse(*args, **kwargs) - - def DrawEllipseRect(*args, **kwargs): - """DrawEllipseRect(self, Rect rect)""" - return _gdi.DC_DrawEllipseRect(*args, **kwargs) - - def DrawIconXY(*args, **kwargs): - """DrawIconXY(self, Icon icon, int x, int y)""" - return _gdi.DC_DrawIconXY(*args, **kwargs) - - def DrawIcon(*args, **kwargs): - """DrawIcon(self, Icon icon, Point pt)""" - return _gdi.DC_DrawIcon(*args, **kwargs) - - def DrawBitmapXY(*args, **kwargs): - """DrawBitmapXY(self, Bitmap bmp, int x, int y, bool useMask=False)""" - return _gdi.DC_DrawBitmapXY(*args, **kwargs) - - def DrawBitmap(*args, **kwargs): - """DrawBitmap(self, Bitmap bmp, Point pt, bool useMask=False)""" - return _gdi.DC_DrawBitmap(*args, **kwargs) - - def DrawTextXY(*args, **kwargs): - """DrawTextXY(self, String text, int x, int y)""" - return _gdi.DC_DrawTextXY(*args, **kwargs) - - def DrawText(*args, **kwargs): - """DrawText(self, String text, Point pt)""" - return _gdi.DC_DrawText(*args, **kwargs) - - def DrawRotatedTextXY(*args, **kwargs): - """DrawRotatedTextXY(self, String text, int x, int y, double angle)""" - return _gdi.DC_DrawRotatedTextXY(*args, **kwargs) - - def DrawRotatedText(*args, **kwargs): - """DrawRotatedText(self, String text, Point pt, double angle)""" - return _gdi.DC_DrawRotatedText(*args, **kwargs) - - def BlitXY(*args, **kwargs): - """ - BlitXY(self, int xdest, int ydest, int width, int height, DC source, - int xsrc, int ysrc, int rop=COPY, bool useMask=False, - int xsrcMask=-1, int ysrcMask=-1) -> bool - """ - return _gdi.DC_BlitXY(*args, **kwargs) - - def Blit(*args, **kwargs): - """ - Blit(self, Point destPt, Size sz, DC source, Point srcPt, int rop=COPY, - bool useMask=False, Point srcPtMask=DefaultPosition) -> bool - """ - return _gdi.DC_Blit(*args, **kwargs) - - def DrawLines(*args, **kwargs): - """DrawLines(self, int points, Point points_array, int xoffset=0, int yoffset=0)""" - return _gdi.DC_DrawLines(*args, **kwargs) - - def DrawPolygon(*args, **kwargs): - """ - DrawPolygon(self, int points, Point points_array, int xoffset=0, int yoffset=0, - int fillStyle=ODDEVEN_RULE) - """ - return _gdi.DC_DrawPolygon(*args, **kwargs) - - def DrawLabel(*args, **kwargs): - """ - DrawLabel(self, String text, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP, - int indexAccel=-1) - """ - return _gdi.DC_DrawLabel(*args, **kwargs) - - def DrawImageLabel(*args, **kwargs): - """ - DrawImageLabel(self, String text, Bitmap image, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP, - int indexAccel=-1) -> Rect - """ - return _gdi.DC_DrawImageLabel(*args, **kwargs) - - def DrawSpline(*args, **kwargs): - """DrawSpline(self, int points, Point points_array)""" - return _gdi.DC_DrawSpline(*args, **kwargs) - - def Clear(*args, **kwargs): - """Clear(self)""" - return _gdi.DC_Clear(*args, **kwargs) - - def StartDoc(*args, **kwargs): - """StartDoc(self, String message) -> bool""" - return _gdi.DC_StartDoc(*args, **kwargs) - - def EndDoc(*args, **kwargs): - """EndDoc(self)""" - return _gdi.DC_EndDoc(*args, **kwargs) - - def StartPage(*args, **kwargs): - """StartPage(self)""" - return _gdi.DC_StartPage(*args, **kwargs) - - def EndPage(*args, **kwargs): - """EndPage(self)""" - return _gdi.DC_EndPage(*args, **kwargs) - - def SetFont(*args, **kwargs): - """SetFont(self, Font font)""" - return _gdi.DC_SetFont(*args, **kwargs) - - def SetPen(*args, **kwargs): - """SetPen(self, Pen pen)""" - return _gdi.DC_SetPen(*args, **kwargs) - - def SetBrush(*args, **kwargs): - """SetBrush(self, Brush brush)""" - return _gdi.DC_SetBrush(*args, **kwargs) - - def SetBackground(*args, **kwargs): - """SetBackground(self, Brush brush)""" - return _gdi.DC_SetBackground(*args, **kwargs) - - def SetBackgroundMode(*args, **kwargs): - """SetBackgroundMode(self, int mode)""" - return _gdi.DC_SetBackgroundMode(*args, **kwargs) - - def SetPalette(*args, **kwargs): - """SetPalette(self, Palette palette)""" - return _gdi.DC_SetPalette(*args, **kwargs) - - def SetClippingRegionXY(*args, **kwargs): - """SetClippingRegionXY(self, int x, int y, int width, int height)""" - return _gdi.DC_SetClippingRegionXY(*args, **kwargs) - - def SetClippingRegion(*args, **kwargs): - """SetClippingRegion(self, Point pt, Size sz)""" - return _gdi.DC_SetClippingRegion(*args, **kwargs) - - def SetClippingRect(*args, **kwargs): - """SetClippingRect(self, Rect rect)""" - return _gdi.DC_SetClippingRect(*args, **kwargs) - - def SetClippingRegionAsRegion(*args, **kwargs): - """SetClippingRegionAsRegion(self, Region region)""" - return _gdi.DC_SetClippingRegionAsRegion(*args, **kwargs) - - def DestroyClippingRegion(*args, **kwargs): - """DestroyClippingRegion(self)""" - return _gdi.DC_DestroyClippingRegion(*args, **kwargs) - - def GetClippingBox(*args, **kwargs): - """GetClippingBox() -> (x, y, width, height)""" - return _gdi.DC_GetClippingBox(*args, **kwargs) - - def GetClippingRect(*args, **kwargs): - """GetClippingRect(self) -> Rect""" - return _gdi.DC_GetClippingRect(*args, **kwargs) - - def GetCharHeight(*args, **kwargs): - """GetCharHeight(self) -> int""" - return _gdi.DC_GetCharHeight(*args, **kwargs) - - def GetCharWidth(*args, **kwargs): - """GetCharWidth(self) -> int""" - return _gdi.DC_GetCharWidth(*args, **kwargs) - - def GetTextExtent(*args, **kwargs): - """ - GetTextExtent(wxString string) -> (width, height) - - Get the width and height of the text using the current font. - Only works for single line strings. - """ - return _gdi.DC_GetTextExtent(*args, **kwargs) - - def GetFullTextExtent(*args, **kwargs): - """ - GetFullTextExtent(wxString string, Font font=None) -> - (width, height, descent, externalLeading) - - Get the width, height, decent and leading of the text using the current or specified font. - Only works for single line strings. - """ - return _gdi.DC_GetFullTextExtent(*args, **kwargs) - - def GetMultiLineTextExtent(*args, **kwargs): - """ - GetMultiLineTextExtent(wxString string, Font font=None) -> - (width, height, descent, externalLeading) - - Get the width, height, decent and leading of the text using the current or specified font. - Works for single as well as multi-line strings. - """ - return _gdi.DC_GetMultiLineTextExtent(*args, **kwargs) - - def GetPartialTextExtents(*args, **kwargs): - """GetPartialTextExtents(self, String text) -> wxArrayInt""" - return _gdi.DC_GetPartialTextExtents(*args, **kwargs) - - def GetSize(*args, **kwargs): - """ - GetSize(self) -> Size - - Get the DC size in device units. - """ - return _gdi.DC_GetSize(*args, **kwargs) - - def GetSizeTuple(*args, **kwargs): - """ - GetSizeTuple() -> (width, height) - - Get the DC size in device units. - """ - return _gdi.DC_GetSizeTuple(*args, **kwargs) - - def GetSizeMM(*args, **kwargs): - """ - GetSizeMM(self) -> Size - - Get the DC size in milimeters. - """ - return _gdi.DC_GetSizeMM(*args, **kwargs) - - def GetSizeMMTuple(*args, **kwargs): - """ - GetSizeMMTuple() -> (width, height) - - Get the DC size in milimeters. - """ - return _gdi.DC_GetSizeMMTuple(*args, **kwargs) - - def DeviceToLogicalX(*args, **kwargs): - """DeviceToLogicalX(self, int x) -> int""" - return _gdi.DC_DeviceToLogicalX(*args, **kwargs) - - def DeviceToLogicalY(*args, **kwargs): - """DeviceToLogicalY(self, int y) -> int""" - return _gdi.DC_DeviceToLogicalY(*args, **kwargs) - - def DeviceToLogicalXRel(*args, **kwargs): - """DeviceToLogicalXRel(self, int x) -> int""" - return _gdi.DC_DeviceToLogicalXRel(*args, **kwargs) - - def DeviceToLogicalYRel(*args, **kwargs): - """DeviceToLogicalYRel(self, int y) -> int""" - return _gdi.DC_DeviceToLogicalYRel(*args, **kwargs) - - def LogicalToDeviceX(*args, **kwargs): - """LogicalToDeviceX(self, int x) -> int""" - return _gdi.DC_LogicalToDeviceX(*args, **kwargs) - - def LogicalToDeviceY(*args, **kwargs): - """LogicalToDeviceY(self, int y) -> int""" - return _gdi.DC_LogicalToDeviceY(*args, **kwargs) - - def LogicalToDeviceXRel(*args, **kwargs): - """LogicalToDeviceXRel(self, int x) -> int""" - return _gdi.DC_LogicalToDeviceXRel(*args, **kwargs) - - def LogicalToDeviceYRel(*args, **kwargs): - """LogicalToDeviceYRel(self, int y) -> int""" - return _gdi.DC_LogicalToDeviceYRel(*args, **kwargs) - - def CanDrawBitmap(*args, **kwargs): - """CanDrawBitmap(self) -> bool""" - return _gdi.DC_CanDrawBitmap(*args, **kwargs) - - def CanGetTextExtent(*args, **kwargs): - """CanGetTextExtent(self) -> bool""" - return _gdi.DC_CanGetTextExtent(*args, **kwargs) - - def GetDepth(*args, **kwargs): - """GetDepth(self) -> int""" - return _gdi.DC_GetDepth(*args, **kwargs) - - def GetPPI(*args, **kwargs): - """GetPPI(self) -> Size""" - return _gdi.DC_GetPPI(*args, **kwargs) - - def Ok(*args, **kwargs): - """Ok(self) -> bool""" - return _gdi.DC_Ok(*args, **kwargs) - - def GetBackgroundMode(*args, **kwargs): - """GetBackgroundMode(self) -> int""" - return _gdi.DC_GetBackgroundMode(*args, **kwargs) - - def GetBackground(*args, **kwargs): - """GetBackground(self) -> Brush""" - return _gdi.DC_GetBackground(*args, **kwargs) - - def GetBrush(*args, **kwargs): - """GetBrush(self) -> Brush""" - return _gdi.DC_GetBrush(*args, **kwargs) - - def GetFont(*args, **kwargs): - """GetFont(self) -> Font""" - return _gdi.DC_GetFont(*args, **kwargs) - - def GetPen(*args, **kwargs): - """GetPen(self) -> Pen""" - return _gdi.DC_GetPen(*args, **kwargs) - - def GetTextBackground(*args, **kwargs): - """GetTextBackground(self) -> Colour""" - return _gdi.DC_GetTextBackground(*args, **kwargs) - - def GetTextForeground(*args, **kwargs): - """GetTextForeground(self) -> Colour""" - return _gdi.DC_GetTextForeground(*args, **kwargs) - - def SetTextForeground(*args, **kwargs): - """SetTextForeground(self, Colour colour)""" - return _gdi.DC_SetTextForeground(*args, **kwargs) - - def SetTextBackground(*args, **kwargs): - """SetTextBackground(self, Colour colour)""" - return _gdi.DC_SetTextBackground(*args, **kwargs) - - def GetMapMode(*args, **kwargs): - """GetMapMode(self) -> int""" - return _gdi.DC_GetMapMode(*args, **kwargs) - - def SetMapMode(*args, **kwargs): - """SetMapMode(self, int mode)""" - return _gdi.DC_SetMapMode(*args, **kwargs) - - def GetUserScale(*args, **kwargs): - """GetUserScale() -> (xScale, yScale)""" - return _gdi.DC_GetUserScale(*args, **kwargs) - - def SetUserScale(*args, **kwargs): - """SetUserScale(self, double x, double y)""" - return _gdi.DC_SetUserScale(*args, **kwargs) - - def GetLogicalScale(*args, **kwargs): - """GetLogicalScale() -> (xScale, yScale)""" - return _gdi.DC_GetLogicalScale(*args, **kwargs) - - def SetLogicalScale(*args, **kwargs): - """SetLogicalScale(self, double x, double y)""" - return _gdi.DC_SetLogicalScale(*args, **kwargs) - - def GetLogicalOrigin(*args, **kwargs): - """GetLogicalOrigin(self) -> Point""" - return _gdi.DC_GetLogicalOrigin(*args, **kwargs) - - def GetLogicalOriginTuple(*args, **kwargs): - """GetLogicalOriginTuple() -> (x,y)""" - return _gdi.DC_GetLogicalOriginTuple(*args, **kwargs) - - def SetLogicalOrigin(*args, **kwargs): - """SetLogicalOrigin(self, int x, int y)""" - return _gdi.DC_SetLogicalOrigin(*args, **kwargs) - - def GetDeviceOrigin(*args, **kwargs): - """GetDeviceOrigin(self) -> Point""" - return _gdi.DC_GetDeviceOrigin(*args, **kwargs) - - def GetDeviceOriginTuple(*args, **kwargs): - """GetDeviceOriginTuple() -> (x,y)""" - return _gdi.DC_GetDeviceOriginTuple(*args, **kwargs) - - def SetDeviceOrigin(*args, **kwargs): - """SetDeviceOrigin(self, int x, int y)""" - return _gdi.DC_SetDeviceOrigin(*args, **kwargs) - - def SetAxisOrientation(*args, **kwargs): - """SetAxisOrientation(self, bool xLeftRight, bool yBottomUp)""" - return _gdi.DC_SetAxisOrientation(*args, **kwargs) - - def GetLogicalFunction(*args, **kwargs): - """GetLogicalFunction(self) -> int""" - return _gdi.DC_GetLogicalFunction(*args, **kwargs) - - def SetLogicalFunction(*args, **kwargs): - """SetLogicalFunction(self, int function)""" - return _gdi.DC_SetLogicalFunction(*args, **kwargs) - - def SetOptimization(*args, **kwargs): - """SetOptimization(self, bool opt)""" - return _gdi.DC_SetOptimization(*args, **kwargs) - - def GetOptimization(*args, **kwargs): - """GetOptimization(self) -> bool""" - return _gdi.DC_GetOptimization(*args, **kwargs) - - def CalcBoundingBox(*args, **kwargs): - """CalcBoundingBox(self, int x, int y)""" - return _gdi.DC_CalcBoundingBox(*args, **kwargs) - - def ResetBoundingBox(*args, **kwargs): - """ResetBoundingBox(self)""" - return _gdi.DC_ResetBoundingBox(*args, **kwargs) - - def MinX(*args, **kwargs): - """MinX(self) -> int""" - return _gdi.DC_MinX(*args, **kwargs) - - def MaxX(*args, **kwargs): - """MaxX(self) -> int""" - return _gdi.DC_MaxX(*args, **kwargs) - - def MinY(*args, **kwargs): - """MinY(self) -> int""" - return _gdi.DC_MinY(*args, **kwargs) - - def MaxY(*args, **kwargs): - """MaxY(self) -> int""" - return _gdi.DC_MaxY(*args, **kwargs) - - def GetBoundingBox(*args, **kwargs): - """GetBoundingBox() -> (x1,y1, x2,y2)""" - return _gdi.DC_GetBoundingBox(*args, **kwargs) - - def __nonzero__(self): return self.Ok() - def _DrawPointList(*args, **kwargs): - """_DrawPointList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject""" - return _gdi.DC__DrawPointList(*args, **kwargs) - - def _DrawLineList(*args, **kwargs): - """_DrawLineList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject""" - return _gdi.DC__DrawLineList(*args, **kwargs) - - def _DrawRectangleList(*args, **kwargs): - """_DrawRectangleList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject""" - return _gdi.DC__DrawRectangleList(*args, **kwargs) - - def _DrawEllipseList(*args, **kwargs): - """_DrawEllipseList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject""" - return _gdi.DC__DrawEllipseList(*args, **kwargs) - - def _DrawPolygonList(*args, **kwargs): - """_DrawPolygonList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject""" - return _gdi.DC__DrawPolygonList(*args, **kwargs) - - def _DrawTextList(*args, **kwargs): - """ - _DrawTextList(self, PyObject textList, PyObject pyPoints, PyObject foregroundList, - PyObject backgroundList) -> PyObject - """ - return _gdi.DC__DrawTextList(*args, **kwargs) - - def DrawPointList(self, points, pens=None): - if pens is None: - pens = [] - elif isinstance(pens, wx.Pen): - pens = [pens] - elif len(pens) != len(points): - raise ValueError('points and pens must have same length') - return self._DrawPointList(points, pens, []) - - - def DrawLineList(self, lines, pens=None): - if pens is None: - pens = [] - elif isinstance(pens, wx.Pen): - pens = [pens] - elif len(pens) != len(lines): - raise ValueError('lines and pens must have same length') - return self._DrawLineList(lines, pens, []) - - - def DrawRectangleList(self, rectangles, pens=None, brushes=None): - if pens is None: - pens = [] - elif isinstance(pens, wx.Pen): - pens = [pens] - elif len(pens) != len(rectangles): - raise ValueError('rectangles and pens must have same length') - if brushes is None: - brushes = [] - elif isinstance(brushes, wx.Brush): - brushes = [brushes] - elif len(brushes) != len(rectangles): - raise ValueError('rectangles and brushes must have same length') - return self._DrawRectangleList(rectangles, pens, brushes) - - - def DrawEllipseList(self, ellipses, pens=None, brushes=None): - if pens is None: - pens = [] - elif isinstance(pens, wx.Pen): - pens = [pens] - elif len(pens) != len(ellipses): - raise ValueError('ellipses and pens must have same length') - if brushes is None: - brushes = [] - elif isinstance(brushes, wx.Brush): - brushes = [brushes] - elif len(brushes) != len(ellipses): - raise ValueError('ellipses and brushes must have same length') - return self._DrawEllipseList(ellipses, pens, brushes) - - - def DrawPolygonList(self, polygons, pens=None, brushes=None): - ## Note: This does not currently support fill style or offset - ## you can always use the non-List version if need be. - if pens is None: - pens = [] - elif isinstance(pens, wx.Pen): - pens = [pens] - elif len(pens) != len(polygons): - raise ValueError('polygons and pens must have same length') - if brushes is None: - brushes = [] - elif isinstance(brushes, wx.Brush): - brushes = [brushes] - elif len(brushes) != len(polygons): - raise ValueError('polygons and brushes must have same length') - return self._DrawPolygonList(polygons, pens, brushes) - - - def DrawTextList(self, textList, coords, foregrounds = None, backgrounds = None, fonts = None): - ## NOTE: this does not currently support changing the font - ## Make sure you set Background mode to wxSolid (DC.SetBackgroundMode) - ## If you want backgounds to do anything. - if type(textList) == type(''): - textList = [textList] - elif len(textList) != len(coords): - raise ValueError('textlist and coords must have same length') - if foregrounds is None: - foregrounds = [] - elif isinstance(foregrounds, wx.Colour): - foregrounds = [foregrounds] - elif len(foregrounds) != len(coords): - raise ValueError('foregrounds and coords must have same length') - if backgrounds is None: - backgrounds = [] - elif isinstance(backgrounds, wx.Colour): - backgrounds = [backgrounds] - elif len(backgrounds) != len(coords): - raise ValueError('backgrounds and coords must have same length') - return self._DrawTextList(textList, coords, foregrounds, backgrounds) - - -class DCPtr(DC): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = DC -_gdi.DC_swigregister(DCPtr) - -#--------------------------------------------------------------------------- - -class MemoryDC(DC): - def __repr__(self): - return "<%s.%s; proxy of C++ wxMemoryDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> MemoryDC""" - newobj = _gdi.new_MemoryDC(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def SelectObject(*args, **kwargs): - """SelectObject(self, Bitmap bitmap)""" - return _gdi.MemoryDC_SelectObject(*args, **kwargs) - - -class MemoryDCPtr(MemoryDC): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = MemoryDC -_gdi.MemoryDC_swigregister(MemoryDCPtr) - -def MemoryDCFromDC(*args, **kwargs): - """MemoryDCFromDC(DC oldDC) -> MemoryDC""" - val = _gdi.new_MemoryDCFromDC(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -class BufferedDC(MemoryDC): - def __repr__(self): - return "<%s.%s; proxy of C++ wxBufferedDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args): - """ - __init__(self, DC dc, Bitmap buffer) -> BufferedDC - __init__(self, DC dc, Size area) -> BufferedDC - """ - newobj = _gdi.new_BufferedDC(*args) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._dc = args[0] # save a ref so the other dc will not be deleted before self - - def __del__(self, destroy=_gdi.delete_BufferedDC): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def UnMask(*args, **kwargs): - """UnMask(self)""" - return _gdi.BufferedDC_UnMask(*args, **kwargs) - - -class BufferedDCPtr(BufferedDC): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = BufferedDC -_gdi.BufferedDC_swigregister(BufferedDCPtr) - -def BufferedDCInternalBuffer(*args): - """BufferedDCInternalBuffer(DC dc, Size area) -> BufferedDC""" - val = _gdi.new_BufferedDCInternalBuffer(*args) - val.thisown = 1 - val._dc = args[0] # save a ref so the other dc will not be deleted before self - return val - -class BufferedPaintDC(BufferedDC): - def __repr__(self): - return "<%s.%s; proxy of C++ wxBufferedPaintDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Window window, Bitmap buffer=NullBitmap) -> BufferedPaintDC""" - newobj = _gdi.new_BufferedPaintDC(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class BufferedPaintDCPtr(BufferedPaintDC): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = BufferedPaintDC -_gdi.BufferedPaintDC_swigregister(BufferedPaintDCPtr) - -#--------------------------------------------------------------------------- - -class ScreenDC(DC): - def __repr__(self): - return "<%s.%s; proxy of C++ wxScreenDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> ScreenDC""" - newobj = _gdi.new_ScreenDC(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def StartDrawingOnTopWin(*args, **kwargs): - """StartDrawingOnTopWin(self, Window window) -> bool""" - return _gdi.ScreenDC_StartDrawingOnTopWin(*args, **kwargs) - - def StartDrawingOnTop(*args, **kwargs): - """StartDrawingOnTop(self, Rect rect=None) -> bool""" - return _gdi.ScreenDC_StartDrawingOnTop(*args, **kwargs) - - def EndDrawingOnTop(*args, **kwargs): - """EndDrawingOnTop(self) -> bool""" - return _gdi.ScreenDC_EndDrawingOnTop(*args, **kwargs) - - -class ScreenDCPtr(ScreenDC): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ScreenDC -_gdi.ScreenDC_swigregister(ScreenDCPtr) - -#--------------------------------------------------------------------------- - -class ClientDC(DC): - def __repr__(self): - return "<%s.%s; proxy of C++ wxClientDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Window win) -> ClientDC""" - newobj = _gdi.new_ClientDC(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class ClientDCPtr(ClientDC): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ClientDC -_gdi.ClientDC_swigregister(ClientDCPtr) - -#--------------------------------------------------------------------------- - -class PaintDC(DC): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPaintDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Window win) -> PaintDC""" - newobj = _gdi.new_PaintDC(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class PaintDCPtr(PaintDC): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PaintDC -_gdi.PaintDC_swigregister(PaintDCPtr) - -#--------------------------------------------------------------------------- - -class WindowDC(DC): - def __repr__(self): - return "<%s.%s; proxy of C++ wxWindowDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Window win) -> WindowDC""" - newobj = _gdi.new_WindowDC(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class WindowDCPtr(WindowDC): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = WindowDC -_gdi.WindowDC_swigregister(WindowDCPtr) - -#--------------------------------------------------------------------------- - -class MirrorDC(DC): - def __repr__(self): - return "<%s.%s; proxy of C++ wxMirrorDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, DC dc, bool mirror) -> MirrorDC""" - newobj = _gdi.new_MirrorDC(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class MirrorDCPtr(MirrorDC): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = MirrorDC -_gdi.MirrorDC_swigregister(MirrorDCPtr) - -#--------------------------------------------------------------------------- - -class PostScriptDC(DC): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPostScriptDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, wxPrintData printData) -> PostScriptDC""" - newobj = _gdi.new_PostScriptDC(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetPrintData(*args, **kwargs): - """GetPrintData(self) -> wxPrintData""" - return _gdi.PostScriptDC_GetPrintData(*args, **kwargs) - - def SetPrintData(*args, **kwargs): - """SetPrintData(self, wxPrintData data)""" - return _gdi.PostScriptDC_SetPrintData(*args, **kwargs) - - def SetResolution(*args, **kwargs): - """PostScriptDC.SetResolution(int ppi)""" - return _gdi.PostScriptDC_SetResolution(*args, **kwargs) - - SetResolution = staticmethod(SetResolution) - def GetResolution(*args, **kwargs): - """PostScriptDC.GetResolution() -> int""" - return _gdi.PostScriptDC_GetResolution(*args, **kwargs) - - GetResolution = staticmethod(GetResolution) - -class PostScriptDCPtr(PostScriptDC): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PostScriptDC -_gdi.PostScriptDC_swigregister(PostScriptDCPtr) - -def PostScriptDC_SetResolution(*args, **kwargs): - """PostScriptDC_SetResolution(int ppi)""" - return _gdi.PostScriptDC_SetResolution(*args, **kwargs) - -def PostScriptDC_GetResolution(*args, **kwargs): - """PostScriptDC_GetResolution() -> int""" - return _gdi.PostScriptDC_GetResolution(*args, **kwargs) - -#--------------------------------------------------------------------------- - -class MetaFile(core.Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxMetaFile instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, String filename=EmptyString) -> MetaFile""" - newobj = _gdi.new_MetaFile(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_gdi.delete_MetaFile): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Ok(*args, **kwargs): - """Ok(self) -> bool""" - return _gdi.MetaFile_Ok(*args, **kwargs) - - def SetClipboard(*args, **kwargs): - """SetClipboard(self, int width=0, int height=0) -> bool""" - return _gdi.MetaFile_SetClipboard(*args, **kwargs) - - def GetSize(*args, **kwargs): - """GetSize(self) -> Size""" - return _gdi.MetaFile_GetSize(*args, **kwargs) - - def GetWidth(*args, **kwargs): - """GetWidth(self) -> int""" - return _gdi.MetaFile_GetWidth(*args, **kwargs) - - def GetHeight(*args, **kwargs): - """GetHeight(self) -> int""" - return _gdi.MetaFile_GetHeight(*args, **kwargs) - - def GetFileName(*args, **kwargs): - """GetFileName(self) -> String""" - return _gdi.MetaFile_GetFileName(*args, **kwargs) - - def __nonzero__(self): return self.Ok() - -class MetaFilePtr(MetaFile): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = MetaFile -_gdi.MetaFile_swigregister(MetaFilePtr) - -class MetaFileDC(DC): - def __repr__(self): - return "<%s.%s; proxy of C++ wxMetaFileDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, String filename=EmptyString, int width=0, int height=0, - String description=EmptyString) -> MetaFileDC - """ - newobj = _gdi.new_MetaFileDC(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def Close(*args, **kwargs): - """Close(self) -> MetaFile""" - return _gdi.MetaFileDC_Close(*args, **kwargs) - - -class MetaFileDCPtr(MetaFileDC): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = MetaFileDC -_gdi.MetaFileDC_swigregister(MetaFileDCPtr) - -class PrinterDC(DC): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPrinterDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, wxPrintData printData) -> PrinterDC""" - newobj = _gdi.new_PrinterDC(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class PrinterDCPtr(PrinterDC): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PrinterDC -_gdi.PrinterDC_swigregister(PrinterDCPtr) - -class DC_old(DC): - """DC class that has methods with 2.4 compatible parameters.""" - FloodFill = DC.FloodFillXY - GetPixel = DC.GetPixelXY - DrawLine = DC.DrawLineXY - CrossHair = DC.CrossHairXY - DrawArc = DC.DrawArcXY - DrawCheckMark = DC.DrawCheckMarkXY - DrawEllipticArc = DC.DrawEllipticArcXY - DrawPoint = DC.DrawPointXY - DrawRectangle = DC.DrawRectangleXY - DrawRoundedRectangle = DC.DrawRoundedRectangleXY - DrawCircle = DC.DrawCircleXY - DrawEllipse = DC.DrawEllipseXY - DrawIcon = DC.DrawIconXY - DrawBitmap = DC.DrawBitmapXY - DrawText = DC.DrawTextXY - DrawRotatedText = DC.DrawRotatedTextXY - Blit = DC.BlitXY - -class MemoryDC_old(MemoryDC): - """DC class that has methods with 2.4 compatible parameters.""" - FloodFill = MemoryDC.FloodFillXY - GetPixel = MemoryDC.GetPixelXY - DrawLine = MemoryDC.DrawLineXY - CrossHair = MemoryDC.CrossHairXY - DrawArc = MemoryDC.DrawArcXY - DrawCheckMark = MemoryDC.DrawCheckMarkXY - DrawEllipticArc = MemoryDC.DrawEllipticArcXY - DrawPoint = MemoryDC.DrawPointXY - DrawRectangle = MemoryDC.DrawRectangleXY - DrawRoundedRectangle = MemoryDC.DrawRoundedRectangleXY - DrawCircle = MemoryDC.DrawCircleXY - DrawEllipse = MemoryDC.DrawEllipseXY - DrawIcon = MemoryDC.DrawIconXY - DrawBitmap = MemoryDC.DrawBitmapXY - DrawText = MemoryDC.DrawTextXY - DrawRotatedText = MemoryDC.DrawRotatedTextXY - Blit = MemoryDC.BlitXY - -class BufferedDC_old(BufferedDC): - """DC class that has methods with 2.4 compatible parameters.""" - FloodFill = BufferedDC.FloodFillXY - GetPixel = BufferedDC.GetPixelXY - DrawLine = BufferedDC.DrawLineXY - CrossHair = BufferedDC.CrossHairXY - DrawArc = BufferedDC.DrawArcXY - DrawCheckMark = BufferedDC.DrawCheckMarkXY - DrawEllipticArc = BufferedDC.DrawEllipticArcXY - DrawPoint = BufferedDC.DrawPointXY - DrawRectangle = BufferedDC.DrawRectangleXY - DrawRoundedRectangle = BufferedDC.DrawRoundedRectangleXY - DrawCircle = BufferedDC.DrawCircleXY - DrawEllipse = BufferedDC.DrawEllipseXY - DrawIcon = BufferedDC.DrawIconXY - DrawBitmap = BufferedDC.DrawBitmapXY - DrawText = BufferedDC.DrawTextXY - DrawRotatedText = BufferedDC.DrawRotatedTextXY - Blit = BufferedDC.BlitXY - -class BufferedPaintDC_old(BufferedPaintDC): - """DC class that has methods with 2.4 compatible parameters.""" - FloodFill = BufferedPaintDC.FloodFillXY - GetPixel = BufferedPaintDC.GetPixelXY - DrawLine = BufferedPaintDC.DrawLineXY - CrossHair = BufferedPaintDC.CrossHairXY - DrawArc = BufferedPaintDC.DrawArcXY - DrawCheckMark = BufferedPaintDC.DrawCheckMarkXY - DrawEllipticArc = BufferedPaintDC.DrawEllipticArcXY - DrawPoint = BufferedPaintDC.DrawPointXY - DrawRectangle = BufferedPaintDC.DrawRectangleXY - DrawRoundedRectangle = BufferedPaintDC.DrawRoundedRectangleXY - DrawCircle = BufferedPaintDC.DrawCircleXY - DrawEllipse = BufferedPaintDC.DrawEllipseXY - DrawIcon = BufferedPaintDC.DrawIconXY - DrawBitmap = BufferedPaintDC.DrawBitmapXY - DrawText = BufferedPaintDC.DrawTextXY - DrawRotatedText = BufferedPaintDC.DrawRotatedTextXY - Blit = BufferedPaintDC.BlitXY - -class ScreenDC_old(ScreenDC): - """DC class that has methods with 2.4 compatible parameters.""" - FloodFill = ScreenDC.FloodFillXY - GetPixel = ScreenDC.GetPixelXY - DrawLine = ScreenDC.DrawLineXY - CrossHair = ScreenDC.CrossHairXY - DrawArc = ScreenDC.DrawArcXY - DrawCheckMark = ScreenDC.DrawCheckMarkXY - DrawEllipticArc = ScreenDC.DrawEllipticArcXY - DrawPoint = ScreenDC.DrawPointXY - DrawRectangle = ScreenDC.DrawRectangleXY - DrawRoundedRectangle = ScreenDC.DrawRoundedRectangleXY - DrawCircle = ScreenDC.DrawCircleXY - DrawEllipse = ScreenDC.DrawEllipseXY - DrawIcon = ScreenDC.DrawIconXY - DrawBitmap = ScreenDC.DrawBitmapXY - DrawText = ScreenDC.DrawTextXY - DrawRotatedText = ScreenDC.DrawRotatedTextXY - Blit = ScreenDC.BlitXY - -class ClientDC_old(ClientDC): - """DC class that has methods with 2.4 compatible parameters.""" - FloodFill = ClientDC.FloodFillXY - GetPixel = ClientDC.GetPixelXY - DrawLine = ClientDC.DrawLineXY - CrossHair = ClientDC.CrossHairXY - DrawArc = ClientDC.DrawArcXY - DrawCheckMark = ClientDC.DrawCheckMarkXY - DrawEllipticArc = ClientDC.DrawEllipticArcXY - DrawPoint = ClientDC.DrawPointXY - DrawRectangle = ClientDC.DrawRectangleXY - DrawRoundedRectangle = ClientDC.DrawRoundedRectangleXY - DrawCircle = ClientDC.DrawCircleXY - DrawEllipse = ClientDC.DrawEllipseXY - DrawIcon = ClientDC.DrawIconXY - DrawBitmap = ClientDC.DrawBitmapXY - DrawText = ClientDC.DrawTextXY - DrawRotatedText = ClientDC.DrawRotatedTextXY - Blit = ClientDC.BlitXY - -class PaintDC_old(PaintDC): - """DC class that has methods with 2.4 compatible parameters.""" - FloodFill = PaintDC.FloodFillXY - GetPixel = PaintDC.GetPixelXY - DrawLine = PaintDC.DrawLineXY - CrossHair = PaintDC.CrossHairXY - DrawArc = PaintDC.DrawArcXY - DrawCheckMark = PaintDC.DrawCheckMarkXY - DrawEllipticArc = PaintDC.DrawEllipticArcXY - DrawPoint = PaintDC.DrawPointXY - DrawRectangle = PaintDC.DrawRectangleXY - DrawRoundedRectangle = PaintDC.DrawRoundedRectangleXY - DrawCircle = PaintDC.DrawCircleXY - DrawEllipse = PaintDC.DrawEllipseXY - DrawIcon = PaintDC.DrawIconXY - DrawBitmap = PaintDC.DrawBitmapXY - DrawText = PaintDC.DrawTextXY - DrawRotatedText = PaintDC.DrawRotatedTextXY - Blit = PaintDC.BlitXY - -class WindowDC_old(WindowDC): - """DC class that has methods with 2.4 compatible parameters.""" - FloodFill = WindowDC.FloodFillXY - GetPixel = WindowDC.GetPixelXY - DrawLine = WindowDC.DrawLineXY - CrossHair = WindowDC.CrossHairXY - DrawArc = WindowDC.DrawArcXY - DrawCheckMark = WindowDC.DrawCheckMarkXY - DrawEllipticArc = WindowDC.DrawEllipticArcXY - DrawPoint = WindowDC.DrawPointXY - DrawRectangle = WindowDC.DrawRectangleXY - DrawRoundedRectangle = WindowDC.DrawRoundedRectangleXY - DrawCircle = WindowDC.DrawCircleXY - DrawEllipse = WindowDC.DrawEllipseXY - DrawIcon = WindowDC.DrawIconXY - DrawBitmap = WindowDC.DrawBitmapXY - DrawText = WindowDC.DrawTextXY - DrawRotatedText = WindowDC.DrawRotatedTextXY - Blit = WindowDC.BlitXY - -class MirrorDC_old(MirrorDC): - """DC class that has methods with 2.4 compatible parameters.""" - FloodFill = MirrorDC.FloodFillXY - GetPixel = MirrorDC.GetPixelXY - DrawLine = MirrorDC.DrawLineXY - CrossHair = MirrorDC.CrossHairXY - DrawArc = MirrorDC.DrawArcXY - DrawCheckMark = MirrorDC.DrawCheckMarkXY - DrawEllipticArc = MirrorDC.DrawEllipticArcXY - DrawPoint = MirrorDC.DrawPointXY - DrawRectangle = MirrorDC.DrawRectangleXY - DrawRoundedRectangle = MirrorDC.DrawRoundedRectangleXY - DrawCircle = MirrorDC.DrawCircleXY - DrawEllipse = MirrorDC.DrawEllipseXY - DrawIcon = MirrorDC.DrawIconXY - DrawBitmap = MirrorDC.DrawBitmapXY - DrawText = MirrorDC.DrawTextXY - DrawRotatedText = MirrorDC.DrawRotatedTextXY - Blit = MirrorDC.BlitXY - -class PostScriptDC_old(PostScriptDC): - """DC class that has methods with 2.4 compatible parameters.""" - FloodFill = PostScriptDC.FloodFillXY - GetPixel = PostScriptDC.GetPixelXY - DrawLine = PostScriptDC.DrawLineXY - CrossHair = PostScriptDC.CrossHairXY - DrawArc = PostScriptDC.DrawArcXY - DrawCheckMark = PostScriptDC.DrawCheckMarkXY - DrawEllipticArc = PostScriptDC.DrawEllipticArcXY - DrawPoint = PostScriptDC.DrawPointXY - DrawRectangle = PostScriptDC.DrawRectangleXY - DrawRoundedRectangle = PostScriptDC.DrawRoundedRectangleXY - DrawCircle = PostScriptDC.DrawCircleXY - DrawEllipse = PostScriptDC.DrawEllipseXY - DrawIcon = PostScriptDC.DrawIconXY - DrawBitmap = PostScriptDC.DrawBitmapXY - DrawText = PostScriptDC.DrawTextXY - DrawRotatedText = PostScriptDC.DrawRotatedTextXY - Blit = PostScriptDC.BlitXY - -class MetaFileDC_old(MetaFileDC): - """DC class that has methods with 2.4 compatible parameters.""" - FloodFill = MetaFileDC.FloodFillXY - GetPixel = MetaFileDC.GetPixelXY - DrawLine = MetaFileDC.DrawLineXY - CrossHair = MetaFileDC.CrossHairXY - DrawArc = MetaFileDC.DrawArcXY - DrawCheckMark = MetaFileDC.DrawCheckMarkXY - DrawEllipticArc = MetaFileDC.DrawEllipticArcXY - DrawPoint = MetaFileDC.DrawPointXY - DrawRectangle = MetaFileDC.DrawRectangleXY - DrawRoundedRectangle = MetaFileDC.DrawRoundedRectangleXY - DrawCircle = MetaFileDC.DrawCircleXY - DrawEllipse = MetaFileDC.DrawEllipseXY - DrawIcon = MetaFileDC.DrawIconXY - DrawBitmap = MetaFileDC.DrawBitmapXY - DrawText = MetaFileDC.DrawTextXY - DrawRotatedText = MetaFileDC.DrawRotatedTextXY - Blit = MetaFileDC.BlitXY - -class PrinterDC_old(PrinterDC): - """DC class that has methods with 2.4 compatible parameters.""" - FloodFill = PrinterDC.FloodFillXY - GetPixel = PrinterDC.GetPixelXY - DrawLine = PrinterDC.DrawLineXY - CrossHair = PrinterDC.CrossHairXY - DrawArc = PrinterDC.DrawArcXY - DrawCheckMark = PrinterDC.DrawCheckMarkXY - DrawEllipticArc = PrinterDC.DrawEllipticArcXY - DrawPoint = PrinterDC.DrawPointXY - DrawRectangle = PrinterDC.DrawRectangleXY - DrawRoundedRectangle = PrinterDC.DrawRoundedRectangleXY - DrawCircle = PrinterDC.DrawCircleXY - DrawEllipse = PrinterDC.DrawEllipseXY - DrawIcon = PrinterDC.DrawIconXY - DrawBitmap = PrinterDC.DrawBitmapXY - DrawText = PrinterDC.DrawTextXY - DrawRotatedText = PrinterDC.DrawRotatedTextXY - Blit = PrinterDC.BlitXY - -#--------------------------------------------------------------------------- - -IMAGELIST_DRAW_NORMAL = _gdi.IMAGELIST_DRAW_NORMAL -IMAGELIST_DRAW_TRANSPARENT = _gdi.IMAGELIST_DRAW_TRANSPARENT -IMAGELIST_DRAW_SELECTED = _gdi.IMAGELIST_DRAW_SELECTED -IMAGELIST_DRAW_FOCUSED = _gdi.IMAGELIST_DRAW_FOCUSED -IMAGE_LIST_NORMAL = _gdi.IMAGE_LIST_NORMAL -IMAGE_LIST_SMALL = _gdi.IMAGE_LIST_SMALL -IMAGE_LIST_STATE = _gdi.IMAGE_LIST_STATE -class ImageList(core.Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxImageList instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int width, int height, int mask=True, int initialCount=1) -> ImageList""" - newobj = _gdi.new_ImageList(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_gdi.delete_ImageList): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Add(*args, **kwargs): - """Add(self, Bitmap bitmap, Bitmap mask=NullBitmap) -> int""" - return _gdi.ImageList_Add(*args, **kwargs) - - def AddWithColourMask(*args, **kwargs): - """AddWithColourMask(self, Bitmap bitmap, Colour maskColour) -> int""" - return _gdi.ImageList_AddWithColourMask(*args, **kwargs) - - def AddIcon(*args, **kwargs): - """AddIcon(self, Icon icon) -> int""" - return _gdi.ImageList_AddIcon(*args, **kwargs) - - def Replace(*args, **kwargs): - """Replace(self, int index, Bitmap bitmap, Bitmap mask=NullBitmap) -> bool""" - return _gdi.ImageList_Replace(*args, **kwargs) - - def Draw(*args, **kwargs): - """ - Draw(self, int index, DC dc, int x, int x, int flags=IMAGELIST_DRAW_NORMAL, - bool solidBackground=False) -> bool - """ - return _gdi.ImageList_Draw(*args, **kwargs) - - def GetImageCount(*args, **kwargs): - """GetImageCount(self) -> int""" - return _gdi.ImageList_GetImageCount(*args, **kwargs) - - def Remove(*args, **kwargs): - """Remove(self, int index) -> bool""" - return _gdi.ImageList_Remove(*args, **kwargs) - - def RemoveAll(*args, **kwargs): - """RemoveAll(self) -> bool""" - return _gdi.ImageList_RemoveAll(*args, **kwargs) - - def GetSize(*args, **kwargs): - """GetSize() -> (width,height)""" - return _gdi.ImageList_GetSize(*args, **kwargs) - - -class ImageListPtr(ImageList): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ImageList -_gdi.ImageList_swigregister(ImageListPtr) - -#--------------------------------------------------------------------------- - -class PenList(core.Object): - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxPenList instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def AddPen(*args, **kwargs): - """AddPen(self, Pen pen)""" - return _gdi.PenList_AddPen(*args, **kwargs) - - def FindOrCreatePen(*args, **kwargs): - """FindOrCreatePen(self, Colour colour, int width, int style) -> Pen""" - return _gdi.PenList_FindOrCreatePen(*args, **kwargs) - - def RemovePen(*args, **kwargs): - """RemovePen(self, Pen pen)""" - return _gdi.PenList_RemovePen(*args, **kwargs) - - def GetCount(*args, **kwargs): - """GetCount(self) -> int""" - return _gdi.PenList_GetCount(*args, **kwargs) - - -class PenListPtr(PenList): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PenList -_gdi.PenList_swigregister(PenListPtr) -cvar = _gdi.cvar -NORMAL_FONT = cvar.NORMAL_FONT -SMALL_FONT = cvar.SMALL_FONT -ITALIC_FONT = cvar.ITALIC_FONT -SWISS_FONT = cvar.SWISS_FONT -RED_PEN = cvar.RED_PEN -CYAN_PEN = cvar.CYAN_PEN -GREEN_PEN = cvar.GREEN_PEN -BLACK_PEN = cvar.BLACK_PEN -WHITE_PEN = cvar.WHITE_PEN -TRANSPARENT_PEN = cvar.TRANSPARENT_PEN -BLACK_DASHED_PEN = cvar.BLACK_DASHED_PEN -GREY_PEN = cvar.GREY_PEN -MEDIUM_GREY_PEN = cvar.MEDIUM_GREY_PEN -LIGHT_GREY_PEN = cvar.LIGHT_GREY_PEN -BLUE_BRUSH = cvar.BLUE_BRUSH -GREEN_BRUSH = cvar.GREEN_BRUSH -WHITE_BRUSH = cvar.WHITE_BRUSH -BLACK_BRUSH = cvar.BLACK_BRUSH -TRANSPARENT_BRUSH = cvar.TRANSPARENT_BRUSH -CYAN_BRUSH = cvar.CYAN_BRUSH -RED_BRUSH = cvar.RED_BRUSH -GREY_BRUSH = cvar.GREY_BRUSH -MEDIUM_GREY_BRUSH = cvar.MEDIUM_GREY_BRUSH -LIGHT_GREY_BRUSH = cvar.LIGHT_GREY_BRUSH -BLACK = cvar.BLACK -WHITE = cvar.WHITE -RED = cvar.RED -BLUE = cvar.BLUE -GREEN = cvar.GREEN -CYAN = cvar.CYAN -LIGHT_GREY = cvar.LIGHT_GREY -STANDARD_CURSOR = cvar.STANDARD_CURSOR -HOURGLASS_CURSOR = cvar.HOURGLASS_CURSOR -CROSS_CURSOR = cvar.CROSS_CURSOR -NullBitmap = cvar.NullBitmap -NullIcon = cvar.NullIcon -NullCursor = cvar.NullCursor -NullPen = cvar.NullPen -NullBrush = cvar.NullBrush -NullPalette = cvar.NullPalette -NullFont = cvar.NullFont -NullColour = cvar.NullColour - -class BrushList(core.Object): - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxBrushList instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def AddBrush(*args, **kwargs): - """AddBrush(self, Brush brush)""" - return _gdi.BrushList_AddBrush(*args, **kwargs) - - def FindOrCreateBrush(*args, **kwargs): - """FindOrCreateBrush(self, Colour colour, int style) -> Brush""" - return _gdi.BrushList_FindOrCreateBrush(*args, **kwargs) - - def RemoveBrush(*args, **kwargs): - """RemoveBrush(self, Brush brush)""" - return _gdi.BrushList_RemoveBrush(*args, **kwargs) - - def GetCount(*args, **kwargs): - """GetCount(self) -> int""" - return _gdi.BrushList_GetCount(*args, **kwargs) - - -class BrushListPtr(BrushList): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = BrushList -_gdi.BrushList_swigregister(BrushListPtr) - -class ColourDatabase(core.Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxColourDatabase instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> ColourDatabase""" - newobj = _gdi.new_ColourDatabase(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_gdi.delete_ColourDatabase): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Find(*args, **kwargs): - """Find(self, String name) -> Colour""" - return _gdi.ColourDatabase_Find(*args, **kwargs) - - def FindName(*args, **kwargs): - """FindName(self, Colour colour) -> String""" - return _gdi.ColourDatabase_FindName(*args, **kwargs) - - FindColour = Find - def AddColour(*args, **kwargs): - """AddColour(self, String name, Colour colour)""" - return _gdi.ColourDatabase_AddColour(*args, **kwargs) - - def Append(*args, **kwargs): - """Append(self, String name, int red, int green, int blue)""" - return _gdi.ColourDatabase_Append(*args, **kwargs) - - -class ColourDatabasePtr(ColourDatabase): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ColourDatabase -_gdi.ColourDatabase_swigregister(ColourDatabasePtr) - -class FontList(core.Object): - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxFontList instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def AddFont(*args, **kwargs): - """AddFont(self, Font font)""" - return _gdi.FontList_AddFont(*args, **kwargs) - - def FindOrCreateFont(*args, **kwargs): - """ - FindOrCreateFont(self, int point_size, int family, int style, int weight, - bool underline=False, String facename=EmptyString, - int encoding=FONTENCODING_DEFAULT) -> Font - """ - return _gdi.FontList_FindOrCreateFont(*args, **kwargs) - - def RemoveFont(*args, **kwargs): - """RemoveFont(self, Font font)""" - return _gdi.FontList_RemoveFont(*args, **kwargs) - - def GetCount(*args, **kwargs): - """GetCount(self) -> int""" - return _gdi.FontList_GetCount(*args, **kwargs) - - -class FontListPtr(FontList): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = FontList -_gdi.FontList_swigregister(FontListPtr) - -#--------------------------------------------------------------------------- - -NullColor = NullColour -#--------------------------------------------------------------------------- - -class Effects(core.Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxEffects instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> Effects""" - newobj = _gdi.new_Effects(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetHighlightColour(*args, **kwargs): - """GetHighlightColour(self) -> Colour""" - return _gdi.Effects_GetHighlightColour(*args, **kwargs) - - def GetLightShadow(*args, **kwargs): - """GetLightShadow(self) -> Colour""" - return _gdi.Effects_GetLightShadow(*args, **kwargs) - - def GetFaceColour(*args, **kwargs): - """GetFaceColour(self) -> Colour""" - return _gdi.Effects_GetFaceColour(*args, **kwargs) - - def GetMediumShadow(*args, **kwargs): - """GetMediumShadow(self) -> Colour""" - return _gdi.Effects_GetMediumShadow(*args, **kwargs) - - def GetDarkShadow(*args, **kwargs): - """GetDarkShadow(self) -> Colour""" - return _gdi.Effects_GetDarkShadow(*args, **kwargs) - - def SetHighlightColour(*args, **kwargs): - """SetHighlightColour(self, Colour c)""" - return _gdi.Effects_SetHighlightColour(*args, **kwargs) - - def SetLightShadow(*args, **kwargs): - """SetLightShadow(self, Colour c)""" - return _gdi.Effects_SetLightShadow(*args, **kwargs) - - def SetFaceColour(*args, **kwargs): - """SetFaceColour(self, Colour c)""" - return _gdi.Effects_SetFaceColour(*args, **kwargs) - - def SetMediumShadow(*args, **kwargs): - """SetMediumShadow(self, Colour c)""" - return _gdi.Effects_SetMediumShadow(*args, **kwargs) - - def SetDarkShadow(*args, **kwargs): - """SetDarkShadow(self, Colour c)""" - return _gdi.Effects_SetDarkShadow(*args, **kwargs) - - def Set(*args, **kwargs): - """ - Set(self, Colour highlightColour, Colour lightShadow, Colour faceColour, - Colour mediumShadow, Colour darkShadow) - """ - return _gdi.Effects_Set(*args, **kwargs) - - def DrawSunkenEdge(*args, **kwargs): - """DrawSunkenEdge(self, DC dc, Rect rect, int borderSize=1)""" - return _gdi.Effects_DrawSunkenEdge(*args, **kwargs) - - def TileBitmap(*args, **kwargs): - """TileBitmap(self, Rect rect, DC dc, Bitmap bitmap) -> bool""" - return _gdi.Effects_TileBitmap(*args, **kwargs) - - -class EffectsPtr(Effects): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Effects -_gdi.Effects_swigregister(EffectsPtr) -TheFontList = cvar.TheFontList -ThePenList = cvar.ThePenList -TheBrushList = cvar.TheBrushList -TheColourDatabase = cvar.TheColourDatabase - - diff --git a/wxPython/src/msw/gdi_wrap.cpp b/wxPython/src/msw/gdi_wrap.cpp deleted file mode 100644 index c7c88d8456..0000000000 --- a/wxPython/src/msw/gdi_wrap.cpp +++ /dev/null @@ -1,20514 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.22 - * - * This file is not intended to be easily readable and contains a number of - * coding conventions designed to improve portability and efficiency. Do not make - * changes to this file unless you know what you are doing--modify the SWIG - * interface file instead. - * ----------------------------------------------------------------------------- */ - -#define SWIGPYTHON -#define SWIG_NOINCLUDE - -#ifdef __cplusplus -template class SwigValueWrapper { - T *tt; -public: - SwigValueWrapper() : tt(0) { } - SwigValueWrapper(const SwigValueWrapper& rhs) : tt(new T(*rhs.tt)) { } - SwigValueWrapper(const T& t) : tt(new T(t)) { } - ~SwigValueWrapper() { delete tt; } - SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } - operator T&() const { return *tt; } - T *operator&() { return tt; } -private: - SwigValueWrapper& operator=(const SwigValueWrapper& rhs); -}; -#endif - - -#include "Python.h" - -/*************************************************************** -*- c -*- - * python/precommon.swg - * - * Rename all exported symbols from common.swg, to avoid symbol - * clashes if multiple interpreters are included - * - ************************************************************************/ - -#define SWIG_TypeRegister SWIG_Python_TypeRegister -#define SWIG_TypeCheck SWIG_Python_TypeCheck -#define SWIG_TypeCast SWIG_Python_TypeCast -#define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast -#define SWIG_TypeName SWIG_Python_TypeName -#define SWIG_TypeQuery SWIG_Python_TypeQuery -#define SWIG_TypeClientData SWIG_Python_TypeClientData -#define SWIG_PackData SWIG_Python_PackData -#define SWIG_UnpackData SWIG_Python_UnpackData - - -/*********************************************************************** - * common.swg for wxPython - * - * Include only the function prototypes and such from SWIG's common.swg, - * but not the runtime functions themselves. This helps keep the - * wrapper files clean of unnecessary stuff that is in the libpy.c file - * anyway. - * - ************************************************************************/ - -#include - -#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) -# if defined(_MSC_VER) || defined(__GNUC__) -# if defined(STATIC_LINKED) -# define SWIGEXPORT(a) a -# define SWIGIMPORT(a) extern a -# else -# define SWIGEXPORT(a) __declspec(dllexport) a -# define SWIGIMPORT(a) extern a -# endif -# else -# if defined(__BORLANDC__) -# define SWIGEXPORT(a) a _export -# define SWIGIMPORT(a) a _export -# else -# define SWIGEXPORT(a) a -# define SWIGIMPORT(a) a -# endif -# endif -#else -# define SWIGEXPORT(a) a -# define SWIGIMPORT(a) a -#endif - -#ifdef SWIG_GLOBAL -# define SWIGRUNTIME(a) SWIGEXPORT(a) -#else -# define SWIGRUNTIME(a) static a -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -typedef void *(*swig_converter_func)(void *); -typedef struct swig_type_info *(*swig_dycast_func)(void **); - -typedef struct swig_type_info { - const char *name; - swig_converter_func converter; - const char *str; - void *clientdata; - swig_dycast_func dcast; - struct swig_type_info *next; - struct swig_type_info *prev; -} swig_type_info; - - -SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); -SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); -SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); -SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); -SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); -SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); -SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); -SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); -SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); - - -#ifdef __cplusplus -} -#endif - -/*********************************************************************** - * pyrun.swg for wxPython - * - * Include only the function prototypes and such from SWIG's pyrun.swg, - * but not the runtime functions themselves. This helps keep the - * wrapper files clean of unnecessary stuff that is in the libpy.c file - * anyway. - * - ************************************************************************/ - -#include "Python.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define SWIG_PY_INT 1 -#define SWIG_PY_FLOAT 2 -#define SWIG_PY_STRING 3 -#define SWIG_PY_POINTER 4 -#define SWIG_PY_BINARY 5 - -/* Flags for pointer conversion */ - -#define SWIG_POINTER_EXCEPTION 0x1 -#define SWIG_POINTER_DISOWN 0x2 - -/* Exception handling in wrappers */ -#define SWIG_fail goto fail - -/* Constant information structure */ -typedef struct swig_const_info { - int type; - char *name; - long lvalue; - double dvalue; - void *pvalue; - swig_type_info **ptype; -} swig_const_info; - -/* Common SWIG API */ -#define SWIG_ConvertPtr(obj, pp, type, flags) \ - SWIG_Python_ConvertPtr(obj, pp, type, flags) -#define SWIG_NewPointerObj(p, type, flags) \ - SWIG_Python_NewPointerObj(p, type, flags) -#define SWIG_MustGetPtr(p, type, argnum, flags) \ - SWIG_Python_MustGetPtr(p, type, argnum, flags) - -/* Python-specific SWIG API */ -#define SWIG_newvarlink() \ - SWIG_Python_newvarlink() -#define SWIG_addvarlink(p, name, get_attr, set_attr) \ - SWIG_Python_addvarlink(p, name, get_attr, set_attr) -#define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ - SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) -#define SWIG_NewPackedObj(ptr, sz, type) \ - SWIG_Python_NewPackedObj(ptr, sz, type) -#define SWIG_InstallConstants(d, constants) \ - SWIG_Python_InstallConstants(d, constants) - -typedef double (*py_objasdbl_conv)(PyObject *obj); - -SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); -SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); -SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); -SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); -SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); -SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); -SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); -SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); - - -/* Contract support */ - -#define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else - -#ifdef __cplusplus -} -#endif - - -/* -------- TYPES TABLE (BEGIN) -------- */ - -#define SWIGTYPE_p_wxPostScriptDC swig_types[0] -#define SWIGTYPE_p_wxBrush swig_types[1] -#define SWIGTYPE_p_wxColour swig_types[2] -#define SWIGTYPE_p_wxDC swig_types[3] -#define SWIGTYPE_p_wxMirrorDC swig_types[4] -#define SWIGTYPE_p_byte swig_types[5] -#define SWIGTYPE_p_wxPyFontEnumerator swig_types[6] -#define SWIGTYPE_p_char swig_types[7] -#define SWIGTYPE_p_wxIconLocation swig_types[8] -#define SWIGTYPE_p_wxImage swig_types[9] -#define SWIGTYPE_p_wxMetaFileDC swig_types[10] -#define SWIGTYPE_p_wxMask swig_types[11] -#define SWIGTYPE_p_wxSize swig_types[12] -#define SWIGTYPE_p_wxFont swig_types[13] -#define SWIGTYPE_p_wxWindow swig_types[14] -#define SWIGTYPE_p_double swig_types[15] -#define SWIGTYPE_p_wxMemoryDC swig_types[16] -#define SWIGTYPE_p_wxFontMapper swig_types[17] -#define SWIGTYPE_p_wxEffects swig_types[18] -#define SWIGTYPE_p_wxNativeEncodingInfo swig_types[19] -#define SWIGTYPE_p_wxPalette swig_types[20] -#define SWIGTYPE_p_wxBitmap swig_types[21] -#define SWIGTYPE_p_wxObject swig_types[22] -#define SWIGTYPE_p_wxRegionIterator swig_types[23] -#define SWIGTYPE_p_wxRect swig_types[24] -#define SWIGTYPE_p_wxString swig_types[25] -#define SWIGTYPE_p_wxPrinterDC swig_types[26] -#define SWIGTYPE_p_wxIconBundle swig_types[27] -#define SWIGTYPE_p_wxPoint swig_types[28] -#define SWIGTYPE_p_wxDash swig_types[29] -#define SWIGTYPE_p_wxScreenDC swig_types[30] -#define SWIGTYPE_p_wxCursor swig_types[31] -#define SWIGTYPE_p_wxClientDC swig_types[32] -#define SWIGTYPE_p_wxBufferedDC swig_types[33] -#define SWIGTYPE_p_wxImageList swig_types[34] -#define SWIGTYPE_p_unsigned_char swig_types[35] -#define SWIGTYPE_p_wxGDIObject swig_types[36] -#define SWIGTYPE_p_wxIcon swig_types[37] -#define SWIGTYPE_p_wxLocale swig_types[38] -#define SWIGTYPE_p_wxRegion swig_types[39] -#define SWIGTYPE_p_wxConfigBase swig_types[40] -#define SWIGTYPE_p_wxLanguageInfo swig_types[41] -#define SWIGTYPE_p_wxWindowDC swig_types[42] -#define SWIGTYPE_p_wxPrintData swig_types[43] -#define SWIGTYPE_p_wxBrushList swig_types[44] -#define SWIGTYPE_p_wxFontList swig_types[45] -#define SWIGTYPE_p_wxPen swig_types[46] -#define SWIGTYPE_p_wxBufferedPaintDC swig_types[47] -#define SWIGTYPE_p_wxPaintDC swig_types[48] -#define SWIGTYPE_p_wxPenList swig_types[49] -#define SWIGTYPE_p_wxPyPen swig_types[50] -#define SWIGTYPE_p_int swig_types[51] -#define SWIGTYPE_p_wxMetaFile swig_types[52] -#define SWIGTYPE_p_wxNativeFontInfo swig_types[53] -#define SWIGTYPE_p_wxEncodingConverter swig_types[54] -#define SWIGTYPE_p_wxColourDatabase swig_types[55] -static swig_type_info *swig_types[57]; - -/* -------- TYPES TABLE (END) -------- */ - - -/*----------------------------------------------- - @(target):= _gdi.so - ------------------------------------------------*/ -#define SWIG_init init_gdi - -#define SWIG_name "_gdi" - -/* Auxiliar swig macros */ - -#ifdef __cplusplus -#define SWIGSTATICINLINE(a) static inline a -#define SWIGSTATIC(a) static a -#define swig_new_array(type, size) (new type[(size)]) -#define swig_delete_array(cptr) delete[] cptr -#define swig_const_cast(type,a) const_cast(a) -#define swig_static_cast(type,a) static_cast(a) -#define swig_reinterpret_cast(type,a) reinterpret_cast(a) - -#ifdef HAVE_NUMERIC_CAST -#define swig_numeric_cast(type,a) numeric_cast(a) -#else -#define swig_numeric_cast(type,a) static_cast(a) -#endif - -#else /* C case */ - -#define SWIGSTATICINLINE(a) static a -#define SWIGSTATIC(a) static a -#define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type))) -#define swig_delete_array(cptr) free((char*)cptr) -#define swig_const_cast(type,a) (type)(a) -#define swig_static_cast(type,a) (type)(a) -#define swig_reinterpret_cast(type,a) (type)(a) -#define swig_numeric_cast(type,a) (type)(a) - -#endif /* __cplusplus */ - - -#define SWIG_FromSignedChar PyInt_FromLong -#define SWIG_FromUnsignedChar PyInt_FromLong -#define SWIG_FromShort PyInt_FromLong -#define SWIG_FromUnsignedShort PyInt_FromLong -#define SWIG_FromInt PyInt_FromLong -#define SWIG_FromLong PyInt_FromLong -#define SWIG_FromFloat PyFloat_FromDouble -#define SWIG_FromDouble PyFloat_FromDouble -#define SWIG_FromFloat PyFloat_FromDouble -#define SWIG_FromDouble PyFloat_FromDouble - - -#include "wx/wxPython/wxPython.h" -#include "wx/wxPython/pyclasses.h" - - - static const wxString wxPyEmptyString(wxEmptyString); - -SWIGSTATICINLINE(bool) -SWIG_AsBool(PyObject *obj) -{ - return PyObject_IsTrue(obj) ? true : false; -} - - -SWIGSTATICINLINE(int) -SWIG_CheckBool(PyObject* obj) -{ - SWIG_AsBool(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - - -#include - - -SWIGSTATICINLINE(unsigned long) -SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type, - unsigned long max_value) -{ - if (!PyErr_Occurred()) { - if (value > max_value) { - PyObject *err = - PyString_FromFormat("value %ld is greater than '%s' minimum %ld", - value, type, max_value); - PyErr_SetObject(PyExc_OverflowError, err); - Py_DECREF(err); - } - } - return value; -} - - -SWIGSTATICINLINE(long) -SWIG_AsLong(PyObject * obj) -{ - if (PyNumber_Check(obj)) - return PyInt_AsLong(obj); - else { - PyObject* errmsg = PyString_FromFormat("Expected number, got %s", - obj->ob_type->tp_name); - PyErr_SetObject(PyExc_TypeError, errmsg); - Py_DECREF(errmsg); - return 0; - } -} - - -SWIGSTATICINLINE(unsigned long) -SWIG_AsUnsignedLong(PyObject * obj) -{ - if (PyLong_Check(obj)) { - return PyLong_AsUnsignedLong(obj); - } else { - long i = SWIG_AsLong(obj); - if ( !PyErr_Occurred() && (i < 0)) { - PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); - } - return i; - } -} - - -SWIGSTATICINLINE(unsigned char) -SWIG_AsUnsignedChar(PyObject *obj) -{ - return swig_numeric_cast(unsigned char, - SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), - "unsigned char", UCHAR_MAX)); -} - - -SWIGSTATICINLINE(int) -SWIG_CheckUnsignedChar(PyObject* obj) -{ - SWIG_AsUnsignedChar(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - - -SWIGSTATICINLINE(int) -SWIG_CheckUnsignedLong(PyObject* obj) -{ - SWIG_AsUnsignedLong(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - -PyObject *wxColour_Get(wxColour *self){ - PyObject* rv = PyTuple_New(3); - int red = -1; - int green = -1; - int blue = -1; - if (self->Ok()) { - red = self->Red(); - green = self->Green(); - blue = self->Blue(); - } - PyTuple_SetItem(rv, 0, PyInt_FromLong(red)); - PyTuple_SetItem(rv, 1, PyInt_FromLong(green)); - PyTuple_SetItem(rv, 2, PyInt_FromLong(blue)); - return rv; - } -unsigned long wxColour_GetRGB(wxColour *self){ - return self->Red() | (self->Green() << 8) | (self->Blue() << 16); - } - -SWIGSTATICINLINE(PyObject* ) -SWIG_FromUnsignedLong(unsigned long value) -{ - return (value > LONG_MAX) ? - PyLong_FromUnsignedLong(value) - : PyInt_FromLong(swig_numeric_cast(long,value)); -} - - -SWIGSTATICINLINE(long) -SWIG_CheckLongInRange(long value, const char* type, - long min_value, long max_value) -{ - if (!PyErr_Occurred()) { - if (value < min_value) { - PyObject *err = - PyString_FromFormat("value %ld is less than '%s' minimum %ld", - value, type, min_value); - - PyErr_SetObject(PyExc_OverflowError, err); - Py_DECREF(err); - } else if (value > max_value) { - PyObject *err = - PyString_FromFormat("value %ld is greater than '%s' maximum %ld", - value, type, max_value); - PyErr_SetObject(PyExc_OverflowError, err); - Py_DECREF(err); - } - } - return value; -} - - -#if INT_MAX != LONG_MAX -SWIGSTATICINLINE(int) -SWIG_AsInt(PyObject *obj) -{ - return swig_numeric_cast(int, - SWIG_CheckLongInRange(SWIG_AsLong(obj), - "int", INT_MIN, INT_MAX)); -} -#else -#define SWIG_AsInt SWIG_AsLong -#endif - - -SWIGSTATICINLINE(int) -SWIG_CheckInt(PyObject* obj) -{ - SWIG_AsInt(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - - -static PyObject* t_output_helper(PyObject* target, PyObject* o) { - PyObject* o2; - PyObject* o3; - - if (!target) { - target = o; - } else if (target == Py_None) { - Py_DECREF(Py_None); - target = o; - } else { - if (!PyTuple_Check(target)) { - o2 = target; - target = PyTuple_New(1); - PyTuple_SetItem(target, 0, o2); - } - o3 = PyTuple_New(1); - PyTuple_SetItem(o3, 0, o); - - o2 = target; - target = PySequence_Concat(o2, o3); - Py_DECREF(o2); - Py_DECREF(o3); - } - return target; -} - -PyObject *wxPen_GetDashes(wxPen *self){ - wxDash* dashes; - int count = self->GetDashes(&dashes); - bool blocked = wxPyBeginBlockThreads(); - PyObject* retval = PyList_New(0); - for (int x=0; x - - static char** ConvertListOfStrings(PyObject* listOfStrings) { - char** cArray = NULL; - int count; - - if (!PyList_Check(listOfStrings)) { - PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); - return NULL; - } - count = PyList_Size(listOfStrings); - cArray = new char*[count]; - - for(int x=0; xSetHandle((WXHANDLE)handle); } -wxSize wxBitmap_GetSize(wxBitmap *self){ - wxSize size(self->GetWidth(), self->GetHeight()); - return size; - } -void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){ - wxMask *mask = new wxMask(*self, colour); - self->SetMask(mask); - } -void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){ - self->SetWidth(size.x); - self->SetHeight(size.y); - } -bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : False; } -bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : True; } -wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){ - if ( !colour.Ok() ) - return new wxMask(bitmap, *wxBLACK); - else - return new wxMask(bitmap, colour); - } - -#include - -wxIcon *new_wxIcon(wxBitmap const &bmp){ - wxIcon* icon = new wxIcon(); - icon->CopyFromBitmap(bmp); - return icon; - } -wxIcon *new_wxIcon(PyObject *listOfStrings){ - char** cArray = NULL; - wxIcon* icon; - - cArray = ConvertListOfStrings(listOfStrings); - if (! cArray) - return NULL; - icon = new wxIcon(cArray); - delete [] cArray; - return icon; - } -void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); } -wxIconLocation *new_wxIconLocation(wxString const *filename,int num){ - - return new wxIconLocation(*filename, num); - - - - } -void wxIconLocation_SetIndex(wxIconLocation *self,int num){ - - self->SetIndex(num); - - - - } -int wxIconLocation_GetIndex(wxIconLocation *self){ - - return self->GetIndex(); - - - - } -wxCursor *new_wxCursor(wxString const *cursorName,long type,int hotSpotX,int hotSpotY){ -#ifdef __WXGTK__ - wxCHECK_MSG(False, NULL, - wxT("wx.Cursor constructor not implemented for wxGTK, use wx.StockCursor, wx.CursorFromImage, or wx.CursorFromBits instead.")); -#else - return new wxCursor(*cursorName, type, hotSpotX, hotSpotY); -#endif - } -void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); } - - -void wxRegionIterator_Next(wxRegionIterator *self){ - (*self) ++; - } -bool wxRegionIterator___nonzero__(wxRegionIterator *self){ - return self->operator bool(); - } - -#include -#include -#include - -wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){ - return self->ToString(); - } - - wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) - { wxPyRaiseNotImplemented(); return NULL; } - - bool wxTestFontEncoding(const wxNativeEncodingInfo& info) - { wxPyRaiseNotImplemented(); return False; } - -PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){ - wxFontEncoding alt_enc; - if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) - return PyInt_FromLong(alt_enc); - else { - Py_INCREF(Py_None); - return Py_None; - } - } -wxFont *new_wxFont(wxString const &info){ - wxNativeFontInfo nfi; - nfi.FromString(info); - return new wxFont(nfi); - } -wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){ - return wxFont::New(pointSize, family, flags, face, encoding); - } -bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : False; } -bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : True; } - -class wxPyFontEnumerator : public wxFontEnumerator { -public: - wxPyFontEnumerator() {} - ~wxPyFontEnumerator() {} - - DEC_PYCALLBACK_BOOL_STRING(OnFacename); - DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); - - PYPRIVATE; -}; - -IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); -IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); - - -PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){ - wxArrayString* arr = self->GetEncodings(); - return wxArrayString2PyList_helper(*arr); - } -PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){ - wxArrayString* arr = self->GetFacenames(); - return wxArrayString2PyList_helper(*arr); - } - - - -#include "wx/wxPython/pydrawxxx.h" - -wxColour wxDC_GetPixelXY(wxDC *self,int x,int y){ - wxColour col; - self->GetPixel(x, y, &col); - return col; - } -wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){ - wxColour col; - self->GetPixel(pt, &col); - return col; - } - -SWIGSTATICINLINE(double) -SWIG_AsDouble(PyObject *obj) -{ - if (PyNumber_Check(obj)) - return PyFloat_AsDouble(obj); - else { - PyObject* errmsg = PyString_FromFormat("Expected number, got %s", - obj->ob_type->tp_name); - PyErr_SetObject(PyExc_TypeError, errmsg); - Py_DECREF(errmsg); - return 0; - } -} - - -SWIGSTATICINLINE(int) -SWIG_CheckDouble(PyObject* obj) -{ - SWIG_AsDouble(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - -wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){ - wxRect rv; - self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); - return rv; - } -wxRect wxDC_GetClippingRect(wxDC *self){ - wxRect rect; - self->GetClippingBox(rect); - return rect; - } -wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){ - wxArrayInt widths; - self->GetPartialTextExtents(text, widths); - return widths; - } -PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ - return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes); - } -PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ - return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes); - } -PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ - return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes); - } -PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ - return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes); - } -PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ - return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes); - } -PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){ - return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList); - } - -static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { - *x1 = dc->MinX(); - *y1 = dc->MinY(); - *x2 = dc->MaxX(); - *y2 = dc->MaxY(); -} - - -#include - - -#include - - -#include - - - -void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){ - self->AddColour(name, wxColour(red, green, blue)); - } - -#include - -#ifdef __cplusplus -extern "C" { -#endif -static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGDIObject *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxGDIObject *)new wxGDIObject(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGDIObject *arg1 = (wxGDIObject *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGDIObject *arg1 = (wxGDIObject *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetVisible(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGDIObject *arg1 = (wxGDIObject *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "visible", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetVisible(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxGDIObject *arg1 = (wxGDIObject *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->IsNull(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - unsigned char arg1 = (unsigned char) 0 ; - unsigned char arg2 = (unsigned char) 0 ; - unsigned char arg3 = (unsigned char) 0 ; - wxColour *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "red",(char *) "green",(char *) "blue", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail; - if (obj0) { - arg1 = (unsigned char) SWIG_AsUnsignedChar(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxColour *)new wxColour(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxColour *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "colorName", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxColour *)new wxColour((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - unsigned long arg1 ; - wxColour *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "colRGB", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail; - arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxColour *)new wxColour(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColour *arg1 = (wxColour *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColour *arg1 = (wxColour *) 0 ; - unsigned char result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (unsigned char)(arg1)->Red(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedChar((unsigned char)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColour *arg1 = (wxColour *) 0 ; - unsigned char result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (unsigned char)(arg1)->Green(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedChar((unsigned char)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColour *arg1 = (wxColour *) 0 ; - unsigned char result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (unsigned char)(arg1)->Blue(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedChar((unsigned char)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColour *arg1 = (wxColour *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Ok(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColour *arg1 = (wxColour *) 0 ; - unsigned char arg2 ; - unsigned char arg3 ; - unsigned char arg4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Set(arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColour *arg1 = (wxColour *) 0 ; - unsigned long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colRGB", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Set(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Colour_SetFromName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColour *arg1 = (wxColour *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colourName", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->InitFromName((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Colour_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColour *arg1 = (wxColour *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxColour const *)arg1)->GetPixel(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColour *arg1 = (wxColour *) 0 ; - wxColour *arg2 = 0 ; - bool result; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colour", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColour *arg1 = (wxColour *) 0 ; - wxColour *arg2 = 0 ; - bool result; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colour", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColour *arg1 = (wxColour *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxColour_Get(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Colour_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColour *arg1 = (wxColour *) 0 ; - unsigned long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (unsigned long)wxColour_GetRGB(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * Colour_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - unsigned char *arg2 = (unsigned char *) 0 ; - unsigned char *arg3 = (unsigned char *) 0 ; - unsigned char *arg4 = (unsigned char *) 0 ; - wxPalette *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPalette *arg1 = (wxPalette *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPalette *arg1 = (wxPalette *) 0 ; - byte arg2 ; - byte arg3 ; - byte arg4 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (byte) SWIG_AsUnsignedChar(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (byte) SWIG_AsUnsignedChar(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (byte) SWIG_AsUnsignedChar(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetPixel(arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPalette *arg1 = (wxPalette *) 0 ; - int arg2 ; - byte *arg3 = (byte *) 0 ; - byte *arg4 = (byte *) 0 ; - byte *arg5 = (byte *) 0 ; - bool result; - byte temp3 ; - byte temp4 ; - byte temp5 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pixel", NULL - }; - - arg3 = &temp3; - arg4 = &temp4; - arg5 = &temp5; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg4)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg5)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPalette *arg1 = (wxPalette *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Ok(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * Palette_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColour *arg1 = 0 ; - int arg2 = (int) 1 ; - int arg3 = (int) wxSOLID ; - wxPen *result; - wxColour temp1 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "colour",(char *) "width",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail; - { - arg1 = &temp1; - if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPen *)new wxPen(*arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPen *arg1 = (wxPen *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPen *arg1 = (wxPen *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetCap(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPen *arg1 = (wxPen *) 0 ; - wxColour result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetColour(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPen *arg1 = (wxPen *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetJoin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPen *arg1 = (wxPen *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetStyle(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPen *arg1 = (wxPen *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetWidth(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPen *arg1 = (wxPen *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Ok(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPen *arg1 = (wxPen *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "cap_style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetCap(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPen *arg1 = (wxPen *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colour", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetColour(*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPen *arg1 = (wxPen *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "join_style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetJoin(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPen *arg1 = (wxPen *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetStyle(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPen *arg1 = (wxPen *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "width", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetWidth(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPen *arg1 = (wxPen *) 0 ; - int arg2 ; - wxDash *arg3 = (wxDash *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "dashes", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = PyList_Size(obj1); - arg3 = (wxDash*)byte_LIST_helper(obj1); - if (arg3 == NULL) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDashes(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (arg3) delete [] arg3; - } - return resultobj; - fail: - { - if (arg3) delete [] arg3; - } - return NULL; -} - - -static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPen *arg1 = (wxPen *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxPen_GetDashes(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Pen___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPen *arg1 = (wxPen *) 0 ; - wxPen *arg2 = (wxPen *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Pen___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPen *arg1 = (wxPen *) 0 ; - wxPen *arg2 = (wxPen *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Pen_GetDashCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPen *arg1 = (wxPen *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxPen const *)arg1)->GetDashCount(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Pen_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPen *arg1 = (wxPen *) 0 ; - wxBitmap *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStipple",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxBitmap *)(arg1)->GetStipple(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Pen_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPen *arg1 = (wxPen *) 0 ; - wxBitmap *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "stipple", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetStipple(*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * Pen_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColour *arg1 = 0 ; - int arg2 = (int) 1 ; - int arg3 = (int) wxSOLID ; - wxPyPen *result; - wxColour temp1 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "colour",(char *) "width",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_PyPen",kwnames,&obj0,&obj1,&obj2)) goto fail; - { - arg1 = &temp1; - if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPen, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPen *arg1 = (wxPyPen *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPen *arg1 = (wxPyPen *) 0 ; - int arg2 ; - wxDash *arg3 = (wxDash *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "dashes", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = PyList_Size(obj1); - arg3 = (wxDash*)byte_LIST_helper(obj1); - if (arg3 == NULL) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDashes(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (arg3) delete [] arg3; - } - return resultobj; - fail: - { - if (arg3) delete [] arg3; - } - return NULL; -} - - -static PyObject * PyPen_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColour *arg1 = 0 ; - int arg2 = (int) wxSOLID ; - wxBrush *result; - wxColour temp1 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "colour",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail; - { - arg1 = &temp1; - if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBrush *arg1 = (wxBrush *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBrush *arg1 = (wxBrush *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "col", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetColour((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBrush *arg1 = (wxBrush *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetStyle(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBrush *arg1 = (wxBrush *) 0 ; - wxBitmap *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "stipple", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetStipple((wxBitmap const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBrush *arg1 = (wxBrush *) 0 ; - wxColour result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxBrush const *)arg1)->GetColour(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBrush *arg1 = (wxBrush *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxBrush const *)arg1)->GetStyle(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBrush *arg1 = (wxBrush *) 0 ; - wxBitmap *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBrush *arg1 = (wxBrush *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Ok(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * Brush_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - int arg2 = (int) wxBITMAP_TYPE_ANY ; - wxBitmap *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "name",(char *) "type", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - if (obj1) { - arg2 = (wxBitmapType) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = (wxBitmap *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIcon *arg1 = 0 ; - wxBitmap *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "icon", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = 0 ; - int arg2 = (int) -1 ; - wxBitmap *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "image",(char *) "depth", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - PyObject *arg1 = (PyObject *) 0 ; - wxBitmap *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "listOfStrings", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail; - arg1 = obj0; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxBitmap *)new_wxBitmap(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - PyObject *arg1 = (PyObject *) 0 ; - int arg2 ; - int arg3 ; - int arg4 = (int) 1 ; - wxBitmap *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - arg1 = obj0; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_EmptyBitmap__SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - int arg1 ; - int arg2 ; - int arg3 = (int) -1 ; - wxBitmap *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO|O:new_EmptyBitmap",&obj0,&obj1,&obj2)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxBitmap *)new_wxBitmap__SWIG_0(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_EmptyBitmap__SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxSize *arg1 = 0 ; - int arg2 = (int) -1 ; - wxBitmap *result; - wxSize temp1 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"O|O:new_EmptyBitmap",&obj0,&obj1)) goto fail; - { - arg1 = &temp1; - if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxBitmap *)new_wxBitmap__SWIG_1((wxSize const &)*arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if ((argc >= 1) && (argc <= 2)) { - int _v; - { - _v = wxPySimple_typecheck(argv[0], wxT("wxSize"), 2); - } - if (_v) { - if (argc <= 1) { - return _wrap_new_EmptyBitmap__SWIG_1(self,args); - } - _v = SWIG_CheckInt(argv[1]); - if (_v) { - return _wrap_new_EmptyBitmap__SWIG_1(self,args); - } - } - } - if ((argc >= 2) && (argc <= 3)) { - int _v; - _v = SWIG_CheckInt(argv[0]); - if (_v) { - _v = SWIG_CheckInt(argv[1]); - if (_v) { - if (argc <= 2) { - return _wrap_new_EmptyBitmap__SWIG_0(self,args); - } - _v = SWIG_CheckInt(argv[2]); - if (_v) { - return _wrap_new_EmptyBitmap__SWIG_0(self,args); - } - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_EmptyBitmap'"); - return NULL; -} - - -static PyObject *_wrap_Bitmap_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = (wxBitmap *) 0 ; - wxPalette *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "palette", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPalette(*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Bitmap_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = (wxBitmap *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHandle",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->GetHandle(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Bitmap_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = (wxBitmap *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "handle", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxBitmap_SetHandle(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = (wxBitmap *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Ok(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = (wxBitmap *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetWidth(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = (wxBitmap *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetHeight(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = (wxBitmap *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetDepth(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Bitmap_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = (wxBitmap *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxBitmap_GetSize(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = (wxBitmap *) 0 ; - SwigValueWrapper< wxImage > result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxBitmap const *)arg1)->ConvertToImage(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxImage * resultptr; - resultptr = new wxImage((wxImage &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = (wxBitmap *) 0 ; - wxMask *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMask *)((wxBitmap const *)arg1)->GetMask(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = (wxBitmap *) 0 ; - wxMask *arg2 = (wxMask *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "mask", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMask(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = (wxBitmap *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colour", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = (wxBitmap *) 0 ; - wxRect *arg2 = 0 ; - SwigValueWrapper< wxBitmap > result; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxBitmap * resultptr; - resultptr = new wxBitmap((wxBitmap &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = (wxBitmap *) 0 ; - wxString *arg2 = 0 ; - int arg3 ; - wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - arg3 = (wxBitmapType) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = (wxBitmap *) 0 ; - wxString *arg2 = 0 ; - int arg3 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name",(char *) "type", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - arg3 = (wxBitmapType) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = (wxBitmap *) 0 ; - wxIcon *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "icon", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = (wxBitmap *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetHeight(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = (wxBitmap *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "width", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetWidth(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = (wxBitmap *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "depth", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDepth(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Bitmap_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = (wxBitmap *) 0 ; - wxSize *arg2 = 0 ; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxBitmap_SetSize(arg1,(wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = (wxBitmap *) 0 ; - wxCursor *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "cursor", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Bitmap_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = (wxBitmap *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetQuality",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetQuality(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Bitmap_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = (wxBitmap *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "q", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetQuality",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetQuality(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Bitmap___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = (wxBitmap *) 0 ; - wxBitmap *arg2 = (wxBitmap *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Bitmap___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = (wxBitmap *) 0 ; - wxBitmap *arg2 = (wxBitmap *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = 0 ; - wxColour const &arg2_defvalue = wxNullColour ; - wxColour *arg2 = (wxColour *) &arg2_defvalue ; - wxMask *result; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "bitmap",(char *) "colour", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if (obj1) { - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * Mask_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - int arg2 ; - int arg3 = (int) -1 ; - int arg4 = (int) -1 ; - wxIcon *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - arg2 = (wxBitmapType) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIcon *arg1 = (wxIcon *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIcon *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxIcon *)new wxIcon(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIconLocation *arg1 = 0 ; - wxIcon *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "loc", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = 0 ; - wxIcon *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "bmp", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - PyObject *arg1 = (PyObject *) 0 ; - wxIcon *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "listOfStrings", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail; - arg1 = obj0; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxIcon *)new_wxIcon(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Icon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIcon *arg1 = (wxIcon *) 0 ; - wxString *arg2 = 0 ; - int arg3 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name",(char *) "type", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - arg3 = (wxBitmapType) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Icon_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIcon *arg1 = (wxIcon *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHandle",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->GetHandle(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Icon_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIcon *arg1 = (wxIcon *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "handle", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxIcon_SetHandle(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIcon *arg1 = (wxIcon *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Ok(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIcon *arg1 = (wxIcon *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetWidth(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIcon *arg1 = (wxIcon *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetHeight(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIcon *arg1 = (wxIcon *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetDepth(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIcon *arg1 = (wxIcon *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "w", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetWidth(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIcon *arg1 = (wxIcon *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "h", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetHeight(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIcon *arg1 = (wxIcon *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "d", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDepth(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Icon_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIcon *arg1 = (wxIcon *) 0 ; - wxSize *arg2 = 0 ; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSize((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIcon *arg1 = (wxIcon *) 0 ; - wxBitmap *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bmp", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->CopyFromBitmap((wxBitmap const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * Icon_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = (wxString *) &wxPyEmptyString ; - int arg2 = (int) 0 ; - wxIconLocation *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "filename",(char *) "num", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1); - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIconLocation *arg1 = (wxIconLocation *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIconLocation *arg1 = (wxIconLocation *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxIconLocation const *)arg1)->IsOk(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIconLocation *arg1 = (wxIconLocation *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "filename", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFileName((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIconLocation *arg1 = (wxIconLocation *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIconLocation *arg1 = (wxIconLocation *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "num", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxIconLocation_SetIndex(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIconLocation *arg1 = (wxIconLocation *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxIconLocation_GetIndex(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIconBundle *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxIconBundle *)new wxIconBundle(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - long arg2 ; - wxIconBundle *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "file",(char *) "type", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIcon *arg1 = 0 ; - wxIconBundle *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "icon", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIconBundle *arg1 = (wxIconBundle *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIconBundle *arg1 = (wxIconBundle *) 0 ; - wxIcon *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "icon", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AddIcon((wxIcon const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIconBundle *arg1 = (wxIconBundle *) 0 ; - wxString *arg2 = 0 ; - long arg3 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "file",(char *) "type", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AddIcon((wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxIconBundle *arg1 = (wxIconBundle *) 0 ; - wxSize *arg2 = 0 ; - wxIcon *result; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2); - result = (wxIcon *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxIcon* resultptr = new wxIcon(*result); - resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = (wxString *) 0 ; - long arg2 ; - int arg3 = (int) 0 ; - int arg4 = (int) 0 ; - wxCursor *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCursor *arg1 = (wxCursor *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - wxCursor *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxCursor *)new wxCursor(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImage *arg1 = 0 ; - wxCursor *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "image", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxCursor *)new wxCursor((wxImage const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Cursor_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCursor *arg1 = (wxCursor *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHandle",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->GetHandle(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Cursor_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCursor *arg1 = (wxCursor *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "handle", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxCursor_SetHandle(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCursor *arg1 = (wxCursor *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Ok(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Cursor_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCursor *arg1 = (wxCursor *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetWidth",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetWidth(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Cursor_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCursor *arg1 = (wxCursor *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHeight",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetHeight(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Cursor_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCursor *arg1 = (wxCursor *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetDepth",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetDepth(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Cursor_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCursor *arg1 = (wxCursor *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "w", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetWidth(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Cursor_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCursor *arg1 = (wxCursor *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "h", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetHeight(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Cursor_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCursor *arg1 = (wxCursor *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "d", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDepth(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Cursor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCursor *arg1 = (wxCursor *) 0 ; - wxSize *arg2 = 0 ; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSize((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - int arg2 = (int) 0 ; - int arg3 = (int) 0 ; - int arg4 = (int) 0 ; - wxRegion *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = 0 ; - wxColour const &arg2_defvalue = wxNullColour ; - wxColour *arg2 = (wxColour *) &arg2_defvalue ; - int arg3 = (int) 0 ; - wxRegion *result; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_RegionFromBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if (obj1) { - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - wxPoint *arg2 = (wxPoint *) 0 ; - int arg3 = (int) wxWINDING_RULE ; - wxRegion *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "points",(char *) "fillStyle", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail; - { - arg2 = wxPoint_LIST_helper(obj0, &arg1); - if (arg2 == NULL) SWIG_fail; - } - if (obj1) { - arg3 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxRegion *)new wxRegion(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); - { - if (arg2) delete [] arg2; - } - return resultobj; - fail: - { - if (arg2) delete [] arg2; - } - return NULL; -} - - -static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegion *arg1 = (wxRegion *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegion *arg1 = (wxRegion *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Clear(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegion *arg1 = (wxRegion *) 0 ; - int arg2 ; - int arg3 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Offset(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegion *arg1 = (wxRegion *) 0 ; - int arg2 ; - int arg3 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->Contains(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegion *arg1 = (wxRegion *) 0 ; - wxPoint *arg2 = 0 ; - int result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->Contains((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegion *arg1 = (wxRegion *) 0 ; - wxRect *arg2 = 0 ; - int result; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->Contains((wxRect const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegion *arg1 = (wxRegion *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegion *arg1 = (wxRegion *) 0 ; - wxRect result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetBox(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxRect * resultptr; - resultptr = new wxRect((wxRect &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegion *arg1 = (wxRegion *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegion *arg1 = (wxRegion *) 0 ; - wxRect *arg2 = 0 ; - bool result; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Intersect((wxRect const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegion *arg1 = (wxRegion *) 0 ; - wxRegion *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "region", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Intersect((wxRegion const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegion *arg1 = (wxRegion *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->IsEmpty(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegion *arg1 = (wxRegion *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegion *arg1 = (wxRegion *) 0 ; - wxRect *arg2 = 0 ; - bool result; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Union((wxRect const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegion *arg1 = (wxRegion *) 0 ; - wxRegion *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "region", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Union((wxRegion const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegion *arg1 = (wxRegion *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegion *arg1 = (wxRegion *) 0 ; - wxRect *arg2 = 0 ; - bool result; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Subtract((wxRect const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegion *arg1 = (wxRegion *) 0 ; - wxRegion *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "region", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Subtract((wxRegion const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegion *arg1 = (wxRegion *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegion *arg1 = (wxRegion *) 0 ; - wxRect *arg2 = 0 ; - bool result; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Xor((wxRect const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegion *arg1 = (wxRegion *) 0 ; - wxRegion *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "region", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Xor((wxRegion const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegion *arg1 = (wxRegion *) 0 ; - SwigValueWrapper< wxBitmap > result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->ConvertToBitmap(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxBitmap * resultptr; - resultptr = new wxBitmap((wxBitmap &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegion *arg1 = (wxRegion *) 0 ; - wxBitmap *arg2 = 0 ; - wxColour const &arg3_defvalue = wxNullColour ; - wxColour *arg3 = (wxColour *) &arg3_defvalue ; - int arg4 = (int) 0 ; - bool result; - wxColour temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if (obj2) { - { - arg3 = &temp3; - if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * Region_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegion *arg1 = 0 ; - wxRegionIterator *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "region", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetX(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetY(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetW(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetWidth(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetH(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetHeight(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; - wxRect result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetRect(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxRect * resultptr; - resultptr = new wxRect((wxRect &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->HaveRects(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Reset(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxRegionIterator_Next(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxRegionIterator___nonzero__(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeFontInfo *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxNativeFontInfo *)new wxNativeFontInfo(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Init(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; - wxFont *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "font", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->InitFromFont((wxFont const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxNativeFontInfo const *)arg1)->GetStyle(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxNativeFontInfo const *)arg1)->GetWeight(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxNativeFontInfo const *)arg1)->GetFaceName(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxNativeFontInfo const *)arg1)->GetFamily(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pointsize", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPointSize(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxFontStyle) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetStyle((wxFontStyle )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "weight", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxFontWeight) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetWeight((wxFontWeight )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "underlined", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetUnderlined(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; - wxString arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "facename", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - wxString* sptr = wxString_in_helper(obj1); - if (sptr == NULL) SWIG_fail; - arg2 = *sptr; - delete sptr; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFaceName(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "family", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxFontFamily) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFamily((wxFontFamily )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "encoding", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxFontEncoding) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetEncoding((wxFontEncoding )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; - wxString *arg2 = 0 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "s", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->FromString((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxNativeFontInfo const *)arg1)->ToString(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxNativeFontInfo___str__(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 - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; - wxString *arg2 = 0 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "s", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->FromUserString((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxNativeFontInfo const *)arg1)->ToUserString(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; - wxString *arg2 = (wxString *) 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "facename", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (arg1) (arg1)->facename = *arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (wxString *)& ((arg1)->facename); - - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "encoding", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxFontEncoding) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->encoding = (wxFontEncoding )arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->encoding); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeEncodingInfo *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; - wxString *arg2 = 0 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "s", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->FromString((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxNativeEncodingInfo const *)arg1)->ToString(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - wxNativeEncodingInfo *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "encoding", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail; - arg1 = (wxFontEncoding) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeEncodingInfo *arg1 = 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "info", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontMapper *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFontMapper *)new wxFontMapper(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontMapper *arg1 = (wxFontMapper *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontMapper *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFontMapper *)wxFontMapper::Get(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontMapper *arg1 = (wxFontMapper *) 0 ; - wxFontMapper *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "mapper", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFontMapper *)wxFontMapper::Set(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontMapper *arg1 = (wxFontMapper *) 0 ; - wxString *arg2 = 0 ; - bool arg3 = (bool) True ; - int result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "charset",(char *) "interactive", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - size_t result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (size_t)wxFontMapper::GetSupportedEncodingsCount(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - size_t arg1 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail; - arg1 = (size_t) SWIG_AsUnsignedLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxFontMapper::GetEncoding(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "encoding", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail; - arg1 = (wxFontEncoding) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxFontMapper::GetEncodingName((wxFontEncoding )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 - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "encoding", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail; - arg1 = (wxFontEncoding) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxFontMapper::GetEncodingDescription((wxFontEncoding )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 - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - int result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxFontMapper::GetEncodingFromName((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontMapper *arg1 = (wxFontMapper *) 0 ; - wxConfigBase *arg2 = (wxConfigBase *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "config", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetConfig(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontMapper *arg1 = (wxFontMapper *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "prefix", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetConfigPath((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxFontMapper::GetDefaultConfigPath(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontMapper *arg1 = (wxFontMapper *) 0 ; - int arg2 ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - bool arg4 = (bool) True ; - PyObject *result; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxFontEncoding) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - if (obj3) { - arg4 = (bool) SWIG_AsBool(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontMapper *arg1 = (wxFontMapper *) 0 ; - int arg2 ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - bool result; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "encoding",(char *) "facename", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxFontEncoding) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontMapper *arg1 = (wxFontMapper *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDialogParent(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontMapper *arg1 = (wxFontMapper *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "title", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDialogTitle((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - int arg2 ; - int arg3 ; - int arg4 ; - bool arg5 = (bool) False ; - wxString const &arg6_defvalue = wxPyEmptyString ; - wxString *arg6 = (wxString *) &arg6_defvalue ; - int arg7 = (int) wxFONTENCODING_DEFAULT ; - wxFont *result; - bool temp6 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - if (obj4) { - arg5 = (bool) SWIG_AsBool(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - { - arg6 = wxString_in_helper(obj5); - if (arg6 == NULL) SWIG_fail; - temp6 = True; - } - } - if (obj6) { - arg7 = (wxFontEncoding) SWIG_AsInt(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); - { - if (temp6) - delete arg6; - } - return resultobj; - fail: - { - if (temp6) - delete arg6; - } - return NULL; -} - - -static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxNativeFontInfo *arg1 = 0 ; - wxFont *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "info", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxFont *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "info", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFont *)new_wxFont((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - int arg2 ; - int arg3 = (int) wxFONTFLAG_DEFAULT ; - wxString const &arg4_defvalue = wxPyEmptyString ; - wxString *arg4 = (wxString *) &arg4_defvalue ; - int arg5 = (int) wxFONTENCODING_DEFAULT ; - wxFont *result; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - arg2 = (wxFontFamily) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - } - if (obj4) { - arg5 = (wxFontEncoding) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxFont const *)arg1)->Ok(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - wxFont *arg2 = (wxFont *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - wxFont *arg2 = (wxFont *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxFont const *)arg1)->GetPointSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxFont const *)arg1)->GetFamily(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxFont const *)arg1)->GetStyle(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxFont const *)arg1)->GetWeight(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxFont const *)arg1)->GetUnderlined(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxFont const *)arg1)->GetFaceName(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxFont const *)arg1)->GetEncoding(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - wxNativeFontInfo *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxFont const *)arg1)->IsFixedWidth(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxFont const *)arg1)->GetNativeFontInfoDesc(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pointSize", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPointSize(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "family", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFamily(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetStyle(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "weight", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetWeight(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "faceName", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFaceName((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "underlined", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetUnderlined(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "encoding", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxFontEncoding) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetEncoding((wxFontEncoding )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - wxNativeFontInfo *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "info", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "info", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetNativeFontInfo((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "info", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxFont const *)arg1)->GetFamilyString(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxFont const *)arg1)->GetStyleString(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxFont const *)arg1)->GetWeightString(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - bool arg2 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "no", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetNoAntiAliasing(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFont *arg1 = (wxFont *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetNoAntiAliasing(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxFont::GetDefaultEncoding(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "encoding", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail; - arg1 = (wxFontEncoding) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxFont::SetDefaultEncoding((wxFontEncoding )arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * Font_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFontEnumerator *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyFontEnumerator *)new wxPyFontEnumerator(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - bool arg4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - arg4 = (bool) SWIG_AsBool(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; - int arg2 = (int) wxFONTENCODING_SYSTEM ; - bool arg3 = (bool) False ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (wxFontEncoding) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; - wxString const &arg2_defvalue = wxPyEmptyString ; - wxString *arg2 = (wxString *) &arg2_defvalue ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "facename", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "Language", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->Language = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->Language); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; - wxString *arg2 = (wxString *) 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "CanonicalName", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (arg1) (arg1)->CanonicalName = *arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (wxString *)& ((arg1)->CanonicalName); - - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; - wxString *arg2 = (wxString *) 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "Description", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (arg1) (arg1)->Description = *arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (wxString *)& ((arg1)->Description); - - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) wxLANGUAGE_DEFAULT ; - int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; - wxLocale *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "language",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxLocale *)new wxLocale(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLocale *arg1 = (wxLocale *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLocale *arg1 = (wxLocale *) 0 ; - wxString *arg2 = 0 ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - wxString const &arg4_defvalue = wxPyEmptyString ; - wxString *arg4 = (wxString *) &arg4_defvalue ; - bool arg5 = (bool) True ; - bool arg6 = (bool) False ; - bool result; - bool temp2 = False ; - bool temp3 = False ; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - if (obj3) { - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - } - if (obj4) { - arg5 = (bool) SWIG_AsBool(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - arg6 = (bool) SWIG_AsBool(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLocale *arg1 = (wxLocale *) 0 ; - int arg2 = (int) wxLANGUAGE_DEFAULT ; - int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "language",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Init(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxLocale::GetSystemLanguage(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxLocale::GetSystemEncoding(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxLocale::GetSystemEncodingName(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLocale *arg1 = (wxLocale *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxLocale const *)arg1)->IsOk(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLocale *arg1 = (wxLocale *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxLocale const *)arg1)->GetLocale(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLocale *arg1 = (wxLocale *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxLocale const *)arg1)->GetLanguage(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLocale *arg1 = (wxLocale *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxLocale const *)arg1)->GetSysName(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLocale *arg1 = (wxLocale *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxLocale const *)arg1)->GetCanonicalName(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "prefix", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLocale *arg1 = (wxLocale *) 0 ; - wxString *arg2 = 0 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "szDomain", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->AddCatalog((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLocale *arg1 = (wxLocale *) 0 ; - wxString *arg2 = 0 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "szDomain", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - wxLanguageInfo *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "lang", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "lang", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxLocale::GetLanguageName(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 - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxLanguageInfo *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "locale", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0); - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLanguageInfo *arg1 = 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "info", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLocale::AddLanguage((wxLanguageInfo const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLocale *arg1 = (wxLocale *) 0 ; - wxString *arg2 = 0 ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - wxString result; - bool temp2 = False ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3); - - 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 (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLocale *arg1 = (wxLocale *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = ((wxLocale const *)arg1)->GetName(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * Locale_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLocale *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxLocale *)wxGetLocale(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxGetTranslation((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; -} - - -static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString *arg2 = 0 ; - size_t arg3 ; - wxString result; - bool temp1 = False ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - arg3 = (size_t) SWIG_AsUnsignedLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3); - - 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; - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if (argc == 1) { - int _v; - { - _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); - } - if (_v) { - return _wrap_GetTranslation__SWIG_0(self,args); - } - } - if (argc == 3) { - int _v; - { - _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); - } - if (_v) { - { - _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); - } - if (_v) { - _v = SWIG_CheckUnsignedLong(argv[2]); - if (_v) { - return _wrap_GetTranslation__SWIG_1(self,args); - } - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'"); - return NULL; -} - - -static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEncodingConverter *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxEncodingConverter *)new wxEncodingConverter(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; - int arg2 ; - int arg3 ; - int arg4 = (int) wxCONVERT_STRICT ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxFontEncoding) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (wxFontEncoding) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; - wxString *arg2 = 0 ; - wxString result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "input", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->Convert((wxString const &)*arg2); - - 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 (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - int arg2 = (int) wxPLATFORM_CURRENT ; - wxFontEncodingArray result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "enc",(char *) "platform", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail; - arg1 = (wxFontEncoding) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = PyList_New(0); - for (size_t i=0; i < (&result)->GetCount(); i++) { - PyObject* number = PyInt_FromLong((&result)->Item(i)); - PyList_Append(resultobj, number); - Py_DECREF(number); - } - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - wxFontEncodingArray result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "enc", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail; - arg1 = (wxFontEncoding) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = PyList_New(0); - for (size_t i=0; i < (&result)->GetCount(); i++) { - PyObject* number = PyInt_FromLong((&result)->Item(i)); - PyList_Append(resultobj, number); - Py_DECREF(number); - } - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "encIn",(char *) "encOut", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail; - arg1 = (wxFontEncoding) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - arg2 = (wxFontEncoding) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->BeginDrawing(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->EndDrawing(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int arg3 ; - wxColour *arg4 = 0 ; - int arg5 = (int) wxFLOOD_SURFACE ; - bool result; - wxColour temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFillXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - arg4 = &temp4; - if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxPoint *arg2 = 0 ; - wxColour *arg3 = 0 ; - int arg4 = (int) wxFLOOD_SURFACE ; - bool result; - wxPoint temp2 ; - wxColour temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - arg3 = &temp3; - if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int arg3 ; - wxColour result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixelXY",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDC_GetPixelXY(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxPoint *arg2 = 0 ; - wxColour result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLineXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawLine(arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint *arg3 = 0 ; - wxPoint temp2 ; - wxPoint temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt1",(char *) "pt2", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHairXY",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->CrossHair(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->CrossHair((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - arg6 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - arg7 = (int) SWIG_AsInt(obj6); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint *arg3 = 0 ; - wxPoint *arg4 = 0 ; - wxPoint temp2 ; - wxPoint temp3 ; - wxPoint temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMarkXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxRect *arg2 = 0 ; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawCheckMark((wxRect const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - double arg6 ; - double arg7 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - arg6 = (double) SWIG_AsDouble(obj5); - if (PyErr_Occurred()) SWIG_fail; - arg7 = (double) SWIG_AsDouble(obj6); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxPoint *arg2 = 0 ; - wxSize *arg3 = 0 ; - double arg4 ; - double arg5 ; - wxPoint temp2 ; - wxSize temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - arg3 = &temp3; - if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; - } - arg4 = (double) SWIG_AsDouble(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (double) SWIG_AsDouble(obj4); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPointXY",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawPoint(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawPoint((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxPoint *arg2 = 0 ; - wxSize *arg3 = 0 ; - wxPoint temp2 ; - wxSize temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt",(char *) "sz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - arg3 = &temp3; - if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxRect *arg2 = 0 ; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawRectangle((wxRect const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - double arg6 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - arg6 = (double) SWIG_AsDouble(obj5); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxPoint *arg2 = 0 ; - wxSize *arg3 = 0 ; - double arg4 ; - wxPoint temp2 ; - wxSize temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - arg3 = &temp3; - if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; - } - arg4 = (double) SWIG_AsDouble(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxRect *arg2 = 0 ; - double arg3 ; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "r",(char *) "radius", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - arg3 = (double) SWIG_AsDouble(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircleXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawCircle(arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxPoint *arg2 = 0 ; - int arg3 ; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt",(char *) "radius", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipseXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxPoint *arg2 = 0 ; - wxSize *arg3 = 0 ; - wxPoint temp2 ; - wxSize temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt",(char *) "sz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - arg3 = &temp3; - if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxRect *arg2 = 0 ; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawEllipse((wxRect const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxIcon *arg2 = 0 ; - int arg3 ; - int arg4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIconXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxIcon *arg2 = 0 ; - wxPoint *arg3 = 0 ; - wxPoint temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "icon",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxBitmap *arg2 = 0 ; - int arg3 ; - int arg4 ; - bool arg5 = (bool) False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - if (obj4) { - arg5 = (bool) SWIG_AsBool(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxBitmap *arg2 = 0 ; - wxPoint *arg3 = 0 ; - bool arg4 = (bool) False ; - wxPoint temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - if (obj3) { - arg4 = (bool) SWIG_AsBool(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxString *arg2 = 0 ; - int arg3 ; - int arg4 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawTextXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxString *arg2 = 0 ; - wxPoint *arg3 = 0 ; - bool temp2 = False ; - wxPoint temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "text",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxString *arg2 = 0 ; - int arg3 ; - int arg4 ; - double arg5 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (double) SWIG_AsDouble(obj4); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxString *arg2 = 0 ; - wxPoint *arg3 = 0 ; - double arg4 ; - bool temp2 = False ; - wxPoint temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - arg4 = (double) SWIG_AsDouble(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - wxDC *arg6 = (wxDC *) 0 ; - int arg7 ; - int arg8 ; - int arg9 = (int) wxCOPY ; - bool arg10 = (bool) False ; - int arg11 = (int) -1 ; - int arg12 = (int) -1 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - PyObject * obj9 = 0 ; - PyObject * obj10 = 0 ; - PyObject * obj11 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "xdest",(char *) "ydest",(char *) "width",(char *) "height",(char *) "source",(char *) "xsrc",(char *) "ysrc",(char *) "rop",(char *) "useMask",(char *) "xsrcMask",(char *) "ysrcMask", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO|OOOO:DC_BlitXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg7 = (int) SWIG_AsInt(obj6); - if (PyErr_Occurred()) SWIG_fail; - arg8 = (int) SWIG_AsInt(obj7); - if (PyErr_Occurred()) SWIG_fail; - if (obj8) { - arg9 = (int) SWIG_AsInt(obj8); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj9) { - arg10 = (bool) SWIG_AsBool(obj9); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj10) { - arg11 = (int) SWIG_AsInt(obj10); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj11) { - arg12 = (int) SWIG_AsInt(obj11); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxPoint *arg2 = 0 ; - wxSize *arg3 = 0 ; - wxDC *arg4 = (wxDC *) 0 ; - wxPoint *arg5 = 0 ; - int arg6 = (int) wxCOPY ; - bool arg7 = (bool) False ; - wxPoint const &arg8_defvalue = wxDefaultPosition ; - wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; - bool result; - wxPoint temp2 ; - wxSize temp3 ; - wxPoint temp5 ; - wxPoint temp8 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - arg3 = &temp3; - if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; - } - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg5 = &temp5; - if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; - } - if (obj5) { - arg6 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - arg7 = (bool) SWIG_AsBool(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - { - arg8 = &temp8; - if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - wxPoint *arg3 = (wxPoint *) 0 ; - int arg4 = (int) 0 ; - int arg5 = (int) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg3 = wxPoint_LIST_helper(obj1, &arg2); - if (arg3 == NULL) SWIG_fail; - } - if (obj2) { - arg4 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg5 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawLines(arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (arg3) delete [] arg3; - } - return resultobj; - fail: - { - if (arg3) delete [] arg3; - } - return NULL; -} - - -static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - wxPoint *arg3 = (wxPoint *) 0 ; - int arg4 = (int) 0 ; - int arg5 = (int) 0 ; - int arg6 = (int) wxODDEVEN_RULE ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg3 = wxPoint_LIST_helper(obj1, &arg2); - if (arg3 == NULL) SWIG_fail; - } - if (obj2) { - arg4 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg5 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj4) { - arg6 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (arg3) delete [] arg3; - } - return resultobj; - fail: - { - if (arg3) delete [] arg3; - } - return NULL; -} - - -static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxString *arg2 = 0 ; - wxRect *arg3 = 0 ; - int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; - int arg5 = (int) -1 ; - bool temp2 = False ; - wxRect temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - arg3 = &temp3; - if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxString *arg2 = 0 ; - wxBitmap *arg3 = 0 ; - wxRect *arg4 = 0 ; - int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; - int arg6 = (int) -1 ; - wxRect result; - bool temp2 = False ; - wxRect temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - arg4 = &temp4; - if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - arg6 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxRect * resultptr; - resultptr = new wxRect((wxRect &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - wxPoint *arg3 = (wxPoint *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "points", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg3 = wxPoint_LIST_helper(obj1, &arg2); - if (arg3 == NULL) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawSpline(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (arg3) delete [] arg3; - } - return resultobj; - fail: - { - if (arg3) delete [] arg3; - } - return NULL; -} - - -static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Clear(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxString *arg2 = 0 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "message", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->StartDoc((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->EndDoc(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->StartPage(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->EndPage(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxFont *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "font", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFont((wxFont const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxPen *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pen", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPen((wxPen const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxBrush *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "brush", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetBrush((wxBrush const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxBrush *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "brush", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetBackground((wxBrush const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "mode", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetBackgroundMode(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxPalette *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "palette", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPalette((wxPalette const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegionXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxPoint *arg2 = 0 ; - wxSize *arg3 = 0 ; - wxPoint temp2 ; - wxSize temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt",(char *) "sz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - arg3 = &temp3; - if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxRect *arg2 = 0 ; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetClippingRegion((wxRect const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxRegion *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "region", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetClippingRegion((wxRegion const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DestroyClippingRegion(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int *arg4 = (int *) 0 ; - int *arg5 = (int *) 0 ; - int temp2 ; - int temp3 ; - int temp4 ; - int temp5 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - arg4 = &temp4; - arg5 = &temp5; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg4)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg5)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxRect result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDC_GetClippingRect(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxRect * resultptr; - resultptr = new wxRect((wxRect &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDC const *)arg1)->GetCharHeight(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDC const *)arg1)->GetCharWidth(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxString *arg2 = 0 ; - int *arg3 = (int *) 0 ; - int *arg4 = (int *) 0 ; - bool temp2 = False ; - int temp3 ; - int temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "string", NULL - }; - - arg3 = &temp3; - arg4 = &temp4; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg4)); - resultobj = t_output_helper(resultobj,o); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxString *arg2 = 0 ; - int *arg3 = (int *) 0 ; - int *arg4 = (int *) 0 ; - int *arg5 = (int *) 0 ; - int *arg6 = (int *) 0 ; - wxFont *arg7 = (wxFont *) NULL ; - bool temp2 = False ; - int temp3 ; - int temp4 ; - int temp5 ; - int temp6 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "string",(char *) "font", NULL - }; - - arg3 = &temp3; - arg4 = &temp4; - arg5 = &temp5; - arg6 = &temp6; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg4)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg5)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg6)); - resultobj = t_output_helper(resultobj,o); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxString *arg2 = 0 ; - int *arg3 = (int *) 0 ; - int *arg4 = (int *) 0 ; - int *arg5 = (int *) 0 ; - wxFont *arg6 = (wxFont *) NULL ; - bool temp2 = False ; - int temp3 ; - int temp4 ; - int temp5 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "text",(char *) "font", NULL - }; - - arg3 = &temp3; - arg4 = &temp4; - arg5 = &temp5; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg4)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg5)); - resultobj = t_output_helper(resultobj,o); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxString *arg2 = 0 ; - wxArrayInt result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "text", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = PyList_New(0); - size_t idx; - for (idx = 0; idx < (&result)->GetCount(); idx += 1) { - PyObject* val = PyInt_FromLong( (&result)->Item(idx) ); - PyList_Append(resultobj, val); - Py_DECREF(val); - } - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->GetSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxDC const *)arg1)->GetSizeMM(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxDC const *)arg1)->GetSizeMM(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxDC const *)arg1)->CanDrawBitmap(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxDC const *)arg1)->CanGetTextExtent(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDC const *)arg1)->GetDepth(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxDC const *)arg1)->GetPPI(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxDC const *)arg1)->Ok(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDC const *)arg1)->GetBackgroundMode(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxBrush *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground(); - result = (wxBrush *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxBrush* resultptr = new wxBrush(*result); - resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxBrush *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush(); - result = (wxBrush *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxBrush* resultptr = new wxBrush(*result); - resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxFont *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont(); - result = (wxFont *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxFont* resultptr = new wxFont(*result); - resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxPen *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen(); - result = (wxPen *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPen* resultptr = new wxPen(*result); - resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxColour *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground(); - result = (wxColour *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxColour *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground(); - result = (wxColour *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colour", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetTextForeground((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colour", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetTextBackground((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDC const *)arg1)->GetMapMode(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "mode", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMapMode(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - double *arg2 = (double *) 0 ; - double *arg3 = (double *) 0 ; - double temp2 ; - double temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxDC const *)arg1)->GetUserScale(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyFloat_FromDouble((double) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyFloat_FromDouble((double) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - double arg2 ; - double arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (double) SWIG_AsDouble(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (double) SWIG_AsDouble(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetUserScale(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - double *arg2 = (double *) 0 ; - double *arg3 = (double *) 0 ; - double temp2 ; - double temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->GetLogicalScale(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyFloat_FromDouble((double) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyFloat_FromDouble((double) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - double arg2 ; - double arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (double) SWIG_AsDouble(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (double) SWIG_AsDouble(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetLogicalScale(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxDC const *)arg1)->GetLogicalOrigin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetLogicalOrigin(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxDC const *)arg1)->GetDeviceOrigin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDeviceOrigin(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - bool arg2 ; - bool arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetAxisOrientation(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDC const *)arg1)->GetLogicalFunction(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "function", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetLogicalFunction(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "opt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetOptimization(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetOptimization(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->CalcBoundingBox(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ResetBoundingBox(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDC const *)arg1)->MinX(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDC const *)arg1)->MaxX(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDC const *)arg1)->MinY(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDC const *)arg1)->MaxY(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int *arg4 = (int *) 0 ; - int *arg5 = (int *) 0 ; - int temp2 ; - int temp3 ; - int temp4 ; - int temp5 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - arg4 = &temp4; - arg5 = &temp5; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg4)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg5)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject *arg4 = (PyObject *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - arg4 = obj3; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject *arg4 = (PyObject *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - arg4 = obj3; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject *arg4 = (PyObject *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - arg4 = obj3; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject *arg4 = (PyObject *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - arg4 = obj3; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject *arg4 = (PyObject *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - arg4 = obj3; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject *arg4 = (PyObject *) 0 ; - PyObject *arg5 = (PyObject *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - arg4 = obj3; - arg5 = obj4; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject * DC_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMemoryDC *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMemoryDC *)new wxMemoryDC(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxMemoryDC *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "oldDC", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMemoryDC *)new wxMemoryDC(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; - wxBitmap *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bitmap", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SelectObject((wxBitmap const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxBitmap *arg2 = 0 ; - wxBufferedDC *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxSize *arg2 = 0 ; - wxBufferedDC *result; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_new_BufferedDC__SWIG_0(self,args); - } - } - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2); - } - if (_v) { - return _wrap_new_BufferedDC__SWIG_1(self,args); - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'"); - return NULL; -} - - -static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxDC *arg1 = (wxDC *) 0 ; - wxSize *arg2 = 0 ; - wxBufferedDC *result; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDCInternalBuffer",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->UnMask(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxBitmap const &arg2_defvalue = wxNullBitmap ; - wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; - wxBufferedPaintDC *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "window",(char *) "buffer", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScreenDC *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxScreenDC *)new wxScreenDC(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScreenDC *arg1 = (wxScreenDC *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "window", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->StartDrawingOnTop(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScreenDC *arg1 = (wxScreenDC *) 0 ; - wxRect *arg2 = (wxRect *) NULL ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->StartDrawingOnTop(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScreenDC *arg1 = (wxScreenDC *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->EndDrawingOnTop(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxClientDC *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "win", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxClientDC *)new wxClientDC(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxPaintDC *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "win", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPaintDC *)new wxPaintDC(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxWindowDC *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "win", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindowDC *)new wxWindowDC(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDC *arg1 = 0 ; - bool arg2 ; - wxMirrorDC *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "dc",(char *) "mirror", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = 0 ; - wxPostScriptDC *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "printData", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; - wxPrintData *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxPrintData &_result_ref = (arg1)->GetPrintData(); - result = (wxPrintData *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; - wxPrintData *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPrintData((wxPrintData const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "ppi", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxPostScriptDC::SetResolution(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxPostScriptDC::GetResolution(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString const &arg1_defvalue = wxPyEmptyString ; - wxString *arg1 = (wxString *) &arg1_defvalue ; - wxMetaFile *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "filename", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail; - if (obj0) { - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1); - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_delete_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMetaFile *arg1 = (wxMetaFile *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMetaFile *arg1 = (wxMetaFile *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Ok(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMetaFile *arg1 = (wxMetaFile *) 0 ; - int arg2 = (int) 0 ; - int arg3 = (int) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetClipboard(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMetaFile *arg1 = (wxMetaFile *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMetaFile *arg1 = (wxMetaFile *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetWidth(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMetaFile *arg1 = (wxMetaFile *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetHeight(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MetaFile_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMetaFile *arg1 = (wxMetaFile *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetFileName",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString const &arg1_defvalue = wxPyEmptyString ; - wxString *arg1 = (wxString *) &arg1_defvalue ; - int arg2 = (int) 0 ; - int arg3 = (int) 0 ; - wxString const &arg4_defvalue = wxPyEmptyString ; - wxString *arg4 = (wxString *) &arg4_defvalue ; - wxMetaFileDC *result; - bool temp1 = False ; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if (obj0) { - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1); - { - if (temp1) - delete arg1; - } - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_MetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ; - wxMetaFile *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFileDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMetaFile *)(arg1)->Close(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = 0 ; - wxPrinterDC *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "printData", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - int arg2 ; - int arg3 = (int) True ; - int arg4 = (int) 1 ; - wxImageList *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImageList *arg1 = (wxImageList *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImageList *arg1 = (wxImageList *) 0 ; - wxBitmap *arg2 = 0 ; - wxBitmap const &arg3_defvalue = wxNullBitmap ; - wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bitmap",(char *) "mask", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if (obj2) { - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImageList *arg1 = (wxImageList *) 0 ; - wxBitmap *arg2 = 0 ; - wxColour *arg3 = 0 ; - int result; - wxColour temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - arg3 = &temp3; - if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImageList *arg1 = (wxImageList *) 0 ; - wxIcon *arg2 = 0 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "icon", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->Add((wxIcon const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImageList *arg1 = (wxImageList *) 0 ; - int arg2 ; - wxBitmap *arg3 = 0 ; - wxBitmap const &arg4_defvalue = wxNullBitmap ; - wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if (obj3) { - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg4 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImageList *arg1 = (wxImageList *) 0 ; - int arg2 ; - wxDC *arg3 = 0 ; - int arg4 ; - int arg5 ; - int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ; - bool arg7 = (bool) (bool)False ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - if (obj5) { - arg6 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - arg7 = (bool const) SWIG_AsBool(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImageList *arg1 = (wxImageList *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetImageCount(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImageList *arg1 = (wxImageList *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "index", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Remove(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImageList *arg1 = (wxImageList *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->RemoveAll(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxImageList *arg1 = (wxImageList *) 0 ; - int arg2 ; - int *arg3 = 0 ; - int *arg4 = 0 ; - int temp3 ; - int temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "index", NULL - }; - - arg3 = &temp3; - arg4 = &temp4; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->GetSize(arg2,*arg3,*arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg4)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_NORMAL_FONT_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only."); - return 1; -} - - -static PyObject *_wrap_NORMAL_FONT_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0); - return pyobj; -} - - -static int _wrap_SMALL_FONT_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only."); - return 1; -} - - -static PyObject *_wrap_SMALL_FONT_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0); - return pyobj; -} - - -static int _wrap_ITALIC_FONT_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only."); - return 1; -} - - -static PyObject *_wrap_ITALIC_FONT_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0); - return pyobj; -} - - -static int _wrap_SWISS_FONT_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only."); - return 1; -} - - -static PyObject *_wrap_SWISS_FONT_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0); - return pyobj; -} - - -static int _wrap_RED_PEN_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only."); - return 1; -} - - -static PyObject *_wrap_RED_PEN_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0); - return pyobj; -} - - -static int _wrap_CYAN_PEN_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only."); - return 1; -} - - -static PyObject *_wrap_CYAN_PEN_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0); - return pyobj; -} - - -static int _wrap_GREEN_PEN_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only."); - return 1; -} - - -static PyObject *_wrap_GREEN_PEN_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0); - return pyobj; -} - - -static int _wrap_BLACK_PEN_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only."); - return 1; -} - - -static PyObject *_wrap_BLACK_PEN_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0); - return pyobj; -} - - -static int _wrap_WHITE_PEN_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only."); - return 1; -} - - -static PyObject *_wrap_WHITE_PEN_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0); - return pyobj; -} - - -static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only."); - return 1; -} - - -static PyObject *_wrap_TRANSPARENT_PEN_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0); - return pyobj; -} - - -static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only."); - return 1; -} - - -static PyObject *_wrap_BLACK_DASHED_PEN_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0); - return pyobj; -} - - -static int _wrap_GREY_PEN_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only."); - return 1; -} - - -static PyObject *_wrap_GREY_PEN_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0); - return pyobj; -} - - -static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only."); - return 1; -} - - -static PyObject *_wrap_MEDIUM_GREY_PEN_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0); - return pyobj; -} - - -static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only."); - return 1; -} - - -static PyObject *_wrap_LIGHT_GREY_PEN_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0); - return pyobj; -} - - -static int _wrap_BLUE_BRUSH_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only."); - return 1; -} - - -static PyObject *_wrap_BLUE_BRUSH_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0); - return pyobj; -} - - -static int _wrap_GREEN_BRUSH_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only."); - return 1; -} - - -static PyObject *_wrap_GREEN_BRUSH_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0); - return pyobj; -} - - -static int _wrap_WHITE_BRUSH_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only."); - return 1; -} - - -static PyObject *_wrap_WHITE_BRUSH_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0); - return pyobj; -} - - -static int _wrap_BLACK_BRUSH_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only."); - return 1; -} - - -static PyObject *_wrap_BLACK_BRUSH_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0); - return pyobj; -} - - -static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only."); - return 1; -} - - -static PyObject *_wrap_TRANSPARENT_BRUSH_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0); - return pyobj; -} - - -static int _wrap_CYAN_BRUSH_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only."); - return 1; -} - - -static PyObject *_wrap_CYAN_BRUSH_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0); - return pyobj; -} - - -static int _wrap_RED_BRUSH_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only."); - return 1; -} - - -static PyObject *_wrap_RED_BRUSH_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0); - return pyobj; -} - - -static int _wrap_GREY_BRUSH_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only."); - return 1; -} - - -static PyObject *_wrap_GREY_BRUSH_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0); - return pyobj; -} - - -static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only."); - return 1; -} - - -static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0); - return pyobj; -} - - -static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only."); - return 1; -} - - -static PyObject *_wrap_LIGHT_GREY_BRUSH_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0); - return pyobj; -} - - -static int _wrap_BLACK_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only."); - return 1; -} - - -static PyObject *_wrap_BLACK_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0); - return pyobj; -} - - -static int _wrap_WHITE_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only."); - return 1; -} - - -static PyObject *_wrap_WHITE_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0); - return pyobj; -} - - -static int _wrap_RED_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable RED is read-only."); - return 1; -} - - -static PyObject *_wrap_RED_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0); - return pyobj; -} - - -static int _wrap_BLUE_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only."); - return 1; -} - - -static PyObject *_wrap_BLUE_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0); - return pyobj; -} - - -static int _wrap_GREEN_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only."); - return 1; -} - - -static PyObject *_wrap_GREEN_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0); - return pyobj; -} - - -static int _wrap_CYAN_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only."); - return 1; -} - - -static PyObject *_wrap_CYAN_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0); - return pyobj; -} - - -static int _wrap_LIGHT_GREY_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only."); - return 1; -} - - -static PyObject *_wrap_LIGHT_GREY_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0); - return pyobj; -} - - -static int _wrap_STANDARD_CURSOR_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only."); - return 1; -} - - -static PyObject *_wrap_STANDARD_CURSOR_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0); - return pyobj; -} - - -static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only."); - return 1; -} - - -static PyObject *_wrap_HOURGLASS_CURSOR_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0); - return pyobj; -} - - -static int _wrap_CROSS_CURSOR_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only."); - return 1; -} - - -static PyObject *_wrap_CROSS_CURSOR_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0); - return pyobj; -} - - -static int _wrap_NullBitmap_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only."); - return 1; -} - - -static PyObject *_wrap_NullBitmap_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0); - return pyobj; -} - - -static int _wrap_NullIcon_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only."); - return 1; -} - - -static PyObject *_wrap_NullIcon_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0); - return pyobj; -} - - -static int _wrap_NullCursor_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only."); - return 1; -} - - -static PyObject *_wrap_NullCursor_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0); - return pyobj; -} - - -static int _wrap_NullPen_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only."); - return 1; -} - - -static PyObject *_wrap_NullPen_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0); - return pyobj; -} - - -static int _wrap_NullBrush_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only."); - return 1; -} - - -static PyObject *_wrap_NullBrush_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0); - return pyobj; -} - - -static int _wrap_NullPalette_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only."); - return 1; -} - - -static PyObject *_wrap_NullPalette_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0); - return pyobj; -} - - -static int _wrap_NullFont_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only."); - return 1; -} - - -static PyObject *_wrap_NullFont_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0); - return pyobj; -} - - -static int _wrap_NullColour_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only."); - return 1; -} - - -static PyObject *_wrap_NullColour_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0); - return pyobj; -} - - -static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPenList *arg1 = (wxPenList *) 0 ; - wxPen *arg2 = (wxPen *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pen", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AddPen(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPenList *arg1 = (wxPenList *) 0 ; - wxColour *arg2 = 0 ; - int arg3 ; - int arg4 ; - wxPen *result; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPenList *arg1 = (wxPenList *) 0 ; - wxPen *arg2 = (wxPen *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pen", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RemovePen(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPenList *arg1 = (wxPenList *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetCount(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * PenList_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBrushList *arg1 = (wxBrushList *) 0 ; - wxBrush *arg2 = (wxBrush *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "brush", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AddBrush(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBrushList *arg1 = (wxBrushList *) 0 ; - wxColour *arg2 = 0 ; - int arg3 ; - wxBrush *result; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colour",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBrushList *arg1 = (wxBrushList *) 0 ; - wxBrush *arg2 = (wxBrush *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "brush", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RemoveBrush(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBrushList *arg1 = (wxBrushList *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetCount(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColourDatabase *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxColourDatabase *)new wxColourDatabase(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; - wxString *arg2 = 0 ; - wxColour result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; - wxColour *arg2 = 0 ; - wxString result; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colour", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; - wxString *arg2 = 0 ; - wxColour *arg3 = 0 ; - bool temp2 = False ; - wxColour temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name",(char *) "colour", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - arg3 = &temp3; - if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; - wxString *arg2 = 0 ; - int arg3 ; - int arg4 ; - int arg5 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontList *arg1 = (wxFontList *) 0 ; - wxFont *arg2 = (wxFont *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "font", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AddFont(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontList *arg1 = (wxFontList *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - bool arg6 = (bool) False ; - wxString const &arg7_defvalue = wxPyEmptyString ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - int arg8 = (int) wxFONTENCODING_DEFAULT ; - wxFont *result; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - if (obj5) { - arg6 = (bool) SWIG_AsBool(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - if (obj7) { - arg8 = (wxFontEncoding) SWIG_AsInt(obj7); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0); - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontList *arg1 = (wxFontList *) 0 ; - wxFont *arg2 = (wxFont *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "font", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RemoveFont(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontList *arg1 = (wxFontList *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetCount(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * FontList_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_TheFontList_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only."); - return 1; -} - - -static PyObject *_wrap_TheFontList_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0); - return pyobj; -} - - -static int _wrap_ThePenList_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only."); - return 1; -} - - -static PyObject *_wrap_ThePenList_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0); - return pyobj; -} - - -static int _wrap_TheBrushList_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only."); - return 1; -} - - -static PyObject *_wrap_TheBrushList_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0); - return pyobj; -} - - -static int _wrap_TheColourDatabase_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only."); - return 1; -} - - -static PyObject *_wrap_TheColourDatabase_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0); - return pyobj; -} - - -static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEffects *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxEffects *)new wxEffects(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEffects *arg1 = (wxEffects *) 0 ; - wxColour result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxEffects const *)arg1)->GetHighlightColour(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEffects *arg1 = (wxEffects *) 0 ; - wxColour result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxEffects const *)arg1)->GetLightShadow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEffects *arg1 = (wxEffects *) 0 ; - wxColour result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxEffects const *)arg1)->GetFaceColour(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEffects *arg1 = (wxEffects *) 0 ; - wxColour result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxEffects const *)arg1)->GetMediumShadow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEffects *arg1 = (wxEffects *) 0 ; - wxColour result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxEffects const *)arg1)->GetDarkShadow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEffects *arg1 = (wxEffects *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "c", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetHighlightColour((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEffects *arg1 = (wxEffects *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "c", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetLightShadow((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEffects *arg1 = (wxEffects *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "c", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFaceColour((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEffects *arg1 = (wxEffects *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "c", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMediumShadow((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEffects *arg1 = (wxEffects *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "c", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDarkShadow((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEffects *arg1 = (wxEffects *) 0 ; - wxColour *arg2 = 0 ; - wxColour *arg3 = 0 ; - wxColour *arg4 = 0 ; - wxColour *arg5 = 0 ; - wxColour *arg6 = 0 ; - wxColour temp2 ; - wxColour temp3 ; - wxColour temp4 ; - wxColour temp5 ; - wxColour temp6 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - arg3 = &temp3; - if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; - } - { - arg4 = &temp4; - if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; - } - { - arg5 = &temp5; - if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail; - } - { - arg6 = &temp6; - if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEffects *arg1 = (wxEffects *) 0 ; - wxDC *arg2 = 0 ; - wxRect *arg3 = 0 ; - int arg4 = (int) 1 ; - wxRect temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - arg3 = &temp3; - if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEffects *arg1 = (wxEffects *) 0 ; - wxRect *arg2 = 0 ; - wxDC *arg3 = 0 ; - wxBitmap *arg4 = 0 ; - bool result; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg4 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * Effects_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyMethodDef SwigMethods[] = { - { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS }, - { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS }, - { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS }, - { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Pen_GetStipple", (PyCFunction) _wrap_Pen_GetStipple, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS }, - { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS }, - { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS }, - { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_EmptyBitmap", _wrap_new_EmptyBitmap, METH_VARARGS }, - { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Bitmap_GetHandle", (PyCFunction) _wrap_Bitmap_GetHandle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Bitmap_GetQuality", (PyCFunction) _wrap_Bitmap_GetQuality, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Bitmap_SetQuality", (PyCFunction) _wrap_Bitmap_SetQuality, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS }, - { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS }, - { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Icon_GetHandle", (PyCFunction) _wrap_Icon_GetHandle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS }, - { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS }, - { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS }, - { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Cursor_GetHandle", (PyCFunction) _wrap_Cursor_GetHandle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Cursor_GetWidth", (PyCFunction) _wrap_Cursor_GetWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Cursor_GetHeight", (PyCFunction) _wrap_Cursor_GetHeight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Cursor_GetDepth", (PyCFunction) _wrap_Cursor_GetDepth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS }, - { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS }, - { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS }, - { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS }, - { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS }, - { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS }, - { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS }, - { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS }, - { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS }, - { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS }, - { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS }, - { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS }, - { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS }, - { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS }, - { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS }, - { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS }, - { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS }, - { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS }, - { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS }, - { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS }, - { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS }, - { (char *)"new_BufferedDCInternalBuffer", _wrap_new_BufferedDCInternalBuffer, METH_VARARGS }, - { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS }, - { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS }, - { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS }, - { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS }, - { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS }, - { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS }, - { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS }, - { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS }, - { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS }, - { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MetaFile_GetFileName", (PyCFunction) _wrap_MetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS }, - { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS }, - { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS }, - { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS }, - { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS }, - { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS }, - { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS }, - { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS }, - { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS }, - { NULL, NULL } -}; - - -/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ - -static void *_p_wxControlTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) ((wxControl *) x)); -} -static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); -} -static void *_p_wxMenuBarTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) ((wxMenuBar *) x)); -} -static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) { - return (void *)((wxMemoryDC *) ((wxBufferedDC *) x)); -} -static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) { - return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x)); -} -static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxLayoutConstraints *) x)); -} -static void *_p_wxPenTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x)); -} -static void *_p_wxRegionIteratorTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxRegionIterator *) x)); -} -static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); -} -static void *_p_wxSizerItemTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxSizerItem *) x)); -} -static void *_p_wxColourDatabaseTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxColourDatabase *) x)); -} -static void *_p_wxScrollEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); -} -static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); -} -static void *_p_wxIconTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x)); -} -static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); -} -static void *_p_wxBoxSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); -} -static void *_p_wxSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxSizer *) x)); -} -static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); -} -static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); -} -static void *_p_wxPenListTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxPenList *) x)); -} -static void *_p_wxEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxEvent *) x)); -} -static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); -} -static void *_p_wxGridSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); -} -static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); -} -static void *_p_wxPaintEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); -} -static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); -} -static void *_p_wxDCTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxDC *) x)); -} -static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); -} -static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); -} -static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); -} -static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); -} -static void *_p_wxControlTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); -} -static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); -} -static void *_p_wxClientDCTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x)); -} -static void *_p_wxFSFileTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxFSFile *) x)); -} -static void *_p_wxMemoryDCTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x)); -} -static void *_p_wxRegionTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x)); -} -static void *_p_wxPySizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); -} -static void *_p_wxWindowDCTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x)); -} -static void *_p_wxGDIObjectTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxGDIObject *) x)); -} -static void *_p_wxEffectsTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxEffects *) x)); -} -static void *_p_wxPyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); -} -static void *_p_wxNotifyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); -} -static void *_p_wxPostScriptDCTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x)); -} -static void *_p_wxShowEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); -} -static void *_p_wxMenuItemTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxMenuItem *) x)); -} -static void *_p_wxIdleEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); -} -static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); -} -static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); -} -static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); -} -static void *_p_wxIconizeEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); -} -static void *_p_wxSizeEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); -} -static void *_p_wxMoveEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); -} -static void *_p_wxActivateEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); -} -static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); -} -static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); -} -static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); -} -static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); -} -static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); -} -static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); -} -static void *_p_wxANIHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); -} -static void *_p_wxCURHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); -} -static void *_p_wxICOHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); -} -static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); -} -static void *_p_wxImageHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxImageHandler *) x)); -} -static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); -} -static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxEvtHandler *) x)); -} -static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); -} -static void *_p_wxPaintDCTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x)); -} -static void *_p_wxPrinterDCTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x)); -} -static void *_p_wxScreenDCTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x)); -} -static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxAcceleratorTable *) x)); -} -static void *_p_wxImageTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxImage *) x)); -} -static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); -} -static void *_p_wxPaletteTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x)); -} -static void *_p_wxBufferedDCTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); -} -static void *_p_wxImageListTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxImageList *) x)); -} -static void *_p_wxCursorTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x)); -} -static void *_p_wxEncodingConverterTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxEncodingConverter *) x)); -} -static void *_p_wxMirrorDCTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x)); -} -static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); -} -static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); -} -static void *_p_wxKeyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); -} -static void *_p_wxWindowTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); -} -static void *_p_wxMenuTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); -} -static void *_p_wxMenuBarTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); -} -static void *_p_wxMetaFileDCTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x)); -} -static void *_p_wxBrushListTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxBrushList *) x)); -} -static void *_p_wxPyPenTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x)); -} -static void *_p_wxFileSystemTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxFileSystem *) x)); -} -static void *_p_wxBitmapTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x)); -} -static void *_p_wxMaskTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxMask *) x)); -} -static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); -} -static void *_p_wxMenuEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); -} -static void *_p_wxPyAppTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); -} -static void *_p_wxCloseEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); -} -static void *_p_wxMouseEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); -} -static void *_p_wxEraseEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); -} -static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); -} -static void *_p_wxCommandEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); -} -static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); -} -static void *_p_wxFocusEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); -} -static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); -} -static void *_p_wxFontTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x)); -} -static void *_p_wxBrushTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x)); -} -static void *_p_wxMetaFileTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxMetaFile *) x)); -} -static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); -} -static void *_p_wxColourTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxColour *) x)); -} -static void *_p_wxFontListTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxFontList *) x)); -} -static void *_p_wxPyValidatorTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); -} -static void *_p_wxValidatorTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); -} -static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) { - return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x)); -} -static void *_p_wxBufferedDCTo_p_wxDC(void *x) { - return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x)); -} -static void *_p_wxScreenDCTo_p_wxDC(void *x) { - return (void *)((wxDC *) ((wxScreenDC *) x)); -} -static void *_p_wxMirrorDCTo_p_wxDC(void *x) { - return (void *)((wxDC *) ((wxMirrorDC *) x)); -} -static void *_p_wxMemoryDCTo_p_wxDC(void *x) { - return (void *)((wxDC *) ((wxMemoryDC *) x)); -} -static void *_p_wxWindowDCTo_p_wxDC(void *x) { - return (void *)((wxDC *) ((wxWindowDC *) x)); -} -static void *_p_wxMetaFileDCTo_p_wxDC(void *x) { - return (void *)((wxDC *) ((wxMetaFileDC *) x)); -} -static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) { - return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); -} -static void *_p_wxClientDCTo_p_wxDC(void *x) { - return (void *)((wxDC *) ((wxClientDC *) x)); -} -static void *_p_wxPaintDCTo_p_wxDC(void *x) { - return (void *)((wxDC *) ((wxPaintDC *) x)); -} -static void *_p_wxPostScriptDCTo_p_wxDC(void *x) { - return (void *)((wxDC *) ((wxPostScriptDC *) x)); -} -static void *_p_wxPrinterDCTo_p_wxDC(void *x) { - return (void *)((wxDC *) ((wxPrinterDC *) x)); -} -static void *_p_wxPyPenTo_p_wxGDIObject(void *x) { - return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x)); -} -static void *_p_wxIconTo_p_wxGDIObject(void *x) { - return (void *)((wxGDIObject *) ((wxIcon *) x)); -} -static void *_p_wxPaletteTo_p_wxGDIObject(void *x) { - return (void *)((wxGDIObject *) ((wxPalette *) x)); -} -static void *_p_wxPenTo_p_wxGDIObject(void *x) { - return (void *)((wxGDIObject *) ((wxPen *) x)); -} -static void *_p_wxFontTo_p_wxGDIObject(void *x) { - return (void *)((wxGDIObject *) ((wxFont *) x)); -} -static void *_p_wxCursorTo_p_wxGDIObject(void *x) { - return (void *)((wxGDIObject *) ((wxCursor *) x)); -} -static void *_p_wxBitmapTo_p_wxGDIObject(void *x) { - return (void *)((wxGDIObject *) ((wxBitmap *) x)); -} -static void *_p_wxRegionTo_p_wxGDIObject(void *x) { - return (void *)((wxGDIObject *) ((wxRegion *) x)); -} -static void *_p_wxBrushTo_p_wxGDIObject(void *x) { - return (void *)((wxGDIObject *) ((wxBrush *) x)); -} -static void *_p_wxPyPenTo_p_wxPen(void *x) { - return (void *)((wxPen *) ((wxPyPen *) x)); -} -static swig_type_info _swigt__p_wxPostScriptDC[] = {{"_p_wxPostScriptDC", 0, "wxPostScriptDC *", 0, 0, 0, 0},{"_p_wxPostScriptDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxBrush[] = {{"_p_wxBrush", 0, "wxBrush *", 0, 0, 0, 0},{"_p_wxBrush", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0, 0, 0, 0},{"_p_wxColour", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0, 0, 0, 0},{"_p_wxBufferedDC", _p_wxBufferedDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxScreenDC", _p_wxScreenDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxMirrorDC", _p_wxMirrorDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxMemoryDC", _p_wxMemoryDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxWindowDC", _p_wxWindowDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxDC", 0, 0, 0, 0, 0, 0},{"_p_wxMetaFileDC", _p_wxMetaFileDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxClientDC", _p_wxClientDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxPaintDC", _p_wxPaintDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxPostScriptDC", _p_wxPostScriptDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxPrinterDC", _p_wxPrinterDCTo_p_wxDC, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMirrorDC[] = {{"_p_wxMirrorDC", 0, "wxMirrorDC *", 0, 0, 0, 0},{"_p_wxMirrorDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "unsigned char *|byte *", 0, 0, 0, 0},{"_p_unsigned_char", 0, 0, 0, 0, 0, 0},{"_p_byte", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyFontEnumerator[] = {{"_p_wxPyFontEnumerator", 0, "wxPyFontEnumerator *", 0, 0, 0, 0},{"_p_wxPyFontEnumerator", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxIconLocation[] = {{"_p_wxIconLocation", 0, "wxIconLocation *", 0, 0, 0, 0},{"_p_wxIconLocation", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0, 0, 0, 0},{"_p_wxImage", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMetaFileDC[] = {{"_p_wxMetaFileDC", 0, "wxMetaFileDC *", 0, 0, 0, 0},{"_p_wxMetaFileDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMask[] = {{"_p_wxMask", 0, "wxMask *", 0, 0, 0, 0},{"_p_wxMask", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0, 0, 0, 0},{"_p_wxSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0, 0, 0, 0},{"_p_wxFont", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_double[] = {{"_p_double", 0, "double *", 0, 0, 0, 0},{"_p_double", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMemoryDC[] = {{"_p_wxMemoryDC", 0, "wxMemoryDC *", 0, 0, 0, 0},{"_p_wxBufferedDC", _p_wxBufferedDCTo_p_wxMemoryDC, 0, 0, 0, 0, 0},{"_p_wxMemoryDC", 0, 0, 0, 0, 0, 0},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxMemoryDC, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFontMapper[] = {{"_p_wxFontMapper", 0, "wxFontMapper *", 0, 0, 0, 0},{"_p_wxFontMapper", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxEffects[] = {{"_p_wxEffects", 0, "wxEffects *", 0, 0, 0, 0},{"_p_wxEffects", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxNativeEncodingInfo[] = {{"_p_wxNativeEncodingInfo", 0, "wxNativeEncodingInfo *", 0, 0, 0, 0},{"_p_wxNativeEncodingInfo", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPalette[] = {{"_p_wxPalette", 0, "wxPalette *", 0, 0, 0, 0},{"_p_wxPalette", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0, 0, 0, 0},{"_p_wxBitmap", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRegionIterator", _p_wxRegionIteratorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPen", _p_wxPenTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxColourDatabase", _p_wxColourDatabaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPenList", _p_wxPenListTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMask", _p_wxMaskTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFont", _p_wxFontTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxClientDC", _p_wxClientDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMemoryDC", _p_wxMemoryDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRegion", _p_wxRegionTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDC", _p_wxDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIcon", _p_wxIconTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDC", _p_wxWindowDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGDIObject", _p_wxGDIObjectTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEffects", _p_wxEffectsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPostScriptDC", _p_wxPostScriptDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintDC", _p_wxPaintDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPrinterDC", _p_wxPrinterDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScreenDC", _p_wxScreenDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBufferedDC", _p_wxBufferedDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPalette", _p_wxPaletteTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageList", _p_wxImageListTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCursor", _p_wxCursorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxMirrorDC", _p_wxMirrorDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEncodingConverter", _p_wxEncodingConverterTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMetaFileDC", _p_wxMetaFileDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBrushList", _p_wxBrushListTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyPen", _p_wxPyPenTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBitmap", _p_wxBitmapTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBrush", _p_wxBrushTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMetaFile", _p_wxMetaFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxColour", _p_wxColourTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFontList", _p_wxFontListTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxRegionIterator[] = {{"_p_wxRegionIterator", 0, "wxRegionIterator *", 0, 0, 0, 0},{"_p_wxRegionIterator", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0, 0, 0, 0},{"_p_wxRect", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0, 0, 0, 0},{"_p_wxString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPrinterDC[] = {{"_p_wxPrinterDC", 0, "wxPrinterDC *", 0, 0, 0, 0},{"_p_wxPrinterDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxIconBundle[] = {{"_p_wxIconBundle", 0, "wxIconBundle *", 0, 0, 0, 0},{"_p_wxIconBundle", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0, 0, 0, 0},{"_p_wxPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxDash[] = {{"_p_wxDash", 0, "wxDash *", 0, 0, 0, 0},{"_p_wxDash", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxScreenDC[] = {{"_p_wxScreenDC", 0, "wxScreenDC *", 0, 0, 0, 0},{"_p_wxScreenDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0, 0, 0, 0},{"_p_wxCursor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxClientDC[] = {{"_p_wxClientDC", 0, "wxClientDC *", 0, 0, 0, 0},{"_p_wxClientDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxBufferedDC[] = {{"_p_wxBufferedDC", 0, "wxBufferedDC *", 0, 0, 0, 0},{"_p_wxBufferedDC", 0, 0, 0, 0, 0, 0},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxBufferedDC, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0, 0, 0, 0},{"_p_wxImageList", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0, 0, 0, 0},{"_p_unsigned_char", 0, 0, 0, 0, 0, 0},{"_p_byte", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxGDIObject[] = {{"_p_wxGDIObject", 0, "wxGDIObject *", 0, 0, 0, 0},{"_p_wxIcon", _p_wxIconTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxPyPen", _p_wxPyPenTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxPen", _p_wxPenTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxFont", _p_wxFontTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxPalette", _p_wxPaletteTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxGDIObject", 0, 0, 0, 0, 0, 0},{"_p_wxCursor", _p_wxCursorTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxBitmap", _p_wxBitmapTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxRegion", _p_wxRegionTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxBrush", _p_wxBrushTo_p_wxGDIObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0, 0, 0, 0},{"_p_wxIcon", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxLocale[] = {{"_p_wxLocale", 0, "wxLocale *", 0, 0, 0, 0},{"_p_wxLocale", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0, 0, 0, 0},{"_p_wxRegion", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0, 0, 0, 0},{"_p_wxConfigBase", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxLanguageInfo[] = {{"_p_wxLanguageInfo", 0, "wxLanguageInfo *", 0, 0, 0, 0},{"_p_wxLanguageInfo", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxWindowDC[] = {{"_p_wxWindowDC", 0, "wxWindowDC *", 0, 0, 0, 0},{"_p_wxWindowDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPrintData[] = {{"_p_wxPrintData", 0, "wxPrintData *", 0, 0, 0, 0},{"_p_wxPrintData", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxBrushList[] = {{"_p_wxBrushList", 0, "wxBrushList *", 0, 0, 0, 0},{"_p_wxBrushList", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFontList[] = {{"_p_wxFontList", 0, "wxFontList *", 0, 0, 0, 0},{"_p_wxFontList", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0, 0, 0, 0},{"_p_wxPyPen", _p_wxPyPenTo_p_wxPen, 0, 0, 0, 0, 0},{"_p_wxPen", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxBufferedPaintDC[] = {{"_p_wxBufferedPaintDC", 0, "wxBufferedPaintDC *", 0, 0, 0, 0},{"_p_wxBufferedPaintDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPaintDC[] = {{"_p_wxPaintDC", 0, "wxPaintDC *", 0, 0, 0, 0},{"_p_wxPaintDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPenList[] = {{"_p_wxPenList", 0, "wxPenList *", 0, 0, 0, 0},{"_p_wxPenList", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyPen[] = {{"_p_wxPyPen", 0, "wxPyPen *", 0, 0, 0, 0},{"_p_wxPyPen", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0, 0, 0, 0},{"_p_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMetaFile[] = {{"_p_wxMetaFile", 0, "wxMetaFile *", 0, 0, 0, 0},{"_p_wxMetaFile", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxNativeFontInfo[] = {{"_p_wxNativeFontInfo", 0, "wxNativeFontInfo *", 0, 0, 0, 0},{"_p_wxNativeFontInfo", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxEncodingConverter[] = {{"_p_wxEncodingConverter", 0, "wxEncodingConverter *", 0, 0, 0, 0},{"_p_wxEncodingConverter", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxColourDatabase[] = {{"_p_wxColourDatabase", 0, "wxColourDatabase *", 0, 0, 0, 0},{"_p_wxColourDatabase", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; - -static swig_type_info *swig_types_initial[] = { -_swigt__p_wxPostScriptDC, -_swigt__p_wxBrush, -_swigt__p_wxColour, -_swigt__p_wxDC, -_swigt__p_wxMirrorDC, -_swigt__p_byte, -_swigt__p_wxPyFontEnumerator, -_swigt__p_char, -_swigt__p_wxIconLocation, -_swigt__p_wxImage, -_swigt__p_wxMetaFileDC, -_swigt__p_wxMask, -_swigt__p_wxSize, -_swigt__p_wxFont, -_swigt__p_wxWindow, -_swigt__p_double, -_swigt__p_wxMemoryDC, -_swigt__p_wxFontMapper, -_swigt__p_wxEffects, -_swigt__p_wxNativeEncodingInfo, -_swigt__p_wxPalette, -_swigt__p_wxBitmap, -_swigt__p_wxObject, -_swigt__p_wxRegionIterator, -_swigt__p_wxRect, -_swigt__p_wxString, -_swigt__p_wxPrinterDC, -_swigt__p_wxIconBundle, -_swigt__p_wxPoint, -_swigt__p_wxDash, -_swigt__p_wxScreenDC, -_swigt__p_wxCursor, -_swigt__p_wxClientDC, -_swigt__p_wxBufferedDC, -_swigt__p_wxImageList, -_swigt__p_unsigned_char, -_swigt__p_wxGDIObject, -_swigt__p_wxIcon, -_swigt__p_wxLocale, -_swigt__p_wxRegion, -_swigt__p_wxConfigBase, -_swigt__p_wxLanguageInfo, -_swigt__p_wxWindowDC, -_swigt__p_wxPrintData, -_swigt__p_wxBrushList, -_swigt__p_wxFontList, -_swigt__p_wxPen, -_swigt__p_wxBufferedPaintDC, -_swigt__p_wxPaintDC, -_swigt__p_wxPenList, -_swigt__p_wxPyPen, -_swigt__p_int, -_swigt__p_wxMetaFile, -_swigt__p_wxNativeFontInfo, -_swigt__p_wxEncodingConverter, -_swigt__p_wxColourDatabase, -0 -}; - - -/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ - -static swig_const_info swig_const_table[] = { -{0}}; - -#ifdef __cplusplus -} -#endif - -#ifdef __cplusplus -extern "C" -#endif -SWIGEXPORT(void) SWIG_init(void) { - static PyObject *SWIG_globals = 0; - static int typeinit = 0; - PyObject *m, *d; - int i; - if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); - m = Py_InitModule((char *) SWIG_name, SwigMethods); - d = PyModule_GetDict(m); - - if (!typeinit) { - for (i = 0; swig_types_initial[i]; i++) { - swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); - } - typeinit = 1; - } - SWIG_InstallConstants(d,swig_const_table); - - PyDict_SetItemString(d,"OutRegion", SWIG_FromInt((int)wxOutRegion)); - PyDict_SetItemString(d,"PartRegion", SWIG_FromInt((int)wxPartRegion)); - PyDict_SetItemString(d,"InRegion", SWIG_FromInt((int)wxInRegion)); - PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_FromInt((int)wxFONTFAMILY_DEFAULT)); - PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_FromInt((int)wxFONTFAMILY_DECORATIVE)); - PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_FromInt((int)wxFONTFAMILY_ROMAN)); - PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_FromInt((int)wxFONTFAMILY_SCRIPT)); - PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_FromInt((int)wxFONTFAMILY_SWISS)); - PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_FromInt((int)wxFONTFAMILY_MODERN)); - PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_FromInt((int)wxFONTFAMILY_TELETYPE)); - PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_FromInt((int)wxFONTFAMILY_MAX)); - PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_FromInt((int)wxFONTFAMILY_UNKNOWN)); - PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_FromInt((int)wxFONTSTYLE_NORMAL)); - PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_FromInt((int)wxFONTSTYLE_ITALIC)); - PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_FromInt((int)wxFONTSTYLE_SLANT)); - PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_FromInt((int)wxFONTSTYLE_MAX)); - PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_FromInt((int)wxFONTWEIGHT_NORMAL)); - PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_FromInt((int)wxFONTWEIGHT_LIGHT)); - PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_FromInt((int)wxFONTWEIGHT_BOLD)); - PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_FromInt((int)wxFONTWEIGHT_MAX)); - PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_FromInt((int)wxFONTFLAG_DEFAULT)); - PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_FromInt((int)wxFONTFLAG_ITALIC)); - PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_FromInt((int)wxFONTFLAG_SLANT)); - PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_FromInt((int)wxFONTFLAG_LIGHT)); - PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_FromInt((int)wxFONTFLAG_BOLD)); - PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_ANTIALIASED)); - PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED)); - PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_FromInt((int)wxFONTFLAG_UNDERLINED)); - PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_FromInt((int)wxFONTFLAG_STRIKETHROUGH)); - PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_FromInt((int)wxFONTFLAG_MASK)); - PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_FromInt((int)wxFONTENCODING_SYSTEM)); - PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_FromInt((int)wxFONTENCODING_DEFAULT)); - PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_FromInt((int)wxFONTENCODING_ISO8859_1)); - PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_FromInt((int)wxFONTENCODING_ISO8859_2)); - PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_FromInt((int)wxFONTENCODING_ISO8859_3)); - PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_FromInt((int)wxFONTENCODING_ISO8859_4)); - PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_FromInt((int)wxFONTENCODING_ISO8859_5)); - PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_FromInt((int)wxFONTENCODING_ISO8859_6)); - PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_FromInt((int)wxFONTENCODING_ISO8859_7)); - PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_FromInt((int)wxFONTENCODING_ISO8859_8)); - PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_FromInt((int)wxFONTENCODING_ISO8859_9)); - PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_FromInt((int)wxFONTENCODING_ISO8859_10)); - PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_FromInt((int)wxFONTENCODING_ISO8859_11)); - PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_FromInt((int)wxFONTENCODING_ISO8859_12)); - PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_FromInt((int)wxFONTENCODING_ISO8859_13)); - PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_FromInt((int)wxFONTENCODING_ISO8859_14)); - PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_FromInt((int)wxFONTENCODING_ISO8859_15)); - PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_FromInt((int)wxFONTENCODING_ISO8859_MAX)); - PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_FromInt((int)wxFONTENCODING_KOI8)); - PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_FromInt((int)wxFONTENCODING_KOI8_U)); - PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_FromInt((int)wxFONTENCODING_ALTERNATIVE)); - PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_FromInt((int)wxFONTENCODING_BULGARIAN)); - PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_FromInt((int)wxFONTENCODING_CP437)); - PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_FromInt((int)wxFONTENCODING_CP850)); - PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_FromInt((int)wxFONTENCODING_CP852)); - PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_FromInt((int)wxFONTENCODING_CP855)); - PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_FromInt((int)wxFONTENCODING_CP866)); - PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_FromInt((int)wxFONTENCODING_CP874)); - PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_FromInt((int)wxFONTENCODING_CP932)); - PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_FromInt((int)wxFONTENCODING_CP936)); - PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_FromInt((int)wxFONTENCODING_CP949)); - PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_FromInt((int)wxFONTENCODING_CP950)); - PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_FromInt((int)wxFONTENCODING_CP1250)); - PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_FromInt((int)wxFONTENCODING_CP1251)); - PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_FromInt((int)wxFONTENCODING_CP1252)); - PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_FromInt((int)wxFONTENCODING_CP1253)); - PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_FromInt((int)wxFONTENCODING_CP1254)); - PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_FromInt((int)wxFONTENCODING_CP1255)); - PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_FromInt((int)wxFONTENCODING_CP1256)); - PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_FromInt((int)wxFONTENCODING_CP1257)); - PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_FromInt((int)wxFONTENCODING_CP12_MAX)); - PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_FromInt((int)wxFONTENCODING_UTF7)); - PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_FromInt((int)wxFONTENCODING_UTF8)); - PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_FromInt((int)wxFONTENCODING_EUC_JP)); - PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_FromInt((int)wxFONTENCODING_UTF16BE)); - PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_FromInt((int)wxFONTENCODING_UTF16LE)); - PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_FromInt((int)wxFONTENCODING_UTF32BE)); - PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_FromInt((int)wxFONTENCODING_UTF32LE)); - PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_FromInt((int)wxFONTENCODING_MACROMAN)); - PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_FromInt((int)wxFONTENCODING_MACJAPANESE)); - PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_FromInt((int)wxFONTENCODING_MACCHINESETRAD)); - PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_FromInt((int)wxFONTENCODING_MACKOREAN)); - PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_FromInt((int)wxFONTENCODING_MACARABIC)); - PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_FromInt((int)wxFONTENCODING_MACHEBREW)); - PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_FromInt((int)wxFONTENCODING_MACGREEK)); - PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_FromInt((int)wxFONTENCODING_MACCYRILLIC)); - PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_FromInt((int)wxFONTENCODING_MACDEVANAGARI)); - PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_FromInt((int)wxFONTENCODING_MACGURMUKHI)); - PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_FromInt((int)wxFONTENCODING_MACGUJARATI)); - PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_FromInt((int)wxFONTENCODING_MACORIYA)); - PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_FromInt((int)wxFONTENCODING_MACBENGALI)); - PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_FromInt((int)wxFONTENCODING_MACTAMIL)); - PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_FromInt((int)wxFONTENCODING_MACTELUGU)); - PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_FromInt((int)wxFONTENCODING_MACKANNADA)); - PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_FromInt((int)wxFONTENCODING_MACMALAJALAM)); - PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_FromInt((int)wxFONTENCODING_MACSINHALESE)); - PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_FromInt((int)wxFONTENCODING_MACBURMESE)); - PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_FromInt((int)wxFONTENCODING_MACKHMER)); - PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_FromInt((int)wxFONTENCODING_MACTHAI)); - PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_FromInt((int)wxFONTENCODING_MACLAOTIAN)); - PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_FromInt((int)wxFONTENCODING_MACGEORGIAN)); - PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_FromInt((int)wxFONTENCODING_MACARMENIAN)); - PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_FromInt((int)wxFONTENCODING_MACCHINESESIMP)); - PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_FromInt((int)wxFONTENCODING_MACTIBETAN)); - PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_FromInt((int)wxFONTENCODING_MACMONGOLIAN)); - PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_FromInt((int)wxFONTENCODING_MACETHIOPIC)); - PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_FromInt((int)wxFONTENCODING_MACCENTRALEUR)); - PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_FromInt((int)wxFONTENCODING_MACVIATNAMESE)); - PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_FromInt((int)wxFONTENCODING_MACARABICEXT)); - PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_FromInt((int)wxFONTENCODING_MACSYMBOL)); - PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_FromInt((int)wxFONTENCODING_MACDINGBATS)); - PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_FromInt((int)wxFONTENCODING_MACTURKISH)); - PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_FromInt((int)wxFONTENCODING_MACCROATIAN)); - PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_FromInt((int)wxFONTENCODING_MACICELANDIC)); - PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_FromInt((int)wxFONTENCODING_MACROMANIAN)); - PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_FromInt((int)wxFONTENCODING_MACCELTIC)); - PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_FromInt((int)wxFONTENCODING_MACGAELIC)); - PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_FromInt((int)wxFONTENCODING_MACKEYBOARD)); - PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_FromInt((int)wxFONTENCODING_MACMIN)); - PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_FromInt((int)wxFONTENCODING_MACMAX)); - PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_FromInt((int)wxFONTENCODING_MAX)); - PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_FromInt((int)wxFONTENCODING_UTF16)); - PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_FromInt((int)wxFONTENCODING_UTF32)); - PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_FromInt((int)wxFONTENCODING_UNICODE)); - PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_FromInt((int)wxFONTENCODING_GB2312)); - PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_FromInt((int)wxFONTENCODING_BIG5)); - PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_FromInt((int)wxFONTENCODING_SHIFT_JIS)); - - wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); - - PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_FromInt((int)wxLANGUAGE_DEFAULT)); - PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_FromInt((int)wxLANGUAGE_UNKNOWN)); - PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_FromInt((int)wxLANGUAGE_ABKHAZIAN)); - PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_FromInt((int)wxLANGUAGE_AFAR)); - PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_FromInt((int)wxLANGUAGE_AFRIKAANS)); - PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_FromInt((int)wxLANGUAGE_ALBANIAN)); - PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_FromInt((int)wxLANGUAGE_AMHARIC)); - PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_FromInt((int)wxLANGUAGE_ARABIC)); - PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA)); - PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN)); - PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_EGYPT)); - PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_FromInt((int)wxLANGUAGE_ARABIC_IRAQ)); - PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_JORDAN)); - PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT)); - PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LEBANON)); - PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LIBYA)); - PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO)); - PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_OMAN)); - PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_FromInt((int)wxLANGUAGE_ARABIC_QATAR)); - PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA)); - PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SUDAN)); - PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SYRIA)); - PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA)); - PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_FromInt((int)wxLANGUAGE_ARABIC_UAE)); - PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_YEMEN)); - PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_FromInt((int)wxLANGUAGE_ARMENIAN)); - PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_FromInt((int)wxLANGUAGE_ASSAMESE)); - PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_FromInt((int)wxLANGUAGE_AYMARA)); - PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_FromInt((int)wxLANGUAGE_AZERI)); - PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC)); - PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_FromInt((int)wxLANGUAGE_AZERI_LATIN)); - PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_FromInt((int)wxLANGUAGE_BASHKIR)); - PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_FromInt((int)wxLANGUAGE_BASQUE)); - PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_FromInt((int)wxLANGUAGE_BELARUSIAN)); - PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_FromInt((int)wxLANGUAGE_BENGALI)); - PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_FromInt((int)wxLANGUAGE_BHUTANI)); - PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_FromInt((int)wxLANGUAGE_BIHARI)); - PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_FromInt((int)wxLANGUAGE_BISLAMA)); - PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_FromInt((int)wxLANGUAGE_BRETON)); - PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_FromInt((int)wxLANGUAGE_BULGARIAN)); - PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_FromInt((int)wxLANGUAGE_BURMESE)); - PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_FromInt((int)wxLANGUAGE_CAMBODIAN)); - PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_FromInt((int)wxLANGUAGE_CATALAN)); - PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_FromInt((int)wxLANGUAGE_CHINESE)); - PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED)); - PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL)); - PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG)); - PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_FromInt((int)wxLANGUAGE_CHINESE_MACAU)); - PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE)); - PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN)); - PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_FromInt((int)wxLANGUAGE_CORSICAN)); - PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_CROATIAN)); - PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_FromInt((int)wxLANGUAGE_CZECH)); - PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_FromInt((int)wxLANGUAGE_DANISH)); - PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_FromInt((int)wxLANGUAGE_DUTCH)); - PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN)); - PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_FromInt((int)wxLANGUAGE_ENGLISH)); - PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_UK)); - PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_US)); - PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA)); - PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE)); - PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA)); - PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CANADA)); - PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN)); - PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK)); - PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_EIRE)); - PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA)); - PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND)); - PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES)); - PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA)); - PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD)); - PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE)); - PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_FromInt((int)wxLANGUAGE_ESPERANTO)); - PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_FromInt((int)wxLANGUAGE_ESTONIAN)); - PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_FromInt((int)wxLANGUAGE_FAEROESE)); - PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_FromInt((int)wxLANGUAGE_FARSI)); - PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_FromInt((int)wxLANGUAGE_FIJI)); - PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_FromInt((int)wxLANGUAGE_FINNISH)); - PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_FromInt((int)wxLANGUAGE_FRENCH)); - PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN)); - PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN)); - PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG)); - PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_FromInt((int)wxLANGUAGE_FRENCH_MONACO)); - PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_FromInt((int)wxLANGUAGE_FRENCH_SWISS)); - PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_FromInt((int)wxLANGUAGE_FRISIAN)); - PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_FromInt((int)wxLANGUAGE_GALICIAN)); - PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_FromInt((int)wxLANGUAGE_GEORGIAN)); - PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN)); - PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN)); - PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM)); - PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN)); - PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG)); - PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_GERMAN_SWISS)); - PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_FromInt((int)wxLANGUAGE_GREEK)); - PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_FromInt((int)wxLANGUAGE_GREENLANDIC)); - PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_FromInt((int)wxLANGUAGE_GUARANI)); - PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_FromInt((int)wxLANGUAGE_GUJARATI)); - PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_FromInt((int)wxLANGUAGE_HAUSA)); - PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_FromInt((int)wxLANGUAGE_HEBREW)); - PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_FromInt((int)wxLANGUAGE_HINDI)); - PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_FromInt((int)wxLANGUAGE_HUNGARIAN)); - PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_FromInt((int)wxLANGUAGE_ICELANDIC)); - PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_FromInt((int)wxLANGUAGE_INDONESIAN)); - PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUA)); - PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUE)); - PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_FromInt((int)wxLANGUAGE_INUKTITUT)); - PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_FromInt((int)wxLANGUAGE_INUPIAK)); - PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_FromInt((int)wxLANGUAGE_IRISH)); - PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_FromInt((int)wxLANGUAGE_ITALIAN)); - PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_ITALIAN_SWISS)); - PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_FromInt((int)wxLANGUAGE_JAPANESE)); - PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_FromInt((int)wxLANGUAGE_JAVANESE)); - PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_FromInt((int)wxLANGUAGE_KANNADA)); - PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI)); - PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA)); - PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_FromInt((int)wxLANGUAGE_KAZAKH)); - PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_FromInt((int)wxLANGUAGE_KERNEWEK)); - PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_FromInt((int)wxLANGUAGE_KINYARWANDA)); - PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_FromInt((int)wxLANGUAGE_KIRGHIZ)); - PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_FromInt((int)wxLANGUAGE_KIRUNDI)); - PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_FromInt((int)wxLANGUAGE_KONKANI)); - PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_FromInt((int)wxLANGUAGE_KOREAN)); - PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_FromInt((int)wxLANGUAGE_KURDISH)); - PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_FromInt((int)wxLANGUAGE_LAOTHIAN)); - PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_FromInt((int)wxLANGUAGE_LATIN)); - PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_FromInt((int)wxLANGUAGE_LATVIAN)); - PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_FromInt((int)wxLANGUAGE_LINGALA)); - PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_FromInt((int)wxLANGUAGE_LITHUANIAN)); - PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_FromInt((int)wxLANGUAGE_MACEDONIAN)); - PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_FromInt((int)wxLANGUAGE_MALAGASY)); - PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_FromInt((int)wxLANGUAGE_MALAY)); - PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_FromInt((int)wxLANGUAGE_MALAYALAM)); - PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)); - PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA)); - PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_FromInt((int)wxLANGUAGE_MALTESE)); - PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_FromInt((int)wxLANGUAGE_MANIPURI)); - PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_FromInt((int)wxLANGUAGE_MAORI)); - PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_FromInt((int)wxLANGUAGE_MARATHI)); - PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_FromInt((int)wxLANGUAGE_MOLDAVIAN)); - PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_FromInt((int)wxLANGUAGE_MONGOLIAN)); - PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_FromInt((int)wxLANGUAGE_NAURU)); - PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_FromInt((int)wxLANGUAGE_NEPALI)); - PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_FromInt((int)wxLANGUAGE_NEPALI_INDIA)); - PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL)); - PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK)); - PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_FromInt((int)wxLANGUAGE_OCCITAN)); - PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_FromInt((int)wxLANGUAGE_ORIYA)); - PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_FromInt((int)wxLANGUAGE_OROMO)); - PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_FromInt((int)wxLANGUAGE_PASHTO)); - PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_FromInt((int)wxLANGUAGE_POLISH)); - PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE)); - PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN)); - PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_FromInt((int)wxLANGUAGE_PUNJABI)); - PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_FromInt((int)wxLANGUAGE_QUECHUA)); - PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE)); - PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_FromInt((int)wxLANGUAGE_ROMANIAN)); - PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN)); - PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE)); - PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_FromInt((int)wxLANGUAGE_SAMOAN)); - PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_FromInt((int)wxLANGUAGE_SANGHO)); - PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_FromInt((int)wxLANGUAGE_SANSKRIT)); - PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_FromInt((int)wxLANGUAGE_SCOTS_GAELIC)); - PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN)); - PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC)); - PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_LATIN)); - PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_SERBO_CROATIAN)); - PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_FromInt((int)wxLANGUAGE_SESOTHO)); - PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_FromInt((int)wxLANGUAGE_SETSWANA)); - PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_FromInt((int)wxLANGUAGE_SHONA)); - PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_FromInt((int)wxLANGUAGE_SINDHI)); - PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_FromInt((int)wxLANGUAGE_SINHALESE)); - PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_FromInt((int)wxLANGUAGE_SISWATI)); - PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_FromInt((int)wxLANGUAGE_SLOVAK)); - PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_FromInt((int)wxLANGUAGE_SLOVENIAN)); - PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_FromInt((int)wxLANGUAGE_SOMALI)); - PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_FromInt((int)wxLANGUAGE_SPANISH)); - PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA)); - PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA)); - PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_FromInt((int)wxLANGUAGE_SPANISH_CHILE)); - PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA)); - PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA)); - PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)); - PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR)); - PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR)); - PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA)); - PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS)); - PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN)); - PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MODERN)); - PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA)); - PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PANAMA)); - PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY)); - PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PERU)); - PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO)); - PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY)); - PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_FromInt((int)wxLANGUAGE_SPANISH_US)); - PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA)); - PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_FromInt((int)wxLANGUAGE_SUNDANESE)); - PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_FromInt((int)wxLANGUAGE_SWAHILI)); - PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_FromInt((int)wxLANGUAGE_SWEDISH)); - PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND)); - PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_FromInt((int)wxLANGUAGE_TAGALOG)); - PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_FromInt((int)wxLANGUAGE_TAJIK)); - PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_FromInt((int)wxLANGUAGE_TAMIL)); - PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_FromInt((int)wxLANGUAGE_TATAR)); - PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_FromInt((int)wxLANGUAGE_TELUGU)); - PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_FromInt((int)wxLANGUAGE_THAI)); - PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_FromInt((int)wxLANGUAGE_TIBETAN)); - PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_FromInt((int)wxLANGUAGE_TIGRINYA)); - PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_FromInt((int)wxLANGUAGE_TONGA)); - PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_FromInt((int)wxLANGUAGE_TSONGA)); - PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_FromInt((int)wxLANGUAGE_TURKISH)); - PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_FromInt((int)wxLANGUAGE_TURKMEN)); - PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_FromInt((int)wxLANGUAGE_TWI)); - PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_FromInt((int)wxLANGUAGE_UIGHUR)); - PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_FromInt((int)wxLANGUAGE_UKRAINIAN)); - PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_FromInt((int)wxLANGUAGE_URDU)); - PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_FromInt((int)wxLANGUAGE_URDU_INDIA)); - PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_FromInt((int)wxLANGUAGE_URDU_PAKISTAN)); - PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_FromInt((int)wxLANGUAGE_UZBEK)); - PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC)); - PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_FromInt((int)wxLANGUAGE_UZBEK_LATIN)); - PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_FromInt((int)wxLANGUAGE_VIETNAMESE)); - PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_FromInt((int)wxLANGUAGE_VOLAPUK)); - PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_FromInt((int)wxLANGUAGE_WELSH)); - PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_FromInt((int)wxLANGUAGE_WOLOF)); - PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_FromInt((int)wxLANGUAGE_XHOSA)); - PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_FromInt((int)wxLANGUAGE_YIDDISH)); - PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_FromInt((int)wxLANGUAGE_YORUBA)); - PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_FromInt((int)wxLANGUAGE_ZHUANG)); - PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_FromInt((int)wxLANGUAGE_ZULU)); - PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_FromInt((int)wxLANGUAGE_USER_DEFINED)); - PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_FromInt((int)wxLOCALE_CAT_NUMBER)); - PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_FromInt((int)wxLOCALE_CAT_DATE)); - PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_FromInt((int)wxLOCALE_CAT_MONEY)); - PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_FromInt((int)wxLOCALE_CAT_MAX)); - PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_FromInt((int)wxLOCALE_THOUSANDS_SEP)); - PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_FromInt((int)wxLOCALE_DECIMAL_POINT)); - PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_FromInt((int)wxLOCALE_LOAD_DEFAULT)); - PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_FromInt((int)wxLOCALE_CONV_ENCODING)); - PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_FromInt((int)wxCONVERT_STRICT)); - PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_FromInt((int)wxCONVERT_SUBSTITUTE)); - PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_FromInt((int)wxPLATFORM_CURRENT)); - PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_FromInt((int)wxPLATFORM_UNIX)); - PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_FromInt((int)wxPLATFORM_WINDOWS)); - PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_FromInt((int)wxPLATFORM_OS2)); - PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_FromInt((int)wxPLATFORM_MAC)); - PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_FromInt((int)wxIMAGELIST_DRAW_NORMAL)); - PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT)); - PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_FromInt((int)wxIMAGELIST_DRAW_SELECTED)); - PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_FromInt((int)wxIMAGELIST_DRAW_FOCUSED)); - PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_FromInt((int)wxIMAGE_LIST_NORMAL)); - PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_FromInt((int)wxIMAGE_LIST_SMALL)); - PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_FromInt((int)wxIMAGE_LIST_STATE)); - PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); - SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set); - SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set); - SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set); - SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set); - SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set); - SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set); - SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set); - SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set); - SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set); - SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set); - SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set); - SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set); - SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set); - SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set); - SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set); - SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set); - SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set); - SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set); - SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set); - SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set); - SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set); - SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set); - SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set); - SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set); - SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set); - SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set); - SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set); - SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set); - SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set); - SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set); - SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set); - SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set); - SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set); - SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set); - SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set); - SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set); - SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set); - SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set); - SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set); - SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set); - SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set); - SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set); - SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set); - SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set); - SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set); - SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set); - - // Work around a chicken/egg problem in drawlist.cpp - wxPyDrawList_SetAPIPtr(); - -} - diff --git a/wxPython/src/msw/misc.py b/wxPython/src/msw/misc.py deleted file mode 100644 index 32315bff23..0000000000 --- a/wxPython/src/msw/misc.py +++ /dev/null @@ -1,5281 +0,0 @@ -# This file was created automatically by SWIG. -# Don't modify this file, modify the SWIG interface instead. - -import _misc - -import core -wx = core -__docfilter__ = wx.__docfilter__ -#--------------------------------------------------------------------------- - -SYS_OEM_FIXED_FONT = _misc.SYS_OEM_FIXED_FONT -SYS_ANSI_FIXED_FONT = _misc.SYS_ANSI_FIXED_FONT -SYS_ANSI_VAR_FONT = _misc.SYS_ANSI_VAR_FONT -SYS_SYSTEM_FONT = _misc.SYS_SYSTEM_FONT -SYS_DEVICE_DEFAULT_FONT = _misc.SYS_DEVICE_DEFAULT_FONT -SYS_DEFAULT_PALETTE = _misc.SYS_DEFAULT_PALETTE -SYS_SYSTEM_FIXED_FONT = _misc.SYS_SYSTEM_FIXED_FONT -SYS_DEFAULT_GUI_FONT = _misc.SYS_DEFAULT_GUI_FONT -SYS_ICONTITLE_FONT = _misc.SYS_ICONTITLE_FONT -SYS_COLOUR_SCROLLBAR = _misc.SYS_COLOUR_SCROLLBAR -SYS_COLOUR_BACKGROUND = _misc.SYS_COLOUR_BACKGROUND -SYS_COLOUR_DESKTOP = _misc.SYS_COLOUR_DESKTOP -SYS_COLOUR_ACTIVECAPTION = _misc.SYS_COLOUR_ACTIVECAPTION -SYS_COLOUR_INACTIVECAPTION = _misc.SYS_COLOUR_INACTIVECAPTION -SYS_COLOUR_MENU = _misc.SYS_COLOUR_MENU -SYS_COLOUR_WINDOW = _misc.SYS_COLOUR_WINDOW -SYS_COLOUR_WINDOWFRAME = _misc.SYS_COLOUR_WINDOWFRAME -SYS_COLOUR_MENUTEXT = _misc.SYS_COLOUR_MENUTEXT -SYS_COLOUR_WINDOWTEXT = _misc.SYS_COLOUR_WINDOWTEXT -SYS_COLOUR_CAPTIONTEXT = _misc.SYS_COLOUR_CAPTIONTEXT -SYS_COLOUR_ACTIVEBORDER = _misc.SYS_COLOUR_ACTIVEBORDER -SYS_COLOUR_INACTIVEBORDER = _misc.SYS_COLOUR_INACTIVEBORDER -SYS_COLOUR_APPWORKSPACE = _misc.SYS_COLOUR_APPWORKSPACE -SYS_COLOUR_HIGHLIGHT = _misc.SYS_COLOUR_HIGHLIGHT -SYS_COLOUR_HIGHLIGHTTEXT = _misc.SYS_COLOUR_HIGHLIGHTTEXT -SYS_COLOUR_BTNFACE = _misc.SYS_COLOUR_BTNFACE -SYS_COLOUR_3DFACE = _misc.SYS_COLOUR_3DFACE -SYS_COLOUR_BTNSHADOW = _misc.SYS_COLOUR_BTNSHADOW -SYS_COLOUR_3DSHADOW = _misc.SYS_COLOUR_3DSHADOW -SYS_COLOUR_GRAYTEXT = _misc.SYS_COLOUR_GRAYTEXT -SYS_COLOUR_BTNTEXT = _misc.SYS_COLOUR_BTNTEXT -SYS_COLOUR_INACTIVECAPTIONTEXT = _misc.SYS_COLOUR_INACTIVECAPTIONTEXT -SYS_COLOUR_BTNHIGHLIGHT = _misc.SYS_COLOUR_BTNHIGHLIGHT -SYS_COLOUR_BTNHILIGHT = _misc.SYS_COLOUR_BTNHILIGHT -SYS_COLOUR_3DHIGHLIGHT = _misc.SYS_COLOUR_3DHIGHLIGHT -SYS_COLOUR_3DHILIGHT = _misc.SYS_COLOUR_3DHILIGHT -SYS_COLOUR_3DDKSHADOW = _misc.SYS_COLOUR_3DDKSHADOW -SYS_COLOUR_3DLIGHT = _misc.SYS_COLOUR_3DLIGHT -SYS_COLOUR_INFOTEXT = _misc.SYS_COLOUR_INFOTEXT -SYS_COLOUR_INFOBK = _misc.SYS_COLOUR_INFOBK -SYS_COLOUR_LISTBOX = _misc.SYS_COLOUR_LISTBOX -SYS_COLOUR_HOTLIGHT = _misc.SYS_COLOUR_HOTLIGHT -SYS_COLOUR_GRADIENTACTIVECAPTION = _misc.SYS_COLOUR_GRADIENTACTIVECAPTION -SYS_COLOUR_GRADIENTINACTIVECAPTION = _misc.SYS_COLOUR_GRADIENTINACTIVECAPTION -SYS_COLOUR_MENUHILIGHT = _misc.SYS_COLOUR_MENUHILIGHT -SYS_COLOUR_MENUBAR = _misc.SYS_COLOUR_MENUBAR -SYS_COLOUR_MAX = _misc.SYS_COLOUR_MAX -SYS_MOUSE_BUTTONS = _misc.SYS_MOUSE_BUTTONS -SYS_BORDER_X = _misc.SYS_BORDER_X -SYS_BORDER_Y = _misc.SYS_BORDER_Y -SYS_CURSOR_X = _misc.SYS_CURSOR_X -SYS_CURSOR_Y = _misc.SYS_CURSOR_Y -SYS_DCLICK_X = _misc.SYS_DCLICK_X -SYS_DCLICK_Y = _misc.SYS_DCLICK_Y -SYS_DRAG_X = _misc.SYS_DRAG_X -SYS_DRAG_Y = _misc.SYS_DRAG_Y -SYS_EDGE_X = _misc.SYS_EDGE_X -SYS_EDGE_Y = _misc.SYS_EDGE_Y -SYS_HSCROLL_ARROW_X = _misc.SYS_HSCROLL_ARROW_X -SYS_HSCROLL_ARROW_Y = _misc.SYS_HSCROLL_ARROW_Y -SYS_HTHUMB_X = _misc.SYS_HTHUMB_X -SYS_ICON_X = _misc.SYS_ICON_X -SYS_ICON_Y = _misc.SYS_ICON_Y -SYS_ICONSPACING_X = _misc.SYS_ICONSPACING_X -SYS_ICONSPACING_Y = _misc.SYS_ICONSPACING_Y -SYS_WINDOWMIN_X = _misc.SYS_WINDOWMIN_X -SYS_WINDOWMIN_Y = _misc.SYS_WINDOWMIN_Y -SYS_SCREEN_X = _misc.SYS_SCREEN_X -SYS_SCREEN_Y = _misc.SYS_SCREEN_Y -SYS_FRAMESIZE_X = _misc.SYS_FRAMESIZE_X -SYS_FRAMESIZE_Y = _misc.SYS_FRAMESIZE_Y -SYS_SMALLICON_X = _misc.SYS_SMALLICON_X -SYS_SMALLICON_Y = _misc.SYS_SMALLICON_Y -SYS_HSCROLL_Y = _misc.SYS_HSCROLL_Y -SYS_VSCROLL_X = _misc.SYS_VSCROLL_X -SYS_VSCROLL_ARROW_X = _misc.SYS_VSCROLL_ARROW_X -SYS_VSCROLL_ARROW_Y = _misc.SYS_VSCROLL_ARROW_Y -SYS_VTHUMB_Y = _misc.SYS_VTHUMB_Y -SYS_CAPTION_Y = _misc.SYS_CAPTION_Y -SYS_MENU_Y = _misc.SYS_MENU_Y -SYS_NETWORK_PRESENT = _misc.SYS_NETWORK_PRESENT -SYS_PENWINDOWS_PRESENT = _misc.SYS_PENWINDOWS_PRESENT -SYS_SHOW_SOUNDS = _misc.SYS_SHOW_SOUNDS -SYS_SWAP_BUTTONS = _misc.SYS_SWAP_BUTTONS -SYS_CAN_DRAW_FRAME_DECORATIONS = _misc.SYS_CAN_DRAW_FRAME_DECORATIONS -SYS_CAN_ICONIZE_FRAME = _misc.SYS_CAN_ICONIZE_FRAME -SYS_SCREEN_NONE = _misc.SYS_SCREEN_NONE -SYS_SCREEN_TINY = _misc.SYS_SCREEN_TINY -SYS_SCREEN_PDA = _misc.SYS_SCREEN_PDA -SYS_SCREEN_SMALL = _misc.SYS_SCREEN_SMALL -SYS_SCREEN_DESKTOP = _misc.SYS_SCREEN_DESKTOP -class SystemSettings(object): - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxSystemSettings instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def GetColour(*args, **kwargs): - """SystemSettings.GetColour(int index) -> Colour""" - return _misc.SystemSettings_GetColour(*args, **kwargs) - - GetColour = staticmethod(GetColour) - def GetFont(*args, **kwargs): - """SystemSettings.GetFont(int index) -> Font""" - return _misc.SystemSettings_GetFont(*args, **kwargs) - - GetFont = staticmethod(GetFont) - def GetMetric(*args, **kwargs): - """SystemSettings.GetMetric(int index) -> int""" - return _misc.SystemSettings_GetMetric(*args, **kwargs) - - GetMetric = staticmethod(GetMetric) - def HasFeature(*args, **kwargs): - """SystemSettings.HasFeature(int index) -> bool""" - return _misc.SystemSettings_HasFeature(*args, **kwargs) - - HasFeature = staticmethod(HasFeature) - def GetScreenType(*args, **kwargs): - """SystemSettings.GetScreenType() -> int""" - return _misc.SystemSettings_GetScreenType(*args, **kwargs) - - GetScreenType = staticmethod(GetScreenType) - def SetScreenType(*args, **kwargs): - """SystemSettings.SetScreenType(int screen)""" - return _misc.SystemSettings_SetScreenType(*args, **kwargs) - - SetScreenType = staticmethod(SetScreenType) - -class SystemSettingsPtr(SystemSettings): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = SystemSettings -_misc.SystemSettings_swigregister(SystemSettingsPtr) - -def SystemSettings_GetColour(*args, **kwargs): - """SystemSettings_GetColour(int index) -> Colour""" - return _misc.SystemSettings_GetColour(*args, **kwargs) - -def SystemSettings_GetFont(*args, **kwargs): - """SystemSettings_GetFont(int index) -> Font""" - return _misc.SystemSettings_GetFont(*args, **kwargs) - -def SystemSettings_GetMetric(*args, **kwargs): - """SystemSettings_GetMetric(int index) -> int""" - return _misc.SystemSettings_GetMetric(*args, **kwargs) - -def SystemSettings_HasFeature(*args, **kwargs): - """SystemSettings_HasFeature(int index) -> bool""" - return _misc.SystemSettings_HasFeature(*args, **kwargs) - -def SystemSettings_GetScreenType(*args, **kwargs): - """SystemSettings_GetScreenType() -> int""" - return _misc.SystemSettings_GetScreenType(*args, **kwargs) - -def SystemSettings_SetScreenType(*args, **kwargs): - """SystemSettings_SetScreenType(int screen)""" - return _misc.SystemSettings_SetScreenType(*args, **kwargs) - -class SystemOptions(core.Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxSystemOptions instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> SystemOptions""" - newobj = _misc.new_SystemOptions(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def SetOption(*args, **kwargs): - """SystemOptions.SetOption(String name, String value)""" - return _misc.SystemOptions_SetOption(*args, **kwargs) - - SetOption = staticmethod(SetOption) - def SetOptionInt(*args, **kwargs): - """SystemOptions.SetOptionInt(String name, int value)""" - return _misc.SystemOptions_SetOptionInt(*args, **kwargs) - - SetOptionInt = staticmethod(SetOptionInt) - def GetOption(*args, **kwargs): - """SystemOptions.GetOption(String name) -> String""" - return _misc.SystemOptions_GetOption(*args, **kwargs) - - GetOption = staticmethod(GetOption) - def GetOptionInt(*args, **kwargs): - """SystemOptions.GetOptionInt(String name) -> int""" - return _misc.SystemOptions_GetOptionInt(*args, **kwargs) - - GetOptionInt = staticmethod(GetOptionInt) - def HasOption(*args, **kwargs): - """SystemOptions.HasOption(String name) -> bool""" - return _misc.SystemOptions_HasOption(*args, **kwargs) - - HasOption = staticmethod(HasOption) - -class SystemOptionsPtr(SystemOptions): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = SystemOptions -_misc.SystemOptions_swigregister(SystemOptionsPtr) - -def SystemOptions_SetOption(*args, **kwargs): - """SystemOptions_SetOption(String name, String value)""" - return _misc.SystemOptions_SetOption(*args, **kwargs) - -def SystemOptions_SetOptionInt(*args, **kwargs): - """SystemOptions_SetOptionInt(String name, int value)""" - return _misc.SystemOptions_SetOptionInt(*args, **kwargs) - -def SystemOptions_GetOption(*args, **kwargs): - """SystemOptions_GetOption(String name) -> String""" - return _misc.SystemOptions_GetOption(*args, **kwargs) - -def SystemOptions_GetOptionInt(*args, **kwargs): - """SystemOptions_GetOptionInt(String name) -> int""" - return _misc.SystemOptions_GetOptionInt(*args, **kwargs) - -def SystemOptions_HasOption(*args, **kwargs): - """SystemOptions_HasOption(String name) -> bool""" - return _misc.SystemOptions_HasOption(*args, **kwargs) - -#--------------------------------------------------------------------------- - - -def NewId(*args, **kwargs): - """NewId() -> long""" - return _misc.NewId(*args, **kwargs) - -def RegisterId(*args, **kwargs): - """RegisterId(long id)""" - return _misc.RegisterId(*args, **kwargs) - -def GetCurrentId(*args, **kwargs): - """GetCurrentId() -> long""" - return _misc.GetCurrentId(*args, **kwargs) - -def Bell(*args, **kwargs): - """Bell()""" - return _misc.Bell(*args, **kwargs) - -def EndBusyCursor(*args, **kwargs): - """EndBusyCursor()""" - return _misc.EndBusyCursor(*args, **kwargs) - -def GetElapsedTime(*args, **kwargs): - """GetElapsedTime(bool resetTimer=True) -> long""" - return _misc.GetElapsedTime(*args, **kwargs) - -def GetMousePosition(*args, **kwargs): - """GetMousePosition() -> (x,y)""" - return _misc.GetMousePosition(*args, **kwargs) - -def IsBusy(*args, **kwargs): - """IsBusy() -> bool""" - return _misc.IsBusy(*args, **kwargs) - -def Now(*args, **kwargs): - """Now() -> String""" - return _misc.Now(*args, **kwargs) - -def Shell(*args, **kwargs): - """Shell(String command=EmptyString) -> bool""" - return _misc.Shell(*args, **kwargs) - -def StartTimer(*args, **kwargs): - """StartTimer()""" - return _misc.StartTimer(*args, **kwargs) - -def GetOsVersion(*args, **kwargs): - """GetOsVersion() -> (platform, major, minor)""" - return _misc.GetOsVersion(*args, **kwargs) - -def GetOsDescription(*args, **kwargs): - """GetOsDescription() -> String""" - return _misc.GetOsDescription(*args, **kwargs) - -def GetFreeMemory(*args, **kwargs): - """GetFreeMemory() -> long""" - return _misc.GetFreeMemory(*args, **kwargs) -SHUTDOWN_POWEROFF = _misc.SHUTDOWN_POWEROFF -SHUTDOWN_REBOOT = _misc.SHUTDOWN_REBOOT - -def Shutdown(*args, **kwargs): - """Shutdown(int wFlags) -> bool""" - return _misc.Shutdown(*args, **kwargs) - -def Sleep(*args, **kwargs): - """Sleep(int secs)""" - return _misc.Sleep(*args, **kwargs) - -def Usleep(*args, **kwargs): - """Usleep(unsigned long milliseconds)""" - return _misc.Usleep(*args, **kwargs) - -def EnableTopLevelWindows(*args, **kwargs): - """EnableTopLevelWindows(bool enable)""" - return _misc.EnableTopLevelWindows(*args, **kwargs) - -def StripMenuCodes(*args, **kwargs): - """StripMenuCodes(String in) -> String""" - return _misc.StripMenuCodes(*args, **kwargs) - -def GetEmailAddress(*args, **kwargs): - """GetEmailAddress() -> String""" - return _misc.GetEmailAddress(*args, **kwargs) - -def GetHostName(*args, **kwargs): - """GetHostName() -> String""" - return _misc.GetHostName(*args, **kwargs) - -def GetFullHostName(*args, **kwargs): - """GetFullHostName() -> String""" - return _misc.GetFullHostName(*args, **kwargs) - -def GetUserId(*args, **kwargs): - """GetUserId() -> String""" - return _misc.GetUserId(*args, **kwargs) - -def GetUserName(*args, **kwargs): - """GetUserName() -> String""" - return _misc.GetUserName(*args, **kwargs) - -def GetHomeDir(*args, **kwargs): - """GetHomeDir() -> String""" - return _misc.GetHomeDir(*args, **kwargs) - -def GetUserHome(*args, **kwargs): - """GetUserHome(String user=EmptyString) -> String""" - return _misc.GetUserHome(*args, **kwargs) - -def GetProcessId(*args, **kwargs): - """GetProcessId() -> unsigned long""" - return _misc.GetProcessId(*args, **kwargs) - -def Trap(*args, **kwargs): - """Trap()""" - return _misc.Trap(*args, **kwargs) - -def FileSelector(*args, **kwargs): - """ - FileSelector(String message=FileSelectorPromptStr, String default_path=EmptyString, - String default_filename=EmptyString, - String default_extension=EmptyString, - String wildcard=FileSelectorDefaultWildcardStr, - int flags=0, Window parent=None, int x=-1, - int y=-1) -> String - """ - return _misc.FileSelector(*args, **kwargs) - -def LoadFileSelector(*args, **kwargs): - """ - LoadFileSelector(String what, String extension, String default_name=EmptyString, - Window parent=None) -> String - """ - return _misc.LoadFileSelector(*args, **kwargs) - -def SaveFileSelector(*args, **kwargs): - """ - SaveFileSelector(String what, String extension, String default_name=EmptyString, - Window parent=None) -> String - """ - return _misc.SaveFileSelector(*args, **kwargs) - -def DirSelector(*args, **kwargs): - """ - DirSelector(String message=DirSelectorPromptStr, String defaultPath=EmptyString, - long style=DD_DEFAULT_STYLE, - Point pos=DefaultPosition, Window parent=None) -> String - """ - return _misc.DirSelector(*args, **kwargs) - -def GetTextFromUser(*args, **kwargs): - """ - GetTextFromUser(String message, String caption=EmptyString, String default_value=EmptyString, - Window parent=None, - int x=-1, int y=-1, bool centre=True) -> String - """ - return _misc.GetTextFromUser(*args, **kwargs) - -def GetPasswordFromUser(*args, **kwargs): - """ - GetPasswordFromUser(String message, String caption=EmptyString, String default_value=EmptyString, - Window parent=None) -> String - """ - return _misc.GetPasswordFromUser(*args, **kwargs) - -def GetSingleChoice(*args, **kwargs): - """ - GetSingleChoice(String message, String caption, int choices, String choices_array, - Window parent=None, int x=-1, - int y=-1, bool centre=True, int width=150, int height=200) -> String - """ - return _misc.GetSingleChoice(*args, **kwargs) - -def GetSingleChoiceIndex(*args, **kwargs): - """ - GetSingleChoiceIndex(String message, String caption, int choices, String choices_array, - Window parent=None, int x=-1, - int y=-1, bool centre=True, int width=150, int height=200) -> int - """ - return _misc.GetSingleChoiceIndex(*args, **kwargs) - -def MessageBox(*args, **kwargs): - """ - MessageBox(String message, String caption=EmptyString, int style=wxOK|wxCENTRE, - Window parent=None, int x=-1, - int y=-1) -> int - """ - return _misc.MessageBox(*args, **kwargs) - -def GetNumberFromUser(*args, **kwargs): - """ - GetNumberFromUser(String message, String prompt, String caption, long value, - long min=0, long max=100, Window parent=None, - Point pos=DefaultPosition) -> long - """ - return _misc.GetNumberFromUser(*args, **kwargs) - -def ColourDisplay(*args, **kwargs): - """ColourDisplay() -> bool""" - return _misc.ColourDisplay(*args, **kwargs) - -def DisplayDepth(*args, **kwargs): - """DisplayDepth() -> int""" - return _misc.DisplayDepth(*args, **kwargs) - -def GetDisplayDepth(*args, **kwargs): - """GetDisplayDepth() -> int""" - return _misc.GetDisplayDepth(*args, **kwargs) - -def DisplaySize(*args, **kwargs): - """DisplaySize() -> (width, height)""" - return _misc.DisplaySize(*args, **kwargs) - -def GetDisplaySize(*args, **kwargs): - """GetDisplaySize() -> Size""" - return _misc.GetDisplaySize(*args, **kwargs) - -def DisplaySizeMM(*args, **kwargs): - """DisplaySizeMM() -> (width, height)""" - return _misc.DisplaySizeMM(*args, **kwargs) - -def GetDisplaySizeMM(*args, **kwargs): - """GetDisplaySizeMM() -> Size""" - return _misc.GetDisplaySizeMM(*args, **kwargs) - -def ClientDisplayRect(*args, **kwargs): - """ClientDisplayRect() -> (x, y, width, height)""" - return _misc.ClientDisplayRect(*args, **kwargs) - -def GetClientDisplayRect(*args, **kwargs): - """GetClientDisplayRect() -> Rect""" - return _misc.GetClientDisplayRect(*args, **kwargs) - -def SetCursor(*args, **kwargs): - """SetCursor(Cursor cursor)""" - return _misc.SetCursor(*args, **kwargs) - -def BeginBusyCursor(*args, **kwargs): - """BeginBusyCursor(Cursor cursor=wxHOURGLASS_CURSOR)""" - return _misc.BeginBusyCursor(*args, **kwargs) - -def GetActiveWindow(*args, **kwargs): - """GetActiveWindow() -> Window""" - return _misc.GetActiveWindow(*args, **kwargs) - -def GenericFindWindowAtPoint(*args, **kwargs): - """GenericFindWindowAtPoint(Point pt) -> Window""" - return _misc.GenericFindWindowAtPoint(*args, **kwargs) - -def FindWindowAtPoint(*args, **kwargs): - """FindWindowAtPoint(Point pt) -> Window""" - return _misc.FindWindowAtPoint(*args, **kwargs) - -def GetTopLevelParent(*args, **kwargs): - """GetTopLevelParent(Window win) -> Window""" - return _misc.GetTopLevelParent(*args, **kwargs) - -def GetKeyState(*args, **kwargs): - """GetKeyState(int key) -> bool""" - return _misc.GetKeyState(*args, **kwargs) - -def WakeUpMainThread(*args, **kwargs): - """WakeUpMainThread()""" - return _misc.WakeUpMainThread(*args, **kwargs) - -def MutexGuiEnter(*args, **kwargs): - """MutexGuiEnter()""" - return _misc.MutexGuiEnter(*args, **kwargs) - -def MutexGuiLeave(*args, **kwargs): - """MutexGuiLeave()""" - return _misc.MutexGuiLeave(*args, **kwargs) -class MutexGuiLocker(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxMutexGuiLocker instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> MutexGuiLocker""" - newobj = _misc.new_MutexGuiLocker(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_misc.delete_MutexGuiLocker): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - -class MutexGuiLockerPtr(MutexGuiLocker): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = MutexGuiLocker -_misc.MutexGuiLocker_swigregister(MutexGuiLockerPtr) -cvar = _misc.cvar -FileSelectorPromptStr = cvar.FileSelectorPromptStr -FileSelectorDefaultWildcardStr = cvar.FileSelectorDefaultWildcardStr -DirSelectorPromptStr = cvar.DirSelectorPromptStr - - -def Thread_IsMain(*args, **kwargs): - """Thread_IsMain() -> bool""" - return _misc.Thread_IsMain(*args, **kwargs) -#--------------------------------------------------------------------------- - -class ToolTip(core.Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxToolTip instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, String tip) -> ToolTip""" - newobj = _misc.new_ToolTip(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def SetTip(*args, **kwargs): - """SetTip(self, String tip)""" - return _misc.ToolTip_SetTip(*args, **kwargs) - - def GetTip(*args, **kwargs): - """GetTip(self) -> String""" - return _misc.ToolTip_GetTip(*args, **kwargs) - - def GetWindow(*args, **kwargs): - """GetWindow(self) -> Window""" - return _misc.ToolTip_GetWindow(*args, **kwargs) - - def Enable(*args, **kwargs): - """ToolTip.Enable(bool flag)""" - return _misc.ToolTip_Enable(*args, **kwargs) - - Enable = staticmethod(Enable) - def SetDelay(*args, **kwargs): - """ToolTip.SetDelay(long milliseconds)""" - return _misc.ToolTip_SetDelay(*args, **kwargs) - - SetDelay = staticmethod(SetDelay) - -class ToolTipPtr(ToolTip): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ToolTip -_misc.ToolTip_swigregister(ToolTipPtr) - -def ToolTip_Enable(*args, **kwargs): - """ToolTip_Enable(bool flag)""" - return _misc.ToolTip_Enable(*args, **kwargs) - -def ToolTip_SetDelay(*args, **kwargs): - """ToolTip_SetDelay(long milliseconds)""" - return _misc.ToolTip_SetDelay(*args, **kwargs) - -class Caret(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxCaret instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Window window, Size size) -> Caret""" - newobj = _misc.new_Caret(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_misc.delete_Caret): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def IsOk(*args, **kwargs): - """IsOk(self) -> bool""" - return _misc.Caret_IsOk(*args, **kwargs) - - def IsVisible(*args, **kwargs): - """IsVisible(self) -> bool""" - return _misc.Caret_IsVisible(*args, **kwargs) - - def GetPosition(*args, **kwargs): - """GetPosition(self) -> Point""" - return _misc.Caret_GetPosition(*args, **kwargs) - - def GetPositionTuple(*args, **kwargs): - """GetPositionTuple() -> (x,y)""" - return _misc.Caret_GetPositionTuple(*args, **kwargs) - - def GetSize(*args, **kwargs): - """GetSize(self) -> Size""" - return _misc.Caret_GetSize(*args, **kwargs) - - def GetSizeTuple(*args, **kwargs): - """GetSizeTuple() -> (width, height)""" - return _misc.Caret_GetSizeTuple(*args, **kwargs) - - def GetWindow(*args, **kwargs): - """GetWindow(self) -> Window""" - return _misc.Caret_GetWindow(*args, **kwargs) - - def MoveXY(*args, **kwargs): - """MoveXY(self, int x, int y)""" - return _misc.Caret_MoveXY(*args, **kwargs) - - def Move(*args, **kwargs): - """Move(self, Point pt)""" - return _misc.Caret_Move(*args, **kwargs) - - def SetSizeWH(*args, **kwargs): - """SetSizeWH(self, int width, int height)""" - return _misc.Caret_SetSizeWH(*args, **kwargs) - - def SetSize(*args, **kwargs): - """SetSize(self, Size size)""" - return _misc.Caret_SetSize(*args, **kwargs) - - def Show(*args, **kwargs): - """Show(self, int show=True)""" - return _misc.Caret_Show(*args, **kwargs) - - def Hide(*args, **kwargs): - """Hide(self)""" - return _misc.Caret_Hide(*args, **kwargs) - - def __nonzero__(self): return self.IsOk() - -class CaretPtr(Caret): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Caret -_misc.Caret_swigregister(CaretPtr) - - -def Caret_GetBlinkTime(*args, **kwargs): - """Caret_GetBlinkTime() -> int""" - return _misc.Caret_GetBlinkTime(*args, **kwargs) - -def Caret_SetBlinkTime(*args, **kwargs): - """Caret_SetBlinkTime(int milliseconds)""" - return _misc.Caret_SetBlinkTime(*args, **kwargs) -class BusyCursor(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxBusyCursor instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Cursor cursor=wxHOURGLASS_CURSOR) -> BusyCursor""" - newobj = _misc.new_BusyCursor(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_misc.delete_BusyCursor): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - -class BusyCursorPtr(BusyCursor): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = BusyCursor -_misc.BusyCursor_swigregister(BusyCursorPtr) - -class WindowDisabler(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxWindowDisabler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Window winToSkip=None) -> WindowDisabler""" - newobj = _misc.new_WindowDisabler(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_misc.delete_WindowDisabler): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - -class WindowDisablerPtr(WindowDisabler): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = WindowDisabler -_misc.WindowDisabler_swigregister(WindowDisablerPtr) - -class BusyInfo(core.Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxBusyInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, String message) -> BusyInfo""" - newobj = _misc.new_BusyInfo(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_misc.delete_BusyInfo): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - -class BusyInfoPtr(BusyInfo): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = BusyInfo -_misc.BusyInfo_swigregister(BusyInfoPtr) - -class StopWatch(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxStopWatch instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> StopWatch""" - newobj = _misc.new_StopWatch(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def Start(*args, **kwargs): - """Start(self, long t0=0)""" - return _misc.StopWatch_Start(*args, **kwargs) - - def Pause(*args, **kwargs): - """Pause(self)""" - return _misc.StopWatch_Pause(*args, **kwargs) - - def Resume(*args, **kwargs): - """Resume(self)""" - return _misc.StopWatch_Resume(*args, **kwargs) - - def Time(*args, **kwargs): - """Time(self) -> long""" - return _misc.StopWatch_Time(*args, **kwargs) - - -class StopWatchPtr(StopWatch): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = StopWatch -_misc.StopWatch_swigregister(StopWatchPtr) - -class FileHistory(core.Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxFileHistory instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int maxFiles=9) -> FileHistory""" - newobj = _misc.new_FileHistory(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_misc.delete_FileHistory): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def AddFileToHistory(*args, **kwargs): - """AddFileToHistory(self, String file)""" - return _misc.FileHistory_AddFileToHistory(*args, **kwargs) - - def RemoveFileFromHistory(*args, **kwargs): - """RemoveFileFromHistory(self, int i)""" - return _misc.FileHistory_RemoveFileFromHistory(*args, **kwargs) - - def GetMaxFiles(*args, **kwargs): - """GetMaxFiles(self) -> int""" - return _misc.FileHistory_GetMaxFiles(*args, **kwargs) - - def UseMenu(*args, **kwargs): - """UseMenu(self, Menu menu)""" - return _misc.FileHistory_UseMenu(*args, **kwargs) - - def RemoveMenu(*args, **kwargs): - """RemoveMenu(self, Menu menu)""" - return _misc.FileHistory_RemoveMenu(*args, **kwargs) - - def Load(*args, **kwargs): - """Load(self, ConfigBase config)""" - return _misc.FileHistory_Load(*args, **kwargs) - - def Save(*args, **kwargs): - """Save(self, ConfigBase config)""" - return _misc.FileHistory_Save(*args, **kwargs) - - def AddFilesToMenu(*args, **kwargs): - """AddFilesToMenu(self)""" - return _misc.FileHistory_AddFilesToMenu(*args, **kwargs) - - def AddFilesToThisMenu(*args, **kwargs): - """AddFilesToThisMenu(self, Menu menu)""" - return _misc.FileHistory_AddFilesToThisMenu(*args, **kwargs) - - def GetHistoryFile(*args, **kwargs): - """GetHistoryFile(self, int i) -> String""" - return _misc.FileHistory_GetHistoryFile(*args, **kwargs) - - def GetCount(*args, **kwargs): - """GetCount(self) -> int""" - return _misc.FileHistory_GetCount(*args, **kwargs) - - GetNoHistoryFiles = GetCount - -class FileHistoryPtr(FileHistory): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = FileHistory -_misc.FileHistory_swigregister(FileHistoryPtr) - -class SingleInstanceChecker(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxSingleInstanceChecker instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, String name, String path=EmptyString) -> SingleInstanceChecker""" - newobj = _misc.new_SingleInstanceChecker(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_misc.delete_SingleInstanceChecker): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Create(*args, **kwargs): - """Create(self, String name, String path=EmptyString) -> bool""" - return _misc.SingleInstanceChecker_Create(*args, **kwargs) - - def IsAnotherRunning(*args, **kwargs): - """IsAnotherRunning(self) -> bool""" - return _misc.SingleInstanceChecker_IsAnotherRunning(*args, **kwargs) - - -class SingleInstanceCheckerPtr(SingleInstanceChecker): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = SingleInstanceChecker -_misc.SingleInstanceChecker_swigregister(SingleInstanceCheckerPtr) - -def PreSingleInstanceChecker(*args, **kwargs): - """PreSingleInstanceChecker() -> SingleInstanceChecker""" - val = _misc.new_PreSingleInstanceChecker(*args, **kwargs) - val.thisown = 1 - return val - - -def DrawWindowOnDC(*args, **kwargs): - """DrawWindowOnDC(Window window, DC dc, int method)""" - return _misc.DrawWindowOnDC(*args, **kwargs) -#--------------------------------------------------------------------------- - -class TipProvider(object): - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxTipProvider instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __del__(self, destroy=_misc.delete_TipProvider): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def GetTip(*args, **kwargs): - """GetTip(self) -> String""" - return _misc.TipProvider_GetTip(*args, **kwargs) - - def GetCurrentTip(*args, **kwargs): - """GetCurrentTip(self) -> size_t""" - return _misc.TipProvider_GetCurrentTip(*args, **kwargs) - - def PreprocessTip(*args, **kwargs): - """PreprocessTip(self, String tip) -> String""" - return _misc.TipProvider_PreprocessTip(*args, **kwargs) - - -class TipProviderPtr(TipProvider): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = TipProvider -_misc.TipProvider_swigregister(TipProviderPtr) - -class PyTipProvider(TipProvider): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyTipProvider instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, size_t currentTip) -> PyTipProvider""" - newobj = _misc.new_PyTipProvider(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _misc.PyTipProvider__setCallbackInfo(*args, **kwargs) - - -class PyTipProviderPtr(PyTipProvider): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PyTipProvider -_misc.PyTipProvider_swigregister(PyTipProviderPtr) - - -def ShowTip(*args, **kwargs): - """ShowTip(Window parent, TipProvider tipProvider, bool showAtStartup=True) -> bool""" - return _misc.ShowTip(*args, **kwargs) - -def CreateFileTipProvider(*args, **kwargs): - """CreateFileTipProvider(String filename, size_t currentTip) -> TipProvider""" - return _misc.CreateFileTipProvider(*args, **kwargs) -#--------------------------------------------------------------------------- - -TIMER_CONTINUOUS = _misc.TIMER_CONTINUOUS -TIMER_ONE_SHOT = _misc.TIMER_ONE_SHOT -wxEVT_TIMER = _misc.wxEVT_TIMER -class Timer(core.EvtHandler): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyTimer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, EvtHandler owner=None, int id=-1) -> Timer""" - newobj = _misc.new_Timer(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setCallbackInfo(self, Timer, 0) - - def __del__(self, destroy=_misc.delete_Timer): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class, int incref=1)""" - return _misc.Timer__setCallbackInfo(*args, **kwargs) - - def SetOwner(*args, **kwargs): - """SetOwner(self, EvtHandler owner, int id=-1)""" - return _misc.Timer_SetOwner(*args, **kwargs) - - def Start(*args, **kwargs): - """Start(self, int milliseconds=-1, bool oneShot=False) -> bool""" - return _misc.Timer_Start(*args, **kwargs) - - def Stop(*args, **kwargs): - """Stop(self)""" - return _misc.Timer_Stop(*args, **kwargs) - - def IsRunning(*args, **kwargs): - """IsRunning(self) -> bool""" - return _misc.Timer_IsRunning(*args, **kwargs) - - def GetInterval(*args, **kwargs): - """GetInterval(self) -> int""" - return _misc.Timer_GetInterval(*args, **kwargs) - - def IsOneShot(*args, **kwargs): - """IsOneShot(self) -> bool""" - return _misc.Timer_IsOneShot(*args, **kwargs) - - def GetId(*args, **kwargs): - """GetId(self) -> int""" - return _misc.Timer_GetId(*args, **kwargs) - - -class TimerPtr(Timer): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Timer -_misc.Timer_swigregister(TimerPtr) - -# For backwards compatibility with 2.4 -class PyTimer(Timer): - def __init__(self, notify): - Timer.__init__(self) - self.notify = notify - - def Notify(self): - if self.notify: - self.notify() - - -EVT_TIMER = wx.PyEventBinder( wxEVT_TIMER, 1 ) - - -class TimerEvent(core.Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxTimerEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int timerid=0, int interval=0) -> TimerEvent""" - newobj = _misc.new_TimerEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetInterval(*args, **kwargs): - """GetInterval(self) -> int""" - return _misc.TimerEvent_GetInterval(*args, **kwargs) - - -class TimerEventPtr(TimerEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = TimerEvent -_misc.TimerEvent_swigregister(TimerEventPtr) - -class TimerRunner(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxTimerRunner instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args): - """ - __init__(self, wxTimer timer) -> TimerRunner - __init__(self, wxTimer timer, int milli, bool oneShot=False) -> TimerRunner - """ - newobj = _misc.new_TimerRunner(*args) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_misc.delete_TimerRunner): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Start(*args, **kwargs): - """Start(self, int milli, bool oneShot=False)""" - return _misc.TimerRunner_Start(*args, **kwargs) - - -class TimerRunnerPtr(TimerRunner): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = TimerRunner -_misc.TimerRunner_swigregister(TimerRunnerPtr) - -#--------------------------------------------------------------------------- - -LOG_FatalError = _misc.LOG_FatalError -LOG_Error = _misc.LOG_Error -LOG_Warning = _misc.LOG_Warning -LOG_Message = _misc.LOG_Message -LOG_Status = _misc.LOG_Status -LOG_Info = _misc.LOG_Info -LOG_Debug = _misc.LOG_Debug -LOG_Trace = _misc.LOG_Trace -LOG_Progress = _misc.LOG_Progress -LOG_User = _misc.LOG_User -LOG_Max = _misc.LOG_Max -TRACE_MemAlloc = _misc.TRACE_MemAlloc -TRACE_Messages = _misc.TRACE_Messages -TRACE_ResAlloc = _misc.TRACE_ResAlloc -TRACE_RefCount = _misc.TRACE_RefCount -TRACE_OleCalls = _misc.TRACE_OleCalls -TraceMemAlloc = _misc.TraceMemAlloc -TraceMessages = _misc.TraceMessages -TraceResAlloc = _misc.TraceResAlloc -TraceRefCount = _misc.TraceRefCount -TraceOleCalls = _misc.TraceOleCalls -class Log(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxLog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> Log""" - newobj = _misc.new_Log(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def IsEnabled(*args, **kwargs): - """Log.IsEnabled() -> bool""" - return _misc.Log_IsEnabled(*args, **kwargs) - - IsEnabled = staticmethod(IsEnabled) - def EnableLogging(*args, **kwargs): - """Log.EnableLogging(bool doIt=True) -> bool""" - return _misc.Log_EnableLogging(*args, **kwargs) - - EnableLogging = staticmethod(EnableLogging) - def OnLog(*args, **kwargs): - """Log.OnLog(wxLogLevel level, wxChar szString, time_t t)""" - return _misc.Log_OnLog(*args, **kwargs) - - OnLog = staticmethod(OnLog) - def Flush(*args, **kwargs): - """Flush(self)""" - return _misc.Log_Flush(*args, **kwargs) - - def FlushActive(*args, **kwargs): - """Log.FlushActive()""" - return _misc.Log_FlushActive(*args, **kwargs) - - FlushActive = staticmethod(FlushActive) - def GetActiveTarget(*args, **kwargs): - """Log.GetActiveTarget() -> Log""" - return _misc.Log_GetActiveTarget(*args, **kwargs) - - GetActiveTarget = staticmethod(GetActiveTarget) - def SetActiveTarget(*args, **kwargs): - """Log.SetActiveTarget(Log pLogger) -> Log""" - return _misc.Log_SetActiveTarget(*args, **kwargs) - - SetActiveTarget = staticmethod(SetActiveTarget) - def Suspend(*args, **kwargs): - """Log.Suspend()""" - return _misc.Log_Suspend(*args, **kwargs) - - Suspend = staticmethod(Suspend) - def Resume(*args, **kwargs): - """Log.Resume()""" - return _misc.Log_Resume(*args, **kwargs) - - Resume = staticmethod(Resume) - def SetVerbose(*args, **kwargs): - """Log.SetVerbose(bool bVerbose=True)""" - return _misc.Log_SetVerbose(*args, **kwargs) - - SetVerbose = staticmethod(SetVerbose) - def SetLogLevel(*args, **kwargs): - """Log.SetLogLevel(wxLogLevel logLevel)""" - return _misc.Log_SetLogLevel(*args, **kwargs) - - SetLogLevel = staticmethod(SetLogLevel) - def DontCreateOnDemand(*args, **kwargs): - """Log.DontCreateOnDemand()""" - return _misc.Log_DontCreateOnDemand(*args, **kwargs) - - DontCreateOnDemand = staticmethod(DontCreateOnDemand) - def SetTraceMask(*args, **kwargs): - """Log.SetTraceMask(wxTraceMask ulMask)""" - return _misc.Log_SetTraceMask(*args, **kwargs) - - SetTraceMask = staticmethod(SetTraceMask) - def AddTraceMask(*args, **kwargs): - """Log.AddTraceMask(String str)""" - return _misc.Log_AddTraceMask(*args, **kwargs) - - AddTraceMask = staticmethod(AddTraceMask) - def RemoveTraceMask(*args, **kwargs): - """Log.RemoveTraceMask(String str)""" - return _misc.Log_RemoveTraceMask(*args, **kwargs) - - RemoveTraceMask = staticmethod(RemoveTraceMask) - def ClearTraceMasks(*args, **kwargs): - """Log.ClearTraceMasks()""" - return _misc.Log_ClearTraceMasks(*args, **kwargs) - - ClearTraceMasks = staticmethod(ClearTraceMasks) - def GetTraceMasks(*args, **kwargs): - """Log.GetTraceMasks() -> wxArrayString""" - return _misc.Log_GetTraceMasks(*args, **kwargs) - - GetTraceMasks = staticmethod(GetTraceMasks) - def SetTimestamp(*args, **kwargs): - """Log.SetTimestamp(wxChar ts)""" - return _misc.Log_SetTimestamp(*args, **kwargs) - - SetTimestamp = staticmethod(SetTimestamp) - def GetVerbose(*args, **kwargs): - """Log.GetVerbose() -> bool""" - return _misc.Log_GetVerbose(*args, **kwargs) - - GetVerbose = staticmethod(GetVerbose) - def GetTraceMask(*args, **kwargs): - """Log.GetTraceMask() -> wxTraceMask""" - return _misc.Log_GetTraceMask(*args, **kwargs) - - GetTraceMask = staticmethod(GetTraceMask) - def IsAllowedTraceMask(*args, **kwargs): - """Log.IsAllowedTraceMask(wxChar mask) -> bool""" - return _misc.Log_IsAllowedTraceMask(*args, **kwargs) - - IsAllowedTraceMask = staticmethod(IsAllowedTraceMask) - def GetLogLevel(*args, **kwargs): - """Log.GetLogLevel() -> wxLogLevel""" - return _misc.Log_GetLogLevel(*args, **kwargs) - - GetLogLevel = staticmethod(GetLogLevel) - def GetTimestamp(*args, **kwargs): - """Log.GetTimestamp() -> wxChar""" - return _misc.Log_GetTimestamp(*args, **kwargs) - - GetTimestamp = staticmethod(GetTimestamp) - def TimeStamp(*args, **kwargs): - """Log.TimeStamp() -> String""" - return _misc.Log_TimeStamp(*args, **kwargs) - - TimeStamp = staticmethod(TimeStamp) - def Destroy(*args, **kwargs): - """Destroy(self)""" - return _misc.Log_Destroy(*args, **kwargs) - - -class LogPtr(Log): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Log -_misc.Log_swigregister(LogPtr) - -def Log_IsEnabled(*args, **kwargs): - """Log_IsEnabled() -> bool""" - return _misc.Log_IsEnabled(*args, **kwargs) - -def Log_EnableLogging(*args, **kwargs): - """Log_EnableLogging(bool doIt=True) -> bool""" - return _misc.Log_EnableLogging(*args, **kwargs) - -def Log_OnLog(*args, **kwargs): - """Log_OnLog(wxLogLevel level, wxChar szString, time_t t)""" - return _misc.Log_OnLog(*args, **kwargs) - -def Log_FlushActive(*args, **kwargs): - """Log_FlushActive()""" - return _misc.Log_FlushActive(*args, **kwargs) - -def Log_GetActiveTarget(*args, **kwargs): - """Log_GetActiveTarget() -> Log""" - return _misc.Log_GetActiveTarget(*args, **kwargs) - -def Log_SetActiveTarget(*args, **kwargs): - """Log_SetActiveTarget(Log pLogger) -> Log""" - return _misc.Log_SetActiveTarget(*args, **kwargs) - -def Log_Suspend(*args, **kwargs): - """Log_Suspend()""" - return _misc.Log_Suspend(*args, **kwargs) - -def Log_Resume(*args, **kwargs): - """Log_Resume()""" - return _misc.Log_Resume(*args, **kwargs) - -def Log_SetVerbose(*args, **kwargs): - """Log_SetVerbose(bool bVerbose=True)""" - return _misc.Log_SetVerbose(*args, **kwargs) - -def Log_SetLogLevel(*args, **kwargs): - """Log_SetLogLevel(wxLogLevel logLevel)""" - return _misc.Log_SetLogLevel(*args, **kwargs) - -def Log_DontCreateOnDemand(*args, **kwargs): - """Log_DontCreateOnDemand()""" - return _misc.Log_DontCreateOnDemand(*args, **kwargs) - -def Log_SetTraceMask(*args, **kwargs): - """Log_SetTraceMask(wxTraceMask ulMask)""" - return _misc.Log_SetTraceMask(*args, **kwargs) - -def Log_AddTraceMask(*args, **kwargs): - """Log_AddTraceMask(String str)""" - return _misc.Log_AddTraceMask(*args, **kwargs) - -def Log_RemoveTraceMask(*args, **kwargs): - """Log_RemoveTraceMask(String str)""" - return _misc.Log_RemoveTraceMask(*args, **kwargs) - -def Log_ClearTraceMasks(*args, **kwargs): - """Log_ClearTraceMasks()""" - return _misc.Log_ClearTraceMasks(*args, **kwargs) - -def Log_GetTraceMasks(*args, **kwargs): - """Log_GetTraceMasks() -> wxArrayString""" - return _misc.Log_GetTraceMasks(*args, **kwargs) - -def Log_SetTimestamp(*args, **kwargs): - """Log_SetTimestamp(wxChar ts)""" - return _misc.Log_SetTimestamp(*args, **kwargs) - -def Log_GetVerbose(*args, **kwargs): - """Log_GetVerbose() -> bool""" - return _misc.Log_GetVerbose(*args, **kwargs) - -def Log_GetTraceMask(*args, **kwargs): - """Log_GetTraceMask() -> wxTraceMask""" - return _misc.Log_GetTraceMask(*args, **kwargs) - -def Log_IsAllowedTraceMask(*args, **kwargs): - """Log_IsAllowedTraceMask(wxChar mask) -> bool""" - return _misc.Log_IsAllowedTraceMask(*args, **kwargs) - -def Log_GetLogLevel(*args, **kwargs): - """Log_GetLogLevel() -> wxLogLevel""" - return _misc.Log_GetLogLevel(*args, **kwargs) - -def Log_GetTimestamp(*args, **kwargs): - """Log_GetTimestamp() -> wxChar""" - return _misc.Log_GetTimestamp(*args, **kwargs) - -def Log_TimeStamp(*args, **kwargs): - """Log_TimeStamp() -> String""" - return _misc.Log_TimeStamp(*args, **kwargs) - -class LogStderr(Log): - def __repr__(self): - return "<%s.%s; proxy of C++ wxLogStderr instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> LogStderr""" - newobj = _misc.new_LogStderr(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class LogStderrPtr(LogStderr): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = LogStderr -_misc.LogStderr_swigregister(LogStderrPtr) - -class LogTextCtrl(Log): - def __repr__(self): - return "<%s.%s; proxy of C++ wxLogTextCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, wxTextCtrl pTextCtrl) -> LogTextCtrl""" - newobj = _misc.new_LogTextCtrl(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class LogTextCtrlPtr(LogTextCtrl): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = LogTextCtrl -_misc.LogTextCtrl_swigregister(LogTextCtrlPtr) - -class LogGui(Log): - def __repr__(self): - return "<%s.%s; proxy of C++ wxLogGui instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> LogGui""" - newobj = _misc.new_LogGui(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class LogGuiPtr(LogGui): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = LogGui -_misc.LogGui_swigregister(LogGuiPtr) - -class LogWindow(Log): - def __repr__(self): - return "<%s.%s; proxy of C++ wxLogWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, wxFrame pParent, String szTitle, bool bShow=True, bool bPassToOld=True) -> LogWindow""" - newobj = _misc.new_LogWindow(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def Show(*args, **kwargs): - """Show(self, bool bShow=True)""" - return _misc.LogWindow_Show(*args, **kwargs) - - def GetFrame(*args, **kwargs): - """GetFrame(self) -> wxFrame""" - return _misc.LogWindow_GetFrame(*args, **kwargs) - - def GetOldLog(*args, **kwargs): - """GetOldLog(self) -> Log""" - return _misc.LogWindow_GetOldLog(*args, **kwargs) - - def IsPassingMessages(*args, **kwargs): - """IsPassingMessages(self) -> bool""" - return _misc.LogWindow_IsPassingMessages(*args, **kwargs) - - def PassMessages(*args, **kwargs): - """PassMessages(self, bool bDoPass)""" - return _misc.LogWindow_PassMessages(*args, **kwargs) - - -class LogWindowPtr(LogWindow): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = LogWindow -_misc.LogWindow_swigregister(LogWindowPtr) - -class LogChain(Log): - def __repr__(self): - return "<%s.%s; proxy of C++ wxLogChain instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Log logger) -> LogChain""" - newobj = _misc.new_LogChain(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def SetLog(*args, **kwargs): - """SetLog(self, Log logger)""" - return _misc.LogChain_SetLog(*args, **kwargs) - - def PassMessages(*args, **kwargs): - """PassMessages(self, bool bDoPass)""" - return _misc.LogChain_PassMessages(*args, **kwargs) - - def IsPassingMessages(*args, **kwargs): - """IsPassingMessages(self) -> bool""" - return _misc.LogChain_IsPassingMessages(*args, **kwargs) - - def GetOldLog(*args, **kwargs): - """GetOldLog(self) -> Log""" - return _misc.LogChain_GetOldLog(*args, **kwargs) - - -class LogChainPtr(LogChain): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = LogChain -_misc.LogChain_swigregister(LogChainPtr) - - -def SysErrorCode(*args, **kwargs): - """SysErrorCode() -> unsigned long""" - return _misc.SysErrorCode(*args, **kwargs) - -def SysErrorMsg(*args, **kwargs): - """SysErrorMsg(unsigned long nErrCode=0) -> String""" - return _misc.SysErrorMsg(*args, **kwargs) - -def LogFatalError(*args, **kwargs): - """LogFatalError(String msg)""" - return _misc.LogFatalError(*args, **kwargs) - -def LogError(*args, **kwargs): - """LogError(String msg)""" - return _misc.LogError(*args, **kwargs) - -def LogWarning(*args, **kwargs): - """LogWarning(String msg)""" - return _misc.LogWarning(*args, **kwargs) - -def LogMessage(*args, **kwargs): - """LogMessage(String msg)""" - return _misc.LogMessage(*args, **kwargs) - -def LogInfo(*args, **kwargs): - """LogInfo(String msg)""" - return _misc.LogInfo(*args, **kwargs) - -def LogDebug(*args, **kwargs): - """LogDebug(String msg)""" - return _misc.LogDebug(*args, **kwargs) - -def LogVerbose(*args, **kwargs): - """LogVerbose(String msg)""" - return _misc.LogVerbose(*args, **kwargs) - -def LogStatus(*args, **kwargs): - """LogStatus(String msg)""" - return _misc.LogStatus(*args, **kwargs) - -def LogStatusFrame(*args, **kwargs): - """LogStatusFrame(wxFrame pFrame, String msg)""" - return _misc.LogStatusFrame(*args, **kwargs) - -def LogSysError(*args, **kwargs): - """LogSysError(String msg)""" - return _misc.LogSysError(*args, **kwargs) - -def LogGeneric(*args, **kwargs): - """LogGeneric(unsigned long level, String msg)""" - return _misc.LogGeneric(*args, **kwargs) - -def SafeShowMessage(*args, **kwargs): - """SafeShowMessage(String title, String text)""" - return _misc.SafeShowMessage(*args, **kwargs) -class LogNull(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxLogNull instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> LogNull""" - newobj = _misc.new_LogNull(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_misc.delete_LogNull): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - -class LogNullPtr(LogNull): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = LogNull -_misc.LogNull_swigregister(LogNullPtr) - -def LogTrace(*args): - """ - LogTrace(unsigned long mask, String msg) - LogTrace(String mask, String msg) - """ - return _misc.LogTrace(*args) - -class PyLog(Log): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyLog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> PyLog""" - newobj = _misc.new_PyLog(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setCallbackInfo(self, PyLog) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _misc.PyLog__setCallbackInfo(*args, **kwargs) - - -class PyLogPtr(PyLog): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PyLog -_misc.PyLog_swigregister(PyLogPtr) - -#--------------------------------------------------------------------------- - -PROCESS_DEFAULT = _misc.PROCESS_DEFAULT -PROCESS_REDIRECT = _misc.PROCESS_REDIRECT -KILL_OK = _misc.KILL_OK -KILL_BAD_SIGNAL = _misc.KILL_BAD_SIGNAL -KILL_ACCESS_DENIED = _misc.KILL_ACCESS_DENIED -KILL_NO_PROCESS = _misc.KILL_NO_PROCESS -KILL_ERROR = _misc.KILL_ERROR -SIGNONE = _misc.SIGNONE -SIGHUP = _misc.SIGHUP -SIGINT = _misc.SIGINT -SIGQUIT = _misc.SIGQUIT -SIGILL = _misc.SIGILL -SIGTRAP = _misc.SIGTRAP -SIGABRT = _misc.SIGABRT -SIGIOT = _misc.SIGIOT -SIGEMT = _misc.SIGEMT -SIGFPE = _misc.SIGFPE -SIGKILL = _misc.SIGKILL -SIGBUS = _misc.SIGBUS -SIGSEGV = _misc.SIGSEGV -SIGSYS = _misc.SIGSYS -SIGPIPE = _misc.SIGPIPE -SIGALRM = _misc.SIGALRM -SIGTERM = _misc.SIGTERM -class Process(core.EvtHandler): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyProcess instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def Kill(*args, **kwargs): - """Process.Kill(int pid, int sig=SIGTERM) -> int""" - return _misc.Process_Kill(*args, **kwargs) - - Kill = staticmethod(Kill) - def Exists(*args, **kwargs): - """Process.Exists(int pid) -> bool""" - return _misc.Process_Exists(*args, **kwargs) - - Exists = staticmethod(Exists) - def Open(*args, **kwargs): - """Process.Open(String cmd, int flags=EXEC_ASYNC) -> Process""" - return _misc.Process_Open(*args, **kwargs) - - Open = staticmethod(Open) - def __init__(self, *args, **kwargs): - """__init__(self, EvtHandler parent=None, int id=-1) -> Process""" - newobj = _misc.new_Process(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setCallbackInfo(self, Process) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _misc.Process__setCallbackInfo(*args, **kwargs) - - def base_OnTerminate(*args, **kwargs): - """base_OnTerminate(self, int pid, int status)""" - return _misc.Process_base_OnTerminate(*args, **kwargs) - - def Redirect(*args, **kwargs): - """Redirect(self)""" - return _misc.Process_Redirect(*args, **kwargs) - - def IsRedirected(*args, **kwargs): - """IsRedirected(self) -> bool""" - return _misc.Process_IsRedirected(*args, **kwargs) - - def Detach(*args, **kwargs): - """Detach(self)""" - return _misc.Process_Detach(*args, **kwargs) - - def GetInputStream(*args, **kwargs): - """GetInputStream(self) -> InputStream""" - return _misc.Process_GetInputStream(*args, **kwargs) - - def GetErrorStream(*args, **kwargs): - """GetErrorStream(self) -> InputStream""" - return _misc.Process_GetErrorStream(*args, **kwargs) - - def GetOutputStream(*args, **kwargs): - """GetOutputStream(self) -> OutputStream""" - return _misc.Process_GetOutputStream(*args, **kwargs) - - def CloseOutput(*args, **kwargs): - """CloseOutput(self)""" - return _misc.Process_CloseOutput(*args, **kwargs) - - def IsInputOpened(*args, **kwargs): - """IsInputOpened(self) -> bool""" - return _misc.Process_IsInputOpened(*args, **kwargs) - - def IsInputAvailable(*args, **kwargs): - """IsInputAvailable(self) -> bool""" - return _misc.Process_IsInputAvailable(*args, **kwargs) - - def IsErrorAvailable(*args, **kwargs): - """IsErrorAvailable(self) -> bool""" - return _misc.Process_IsErrorAvailable(*args, **kwargs) - - -class ProcessPtr(Process): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Process -_misc.Process_swigregister(ProcessPtr) - -def Process_Kill(*args, **kwargs): - """Process_Kill(int pid, int sig=SIGTERM) -> int""" - return _misc.Process_Kill(*args, **kwargs) - -def Process_Exists(*args, **kwargs): - """Process_Exists(int pid) -> bool""" - return _misc.Process_Exists(*args, **kwargs) - -def Process_Open(*args, **kwargs): - """Process_Open(String cmd, int flags=EXEC_ASYNC) -> Process""" - return _misc.Process_Open(*args, **kwargs) - -class ProcessEvent(core.Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxProcessEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int id=0, int pid=0, int exitcode=0) -> ProcessEvent""" - newobj = _misc.new_ProcessEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetPid(*args, **kwargs): - """GetPid(self) -> int""" - return _misc.ProcessEvent_GetPid(*args, **kwargs) - - def GetExitCode(*args, **kwargs): - """GetExitCode(self) -> int""" - return _misc.ProcessEvent_GetExitCode(*args, **kwargs) - - m_pid = property(_misc.ProcessEvent_m_pid_get, _misc.ProcessEvent_m_pid_set) - m_exitcode = property(_misc.ProcessEvent_m_exitcode_get, _misc.ProcessEvent_m_exitcode_set) - -class ProcessEventPtr(ProcessEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ProcessEvent -_misc.ProcessEvent_swigregister(ProcessEventPtr) - -wxEVT_END_PROCESS = _misc.wxEVT_END_PROCESS -EVT_END_PROCESS = wx.PyEventBinder( wxEVT_END_PROCESS, 1 ) - -EXEC_ASYNC = _misc.EXEC_ASYNC -EXEC_SYNC = _misc.EXEC_SYNC -EXEC_NOHIDE = _misc.EXEC_NOHIDE -EXEC_MAKE_GROUP_LEADER = _misc.EXEC_MAKE_GROUP_LEADER - -def Execute(*args, **kwargs): - """Execute(String command, int flags=EXEC_ASYNC, Process process=None) -> long""" - return _misc.Execute(*args, **kwargs) -#--------------------------------------------------------------------------- - -JOYSTICK1 = _misc.JOYSTICK1 -JOYSTICK2 = _misc.JOYSTICK2 -JOY_BUTTON_ANY = _misc.JOY_BUTTON_ANY -JOY_BUTTON1 = _misc.JOY_BUTTON1 -JOY_BUTTON2 = _misc.JOY_BUTTON2 -JOY_BUTTON3 = _misc.JOY_BUTTON3 -JOY_BUTTON4 = _misc.JOY_BUTTON4 -class Joystick(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxJoystick instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int joystick=JOYSTICK1) -> Joystick""" - newobj = _misc.new_Joystick(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_misc.delete_Joystick): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def GetPosition(*args, **kwargs): - """GetPosition(self) -> Point""" - return _misc.Joystick_GetPosition(*args, **kwargs) - - def GetZPosition(*args, **kwargs): - """GetZPosition(self) -> int""" - return _misc.Joystick_GetZPosition(*args, **kwargs) - - def GetButtonState(*args, **kwargs): - """GetButtonState(self) -> int""" - return _misc.Joystick_GetButtonState(*args, **kwargs) - - def GetPOVPosition(*args, **kwargs): - """GetPOVPosition(self) -> int""" - return _misc.Joystick_GetPOVPosition(*args, **kwargs) - - def GetPOVCTSPosition(*args, **kwargs): - """GetPOVCTSPosition(self) -> int""" - return _misc.Joystick_GetPOVCTSPosition(*args, **kwargs) - - def GetRudderPosition(*args, **kwargs): - """GetRudderPosition(self) -> int""" - return _misc.Joystick_GetRudderPosition(*args, **kwargs) - - def GetUPosition(*args, **kwargs): - """GetUPosition(self) -> int""" - return _misc.Joystick_GetUPosition(*args, **kwargs) - - def GetVPosition(*args, **kwargs): - """GetVPosition(self) -> int""" - return _misc.Joystick_GetVPosition(*args, **kwargs) - - def GetMovementThreshold(*args, **kwargs): - """GetMovementThreshold(self) -> int""" - return _misc.Joystick_GetMovementThreshold(*args, **kwargs) - - def SetMovementThreshold(*args, **kwargs): - """SetMovementThreshold(self, int threshold)""" - return _misc.Joystick_SetMovementThreshold(*args, **kwargs) - - def IsOk(*args, **kwargs): - """IsOk(self) -> bool""" - return _misc.Joystick_IsOk(*args, **kwargs) - - def GetNumberJoysticks(*args, **kwargs): - """GetNumberJoysticks(self) -> int""" - return _misc.Joystick_GetNumberJoysticks(*args, **kwargs) - - def GetManufacturerId(*args, **kwargs): - """GetManufacturerId(self) -> int""" - return _misc.Joystick_GetManufacturerId(*args, **kwargs) - - def GetProductId(*args, **kwargs): - """GetProductId(self) -> int""" - return _misc.Joystick_GetProductId(*args, **kwargs) - - def GetProductName(*args, **kwargs): - """GetProductName(self) -> String""" - return _misc.Joystick_GetProductName(*args, **kwargs) - - def GetXMin(*args, **kwargs): - """GetXMin(self) -> int""" - return _misc.Joystick_GetXMin(*args, **kwargs) - - def GetYMin(*args, **kwargs): - """GetYMin(self) -> int""" - return _misc.Joystick_GetYMin(*args, **kwargs) - - def GetZMin(*args, **kwargs): - """GetZMin(self) -> int""" - return _misc.Joystick_GetZMin(*args, **kwargs) - - def GetXMax(*args, **kwargs): - """GetXMax(self) -> int""" - return _misc.Joystick_GetXMax(*args, **kwargs) - - def GetYMax(*args, **kwargs): - """GetYMax(self) -> int""" - return _misc.Joystick_GetYMax(*args, **kwargs) - - def GetZMax(*args, **kwargs): - """GetZMax(self) -> int""" - return _misc.Joystick_GetZMax(*args, **kwargs) - - def GetNumberButtons(*args, **kwargs): - """GetNumberButtons(self) -> int""" - return _misc.Joystick_GetNumberButtons(*args, **kwargs) - - def GetNumberAxes(*args, **kwargs): - """GetNumberAxes(self) -> int""" - return _misc.Joystick_GetNumberAxes(*args, **kwargs) - - def GetMaxButtons(*args, **kwargs): - """GetMaxButtons(self) -> int""" - return _misc.Joystick_GetMaxButtons(*args, **kwargs) - - def GetMaxAxes(*args, **kwargs): - """GetMaxAxes(self) -> int""" - return _misc.Joystick_GetMaxAxes(*args, **kwargs) - - def GetPollingMin(*args, **kwargs): - """GetPollingMin(self) -> int""" - return _misc.Joystick_GetPollingMin(*args, **kwargs) - - def GetPollingMax(*args, **kwargs): - """GetPollingMax(self) -> int""" - return _misc.Joystick_GetPollingMax(*args, **kwargs) - - def GetRudderMin(*args, **kwargs): - """GetRudderMin(self) -> int""" - return _misc.Joystick_GetRudderMin(*args, **kwargs) - - def GetRudderMax(*args, **kwargs): - """GetRudderMax(self) -> int""" - return _misc.Joystick_GetRudderMax(*args, **kwargs) - - def GetUMin(*args, **kwargs): - """GetUMin(self) -> int""" - return _misc.Joystick_GetUMin(*args, **kwargs) - - def GetUMax(*args, **kwargs): - """GetUMax(self) -> int""" - return _misc.Joystick_GetUMax(*args, **kwargs) - - def GetVMin(*args, **kwargs): - """GetVMin(self) -> int""" - return _misc.Joystick_GetVMin(*args, **kwargs) - - def GetVMax(*args, **kwargs): - """GetVMax(self) -> int""" - return _misc.Joystick_GetVMax(*args, **kwargs) - - def HasRudder(*args, **kwargs): - """HasRudder(self) -> bool""" - return _misc.Joystick_HasRudder(*args, **kwargs) - - def HasZ(*args, **kwargs): - """HasZ(self) -> bool""" - return _misc.Joystick_HasZ(*args, **kwargs) - - def HasU(*args, **kwargs): - """HasU(self) -> bool""" - return _misc.Joystick_HasU(*args, **kwargs) - - def HasV(*args, **kwargs): - """HasV(self) -> bool""" - return _misc.Joystick_HasV(*args, **kwargs) - - def HasPOV(*args, **kwargs): - """HasPOV(self) -> bool""" - return _misc.Joystick_HasPOV(*args, **kwargs) - - def HasPOV4Dir(*args, **kwargs): - """HasPOV4Dir(self) -> bool""" - return _misc.Joystick_HasPOV4Dir(*args, **kwargs) - - def HasPOVCTS(*args, **kwargs): - """HasPOVCTS(self) -> bool""" - return _misc.Joystick_HasPOVCTS(*args, **kwargs) - - def SetCapture(*args, **kwargs): - """SetCapture(self, Window win, int pollingFreq=0) -> bool""" - return _misc.Joystick_SetCapture(*args, **kwargs) - - def ReleaseCapture(*args, **kwargs): - """ReleaseCapture(self) -> bool""" - return _misc.Joystick_ReleaseCapture(*args, **kwargs) - - def __nonzero__(self): return self.IsOk() - -class JoystickPtr(Joystick): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Joystick -_misc.Joystick_swigregister(JoystickPtr) - -wxEVT_JOY_BUTTON_DOWN = _misc.wxEVT_JOY_BUTTON_DOWN -wxEVT_JOY_BUTTON_UP = _misc.wxEVT_JOY_BUTTON_UP -wxEVT_JOY_MOVE = _misc.wxEVT_JOY_MOVE -wxEVT_JOY_ZMOVE = _misc.wxEVT_JOY_ZMOVE -class JoystickEvent(core.Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxJoystickEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - m_pos = property(_misc.JoystickEvent_m_pos_get, _misc.JoystickEvent_m_pos_set) - m_zPosition = property(_misc.JoystickEvent_m_zPosition_get, _misc.JoystickEvent_m_zPosition_set) - m_buttonChange = property(_misc.JoystickEvent_m_buttonChange_get, _misc.JoystickEvent_m_buttonChange_set) - m_buttonState = property(_misc.JoystickEvent_m_buttonState_get, _misc.JoystickEvent_m_buttonState_set) - m_joyStick = property(_misc.JoystickEvent_m_joyStick_get, _misc.JoystickEvent_m_joyStick_set) - def __init__(self, *args, **kwargs): - """ - __init__(self, wxEventType type=wxEVT_NULL, int state=0, int joystick=JOYSTICK1, - int change=0) -> JoystickEvent - """ - newobj = _misc.new_JoystickEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetPosition(*args, **kwargs): - """GetPosition(self) -> Point""" - return _misc.JoystickEvent_GetPosition(*args, **kwargs) - - def GetZPosition(*args, **kwargs): - """GetZPosition(self) -> int""" - return _misc.JoystickEvent_GetZPosition(*args, **kwargs) - - def GetButtonState(*args, **kwargs): - """GetButtonState(self) -> int""" - return _misc.JoystickEvent_GetButtonState(*args, **kwargs) - - def GetButtonChange(*args, **kwargs): - """GetButtonChange(self) -> int""" - return _misc.JoystickEvent_GetButtonChange(*args, **kwargs) - - def GetJoystick(*args, **kwargs): - """GetJoystick(self) -> int""" - return _misc.JoystickEvent_GetJoystick(*args, **kwargs) - - def SetJoystick(*args, **kwargs): - """SetJoystick(self, int stick)""" - return _misc.JoystickEvent_SetJoystick(*args, **kwargs) - - def SetButtonState(*args, **kwargs): - """SetButtonState(self, int state)""" - return _misc.JoystickEvent_SetButtonState(*args, **kwargs) - - def SetButtonChange(*args, **kwargs): - """SetButtonChange(self, int change)""" - return _misc.JoystickEvent_SetButtonChange(*args, **kwargs) - - def SetPosition(*args, **kwargs): - """SetPosition(self, Point pos)""" - return _misc.JoystickEvent_SetPosition(*args, **kwargs) - - def SetZPosition(*args, **kwargs): - """SetZPosition(self, int zPos)""" - return _misc.JoystickEvent_SetZPosition(*args, **kwargs) - - def IsButton(*args, **kwargs): - """IsButton(self) -> bool""" - return _misc.JoystickEvent_IsButton(*args, **kwargs) - - def IsMove(*args, **kwargs): - """IsMove(self) -> bool""" - return _misc.JoystickEvent_IsMove(*args, **kwargs) - - def IsZMove(*args, **kwargs): - """IsZMove(self) -> bool""" - return _misc.JoystickEvent_IsZMove(*args, **kwargs) - - def ButtonDown(*args, **kwargs): - """ButtonDown(self, int but=JOY_BUTTON_ANY) -> bool""" - return _misc.JoystickEvent_ButtonDown(*args, **kwargs) - - def ButtonUp(*args, **kwargs): - """ButtonUp(self, int but=JOY_BUTTON_ANY) -> bool""" - return _misc.JoystickEvent_ButtonUp(*args, **kwargs) - - def ButtonIsDown(*args, **kwargs): - """ButtonIsDown(self, int but=JOY_BUTTON_ANY) -> bool""" - return _misc.JoystickEvent_ButtonIsDown(*args, **kwargs) - - -class JoystickEventPtr(JoystickEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = JoystickEvent -_misc.JoystickEvent_swigregister(JoystickEventPtr) - -EVT_JOY_BUTTON_DOWN = wx.PyEventBinder( wxEVT_JOY_BUTTON_DOWN ) -EVT_JOY_BUTTON_UP = wx.PyEventBinder( wxEVT_JOY_BUTTON_UP ) -EVT_JOY_MOVE = wx.PyEventBinder( wxEVT_JOY_MOVE ) -EVT_JOY_ZMOVE = wx.PyEventBinder( wxEVT_JOY_ZMOVE ) - -EVT_JOYSTICK_EVENTS = wx.PyEventBinder([ wxEVT_JOY_BUTTON_DOWN, - wxEVT_JOY_BUTTON_UP, - wxEVT_JOY_MOVE, - wxEVT_JOY_ZMOVE, - ]) - - -#--------------------------------------------------------------------------- - -SOUND_SYNC = _misc.SOUND_SYNC -SOUND_ASYNC = _misc.SOUND_ASYNC -SOUND_LOOP = _misc.SOUND_LOOP -class Sound(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxSound instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args): - """ - __init__(self) -> Sound - __init__(self, String fileName, bool isResource=false) -> Sound - __init__(self, int size, wxByte data) -> Sound - """ - newobj = _misc.new_Sound(*args) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_misc.delete_Sound): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Create(*args): - """ - Create(self, String fileName, bool isResource=false) -> bool - Create(self, int size, wxByte data) -> bool - """ - return _misc.Sound_Create(*args) - - def IsOk(*args, **kwargs): - """IsOk(self) -> bool""" - return _misc.Sound_IsOk(*args, **kwargs) - - def Play(*args): - """Play(self, unsigned int flags=SOUND_ASYNC) -> bool""" - return _misc.Sound_Play(*args) - - def PlaySound(*args): - """Sound.PlaySound(String filename, unsigned int flags=SOUND_ASYNC) -> bool""" - return _misc.Sound_PlaySound(*args) - - PlaySound = staticmethod(PlaySound) - def Stop(*args, **kwargs): - """Sound.Stop()""" - return _misc.Sound_Stop(*args, **kwargs) - - Stop = staticmethod(Stop) - def __nonzero__(self): return self.IsOk() - -class SoundPtr(Sound): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Sound -_misc.Sound_swigregister(SoundPtr) - -def Sound_PlaySound(*args): - """Sound_PlaySound(String filename, unsigned int flags=SOUND_ASYNC) -> bool""" - return _misc.Sound_PlaySound(*args) - -def Sound_Stop(*args, **kwargs): - """Sound_Stop()""" - return _misc.Sound_Stop(*args, **kwargs) - -#--------------------------------------------------------------------------- - -MAILCAP_STANDARD = _misc.MAILCAP_STANDARD -MAILCAP_NETSCAPE = _misc.MAILCAP_NETSCAPE -MAILCAP_KDE = _misc.MAILCAP_KDE -MAILCAP_GNOME = _misc.MAILCAP_GNOME -MAILCAP_ALL = _misc.MAILCAP_ALL -class FileTypeInfo(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxFileTypeInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, String mimeType, String openCmd, String printCmd, String desc) -> FileTypeInfo""" - newobj = _misc.new_FileTypeInfo(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def IsValid(*args, **kwargs): - """IsValid(self) -> bool""" - return _misc.FileTypeInfo_IsValid(*args, **kwargs) - - def SetIcon(*args, **kwargs): - """SetIcon(self, String iconFile, int iconIndex=0)""" - return _misc.FileTypeInfo_SetIcon(*args, **kwargs) - - def SetShortDesc(*args, **kwargs): - """SetShortDesc(self, String shortDesc)""" - return _misc.FileTypeInfo_SetShortDesc(*args, **kwargs) - - def GetMimeType(*args, **kwargs): - """GetMimeType(self) -> String""" - return _misc.FileTypeInfo_GetMimeType(*args, **kwargs) - - def GetOpenCommand(*args, **kwargs): - """GetOpenCommand(self) -> String""" - return _misc.FileTypeInfo_GetOpenCommand(*args, **kwargs) - - def GetPrintCommand(*args, **kwargs): - """GetPrintCommand(self) -> String""" - return _misc.FileTypeInfo_GetPrintCommand(*args, **kwargs) - - def GetShortDesc(*args, **kwargs): - """GetShortDesc(self) -> String""" - return _misc.FileTypeInfo_GetShortDesc(*args, **kwargs) - - def GetDescription(*args, **kwargs): - """GetDescription(self) -> String""" - return _misc.FileTypeInfo_GetDescription(*args, **kwargs) - - def GetExtensions(*args, **kwargs): - """GetExtensions(self) -> wxArrayString""" - return _misc.FileTypeInfo_GetExtensions(*args, **kwargs) - - def GetExtensionsCount(*args, **kwargs): - """GetExtensionsCount(self) -> int""" - return _misc.FileTypeInfo_GetExtensionsCount(*args, **kwargs) - - def GetIconFile(*args, **kwargs): - """GetIconFile(self) -> String""" - return _misc.FileTypeInfo_GetIconFile(*args, **kwargs) - - def GetIconIndex(*args, **kwargs): - """GetIconIndex(self) -> int""" - return _misc.FileTypeInfo_GetIconIndex(*args, **kwargs) - - -class FileTypeInfoPtr(FileTypeInfo): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = FileTypeInfo -_misc.FileTypeInfo_swigregister(FileTypeInfoPtr) - -def FileTypeInfoSequence(*args, **kwargs): - """FileTypeInfoSequence(wxArrayString sArray) -> FileTypeInfo""" - val = _misc.new_FileTypeInfoSequence(*args, **kwargs) - val.thisown = 1 - return val - -def NullFileTypeInfo(*args, **kwargs): - """NullFileTypeInfo() -> FileTypeInfo""" - val = _misc.new_NullFileTypeInfo(*args, **kwargs) - val.thisown = 1 - return val - -class FileType(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxFileType instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, FileTypeInfo ftInfo) -> FileType""" - newobj = _misc.new_FileType(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_misc.delete_FileType): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def GetMimeType(*args, **kwargs): - """GetMimeType(self) -> PyObject""" - return _misc.FileType_GetMimeType(*args, **kwargs) - - def GetMimeTypes(*args, **kwargs): - """GetMimeTypes(self) -> PyObject""" - return _misc.FileType_GetMimeTypes(*args, **kwargs) - - def GetExtensions(*args, **kwargs): - """GetExtensions(self) -> PyObject""" - return _misc.FileType_GetExtensions(*args, **kwargs) - - def GetIcon(*args, **kwargs): - """GetIcon(self) -> Icon""" - return _misc.FileType_GetIcon(*args, **kwargs) - - def GetIconInfo(*args, **kwargs): - """GetIconInfo(self) -> PyObject""" - return _misc.FileType_GetIconInfo(*args, **kwargs) - - def GetDescription(*args, **kwargs): - """GetDescription(self) -> PyObject""" - return _misc.FileType_GetDescription(*args, **kwargs) - - def GetOpenCommand(*args, **kwargs): - """GetOpenCommand(self, String filename, String mimetype=EmptyString) -> PyObject""" - return _misc.FileType_GetOpenCommand(*args, **kwargs) - - def GetPrintCommand(*args, **kwargs): - """GetPrintCommand(self, String filename, String mimetype=EmptyString) -> PyObject""" - return _misc.FileType_GetPrintCommand(*args, **kwargs) - - def GetAllCommands(*args, **kwargs): - """GetAllCommands(self, String filename, String mimetype=EmptyString) -> PyObject""" - return _misc.FileType_GetAllCommands(*args, **kwargs) - - def SetCommand(*args, **kwargs): - """SetCommand(self, String cmd, String verb, bool overwriteprompt=True) -> bool""" - return _misc.FileType_SetCommand(*args, **kwargs) - - def SetDefaultIcon(*args, **kwargs): - """SetDefaultIcon(self, String cmd=EmptyString, int index=0) -> bool""" - return _misc.FileType_SetDefaultIcon(*args, **kwargs) - - def Unassociate(*args, **kwargs): - """Unassociate(self) -> bool""" - return _misc.FileType_Unassociate(*args, **kwargs) - - def ExpandCommand(*args, **kwargs): - """FileType.ExpandCommand(String command, String filename, String mimetype=EmptyString) -> String""" - return _misc.FileType_ExpandCommand(*args, **kwargs) - - ExpandCommand = staticmethod(ExpandCommand) - -class FileTypePtr(FileType): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = FileType -_misc.FileType_swigregister(FileTypePtr) - -def FileType_ExpandCommand(*args, **kwargs): - """FileType_ExpandCommand(String command, String filename, String mimetype=EmptyString) -> String""" - return _misc.FileType_ExpandCommand(*args, **kwargs) - -class MimeTypesManager(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxMimeTypesManager instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def IsOfType(*args, **kwargs): - """MimeTypesManager.IsOfType(String mimeType, String wildcard) -> bool""" - return _misc.MimeTypesManager_IsOfType(*args, **kwargs) - - IsOfType = staticmethod(IsOfType) - def __init__(self, *args, **kwargs): - """__init__(self) -> MimeTypesManager""" - newobj = _misc.new_MimeTypesManager(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def Initialize(*args, **kwargs): - """Initialize(self, int mailcapStyle=MAILCAP_ALL, String extraDir=EmptyString)""" - return _misc.MimeTypesManager_Initialize(*args, **kwargs) - - def ClearData(*args, **kwargs): - """ClearData(self)""" - return _misc.MimeTypesManager_ClearData(*args, **kwargs) - - def GetFileTypeFromExtension(*args, **kwargs): - """GetFileTypeFromExtension(self, String ext) -> FileType""" - return _misc.MimeTypesManager_GetFileTypeFromExtension(*args, **kwargs) - - def GetFileTypeFromMimeType(*args, **kwargs): - """GetFileTypeFromMimeType(self, String mimeType) -> FileType""" - return _misc.MimeTypesManager_GetFileTypeFromMimeType(*args, **kwargs) - - def ReadMailcap(*args, **kwargs): - """ReadMailcap(self, String filename, bool fallback=False) -> bool""" - return _misc.MimeTypesManager_ReadMailcap(*args, **kwargs) - - def ReadMimeTypes(*args, **kwargs): - """ReadMimeTypes(self, String filename) -> bool""" - return _misc.MimeTypesManager_ReadMimeTypes(*args, **kwargs) - - def EnumAllFileTypes(*args, **kwargs): - """EnumAllFileTypes(self) -> PyObject""" - return _misc.MimeTypesManager_EnumAllFileTypes(*args, **kwargs) - - def AddFallback(*args, **kwargs): - """AddFallback(self, FileTypeInfo ft)""" - return _misc.MimeTypesManager_AddFallback(*args, **kwargs) - - def Associate(*args, **kwargs): - """Associate(self, FileTypeInfo ftInfo) -> FileType""" - return _misc.MimeTypesManager_Associate(*args, **kwargs) - - def Unassociate(*args, **kwargs): - """Unassociate(self, FileType ft) -> bool""" - return _misc.MimeTypesManager_Unassociate(*args, **kwargs) - - def __del__(self, destroy=_misc.delete_MimeTypesManager): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - -class MimeTypesManagerPtr(MimeTypesManager): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = MimeTypesManager -_misc.MimeTypesManager_swigregister(MimeTypesManagerPtr) -TheMimeTypesManager = cvar.TheMimeTypesManager - -def MimeTypesManager_IsOfType(*args, **kwargs): - """MimeTypesManager_IsOfType(String mimeType, String wildcard) -> bool""" - return _misc.MimeTypesManager_IsOfType(*args, **kwargs) - -#--------------------------------------------------------------------------- - -class ArtProvider(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyArtProvider instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> ArtProvider""" - newobj = _misc.new_ArtProvider(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setCallbackInfo(self, ArtProvider) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _misc.ArtProvider__setCallbackInfo(*args, **kwargs) - - def PushProvider(*args, **kwargs): - """ - ArtProvider.PushProvider(ArtProvider provider) - - Add new provider to the top of providers stack. - """ - return _misc.ArtProvider_PushProvider(*args, **kwargs) - - PushProvider = staticmethod(PushProvider) - def PopProvider(*args, **kwargs): - """ - ArtProvider.PopProvider() -> bool - - Remove latest added provider and delete it. - """ - return _misc.ArtProvider_PopProvider(*args, **kwargs) - - PopProvider = staticmethod(PopProvider) - def RemoveProvider(*args, **kwargs): - """ - ArtProvider.RemoveProvider(ArtProvider provider) -> bool - - Remove provider. The provider must have been added previously! - The provider is _not_ deleted. - """ - return _misc.ArtProvider_RemoveProvider(*args, **kwargs) - - RemoveProvider = staticmethod(RemoveProvider) - def GetBitmap(*args, **kwargs): - """ - ArtProvider.GetBitmap(String id, String client=ART_OTHER, Size size=DefaultSize) -> Bitmap - - Query the providers for bitmap with given ID and return it. Return - wx.NullBitmap if no provider provides it. - """ - return _misc.ArtProvider_GetBitmap(*args, **kwargs) - - GetBitmap = staticmethod(GetBitmap) - def GetIcon(*args, **kwargs): - """ - ArtProvider.GetIcon(String id, String client=ART_OTHER, Size size=DefaultSize) -> Icon - - Query the providers for icon with given ID and return it. Return - wx.NullIcon if no provider provides it. - """ - return _misc.ArtProvider_GetIcon(*args, **kwargs) - - GetIcon = staticmethod(GetIcon) - def Destroy(*args, **kwargs): - """Destroy(self)""" - return _misc.ArtProvider_Destroy(*args, **kwargs) - - -class ArtProviderPtr(ArtProvider): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ArtProvider -_misc.ArtProvider_swigregister(ArtProviderPtr) -ART_TOOLBAR = cvar.ART_TOOLBAR -ART_MENU = cvar.ART_MENU -ART_FRAME_ICON = cvar.ART_FRAME_ICON -ART_CMN_DIALOG = cvar.ART_CMN_DIALOG -ART_HELP_BROWSER = cvar.ART_HELP_BROWSER -ART_MESSAGE_BOX = cvar.ART_MESSAGE_BOX -ART_OTHER = cvar.ART_OTHER -ART_ADD_BOOKMARK = cvar.ART_ADD_BOOKMARK -ART_DEL_BOOKMARK = cvar.ART_DEL_BOOKMARK -ART_HELP_SIDE_PANEL = cvar.ART_HELP_SIDE_PANEL -ART_HELP_SETTINGS = cvar.ART_HELP_SETTINGS -ART_HELP_BOOK = cvar.ART_HELP_BOOK -ART_HELP_FOLDER = cvar.ART_HELP_FOLDER -ART_HELP_PAGE = cvar.ART_HELP_PAGE -ART_GO_BACK = cvar.ART_GO_BACK -ART_GO_FORWARD = cvar.ART_GO_FORWARD -ART_GO_UP = cvar.ART_GO_UP -ART_GO_DOWN = cvar.ART_GO_DOWN -ART_GO_TO_PARENT = cvar.ART_GO_TO_PARENT -ART_GO_HOME = cvar.ART_GO_HOME -ART_FILE_OPEN = cvar.ART_FILE_OPEN -ART_PRINT = cvar.ART_PRINT -ART_HELP = cvar.ART_HELP -ART_TIP = cvar.ART_TIP -ART_REPORT_VIEW = cvar.ART_REPORT_VIEW -ART_LIST_VIEW = cvar.ART_LIST_VIEW -ART_NEW_DIR = cvar.ART_NEW_DIR -ART_FOLDER = cvar.ART_FOLDER -ART_GO_DIR_UP = cvar.ART_GO_DIR_UP -ART_EXECUTABLE_FILE = cvar.ART_EXECUTABLE_FILE -ART_NORMAL_FILE = cvar.ART_NORMAL_FILE -ART_TICK_MARK = cvar.ART_TICK_MARK -ART_CROSS_MARK = cvar.ART_CROSS_MARK -ART_ERROR = cvar.ART_ERROR -ART_QUESTION = cvar.ART_QUESTION -ART_WARNING = cvar.ART_WARNING -ART_INFORMATION = cvar.ART_INFORMATION -ART_MISSING_IMAGE = cvar.ART_MISSING_IMAGE - -def ArtProvider_PushProvider(*args, **kwargs): - """ - ArtProvider_PushProvider(ArtProvider provider) - - Add new provider to the top of providers stack. - """ - return _misc.ArtProvider_PushProvider(*args, **kwargs) - -def ArtProvider_PopProvider(*args, **kwargs): - """ - ArtProvider_PopProvider() -> bool - - Remove latest added provider and delete it. - """ - return _misc.ArtProvider_PopProvider(*args, **kwargs) - -def ArtProvider_RemoveProvider(*args, **kwargs): - """ - ArtProvider_RemoveProvider(ArtProvider provider) -> bool - - Remove provider. The provider must have been added previously! - The provider is _not_ deleted. - """ - return _misc.ArtProvider_RemoveProvider(*args, **kwargs) - -def ArtProvider_GetBitmap(*args, **kwargs): - """ - ArtProvider_GetBitmap(String id, String client=ART_OTHER, Size size=DefaultSize) -> Bitmap - - Query the providers for bitmap with given ID and return it. Return - wx.NullBitmap if no provider provides it. - """ - return _misc.ArtProvider_GetBitmap(*args, **kwargs) - -def ArtProvider_GetIcon(*args, **kwargs): - """ - ArtProvider_GetIcon(String id, String client=ART_OTHER, Size size=DefaultSize) -> Icon - - Query the providers for icon with given ID and return it. Return - wx.NullIcon if no provider provides it. - """ - return _misc.ArtProvider_GetIcon(*args, **kwargs) - -#--------------------------------------------------------------------------- - -CONFIG_USE_LOCAL_FILE = _misc.CONFIG_USE_LOCAL_FILE -CONFIG_USE_GLOBAL_FILE = _misc.CONFIG_USE_GLOBAL_FILE -CONFIG_USE_RELATIVE_PATH = _misc.CONFIG_USE_RELATIVE_PATH -CONFIG_USE_NO_ESCAPE_CHARACTERS = _misc.CONFIG_USE_NO_ESCAPE_CHARACTERS -class ConfigBase(object): - """ - wx.ConfigBase class defines the basic interface of all config - classes. It can not be used by itself (it is an abstract base - class) and you will always use one of its derivations: wx.Config - or wx.FileConfig. - - wx.ConfigBase organizes the items in a tree-like structure, - modeled after the Unix/Dos filesystem. There are groups that act - like directories and entries, key/value pairs that act like - files. There is always one current group given by the current - path. As in the file system case, to specify a key in the config - class you must use a path to it. Config classes also support the - notion of the current group, which makes it possible to use - relative paths. - - Keys are pairs "key_name = value" where value may be of string, - integer floating point or boolean, you can not store binary data - without first encoding it as a string. For performance reasons - items should be kept small, no more than a couple kilobytes. - - """ - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxConfigBase instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __del__(self, destroy=_misc.delete_ConfigBase): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - Type_Unknown = _misc.ConfigBase_Type_Unknown - Type_String = _misc.ConfigBase_Type_String - Type_Boolean = _misc.ConfigBase_Type_Boolean - Type_Integer = _misc.ConfigBase_Type_Integer - Type_Float = _misc.ConfigBase_Type_Float - def Set(*args, **kwargs): - """ - ConfigBase.Set(ConfigBase config) -> ConfigBase - - Sets the global config object (the one returned by Get) and - returns a reference to the previous global config object. - """ - return _misc.ConfigBase_Set(*args, **kwargs) - - Set = staticmethod(Set) - def Get(*args, **kwargs): - """ - ConfigBase.Get(bool createOnDemand=True) -> ConfigBase - - Returns the current global config object, creating one if neccessary. - """ - return _misc.ConfigBase_Get(*args, **kwargs) - - Get = staticmethod(Get) - def Create(*args, **kwargs): - """ - ConfigBase.Create() -> ConfigBase - - Create and return a new global config object. This function will - create the "best" implementation of wx.Config available for the - current platform. - """ - return _misc.ConfigBase_Create(*args, **kwargs) - - Create = staticmethod(Create) - def DontCreateOnDemand(*args, **kwargs): - """ - ConfigBase.DontCreateOnDemand() - - Should Get() try to create a new log object if there isn't a current one? - """ - return _misc.ConfigBase_DontCreateOnDemand(*args, **kwargs) - - DontCreateOnDemand = staticmethod(DontCreateOnDemand) - def SetPath(*args, **kwargs): - """ - SetPath(self, String path) - - Set current path: if the first character is '/', it's the absolute path, - otherwise it's a relative path. '..' is supported. If the strPath - doesn't exist it is created. - """ - return _misc.ConfigBase_SetPath(*args, **kwargs) - - def GetPath(*args, **kwargs): - """ - GetPath(self) -> String - - Retrieve the current path (always as absolute path) - """ - return _misc.ConfigBase_GetPath(*args, **kwargs) - - def GetFirstGroup(*args, **kwargs): - """ - GetFirstGroup() -> (more, value, index) - - Allows enumerating the subgroups in a config object. Returns - a tuple containing a flag indicating there are more items, the - name of the current item, and an index to pass to GetNextGroup to - fetch the next item. - """ - return _misc.ConfigBase_GetFirstGroup(*args, **kwargs) - - def GetNextGroup(*args, **kwargs): - """ - GetNextGroup(long index) -> (more, value, index) - - Allows enumerating the subgroups in a config object. Returns - a tuple containing a flag indicating there are more items, the - name of the current item, and an index to pass to GetNextGroup to - fetch the next item. - """ - return _misc.ConfigBase_GetNextGroup(*args, **kwargs) - - def GetFirstEntry(*args, **kwargs): - """ - GetFirstEntry() -> (more, value, index) - - Allows enumerating the entries in the current group in a config - object. Returns a tuple containing a flag indicating there are - more items, the name of the current item, and an index to pass to - GetNextGroup to fetch the next item. - """ - return _misc.ConfigBase_GetFirstEntry(*args, **kwargs) - - def GetNextEntry(*args, **kwargs): - """ - GetNextEntry(long index) -> (more, value, index) - - Allows enumerating the entries in the current group in a config - object. Returns a tuple containing a flag indicating there are - more items, the name of the current item, and an index to pass to - GetNextGroup to fetch the next item. - """ - return _misc.ConfigBase_GetNextEntry(*args, **kwargs) - - def GetNumberOfEntries(*args, **kwargs): - """ - GetNumberOfEntries(self, bool recursive=False) -> size_t - - Get the number of entries in the current group, with or - without its subgroups. - """ - return _misc.ConfigBase_GetNumberOfEntries(*args, **kwargs) - - def GetNumberOfGroups(*args, **kwargs): - """ - GetNumberOfGroups(self, bool recursive=False) -> size_t - - Get the number of subgroups in the current group, with or - without its subgroups. - """ - return _misc.ConfigBase_GetNumberOfGroups(*args, **kwargs) - - def HasGroup(*args, **kwargs): - """ - HasGroup(self, String name) -> bool - - Returns True if the group by this name exists - """ - return _misc.ConfigBase_HasGroup(*args, **kwargs) - - def HasEntry(*args, **kwargs): - """ - HasEntry(self, String name) -> bool - - Returns True if the entry by this name exists - """ - return _misc.ConfigBase_HasEntry(*args, **kwargs) - - def Exists(*args, **kwargs): - """ - Exists(self, String name) -> bool - - Returns True if either a group or an entry with a given name exists - """ - return _misc.ConfigBase_Exists(*args, **kwargs) - - def GetEntryType(*args, **kwargs): - """ - GetEntryType(self, String name) -> int - - Get the type of the entry. Returns one of the wx.Config.Type_XXX values. - """ - return _misc.ConfigBase_GetEntryType(*args, **kwargs) - - def Read(*args, **kwargs): - """ - Read(self, String key, String defaultVal=EmptyString) -> String - - Returns the value of key if it exists, defaultVal otherwise. - """ - return _misc.ConfigBase_Read(*args, **kwargs) - - def ReadInt(*args, **kwargs): - """ - ReadInt(self, String key, long defaultVal=0) -> long - - Returns the value of key if it exists, defaultVal otherwise. - """ - return _misc.ConfigBase_ReadInt(*args, **kwargs) - - def ReadFloat(*args, **kwargs): - """ - ReadFloat(self, String key, double defaultVal=0.0) -> double - - Returns the value of key if it exists, defaultVal otherwise. - """ - return _misc.ConfigBase_ReadFloat(*args, **kwargs) - - def ReadBool(*args, **kwargs): - """ - ReadBool(self, String key, bool defaultVal=False) -> bool - - Returns the value of key if it exists, defaultVal otherwise. - """ - return _misc.ConfigBase_ReadBool(*args, **kwargs) - - def Write(*args, **kwargs): - """ - Write(self, String key, String value) -> bool - - write the value (return True on success) - """ - return _misc.ConfigBase_Write(*args, **kwargs) - - def WriteInt(*args, **kwargs): - """ - WriteInt(self, String key, long value) -> bool - - write the value (return True on success) - """ - return _misc.ConfigBase_WriteInt(*args, **kwargs) - - def WriteFloat(*args, **kwargs): - """ - WriteFloat(self, String key, double value) -> bool - - write the value (return True on success) - """ - return _misc.ConfigBase_WriteFloat(*args, **kwargs) - - def WriteBool(*args, **kwargs): - """ - WriteBool(self, String key, bool value) -> bool - - write the value (return True on success) - """ - return _misc.ConfigBase_WriteBool(*args, **kwargs) - - def Flush(*args, **kwargs): - """ - Flush(self, bool currentOnly=False) -> bool - - permanently writes all changes - """ - return _misc.ConfigBase_Flush(*args, **kwargs) - - def RenameEntry(*args, **kwargs): - """ - RenameEntry(self, String oldName, String newName) -> bool - - Rename an entry. Returns False on failure (probably because the new - name is already taken by an existing entry) - """ - return _misc.ConfigBase_RenameEntry(*args, **kwargs) - - def RenameGroup(*args, **kwargs): - """ - RenameGroup(self, String oldName, String newName) -> bool - - Rename aa group. Returns False on failure (probably because the new - name is already taken by an existing entry) - """ - return _misc.ConfigBase_RenameGroup(*args, **kwargs) - - def DeleteEntry(*args, **kwargs): - """ - DeleteEntry(self, String key, bool deleteGroupIfEmpty=True) -> bool - - Deletes the specified entry and the group it belongs to if - it was the last key in it and the second parameter is True - """ - return _misc.ConfigBase_DeleteEntry(*args, **kwargs) - - def DeleteGroup(*args, **kwargs): - """ - DeleteGroup(self, String key) -> bool - - Delete the group (with all subgroups) - """ - return _misc.ConfigBase_DeleteGroup(*args, **kwargs) - - def DeleteAll(*args, **kwargs): - """ - DeleteAll(self) -> bool - - Delete the whole underlying object (disk file, registry key, ...) - primarly intended for use by desinstallation routine. - """ - return _misc.ConfigBase_DeleteAll(*args, **kwargs) - - def SetExpandEnvVars(*args, **kwargs): - """ - SetExpandEnvVars(self, bool doIt=True) - - We can automatically expand environment variables in the config entries - (this option is on by default, you can turn it on/off at any time) - """ - return _misc.ConfigBase_SetExpandEnvVars(*args, **kwargs) - - def IsExpandingEnvVars(*args, **kwargs): - """ - IsExpandingEnvVars(self) -> bool - - Are we currently expanding environment variables? - """ - return _misc.ConfigBase_IsExpandingEnvVars(*args, **kwargs) - - def SetRecordDefaults(*args, **kwargs): - """ - SetRecordDefaults(self, bool doIt=True) - - Set whether the config objec should record default values. - """ - return _misc.ConfigBase_SetRecordDefaults(*args, **kwargs) - - def IsRecordingDefaults(*args, **kwargs): - """ - IsRecordingDefaults(self) -> bool - - Are we currently recording default values? - """ - return _misc.ConfigBase_IsRecordingDefaults(*args, **kwargs) - - def ExpandEnvVars(*args, **kwargs): - """ - ExpandEnvVars(self, String str) -> String - - Expand any environment variables in str and return the result - """ - return _misc.ConfigBase_ExpandEnvVars(*args, **kwargs) - - def GetAppName(*args, **kwargs): - """GetAppName(self) -> String""" - return _misc.ConfigBase_GetAppName(*args, **kwargs) - - def GetVendorName(*args, **kwargs): - """GetVendorName(self) -> String""" - return _misc.ConfigBase_GetVendorName(*args, **kwargs) - - def SetAppName(*args, **kwargs): - """SetAppName(self, String appName)""" - return _misc.ConfigBase_SetAppName(*args, **kwargs) - - def SetVendorName(*args, **kwargs): - """SetVendorName(self, String vendorName)""" - return _misc.ConfigBase_SetVendorName(*args, **kwargs) - - def SetStyle(*args, **kwargs): - """SetStyle(self, long style)""" - return _misc.ConfigBase_SetStyle(*args, **kwargs) - - def GetStyle(*args, **kwargs): - """GetStyle(self) -> long""" - return _misc.ConfigBase_GetStyle(*args, **kwargs) - - -class ConfigBasePtr(ConfigBase): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ConfigBase -_misc.ConfigBase_swigregister(ConfigBasePtr) - -def ConfigBase_Set(*args, **kwargs): - """ - ConfigBase_Set(ConfigBase config) -> ConfigBase - - Sets the global config object (the one returned by Get) and - returns a reference to the previous global config object. - """ - return _misc.ConfigBase_Set(*args, **kwargs) - -def ConfigBase_Get(*args, **kwargs): - """ - ConfigBase_Get(bool createOnDemand=True) -> ConfigBase - - Returns the current global config object, creating one if neccessary. - """ - return _misc.ConfigBase_Get(*args, **kwargs) - -def ConfigBase_Create(*args, **kwargs): - """ - ConfigBase_Create() -> ConfigBase - - Create and return a new global config object. This function will - create the "best" implementation of wx.Config available for the - current platform. - """ - return _misc.ConfigBase_Create(*args, **kwargs) - -def ConfigBase_DontCreateOnDemand(*args, **kwargs): - """ - ConfigBase_DontCreateOnDemand() - - Should Get() try to create a new log object if there isn't a current one? - """ - return _misc.ConfigBase_DontCreateOnDemand(*args, **kwargs) - -class Config(ConfigBase): - """ - This ConfigBase-derived class will use the registry on Windows, - and will be a wx.FileConfig on other platforms. - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxConfig instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, String appName=EmptyString, String vendorName=EmptyString, - String localFilename=EmptyString, String globalFilename=EmptyString, - long style=wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE) -> Config - """ - newobj = _misc.new_Config(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_misc.delete_Config): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - -class ConfigPtr(Config): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Config -_misc.Config_swigregister(ConfigPtr) - -class FileConfig(ConfigBase): - """This config class will use a file for storage on all platforms.""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxFileConfig instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, String appName=EmptyString, String vendorName=EmptyString, - String localFilename=EmptyString, String globalFilename=EmptyString, - long style=wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE) -> FileConfig - """ - newobj = _misc.new_FileConfig(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_misc.delete_FileConfig): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - -class FileConfigPtr(FileConfig): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = FileConfig -_misc.FileConfig_swigregister(FileConfigPtr) - -class ConfigPathChanger(object): - """ - A handy little class which changes current path to the path of - given entry and restores it in the destructoir: so if you declare - a local variable of this type, you work in the entry directory - and the path is automatically restored when the function returns. - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxConfigPathChanger instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, ConfigBase config, String entry) -> ConfigPathChanger""" - newobj = _misc.new_ConfigPathChanger(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_misc.delete_ConfigPathChanger): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Name(*args, **kwargs): - """ - Name(self) -> String - - Get the key name - """ - return _misc.ConfigPathChanger_Name(*args, **kwargs) - - -class ConfigPathChangerPtr(ConfigPathChanger): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ConfigPathChanger -_misc.ConfigPathChanger_swigregister(ConfigPathChangerPtr) - - -def ExpandEnvVars(*args, **kwargs): - """ - ExpandEnvVars(String sz) -> String - - Replace environment variables ($SOMETHING) with their values. The - format is $VARNAME or ${VARNAME} where VARNAME contains - alphanumeric characters and '_' only. '$' must be escaped ('\$') - in order to be taken literally. - """ - return _misc.ExpandEnvVars(*args, **kwargs) -#--------------------------------------------------------------------------- - -class DateTime(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxDateTime instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - Local = _misc.DateTime_Local - GMT_12 = _misc.DateTime_GMT_12 - GMT_11 = _misc.DateTime_GMT_11 - GMT_10 = _misc.DateTime_GMT_10 - GMT_9 = _misc.DateTime_GMT_9 - GMT_8 = _misc.DateTime_GMT_8 - GMT_7 = _misc.DateTime_GMT_7 - GMT_6 = _misc.DateTime_GMT_6 - GMT_5 = _misc.DateTime_GMT_5 - GMT_4 = _misc.DateTime_GMT_4 - GMT_3 = _misc.DateTime_GMT_3 - GMT_2 = _misc.DateTime_GMT_2 - GMT_1 = _misc.DateTime_GMT_1 - GMT0 = _misc.DateTime_GMT0 - GMT1 = _misc.DateTime_GMT1 - GMT2 = _misc.DateTime_GMT2 - GMT3 = _misc.DateTime_GMT3 - GMT4 = _misc.DateTime_GMT4 - GMT5 = _misc.DateTime_GMT5 - GMT6 = _misc.DateTime_GMT6 - GMT7 = _misc.DateTime_GMT7 - GMT8 = _misc.DateTime_GMT8 - GMT9 = _misc.DateTime_GMT9 - GMT10 = _misc.DateTime_GMT10 - GMT11 = _misc.DateTime_GMT11 - GMT12 = _misc.DateTime_GMT12 - WET = _misc.DateTime_WET - WEST = _misc.DateTime_WEST - CET = _misc.DateTime_CET - CEST = _misc.DateTime_CEST - EET = _misc.DateTime_EET - EEST = _misc.DateTime_EEST - MSK = _misc.DateTime_MSK - MSD = _misc.DateTime_MSD - AST = _misc.DateTime_AST - ADT = _misc.DateTime_ADT - EST = _misc.DateTime_EST - EDT = _misc.DateTime_EDT - CST = _misc.DateTime_CST - CDT = _misc.DateTime_CDT - MST = _misc.DateTime_MST - MDT = _misc.DateTime_MDT - PST = _misc.DateTime_PST - PDT = _misc.DateTime_PDT - HST = _misc.DateTime_HST - AKST = _misc.DateTime_AKST - AKDT = _misc.DateTime_AKDT - A_WST = _misc.DateTime_A_WST - A_CST = _misc.DateTime_A_CST - A_EST = _misc.DateTime_A_EST - A_ESST = _misc.DateTime_A_ESST - UTC = _misc.DateTime_UTC - Gregorian = _misc.DateTime_Gregorian - Julian = _misc.DateTime_Julian - Gr_Unknown = _misc.DateTime_Gr_Unknown - Gr_Standard = _misc.DateTime_Gr_Standard - Gr_Alaska = _misc.DateTime_Gr_Alaska - Gr_Albania = _misc.DateTime_Gr_Albania - Gr_Austria = _misc.DateTime_Gr_Austria - Gr_Austria_Brixen = _misc.DateTime_Gr_Austria_Brixen - Gr_Austria_Salzburg = _misc.DateTime_Gr_Austria_Salzburg - Gr_Austria_Tyrol = _misc.DateTime_Gr_Austria_Tyrol - Gr_Austria_Carinthia = _misc.DateTime_Gr_Austria_Carinthia - Gr_Austria_Styria = _misc.DateTime_Gr_Austria_Styria - Gr_Belgium = _misc.DateTime_Gr_Belgium - Gr_Bulgaria = _misc.DateTime_Gr_Bulgaria - Gr_Bulgaria_1 = _misc.DateTime_Gr_Bulgaria_1 - Gr_Bulgaria_2 = _misc.DateTime_Gr_Bulgaria_2 - Gr_Bulgaria_3 = _misc.DateTime_Gr_Bulgaria_3 - Gr_Canada = _misc.DateTime_Gr_Canada - Gr_China = _misc.DateTime_Gr_China - Gr_China_1 = _misc.DateTime_Gr_China_1 - Gr_China_2 = _misc.DateTime_Gr_China_2 - Gr_Czechoslovakia = _misc.DateTime_Gr_Czechoslovakia - Gr_Denmark = _misc.DateTime_Gr_Denmark - Gr_Egypt = _misc.DateTime_Gr_Egypt - Gr_Estonia = _misc.DateTime_Gr_Estonia - Gr_Finland = _misc.DateTime_Gr_Finland - Gr_France = _misc.DateTime_Gr_France - Gr_France_Alsace = _misc.DateTime_Gr_France_Alsace - Gr_France_Lorraine = _misc.DateTime_Gr_France_Lorraine - Gr_France_Strasbourg = _misc.DateTime_Gr_France_Strasbourg - Gr_Germany = _misc.DateTime_Gr_Germany - Gr_Germany_Catholic = _misc.DateTime_Gr_Germany_Catholic - Gr_Germany_Prussia = _misc.DateTime_Gr_Germany_Prussia - Gr_Germany_Protestant = _misc.DateTime_Gr_Germany_Protestant - Gr_GreatBritain = _misc.DateTime_Gr_GreatBritain - Gr_Greece = _misc.DateTime_Gr_Greece - Gr_Hungary = _misc.DateTime_Gr_Hungary - Gr_Ireland = _misc.DateTime_Gr_Ireland - Gr_Italy = _misc.DateTime_Gr_Italy - Gr_Japan = _misc.DateTime_Gr_Japan - Gr_Japan_1 = _misc.DateTime_Gr_Japan_1 - Gr_Japan_2 = _misc.DateTime_Gr_Japan_2 - Gr_Japan_3 = _misc.DateTime_Gr_Japan_3 - Gr_Latvia = _misc.DateTime_Gr_Latvia - Gr_Lithuania = _misc.DateTime_Gr_Lithuania - Gr_Luxemburg = _misc.DateTime_Gr_Luxemburg - Gr_Netherlands = _misc.DateTime_Gr_Netherlands - Gr_Netherlands_Groningen = _misc.DateTime_Gr_Netherlands_Groningen - Gr_Netherlands_Gelderland = _misc.DateTime_Gr_Netherlands_Gelderland - Gr_Netherlands_Utrecht = _misc.DateTime_Gr_Netherlands_Utrecht - Gr_Netherlands_Friesland = _misc.DateTime_Gr_Netherlands_Friesland - Gr_Norway = _misc.DateTime_Gr_Norway - Gr_Poland = _misc.DateTime_Gr_Poland - Gr_Portugal = _misc.DateTime_Gr_Portugal - Gr_Romania = _misc.DateTime_Gr_Romania - Gr_Russia = _misc.DateTime_Gr_Russia - Gr_Scotland = _misc.DateTime_Gr_Scotland - Gr_Spain = _misc.DateTime_Gr_Spain - Gr_Sweden = _misc.DateTime_Gr_Sweden - Gr_Switzerland = _misc.DateTime_Gr_Switzerland - Gr_Switzerland_Catholic = _misc.DateTime_Gr_Switzerland_Catholic - Gr_Switzerland_Protestant = _misc.DateTime_Gr_Switzerland_Protestant - Gr_Turkey = _misc.DateTime_Gr_Turkey - Gr_USA = _misc.DateTime_Gr_USA - Gr_Wales = _misc.DateTime_Gr_Wales - Gr_Yugoslavia = _misc.DateTime_Gr_Yugoslavia - Country_Unknown = _misc.DateTime_Country_Unknown - Country_Default = _misc.DateTime_Country_Default - Country_WesternEurope_Start = _misc.DateTime_Country_WesternEurope_Start - Country_EEC = _misc.DateTime_Country_EEC - France = _misc.DateTime_France - Germany = _misc.DateTime_Germany - UK = _misc.DateTime_UK - Country_WesternEurope_End = _misc.DateTime_Country_WesternEurope_End - Russia = _misc.DateTime_Russia - USA = _misc.DateTime_USA - Jan = _misc.DateTime_Jan - Feb = _misc.DateTime_Feb - Mar = _misc.DateTime_Mar - Apr = _misc.DateTime_Apr - May = _misc.DateTime_May - Jun = _misc.DateTime_Jun - Jul = _misc.DateTime_Jul - Aug = _misc.DateTime_Aug - Sep = _misc.DateTime_Sep - Oct = _misc.DateTime_Oct - Nov = _misc.DateTime_Nov - Dec = _misc.DateTime_Dec - Inv_Month = _misc.DateTime_Inv_Month - Sun = _misc.DateTime_Sun - Mon = _misc.DateTime_Mon - Tue = _misc.DateTime_Tue - Wed = _misc.DateTime_Wed - Thu = _misc.DateTime_Thu - Fri = _misc.DateTime_Fri - Sat = _misc.DateTime_Sat - Inv_WeekDay = _misc.DateTime_Inv_WeekDay - Inv_Year = _misc.DateTime_Inv_Year - Name_Full = _misc.DateTime_Name_Full - Name_Abbr = _misc.DateTime_Name_Abbr - Default_First = _misc.DateTime_Default_First - Monday_First = _misc.DateTime_Monday_First - Sunday_First = _misc.DateTime_Sunday_First - def SetCountry(*args, **kwargs): - """DateTime.SetCountry(int country)""" - return _misc.DateTime_SetCountry(*args, **kwargs) - - SetCountry = staticmethod(SetCountry) - def GetCountry(*args, **kwargs): - """DateTime.GetCountry() -> int""" - return _misc.DateTime_GetCountry(*args, **kwargs) - - GetCountry = staticmethod(GetCountry) - def IsWestEuropeanCountry(*args, **kwargs): - """DateTime.IsWestEuropeanCountry(int country=Country_Default) -> bool""" - return _misc.DateTime_IsWestEuropeanCountry(*args, **kwargs) - - IsWestEuropeanCountry = staticmethod(IsWestEuropeanCountry) - def GetCurrentYear(*args, **kwargs): - """DateTime.GetCurrentYear(int cal=Gregorian) -> int""" - return _misc.DateTime_GetCurrentYear(*args, **kwargs) - - GetCurrentYear = staticmethod(GetCurrentYear) - def ConvertYearToBC(*args, **kwargs): - """DateTime.ConvertYearToBC(int year) -> int""" - return _misc.DateTime_ConvertYearToBC(*args, **kwargs) - - ConvertYearToBC = staticmethod(ConvertYearToBC) - def GetCurrentMonth(*args, **kwargs): - """DateTime.GetCurrentMonth(int cal=Gregorian) -> int""" - return _misc.DateTime_GetCurrentMonth(*args, **kwargs) - - GetCurrentMonth = staticmethod(GetCurrentMonth) - def IsLeapYear(*args, **kwargs): - """DateTime.IsLeapYear(int year=Inv_Year, int cal=Gregorian) -> bool""" - return _misc.DateTime_IsLeapYear(*args, **kwargs) - - IsLeapYear = staticmethod(IsLeapYear) - def GetCentury(*args, **kwargs): - """DateTime.GetCentury(int year=Inv_Year) -> int""" - return _misc.DateTime_GetCentury(*args, **kwargs) - - GetCentury = staticmethod(GetCentury) - def GetNumberOfDaysinYear(*args, **kwargs): - """DateTime.GetNumberOfDaysinYear(int year, int cal=Gregorian) -> int""" - return _misc.DateTime_GetNumberOfDaysinYear(*args, **kwargs) - - GetNumberOfDaysinYear = staticmethod(GetNumberOfDaysinYear) - def GetNumberOfDaysInMonth(*args, **kwargs): - """DateTime.GetNumberOfDaysInMonth(int month, int year=Inv_Year, int cal=Gregorian) -> int""" - return _misc.DateTime_GetNumberOfDaysInMonth(*args, **kwargs) - - GetNumberOfDaysInMonth = staticmethod(GetNumberOfDaysInMonth) - def GetMonthName(*args, **kwargs): - """DateTime.GetMonthName(int month, int flags=Name_Full) -> String""" - return _misc.DateTime_GetMonthName(*args, **kwargs) - - GetMonthName = staticmethod(GetMonthName) - def GetWeekDayName(*args, **kwargs): - """DateTime.GetWeekDayName(int weekday, int flags=Name_Full) -> String""" - return _misc.DateTime_GetWeekDayName(*args, **kwargs) - - GetWeekDayName = staticmethod(GetWeekDayName) - def GetAmPmStrings(*args, **kwargs): - """ - GetAmPmStrings() -> (am, pm) - - Get the AM and PM strings in the current locale (may be empty) - """ - return _misc.DateTime_GetAmPmStrings(*args, **kwargs) - - GetAmPmStrings = staticmethod(GetAmPmStrings) - def IsDSTApplicable(*args, **kwargs): - """DateTime.IsDSTApplicable(int year=Inv_Year, int country=Country_Default) -> bool""" - return _misc.DateTime_IsDSTApplicable(*args, **kwargs) - - IsDSTApplicable = staticmethod(IsDSTApplicable) - def GetBeginDST(*args, **kwargs): - """DateTime.GetBeginDST(int year=Inv_Year, int country=Country_Default) -> DateTime""" - return _misc.DateTime_GetBeginDST(*args, **kwargs) - - GetBeginDST = staticmethod(GetBeginDST) - def GetEndDST(*args, **kwargs): - """DateTime.GetEndDST(int year=Inv_Year, int country=Country_Default) -> DateTime""" - return _misc.DateTime_GetEndDST(*args, **kwargs) - - GetEndDST = staticmethod(GetEndDST) - def Now(*args, **kwargs): - """DateTime.Now() -> DateTime""" - return _misc.DateTime_Now(*args, **kwargs) - - Now = staticmethod(Now) - def UNow(*args, **kwargs): - """DateTime.UNow() -> DateTime""" - return _misc.DateTime_UNow(*args, **kwargs) - - UNow = staticmethod(UNow) - def Today(*args, **kwargs): - """DateTime.Today() -> DateTime""" - return _misc.DateTime_Today(*args, **kwargs) - - Today = staticmethod(Today) - def __init__(self, *args, **kwargs): - """__init__(self) -> DateTime""" - newobj = _misc.new_DateTime(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_misc.delete_DateTime): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def SetToCurrent(*args, **kwargs): - """SetToCurrent(self) -> DateTime""" - return _misc.DateTime_SetToCurrent(*args, **kwargs) - - def SetTimeT(*args, **kwargs): - """SetTimeT(self, time_t timet) -> DateTime""" - return _misc.DateTime_SetTimeT(*args, **kwargs) - - def SetJDN(*args, **kwargs): - """SetJDN(self, double jdn) -> DateTime""" - return _misc.DateTime_SetJDN(*args, **kwargs) - - def SetHMS(*args, **kwargs): - """SetHMS(self, int hour, int minute=0, int second=0, int millisec=0) -> DateTime""" - return _misc.DateTime_SetHMS(*args, **kwargs) - - def Set(*args, **kwargs): - """ - Set(self, int day, int month=Inv_Month, int year=Inv_Year, int hour=0, - int minute=0, int second=0, int millisec=0) -> DateTime - """ - return _misc.DateTime_Set(*args, **kwargs) - - def ResetTime(*args, **kwargs): - """ResetTime(self) -> DateTime""" - return _misc.DateTime_ResetTime(*args, **kwargs) - - def SetYear(*args, **kwargs): - """SetYear(self, int year) -> DateTime""" - return _misc.DateTime_SetYear(*args, **kwargs) - - def SetMonth(*args, **kwargs): - """SetMonth(self, int month) -> DateTime""" - return _misc.DateTime_SetMonth(*args, **kwargs) - - def SetDay(*args, **kwargs): - """SetDay(self, int day) -> DateTime""" - return _misc.DateTime_SetDay(*args, **kwargs) - - def SetHour(*args, **kwargs): - """SetHour(self, int hour) -> DateTime""" - return _misc.DateTime_SetHour(*args, **kwargs) - - def SetMinute(*args, **kwargs): - """SetMinute(self, int minute) -> DateTime""" - return _misc.DateTime_SetMinute(*args, **kwargs) - - def SetSecond(*args, **kwargs): - """SetSecond(self, int second) -> DateTime""" - return _misc.DateTime_SetSecond(*args, **kwargs) - - def SetMillisecond(*args, **kwargs): - """SetMillisecond(self, int millisecond) -> DateTime""" - return _misc.DateTime_SetMillisecond(*args, **kwargs) - - def SetToWeekDayInSameWeek(*args, **kwargs): - """SetToWeekDayInSameWeek(self, int weekday, int flags=Monday_First) -> DateTime""" - return _misc.DateTime_SetToWeekDayInSameWeek(*args, **kwargs) - - def GetWeekDayInSameWeek(*args, **kwargs): - """GetWeekDayInSameWeek(self, int weekday, int flags=Monday_First) -> DateTime""" - return _misc.DateTime_GetWeekDayInSameWeek(*args, **kwargs) - - def SetToNextWeekDay(*args, **kwargs): - """SetToNextWeekDay(self, int weekday) -> DateTime""" - return _misc.DateTime_SetToNextWeekDay(*args, **kwargs) - - def GetNextWeekDay(*args, **kwargs): - """GetNextWeekDay(self, int weekday) -> DateTime""" - return _misc.DateTime_GetNextWeekDay(*args, **kwargs) - - def SetToPrevWeekDay(*args, **kwargs): - """SetToPrevWeekDay(self, int weekday) -> DateTime""" - return _misc.DateTime_SetToPrevWeekDay(*args, **kwargs) - - def GetPrevWeekDay(*args, **kwargs): - """GetPrevWeekDay(self, int weekday) -> DateTime""" - return _misc.DateTime_GetPrevWeekDay(*args, **kwargs) - - def SetToWeekDay(*args, **kwargs): - """SetToWeekDay(self, int weekday, int n=1, int month=Inv_Month, int year=Inv_Year) -> bool""" - return _misc.DateTime_SetToWeekDay(*args, **kwargs) - - def SetToLastWeekDay(*args, **kwargs): - """SetToLastWeekDay(self, int weekday, int month=Inv_Month, int year=Inv_Year) -> bool""" - return _misc.DateTime_SetToLastWeekDay(*args, **kwargs) - - def GetLastWeekDay(*args, **kwargs): - """GetLastWeekDay(self, int weekday, int month=Inv_Month, int year=Inv_Year) -> DateTime""" - return _misc.DateTime_GetLastWeekDay(*args, **kwargs) - - def SetToTheWeek(*args, **kwargs): - """SetToTheWeek(self, int numWeek, int weekday=Mon, int flags=Monday_First) -> bool""" - return _misc.DateTime_SetToTheWeek(*args, **kwargs) - - def GetWeek(*args, **kwargs): - """GetWeek(self, int numWeek, int weekday=Mon, int flags=Monday_First) -> DateTime""" - return _misc.DateTime_GetWeek(*args, **kwargs) - - def SetToLastMonthDay(*args, **kwargs): - """SetToLastMonthDay(self, int month=Inv_Month, int year=Inv_Year) -> DateTime""" - return _misc.DateTime_SetToLastMonthDay(*args, **kwargs) - - def GetLastMonthDay(*args, **kwargs): - """GetLastMonthDay(self, int month=Inv_Month, int year=Inv_Year) -> DateTime""" - return _misc.DateTime_GetLastMonthDay(*args, **kwargs) - - def SetToYearDay(*args, **kwargs): - """SetToYearDay(self, int yday) -> DateTime""" - return _misc.DateTime_SetToYearDay(*args, **kwargs) - - def GetYearDay(*args, **kwargs): - """GetYearDay(self, int yday) -> DateTime""" - return _misc.DateTime_GetYearDay(*args, **kwargs) - - def GetJulianDayNumber(*args, **kwargs): - """GetJulianDayNumber(self) -> double""" - return _misc.DateTime_GetJulianDayNumber(*args, **kwargs) - - def GetJDN(*args, **kwargs): - """GetJDN(self) -> double""" - return _misc.DateTime_GetJDN(*args, **kwargs) - - def GetModifiedJulianDayNumber(*args, **kwargs): - """GetModifiedJulianDayNumber(self) -> double""" - return _misc.DateTime_GetModifiedJulianDayNumber(*args, **kwargs) - - def GetMJD(*args, **kwargs): - """GetMJD(self) -> double""" - return _misc.DateTime_GetMJD(*args, **kwargs) - - def GetRataDie(*args, **kwargs): - """GetRataDie(self) -> double""" - return _misc.DateTime_GetRataDie(*args, **kwargs) - - def ToTimezone(*args, **kwargs): - """ToTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime""" - return _misc.DateTime_ToTimezone(*args, **kwargs) - - def MakeTimezone(*args, **kwargs): - """MakeTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime""" - return _misc.DateTime_MakeTimezone(*args, **kwargs) - - def ToGMT(*args, **kwargs): - """ToGMT(self, bool noDST=False) -> DateTime""" - return _misc.DateTime_ToGMT(*args, **kwargs) - - def MakeGMT(*args, **kwargs): - """MakeGMT(self, bool noDST=False) -> DateTime""" - return _misc.DateTime_MakeGMT(*args, **kwargs) - - def IsDST(*args, **kwargs): - """IsDST(self, int country=Country_Default) -> int""" - return _misc.DateTime_IsDST(*args, **kwargs) - - def IsValid(*args, **kwargs): - """IsValid(self) -> bool""" - return _misc.DateTime_IsValid(*args, **kwargs) - - Ok = IsValid - def __nonzero__(self): return self.Ok() - def GetTicks(*args, **kwargs): - """GetTicks(self) -> time_t""" - return _misc.DateTime_GetTicks(*args, **kwargs) - - def GetYear(*args, **kwargs): - """GetYear(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" - return _misc.DateTime_GetYear(*args, **kwargs) - - def GetMonth(*args, **kwargs): - """GetMonth(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" - return _misc.DateTime_GetMonth(*args, **kwargs) - - def GetDay(*args, **kwargs): - """GetDay(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" - return _misc.DateTime_GetDay(*args, **kwargs) - - def GetWeekDay(*args, **kwargs): - """GetWeekDay(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" - return _misc.DateTime_GetWeekDay(*args, **kwargs) - - def GetHour(*args, **kwargs): - """GetHour(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" - return _misc.DateTime_GetHour(*args, **kwargs) - - def GetMinute(*args, **kwargs): - """GetMinute(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" - return _misc.DateTime_GetMinute(*args, **kwargs) - - def GetSecond(*args, **kwargs): - """GetSecond(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" - return _misc.DateTime_GetSecond(*args, **kwargs) - - def GetMillisecond(*args, **kwargs): - """GetMillisecond(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" - return _misc.DateTime_GetMillisecond(*args, **kwargs) - - def GetDayOfYear(*args, **kwargs): - """GetDayOfYear(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" - return _misc.DateTime_GetDayOfYear(*args, **kwargs) - - def GetWeekOfYear(*args, **kwargs): - """GetWeekOfYear(self, int flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" - return _misc.DateTime_GetWeekOfYear(*args, **kwargs) - - def GetWeekOfMonth(*args, **kwargs): - """GetWeekOfMonth(self, int flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" - return _misc.DateTime_GetWeekOfMonth(*args, **kwargs) - - def IsWorkDay(*args, **kwargs): - """IsWorkDay(self, int country=Country_Default) -> bool""" - return _misc.DateTime_IsWorkDay(*args, **kwargs) - - def IsEqualTo(*args, **kwargs): - """IsEqualTo(self, DateTime datetime) -> bool""" - return _misc.DateTime_IsEqualTo(*args, **kwargs) - - def IsEarlierThan(*args, **kwargs): - """IsEarlierThan(self, DateTime datetime) -> bool""" - return _misc.DateTime_IsEarlierThan(*args, **kwargs) - - def IsLaterThan(*args, **kwargs): - """IsLaterThan(self, DateTime datetime) -> bool""" - return _misc.DateTime_IsLaterThan(*args, **kwargs) - - def IsStrictlyBetween(*args, **kwargs): - """IsStrictlyBetween(self, DateTime t1, DateTime t2) -> bool""" - return _misc.DateTime_IsStrictlyBetween(*args, **kwargs) - - def IsBetween(*args, **kwargs): - """IsBetween(self, DateTime t1, DateTime t2) -> bool""" - return _misc.DateTime_IsBetween(*args, **kwargs) - - def IsSameDate(*args, **kwargs): - """IsSameDate(self, DateTime dt) -> bool""" - return _misc.DateTime_IsSameDate(*args, **kwargs) - - def IsSameTime(*args, **kwargs): - """IsSameTime(self, DateTime dt) -> bool""" - return _misc.DateTime_IsSameTime(*args, **kwargs) - - def IsEqualUpTo(*args, **kwargs): - """IsEqualUpTo(self, DateTime dt, TimeSpan ts) -> bool""" - return _misc.DateTime_IsEqualUpTo(*args, **kwargs) - - def AddTS(*args, **kwargs): - """AddTS(self, TimeSpan diff) -> DateTime""" - return _misc.DateTime_AddTS(*args, **kwargs) - - def AddDS(*args, **kwargs): - """AddDS(self, DateSpan diff) -> DateTime""" - return _misc.DateTime_AddDS(*args, **kwargs) - - def SubtractTS(*args, **kwargs): - """SubtractTS(self, TimeSpan diff) -> DateTime""" - return _misc.DateTime_SubtractTS(*args, **kwargs) - - def SubtractDS(*args, **kwargs): - """SubtractDS(self, DateSpan diff) -> DateTime""" - return _misc.DateTime_SubtractDS(*args, **kwargs) - - def Subtract(*args, **kwargs): - """Subtract(self, DateTime dt) -> TimeSpan""" - return _misc.DateTime_Subtract(*args, **kwargs) - - def __iadd__(*args): - """ - __iadd__(self, TimeSpan diff) -> DateTime - __iadd__(self, DateSpan diff) -> DateTime - """ - return _misc.DateTime___iadd__(*args) - - def __isub__(*args): - """ - __isub__(self, TimeSpan diff) -> DateTime - __isub__(self, DateSpan diff) -> DateTime - """ - return _misc.DateTime___isub__(*args) - - def __add__(*args): - """ - __add__(self, TimeSpan other) -> DateTime - __add__(self, DateSpan other) -> DateTime - """ - return _misc.DateTime___add__(*args) - - def __sub__(*args): - """ - __sub__(self, DateTime other) -> TimeSpan - __sub__(self, TimeSpan other) -> DateTime - __sub__(self, DateSpan other) -> DateTime - """ - return _misc.DateTime___sub__(*args) - - def __lt__(*args): - """__lt__(self, DateTime other) -> bool""" - return _misc.DateTime___lt__(*args) - - def __le__(*args): - """__le__(self, DateTime other) -> bool""" - return _misc.DateTime___le__(*args) - - def __gt__(*args): - """__gt__(self, DateTime other) -> bool""" - return _misc.DateTime___gt__(*args) - - def __ge__(*args): - """__ge__(self, DateTime other) -> bool""" - return _misc.DateTime___ge__(*args) - - def __eq__(*args): - """__eq__(self, DateTime other) -> bool""" - return _misc.DateTime___eq__(*args) - - def __ne__(*args): - """__ne__(self, DateTime other) -> bool""" - return _misc.DateTime___ne__(*args) - - def ParseRfc822Date(*args, **kwargs): - """ParseRfc822Date(self, String date) -> int""" - return _misc.DateTime_ParseRfc822Date(*args, **kwargs) - - def ParseFormat(*args, **kwargs): - """ParseFormat(self, String date, String format=DateFormatStr, DateTime dateDef=DefaultDateTime) -> int""" - return _misc.DateTime_ParseFormat(*args, **kwargs) - - def ParseDateTime(*args, **kwargs): - """ParseDateTime(self, String datetime) -> int""" - return _misc.DateTime_ParseDateTime(*args, **kwargs) - - def ParseDate(*args, **kwargs): - """ParseDate(self, String date) -> int""" - return _misc.DateTime_ParseDate(*args, **kwargs) - - def ParseTime(*args, **kwargs): - """ParseTime(self, String time) -> int""" - return _misc.DateTime_ParseTime(*args, **kwargs) - - def Format(*args, **kwargs): - """Format(self, String format=DateFormatStr, wxDateTime::TimeZone tz=LOCAL_TZ) -> String""" - return _misc.DateTime_Format(*args, **kwargs) - - def FormatDate(*args, **kwargs): - """FormatDate(self) -> String""" - return _misc.DateTime_FormatDate(*args, **kwargs) - - def FormatTime(*args, **kwargs): - """FormatTime(self) -> String""" - return _misc.DateTime_FormatTime(*args, **kwargs) - - def FormatISODate(*args, **kwargs): - """FormatISODate(self) -> String""" - return _misc.DateTime_FormatISODate(*args, **kwargs) - - def FormatISOTime(*args, **kwargs): - """FormatISOTime(self) -> String""" - return _misc.DateTime_FormatISOTime(*args, **kwargs) - - def __repr__(self): - if self.IsValid(): - return '' % ( self.Format(), self.this) - else: - return '' % self.this - def __str__(self): - if self.IsValid(): - return self.Format() - else: - return "INVALID DateTime" - - -class DateTimePtr(DateTime): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = DateTime -_misc.DateTime_swigregister(DateTimePtr) -DateFormatStr = cvar.DateFormatStr -TimeSpanFormatStr = cvar.TimeSpanFormatStr - -def DateTime_SetCountry(*args, **kwargs): - """DateTime_SetCountry(int country)""" - return _misc.DateTime_SetCountry(*args, **kwargs) - -def DateTime_GetCountry(*args, **kwargs): - """DateTime_GetCountry() -> int""" - return _misc.DateTime_GetCountry(*args, **kwargs) - -def DateTime_IsWestEuropeanCountry(*args, **kwargs): - """DateTime_IsWestEuropeanCountry(int country=Country_Default) -> bool""" - return _misc.DateTime_IsWestEuropeanCountry(*args, **kwargs) - -def DateTime_GetCurrentYear(*args, **kwargs): - """DateTime_GetCurrentYear(int cal=Gregorian) -> int""" - return _misc.DateTime_GetCurrentYear(*args, **kwargs) - -def DateTime_ConvertYearToBC(*args, **kwargs): - """DateTime_ConvertYearToBC(int year) -> int""" - return _misc.DateTime_ConvertYearToBC(*args, **kwargs) - -def DateTime_GetCurrentMonth(*args, **kwargs): - """DateTime_GetCurrentMonth(int cal=Gregorian) -> int""" - return _misc.DateTime_GetCurrentMonth(*args, **kwargs) - -def DateTime_IsLeapYear(*args, **kwargs): - """DateTime_IsLeapYear(int year=Inv_Year, int cal=Gregorian) -> bool""" - return _misc.DateTime_IsLeapYear(*args, **kwargs) - -def DateTime_GetCentury(*args, **kwargs): - """DateTime_GetCentury(int year=Inv_Year) -> int""" - return _misc.DateTime_GetCentury(*args, **kwargs) - -def DateTime_GetNumberOfDaysinYear(*args, **kwargs): - """DateTime_GetNumberOfDaysinYear(int year, int cal=Gregorian) -> int""" - return _misc.DateTime_GetNumberOfDaysinYear(*args, **kwargs) - -def DateTime_GetNumberOfDaysInMonth(*args, **kwargs): - """DateTime_GetNumberOfDaysInMonth(int month, int year=Inv_Year, int cal=Gregorian) -> int""" - return _misc.DateTime_GetNumberOfDaysInMonth(*args, **kwargs) - -def DateTime_GetMonthName(*args, **kwargs): - """DateTime_GetMonthName(int month, int flags=Name_Full) -> String""" - return _misc.DateTime_GetMonthName(*args, **kwargs) - -def DateTime_GetWeekDayName(*args, **kwargs): - """DateTime_GetWeekDayName(int weekday, int flags=Name_Full) -> String""" - return _misc.DateTime_GetWeekDayName(*args, **kwargs) - -def DateTime_GetAmPmStrings(*args, **kwargs): - """ - GetAmPmStrings() -> (am, pm) - - Get the AM and PM strings in the current locale (may be empty) - """ - return _misc.DateTime_GetAmPmStrings(*args, **kwargs) - -def DateTime_IsDSTApplicable(*args, **kwargs): - """DateTime_IsDSTApplicable(int year=Inv_Year, int country=Country_Default) -> bool""" - return _misc.DateTime_IsDSTApplicable(*args, **kwargs) - -def DateTime_GetBeginDST(*args, **kwargs): - """DateTime_GetBeginDST(int year=Inv_Year, int country=Country_Default) -> DateTime""" - return _misc.DateTime_GetBeginDST(*args, **kwargs) - -def DateTime_GetEndDST(*args, **kwargs): - """DateTime_GetEndDST(int year=Inv_Year, int country=Country_Default) -> DateTime""" - return _misc.DateTime_GetEndDST(*args, **kwargs) - -def DateTime_Now(*args, **kwargs): - """DateTime_Now() -> DateTime""" - return _misc.DateTime_Now(*args, **kwargs) - -def DateTime_UNow(*args, **kwargs): - """DateTime_UNow() -> DateTime""" - return _misc.DateTime_UNow(*args, **kwargs) - -def DateTime_Today(*args, **kwargs): - """DateTime_Today() -> DateTime""" - return _misc.DateTime_Today(*args, **kwargs) - -def DateTimeFromTimeT(*args, **kwargs): - """DateTimeFromTimeT(time_t timet) -> DateTime""" - val = _misc.new_DateTimeFromTimeT(*args, **kwargs) - val.thisown = 1 - return val - -def DateTimeFromJDN(*args, **kwargs): - """DateTimeFromJDN(double jdn) -> DateTime""" - val = _misc.new_DateTimeFromJDN(*args, **kwargs) - val.thisown = 1 - return val - -def DateTimeFromHMS(*args, **kwargs): - """DateTimeFromHMS(int hour, int minute=0, int second=0, int millisec=0) -> DateTime""" - val = _misc.new_DateTimeFromHMS(*args, **kwargs) - val.thisown = 1 - return val - -def DateTimeFromDMY(*args, **kwargs): - """ - DateTimeFromDMY(int day, int month=Inv_Month, int year=Inv_Year, int hour=0, - int minute=0, int second=0, int millisec=0) -> DateTime - """ - val = _misc.new_DateTimeFromDMY(*args, **kwargs) - val.thisown = 1 - return val - -class TimeSpan(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxTimeSpan instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def Seconds(*args, **kwargs): - """TimeSpan.Seconds(long sec) -> TimeSpan""" - return _misc.TimeSpan_Seconds(*args, **kwargs) - - Seconds = staticmethod(Seconds) - def Second(*args, **kwargs): - """TimeSpan.Second() -> TimeSpan""" - return _misc.TimeSpan_Second(*args, **kwargs) - - Second = staticmethod(Second) - def Minutes(*args, **kwargs): - """TimeSpan.Minutes(long min) -> TimeSpan""" - return _misc.TimeSpan_Minutes(*args, **kwargs) - - Minutes = staticmethod(Minutes) - def Minute(*args, **kwargs): - """TimeSpan.Minute() -> TimeSpan""" - return _misc.TimeSpan_Minute(*args, **kwargs) - - Minute = staticmethod(Minute) - def Hours(*args, **kwargs): - """TimeSpan.Hours(long hours) -> TimeSpan""" - return _misc.TimeSpan_Hours(*args, **kwargs) - - Hours = staticmethod(Hours) - def Hour(*args, **kwargs): - """TimeSpan.Hour() -> TimeSpan""" - return _misc.TimeSpan_Hour(*args, **kwargs) - - Hour = staticmethod(Hour) - def Days(*args, **kwargs): - """TimeSpan.Days(long days) -> TimeSpan""" - return _misc.TimeSpan_Days(*args, **kwargs) - - Days = staticmethod(Days) - def Day(*args, **kwargs): - """TimeSpan.Day() -> TimeSpan""" - return _misc.TimeSpan_Day(*args, **kwargs) - - Day = staticmethod(Day) - def Weeks(*args, **kwargs): - """TimeSpan.Weeks(long days) -> TimeSpan""" - return _misc.TimeSpan_Weeks(*args, **kwargs) - - Weeks = staticmethod(Weeks) - def Week(*args, **kwargs): - """TimeSpan.Week() -> TimeSpan""" - return _misc.TimeSpan_Week(*args, **kwargs) - - Week = staticmethod(Week) - def __init__(self, *args, **kwargs): - """__init__(self, long hours=0, long minutes=0, long seconds=0, long milliseconds=0) -> TimeSpan""" - newobj = _misc.new_TimeSpan(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_misc.delete_TimeSpan): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Add(*args, **kwargs): - """Add(self, TimeSpan diff) -> TimeSpan""" - return _misc.TimeSpan_Add(*args, **kwargs) - - def Subtract(*args, **kwargs): - """Subtract(self, TimeSpan diff) -> TimeSpan""" - return _misc.TimeSpan_Subtract(*args, **kwargs) - - def Multiply(*args, **kwargs): - """Multiply(self, int n) -> TimeSpan""" - return _misc.TimeSpan_Multiply(*args, **kwargs) - - def Neg(*args, **kwargs): - """Neg(self) -> TimeSpan""" - return _misc.TimeSpan_Neg(*args, **kwargs) - - def Abs(*args, **kwargs): - """Abs(self) -> TimeSpan""" - return _misc.TimeSpan_Abs(*args, **kwargs) - - def __iadd__(*args, **kwargs): - """__iadd__(self, TimeSpan diff) -> TimeSpan""" - return _misc.TimeSpan___iadd__(*args, **kwargs) - - def __isub__(*args, **kwargs): - """__isub__(self, TimeSpan diff) -> TimeSpan""" - return _misc.TimeSpan___isub__(*args, **kwargs) - - def __imul__(*args, **kwargs): - """__imul__(self, int n) -> TimeSpan""" - return _misc.TimeSpan___imul__(*args, **kwargs) - - def __neg__(*args, **kwargs): - """__neg__(self) -> TimeSpan""" - return _misc.TimeSpan___neg__(*args, **kwargs) - - def __add__(*args, **kwargs): - """__add__(self, TimeSpan other) -> TimeSpan""" - return _misc.TimeSpan___add__(*args, **kwargs) - - def __sub__(*args, **kwargs): - """__sub__(self, TimeSpan other) -> TimeSpan""" - return _misc.TimeSpan___sub__(*args, **kwargs) - - def __mul__(*args, **kwargs): - """__mul__(self, int n) -> TimeSpan""" - return _misc.TimeSpan___mul__(*args, **kwargs) - - def __rmul__(*args, **kwargs): - """__rmul__(self, int n) -> TimeSpan""" - return _misc.TimeSpan___rmul__(*args, **kwargs) - - def __lt__(*args, **kwargs): - """__lt__(self, TimeSpan other) -> bool""" - return _misc.TimeSpan___lt__(*args, **kwargs) - - def __le__(*args, **kwargs): - """__le__(self, TimeSpan other) -> bool""" - return _misc.TimeSpan___le__(*args, **kwargs) - - def __gt__(*args, **kwargs): - """__gt__(self, TimeSpan other) -> bool""" - return _misc.TimeSpan___gt__(*args, **kwargs) - - def __ge__(*args, **kwargs): - """__ge__(self, TimeSpan other) -> bool""" - return _misc.TimeSpan___ge__(*args, **kwargs) - - def __eq__(*args, **kwargs): - """__eq__(self, TimeSpan other) -> bool""" - return _misc.TimeSpan___eq__(*args, **kwargs) - - def __ne__(*args, **kwargs): - """__ne__(self, TimeSpan other) -> bool""" - return _misc.TimeSpan___ne__(*args, **kwargs) - - def IsNull(*args, **kwargs): - """IsNull(self) -> bool""" - return _misc.TimeSpan_IsNull(*args, **kwargs) - - def IsPositive(*args, **kwargs): - """IsPositive(self) -> bool""" - return _misc.TimeSpan_IsPositive(*args, **kwargs) - - def IsNegative(*args, **kwargs): - """IsNegative(self) -> bool""" - return _misc.TimeSpan_IsNegative(*args, **kwargs) - - def IsEqualTo(*args, **kwargs): - """IsEqualTo(self, TimeSpan ts) -> bool""" - return _misc.TimeSpan_IsEqualTo(*args, **kwargs) - - def IsLongerThan(*args, **kwargs): - """IsLongerThan(self, TimeSpan ts) -> bool""" - return _misc.TimeSpan_IsLongerThan(*args, **kwargs) - - def IsShorterThan(*args, **kwargs): - """IsShorterThan(self, TimeSpan t) -> bool""" - return _misc.TimeSpan_IsShorterThan(*args, **kwargs) - - def GetWeeks(*args, **kwargs): - """GetWeeks(self) -> int""" - return _misc.TimeSpan_GetWeeks(*args, **kwargs) - - def GetDays(*args, **kwargs): - """GetDays(self) -> int""" - return _misc.TimeSpan_GetDays(*args, **kwargs) - - def GetHours(*args, **kwargs): - """GetHours(self) -> int""" - return _misc.TimeSpan_GetHours(*args, **kwargs) - - def GetMinutes(*args, **kwargs): - """GetMinutes(self) -> int""" - return _misc.TimeSpan_GetMinutes(*args, **kwargs) - - def GetSeconds(*args, **kwargs): - """GetSeconds(self) -> wxLongLong""" - return _misc.TimeSpan_GetSeconds(*args, **kwargs) - - def GetMilliseconds(*args, **kwargs): - """GetMilliseconds(self) -> wxLongLong""" - return _misc.TimeSpan_GetMilliseconds(*args, **kwargs) - - def Format(*args, **kwargs): - """Format(self, String format=TimeSpanFormatStr) -> String""" - return _misc.TimeSpan_Format(*args, **kwargs) - - def __repr__(self): - return '' % ( self.Format(), self.this) - def __str__(self): - return self.Format() - - -class TimeSpanPtr(TimeSpan): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = TimeSpan -_misc.TimeSpan_swigregister(TimeSpanPtr) - -def TimeSpan_Seconds(*args, **kwargs): - """TimeSpan_Seconds(long sec) -> TimeSpan""" - return _misc.TimeSpan_Seconds(*args, **kwargs) - -def TimeSpan_Second(*args, **kwargs): - """TimeSpan_Second() -> TimeSpan""" - return _misc.TimeSpan_Second(*args, **kwargs) - -def TimeSpan_Minutes(*args, **kwargs): - """TimeSpan_Minutes(long min) -> TimeSpan""" - return _misc.TimeSpan_Minutes(*args, **kwargs) - -def TimeSpan_Minute(*args, **kwargs): - """TimeSpan_Minute() -> TimeSpan""" - return _misc.TimeSpan_Minute(*args, **kwargs) - -def TimeSpan_Hours(*args, **kwargs): - """TimeSpan_Hours(long hours) -> TimeSpan""" - return _misc.TimeSpan_Hours(*args, **kwargs) - -def TimeSpan_Hour(*args, **kwargs): - """TimeSpan_Hour() -> TimeSpan""" - return _misc.TimeSpan_Hour(*args, **kwargs) - -def TimeSpan_Days(*args, **kwargs): - """TimeSpan_Days(long days) -> TimeSpan""" - return _misc.TimeSpan_Days(*args, **kwargs) - -def TimeSpan_Day(*args, **kwargs): - """TimeSpan_Day() -> TimeSpan""" - return _misc.TimeSpan_Day(*args, **kwargs) - -def TimeSpan_Weeks(*args, **kwargs): - """TimeSpan_Weeks(long days) -> TimeSpan""" - return _misc.TimeSpan_Weeks(*args, **kwargs) - -def TimeSpan_Week(*args, **kwargs): - """TimeSpan_Week() -> TimeSpan""" - return _misc.TimeSpan_Week(*args, **kwargs) - -class DateSpan(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxDateSpan instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int years=0, int months=0, int weeks=0, int days=0) -> DateSpan""" - newobj = _misc.new_DateSpan(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_misc.delete_DateSpan): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Days(*args, **kwargs): - """DateSpan.Days(int days) -> DateSpan""" - return _misc.DateSpan_Days(*args, **kwargs) - - Days = staticmethod(Days) - def Day(*args, **kwargs): - """DateSpan.Day() -> DateSpan""" - return _misc.DateSpan_Day(*args, **kwargs) - - Day = staticmethod(Day) - def Weeks(*args, **kwargs): - """DateSpan.Weeks(int weeks) -> DateSpan""" - return _misc.DateSpan_Weeks(*args, **kwargs) - - Weeks = staticmethod(Weeks) - def Week(*args, **kwargs): - """DateSpan.Week() -> DateSpan""" - return _misc.DateSpan_Week(*args, **kwargs) - - Week = staticmethod(Week) - def Months(*args, **kwargs): - """DateSpan.Months(int mon) -> DateSpan""" - return _misc.DateSpan_Months(*args, **kwargs) - - Months = staticmethod(Months) - def Month(*args, **kwargs): - """DateSpan.Month() -> DateSpan""" - return _misc.DateSpan_Month(*args, **kwargs) - - Month = staticmethod(Month) - def Years(*args, **kwargs): - """DateSpan.Years(int years) -> DateSpan""" - return _misc.DateSpan_Years(*args, **kwargs) - - Years = staticmethod(Years) - def Year(*args, **kwargs): - """DateSpan.Year() -> DateSpan""" - return _misc.DateSpan_Year(*args, **kwargs) - - Year = staticmethod(Year) - def SetYears(*args, **kwargs): - """SetYears(self, int n) -> DateSpan""" - return _misc.DateSpan_SetYears(*args, **kwargs) - - def SetMonths(*args, **kwargs): - """SetMonths(self, int n) -> DateSpan""" - return _misc.DateSpan_SetMonths(*args, **kwargs) - - def SetWeeks(*args, **kwargs): - """SetWeeks(self, int n) -> DateSpan""" - return _misc.DateSpan_SetWeeks(*args, **kwargs) - - def SetDays(*args, **kwargs): - """SetDays(self, int n) -> DateSpan""" - return _misc.DateSpan_SetDays(*args, **kwargs) - - def GetYears(*args, **kwargs): - """GetYears(self) -> int""" - return _misc.DateSpan_GetYears(*args, **kwargs) - - def GetMonths(*args, **kwargs): - """GetMonths(self) -> int""" - return _misc.DateSpan_GetMonths(*args, **kwargs) - - def GetWeeks(*args, **kwargs): - """GetWeeks(self) -> int""" - return _misc.DateSpan_GetWeeks(*args, **kwargs) - - def GetDays(*args, **kwargs): - """GetDays(self) -> int""" - return _misc.DateSpan_GetDays(*args, **kwargs) - - def GetTotalDays(*args, **kwargs): - """GetTotalDays(self) -> int""" - return _misc.DateSpan_GetTotalDays(*args, **kwargs) - - def Add(*args, **kwargs): - """Add(self, DateSpan other) -> DateSpan""" - return _misc.DateSpan_Add(*args, **kwargs) - - def Subtract(*args, **kwargs): - """Subtract(self, DateSpan other) -> DateSpan""" - return _misc.DateSpan_Subtract(*args, **kwargs) - - def Neg(*args, **kwargs): - """Neg(self) -> DateSpan""" - return _misc.DateSpan_Neg(*args, **kwargs) - - def Multiply(*args, **kwargs): - """Multiply(self, int factor) -> DateSpan""" - return _misc.DateSpan_Multiply(*args, **kwargs) - - def __iadd__(*args, **kwargs): - """__iadd__(self, DateSpan other) -> DateSpan""" - return _misc.DateSpan___iadd__(*args, **kwargs) - - def __isub__(*args, **kwargs): - """__isub__(self, DateSpan other) -> DateSpan""" - return _misc.DateSpan___isub__(*args, **kwargs) - - def __neg__(*args, **kwargs): - """__neg__(self) -> DateSpan""" - return _misc.DateSpan___neg__(*args, **kwargs) - - def __imul__(*args, **kwargs): - """__imul__(self, int factor) -> DateSpan""" - return _misc.DateSpan___imul__(*args, **kwargs) - - def __add__(*args, **kwargs): - """__add__(self, DateSpan other) -> DateSpan""" - return _misc.DateSpan___add__(*args, **kwargs) - - def __sub__(*args, **kwargs): - """__sub__(self, DateSpan other) -> DateSpan""" - return _misc.DateSpan___sub__(*args, **kwargs) - - def __mul__(*args, **kwargs): - """__mul__(self, int n) -> DateSpan""" - return _misc.DateSpan___mul__(*args, **kwargs) - - def __rmul__(*args, **kwargs): - """__rmul__(self, int n) -> DateSpan""" - return _misc.DateSpan___rmul__(*args, **kwargs) - - def __eq__(*args, **kwargs): - """__eq__(self, DateSpan other) -> bool""" - return _misc.DateSpan___eq__(*args, **kwargs) - - def __ne__(*args, **kwargs): - """__ne__(self, DateSpan other) -> bool""" - return _misc.DateSpan___ne__(*args, **kwargs) - - -class DateSpanPtr(DateSpan): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = DateSpan -_misc.DateSpan_swigregister(DateSpanPtr) - -def DateSpan_Days(*args, **kwargs): - """DateSpan_Days(int days) -> DateSpan""" - return _misc.DateSpan_Days(*args, **kwargs) - -def DateSpan_Day(*args, **kwargs): - """DateSpan_Day() -> DateSpan""" - return _misc.DateSpan_Day(*args, **kwargs) - -def DateSpan_Weeks(*args, **kwargs): - """DateSpan_Weeks(int weeks) -> DateSpan""" - return _misc.DateSpan_Weeks(*args, **kwargs) - -def DateSpan_Week(*args, **kwargs): - """DateSpan_Week() -> DateSpan""" - return _misc.DateSpan_Week(*args, **kwargs) - -def DateSpan_Months(*args, **kwargs): - """DateSpan_Months(int mon) -> DateSpan""" - return _misc.DateSpan_Months(*args, **kwargs) - -def DateSpan_Month(*args, **kwargs): - """DateSpan_Month() -> DateSpan""" - return _misc.DateSpan_Month(*args, **kwargs) - -def DateSpan_Years(*args, **kwargs): - """DateSpan_Years(int years) -> DateSpan""" - return _misc.DateSpan_Years(*args, **kwargs) - -def DateSpan_Year(*args, **kwargs): - """DateSpan_Year() -> DateSpan""" - return _misc.DateSpan_Year(*args, **kwargs) - - -def GetLocalTime(*args, **kwargs): - """GetLocalTime() -> long""" - return _misc.GetLocalTime(*args, **kwargs) - -def GetUTCTime(*args, **kwargs): - """GetUTCTime() -> long""" - return _misc.GetUTCTime(*args, **kwargs) - -def GetCurrentTime(*args, **kwargs): - """GetCurrentTime() -> long""" - return _misc.GetCurrentTime(*args, **kwargs) - -def GetLocalTimeMillis(*args, **kwargs): - """GetLocalTimeMillis() -> wxLongLong""" - return _misc.GetLocalTimeMillis(*args, **kwargs) -#--------------------------------------------------------------------------- - -DF_INVALID = _misc.DF_INVALID -DF_TEXT = _misc.DF_TEXT -DF_BITMAP = _misc.DF_BITMAP -DF_METAFILE = _misc.DF_METAFILE -DF_SYLK = _misc.DF_SYLK -DF_DIF = _misc.DF_DIF -DF_TIFF = _misc.DF_TIFF -DF_OEMTEXT = _misc.DF_OEMTEXT -DF_DIB = _misc.DF_DIB -DF_PALETTE = _misc.DF_PALETTE -DF_PENDATA = _misc.DF_PENDATA -DF_RIFF = _misc.DF_RIFF -DF_WAVE = _misc.DF_WAVE -DF_UNICODETEXT = _misc.DF_UNICODETEXT -DF_ENHMETAFILE = _misc.DF_ENHMETAFILE -DF_FILENAME = _misc.DF_FILENAME -DF_LOCALE = _misc.DF_LOCALE -DF_PRIVATE = _misc.DF_PRIVATE -DF_HTML = _misc.DF_HTML -DF_MAX = _misc.DF_MAX -class DataFormat(object): - """ - A wx.DataFormat is an encapsulation of a platform-specific format - handle which is used by the system for the clipboard and drag and - drop operations. The applications are usually only interested in, - for example, pasting data from the clipboard only if the data is - in a format the program understands. A data format is is used to - uniquely identify this format. - - On the system level, a data format is usually just a number - (CLIPFORMAT under Windows or Atom under X11, for example). - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxDataFormat instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, int type) -> DataFormat - - Constructs a data format object for one of the standard data - formats or an empty data object (use SetType or SetId later in - this case) - """ - newobj = _misc.new_DataFormat(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_misc.delete_DataFormat): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def __eq__(*args): - """ - __eq__(self, int format) -> bool - __eq__(self, DataFormat format) -> bool - """ - return _misc.DataFormat___eq__(*args) - - def __ne__(*args): - """ - __ne__(self, int format) -> bool - __ne__(self, DataFormat format) -> bool - """ - return _misc.DataFormat___ne__(*args) - - def SetType(*args, **kwargs): - """ - SetType(self, int format) - - Sets the format to the given value, which should be one of wx.DF_XXX constants. - """ - return _misc.DataFormat_SetType(*args, **kwargs) - - def GetType(*args, **kwargs): - """ - GetType(self) -> int - - Returns the platform-specific number identifying the format. - """ - return _misc.DataFormat_GetType(*args, **kwargs) - - def GetId(*args, **kwargs): - """ - GetId(self) -> String - - Returns the name of a custom format (this function will fail for a standard format). - """ - return _misc.DataFormat_GetId(*args, **kwargs) - - def SetId(*args, **kwargs): - """ - SetId(self, String format) - - Sets the format to be the custom format identified by the given name. - """ - return _misc.DataFormat_SetId(*args, **kwargs) - - -class DataFormatPtr(DataFormat): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = DataFormat -_misc.DataFormat_swigregister(DataFormatPtr) -DefaultDateTime = cvar.DefaultDateTime - -def CustomDataFormat(*args, **kwargs): - """ - CustomDataFormat(String format) -> DataFormat - - Constructs a data format object for a custom format identified by its name. - """ - val = _misc.new_CustomDataFormat(*args, **kwargs) - val.thisown = 1 - return val - -class DataObject(object): - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - Get = _misc.DataObject_Get - Set = _misc.DataObject_Set - Both = _misc.DataObject_Both - def __del__(self, destroy=_misc.delete_DataObject): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def GetPreferredFormat(*args, **kwargs): - """GetPreferredFormat(self, int dir=Get) -> DataFormat""" - return _misc.DataObject_GetPreferredFormat(*args, **kwargs) - - def GetFormatCount(*args, **kwargs): - """GetFormatCount(self, int dir=Get) -> size_t""" - return _misc.DataObject_GetFormatCount(*args, **kwargs) - - def IsSupported(*args, **kwargs): - """IsSupported(self, DataFormat format, int dir=Get) -> bool""" - return _misc.DataObject_IsSupported(*args, **kwargs) - - def GetDataSize(*args, **kwargs): - """GetDataSize(self, DataFormat format) -> size_t""" - return _misc.DataObject_GetDataSize(*args, **kwargs) - - def GetAllFormats(*args, **kwargs): - """GetAllFormats(self, DataFormat formats, int dir=Get)""" - return _misc.DataObject_GetAllFormats(*args, **kwargs) - - def GetDataHere(*args, **kwargs): - """GetDataHere(self, DataFormat format, void buf) -> bool""" - return _misc.DataObject_GetDataHere(*args, **kwargs) - - def SetData(*args, **kwargs): - """SetData(self, DataFormat format, size_t len, void buf) -> bool""" - return _misc.DataObject_SetData(*args, **kwargs) - - -class DataObjectPtr(DataObject): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = DataObject -_misc.DataObject_swigregister(DataObjectPtr) -FormatInvalid = cvar.FormatInvalid - -class DataObjectSimple(DataObject): - def __repr__(self): - return "<%s.%s; proxy of C++ wxDataObjectSimple instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, DataFormat format=FormatInvalid) -> DataObjectSimple""" - newobj = _misc.new_DataObjectSimple(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetFormat(*args, **kwargs): - """GetFormat(self) -> DataFormat""" - return _misc.DataObjectSimple_GetFormat(*args, **kwargs) - - def SetFormat(*args, **kwargs): - """SetFormat(self, DataFormat format)""" - return _misc.DataObjectSimple_SetFormat(*args, **kwargs) - - -class DataObjectSimplePtr(DataObjectSimple): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = DataObjectSimple -_misc.DataObjectSimple_swigregister(DataObjectSimplePtr) - -class PyDataObjectSimple(DataObjectSimple): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyDataObjectSimple instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, DataFormat format=FormatInvalid) -> PyDataObjectSimple""" - newobj = _misc.new_PyDataObjectSimple(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setCallbackInfo(self, PyDataObjectSimple) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _misc.PyDataObjectSimple__setCallbackInfo(*args, **kwargs) - - -class PyDataObjectSimplePtr(PyDataObjectSimple): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PyDataObjectSimple -_misc.PyDataObjectSimple_swigregister(PyDataObjectSimplePtr) - -class DataObjectComposite(DataObject): - def __repr__(self): - return "<%s.%s; proxy of C++ wxDataObjectComposite instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> DataObjectComposite""" - newobj = _misc.new_DataObjectComposite(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def Add(*args, **kwargs): - """Add(self, DataObjectSimple dataObject, int preferred=False)""" - return _misc.DataObjectComposite_Add(*args, **kwargs) - - -class DataObjectCompositePtr(DataObjectComposite): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = DataObjectComposite -_misc.DataObjectComposite_swigregister(DataObjectCompositePtr) - -class TextDataObject(DataObjectSimple): - def __repr__(self): - return "<%s.%s; proxy of C++ wxTextDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, String text=EmptyString) -> TextDataObject""" - newobj = _misc.new_TextDataObject(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetTextLength(*args, **kwargs): - """GetTextLength(self) -> size_t""" - return _misc.TextDataObject_GetTextLength(*args, **kwargs) - - def GetText(*args, **kwargs): - """GetText(self) -> String""" - return _misc.TextDataObject_GetText(*args, **kwargs) - - def SetText(*args, **kwargs): - """SetText(self, String text)""" - return _misc.TextDataObject_SetText(*args, **kwargs) - - -class TextDataObjectPtr(TextDataObject): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = TextDataObject -_misc.TextDataObject_swigregister(TextDataObjectPtr) - -class PyTextDataObject(TextDataObject): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyTextDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, String text=EmptyString) -> PyTextDataObject""" - newobj = _misc.new_PyTextDataObject(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setCallbackInfo(self, PyTextDataObject) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _misc.PyTextDataObject__setCallbackInfo(*args, **kwargs) - - -class PyTextDataObjectPtr(PyTextDataObject): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PyTextDataObject -_misc.PyTextDataObject_swigregister(PyTextDataObjectPtr) - -class BitmapDataObject(DataObjectSimple): - def __repr__(self): - return "<%s.%s; proxy of C++ wxBitmapDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Bitmap bitmap=wxNullBitmap) -> BitmapDataObject""" - newobj = _misc.new_BitmapDataObject(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetBitmap(*args, **kwargs): - """GetBitmap(self) -> Bitmap""" - return _misc.BitmapDataObject_GetBitmap(*args, **kwargs) - - def SetBitmap(*args, **kwargs): - """SetBitmap(self, Bitmap bitmap)""" - return _misc.BitmapDataObject_SetBitmap(*args, **kwargs) - - -class BitmapDataObjectPtr(BitmapDataObject): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = BitmapDataObject -_misc.BitmapDataObject_swigregister(BitmapDataObjectPtr) - -class PyBitmapDataObject(BitmapDataObject): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyBitmapDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Bitmap bitmap=wxNullBitmap) -> PyBitmapDataObject""" - newobj = _misc.new_PyBitmapDataObject(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setCallbackInfo(self, PyBitmapDataObject) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _misc.PyBitmapDataObject__setCallbackInfo(*args, **kwargs) - - -class PyBitmapDataObjectPtr(PyBitmapDataObject): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PyBitmapDataObject -_misc.PyBitmapDataObject_swigregister(PyBitmapDataObjectPtr) - -class FileDataObject(DataObjectSimple): - def __repr__(self): - return "<%s.%s; proxy of C++ wxFileDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> FileDataObject""" - newobj = _misc.new_FileDataObject(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetFilenames(*args, **kwargs): - """GetFilenames(self) -> wxArrayString""" - return _misc.FileDataObject_GetFilenames(*args, **kwargs) - - def AddFile(*args, **kwargs): - """AddFile(self, String filename)""" - return _misc.FileDataObject_AddFile(*args, **kwargs) - - -class FileDataObjectPtr(FileDataObject): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = FileDataObject -_misc.FileDataObject_swigregister(FileDataObjectPtr) - -class CustomDataObject(DataObjectSimple): - def __repr__(self): - return "<%s.%s; proxy of C++ wxCustomDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, DataFormat format=FormatInvalid) -> CustomDataObject""" - newobj = _misc.new_CustomDataObject(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def TakeData(*args, **kwargs): - """TakeData(self, PyObject data)""" - return _misc.CustomDataObject_TakeData(*args, **kwargs) - - def SetData(*args, **kwargs): - """SetData(self, PyObject data) -> bool""" - return _misc.CustomDataObject_SetData(*args, **kwargs) - - def GetSize(*args, **kwargs): - """GetSize(self) -> size_t""" - return _misc.CustomDataObject_GetSize(*args, **kwargs) - - def GetData(*args, **kwargs): - """GetData(self) -> PyObject""" - return _misc.CustomDataObject_GetData(*args, **kwargs) - - -class CustomDataObjectPtr(CustomDataObject): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = CustomDataObject -_misc.CustomDataObject_swigregister(CustomDataObjectPtr) - -class URLDataObject(DataObjectComposite): - def __repr__(self): - return "<%s.%s; proxy of C++ wxURLDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> URLDataObject""" - newobj = _misc.new_URLDataObject(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetURL(*args, **kwargs): - """GetURL(self) -> String""" - return _misc.URLDataObject_GetURL(*args, **kwargs) - - def SetURL(*args, **kwargs): - """SetURL(self, String url)""" - return _misc.URLDataObject_SetURL(*args, **kwargs) - - -class URLDataObjectPtr(URLDataObject): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = URLDataObject -_misc.URLDataObject_swigregister(URLDataObjectPtr) - -class MetafileDataObject(DataObjectSimple): - def __repr__(self): - return "<%s.%s; proxy of C++ wxMetafileDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> MetafileDataObject""" - newobj = _misc.new_MetafileDataObject(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def SetMetafile(*args, **kwargs): - """SetMetafile(self, wxMetafile metafile)""" - return _misc.MetafileDataObject_SetMetafile(*args, **kwargs) - - def GetMetafile(*args, **kwargs): - """GetMetafile(self) -> wxMetafile""" - return _misc.MetafileDataObject_GetMetafile(*args, **kwargs) - - -class MetafileDataObjectPtr(MetafileDataObject): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = MetafileDataObject -_misc.MetafileDataObject_swigregister(MetafileDataObjectPtr) - -#--------------------------------------------------------------------------- - -Drag_CopyOnly = _misc.Drag_CopyOnly -Drag_AllowMove = _misc.Drag_AllowMove -Drag_DefaultMove = _misc.Drag_DefaultMove -DragError = _misc.DragError -DragNone = _misc.DragNone -DragCopy = _misc.DragCopy -DragMove = _misc.DragMove -DragLink = _misc.DragLink -DragCancel = _misc.DragCancel - -def IsDragResultOk(*args, **kwargs): - """IsDragResultOk(int res) -> bool""" - return _misc.IsDragResultOk(*args, **kwargs) -class DropSource(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyDropSource instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window win, Cursor copy=wxNullCursor, Cursor move=wxNullCursor, - Cursor none=wxNullCursor) -> DropSource - """ - newobj = _misc.new_DropSource(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)""" - return _misc.DropSource__setCallbackInfo(*args, **kwargs) - - def __del__(self, destroy=_misc.delete_DropSource): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def SetData(*args, **kwargs): - """SetData(self, DataObject data)""" - return _misc.DropSource_SetData(*args, **kwargs) - - def GetDataObject(*args, **kwargs): - """GetDataObject(self) -> DataObject""" - return _misc.DropSource_GetDataObject(*args, **kwargs) - - def SetCursor(*args, **kwargs): - """SetCursor(self, int res, Cursor cursor)""" - return _misc.DropSource_SetCursor(*args, **kwargs) - - def DoDragDrop(*args, **kwargs): - """DoDragDrop(self, int flags=Drag_CopyOnly) -> int""" - return _misc.DropSource_DoDragDrop(*args, **kwargs) - - def base_GiveFeedback(*args, **kwargs): - """base_GiveFeedback(self, int effect) -> bool""" - return _misc.DropSource_base_GiveFeedback(*args, **kwargs) - - -class DropSourcePtr(DropSource): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = DropSource -_misc.DropSource_swigregister(DropSourcePtr) - -class DropTarget(object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyDropTarget instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, DataObject dataObject=None) -> DropTarget""" - newobj = _misc.new_DropTarget(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setCallbackInfo(self, DropTarget) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _misc.DropTarget__setCallbackInfo(*args, **kwargs) - - def __del__(self, destroy=_misc.delete_DropTarget): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def GetDataObject(*args, **kwargs): - """GetDataObject(self) -> DataObject""" - return _misc.DropTarget_GetDataObject(*args, **kwargs) - - def SetDataObject(*args, **kwargs): - """SetDataObject(self, DataObject dataObject)""" - return _misc.DropTarget_SetDataObject(*args, **kwargs) - - def base_OnEnter(*args, **kwargs): - """base_OnEnter(self, int x, int y, int def) -> int""" - return _misc.DropTarget_base_OnEnter(*args, **kwargs) - - def base_OnDragOver(*args, **kwargs): - """base_OnDragOver(self, int x, int y, int def) -> int""" - return _misc.DropTarget_base_OnDragOver(*args, **kwargs) - - def base_OnLeave(*args, **kwargs): - """base_OnLeave(self)""" - return _misc.DropTarget_base_OnLeave(*args, **kwargs) - - def base_OnDrop(*args, **kwargs): - """base_OnDrop(self, int x, int y) -> bool""" - return _misc.DropTarget_base_OnDrop(*args, **kwargs) - - def GetData(*args, **kwargs): - """GetData(self) -> bool""" - return _misc.DropTarget_GetData(*args, **kwargs) - - -class DropTargetPtr(DropTarget): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = DropTarget -_misc.DropTarget_swigregister(DropTargetPtr) - -PyDropTarget = DropTarget -class TextDropTarget(DropTarget): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyTextDropTarget instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> TextDropTarget""" - newobj = _misc.new_TextDropTarget(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setCallbackInfo(self, TextDropTarget) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _misc.TextDropTarget__setCallbackInfo(*args, **kwargs) - - def base_OnEnter(*args, **kwargs): - """base_OnEnter(self, int x, int y, int def) -> int""" - return _misc.TextDropTarget_base_OnEnter(*args, **kwargs) - - def base_OnDragOver(*args, **kwargs): - """base_OnDragOver(self, int x, int y, int def) -> int""" - return _misc.TextDropTarget_base_OnDragOver(*args, **kwargs) - - def base_OnLeave(*args, **kwargs): - """base_OnLeave(self)""" - return _misc.TextDropTarget_base_OnLeave(*args, **kwargs) - - def base_OnDrop(*args, **kwargs): - """base_OnDrop(self, int x, int y) -> bool""" - return _misc.TextDropTarget_base_OnDrop(*args, **kwargs) - - def base_OnData(*args, **kwargs): - """base_OnData(self, int x, int y, int def) -> int""" - return _misc.TextDropTarget_base_OnData(*args, **kwargs) - - -class TextDropTargetPtr(TextDropTarget): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = TextDropTarget -_misc.TextDropTarget_swigregister(TextDropTargetPtr) - -class FileDropTarget(DropTarget): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyFileDropTarget instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> FileDropTarget""" - newobj = _misc.new_FileDropTarget(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setCallbackInfo(self, FileDropTarget) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _misc.FileDropTarget__setCallbackInfo(*args, **kwargs) - - def base_OnEnter(*args, **kwargs): - """base_OnEnter(self, int x, int y, int def) -> int""" - return _misc.FileDropTarget_base_OnEnter(*args, **kwargs) - - def base_OnDragOver(*args, **kwargs): - """base_OnDragOver(self, int x, int y, int def) -> int""" - return _misc.FileDropTarget_base_OnDragOver(*args, **kwargs) - - def base_OnLeave(*args, **kwargs): - """base_OnLeave(self)""" - return _misc.FileDropTarget_base_OnLeave(*args, **kwargs) - - def base_OnDrop(*args, **kwargs): - """base_OnDrop(self, int x, int y) -> bool""" - return _misc.FileDropTarget_base_OnDrop(*args, **kwargs) - - def base_OnData(*args, **kwargs): - """base_OnData(self, int x, int y, int def) -> int""" - return _misc.FileDropTarget_base_OnData(*args, **kwargs) - - -class FileDropTargetPtr(FileDropTarget): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = FileDropTarget -_misc.FileDropTarget_swigregister(FileDropTargetPtr) - -#--------------------------------------------------------------------------- - -class Clipboard(core.Object): - """ - wx.Clipboard represents the system clipboard and provides methods to copy data - to or paste data from it. Normally, you should only use wx.TheClipboard which - is a reference to a global wx.Clipboard instance. - - Call wx.TheClipboard.Open to get ownership of the clipboard. If this operation - returns True, you now own the clipboard. Call wx.TheClipboard.SetData to put - data on the clipboard, or wx.TheClipboard.GetData to retrieve data from the - clipboard. Call wx.TheClipboard.Close to close the clipboard and relinquish - ownership. You should keep the clipboard open only momentarily. - - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxClipboard instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> Clipboard""" - newobj = _misc.new_Clipboard(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_misc.delete_Clipboard): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Open(*args, **kwargs): - """ - Open(self) -> bool - - Call this function to open the clipboard before calling SetData - and GetData. Call Close when you have finished with the clipboard. - You should keep the clipboard open for only a very short time. - Returns true on success. - """ - return _misc.Clipboard_Open(*args, **kwargs) - - def Close(*args, **kwargs): - """ - Close(self) - - Closes the clipboard. - """ - return _misc.Clipboard_Close(*args, **kwargs) - - def IsOpened(*args, **kwargs): - """ - IsOpened(self) -> bool - - Query whether the clipboard is opened - """ - return _misc.Clipboard_IsOpened(*args, **kwargs) - - def AddData(*args, **kwargs): - """ - AddData(self, DataObject data) -> bool - - Call this function to add the data object to the clipboard. You - may call this function repeatedly after having cleared the clipboard. - After this function has been called, the clipboard owns the data, so - do not delete the data explicitly. - """ - return _misc.Clipboard_AddData(*args, **kwargs) - - def SetData(*args, **kwargs): - """ - SetData(self, DataObject data) -> bool - - Set the clipboard data, this is the same as Clear followed by AddData. - """ - return _misc.Clipboard_SetData(*args, **kwargs) - - def IsSupported(*args, **kwargs): - """ - IsSupported(self, DataFormat format) -> bool - - Returns True if the given format is available in the data object(s) on - the clipboard. - """ - return _misc.Clipboard_IsSupported(*args, **kwargs) - - def GetData(*args, **kwargs): - """ - GetData(self, DataObject data) -> bool - - Call this function to fill data with data on the clipboard, if available - in the required format. Returns true on success. - """ - return _misc.Clipboard_GetData(*args, **kwargs) - - def Clear(*args, **kwargs): - """ - Clear(self) - - Clears data from the clipboard object and also the system's clipboard - if possible. - """ - return _misc.Clipboard_Clear(*args, **kwargs) - - def Flush(*args, **kwargs): - """ - Flush(self) -> bool - - Flushes the clipboard: this means that the data which is currently on - clipboard will stay available even after the application exits (possibly - eating memory), otherwise the clipboard will be emptied on exit. - Returns False if the operation is unsuccesful for any reason. - """ - return _misc.Clipboard_Flush(*args, **kwargs) - - def UsePrimarySelection(*args, **kwargs): - """ - 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. - """ - return _misc.Clipboard_UsePrimarySelection(*args, **kwargs) - - -class ClipboardPtr(Clipboard): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Clipboard -_misc.Clipboard_swigregister(ClipboardPtr) - -class ClipboardLocker(object): - """ - A helpful class for opening the clipboard and automatically closing it when - the locker is destroyed. - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxClipboardLocker instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Clipboard clipboard=None) -> ClipboardLocker - - A helpful class for opening the clipboard and automatically closing it when - the locker is destroyed. - """ - newobj = _misc.new_ClipboardLocker(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_misc.delete_ClipboardLocker): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def __nonzero__(*args, **kwargs): - """ - __nonzero__(self) -> bool - - A ClipboardLocker instance evaluates to True if the clipboard was - successfully opened. - """ - return _misc.ClipboardLocker___nonzero__(*args, **kwargs) - - -class ClipboardLockerPtr(ClipboardLocker): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ClipboardLocker -_misc.ClipboardLocker_swigregister(ClipboardLockerPtr) -TheClipboard = cvar.TheClipboard - -#--------------------------------------------------------------------------- - -class VideoMode(object): - """A simple struct containing video mode parameters for a display""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxVideoMode instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, int width=0, int height=0, int depth=0, int freq=0) -> VideoMode - - A simple struct containing video mode parameters for a display - """ - newobj = _misc.new_VideoMode(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_misc.delete_VideoMode): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Matches(*args, **kwargs): - """ - Matches(self, VideoMode other) -> bool - - Returns true if this mode matches the other one in the sense that - all non zero fields of the other mode have the same value in this - one (except for refresh which is allowed to have a greater value) - """ - return _misc.VideoMode_Matches(*args, **kwargs) - - def GetWidth(*args, **kwargs): - """ - GetWidth(self) -> int - - Returns the screen width in pixels (e.g. 640*480), 0 means - unspecified - """ - return _misc.VideoMode_GetWidth(*args, **kwargs) - - def GetHeight(*args, **kwargs): - """ - GetHeight(self) -> int - - Returns the screen width in pixels (e.g. 640*480), 0 means - unspecified - """ - return _misc.VideoMode_GetHeight(*args, **kwargs) - - def GetDepth(*args, **kwargs): - """ - GetDepth(self) -> int - - Returns the screen's bits per pixel (e.g. 32), 1 is monochrome - and 0 means unspecified/known - """ - return _misc.VideoMode_GetDepth(*args, **kwargs) - - def IsOk(*args, **kwargs): - """ - IsOk(self) -> bool - - returns true if the object has been initialized - """ - return _misc.VideoMode_IsOk(*args, **kwargs) - - def __nonzero__(self): return self.IsOk() - def __eq__(*args, **kwargs): - """__eq__(self, VideoMode other) -> bool""" - return _misc.VideoMode___eq__(*args, **kwargs) - - def __ne__(*args, **kwargs): - """__ne__(self, VideoMode other) -> bool""" - return _misc.VideoMode___ne__(*args, **kwargs) - - w = property(_misc.VideoMode_w_get, _misc.VideoMode_w_set) - h = property(_misc.VideoMode_h_get, _misc.VideoMode_h_set) - bpp = property(_misc.VideoMode_bpp_get, _misc.VideoMode_bpp_set) - refresh = property(_misc.VideoMode_refresh_get, _misc.VideoMode_refresh_set) - -class VideoModePtr(VideoMode): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = VideoMode -_misc.VideoMode_swigregister(VideoModePtr) - -class Display(object): - """Represents a display/monitor attached to the system""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxDisplay instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, size_t index=0) -> Display - - Set up a Display instance with the specified display. The - displays are numbered from 0 to GetCount() - 1, 0 is always the - primary display and the only one which is always supported - """ - newobj = _misc.new_Display(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_misc.delete_Display): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def GetCount(*args, **kwargs): - """ - Display.GetCount() -> size_t - - Return the number of available displays. - """ - return _misc.Display_GetCount(*args, **kwargs) - - GetCount = staticmethod(GetCount) - def GetFromPoint(*args, **kwargs): - """ - Display.GetFromPoint(Point pt) -> int - - Find the display where the given point lies, return wx.NOT_FOUND - if it doesn't belong to any display - """ - return _misc.Display_GetFromPoint(*args, **kwargs) - - GetFromPoint = staticmethod(GetFromPoint) - def GetFromWindow(*args, **kwargs): - """ - Display.GetFromWindow(Window window) -> int - - Find the display where the given window lies, return wx.NOT_FOUND - if it is not shown at all. - """ - return _misc.Display_GetFromWindow(*args, **kwargs) - - GetFromWindow = staticmethod(GetFromWindow) - def IsOk(*args, **kwargs): - """ - IsOk(self) -> bool - - Return true if the object was initialized successfully - """ - return _misc.Display_IsOk(*args, **kwargs) - - def __nonzero__(self): return self.IsOk() - def GetGeometry(*args, **kwargs): - """ - GetGeometry(self) -> Rect - - Returns the bounding rectangle of the display whose index was - passed to the constructor. - """ - return _misc.Display_GetGeometry(*args, **kwargs) - - def GetName(*args, **kwargs): - """ - GetName(self) -> String - - Returns the display's name. A name is not available on all platforms. - """ - return _misc.Display_GetName(*args, **kwargs) - - def IsPrimary(*args, **kwargs): - """ - IsPrimary(self) -> bool - - Returns true if the display is the primary display. The primary - display is the one whose index is 0. - """ - return _misc.Display_IsPrimary(*args, **kwargs) - - def GetModes(*args, **kwargs): - """ - GetModes(VideoMode mode=DefaultVideoMode) -> [videoMode...] - - Enumerate all video modes supported by this display matching the - given one (in the sense of VideoMode.Match()). - - As any mode matches the default value of the argument and there - is always at least one video mode supported by display, the - returned array is only empty for the default value of the - argument if this function is not supported at all on this - platform. - """ - return _misc.Display_GetModes(*args, **kwargs) - - def GetCurrentMode(*args, **kwargs): - """ - GetCurrentMode(self) -> VideoMode - - Get the current video mode. - """ - return _misc.Display_GetCurrentMode(*args, **kwargs) - - def ChangeMode(*args, **kwargs): - """ - ChangeMode(self, VideoMode mode=DefaultVideoMode) -> bool - - Change current mode, return true if succeeded, false otherwise - """ - return _misc.Display_ChangeMode(*args, **kwargs) - - def ResetMode(*args, **kwargs): - """ - ResetMode(self) - - Restore the default video mode (just a more readable synonym) - """ - return _misc.Display_ResetMode(*args, **kwargs) - - -class DisplayPtr(Display): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Display -_misc.Display_swigregister(DisplayPtr) -DefaultVideoMode = cvar.DefaultVideoMode - -def Display_GetCount(*args, **kwargs): - """ - Display_GetCount() -> size_t - - Return the number of available displays. - """ - return _misc.Display_GetCount(*args, **kwargs) - -def Display_GetFromPoint(*args, **kwargs): - """ - Display_GetFromPoint(Point pt) -> int - - Find the display where the given point lies, return wx.NOT_FOUND - if it doesn't belong to any display - """ - return _misc.Display_GetFromPoint(*args, **kwargs) - -def Display_GetFromWindow(*args, **kwargs): - """ - Display_GetFromWindow(Window window) -> int - - Find the display where the given window lies, return wx.NOT_FOUND - if it is not shown at all. - """ - return _misc.Display_GetFromWindow(*args, **kwargs) - - diff --git a/wxPython/src/msw/misc_wrap.cpp b/wxPython/src/msw/misc_wrap.cpp deleted file mode 100644 index f0a99b844a..0000000000 --- a/wxPython/src/msw/misc_wrap.cpp +++ /dev/null @@ -1,30019 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.22 - * - * This file is not intended to be easily readable and contains a number of - * coding conventions designed to improve portability and efficiency. Do not make - * changes to this file unless you know what you are doing--modify the SWIG - * interface file instead. - * ----------------------------------------------------------------------------- */ - -#define SWIGPYTHON -#define SWIG_NOINCLUDE - -#ifdef __cplusplus -template class SwigValueWrapper { - T *tt; -public: - SwigValueWrapper() : tt(0) { } - SwigValueWrapper(const SwigValueWrapper& rhs) : tt(new T(*rhs.tt)) { } - SwigValueWrapper(const T& t) : tt(new T(t)) { } - ~SwigValueWrapper() { delete tt; } - SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } - operator T&() const { return *tt; } - T *operator&() { return tt; } -private: - SwigValueWrapper& operator=(const SwigValueWrapper& rhs); -}; -#endif - - -#include "Python.h" - -/*************************************************************** -*- c -*- - * python/precommon.swg - * - * Rename all exported symbols from common.swg, to avoid symbol - * clashes if multiple interpreters are included - * - ************************************************************************/ - -#define SWIG_TypeRegister SWIG_Python_TypeRegister -#define SWIG_TypeCheck SWIG_Python_TypeCheck -#define SWIG_TypeCast SWIG_Python_TypeCast -#define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast -#define SWIG_TypeName SWIG_Python_TypeName -#define SWIG_TypeQuery SWIG_Python_TypeQuery -#define SWIG_TypeClientData SWIG_Python_TypeClientData -#define SWIG_PackData SWIG_Python_PackData -#define SWIG_UnpackData SWIG_Python_UnpackData - - -/*********************************************************************** - * common.swg for wxPython - * - * Include only the function prototypes and such from SWIG's common.swg, - * but not the runtime functions themselves. This helps keep the - * wrapper files clean of unnecessary stuff that is in the libpy.c file - * anyway. - * - ************************************************************************/ - -#include - -#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) -# if defined(_MSC_VER) || defined(__GNUC__) -# if defined(STATIC_LINKED) -# define SWIGEXPORT(a) a -# define SWIGIMPORT(a) extern a -# else -# define SWIGEXPORT(a) __declspec(dllexport) a -# define SWIGIMPORT(a) extern a -# endif -# else -# if defined(__BORLANDC__) -# define SWIGEXPORT(a) a _export -# define SWIGIMPORT(a) a _export -# else -# define SWIGEXPORT(a) a -# define SWIGIMPORT(a) a -# endif -# endif -#else -# define SWIGEXPORT(a) a -# define SWIGIMPORT(a) a -#endif - -#ifdef SWIG_GLOBAL -# define SWIGRUNTIME(a) SWIGEXPORT(a) -#else -# define SWIGRUNTIME(a) static a -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -typedef void *(*swig_converter_func)(void *); -typedef struct swig_type_info *(*swig_dycast_func)(void **); - -typedef struct swig_type_info { - const char *name; - swig_converter_func converter; - const char *str; - void *clientdata; - swig_dycast_func dcast; - struct swig_type_info *next; - struct swig_type_info *prev; -} swig_type_info; - - -SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); -SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); -SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); -SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); -SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); -SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); -SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); -SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); -SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); - - -#ifdef __cplusplus -} -#endif - -/*********************************************************************** - * pyrun.swg for wxPython - * - * Include only the function prototypes and such from SWIG's pyrun.swg, - * but not the runtime functions themselves. This helps keep the - * wrapper files clean of unnecessary stuff that is in the libpy.c file - * anyway. - * - ************************************************************************/ - -#include "Python.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define SWIG_PY_INT 1 -#define SWIG_PY_FLOAT 2 -#define SWIG_PY_STRING 3 -#define SWIG_PY_POINTER 4 -#define SWIG_PY_BINARY 5 - -/* Flags for pointer conversion */ - -#define SWIG_POINTER_EXCEPTION 0x1 -#define SWIG_POINTER_DISOWN 0x2 - -/* Exception handling in wrappers */ -#define SWIG_fail goto fail - -/* Constant information structure */ -typedef struct swig_const_info { - int type; - char *name; - long lvalue; - double dvalue; - void *pvalue; - swig_type_info **ptype; -} swig_const_info; - -/* Common SWIG API */ -#define SWIG_ConvertPtr(obj, pp, type, flags) \ - SWIG_Python_ConvertPtr(obj, pp, type, flags) -#define SWIG_NewPointerObj(p, type, flags) \ - SWIG_Python_NewPointerObj(p, type, flags) -#define SWIG_MustGetPtr(p, type, argnum, flags) \ - SWIG_Python_MustGetPtr(p, type, argnum, flags) - -/* Python-specific SWIG API */ -#define SWIG_newvarlink() \ - SWIG_Python_newvarlink() -#define SWIG_addvarlink(p, name, get_attr, set_attr) \ - SWIG_Python_addvarlink(p, name, get_attr, set_attr) -#define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ - SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) -#define SWIG_NewPackedObj(ptr, sz, type) \ - SWIG_Python_NewPackedObj(ptr, sz, type) -#define SWIG_InstallConstants(d, constants) \ - SWIG_Python_InstallConstants(d, constants) - -typedef double (*py_objasdbl_conv)(PyObject *obj); - -SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); -SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); -SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); -SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); -SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); -SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); -SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); -SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); - - -/* Contract support */ - -#define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else - -#ifdef __cplusplus -} -#endif - - -/* -------- TYPES TABLE (BEGIN) -------- */ - -#define SWIGTYPE_p_wxLogChain swig_types[0] -#define SWIGTYPE_p_wxMutexGuiLocker swig_types[1] -#define SWIGTYPE_p_wxMetafile swig_types[2] -#define SWIGTYPE_p_wxFileHistory swig_types[3] -#define SWIGTYPE_p_wxLog swig_types[4] -#define SWIGTYPE_p_wxDateTime__TimeZone swig_types[5] -#define SWIGTYPE_p_wxMenu swig_types[6] -#define SWIGTYPE_p_wxEvent swig_types[7] -#define SWIGTYPE_p_wxConfigBase swig_types[8] -#define SWIGTYPE_p_wxDisplay swig_types[9] -#define SWIGTYPE_p_wxFileType swig_types[10] -#define SWIGTYPE_p_wxLogGui swig_types[11] -#define SWIGTYPE_p_wxFont swig_types[12] -#define SWIGTYPE_p_wxDataFormat swig_types[13] -#define SWIGTYPE_p_wxTimerEvent swig_types[14] -#define SWIGTYPE_p_wxCaret swig_types[15] -#define SWIGTYPE_p_int swig_types[16] -#define SWIGTYPE_p_wxSize swig_types[17] -#define SWIGTYPE_p_wxClipboard swig_types[18] -#define SWIGTYPE_p_wxStopWatch swig_types[19] -#define SWIGTYPE_p_wxDC swig_types[20] -#define SWIGTYPE_p_wxClipboardLocker swig_types[21] -#define SWIGTYPE_p_wxIcon swig_types[22] -#define SWIGTYPE_p_wxLogStderr swig_types[23] -#define SWIGTYPE_p_wxLogTextCtrl swig_types[24] -#define SWIGTYPE_p_wxTextCtrl swig_types[25] -#define SWIGTYPE_p_wxBusyCursor swig_types[26] -#define SWIGTYPE_p_wxPyTextDataObject swig_types[27] -#define SWIGTYPE_p_wxBitmapDataObject swig_types[28] -#define SWIGTYPE_p_wxTextDataObject swig_types[29] -#define SWIGTYPE_p_wxDataObject swig_types[30] -#define SWIGTYPE_p_wxPyBitmapDataObject swig_types[31] -#define SWIGTYPE_p_wxFileDataObject swig_types[32] -#define SWIGTYPE_p_wxCustomDataObject swig_types[33] -#define SWIGTYPE_p_wxURLDataObject swig_types[34] -#define SWIGTYPE_p_wxMetafileDataObject swig_types[35] -#define SWIGTYPE_p_wxSound swig_types[36] -#define SWIGTYPE_p_wxTimerRunner swig_types[37] -#define SWIGTYPE_p_wxLogWindow swig_types[38] -#define SWIGTYPE_p_wxTimeSpan swig_types[39] -#define SWIGTYPE_p_wxArrayString swig_types[40] -#define SWIGTYPE_p_wxWindowDisabler swig_types[41] -#define SWIGTYPE_p_wxToolTip swig_types[42] -#define SWIGTYPE_p_wxDataObjectComposite swig_types[43] -#define SWIGTYPE_p_wxFileConfig swig_types[44] -#define SWIGTYPE_p_wxSystemSettings swig_types[45] -#define SWIGTYPE_p_wxVideoMode swig_types[46] -#define SWIGTYPE_p_wxPyDataObjectSimple swig_types[47] -#define SWIGTYPE_p_wxDataObjectSimple swig_types[48] -#define SWIGTYPE_p_wxEvtHandler swig_types[49] -#define SWIGTYPE_p_wxRect swig_types[50] -#define SWIGTYPE_p_char swig_types[51] -#define SWIGTYPE_p_wxSingleInstanceChecker swig_types[52] -#define SWIGTYPE_p_wxFileTypeInfo swig_types[53] -#define SWIGTYPE_p_wxFrame swig_types[54] -#define SWIGTYPE_p_wxTimer swig_types[55] -#define SWIGTYPE_p_wxMimeTypesManager swig_types[56] -#define SWIGTYPE_p_wxPyArtProvider swig_types[57] -#define SWIGTYPE_p_wxPyTipProvider swig_types[58] -#define SWIGTYPE_p_wxTipProvider swig_types[59] -#define SWIGTYPE_p_wxJoystick swig_types[60] -#define SWIGTYPE_p_wxSystemOptions swig_types[61] -#define SWIGTYPE_p_wxPoint swig_types[62] -#define SWIGTYPE_p_wxJoystickEvent swig_types[63] -#define SWIGTYPE_p_wxCursor swig_types[64] -#define SWIGTYPE_p_wxObject swig_types[65] -#define SWIGTYPE_p_wxOutputStream swig_types[66] -#define SWIGTYPE_p_wxDateTime swig_types[67] -#define SWIGTYPE_p_wxPyDropSource swig_types[68] -#define SWIGTYPE_p_wxWindow swig_types[69] -#define SWIGTYPE_p_wxString swig_types[70] -#define SWIGTYPE_p_wxPyProcess swig_types[71] -#define SWIGTYPE_p_wxBitmap swig_types[72] -#define SWIGTYPE_p_wxConfig swig_types[73] -#define SWIGTYPE_p_wxChar swig_types[74] -#define SWIGTYPE_p_wxBusyInfo swig_types[75] -#define SWIGTYPE_p_wxPyDropTarget swig_types[76] -#define SWIGTYPE_p_wxPyTextDropTarget swig_types[77] -#define SWIGTYPE_p_wxPyFileDropTarget swig_types[78] -#define SWIGTYPE_p_wxProcessEvent swig_types[79] -#define SWIGTYPE_p_wxPyLog swig_types[80] -#define SWIGTYPE_p_wxLogNull swig_types[81] -#define SWIGTYPE_p_wxColour swig_types[82] -#define SWIGTYPE_p_wxByte swig_types[83] -#define SWIGTYPE_p_wxConfigPathChanger swig_types[84] -#define SWIGTYPE_p_wxPyTimer swig_types[85] -#define SWIGTYPE_p_wxDateSpan swig_types[86] -static swig_type_info *swig_types[88]; - -/* -------- TYPES TABLE (END) -------- */ - - -/*----------------------------------------------- - @(target):= _misc.so - ------------------------------------------------*/ -#define SWIG_init init_misc - -#define SWIG_name "_misc" - -/* Auxiliar swig macros */ - -#ifdef __cplusplus -#define SWIGSTATICINLINE(a) static inline a -#define SWIGSTATIC(a) static a -#define swig_new_array(type, size) (new type[(size)]) -#define swig_delete_array(cptr) delete[] cptr -#define swig_const_cast(type,a) const_cast(a) -#define swig_static_cast(type,a) static_cast(a) -#define swig_reinterpret_cast(type,a) reinterpret_cast(a) - -#ifdef HAVE_NUMERIC_CAST -#define swig_numeric_cast(type,a) numeric_cast(a) -#else -#define swig_numeric_cast(type,a) static_cast(a) -#endif - -#else /* C case */ - -#define SWIGSTATICINLINE(a) static a -#define SWIGSTATIC(a) static a -#define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type))) -#define swig_delete_array(cptr) free((char*)cptr) -#define swig_const_cast(type,a) (type)(a) -#define swig_static_cast(type,a) (type)(a) -#define swig_reinterpret_cast(type,a) (type)(a) -#define swig_numeric_cast(type,a) (type)(a) - -#endif /* __cplusplus */ - - -#define SWIG_FromSignedChar PyInt_FromLong -#define SWIG_FromUnsignedChar PyInt_FromLong -#define SWIG_FromShort PyInt_FromLong -#define SWIG_FromUnsignedShort PyInt_FromLong -#define SWIG_FromInt PyInt_FromLong -#define SWIG_FromLong PyInt_FromLong -#define SWIG_FromFloat PyFloat_FromDouble -#define SWIG_FromDouble PyFloat_FromDouble -#define SWIG_FromFloat PyFloat_FromDouble -#define SWIG_FromDouble PyFloat_FromDouble - - -#include "wx/wxPython/wxPython.h" -#include "wx/wxPython/pyclasses.h" -#include "wx/wxPython/pyistream.h" - - - static const wxString wxPyEmptyString(wxEmptyString); - - - -#include - - -SWIGSTATICINLINE(long) -SWIG_CheckLongInRange(long value, const char* type, - long min_value, long max_value) -{ - if (!PyErr_Occurred()) { - if (value < min_value) { - PyObject *err = - PyString_FromFormat("value %ld is less than '%s' minimum %ld", - value, type, min_value); - - PyErr_SetObject(PyExc_OverflowError, err); - Py_DECREF(err); - } else if (value > max_value) { - PyObject *err = - PyString_FromFormat("value %ld is greater than '%s' maximum %ld", - value, type, max_value); - PyErr_SetObject(PyExc_OverflowError, err); - Py_DECREF(err); - } - } - return value; -} - - -SWIGSTATICINLINE(long) -SWIG_AsLong(PyObject * obj) -{ - if (PyNumber_Check(obj)) - return PyInt_AsLong(obj); - else { - PyObject* errmsg = PyString_FromFormat("Expected number, got %s", - obj->ob_type->tp_name); - PyErr_SetObject(PyExc_TypeError, errmsg); - Py_DECREF(errmsg); - return 0; - } -} - - -#if INT_MAX != LONG_MAX -SWIGSTATICINLINE(int) -SWIG_AsInt(PyObject *obj) -{ - return swig_numeric_cast(int, - SWIG_CheckLongInRange(SWIG_AsLong(obj), - "int", INT_MIN, INT_MAX)); -} -#else -#define SWIG_AsInt SWIG_AsLong -#endif - - -SWIGSTATICINLINE(int) -SWIG_CheckInt(PyObject* obj) -{ - SWIG_AsInt(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - - static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr); - static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr); - static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr); - -SWIGSTATICINLINE(int) -SWIG_CheckLong(PyObject* obj) -{ - SWIG_AsLong(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - - -SWIGSTATICINLINE(bool) -SWIG_AsBool(PyObject *obj) -{ - return PyObject_IsTrue(obj) ? true : false; -} - - -SWIGSTATICINLINE(int) -SWIG_CheckBool(PyObject* obj) -{ - SWIG_AsBool(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - - -static PyObject* t_output_helper(PyObject* target, PyObject* o) { - PyObject* o2; - PyObject* o3; - - if (!target) { - target = o; - } else if (target == Py_None) { - Py_DECREF(Py_None); - target = o; - } else { - if (!PyTuple_Check(target)) { - o2 = target; - target = PyTuple_New(1); - PyTuple_SetItem(target, 0, o2); - } - o3 = PyTuple_New(1); - PyTuple_SetItem(o3, 0, o); - - o2 = target; - target = PySequence_Concat(o2, o3); - Py_DECREF(o2); - Py_DECREF(o3); - } - return target; -} - - -SWIGSTATICINLINE(unsigned long) -SWIG_AsUnsignedLong(PyObject * obj) -{ - if (PyLong_Check(obj)) { - return PyLong_AsUnsignedLong(obj); - } else { - long i = SWIG_AsLong(obj); - if ( !PyErr_Occurred() && (i < 0)) { - PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); - } - return i; - } -} - - -SWIGSTATICINLINE(int) -SWIG_CheckUnsignedLong(PyObject* obj) -{ - SWIG_AsUnsignedLong(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - - -SWIGSTATICINLINE(PyObject* ) -SWIG_FromUnsignedLong(unsigned long value) -{ - return (value > LONG_MAX) ? - PyLong_FromUnsignedLong(value) - : PyInt_FromLong(swig_numeric_cast(long,value)); -} - - - bool wxThread_IsMain() { -#ifdef WXP_WITH_THREAD - return wxThread::IsMain(); -#else - return True; -#endif - } - - - int wxCaret_GetBlinkTime() { - return wxCaret::GetBlinkTime(); - } - - void wxCaret_SetBlinkTime(int milliseconds) { - wxCaret::SetBlinkTime(milliseconds); - } - - -#include - - -#ifdef __WXMSW__ -#include -#include -#endif - - - -void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method) -{ -#ifdef __WXMSW__ - - switch (method) - { - case 1: - // This one only partially works. Appears to be an undocumented - // "standard" convention that not all widgets adhear to. For - // example, for some widgets backgrounds or non-client areas may - // not be painted. - ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0); - break; - - case 2: - // This one works much better, except for on XP. On Win2k nearly - // all widgets and their children are captured correctly[**]. On - // XP with Themes activated most native widgets draw only - // partially, if at all. Without themes it works just like on - // Win2k. - // - // ** For example the radio buttons in a wxRadioBox are not its - // children by default, but you can capture it via the panel - // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp. - ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), - PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | - PRF_ERASEBKGND | PRF_OWNED ); - break; - - case 3: - // This one is only defined in the latest SDK and is only - // available on XP. MSDN says it is similar to sending WM_PRINT - // so I expect that it will work similar to the above. Since it - // is avaialble only on XP, it can't be compiled like this and - // will have to be loaded dynamically. - // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break; - - // fall through - - case 4: - // Use PrintWindow if available, or fallback to WM_PRINT - // otherwise. Unfortunately using PrintWindow is even worse than - // WM_PRINT. For most native widgets nothing is drawn to the dc - // at all, with or without Themes. - typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT); - static bool s_triedToLoad = False; - static PrintWindow_t pfnPrintWindow = NULL; - if ( !s_triedToLoad ) - { - - s_triedToLoad = True; - wxDynamicLibrary dllUser32(_T("user32.dll")); - if ( dllUser32.IsLoaded() ) - { - wxLogNull nolog; // Don't report errors here - pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow")); - } - } - if (pfnPrintWindow) - { - printf("Using PrintWindow\n"); - pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); - } - else - { - printf("Using WM_PRINT\n"); - ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), - PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED ); - } - } -#endif -} - - - -#include - - -class wxPyTipProvider : public wxTipProvider { -public: - wxPyTipProvider(size_t currentTip) - : wxTipProvider(currentTip) {} - - DEC_PYCALLBACK_STRING__pure(GetTip); - DEC_PYCALLBACK_STRING_STRING(PreprocessTip); - PYPRIVATE; -}; - -IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip); -IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip); - - -//IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify); - -void wxPyTimer::Notify() { - bool found; - bool blocked = wxPyBeginBlockThreads(); - if ((found = wxPyCBH_findCallback(m_myInst, "Notify"))) - wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); - wxPyEndBlockThreads(blocked); - if (! found) - wxTimer::Notify(); -} -void wxPyTimer::base_Notify() { - wxTimer::Notify(); -} - - - -SWIGSTATICINLINE(PyObject *) -SWIG_FromCharPtr(const char* cptr) -{ - size_t size = cptr ? strlen(cptr) : 0; - if (cptr) { - if (size > INT_MAX) { - return SWIG_NewPointerObj(swig_const_cast(char*,cptr), - SWIG_TypeQuery("char *"), 0); - } else { - return PyString_FromStringAndSize(cptr, swig_numeric_cast(int,size)); - } - } else { - Py_INCREF(Py_None); - return Py_None; - } -} - - -SWIGSTATICINLINE(unsigned long) -SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type, - unsigned long max_value) -{ - if (!PyErr_Occurred()) { - if (value > max_value) { - PyObject *err = - PyString_FromFormat("value %ld is greater than '%s' minimum %ld", - value, type, max_value); - PyErr_SetObject(PyExc_OverflowError, err); - Py_DECREF(err); - } - } - return value; -} - - -#if UINT_MAX != ULONG_MAX -SWIGSTATICINLINE(unsigned int) -SWIG_AsUnsignedInt(PyObject *obj) -{ - return swig_numeric_cast(unsigned int, - SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), - "unsigned int", UINT_MAX)); -} -#else -#define SWIG_AsUnsignedInt SWIG_AsUnsignedLong -#endif - - -SWIGSTATICINLINE(int) -SWIG_CheckUnsignedInt(PyObject* obj) -{ - SWIG_AsUnsignedInt(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - -wxString Log_TimeStamp(){ - wxString msg; - wxLog::TimeStamp(&msg); - return msg; - } -void wxLog_Destroy(wxLog *self){ delete self; } - -// A wxLog class that can be derived from in wxPython -class wxPyLog : public wxLog { -public: - wxPyLog() : wxLog() {} - - virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) { - bool found; - bool blocked = wxPyBeginBlockThreads(); - if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) { - PyObject* s = wx2PyString(szString); - wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t)); - Py_DECREF(s); - } - wxPyEndBlockThreads(blocked); - if (! found) - wxLog::DoLog(level, szString, t); - } - - virtual void DoLogString(const wxChar *szString, time_t t) { - bool found; - bool blocked = wxPyBeginBlockThreads(); - if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) { - PyObject* s = wx2PyString(szString); - wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t)); - Py_DECREF(s); - } - wxPyEndBlockThreads(blocked); - if (! found) - wxLog::DoLogString(szString, t); - } - - PYPRIVATE; -}; - - - - -IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate); - - -#include - - -#if !wxUSE_JOYSTICK && !defined(__WXMSW__) -// A C++ stub class for wxJoystick for platforms that don't have it. -class wxJoystick : public wxObject { -public: - wxJoystick(int joystick = wxJOYSTICK1) { - bool blocked = wxPyBeginBlockThreads(); - PyErr_SetString(PyExc_NotImplementedError, - "wxJoystick is not available on this platform."); - wxPyEndBlockThreads(blocked); - } - wxPoint GetPosition() { return wxPoint(-1,-1); } - int GetZPosition() { return -1; } - int GetButtonState() { return -1; } - int GetPOVPosition() { return -1; } - int GetPOVCTSPosition() { return -1; } - int GetRudderPosition() { return -1; } - int GetUPosition() { return -1; } - int GetVPosition() { return -1; } - int GetMovementThreshold() { return -1; } - void SetMovementThreshold(int threshold) {} - - bool IsOk(void) { return False; } - int GetNumberJoysticks() { return -1; } - int GetManufacturerId() { return -1; } - int GetProductId() { return -1; } - wxString GetProductName() { return ""; } - int GetXMin() { return -1; } - int GetYMin() { return -1; } - int GetZMin() { return -1; } - int GetXMax() { return -1; } - int GetYMax() { return -1; } - int GetZMax() { return -1; } - int GetNumberButtons() { return -1; } - int GetNumberAxes() { return -1; } - int GetMaxButtons() { return -1; } - int GetMaxAxes() { return -1; } - int GetPollingMin() { return -1; } - int GetPollingMax() { return -1; } - int GetRudderMin() { return -1; } - int GetRudderMax() { return -1; } - int GetUMin() { return -1; } - int GetUMax() { return -1; } - int GetVMin() { return -1; } - int GetVMax() { return -1; } - - bool HasRudder() { return False; } - bool HasZ() { return False; } - bool HasU() { return False; } - bool HasV() { return False; } - bool HasPOV() { return False; } - bool HasPOV4Dir() { return False; } - bool HasPOVCTS() { return False; } - - bool SetCapture(wxWindow* win, int pollingFreq = 0) { return False; } - bool ReleaseCapture() { return False; } -}; -#endif - - -#include - - -#if !wxUSE_SOUND -// A C++ stub class for wxWave for platforms that don't have it. -class wxSound : public wxObject -{ -public: - wxSound() { - bool blocked = wxPyBeginBlockThreads(); - PyErr_SetString(PyExc_NotImplementedError, - "wxSound is not available on this platform."); - wxPyEndBlockThreads(blocked); - } - wxSound(const wxString&, bool) { - bool blocked = wxPyBeginBlockThreads(); - PyErr_SetString(PyExc_NotImplementedError, - "wxSound is not available on this platform."); - wxPyEndBlockThreads(blocked); - } - wxSound(int, const wxByte*) { - bool blocked = wxPyBeginBlockThreads(); - PyErr_SetString(PyExc_NotImplementedError, - "wxSound is not available on this platform."); - wxPyEndBlockThreads(blocked); - } - - ~wxSound() {}; - - bool Create(const wxString&, bool) { return false; } - bool Create(int, const wxByte*) { return false; }; - bool IsOk() { return false; }; - bool Play(unsigned) const { return false; } - static bool Play(const wxString&, unsigned) { return false; } - static void Stop() {} -}; - -#endif - - -#include - -PyObject *wxFileType_GetMimeType(wxFileType *self){ - wxString str; - if (self->GetMimeType(&str)) - return wx2PyString(str); - else - RETURN_NONE(); - } -PyObject *wxFileType_GetMimeTypes(wxFileType *self){ - wxArrayString arr; - if (self->GetMimeTypes(arr)) - return wxArrayString2PyList_helper(arr); - else - RETURN_NONE(); - } -PyObject *wxFileType_GetExtensions(wxFileType *self){ - wxArrayString arr; - if (self->GetExtensions(arr)) - return wxArrayString2PyList_helper(arr); - else - RETURN_NONE(); - } -wxIcon *wxFileType_GetIcon(wxFileType *self){ - wxIconLocation loc; - if (self->GetIcon(&loc)) - return new wxIcon(loc); - else - return NULL; - } -PyObject *wxFileType_GetIconInfo(wxFileType *self){ - wxIconLocation loc; - if (self->GetIcon(&loc)) { - wxString iconFile = loc.GetFileName(); - int iconIndex = -1; - - iconIndex = loc.GetIndex(); - - // Make a tuple and put the values in it - bool blocked = wxPyBeginBlockThreads(); - PyObject* tuple = PyTuple_New(3); - PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc), - wxT("wxIcon"), True)); - PyTuple_SetItem(tuple, 1, wx2PyString(iconFile)); - PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex)); - wxPyEndBlockThreads(blocked); - return tuple; - } - else - RETURN_NONE(); - } -PyObject *wxFileType_GetDescription(wxFileType *self){ - wxString str; - if (self->GetDescription(&str)) - return wx2PyString(str); - else - RETURN_NONE(); - } -PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ - wxString str; - if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype))) - return wx2PyString(str); - else - RETURN_NONE(); - } -PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ - wxString str; - if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype))) - return wx2PyString(str); - else - RETURN_NONE(); - } -PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){ - wxArrayString verbs; - wxArrayString commands; - if (self->GetAllCommands(&verbs, &commands, - wxFileType::MessageParameters(filename, mimetype))) { - bool blocked = wxPyBeginBlockThreads(); - PyObject* tuple = PyTuple_New(2); - PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs)); - PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands)); - wxPyEndBlockThreads(blocked); - return tuple; - } - else - RETURN_NONE(); - } -wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){ - return wxFileType::ExpandCommand(command, - wxFileType::MessageParameters(filename, mimetype)); - } -PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){ - wxArrayString arr; - self->EnumAllFileTypes(arr); - return wxArrayString2PyList_helper(arr); - } - -#include - - static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR); - static const wxString wxPyART_MENU(wxART_MENU); - static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON); - static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG); - static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER); - static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX); - static const wxString wxPyART_OTHER(wxART_OTHER); - static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK); - static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK); - static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL); - static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS); - static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK); - static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER); - static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE); - static const wxString wxPyART_GO_BACK(wxART_GO_BACK); - static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD); - static const wxString wxPyART_GO_UP(wxART_GO_UP); - static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN); - static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT); - static const wxString wxPyART_GO_HOME(wxART_GO_HOME); - static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN); - static const wxString wxPyART_PRINT(wxART_PRINT); - static const wxString wxPyART_HELP(wxART_HELP); - static const wxString wxPyART_TIP(wxART_TIP); - static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW); - static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW); - static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR); - static const wxString wxPyART_FOLDER(wxART_FOLDER); - static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP); - static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE); - static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE); - static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK); - static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK); - static const wxString wxPyART_ERROR(wxART_ERROR); - static const wxString wxPyART_QUESTION(wxART_QUESTION); - static const wxString wxPyART_WARNING(wxART_WARNING); - static const wxString wxPyART_INFORMATION(wxART_INFORMATION); - static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE); - // Python aware wxArtProvider -class wxPyArtProvider : public wxArtProvider { -public: - - virtual wxBitmap CreateBitmap(const wxArtID& id, - const wxArtClient& client, - const wxSize& size) { - wxBitmap rval = wxNullBitmap; - bool blocked = wxPyBeginBlockThreads(); - if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) { - PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0); - PyObject* ro; - wxBitmap* ptr; - PyObject* s1, *s2; - s1 = wx2PyString(id); - s2 = wx2PyString(client); - ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so)); - Py_DECREF(so); - Py_DECREF(s1); - Py_DECREF(s2); - if (ro) { - if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap"))) - rval = *ptr; - Py_DECREF(ro); - } - } - wxPyEndBlockThreads(blocked); - return rval; - } - - PYPRIVATE; -}; - -void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; } - - - - static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) { - PyObject* ret = PyTuple_New(3); - if (ret) { - PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag)); - PyTuple_SET_ITEM(ret, 1, wx2PyString(str)); - PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index)); - } - return ret; - } - -PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){ - bool cont; - long index = 0; - wxString value; - - cont = self->GetFirstGroup(value, index); - return __EnumerationHelper(cont, value, index); - } -PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){ - bool cont; - wxString value; - - cont = self->GetNextGroup(value, index); - return __EnumerationHelper(cont, value, index); - } -PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){ - bool cont; - long index = 0; - wxString value; - - cont = self->GetFirstEntry(value, index); - return __EnumerationHelper(cont, value, index); - } -PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){ - bool cont; - wxString value; - - cont = self->GetNextEntry(value, index); - return __EnumerationHelper(cont, value, index); - } -long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){ - long rv; - self->Read(key, &rv, defaultVal); - return rv; - } - -SWIGSTATICINLINE(double) -SWIG_AsDouble(PyObject *obj) -{ - if (PyNumber_Check(obj)) - return PyFloat_AsDouble(obj); - else { - PyObject* errmsg = PyString_FromFormat("Expected number, got %s", - obj->ob_type->tp_name); - PyErr_SetObject(PyExc_TypeError, errmsg); - Py_DECREF(errmsg); - return 0; - } -} - - -SWIGSTATICINLINE(int) -SWIG_CheckDouble(PyObject* obj) -{ - SWIG_AsDouble(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - -double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){ - double rv; - self->Read(key, &rv, defaultVal); - return rv; - } -bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){ - bool rv; - self->Read(key, &rv, defaultVal); - return rv; - } - -#include - - - static const wxString wxPyDateFormatStr(wxT("%c")); - static const wxString wxPyTimeSpanFormatStr(wxT("%H:%M:%S")); - -#define LOCAL_TZ wxDateTime::Local - - -#if UINT_MAX < LONG_MAX -#define SWIG_FromUnsignedInt SWIG_FromLong -#else -#define SWIG_FromUnsignedInt SWIG_FromUnsignedLong -#endif - -wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; } -wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; } -wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; } -wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; } -wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; } -bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){ - if (!other || !self->IsValid() || !other->IsValid()) return self < other; - return (*self < *other); - } -bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){ - if (!other || !self->IsValid() || !other->IsValid()) return self <= other; - return (*self <= *other); - } -bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){ - if (!other || !self->IsValid() || !other->IsValid()) return self > other; - return (*self > *other); - } -bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){ - if (!other || !self->IsValid() || !other->IsValid()) return self >= other; - return (*self >= *other); - } -bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){ - if (!other || !self->IsValid() || !other->IsValid()) return self == other; - return (*self == *other); - } -bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){ - if (!other || !self->IsValid() || !other->IsValid()) return self != other; - return (*self != *other); - } -int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){ - const wxChar* rv; - const wxChar* _date = date; - rv = self->ParseRfc822Date(_date); - if (rv == NULL) return -1; - return rv - _date; - } -int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){ - const wxChar* rv; - const wxChar* _date = date; - rv = self->ParseFormat(_date, format, dateDef); - if (rv == NULL) return -1; - return rv - _date; - } -int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){ - const wxChar* rv; - const wxChar* _datetime = datetime; - rv = self->ParseDateTime(_datetime); - if (rv == NULL) return -1; - return rv - _datetime; - } -int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){ - const wxChar* rv; - const wxChar* _date = date; - rv = self->ParseDate(_date); - if (rv == NULL) return -1; - return rv - _date; - } -int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){ - const wxChar* rv; - const wxChar* _time = time; - rv = self->ParseTime(_time); - if (rv == NULL) return -1; - return rv - _time; - } -wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; } -wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; } -wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; } -wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; } -bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : False; } -bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : False; } -bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : True; } -bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : True; } -bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : False; } -bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : True; } -wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; } -wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; } -wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; } -wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; } -bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : False; } -bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : True; } - -#include - - // Create a new class for wxPython to use -class wxPyDataObjectSimple : public wxDataObjectSimple { -public: - wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid) - : wxDataObjectSimple(format) {} - - DEC_PYCALLBACK_SIZET__const(GetDataSize); - bool GetDataHere(void *buf) const; - bool SetData(size_t len, const void *buf) const; - PYPRIVATE; -}; - -IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize); - -bool wxPyDataObjectSimple::GetDataHere(void *buf) const { - // We need to get the data for this object and write it to buf. I think - // the best way to do this for wxPython is to have the Python method - // return either a string or None and then act appropriately with the - // C++ version. - - bool rval = False; - bool blocked = wxPyBeginBlockThreads(); - if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) { - PyObject* ro; - ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); - if (ro) { - rval = (ro != Py_None && PyString_Check(ro)); - if (rval) - memcpy(buf, PyString_AsString(ro), PyString_Size(ro)); - Py_DECREF(ro); - } - } - wxPyEndBlockThreads(blocked); - return rval; -} - -bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{ - // For this one we simply need to make a string from buf and len - // and send it to the Python method. - bool rval = False; - bool blocked = wxPyBeginBlockThreads(); - if (wxPyCBH_findCallback(m_myInst, "SetData")) { - PyObject* data = PyString_FromStringAndSize((char*)buf, len); - rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data)); - Py_DECREF(data); - } - wxPyEndBlockThreads(blocked); - return rval; -} - - // Create a new class for wxPython to use -class wxPyTextDataObject : public wxTextDataObject { -public: - wxPyTextDataObject(const wxString& text = wxPyEmptyString) - : wxTextDataObject(text) {} - - DEC_PYCALLBACK_SIZET__const(GetTextLength); - DEC_PYCALLBACK_STRING__const(GetText); - DEC_PYCALLBACK__STRING(SetText); - PYPRIVATE; -}; - -IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength); -IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText); -IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText); - - - // Create a new class for wxPython to use -class wxPyBitmapDataObject : public wxBitmapDataObject { -public: - wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap) - : wxBitmapDataObject(bitmap) {} - - wxBitmap GetBitmap() const; - void SetBitmap(const wxBitmap& bitmap); - PYPRIVATE; -}; - -wxBitmap wxPyBitmapDataObject::GetBitmap() const { - wxBitmap* rval = &wxNullBitmap; - bool blocked = wxPyBeginBlockThreads(); - if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) { - PyObject* ro; - wxBitmap* ptr; - ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); - if (ro) { - if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap"))) - rval = ptr; - Py_DECREF(ro); - } - } - wxPyEndBlockThreads(blocked); - return *rval; -} - -void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) { - bool blocked = wxPyBeginBlockThreads(); - if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) { - PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), False); - wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo)); - Py_DECREF(bo); - } - wxPyEndBlockThreads(blocked); -} - -void wxCustomDataObject_TakeData(wxCustomDataObject *self,PyObject *data){ - if (PyString_Check(data)) { - // for Python we just call SetData here since we always need it to make a copy. - self->SetData(PyString_Size(data), PyString_AsString(data)); - } - else { - // raise a TypeError if not a string - PyErr_SetString(PyExc_TypeError, "String expected."); - } - } -bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){ - if (PyString_Check(data)) { - return self->SetData(PyString_Size(data), PyString_AsString(data)); - } - else { - // raise a TypeError if not a string - PyErr_SetString(PyExc_TypeError, "String expected."); - return False; - } - } -PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){ - return PyString_FromStringAndSize((char*)self->GetData(), self->GetSize()); - } - -#include - - -IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback); - - -IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave); -IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter); -IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver); -IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData); -IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop); - - -class wxPyTextDropTarget : public wxTextDropTarget { -public: - wxPyTextDropTarget() {} - - DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText); - - DEC_PYCALLBACK__(OnLeave); - DEC_PYCALLBACK_DR_2WXCDR(OnEnter); - DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); - DEC_PYCALLBACK_DR_2WXCDR(OnData); - DEC_PYCALLBACK_BOOL_INTINT(OnDrop); - - PYPRIVATE; -}; - -IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText); -IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave); -IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter); -IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver); -IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData); -IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop); - - - -class wxPyFileDropTarget : public wxFileDropTarget { -public: - wxPyFileDropTarget() {} - - virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames); - - DEC_PYCALLBACK__(OnLeave); - DEC_PYCALLBACK_DR_2WXCDR(OnEnter); - DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); - DEC_PYCALLBACK_DR_2WXCDR(OnData); - DEC_PYCALLBACK_BOOL_INTINT(OnDrop); - - PYPRIVATE; -}; - -bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y, - const wxArrayString& filenames) { - bool rval = False; - bool blocked = wxPyBeginBlockThreads(); - if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) { - PyObject* list = wxArrayString2PyList_helper(filenames); - rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list)); - Py_DECREF(list); - } - wxPyEndBlockThreads(blocked); - return rval; -} - - - -IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave); -IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter); -IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver); -IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData); -IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop); - - - - -bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); } - -#include "wx/display.h" - -bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : False; } -bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : True; } -PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode){ - PyObject* pyList = NULL; - wxArrayVideoModes arr = self->GetModes(mode); - bool blocked = wxPyBeginBlockThreads(); - pyList = PyList_New(0); - for (int i=0; i < arr.GetCount(); i++) { - wxVideoMode* m = new wxVideoMode(arr.Item(i)); - PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true); - PyList_Append(pyList, pyObj); - } - wxPyEndBlockThreads(blocked); - return pyList; - } -#ifdef __cplusplus -extern "C" { -#endif -static PyObject *_wrap_SystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - wxColour result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "index", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail; - arg1 = (wxSystemColour) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxSystemSettings::GetColour((wxSystemColour )arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - wxFont result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "index", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail; - arg1 = (wxSystemFont) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxSystemSettings::GetFont((wxSystemFont )arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxFont * resultptr; - resultptr = new wxFont((wxFont &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "index", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetMetric",kwnames,&obj0)) goto fail; - arg1 = (wxSystemMetric) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "index", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail; - arg1 = (wxSystemFeature) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxSystemSettings::GetScreenType(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "screen", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail; - arg1 = (wxSystemScreenType) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxSystemSettings::SetScreenType((wxSystemScreenType )arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * SystemSettings_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_SystemOptions(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSystemOptions *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSystemOptions *)new wxSystemOptions(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SystemOptions_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString *arg2 = 0 ; - bool temp1 = False ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "name",(char *) "value", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - int arg2 ; - bool temp1 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "name",(char *) "value", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxSystemOptions::SetOption((wxString const &)*arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_SystemOptions_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxSystemOptions::GetOption((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; -} - - -static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - int result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_SystemOptions_HasOption(PyObject *self, 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_HasOption",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxSystemOptions::HasOption((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 *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_FileSelectorPromptStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only."); - return 1; -} - - -static PyObject *_wrap_FileSelectorPromptStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only."); - return 1; -} - - -static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_DirSelectorPromptStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only."); - return 1; -} - - -static PyObject *_wrap_DirSelectorPromptStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_NewId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - long result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)wxNewId(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_RegisterId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - long arg1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail; - arg1 = (long) SWIG_AsLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxRegisterId(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GetCurrentId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - long result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)wxGetCurrentId(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Bell(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxBell(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_EndBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxEndBusyCursor(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GetElapsedTime(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - bool arg1 = (bool) True ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "resetTimer", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (bool) SWIG_AsBool(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)wxGetElapsedTime(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GetMousePosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int *arg1 = (int *) 0 ; - int *arg2 = (int *) 0 ; - int temp1 ; - int temp2 ; - char *kwnames[] = { - NULL - }; - - arg1 = &temp1; - arg2 = &temp2; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxGetMousePosition(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg1)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_IsBusy(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - bool result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxIsBusy(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Now(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxNow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Shell(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString const &arg1_defvalue = wxPyEmptyString ; - wxString *arg1 = (wxString *) &arg1_defvalue ; - bool result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "command", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail; - if (obj0) { - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxShell((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 *_wrap_StartTimer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxStartTimer(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GetOsVersion(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int *arg1 = (int *) 0 ; - int *arg2 = (int *) 0 ; - int result; - int temp1 ; - int temp2 ; - char *kwnames[] = { - NULL - }; - - arg1 = &temp1; - arg2 = &temp2; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxGetOsVersion(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - PyObject *o = PyInt_FromLong((long) (*arg1)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GetOsDescription(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxGetOsDescription(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GetFreeMemory(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - long result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)wxGetFreeMemory(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Shutdown(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "wFlags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail; - arg1 = (wxShutdownFlags) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxShutdown((wxShutdownFlags )arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sleep(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "secs", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxSleep(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Usleep(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - unsigned long arg1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "milliseconds", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Usleep",kwnames,&obj0)) goto fail; - arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxUsleep(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_EnableTopLevelWindows(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - bool arg1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "enable", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail; - arg1 = (bool) SWIG_AsBool(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxEnableTopLevelWindows(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_StripMenuCodes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "in", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxStripMenuCodes((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; -} - - -static PyObject *_wrap_GetEmailAddress(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxGetEmailAddress(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GetHostName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxGetHostName(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GetFullHostName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxGetFullHostName(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GetUserId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxGetUserId(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GetUserName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxGetUserName(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GetHomeDir(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxGetHomeDir(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GetUserHome(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString const &arg1_defvalue = wxPyEmptyString ; - wxString *arg1 = (wxString *) &arg1_defvalue ; - wxString result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "user", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail; - if (obj0) { - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxGetUserHome((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; -} - - -static PyObject *_wrap_GetProcessId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - unsigned long result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (unsigned long)wxGetProcessId(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Trap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxTrap(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ; - wxString *arg1 = (wxString *) &arg1_defvalue ; - wxString const &arg2_defvalue = wxPyEmptyString ; - wxString *arg2 = (wxString *) &arg2_defvalue ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - wxString const &arg4_defvalue = wxPyEmptyString ; - wxString *arg4 = (wxString *) &arg4_defvalue ; - wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; - wxString *arg5 = (wxString *) &arg5_defvalue ; - int arg6 = (int) 0 ; - wxWindow *arg7 = (wxWindow *) NULL ; - int arg8 = (int) -1 ; - int arg9 = (int) -1 ; - wxString result; - bool temp1 = False ; - bool temp2 = False ; - bool temp3 = False ; - bool temp4 = False ; - bool temp5 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - char *kwnames[] = { - (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; - if (obj0) { - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - } - if (obj1) { - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - if (obj3) { - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - } - if (obj4) { - { - arg5 = wxString_in_helper(obj4); - if (arg5 == NULL) SWIG_fail; - temp5 = True; - } - } - if (obj5) { - arg6 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - if (obj7) { - arg8 = (int) SWIG_AsInt(obj7); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj8) { - arg9 = (int) SWIG_AsInt(obj8); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9); - - 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; - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - { - if (temp5) - delete arg5; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - { - if (temp5) - delete arg5; - } - return NULL; -} - - -static PyObject *_wrap_LoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString *arg2 = 0 ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - wxWindow *arg4 = (wxWindow *) NULL ; - wxString result; - bool temp1 = False ; - bool temp2 = False ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - if (obj3) { - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); - - 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; - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_SaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString *arg2 = 0 ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - wxWindow *arg4 = (wxWindow *) NULL ; - wxString result; - bool temp1 = False ; - bool temp2 = False ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - if (obj3) { - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); - - 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; - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_DirSelector(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ; - wxString *arg1 = (wxString *) &arg1_defvalue ; - wxString const &arg2_defvalue = wxPyEmptyString ; - wxString *arg2 = (wxString *) &arg2_defvalue ; - long arg3 = (long) wxDD_DEFAULT_STYLE ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxWindow *arg5 = (wxWindow *) NULL ; - wxString result; - bool temp1 = False ; - bool temp2 = False ; - wxPoint temp4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if (obj0) { - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - } - if (obj1) { - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - } - if (obj2) { - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5); - - 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; - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_GetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString const &arg2_defvalue = wxPyEmptyString ; - wxString *arg2 = (wxString *) &arg2_defvalue ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - wxWindow *arg4 = (wxWindow *) NULL ; - int arg5 = (int) -1 ; - int arg6 = (int) -1 ; - bool arg7 = (bool) True ; - wxString result; - bool temp1 = False ; - bool temp2 = False ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - if (obj1) { - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - if (obj3) { - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - arg6 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - arg7 = (bool) SWIG_AsBool(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7); - - 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; - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_GetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString const &arg2_defvalue = wxPyEmptyString ; - wxString *arg2 = (wxString *) &arg2_defvalue ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - wxWindow *arg4 = (wxWindow *) NULL ; - wxString result; - bool temp1 = False ; - bool temp2 = False ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - if (obj1) { - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - if (obj3) { - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); - - 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; - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_GetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString *arg2 = 0 ; - int arg3 ; - wxString *arg4 = (wxString *) 0 ; - wxWindow *arg5 = (wxWindow *) NULL ; - int arg6 = (int) -1 ; - int arg7 = (int) -1 ; - bool arg8 = (bool) True ; - int arg9 = (int) 150 ; - int arg10 = (int) 200 ; - wxString result; - bool temp1 = False ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - char *kwnames[] = { - (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - arg3 = PyList_Size(obj2); - arg4 = wxString_LIST_helper(obj2); - if (arg4 == NULL) SWIG_fail; - } - if (obj3) { - if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - if (obj4) { - arg6 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - arg7 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - arg8 = (bool) SWIG_AsBool(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - arg9 = (int) SWIG_AsInt(obj7); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj8) { - arg10 = (int) SWIG_AsInt(obj8); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); - - 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; - } - { - if (temp2) - delete arg2; - } - { - if (arg4) delete [] arg4; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - { - if (arg4) delete [] arg4; - } - return NULL; -} - - -static PyObject *_wrap_GetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString *arg2 = 0 ; - int arg3 ; - wxString *arg4 = (wxString *) 0 ; - wxWindow *arg5 = (wxWindow *) NULL ; - int arg6 = (int) -1 ; - int arg7 = (int) -1 ; - bool arg8 = (bool) True ; - int arg9 = (int) 150 ; - int arg10 = (int) 200 ; - int result; - bool temp1 = False ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - char *kwnames[] = { - (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - arg3 = PyList_Size(obj2); - arg4 = wxString_LIST_helper(obj2); - if (arg4 == NULL) SWIG_fail; - } - if (obj3) { - if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - if (obj4) { - arg6 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - arg7 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - arg8 = (bool) SWIG_AsBool(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - arg9 = (int) SWIG_AsInt(obj7); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj8) { - arg10 = (int) SWIG_AsInt(obj8); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - { - if (arg4) delete [] arg4; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - { - if (arg4) delete [] arg4; - } - return NULL; -} - - -static PyObject *_wrap_MessageBox(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString const &arg2_defvalue = wxPyEmptyString ; - wxString *arg2 = (wxString *) &arg2_defvalue ; - int arg3 = (int) wxOK|wxCENTRE ; - wxWindow *arg4 = (wxWindow *) NULL ; - int arg5 = (int) -1 ; - int arg6 = (int) -1 ; - int result; - bool temp1 = False ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - if (obj1) { - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - arg6 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_GetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString *arg2 = 0 ; - wxString *arg3 = 0 ; - long arg4 ; - long arg5 = (long) 0 ; - long arg6 = (long) 100 ; - wxWindow *arg7 = (wxWindow *) NULL ; - wxPoint const &arg8_defvalue = wxDefaultPosition ; - wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; - long result; - bool temp1 = False ; - bool temp2 = False ; - bool temp3 = False ; - wxPoint temp8 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - arg4 = (long) SWIG_AsLong(obj3); - if (PyErr_Occurred()) SWIG_fail; - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - if (obj7) { - { - arg8 = &temp8; - if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_ColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - bool result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxColourDisplay(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxDisplayDepth(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxGetDisplayDepth(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int *arg1 = (int *) 0 ; - int *arg2 = (int *) 0 ; - int temp1 ; - int temp2 ; - char *kwnames[] = { - NULL - }; - - arg1 = &temp1; - arg2 = &temp2; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxDisplaySize(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg1)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSize result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxGetDisplaySize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int *arg1 = (int *) 0 ; - int *arg2 = (int *) 0 ; - int temp1 ; - int temp2 ; - char *kwnames[] = { - NULL - }; - - arg1 = &temp1; - arg2 = &temp2; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxDisplaySizeMM(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg1)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSize result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxGetDisplaySizeMM(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int *arg1 = (int *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int *arg4 = (int *) 0 ; - int temp1 ; - int temp2 ; - int temp3 ; - int temp4 ; - char *kwnames[] = { - NULL - }; - - arg1 = &temp1; - arg2 = &temp2; - arg3 = &temp3; - arg4 = &temp4; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxClientDisplayRect(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg1)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg4)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxRect result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxGetClientDisplayRect(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxRect * resultptr; - resultptr = new wxRect((wxRect &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCursor *arg1 = 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "cursor", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxSetCursor(*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "cursor", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail; - if (obj0) { - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxBeginBusyCursor(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)wxGetActiveWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint *arg1 = 0 ; - wxWindow *result; - wxPoint temp1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail; - { - arg1 = &temp1; - if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint *arg1 = 0 ; - wxWindow *result; - wxPoint temp1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail; - { - arg1 = &temp1; - if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "win", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)wxGetTopLevelParent(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GetKeyState(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "key", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail; - arg1 = (wxKeyCode) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxGetKeyState((wxKeyCode )arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_WakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxWakeUpMainThread(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxMutexGuiEnter(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxMutexGuiLeave(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMutexGuiLocker *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMutexGuiLocker *)new wxMutexGuiLocker(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMutexGuiLocker, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * MutexGuiLocker_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_Thread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - bool result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxThread_IsMain(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_ToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxToolTip *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "tip", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxToolTip *)new wxToolTip((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_ToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolTip *arg1 = (wxToolTip *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "tip", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetTip((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolTip *arg1 = (wxToolTip *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetTip(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxToolTip *arg1 = (wxToolTip *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)(arg1)->GetWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - bool arg1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail; - arg1 = (bool) SWIG_AsBool(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxToolTip::Enable(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - long arg1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "milliseconds", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail; - arg1 = (long) SWIG_AsLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxToolTip::SetDelay(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * ToolTip_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Caret(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxSize *arg2 = 0 ; - wxCaret *result; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "window",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_Caret(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCaret *arg1 = (wxCaret *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Caret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCaret *arg1 = (wxCaret *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->IsOk(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Caret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCaret *arg1 = (wxCaret *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->IsVisible(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Caret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCaret *arg1 = (wxCaret *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Caret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCaret *arg1 = (wxCaret *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->GetPosition(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Caret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCaret *arg1 = (wxCaret *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Caret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCaret *arg1 = (wxCaret *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->GetSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Caret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCaret *arg1 = (wxCaret *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)(arg1)->GetWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Caret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCaret *arg1 = (wxCaret *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Move(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Caret_Move(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCaret *arg1 = (wxCaret *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Move((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Caret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCaret *arg1 = (wxCaret *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Caret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCaret *arg1 = (wxCaret *) 0 ; - wxSize *arg2 = 0 ; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSize((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Caret_Show(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCaret *arg1 = (wxCaret *) 0 ; - int arg2 = (int) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "show", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Show(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Caret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCaret *arg1 = (wxCaret *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Hide(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * Caret_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_Caret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxCaret_GetBlinkTime(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Caret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "milliseconds", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxCaret_SetBlinkTime(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; - wxBusyCursor *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "cursor", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail; - if (obj0) { - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxBusyCursor *)new wxBusyCursor(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBusyCursor *arg1 = (wxBusyCursor *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyCursor, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * BusyCursor_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) NULL ; - wxWindowDisabler *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "winToSkip", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail; - if (obj0) { - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindowDisabler *)new wxWindowDisabler(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDisabler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * WindowDisabler_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxBusyInfo *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "message", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1); - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_delete_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBusyInfo *arg1 = (wxBusyInfo *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * BusyInfo_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_StopWatch(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStopWatch *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxStopWatch *)new wxStopWatch(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_StopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStopWatch *arg1 = (wxStopWatch *) 0 ; - long arg2 = (long) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "t0", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Start(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_StopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStopWatch *arg1 = (wxStopWatch *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Pause(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_StopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStopWatch *arg1 = (wxStopWatch *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Resume(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_StopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStopWatch *arg1 = (wxStopWatch *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxStopWatch const *)arg1)->Time(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * StopWatch_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 9 ; - wxFileHistory *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "maxFiles", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FileHistory",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFileHistory *)new wxFileHistory(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileHistory *arg1 = (wxFileHistory *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileHistory *arg1 = (wxFileHistory *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "file", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AddFileToHistory((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileHistory *arg1 = (wxFileHistory *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "i", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RemoveFileFromHistory(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileHistory *arg1 = (wxFileHistory *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxFileHistory const *)arg1)->GetMaxFiles(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileHistory *arg1 = (wxFileHistory *) 0 ; - wxMenu *arg2 = (wxMenu *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "menu", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->UseMenu(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileHistory *arg1 = (wxFileHistory *) 0 ; - wxMenu *arg2 = (wxMenu *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "menu", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RemoveMenu(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileHistory *arg1 = (wxFileHistory *) 0 ; - wxConfigBase *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "config", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Load(*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileHistory *arg1 = (wxFileHistory *) 0 ; - wxConfigBase *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "config", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Save(*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileHistory *arg1 = (wxFileHistory *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AddFilesToMenu(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileHistory *arg1 = (wxFileHistory *) 0 ; - wxMenu *arg2 = (wxMenu *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "menu", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AddFilesToMenu(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileHistory *arg1 = (wxFileHistory *) 0 ; - int arg2 ; - wxString result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "i", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileHistory *arg1 = (wxFileHistory *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxFileHistory const *)arg1)->GetCount(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * FileHistory_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString const &arg2_defvalue = wxPyEmptyString ; - wxString *arg2 = (wxString *) &arg2_defvalue ; - wxSingleInstanceChecker *result; - bool temp1 = False ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "name",(char *) "path", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - if (obj1) { - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1); - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSingleInstanceChecker *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; - wxString *arg2 = 0 ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - bool result; - bool temp2 = False ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name",(char *) "path", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * SingleInstanceChecker_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_DrawWindowOnDC(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxDC *arg2 = 0 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "window",(char *) "dc",(char *) "method", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DrawWindowOnDC",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_TipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTipProvider *arg1 = (wxTipProvider *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTipProvider *arg1 = (wxTipProvider *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetTip(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTipProvider *arg1 = (wxTipProvider *) 0 ; - size_t result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (size_t)(arg1)->GetCurrentTip(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTipProvider *arg1 = (wxTipProvider *) 0 ; - wxString *arg2 = 0 ; - wxString result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "tip", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->PreprocessTip((wxString const &)*arg2); - - 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 (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject * TipProvider_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - size_t arg1 ; - wxPyTipProvider *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "currentTip", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail; - arg1 = (size_t) SWIG_AsUnsignedLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyTipProvider *)new wxPyTipProvider(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTipProvider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * PyTipProvider_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_ShowTip(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxTipProvider *arg2 = (wxTipProvider *) 0 ; - bool arg3 = (bool) True ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTipProvider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxShowTip(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - size_t arg2 ; - wxTipProvider *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "filename",(char *) "currentTip", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1); - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_new_Timer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; - int arg2 = (int) -1 ; - wxPyTimer *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "owner",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyTimer *)new wxPyTimer(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_Timer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTimer *arg1 = (wxPyTimer *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Timer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTimer *arg1 = (wxPyTimer *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - int arg4 = (int) 1 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Timer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTimer *arg1 = (wxPyTimer *) 0 ; - wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; - int arg3 = (int) -1 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "owner",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetOwner(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Timer_Start(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTimer *arg1 = (wxPyTimer *) 0 ; - int arg2 = (int) -1 ; - bool arg3 = (bool) False ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Start(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Timer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTimer *arg1 = (wxPyTimer *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Stop(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Timer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTimer *arg1 = (wxPyTimer *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyTimer const *)arg1)->IsRunning(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Timer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTimer *arg1 = (wxPyTimer *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxPyTimer const *)arg1)->GetInterval(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Timer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTimer *arg1 = (wxPyTimer *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyTimer const *)arg1)->IsOneShot(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Timer_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTimer *arg1 = (wxPyTimer *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxPyTimer const *)arg1)->GetId(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * Timer_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_TimerEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - int arg2 = (int) 0 ; - wxTimerEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "timerid",(char *) "interval", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimerEvent_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimerEvent *arg1 = (wxTimerEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxTimerEvent const *)arg1)->GetInterval(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * TimerEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxTimer *arg1 = 0 ; - wxTimerRunner *result; - PyObject * obj0 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxTimerRunner *)new wxTimerRunner(*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxTimer *arg1 = 0 ; - int arg2 ; - bool arg3 = (bool) False ; - wxTimerRunner *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if (argc == 1) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_new_TimerRunner__SWIG_0(self,args); - } - } - if ((argc >= 2) && (argc <= 3)) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - _v = SWIG_CheckInt(argv[1]); - if (_v) { - if (argc <= 2) { - return _wrap_new_TimerRunner__SWIG_1(self,args); - } - _v = SWIG_CheckBool(argv[2]); - if (_v) { - return _wrap_new_TimerRunner__SWIG_1(self,args); - } - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'"); - return NULL; -} - - -static PyObject *_wrap_delete_TimerRunner(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimerRunner_Start(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; - int arg2 ; - bool arg3 = (bool) False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "milli",(char *) "oneShot", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Start(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * TimerRunner_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Log(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLog *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxLog *)new wxLog(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Log_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - bool result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxLog::IsEnabled(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Log_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - bool arg1 = (bool) True ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "doIt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (bool) SWIG_AsBool(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxLog::EnableLogging(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Log_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLogLevel arg1 ; - wxChar *arg2 = (wxChar *) 0 ; - time_t arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "level",(char *) "szString",(char *) "t", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail; - arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxChar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (time_t) SWIG_AsUnsignedInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLog::OnLog(arg1,(wxChar const *)arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Log_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLog *arg1 = (wxLog *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Flush(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Log_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLog::FlushActive(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Log_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLog *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxLog *)wxLog::GetActiveTarget(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Log_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLog *arg1 = (wxLog *) 0 ; - wxLog *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "pLogger", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxLog *)wxLog::SetActiveTarget(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Log_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLog::Suspend(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Log_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLog::Resume(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Log_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - bool arg1 = (bool) True ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "bVerbose", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (bool) SWIG_AsBool(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLog::SetVerbose(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Log_SetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLogLevel arg1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "logLevel", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail; - arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLog::SetLogLevel(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLog::DontCreateOnDemand(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Log_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTraceMask arg1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "ulMask", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail; - arg1 = (wxTraceMask) SWIG_AsUnsignedLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLog::SetTraceMask(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Log_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "str", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLog::AddTraceMask((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_Log_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "str", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLog::RemoveTraceMask((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_Log_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLog::ClearTraceMasks(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Log_GetTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxArrayString *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxArrayString const &_result_ref = wxLog::GetTraceMasks(); - result = (wxArrayString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxArrayString2PyList_helper(*result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Log_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxChar *arg1 = (wxChar *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "ts", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLog::SetTimestamp((wxChar const *)arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Log_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - bool result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxLog::GetVerbose(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Log_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTraceMask result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxTraceMask)wxLog::GetTraceMask(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxChar *arg1 = (wxChar *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "mask", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Log_GetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLogLevel result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxLogLevel)wxLog::GetLogLevel(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Log_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxChar *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxChar *)wxLog::GetTimestamp(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Log_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = Log_TimeStamp(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Log_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLog *arg1 = (wxLog *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLog_Destroy(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * Log_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_LogStderr(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLogStderr *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxLogStderr *)new wxLogStderr(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * LogStderr_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_LogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; - wxLogTextCtrl *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "pTextCtrl", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * LogTextCtrl_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_LogGui(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLogGui *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxLogGui *)new wxLogGui(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * LogGui_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_LogWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFrame *arg1 = (wxFrame *) 0 ; - wxString *arg2 = 0 ; - bool arg3 = (bool) True ; - bool arg4 = (bool) True ; - wxLogWindow *result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (bool) SWIG_AsBool(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1); - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_LogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLogWindow *arg1 = (wxLogWindow *) 0 ; - bool arg2 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bShow", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Show(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_LogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLogWindow *arg1 = (wxLogWindow *) 0 ; - wxFrame *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_LogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLogWindow *arg1 = (wxLogWindow *) 0 ; - wxLog *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLogWindow *arg1 = (wxLogWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_LogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLogWindow *arg1 = (wxLogWindow *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bDoPass", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->PassMessages(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * LogWindow_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_LogChain(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLog *arg1 = (wxLog *) 0 ; - wxLogChain *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "logger", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxLogChain *)new wxLogChain(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_LogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLogChain *arg1 = (wxLogChain *) 0 ; - wxLog *arg2 = (wxLog *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "logger", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetLog(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_LogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLogChain *arg1 = (wxLogChain *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bDoPass", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->PassMessages(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLogChain *arg1 = (wxLogChain *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->IsPassingMessages(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_LogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLogChain *arg1 = (wxLogChain *) 0 ; - wxLog *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxLog *)(arg1)->GetOldLog(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject * LogChain_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_SysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - unsigned long result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (unsigned long)wxSysErrorCode(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - unsigned long arg1 = (unsigned long) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "nErrCode", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxSysErrorMsg(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 - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_LogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "msg", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLogFatalError((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_LogError(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "msg", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLogError((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_LogWarning(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "msg", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLogWarning((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_LogMessage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "msg", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLogMessage((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_LogInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "msg", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLogInfo((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_LogDebug(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "msg", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLogDebug((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_LogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "msg", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLogVerbose((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_LogStatus(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "msg", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLogStatus((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_LogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFrame *arg1 = (wxFrame *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "pFrame",(char *) "msg", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLogStatus(arg1,(wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_LogSysError(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "msg", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLogSysError((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_LogTrace__SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - unsigned long arg1 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; - arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLogTrace(arg1,(wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_LogTrace__SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString *arg2 = 0 ; - bool temp1 = False ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if (argc == 2) { - int _v; - { - _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); - } - if (_v) { - { - _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); - } - if (_v) { - return _wrap_LogTrace__SWIG_1(self,args); - } - } - } - if (argc == 2) { - int _v; - _v = SWIG_CheckUnsignedLong(argv[0]); - if (_v) { - { - _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); - } - if (_v) { - return _wrap_LogTrace__SWIG_0(self,args); - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'"); - return NULL; -} - - -static PyObject *_wrap_LogGeneric(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - unsigned long arg1 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "level",(char *) "msg", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail; - arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxLogGeneric(arg1,(wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_SafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString *arg2 = 0 ; - bool temp1 = False ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "title",(char *) "text", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_new_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLogNull *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxLogNull *)new wxLogNull(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLogNull *arg1 = (wxLogNull *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogNull, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * LogNull_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PyLog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyLog *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyLog *)new wxPyLog(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyLog *arg1 = (wxPyLog *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * PyLog_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_Process_Kill(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - int arg2 = (int) wxSIGTERM ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "pid",(char *) "sig", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Kill",kwnames,&obj0,&obj1)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - if (obj1) { - arg2 = (wxSignal) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Process_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "pid", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxPyProcess::Exists(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Process_Open(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - int arg2 = (int) wxEXEC_ASYNC ; - wxPyProcess *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "cmd",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0); - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_new_Process(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; - int arg2 = (int) -1 ; - wxPyProcess *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyProcess *)new wxPyProcess(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Process__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyProcess *arg1 = (wxPyProcess *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Process_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyProcess *arg1 = (wxPyProcess *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pid",(char *) "status", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_OnTerminate(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Process_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyProcess *arg1 = (wxPyProcess *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Redirect(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Process_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyProcess *arg1 = (wxPyProcess *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->IsRedirected(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Process_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyProcess *arg1 = (wxPyProcess *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Detach(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Process_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyProcess *arg1 = (wxPyProcess *) 0 ; - wxInputStream *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxInputStream *)(arg1)->GetInputStream(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPyInputStream * _ptr = NULL; - - if (result) { - _ptr = new wxPyInputStream(result); - } - resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Process_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyProcess *arg1 = (wxPyProcess *) 0 ; - wxInputStream *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxInputStream *)(arg1)->GetErrorStream(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPyInputStream * _ptr = NULL; - - if (result) { - _ptr = new wxPyInputStream(result); - } - resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Process_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyProcess *arg1 = (wxPyProcess *) 0 ; - wxOutputStream *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxOutputStream *)(arg1)->GetOutputStream(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Process_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyProcess *arg1 = (wxPyProcess *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->CloseOutput(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Process_IsInputOpened(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyProcess *arg1 = (wxPyProcess *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyProcess const *)arg1)->IsInputOpened(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Process_IsInputAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyProcess *arg1 = (wxPyProcess *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Process_IsErrorAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyProcess *arg1 = (wxPyProcess *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * Process_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - int arg2 = (int) 0 ; - int arg3 = (int) 0 ; - wxProcessEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "id",(char *) "pid",(char *) "exitcode", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetPid(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetExitCode(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_pid", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_pid = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->m_pid); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_exitcode", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_exitcode = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->m_exitcode); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * ProcessEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_Execute(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - int arg2 = (int) wxEXEC_ASYNC ; - wxPyProcess *arg3 = (wxPyProcess *) NULL ; - long result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "command",(char *) "flags",(char *) "process", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyProcess, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)wxExecute((wxString const &)*arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_new_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) wxJOYSTICK1 ; - wxJoystick *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "joystick", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxJoystick *)new wxJoystick(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetZPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetButtonState(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetPOVPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetPOVCTSPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetRudderPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetUPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetVPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetMovementThreshold(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "threshold", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMovementThreshold(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->IsOk(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetNumberJoysticks(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetManufacturerId(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetProductId(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetProductName(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetXMin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetYMin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetZMin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetXMax(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetYMax(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetZMax(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetNumberButtons(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetNumberAxes(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetMaxButtons(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetMaxAxes(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetPollingMin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetPollingMax(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetRudderMin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetRudderMax(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetUMin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetUMax(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetVMin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetVMax(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->HasRudder(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->HasZ(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->HasU(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->HasV(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->HasPOV(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->HasPOV4Dir(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->HasPOVCTS(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 = (int) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "win",(char *) "pollingFreq", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetCapture(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystick *arg1 = (wxJoystick *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->ReleaseCapture(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * Joystick_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - wxPoint *arg2 = (wxPoint *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (arg1) (arg1)->m_pos = *arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - wxPoint *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (wxPoint *)& ((arg1)->m_pos); - - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_zPosition", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_zPosition_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_zPosition = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->m_zPosition); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_buttonChange", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_buttonChange = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->m_buttonChange); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_buttonState", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonState_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_buttonState = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->m_buttonState); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "m_joyStick", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_joyStick_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->m_joyStick = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->m_joyStick); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_JoystickEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEventType arg1 = (wxEventType) wxEVT_NULL ; - int arg2 = (int) 0 ; - int arg3 = (int) wxJOYSTICK1 ; - int arg4 = (int) 0 ; - wxJoystickEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if (obj0) { - arg1 = (wxEventType) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxJoystickEvent const *)arg1)->GetPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxJoystickEvent const *)arg1)->GetZPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxJoystickEvent const *)arg1)->GetButtonState(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxJoystickEvent const *)arg1)->GetJoystick(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "stick", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetJoystick(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "state", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetButtonState(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "change", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetButtonChange(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPosition((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "zPos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetZPosition(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxJoystickEvent const *)arg1)->IsButton(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_IsMove(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxJoystickEvent const *)arg1)->IsMove(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxJoystickEvent const *)arg1)->IsZMove(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - int arg2 = (int) wxJOY_BUTTON_ANY ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "but", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - int arg2 = (int) wxJOY_BUTTON_ANY ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "but", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; - int arg2 = (int) wxJOY_BUTTON_ANY ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "but", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * JoystickEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Sound__SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxSound *result; - - if(!PyArg_ParseTuple(args,(char *)":new_Sound")) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSound *)new wxSound(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_Sound__SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxString *arg1 = 0 ; - bool arg2 = (bool) false ; - wxSound *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"O|O:new_Sound",&obj0,&obj1)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSound *)new wxSound((wxString const &)*arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_new_Sound__SWIG_2(PyObject *self, PyObject *args) { - PyObject *resultobj; - int arg1 ; - wxByte *arg2 = (wxByte *) 0 ; - wxSound *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:new_Sound",&obj0,&obj1)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxByte, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSound *)new wxSound(arg1,(wxByte const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_Sound(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if (argc == 0) { - return _wrap_new_Sound__SWIG_0(self,args); - } - if ((argc >= 1) && (argc <= 2)) { - int _v; - { - _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); - } - if (_v) { - if (argc <= 1) { - return _wrap_new_Sound__SWIG_1(self,args); - } - _v = SWIG_CheckBool(argv[1]); - if (_v) { - return _wrap_new_Sound__SWIG_1(self,args); - } - } - } - if (argc == 2) { - int _v; - _v = SWIG_CheckInt(argv[0]); - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxByte, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_new_Sound__SWIG_2(self,args); - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_Sound'"); - return NULL; -} - - -static PyObject *_wrap_delete_Sound(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSound *arg1 = (wxSound *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sound_Create__SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxSound *arg1 = (wxSound *) 0 ; - wxString *arg2 = 0 ; - bool arg3 = (bool) false ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO|O:Sound_Create",&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create((wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Sound_Create__SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxSound *arg1 = (wxSound *) 0 ; - int arg2 ; - wxByte *arg3 = (wxByte *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OOO:Sound_Create",&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxByte, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,(wxByte const *)arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sound_Create(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if ((argc >= 2) && (argc <= 3)) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxSound, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); - } - if (_v) { - if (argc <= 2) { - return _wrap_Sound_Create__SWIG_0(self,args); - } - _v = SWIG_CheckBool(argv[2]); - if (_v) { - return _wrap_Sound_Create__SWIG_0(self,args); - } - } - } - } - if (argc == 3) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxSound, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - _v = SWIG_CheckInt(argv[1]); - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxByte, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_Sound_Create__SWIG_1(self,args); - } - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Sound_Create'"); - return NULL; -} - - -static PyObject *_wrap_Sound_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSound *arg1 = (wxSound *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->IsOk(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sound_Play(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxSound *arg1 = (wxSound *) 0 ; - unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"O|O:Sound_Play",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxSound const *)arg1)->Play(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Sound_PlaySound(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxString *arg1 = 0 ; - unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; - bool result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"O|O:Sound_PlaySound",&obj0,&obj1)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - if (obj1) { - arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxSound::Play((wxString const &)*arg1,arg2); - - 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 *_wrap_Sound_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxSound::Stop(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * Sound_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_FileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString *arg2 = 0 ; - wxString *arg3 = 0 ; - wxString *arg4 = 0 ; - wxFileTypeInfo *result; - bool temp1 = False ; - bool temp2 = False ; - bool temp3 = False ; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxArrayString *arg1 = 0 ; - wxFileTypeInfo *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "sArray", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail; - { - if (! PySequence_Check(obj0)) { - PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); - SWIG_fail; - } - arg1 = new wxArrayString; - temp1 = True; - int i, len=PySequence_Length(obj0); - for (i=0; iAdd(Py2wxString(str)); - Py_DECREF(item); - Py_DECREF(str); - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); - { - if (temp1) delete arg1; - } - return resultobj; - fail: - { - if (temp1) delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_new_NullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileTypeInfo *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFileTypeInfo *)new wxFileTypeInfo(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxFileTypeInfo const *)arg1)->IsValid(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; - wxString *arg2 = 0 ; - int arg3 = (int) 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetIcon((wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "shortDesc", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetShortDesc((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; - wxArrayString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions(); - result = (wxArrayString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxArrayString2PyList_helper(*result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * FileTypeInfo_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_FileType(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileTypeInfo *arg1 = 0 ; - wxFileType *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "ftInfo", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_FileType(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileType *arg1 = (wxFileType *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileType *arg1 = (wxFileType *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxFileType_GetMimeType(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileType *arg1 = (wxFileType *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxFileType_GetMimeTypes(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileType *arg1 = (wxFileType *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxFileType_GetExtensions(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileType *arg1 = (wxFileType *) 0 ; - wxIcon *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxIcon *)wxFileType_GetIcon(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileType *arg1 = (wxFileType *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxFileType_GetIconInfo(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileType *arg1 = (wxFileType *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxFileType_GetDescription(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileType *arg1 = (wxFileType *) 0 ; - wxString *arg2 = 0 ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - PyObject *result; - bool temp2 = False ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "filename",(char *) "mimetype", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_FileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileType *arg1 = (wxFileType *) 0 ; - wxString *arg2 = 0 ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - PyObject *result; - bool temp2 = False ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "filename",(char *) "mimetype", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_FileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileType *arg1 = (wxFileType *) 0 ; - wxString *arg2 = 0 ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - PyObject *result; - bool temp2 = False ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "filename",(char *) "mimetype", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_FileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileType *arg1 = (wxFileType *) 0 ; - wxString *arg2 = 0 ; - wxString *arg3 = 0 ; - bool arg4 = (bool) True ; - bool result; - bool temp2 = False ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - arg4 = (bool) SWIG_AsBool(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileType *arg1 = (wxFileType *) 0 ; - wxString const &arg2_defvalue = wxPyEmptyString ; - wxString *arg2 = (wxString *) &arg2_defvalue ; - int arg3 = (int) 0 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "cmd",(char *) "index", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_FileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileType *arg1 = (wxFileType *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Unassociate(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString *arg2 = 0 ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - wxString result; - bool temp1 = False ; - bool temp2 = False ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "command",(char *) "filename",(char *) "mimetype", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3); - - 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; - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject * FileType_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_TheMimeTypesManager_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only."); - return 1; -} - - -static PyObject *_wrap_TheMimeTypesManager_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0); - return pyobj; -} - - -static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString *arg2 = 0 ; - bool result; - bool temp1 = False ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "mimeType",(char *) "wildcard", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_new_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMimeTypesManager *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMimeTypesManager *)new wxMimeTypesManager(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; - int arg2 = (int) wxMAILCAP_ALL ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Initialize(arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ClearData(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; - wxString *arg2 = 0 ; - wxFileType *result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "ext", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; - wxString *arg2 = 0 ; - wxFileType *result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "mimeType", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; - wxString *arg2 = 0 ; - bool arg3 = (bool) False ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "filename",(char *) "fallback", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; - wxString *arg2 = 0 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "filename", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; - wxFileTypeInfo *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "ft", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AddFallback((wxFileTypeInfo const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; - wxFileTypeInfo *arg2 = 0 ; - wxFileType *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "ftInfo", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; - wxFileType *arg2 = (wxFileType *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "ft", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileType, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Unassociate(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * MimeTypesManager_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_ART_TOOLBAR_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_TOOLBAR_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_MENU_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_MENU_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_FRAME_ICON_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_FRAME_ICON_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_CMN_DIALOG_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_CMN_DIALOG_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_HELP_BROWSER_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_HELP_BROWSER_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_MESSAGE_BOX_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_MESSAGE_BOX_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_OTHER_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_OTHER_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_ADD_BOOKMARK_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_ADD_BOOKMARK_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_DEL_BOOKMARK_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_DEL_BOOKMARK_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_HELP_SETTINGS_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_HELP_SETTINGS_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_HELP_BOOK_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_HELP_BOOK_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_HELP_FOLDER_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_HELP_FOLDER_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_HELP_PAGE_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_HELP_PAGE_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_GO_BACK_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_GO_BACK_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_GO_FORWARD_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_GO_FORWARD_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_GO_UP_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_GO_UP_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_GO_DOWN_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_GO_DOWN_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_GO_TO_PARENT_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_GO_TO_PARENT_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_GO_HOME_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_GO_HOME_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_FILE_OPEN_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_FILE_OPEN_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_PRINT_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_PRINT_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_HELP_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_HELP_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_TIP_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_TIP_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_REPORT_VIEW_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_REPORT_VIEW_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_LIST_VIEW_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_LIST_VIEW_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_NEW_DIR_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_NEW_DIR_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_FOLDER_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_FOLDER_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_GO_DIR_UP_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_GO_DIR_UP_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_EXECUTABLE_FILE_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_NORMAL_FILE_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_NORMAL_FILE_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_TICK_MARK_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_TICK_MARK_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_CROSS_MARK_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_CROSS_MARK_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_ERROR_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_ERROR_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_QUESTION_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_QUESTION_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_WARNING_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_WARNING_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_INFORMATION_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_INFORMATION_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ART_MISSING_IMAGE_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only."); - return 1; -} - - -static PyObject *_wrap_ART_MISSING_IMAGE_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_ArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyArtProvider *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyArtProvider *)new wxPyArtProvider(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "provider", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxPyArtProvider::PushProvider(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - bool result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxPyArtProvider::PopProvider(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "provider", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxPyArtProvider::RemoveProvider(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString const &arg2_defvalue = wxPyART_OTHER ; - wxString *arg2 = (wxString *) &arg2_defvalue ; - wxSize const &arg3_defvalue = wxDefaultSize ; - wxSize *arg3 = (wxSize *) &arg3_defvalue ; - wxBitmap result; - bool temp1 = False ; - bool temp2 = False ; - wxSize temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "id",(char *) "client",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - if (obj1) { - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - } - if (obj2) { - { - arg3 = &temp3; - if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxBitmap * resultptr; - resultptr = new wxBitmap((wxBitmap &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); - } - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString const &arg2_defvalue = wxPyART_OTHER ; - wxString *arg2 = (wxString *) &arg2_defvalue ; - wxSize const &arg3_defvalue = wxDefaultSize ; - wxSize *arg3 = (wxSize *) &arg3_defvalue ; - wxIcon result; - bool temp1 = False ; - bool temp2 = False ; - wxSize temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "id",(char *) "client",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - if (obj1) { - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - } - if (obj2) { - { - arg3 = &temp3; - if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxIcon * resultptr; - resultptr = new wxIcon((wxIcon &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1); - } - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ArtProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxPyArtProvider_Destroy(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * ArtProvider_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_delete_ConfigBase(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ConfigBase_Set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxConfigBase *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "config", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxConfigBase *)wxConfigBase::Set(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ConfigBase_Get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - bool arg1 = (bool) True ; - wxConfigBase *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "createOnDemand", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (bool) SWIG_AsBool(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxConfigBase *)wxConfigBase::Get(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ConfigBase_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxConfigBase *)wxConfigBase::Create(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxConfigBase::DontCreateOnDemand(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ConfigBase_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "path", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPath((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ConfigBase_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxConfigBase_GetFirstGroup(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - long arg2 ; - PyObject *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "index", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxConfigBase_GetFirstEntry(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - long arg2 ; - PyObject *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "index", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - bool arg2 = (bool) False ; - size_t result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "recursive", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - bool arg2 = (bool) False ; - size_t result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "recursive", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ConfigBase_HasGroup(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxString *arg2 = 0 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ConfigBase_HasEntry(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxString *arg2 = 0 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ConfigBase_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxString *arg2 = 0 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxString *arg2 = 0 ; - int result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ConfigBase_Read(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxString *arg2 = 0 ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - wxString result; - bool temp2 = False ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "key",(char *) "defaultVal", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3); - - 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 (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_ConfigBase_ReadInt(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxString *arg2 = 0 ; - long arg3 = (long) 0 ; - long result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "key",(char *) "defaultVal", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxString *arg2 = 0 ; - double arg3 = (double) 0.0 ; - double result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "key",(char *) "defaultVal", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (double) SWIG_AsDouble(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromDouble((double)result); - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ConfigBase_ReadBool(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxString *arg2 = 0 ; - bool arg3 = (bool) False ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "key",(char *) "defaultVal", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ConfigBase_Write(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxString *arg2 = 0 ; - wxString *arg3 = 0 ; - bool result; - bool temp2 = False ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "key",(char *) "value", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_ConfigBase_WriteInt(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxString *arg2 = 0 ; - long arg3 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "key",(char *) "value", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxString *arg2 = 0 ; - double arg3 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "key",(char *) "value", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - arg3 = (double) SWIG_AsDouble(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ConfigBase_WriteBool(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxString *arg2 = 0 ; - bool arg3 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "key",(char *) "value", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ConfigBase_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - bool arg2 = (bool) False ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "currentOnly", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Flush(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxString *arg2 = 0 ; - wxString *arg3 = 0 ; - bool result; - bool temp2 = False ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "oldName",(char *) "newName", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxString *arg2 = 0 ; - wxString *arg3 = 0 ; - bool result; - bool temp2 = False ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "oldName",(char *) "newName", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxString *arg2 = 0 ; - bool arg3 = (bool) True ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxString *arg2 = 0 ; - bool result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "key", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->DeleteAll(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - bool arg2 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "doIt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetExpandEnvVars(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - bool arg2 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "doIt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetRecordDefaults(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxString *arg2 = 0 ; - wxString result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "str", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2); - - 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 (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ConfigBase_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxConfigBase const *)arg1)->GetAppName(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxConfigBase const *)arg1)->GetVendorName(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ConfigBase_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "appName", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetAppName((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "vendorName", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetVendorName((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ConfigBase_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetStyle(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ConfigBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxConfigBase const *)arg1)->GetStyle(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * ConfigBase_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Config(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString const &arg1_defvalue = wxPyEmptyString ; - wxString *arg1 = (wxString *) &arg1_defvalue ; - wxString const &arg2_defvalue = wxPyEmptyString ; - wxString *arg2 = (wxString *) &arg2_defvalue ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - wxString const &arg4_defvalue = wxPyEmptyString ; - wxString *arg4 = (wxString *) &arg4_defvalue ; - long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ; - wxConfig *result; - bool temp1 = False ; - bool temp2 = False ; - bool temp3 = False ; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if (obj0) { - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - } - if (obj1) { - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - if (obj3) { - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1); - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_delete_Config(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfig *arg1 = (wxConfig *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfig, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * Config_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString const &arg1_defvalue = wxPyEmptyString ; - wxString *arg1 = (wxString *) &arg1_defvalue ; - wxString const &arg2_defvalue = wxPyEmptyString ; - wxString *arg2 = (wxString *) &arg2_defvalue ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - wxString const &arg4_defvalue = wxPyEmptyString ; - wxString *arg4 = (wxString *) &arg4_defvalue ; - long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ; - wxFileConfig *result; - bool temp1 = False ; - bool temp2 = False ; - bool temp3 = False ; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if (obj0) { - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - } - if (obj1) { - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - if (obj3) { - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1); - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_delete_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileConfig *arg1 = (wxFileConfig *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileConfig, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * FileConfig_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigBase *arg1 = (wxConfigBase *) 0 ; - wxString *arg2 = 0 ; - wxConfigPathChanger *result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "config",(char *) "entry", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1); - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_delete_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ConfigPathChanger_Name(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * ConfigPathChanger_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "sz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxExpandEnvVars((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; -} - - -static int _wrap_DateFormatStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only."); - return 1; -} - - -static PyObject *_wrap_DateFormatStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_TimeSpanFormatStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only."); - return 1; -} - - -static PyObject *_wrap_TimeSpanFormatStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_DateTime_SetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "country", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail; - arg1 = (wxDateTime::Country) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxDateTime::SetCountry((wxDateTime::Country )arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxDateTime::GetCountry(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) wxDateTime::Country_Default ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "country", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (wxDateTime::Country) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) wxDateTime::Gregorian ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "cal", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "year", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxDateTime::ConvertYearToBC(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) wxDateTime::Gregorian ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "cal", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_IsLeapYear(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) wxDateTime::Inv_Year ; - int arg2 = (int) wxDateTime::Gregorian ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "year",(char *) "cal", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetCentury(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) wxDateTime::Inv_Year ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "year", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxDateTime::GetCentury(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - int arg2 = (int) wxDateTime::Gregorian ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "year",(char *) "cal", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - if (obj1) { - arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - int arg2 = (int) wxDateTime::Inv_Year ; - int arg3 = (int) wxDateTime::Gregorian ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "month",(char *) "year",(char *) "cal", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; - arg1 = (wxDateTime::Month) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (wxDateTime::Calendar) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetMonthName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - int arg2 = (int) wxDateTime::Name_Full ; - wxString result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "month",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail; - arg1 = (wxDateTime::Month) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - if (obj1) { - arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - int arg2 = (int) wxDateTime::Name_Full ; - wxString result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "weekday",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail; - arg1 = (wxDateTime::WeekDay) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - if (obj1) { - arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = (wxString *) 0 ; - wxString *arg2 = (wxString *) 0 ; - bool temp1 = False ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "OUTPUT",(char *) "OUTPUT", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxDateTime::GetAmPmStrings(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) wxDateTime::Inv_Year ; - int arg2 = (int) wxDateTime::Country_Default ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "year",(char *) "country", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetBeginDST(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) wxDateTime::Inv_Year ; - int arg2 = (int) wxDateTime::Country_Default ; - wxDateTime result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "year",(char *) "country", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateTime * resultptr; - resultptr = new wxDateTime((wxDateTime &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetEndDST(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) wxDateTime::Inv_Year ; - int arg2 = (int) wxDateTime::Country_Default ; - wxDateTime result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "year",(char *) "country", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateTime * resultptr; - resultptr = new wxDateTime((wxDateTime &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_Now(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDateTime::Now(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateTime * resultptr; - resultptr = new wxDateTime((wxDateTime &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_UNow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDateTime::UNow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateTime * resultptr; - resultptr = new wxDateTime((wxDateTime &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_Today(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDateTime::Today(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateTime * resultptr; - resultptr = new wxDateTime((wxDateTime &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxDateTime *)new wxDateTime(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - time_t arg1 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "timet", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail; - arg1 = (time_t) SWIG_AsUnsignedInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxDateTime *)new wxDateTime(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_DateTimeFromJDN(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - double arg1 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "jdn", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail; - arg1 = (double) SWIG_AsDouble(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxDateTime *)new wxDateTime(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_DateTimeFromHMS(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - int arg2 = (int) 0 ; - int arg3 = (int) 0 ; - int arg4 = (int) 0 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_DateTimeFromDMY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - int arg2 = (int) wxDateTime::Inv_Month ; - int arg3 = (int) wxDateTime::Inv_Year ; - int arg4 = (int) 0 ; - int arg5 = (int) 0 ; - int arg6 = (int) 0 ; - int arg7 = (int) 0 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - if (obj1) { - arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - arg6 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - arg7 = (int) SWIG_AsInt(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_SetToCurrent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->SetToCurrent(); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_SetTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - time_t arg2 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "timet", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (time_t) SWIG_AsUnsignedInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->Set(arg2); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_SetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - double arg2 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "jdn", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (double) SWIG_AsDouble(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->Set(arg2); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_SetHMS(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 ; - int arg3 = (int) 0 ; - int arg4 = (int) 0 ; - int arg5 = (int) 0 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_Set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 ; - int arg3 = (int) wxDateTime::Inv_Month ; - int arg4 = (int) wxDateTime::Inv_Year ; - int arg5 = (int) 0 ; - int arg6 = (int) 0 ; - int arg7 = (int) 0 ; - int arg8 = (int) 0 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (wxDateTime::Month) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - arg6 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - arg7 = (int) SWIG_AsInt(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - arg8 = (int) SWIG_AsInt(obj7); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_ResetTime(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->ResetTime(); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_SetYear(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "year", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->SetYear(arg2); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_SetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "month", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_SetDay(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "day", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->SetDay(arg2); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_SetHour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "hour", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->SetHour(arg2); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_SetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "minute", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->SetMinute(arg2); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_SetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "second", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->SetSecond(arg2); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_SetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "millisecond", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 ; - int arg3 = (int) wxDateTime::Monday_First ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "weekday",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 ; - int arg3 = (int) wxDateTime::Monday_First ; - wxDateTime result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "weekday",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateTime * resultptr; - resultptr = new wxDateTime((wxDateTime &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "weekday", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 ; - wxDateTime result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "weekday", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateTime * resultptr; - resultptr = new wxDateTime((wxDateTime &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "weekday", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 ; - wxDateTime result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "weekday", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateTime * resultptr; - resultptr = new wxDateTime((wxDateTime &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 ; - int arg3 = (int) 1 ; - int arg4 = (int) wxDateTime::Inv_Month ; - int arg5 = (int) wxDateTime::Inv_Year ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (wxDateTime::Month) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 ; - int arg3 = (int) wxDateTime::Inv_Month ; - int arg4 = (int) wxDateTime::Inv_Year ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (wxDateTime::Month) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 ; - int arg3 = (int) wxDateTime::Inv_Month ; - int arg4 = (int) wxDateTime::Inv_Year ; - wxDateTime result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (wxDateTime::Month) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateTime * resultptr; - resultptr = new wxDateTime((wxDateTime &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 ; - int arg3 = (int) wxDateTime::Mon ; - int arg4 = (int) wxDateTime::Monday_First ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetWeek(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 ; - int arg3 = (int) wxDateTime::Mon ; - int arg4 = (int) wxDateTime::Monday_First ; - wxDateTime result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateTime * resultptr; - resultptr = new wxDateTime((wxDateTime &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 = (int) wxDateTime::Inv_Month ; - int arg3 = (int) wxDateTime::Inv_Year ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "month",(char *) "year", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 = (int) wxDateTime::Inv_Month ; - int arg3 = (int) wxDateTime::Inv_Year ; - wxDateTime result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "month",(char *) "year", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateTime * resultptr; - resultptr = new wxDateTime((wxDateTime &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_SetToYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "yday", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 ; - wxDateTime result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "yday", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetYearDay(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateTime * resultptr; - resultptr = new wxDateTime((wxDateTime &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - double result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (double)(arg1)->GetJulianDayNumber(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromDouble((double)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - double result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (double)(arg1)->GetJDN(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromDouble((double)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - double result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromDouble((double)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetMJD(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - double result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (double)(arg1)->GetMJD(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromDouble((double)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetRataDie(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - double result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (double)(arg1)->GetRataDie(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromDouble((double)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_ToTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime::TimeZone *arg2 = 0 ; - bool arg3 = (bool) False ; - wxDateTime result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "tz",(char *) "noDST", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); - temp2 = True; - } - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateTime * resultptr; - resultptr = new wxDateTime((wxDateTime &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); - } - { - if (temp2) delete arg2; - } - return resultobj; - fail: - { - if (temp2) delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DateTime_MakeTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime::TimeZone *arg2 = 0 ; - bool arg3 = (bool) False ; - wxDateTime *result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "tz",(char *) "noDST", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); - temp2 = True; - } - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - { - if (temp2) delete arg2; - } - return resultobj; - fail: - { - if (temp2) delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DateTime_ToGMT(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - bool arg2 = (bool) False ; - wxDateTime result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "noDST", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->ToGMT(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateTime * resultptr; - resultptr = new wxDateTime((wxDateTime &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_MakeGMT(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - bool arg2 = (bool) False ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "noDST", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->MakeGMT(arg2); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_IsDST(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 = (int) wxDateTime::Country_Default ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "country", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->IsDST((wxDateTime::Country )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxDateTime const *)arg1)->IsValid(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetTicks(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - time_t result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (time_t)((wxDateTime const *)arg1)->GetTicks(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedInt((unsigned int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_GetYear(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; - wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; - int result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "tz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - { - arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); - temp2 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp2) delete arg2; - } - return resultobj; - fail: - { - if (temp2) delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DateTime_GetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; - wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; - int result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "tz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - { - arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); - temp2 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp2) delete arg2; - } - return resultobj; - fail: - { - if (temp2) delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DateTime_GetDay(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; - wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; - int result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "tz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - { - arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); - temp2 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp2) delete arg2; - } - return resultobj; - fail: - { - if (temp2) delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DateTime_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; - wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; - int result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "tz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - { - arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); - temp2 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp2) delete arg2; - } - return resultobj; - fail: - { - if (temp2) delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DateTime_GetHour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; - wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; - int result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "tz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - { - arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); - temp2 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp2) delete arg2; - } - return resultobj; - fail: - { - if (temp2) delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DateTime_GetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; - wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; - int result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "tz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - { - arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); - temp2 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp2) delete arg2; - } - return resultobj; - fail: - { - if (temp2) delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DateTime_GetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; - wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; - int result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "tz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - { - arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); - temp2 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp2) delete arg2; - } - return resultobj; - fail: - { - if (temp2) delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DateTime_GetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; - wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; - int result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "tz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - { - arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); - temp2 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp2) delete arg2; - } - return resultobj; - fail: - { - if (temp2) delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; - wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; - int result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "tz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - { - arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); - temp2 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp2) delete arg2; - } - return resultobj; - fail: - { - if (temp2) delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 = (int) wxDateTime::Monday_First ; - wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; - wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; - int result; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flags",(char *) "tz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); - temp3 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp3) delete arg3; - } - return resultobj; - fail: - { - if (temp3) delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 = (int) wxDateTime::Monday_First ; - wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; - wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; - int result; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flags",(char *) "tz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); - temp3 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp3) delete arg3; - } - return resultobj; - fail: - { - if (temp3) delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_DateTime_IsWorkDay(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - int arg2 = (int) wxDateTime::Country_Default ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "country", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "datetime", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "datetime", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_IsLaterThan(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "datetime", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime *arg2 = 0 ; - wxDateTime *arg3 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "t1",(char *) "t2", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_IsBetween(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime *arg2 = 0 ; - wxDateTime *arg3 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "t1",(char *) "t2", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_IsSameDate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "dt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_IsSameTime(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "dt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime *arg2 = 0 ; - wxTimeSpan *arg3 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "dt",(char *) "ts", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_AddTS(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxTimeSpan *arg2 = 0 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "diff", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_AddDS(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateSpan *arg2 = 0 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "diff", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_SubtractTS(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxTimeSpan *arg2 = 0 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "diff", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_SubtractDS(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateSpan *arg2 = 0 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "diff", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime *arg2 = 0 ; - wxTimeSpan result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "dt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTimeSpan * resultptr; - resultptr = new wxTimeSpan((wxTimeSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxTimeSpan *arg2 = 0 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateSpan *arg2 = 0 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_DateTime___iadd____SWIG_0(self,args); - } - } - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_DateTime___iadd____SWIG_1(self,args); - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'"); - return NULL; -} - - -static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxTimeSpan *arg2 = 0 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateSpan *arg2 = 0 ; - wxDateTime *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); - result = (wxDateTime *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_DateTime___isub____SWIG_0(self,args); - } - } - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_DateTime___isub____SWIG_1(self,args); - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'"); - return NULL; -} - - -static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxTimeSpan *arg2 = 0 ; - wxDateTime result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateTime * resultptr; - resultptr = new wxDateTime((wxDateTime &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateSpan *arg2 = 0 ; - wxDateTime result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateTime * resultptr; - resultptr = new wxDateTime((wxDateTime &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_DateTime___add____SWIG_0(self,args); - } - } - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_DateTime___add____SWIG_1(self,args); - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'"); - return NULL; -} - - -static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime *arg2 = 0 ; - wxTimeSpan result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTimeSpan * resultptr; - resultptr = new wxTimeSpan((wxTimeSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxTimeSpan *arg2 = 0 ; - wxDateTime result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateTime * resultptr; - resultptr = new wxDateTime((wxDateTime &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateSpan *arg2 = 0 ; - wxDateTime result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateTime * resultptr; - resultptr = new wxDateTime((wxDateTime &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_DateTime___sub____SWIG_0(self,args); - } - } - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_DateTime___sub____SWIG_1(self,args); - } - } - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_DateTime___sub____SWIG_2(self,args); - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'"); - return NULL; -} - - -static PyObject *_wrap_DateTime___lt__(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime *arg2 = (wxDateTime *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime___le__(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime *arg2 = (wxDateTime *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime___gt__(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime *arg2 = (wxDateTime *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime___ge__(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime *arg2 = (wxDateTime *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime___eq__(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime *arg2 = (wxDateTime *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime___ne__(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxDateTime *arg2 = (wxDateTime *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxString *arg2 = 0 ; - int result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "date", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DateTime_ParseFormat(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxString *arg2 = 0 ; - wxString const &arg3_defvalue = wxPyDateFormatStr ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - wxDateTime const &arg4_defvalue = wxDefaultDateTime ; - wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ; - int result; - bool temp2 = False ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - if (obj3) { - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg4 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_DateTime_ParseDateTime(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxString *arg2 = 0 ; - int result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "datetime", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DateTime_ParseDate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxString *arg2 = 0 ; - int result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "date", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DateTime_ParseTime(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxString *arg2 = 0 ; - int result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "time", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DateTime_Format(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxString const &arg2_defvalue = wxPyDateFormatStr ; - wxString *arg2 = (wxString *) &arg2_defvalue ; - wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; - wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; - wxString result; - bool temp2 = False ; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "format",(char *) "tz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - } - if (obj2) { - { - arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); - temp3 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3); - - 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 (temp2) - delete arg2; - } - { - if (temp3) delete arg3; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - { - if (temp3) delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_DateTime_FormatDate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxDateTime const *)arg1)->FormatDate(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_FormatTime(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxDateTime const *)arg1)->FormatTime(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_FormatISODate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxDateTime const *)arg1)->FormatISODate(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateTime_FormatISOTime(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateTime *arg1 = (wxDateTime *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxDateTime const *)arg1)->FormatISOTime(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * DateTime_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_TimeSpan_Seconds(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - long arg1 ; - wxTimeSpan result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "sec", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail; - arg1 = (long) SWIG_AsLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxTimeSpan::Seconds(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTimeSpan * resultptr; - resultptr = new wxTimeSpan((wxTimeSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_Second(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxTimeSpan::Second(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTimeSpan * resultptr; - resultptr = new wxTimeSpan((wxTimeSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_Minutes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - long arg1 ; - wxTimeSpan result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "min", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail; - arg1 = (long) SWIG_AsLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxTimeSpan::Minutes(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTimeSpan * resultptr; - resultptr = new wxTimeSpan((wxTimeSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_Minute(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxTimeSpan::Minute(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTimeSpan * resultptr; - resultptr = new wxTimeSpan((wxTimeSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_Hours(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - long arg1 ; - wxTimeSpan result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "hours", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail; - arg1 = (long) SWIG_AsLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxTimeSpan::Hours(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTimeSpan * resultptr; - resultptr = new wxTimeSpan((wxTimeSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_Hour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxTimeSpan::Hour(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTimeSpan * resultptr; - resultptr = new wxTimeSpan((wxTimeSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - long arg1 ; - wxTimeSpan result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "days", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail; - arg1 = (long) SWIG_AsLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxTimeSpan::Days(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTimeSpan * resultptr; - resultptr = new wxTimeSpan((wxTimeSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxTimeSpan::Day(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTimeSpan * resultptr; - resultptr = new wxTimeSpan((wxTimeSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - long arg1 ; - wxTimeSpan result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "days", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail; - arg1 = (long) SWIG_AsLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxTimeSpan::Weeks(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTimeSpan * resultptr; - resultptr = new wxTimeSpan((wxTimeSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxTimeSpan::Week(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTimeSpan * resultptr; - resultptr = new wxTimeSpan((wxTimeSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - long arg1 = (long) 0 ; - long arg2 = (long) 0 ; - long arg3 = (long) 0 ; - long arg4 = (long) 0 ; - wxTimeSpan *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if (obj0) { - arg1 = (long) SWIG_AsLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (long) SWIG_AsLong(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - wxTimeSpan *arg2 = 0 ; - wxTimeSpan *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "diff", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); - result = (wxTimeSpan *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - wxTimeSpan *arg2 = 0 ; - wxTimeSpan *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "diff", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); - result = (wxTimeSpan *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - int arg2 ; - wxTimeSpan *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxTimeSpan &_result_ref = (arg1)->Multiply(arg2); - result = (wxTimeSpan *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - wxTimeSpan *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxTimeSpan &_result_ref = (arg1)->Neg(); - result = (wxTimeSpan *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_Abs(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - wxTimeSpan result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxTimeSpan const *)arg1)->Abs(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTimeSpan * resultptr; - resultptr = new wxTimeSpan((wxTimeSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - wxTimeSpan *arg2 = 0 ; - wxTimeSpan *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "diff", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); - result = (wxTimeSpan *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - wxTimeSpan *arg2 = 0 ; - wxTimeSpan *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "diff", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); - result = (wxTimeSpan *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - int arg2 ; - wxTimeSpan *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxTimeSpan &_result_ref = (arg1)->operator *=(arg2); - result = (wxTimeSpan *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - wxTimeSpan *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxTimeSpan &_result_ref = (arg1)->operator -(); - result = (wxTimeSpan *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - wxTimeSpan *arg2 = 0 ; - wxTimeSpan result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTimeSpan * resultptr; - resultptr = new wxTimeSpan((wxTimeSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - wxTimeSpan *arg2 = 0 ; - wxTimeSpan result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTimeSpan * resultptr; - resultptr = new wxTimeSpan((wxTimeSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - int arg2 ; - wxTimeSpan result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxTimeSpan___mul__(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTimeSpan * resultptr; - resultptr = new wxTimeSpan((wxTimeSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - int arg2 ; - wxTimeSpan result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxTimeSpan___rmul__(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxTimeSpan * resultptr; - resultptr = new wxTimeSpan((wxTimeSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan___lt__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan___le__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan___gt__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan___ge__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTimeSpan const *)arg1)->IsNull(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_IsPositive(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTimeSpan const *)arg1)->IsPositive(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_IsNegative(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTimeSpan const *)arg1)->IsNegative(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - wxTimeSpan *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "ts", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - wxTimeSpan *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "ts", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - wxTimeSpan *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "t", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxTimeSpan const *)arg1)->GetWeeks(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxTimeSpan const *)arg1)->GetDays(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_GetHours(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxTimeSpan const *)arg1)->GetHours(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxTimeSpan const *)arg1)->GetMinutes(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - wxLongLong result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxTimeSpan const *)arg1)->GetSeconds(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyObject *hi, *lo, *shifter, *shifted; - hi = PyLong_FromLong( (&result)->GetHi() ); - lo = PyLong_FromLong( (&result)->GetLo() ); - shifter = PyLong_FromLong(32); - shifted = PyNumber_Lshift(hi, shifter); - resultobj = PyNumber_Or(shifted, lo); - Py_DECREF(hi); - Py_DECREF(lo); - Py_DECREF(shifter); - Py_DECREF(shifted); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - wxLongLong result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxTimeSpan const *)arg1)->GetMilliseconds(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyObject *hi, *lo, *shifter, *shifted; - hi = PyLong_FromLong( (&result)->GetHi() ); - lo = PyLong_FromLong( (&result)->GetLo() ); - shifter = PyLong_FromLong(32); - shifted = PyNumber_Lshift(hi, shifter); - resultobj = PyNumber_Or(shifted, lo); - Py_DECREF(hi); - Py_DECREF(lo); - Py_DECREF(shifter); - Py_DECREF(shifted); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TimeSpan_Format(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; - wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ; - wxString *arg2 = (wxString *) &arg2_defvalue ; - wxString result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "format", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2); - - 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 (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject * TimeSpan_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - int arg2 = (int) 0 ; - int arg3 = (int) 0 ; - int arg4 = (int) 0 ; - wxDateSpan *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan *arg1 = (wxDateSpan *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - wxDateSpan result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "days", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDateSpan::Days(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateSpan * resultptr; - resultptr = new wxDateSpan((wxDateSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDateSpan::Day(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateSpan * resultptr; - resultptr = new wxDateSpan((wxDateSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - wxDateSpan result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "weeks", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDateSpan::Weeks(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateSpan * resultptr; - resultptr = new wxDateSpan((wxDateSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDateSpan::Week(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateSpan * resultptr; - resultptr = new wxDateSpan((wxDateSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan_Months(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - wxDateSpan result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "mon", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDateSpan::Months(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateSpan * resultptr; - resultptr = new wxDateSpan((wxDateSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan_Month(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDateSpan::Month(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateSpan * resultptr; - resultptr = new wxDateSpan((wxDateSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan_Years(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - wxDateSpan result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "years", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail; - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDateSpan::Years(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateSpan * resultptr; - resultptr = new wxDateSpan((wxDateSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan_Year(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDateSpan::Year(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateSpan * resultptr; - resultptr = new wxDateSpan((wxDateSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan_SetYears(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan *arg1 = (wxDateSpan *) 0 ; - int arg2 ; - wxDateSpan *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateSpan &_result_ref = (arg1)->SetYears(arg2); - result = (wxDateSpan *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan_SetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan *arg1 = (wxDateSpan *) 0 ; - int arg2 ; - wxDateSpan *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateSpan &_result_ref = (arg1)->SetMonths(arg2); - result = (wxDateSpan *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan_SetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan *arg1 = (wxDateSpan *) 0 ; - int arg2 ; - wxDateSpan *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2); - result = (wxDateSpan *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan_SetDays(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan *arg1 = (wxDateSpan *) 0 ; - int arg2 ; - wxDateSpan *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateSpan &_result_ref = (arg1)->SetDays(arg2); - result = (wxDateSpan *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan_GetYears(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan *arg1 = (wxDateSpan *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDateSpan const *)arg1)->GetYears(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan_GetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan *arg1 = (wxDateSpan *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDateSpan const *)arg1)->GetMonths(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan *arg1 = (wxDateSpan *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDateSpan const *)arg1)->GetWeeks(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan *arg1 = (wxDateSpan *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDateSpan const *)arg1)->GetDays(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan *arg1 = (wxDateSpan *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDateSpan const *)arg1)->GetTotalDays(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan *arg1 = (wxDateSpan *) 0 ; - wxDateSpan *arg2 = 0 ; - wxDateSpan *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); - result = (wxDateSpan *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan *arg1 = (wxDateSpan *) 0 ; - wxDateSpan *arg2 = 0 ; - wxDateSpan *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); - result = (wxDateSpan *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan *arg1 = (wxDateSpan *) 0 ; - wxDateSpan *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateSpan &_result_ref = (arg1)->Neg(); - result = (wxDateSpan *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan *arg1 = (wxDateSpan *) 0 ; - int arg2 ; - wxDateSpan *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "factor", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateSpan &_result_ref = (arg1)->Multiply(arg2); - result = (wxDateSpan *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan *arg1 = (wxDateSpan *) 0 ; - wxDateSpan *arg2 = 0 ; - wxDateSpan *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); - result = (wxDateSpan *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan *arg1 = (wxDateSpan *) 0 ; - wxDateSpan *arg2 = 0 ; - wxDateSpan *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); - result = (wxDateSpan *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan *arg1 = (wxDateSpan *) 0 ; - wxDateSpan *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateSpan &_result_ref = (arg1)->operator -(); - result = (wxDateSpan *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan *arg1 = (wxDateSpan *) 0 ; - int arg2 ; - wxDateSpan *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "factor", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDateSpan &_result_ref = (arg1)->operator *=(arg2); - result = (wxDateSpan *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan *arg1 = (wxDateSpan *) 0 ; - wxDateSpan *arg2 = 0 ; - wxDateSpan result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateSpan * resultptr; - resultptr = new wxDateSpan((wxDateSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan *arg1 = (wxDateSpan *) 0 ; - wxDateSpan *arg2 = 0 ; - wxDateSpan result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateSpan * resultptr; - resultptr = new wxDateSpan((wxDateSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan *arg1 = (wxDateSpan *) 0 ; - int arg2 ; - wxDateSpan result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDateSpan___mul__(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateSpan * resultptr; - resultptr = new wxDateSpan((wxDateSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan *arg1 = (wxDateSpan *) 0 ; - int arg2 ; - wxDateSpan result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxDateSpan___rmul__(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDateSpan * resultptr; - resultptr = new wxDateSpan((wxDateSpan &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan *arg1 = (wxDateSpan *) 0 ; - wxDateSpan *arg2 = (wxDateSpan *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DateSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDateSpan *arg1 = (wxDateSpan *) 0 ; - wxDateSpan *arg2 = (wxDateSpan *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * DateSpan_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_GetLocalTime(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - long result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)wxGetLocalTime(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GetUTCTime(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - long result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)wxGetUTCTime(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GetCurrentTime(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - long result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)wxGetCurrentTime(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_GetLocalTimeMillis(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLongLong result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxGetLocalTimeMillis(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyObject *hi, *lo, *shifter, *shifted; - hi = PyLong_FromLong( (&result)->GetHi() ); - lo = PyLong_FromLong( (&result)->GetLo() ); - shifter = PyLong_FromLong(32); - shifted = PyNumber_Lshift(hi, shifter); - resultobj = PyNumber_Or(shifted, lo); - Py_DECREF(hi); - Py_DECREF(lo); - Py_DECREF(shifter); - Py_DECREF(shifted); - } - return resultobj; - fail: - return NULL; -} - - -static int _wrap_DefaultDateTime_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only."); - return 1; -} - - -static PyObject *_wrap_DefaultDateTime_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0); - return pyobj; -} - - -static PyObject *_wrap_new_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - wxDataFormat *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "type", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail; - arg1 = (wxDataFormatId) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_CustomDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxDataFormat *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "format", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1); - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_delete_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDataFormat *arg1 = (wxDataFormat *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxDataFormat *arg1 = (wxDataFormat *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxDataFormatId) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxDataFormat *arg1 = (wxDataFormat *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxDataFormatId) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxDataFormat *arg1 = (wxDataFormat *) 0 ; - wxDataFormat *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_DataFormat___eq____SWIG_1(self,args); - } - } - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - _v = SWIG_CheckInt(argv[1]); - if (_v) { - return _wrap_DataFormat___eq____SWIG_0(self,args); - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'"); - return NULL; -} - - -static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxDataFormat *arg1 = (wxDataFormat *) 0 ; - wxDataFormat *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_DataFormat___ne____SWIG_1(self,args); - } - } - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - _v = SWIG_CheckInt(argv[1]); - if (_v) { - return _wrap_DataFormat___ne____SWIG_0(self,args); - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'"); - return NULL; -} - - -static PyObject *_wrap_DataFormat_SetType(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDataFormat *arg1 = (wxDataFormat *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "format", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxDataFormatId) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetType((wxDataFormatId )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DataFormat_GetType(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDataFormat *arg1 = (wxDataFormat *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDataFormat const *)arg1)->GetType(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DataFormat_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDataFormat *arg1 = (wxDataFormat *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxDataFormat const *)arg1)->GetId(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DataFormat_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDataFormat *arg1 = (wxDataFormat *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "format", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetId((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject * DataFormat_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_FormatInvalid_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only."); - return 1; -} - - -static PyObject *_wrap_FormatInvalid_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0); - return pyobj; -} - - -static PyObject *_wrap_delete_DataObject(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDataObject *arg1 = (wxDataObject *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDataObject *arg1 = (wxDataObject *) 0 ; - int arg2 = (int) wxDataObject::Get ; - SwigValueWrapper< wxDataFormat > result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "dir", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxDataFormat * resultptr; - resultptr = new wxDataFormat((wxDataFormat &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DataObject_GetFormatCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDataObject *arg1 = (wxDataObject *) 0 ; - int arg2 = (int) wxDataObject::Get ; - size_t result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "dir", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DataObject_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDataObject *arg1 = (wxDataObject *) 0 ; - wxDataFormat *arg2 = 0 ; - int arg3 = (int) wxDataObject::Get ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "format",(char *) "dir", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if (obj2) { - arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DataObject_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDataObject *arg1 = (wxDataObject *) 0 ; - wxDataFormat *arg2 = 0 ; - size_t result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "format", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DataObject_GetAllFormats(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDataObject *arg1 = (wxDataObject *) 0 ; - wxDataFormat *arg2 = (wxDataFormat *) 0 ; - int arg3 = (int) wxDataObject::Get ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "formats",(char *) "dir", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxDataObject const *)arg1)->GetAllFormats(arg2,(wxDataObject::Direction )arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DataObject_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDataObject *arg1 = (wxDataObject *) 0 ; - wxDataFormat *arg2 = 0 ; - void *arg3 = (void *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "format",(char *) "buf", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_GetDataHere",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxDataObject const *)arg1)->GetDataHere((wxDataFormat const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDataObject *arg1 = (wxDataObject *) 0 ; - wxDataFormat *arg2 = 0 ; - size_t arg3 ; - void *arg4 = (void *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "format",(char *) "len",(char *) "buf", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - arg3 = (size_t) SWIG_AsUnsignedLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj3,&arg4,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetData((wxDataFormat const &)*arg2,arg3,(void const *)arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * DataObject_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_DataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDataFormat const &arg1_defvalue = wxFormatInvalid ; - wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; - wxDataObjectSimple *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "format", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail; - if (obj0) { - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; - wxDataFormat *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxDataFormat const &_result_ref = (arg1)->GetFormat(); - result = (wxDataFormat *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; - wxDataFormat *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "format", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFormat((wxDataFormat const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * DataObjectSimple_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PyDataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDataFormat const &arg1_defvalue = wxFormatInvalid ; - wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; - wxPyDataObjectSimple *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "format", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail; - if (obj0) { - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDataObjectSimple, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * PyDataObjectSimple_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_DataObjectComposite(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDataObjectComposite *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxDataObjectComposite *)new wxDataObjectComposite(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DataObjectComposite_Add(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ; - wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ; - int arg3 = (int) False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "dataObject",(char *) "preferred", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectComposite, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObjectSimple, - SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Add(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * DataObjectComposite_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_TextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString const &arg1_defvalue = wxPyEmptyString ; - wxString *arg1 = (wxString *) &arg1_defvalue ; - wxTextDataObject *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "text", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail; - if (obj0) { - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1); - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; - size_t result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (size_t)(arg1)->GetTextLength(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextDataObject_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetText(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextDataObject_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "text", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetText((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject * TextDataObject_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PyTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString const &arg1_defvalue = wxPyEmptyString ; - wxString *arg1 = (wxString *) &arg1_defvalue ; - wxPyTextDataObject *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "text", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail; - if (obj0) { - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1); - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * PyTextDataObject_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_BitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap const &arg1_defvalue = wxNullBitmap ; - wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; - wxBitmapDataObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "bitmap", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail; - if (obj0) { - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; - wxBitmap result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxBitmapDataObject const *)arg1)->GetBitmap(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxBitmap * resultptr; - resultptr = new wxBitmap((wxBitmap &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; - wxBitmap *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bitmap", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetBitmap((wxBitmap const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * BitmapDataObject_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PyBitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap const &arg1_defvalue = wxNullBitmap ; - wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; - wxPyBitmapDataObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "bitmap", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail; - if (obj0) { - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * PyBitmapDataObject_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_FileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileDataObject *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFileDataObject *)new wxFileDataObject(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; - wxArrayString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxArrayString const &_result_ref = (arg1)->GetFilenames(); - result = (wxArrayString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxArrayString2PyList_helper(*result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileDataObject_AddFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "filename", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AddFile((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject * FileDataObject_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDataFormat const &arg1_defvalue = wxFormatInvalid ; - wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; - wxCustomDataObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "format", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail; - if (obj0) { - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CustomDataObject_TakeData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_TakeData",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxCustomDataObject_TakeData(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CustomDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxCustomDataObject_SetData(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CustomDataObject_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; - size_t result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (size_t)(arg1)->GetSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CustomDataObject_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxCustomDataObject_GetData(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject * CustomDataObject_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_URLDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxURLDataObject *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxURLDataObject *)new wxURLDataObject(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_URLDataObject_GetURL(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetURL(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_URLDataObject_SetURL(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "url", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetURL((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject * URLDataObject_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_MetafileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMetafileDataObject *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMetafileDataObject *)new wxMetafileDataObject(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MetafileDataObject_SetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ; - wxMetafile *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "metafile", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MetafileDataObject_SetMetafile",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMetafile, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMetafile((wxMetafile const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MetafileDataObject_GetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ; - wxMetafile result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetafileDataObject_GetMetafile",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxMetafileDataObject const *)arg1)->GetMetafile(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxMetafile * resultptr; - resultptr = new wxMetafile((wxMetafile &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxMetafile, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * MetafileDataObject_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_IsDragResultOk(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "res", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail; - arg1 = (wxDragResult) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxIsDragResultOk((wxDragResult )arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxCursor const &arg2_defvalue = wxNullCursor ; - wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; - wxCursor const &arg3_defvalue = wxNullCursor ; - wxCursor *arg3 = (wxCursor *) &arg3_defvalue ; - wxCursor const &arg4_defvalue = wxNullCursor ; - wxCursor *arg4 = (wxCursor *) &arg4_defvalue ; - wxPyDropSource *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj2) { - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - if (obj3) { - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxCursor, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg4 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxCursor const &)*arg2,(wxCursor const &)*arg3,(wxCursor const &)*arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - int arg4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DropSource_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; - wxDataObject *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetData(*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DropSource_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; - wxDataObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxDataObject *)(arg1)->GetDataObject(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DropSource_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; - int arg2 ; - wxCursor *arg3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "res",(char *) "cursor", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxDragResult) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DropSource_DoDragDrop(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; - int arg2 = (int) wxDrag_CopyOnly ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->DoDragDrop(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "effect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxDragResult) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * DropSource_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDataObject *arg1 = (wxDataObject *) NULL ; - wxPyDropTarget *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "dataObject", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail; - if (obj0) { - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, - SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyDropTarget *)new wxPyDropTarget(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DropTarget_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; - wxDataObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxDataObject *)(arg1)->GetDataObject(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DropTarget_SetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; - wxDataObject *arg2 = (wxDataObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "dataObject", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, - SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDataObject(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (wxDragResult) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (wxDragResult) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_OnLeave(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; - int arg2 ; - int arg3 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_OnDrop(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DropTarget_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetData(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * DropTarget_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_TextDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTextDropTarget *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyTextDropTarget *)new wxPyTextDropTarget(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (wxDragResult) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (wxDragResult) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_OnLeave(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; - int arg2 ; - int arg3 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_OnDrop(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (wxDragResult) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * TextDropTarget_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_FileDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFileDropTarget *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyFileDropTarget *)new wxPyFileDropTarget(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (wxDragResult) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (wxDragResult) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_OnLeave(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; - int arg2 ; - int arg3 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_OnDrop(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (wxDragResult) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * FileDropTarget_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxClipboard *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxClipboard *)new wxClipboard(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxClipboard *arg1 = (wxClipboard *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Clipboard_Open(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxClipboard *arg1 = (wxClipboard *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Open(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Clipboard_Close(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxClipboard *arg1 = (wxClipboard *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Close(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Clipboard_IsOpened(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxClipboard *arg1 = (wxClipboard *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxClipboard const *)arg1)->IsOpened(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Clipboard_AddData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxClipboard *arg1 = (wxClipboard *) 0 ; - wxDataObject *arg2 = (wxDataObject *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, - SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->AddData(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Clipboard_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxClipboard *arg1 = (wxClipboard *) 0 ; - wxDataObject *arg2 = (wxDataObject *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, - SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetData(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Clipboard_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxClipboard *arg1 = (wxClipboard *) 0 ; - wxDataFormat *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "format", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Clipboard_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxClipboard *arg1 = (wxClipboard *) 0 ; - wxDataObject *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetData(*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Clipboard_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxClipboard *arg1 = (wxClipboard *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Clear(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Clipboard_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxClipboard *arg1 = (wxClipboard *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Flush(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxClipboard *arg1 = (wxClipboard *) 0 ; - bool arg2 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "primary", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->UsePrimarySelection(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * Clipboard_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_TheClipboard_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable TheClipboard is read-only."); - return 1; -} - - -static PyObject *_wrap_TheClipboard_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(wxTheClipboard), SWIGTYPE_p_wxClipboard, 0); - return pyobj; -} - - -static PyObject *_wrap_new_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxClipboard *arg1 = (wxClipboard *) NULL ; - wxClipboardLocker *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "clipboard", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail; - if (obj0) { - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxClipboardLocker *)new wxClipboardLocker(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxClipboardLocker___nonzero__(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * ClipboardLocker_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - int arg2 = (int) 0 ; - int arg3 = (int) 0 ; - int arg4 = (int) 0 ; - wxVideoMode *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVideoMode, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxVideoMode *arg1 = (wxVideoMode *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VideoMode",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VideoMode_Matches(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxVideoMode *arg1 = (wxVideoMode *) 0 ; - wxVideoMode *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VideoMode_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxVideoMode *arg1 = (wxVideoMode *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetWidth",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxVideoMode const *)arg1)->GetWidth(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VideoMode_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxVideoMode *arg1 = (wxVideoMode *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetHeight",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxVideoMode const *)arg1)->GetHeight(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VideoMode_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxVideoMode *arg1 = (wxVideoMode *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetDepth",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxVideoMode const *)arg1)->GetDepth(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VideoMode_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxVideoMode *arg1 = (wxVideoMode *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_IsOk",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxVideoMode const *)arg1)->IsOk(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VideoMode___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxVideoMode *arg1 = (wxVideoMode *) 0 ; - wxVideoMode *arg2 = (wxVideoMode *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VideoMode___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxVideoMode *arg1 = (wxVideoMode *) 0 ; - wxVideoMode *arg2 = (wxVideoMode *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "other", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VideoMode_w_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxVideoMode *arg1 = (wxVideoMode *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "w", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_w_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->w = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VideoMode_w_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxVideoMode *arg1 = (wxVideoMode *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_w_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->w); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VideoMode_h_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxVideoMode *arg1 = (wxVideoMode *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "h", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_h_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->h = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VideoMode_h_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxVideoMode *arg1 = (wxVideoMode *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_h_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->h); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VideoMode_bpp_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxVideoMode *arg1 = (wxVideoMode *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bpp", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_bpp_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->bpp = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VideoMode_bpp_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxVideoMode *arg1 = (wxVideoMode *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_bpp_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->bpp); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VideoMode_refresh_set(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxVideoMode *arg1 = (wxVideoMode *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "refresh", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_refresh_set",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->refresh = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VideoMode_refresh_get(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxVideoMode *arg1 = (wxVideoMode *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_refresh_get",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - result = (int) ((arg1)->refresh); - - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * VideoMode_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxVideoMode, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_DefaultVideoMode_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable DefaultVideoMode is read-only."); - return 1; -} - - -static PyObject *_wrap_DefaultVideoMode_get() { - PyObject *pyobj; - - pyobj = SWIG_NewPointerObj((void *)(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0); - return pyobj; -} - - -static PyObject *_wrap_new_Display(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - size_t arg1 = (size_t) 0 ; - wxDisplay *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "index", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (size_t) SWIG_AsUnsignedLong(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxDisplay *)new wxDisplay(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplay, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_Display(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDisplay *arg1 = (wxDisplay *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Display",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Display_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - size_t result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Display_GetCount",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (size_t)wxDisplay::GetCount(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Display_GetFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPoint *arg1 = 0 ; - int result; - wxPoint temp1 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) goto fail; - { - arg1 = &temp1; - if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Display_GetFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "window", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxDisplay::GetFromWindow(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Display_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDisplay *arg1 = (wxDisplay *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsOk",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxDisplay const *)arg1)->IsOk(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Display_GetGeometry(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDisplay *arg1 = (wxDisplay *) 0 ; - wxRect result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetGeometry",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxDisplay const *)arg1)->GetGeometry(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxRect * resultptr; - resultptr = new wxRect((wxRect &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Display_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDisplay *arg1 = (wxDisplay *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetName",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxDisplay const *)arg1)->GetName(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Display_IsPrimary(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDisplay *arg1 = (wxDisplay *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsPrimary",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxDisplay const *)arg1)->IsPrimary(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Display_GetModes(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDisplay *arg1 = (wxDisplay *) 0 ; - wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ; - wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ; - PyObject *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "mode", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Display_GetCurrentMode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDisplay *arg1 = (wxDisplay *) 0 ; - wxVideoMode result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetCurrentMode",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxDisplay const *)arg1)->GetCurrentMode(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxVideoMode * resultptr; - resultptr = new wxVideoMode((wxVideoMode &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVideoMode, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Display_ChangeMode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDisplay *arg1 = (wxDisplay *) 0 ; - wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ; - wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "mode", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->ChangeMode((wxVideoMode const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Display_ResetMode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDisplay *arg1 = (wxDisplay *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_ResetMode",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ResetMode(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * Display_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxDisplay, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyMethodDef SwigMethods[] = { - { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS }, - { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS }, - { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS }, - { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Usleep", (PyCFunction) _wrap_Usleep, METH_VARARGS | METH_KEYWORDS }, - { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS }, - { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS }, - { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS }, - { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS }, - { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS }, - { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS }, - { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS }, - { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS }, - { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS }, - { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS }, - { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS }, - { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS }, - { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS }, - { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS }, - { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS }, - { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS }, - { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS }, - { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS }, - { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS }, - { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS }, - { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS }, - { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS }, - { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS }, - { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS }, - { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS }, - { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS }, - { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS }, - { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS }, - { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS }, - { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS }, - { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS }, - { (char *)"new_Sound", _wrap_new_Sound, METH_VARARGS }, - { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sound_Create", _wrap_Sound_Create, METH_VARARGS }, - { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sound_Play", _wrap_Sound_Play, METH_VARARGS }, - { (char *)"Sound_PlaySound", _wrap_Sound_PlaySound, METH_VARARGS }, - { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS }, - { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS }, - { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS }, - { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS }, - { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS }, - { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS }, - { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS }, - { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS }, - { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS }, - { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS }, - { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS }, - { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS }, - { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS }, - { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS }, - { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS }, - { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS }, - { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS }, - { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS }, - { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS }, - { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS }, - { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS }, - { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS }, - { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS }, - { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS }, - { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS }, - { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS }, - { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS }, - { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS }, - { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS }, - { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS }, - { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS }, - { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS }, - { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS }, - { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS }, - { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS }, - { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CustomDataObject_TakeData", (PyCFunction) _wrap_CustomDataObject_TakeData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS }, - { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS }, - { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS }, - { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS }, - { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS }, - { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MetafileDataObject_SetMetafile", (PyCFunction) _wrap_MetafileDataObject_SetMetafile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MetafileDataObject_GetMetafile", (PyCFunction) _wrap_MetafileDataObject_GetMetafile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS }, - { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS }, - { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS }, - { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS }, - { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS }, - { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS }, - { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS }, - { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_VideoMode", (PyCFunction) _wrap_delete_VideoMode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VideoMode_GetWidth", (PyCFunction) _wrap_VideoMode_GetWidth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VideoMode_GetHeight", (PyCFunction) _wrap_VideoMode_GetHeight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VideoMode_GetDepth", (PyCFunction) _wrap_VideoMode_GetDepth, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VideoMode_IsOk", (PyCFunction) _wrap_VideoMode_IsOk, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VideoMode_w_set", (PyCFunction) _wrap_VideoMode_w_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VideoMode_w_get", (PyCFunction) _wrap_VideoMode_w_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VideoMode_h_set", (PyCFunction) _wrap_VideoMode_h_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VideoMode_h_get", (PyCFunction) _wrap_VideoMode_h_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VideoMode_bpp_set", (PyCFunction) _wrap_VideoMode_bpp_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VideoMode_bpp_get", (PyCFunction) _wrap_VideoMode_bpp_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VideoMode_refresh_set", (PyCFunction) _wrap_VideoMode_refresh_set, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VideoMode_refresh_get", (PyCFunction) _wrap_VideoMode_refresh_get, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS }, - { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_Display", (PyCFunction) _wrap_delete_Display, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Display_GetCount", (PyCFunction) _wrap_Display_GetCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Display_IsOk", (PyCFunction) _wrap_Display_IsOk, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Display_GetGeometry", (PyCFunction) _wrap_Display_GetGeometry, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Display_GetName", (PyCFunction) _wrap_Display_GetName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Display_IsPrimary", (PyCFunction) _wrap_Display_IsPrimary, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Display_GetCurrentMode", (PyCFunction) _wrap_Display_GetCurrentMode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Display_ResetMode", (PyCFunction) _wrap_Display_ResetMode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS }, - { NULL, NULL } -}; - - -/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ - -static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); -} -static void *_p_wxMenuEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxMenuEvent *) x)); -} -static void *_p_wxCloseEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxCloseEvent *) x)); -} -static void *_p_wxMouseEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxMouseEvent *) x)); -} -static void *_p_wxEraseEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxEraseEvent *) x)); -} -static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); -} -static void *_p_wxTimerEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxTimerEvent *) x)); -} -static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); -} -static void *_p_wxScrollEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); -} -static void *_p_wxPyEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxPyEvent *) x)); -} -static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); -} -static void *_p_wxJoystickEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxJoystickEvent *) x)); -} -static void *_p_wxIdleEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxIdleEvent *) x)); -} -static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); -} -static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); -} -static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); -} -static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxIconizeEvent *) x)); -} -static void *_p_wxActivateEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxActivateEvent *) x)); -} -static void *_p_wxSizeEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxSizeEvent *) x)); -} -static void *_p_wxMoveEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxMoveEvent *) x)); -} -static void *_p_wxPaintEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxPaintEvent *) x)); -} -static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); -} -static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); -} -static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); -} -static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); -} -static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); -} -static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); -} -static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); -} -static void *_p_wxFocusEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxFocusEvent *) x)); -} -static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); -} -static void *_p_wxProcessEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxProcessEvent *) x)); -} -static void *_p_wxShowEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxShowEvent *) x)); -} -static void *_p_wxCommandEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxCommandEvent *) x)); -} -static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); -} -static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); -} -static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); -} -static void *_p_wxKeyEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxKeyEvent *) x)); -} -static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); -} -static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) { - return (void *)((wxConfigBase *) ((wxFileConfig *) x)); -} -static void *_p_wxConfigTo_p_wxConfigBase(void *x) { - return (void *)((wxConfigBase *) ((wxConfig *) x)); -} -static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) { - return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); -} -static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) { - return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x)); -} -static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) { - return (void *)((wxDataObject *) ((wxDataObjectSimple *) x)); -} -static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) { - return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); -} -static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) { - return (void *)((wxDataObject *) ((wxDataObjectComposite *) x)); -} -static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) { - return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x)); -} -static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) { - return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x)); -} -static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) { - return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x)); -} -static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) { - return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); -} -static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) { - return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x)); -} -static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) { - return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x)); -} -static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) { - return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x)); -} -static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) { - return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x)); -} -static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) { - return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x)); -} -static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) { - return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); -} -static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) { - return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x)); -} -static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) { - return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x)); -} -static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { - return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x)); -} -static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { - return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); -} -static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) { - return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x)); -} -static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) { - return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x)); -} -static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) { - return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x)); -} -static void *_p_wxControlTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); -} -static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) ((wxWindow *) x)); -} -static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); -} -static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) ((wxPyApp *) x)); -} -static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) ((wxPyTimer *) x)); -} -static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) ((wxValidator *) x)); -} -static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); -} -static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); -} -static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) ((wxMenu *) x)); -} -static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) ((wxPyProcess *) x)); -} -static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) { - return (void *)((wxTipProvider *) ((wxPyTipProvider *) x)); -} -static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxLayoutConstraints *) x)); -} -static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); -} -static void *_p_wxSizerItemTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxSizerItem *) x)); -} -static void *_p_wxScrollEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); -} -static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); -} -static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); -} -static void *_p_wxBoxSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); -} -static void *_p_wxSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxSizer *) x)); -} -static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); -} -static void *_p_wxFileHistoryTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxFileHistory *) x)); -} -static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); -} -static void *_p_wxEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxEvent *) x)); -} -static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); -} -static void *_p_wxGridSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); -} -static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); -} -static void *_p_wxPaintEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); -} -static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); -} -static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); -} -static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); -} -static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); -} -static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); -} -static void *_p_wxControlTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); -} -static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); -} -static void *_p_wxTimerEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x)); -} -static void *_p_wxFSFileTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxFSFile *) x)); -} -static void *_p_wxClipboardTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxClipboard *) x)); -} -static void *_p_wxPySizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); -} -static void *_p_wxPyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); -} -static void *_p_wxNotifyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); -} -static void *_p_wxShowEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); -} -static void *_p_wxToolTipTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxToolTip *) x)); -} -static void *_p_wxMenuItemTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxMenuItem *) x)); -} -static void *_p_wxIdleEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); -} -static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); -} -static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); -} -static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); -} -static void *_p_wxIconizeEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); -} -static void *_p_wxSizeEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); -} -static void *_p_wxMoveEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); -} -static void *_p_wxActivateEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); -} -static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); -} -static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); -} -static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); -} -static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); -} -static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); -} -static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); -} -static void *_p_wxANIHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); -} -static void *_p_wxCURHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); -} -static void *_p_wxICOHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); -} -static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); -} -static void *_p_wxImageHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxImageHandler *) x)); -} -static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); -} -static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxEvtHandler *) x)); -} -static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxAcceleratorTable *) x)); -} -static void *_p_wxImageTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxImage *) x)); -} -static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); -} -static void *_p_wxSystemOptionsTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxSystemOptions *) x)); -} -static void *_p_wxJoystickEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x)); -} -static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); -} -static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); -} -static void *_p_wxKeyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); -} -static void *_p_wxWindowTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); -} -static void *_p_wxMenuTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); -} -static void *_p_wxMenuBarTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); -} -static void *_p_wxPyProcessTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x)); -} -static void *_p_wxFileSystemTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxFileSystem *) x)); -} -static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); -} -static void *_p_wxMenuEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); -} -static void *_p_wxPyAppTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); -} -static void *_p_wxCloseEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); -} -static void *_p_wxMouseEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); -} -static void *_p_wxEraseEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); -} -static void *_p_wxBusyInfoTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxBusyInfo *) x)); -} -static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); -} -static void *_p_wxCommandEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); -} -static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); -} -static void *_p_wxFocusEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); -} -static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); -} -static void *_p_wxProcessEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x)); -} -static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); -} -static void *_p_wxPyValidatorTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); -} -static void *_p_wxValidatorTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); -} -static void *_p_wxPyTimerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x)); -} -static void *_p_wxLogStderrTo_p_wxLog(void *x) { - return (void *)((wxLog *) ((wxLogStderr *) x)); -} -static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) { - return (void *)((wxLog *) ((wxLogTextCtrl *) x)); -} -static void *_p_wxLogWindowTo_p_wxLog(void *x) { - return (void *)((wxLog *) ((wxLogWindow *) x)); -} -static void *_p_wxLogChainTo_p_wxLog(void *x) { - return (void *)((wxLog *) ((wxLogChain *) x)); -} -static void *_p_wxLogGuiTo_p_wxLog(void *x) { - return (void *)((wxLog *) ((wxLogGui *) x)); -} -static void *_p_wxPyLogTo_p_wxLog(void *x) { - return (void *)((wxLog *) ((wxPyLog *) x)); -} -static void *_p_wxControlTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) ((wxControl *) x)); -} -static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); -} -static void *_p_wxMenuBarTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) ((wxMenuBar *) x)); -} -static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) { - return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x)); -} -static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) { - return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x)); -} -static swig_type_info _swigt__p_wxLogChain[] = {{"_p_wxLogChain", 0, "wxLogChain *", 0, 0, 0, 0},{"_p_wxLogChain", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMutexGuiLocker[] = {{"_p_wxMutexGuiLocker", 0, "wxMutexGuiLocker *", 0, 0, 0, 0},{"_p_wxMutexGuiLocker", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMetafile[] = {{"_p_wxMetafile", 0, "wxMetafile *", 0, 0, 0, 0},{"_p_wxMetafile", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFileHistory[] = {{"_p_wxFileHistory", 0, "wxFileHistory *", 0, 0, 0, 0},{"_p_wxFileHistory", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxLog[] = {{"_p_wxLog", 0, "wxLog *", 0, 0, 0, 0},{"_p_wxLogStderr", _p_wxLogStderrTo_p_wxLog, 0, 0, 0, 0, 0},{"_p_wxLogTextCtrl", _p_wxLogTextCtrlTo_p_wxLog, 0, 0, 0, 0, 0},{"_p_wxLogWindow", _p_wxLogWindowTo_p_wxLog, 0, 0, 0, 0, 0},{"_p_wxLogChain", _p_wxLogChainTo_p_wxLog, 0, 0, 0, 0, 0},{"_p_wxLogGui", _p_wxLogGuiTo_p_wxLog, 0, 0, 0, 0, 0},{"_p_wxPyLog", _p_wxPyLogTo_p_wxLog, 0, 0, 0, 0, 0},{"_p_wxLog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxDateTime__TimeZone[] = {{"_p_wxDateTime__TimeZone", 0, "wxDateTime::TimeZone *", 0, 0, 0, 0},{"_p_wxDateTime__TimeZone", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMenu[] = {{"_p_wxMenu", 0, "wxMenu *", 0, 0, 0, 0},{"_p_wxMenu", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxTimerEvent", _p_wxTimerEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxJoystickEvent", _p_wxJoystickEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxProcessEvent", _p_wxProcessEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0, 0, 0, 0},{"_p_wxFileConfig", _p_wxFileConfigTo_p_wxConfigBase, 0, 0, 0, 0, 0},{"_p_wxConfigBase", 0, 0, 0, 0, 0, 0},{"_p_wxConfig", _p_wxConfigTo_p_wxConfigBase, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxDisplay[] = {{"_p_wxDisplay", 0, "wxDisplay *", 0, 0, 0, 0},{"_p_wxDisplay", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFileType[] = {{"_p_wxFileType", 0, "wxFileType *", 0, 0, 0, 0},{"_p_wxFileType", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxLogGui[] = {{"_p_wxLogGui", 0, "wxLogGui *", 0, 0, 0, 0},{"_p_wxLogGui", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0, 0, 0, 0},{"_p_wxFont", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxDataFormat[] = {{"_p_wxDataFormat", 0, "wxDataFormat *", 0, 0, 0, 0},{"_p_wxDataFormat", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxTimerEvent[] = {{"_p_wxTimerEvent", 0, "wxTimerEvent *", 0, 0, 0, 0},{"_p_wxTimerEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxCaret[] = {{"_p_wxCaret", 0, "wxCaret *", 0, 0, 0, 0},{"_p_wxCaret", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0, 0, 0, 0},{"_p_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0, 0, 0, 0},{"_p_wxSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxClipboard[] = {{"_p_wxClipboard", 0, "wxClipboard *", 0, 0, 0, 0},{"_p_wxClipboard", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxStopWatch[] = {{"_p_wxStopWatch", 0, "wxStopWatch *", 0, 0, 0, 0},{"_p_wxStopWatch", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0, 0, 0, 0},{"_p_wxDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxClipboardLocker[] = {{"_p_wxClipboardLocker", 0, "wxClipboardLocker *", 0, 0, 0, 0},{"_p_wxClipboardLocker", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0, 0, 0, 0},{"_p_wxIcon", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxLogStderr[] = {{"_p_wxLogStderr", 0, "wxLogStderr *", 0, 0, 0, 0},{"_p_wxLogStderr", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxLogTextCtrl[] = {{"_p_wxLogTextCtrl", 0, "wxLogTextCtrl *", 0, 0, 0, 0},{"_p_wxLogTextCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxTextCtrl[] = {{"_p_wxTextCtrl", 0, "wxTextCtrl *", 0, 0, 0, 0},{"_p_wxTextCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxBusyCursor[] = {{"_p_wxBusyCursor", 0, "wxBusyCursor *", 0, 0, 0, 0},{"_p_wxBusyCursor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyTextDataObject[] = {{"_p_wxPyTextDataObject", 0, "wxPyTextDataObject *", 0, 0, 0, 0},{"_p_wxPyTextDataObject", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxBitmapDataObject[] = {{"_p_wxBitmapDataObject", 0, "wxBitmapDataObject *", 0, 0, 0, 0},{"_p_wxBitmapDataObject", 0, 0, 0, 0, 0, 0},{"_p_wxPyBitmapDataObject", _p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxTextDataObject[] = {{"_p_wxTextDataObject", 0, "wxTextDataObject *", 0, 0, 0, 0},{"_p_wxTextDataObject", 0, 0, 0, 0, 0, 0},{"_p_wxPyTextDataObject", _p_wxPyTextDataObjectTo_p_wxTextDataObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxDataObject[] = {{"_p_wxDataObject", 0, "wxDataObject *", 0, 0, 0, 0},{"_p_wxDataObjectSimple", _p_wxDataObjectSimpleTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxPyDataObjectSimple", _p_wxPyDataObjectSimpleTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxDataObjectComposite", _p_wxDataObjectCompositeTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxDataObject", 0, 0, 0, 0, 0, 0},{"_p_wxTextDataObject", _p_wxTextDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxPyTextDataObject", _p_wxPyTextDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxBitmapDataObject", _p_wxBitmapDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxPyBitmapDataObject", _p_wxPyBitmapDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxFileDataObject", _p_wxFileDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxCustomDataObject", _p_wxCustomDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxMetafileDataObject", _p_wxMetafileDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxURLDataObject", _p_wxURLDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyBitmapDataObject[] = {{"_p_wxPyBitmapDataObject", 0, "wxPyBitmapDataObject *", 0, 0, 0, 0},{"_p_wxPyBitmapDataObject", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFileDataObject[] = {{"_p_wxFileDataObject", 0, "wxFileDataObject *", 0, 0, 0, 0},{"_p_wxFileDataObject", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxCustomDataObject[] = {{"_p_wxCustomDataObject", 0, "wxCustomDataObject *", 0, 0, 0, 0},{"_p_wxCustomDataObject", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxURLDataObject[] = {{"_p_wxURLDataObject", 0, "wxURLDataObject *", 0, 0, 0, 0},{"_p_wxURLDataObject", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMetafileDataObject[] = {{"_p_wxMetafileDataObject", 0, "wxMetafileDataObject *", 0, 0, 0, 0},{"_p_wxMetafileDataObject", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSound[] = {{"_p_wxSound", 0, "wxSound *", 0, 0, 0, 0},{"_p_wxSound", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxTimerRunner[] = {{"_p_wxTimerRunner", 0, "wxTimerRunner *", 0, 0, 0, 0},{"_p_wxTimerRunner", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxLogWindow[] = {{"_p_wxLogWindow", 0, "wxLogWindow *", 0, 0, 0, 0},{"_p_wxLogWindow", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxTimeSpan[] = {{"_p_wxTimeSpan", 0, "wxTimeSpan *", 0, 0, 0, 0},{"_p_wxTimeSpan", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0, 0, 0, 0},{"_p_wxArrayString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxWindowDisabler[] = {{"_p_wxWindowDisabler", 0, "wxWindowDisabler *", 0, 0, 0, 0},{"_p_wxWindowDisabler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxToolTip[] = {{"_p_wxToolTip", 0, "wxToolTip *", 0, 0, 0, 0},{"_p_wxToolTip", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxDataObjectComposite[] = {{"_p_wxDataObjectComposite", 0, "wxDataObjectComposite *", 0, 0, 0, 0},{"_p_wxDataObjectComposite", 0, 0, 0, 0, 0, 0},{"_p_wxURLDataObject", _p_wxURLDataObjectTo_p_wxDataObjectComposite, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFileConfig[] = {{"_p_wxFileConfig", 0, "wxFileConfig *", 0, 0, 0, 0},{"_p_wxFileConfig", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSystemSettings[] = {{"_p_wxSystemSettings", 0, "wxSystemSettings *", 0, 0, 0, 0},{"_p_wxSystemSettings", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxVideoMode[] = {{"_p_wxVideoMode", 0, "wxVideoMode *", 0, 0, 0, 0},{"_p_wxVideoMode", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyDataObjectSimple[] = {{"_p_wxPyDataObjectSimple", 0, "wxPyDataObjectSimple *", 0, 0, 0, 0},{"_p_wxPyDataObjectSimple", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxDataObjectSimple[] = {{"_p_wxDataObjectSimple", 0, "wxDataObjectSimple *", 0, 0, 0, 0},{"_p_wxDataObjectSimple", 0, 0, 0, 0, 0, 0},{"_p_wxPyDataObjectSimple", _p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxTextDataObject", _p_wxTextDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxPyTextDataObject", _p_wxPyTextDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxBitmapDataObject", _p_wxBitmapDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxPyBitmapDataObject", _p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxFileDataObject", _p_wxFileDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxCustomDataObject", _p_wxCustomDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxMetafileDataObject", _p_wxMetafileDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyTimer", _p_wxPyTimerTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyProcess", _p_wxPyProcessTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0, 0, 0, 0},{"_p_wxRect", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSingleInstanceChecker[] = {{"_p_wxSingleInstanceChecker", 0, "wxSingleInstanceChecker *", 0, 0, 0, 0},{"_p_wxSingleInstanceChecker", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFileTypeInfo[] = {{"_p_wxFileTypeInfo", 0, "wxFileTypeInfo *", 0, 0, 0, 0},{"_p_wxFileTypeInfo", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFrame[] = {{"_p_wxFrame", 0, "wxFrame *", 0, 0, 0, 0},{"_p_wxFrame", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxTimer[] = {{"_p_wxTimer", 0, "wxTimer *", 0, 0, 0, 0},{"_p_wxTimer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMimeTypesManager[] = {{"_p_wxMimeTypesManager", 0, "wxMimeTypesManager *", 0, 0, 0, 0},{"_p_wxMimeTypesManager", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyArtProvider[] = {{"_p_wxPyArtProvider", 0, "wxPyArtProvider *", 0, 0, 0, 0},{"_p_wxPyArtProvider", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyTipProvider[] = {{"_p_wxPyTipProvider", 0, "wxPyTipProvider *", 0, 0, 0, 0},{"_p_wxPyTipProvider", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxTipProvider[] = {{"_p_wxTipProvider", 0, "wxTipProvider *", 0, 0, 0, 0},{"_p_wxTipProvider", 0, 0, 0, 0, 0, 0},{"_p_wxPyTipProvider", _p_wxPyTipProviderTo_p_wxTipProvider, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxJoystick[] = {{"_p_wxJoystick", 0, "wxJoystick *", 0, 0, 0, 0},{"_p_wxJoystick", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSystemOptions[] = {{"_p_wxSystemOptions", 0, "wxSystemOptions *", 0, 0, 0, 0},{"_p_wxSystemOptions", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0, 0, 0, 0},{"_p_wxPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxJoystickEvent[] = {{"_p_wxJoystickEvent", 0, "wxJoystickEvent *", 0, 0, 0, 0},{"_p_wxJoystickEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0, 0, 0, 0},{"_p_wxCursor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileHistory", _p_wxFileHistoryTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTimerEvent", _p_wxTimerEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxClipboard", _p_wxClipboardTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolTip", _p_wxToolTipTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSystemOptions", _p_wxSystemOptionsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJoystickEvent", _p_wxJoystickEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyProcess", _p_wxPyProcessTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBusyInfo", _p_wxBusyInfoTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxProcessEvent", _p_wxProcessEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyTimer", _p_wxPyTimerTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxOutputStream[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0, 0, 0, 0},{"_p_wxOutputStream", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxDateTime[] = {{"_p_wxDateTime", 0, "wxDateTime *", 0, 0, 0, 0},{"_p_wxDateTime", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyDropSource[] = {{"_p_wxPyDropSource", 0, "wxPyDropSource *", 0, 0, 0, 0},{"_p_wxPyDropSource", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0, 0, 0, 0},{"_p_wxString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyProcess[] = {{"_p_wxPyProcess", 0, "wxPyProcess *", 0, 0, 0, 0},{"_p_wxPyProcess", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0, 0, 0, 0},{"_p_wxBitmap", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxConfig[] = {{"_p_wxConfig", 0, "wxConfig *", 0, 0, 0, 0},{"_p_wxConfig", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxChar[] = {{"_p_wxChar", 0, "wxChar *", 0, 0, 0, 0},{"_p_wxChar", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxBusyInfo[] = {{"_p_wxBusyInfo", 0, "wxBusyInfo *", 0, 0, 0, 0},{"_p_wxBusyInfo", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyDropTarget[] = {{"_p_wxPyDropTarget", 0, "wxPyDropTarget *", 0, 0, 0, 0},{"_p_wxPyDropTarget", 0, 0, 0, 0, 0, 0},{"_p_wxPyTextDropTarget", _p_wxPyTextDropTargetTo_p_wxPyDropTarget, 0, 0, 0, 0, 0},{"_p_wxPyFileDropTarget", _p_wxPyFileDropTargetTo_p_wxPyDropTarget, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyTextDropTarget[] = {{"_p_wxPyTextDropTarget", 0, "wxPyTextDropTarget *", 0, 0, 0, 0},{"_p_wxPyTextDropTarget", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyFileDropTarget[] = {{"_p_wxPyFileDropTarget", 0, "wxPyFileDropTarget *", 0, 0, 0, 0},{"_p_wxPyFileDropTarget", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxProcessEvent[] = {{"_p_wxProcessEvent", 0, "wxProcessEvent *", 0, 0, 0, 0},{"_p_wxProcessEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyLog[] = {{"_p_wxPyLog", 0, "wxPyLog *", 0, 0, 0, 0},{"_p_wxPyLog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxLogNull[] = {{"_p_wxLogNull", 0, "wxLogNull *", 0, 0, 0, 0},{"_p_wxLogNull", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0, 0, 0, 0},{"_p_wxColour", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxByte[] = {{"_p_wxByte", 0, "wxByte *", 0, 0, 0, 0},{"_p_wxByte", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxConfigPathChanger[] = {{"_p_wxConfigPathChanger", 0, "wxConfigPathChanger *", 0, 0, 0, 0},{"_p_wxConfigPathChanger", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyTimer[] = {{"_p_wxPyTimer", 0, "wxPyTimer *", 0, 0, 0, 0},{"_p_wxPyTimer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxDateSpan[] = {{"_p_wxDateSpan", 0, "wxDateSpan *", 0, 0, 0, 0},{"_p_wxDateSpan", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; - -static swig_type_info *swig_types_initial[] = { -_swigt__p_wxLogChain, -_swigt__p_wxMutexGuiLocker, -_swigt__p_wxMetafile, -_swigt__p_wxFileHistory, -_swigt__p_wxLog, -_swigt__p_wxDateTime__TimeZone, -_swigt__p_wxMenu, -_swigt__p_wxEvent, -_swigt__p_wxConfigBase, -_swigt__p_wxDisplay, -_swigt__p_wxFileType, -_swigt__p_wxLogGui, -_swigt__p_wxFont, -_swigt__p_wxDataFormat, -_swigt__p_wxTimerEvent, -_swigt__p_wxCaret, -_swigt__p_int, -_swigt__p_wxSize, -_swigt__p_wxClipboard, -_swigt__p_wxStopWatch, -_swigt__p_wxDC, -_swigt__p_wxClipboardLocker, -_swigt__p_wxIcon, -_swigt__p_wxLogStderr, -_swigt__p_wxLogTextCtrl, -_swigt__p_wxTextCtrl, -_swigt__p_wxBusyCursor, -_swigt__p_wxPyTextDataObject, -_swigt__p_wxBitmapDataObject, -_swigt__p_wxTextDataObject, -_swigt__p_wxDataObject, -_swigt__p_wxPyBitmapDataObject, -_swigt__p_wxFileDataObject, -_swigt__p_wxCustomDataObject, -_swigt__p_wxURLDataObject, -_swigt__p_wxMetafileDataObject, -_swigt__p_wxSound, -_swigt__p_wxTimerRunner, -_swigt__p_wxLogWindow, -_swigt__p_wxTimeSpan, -_swigt__p_wxArrayString, -_swigt__p_wxWindowDisabler, -_swigt__p_wxToolTip, -_swigt__p_wxDataObjectComposite, -_swigt__p_wxFileConfig, -_swigt__p_wxSystemSettings, -_swigt__p_wxVideoMode, -_swigt__p_wxPyDataObjectSimple, -_swigt__p_wxDataObjectSimple, -_swigt__p_wxEvtHandler, -_swigt__p_wxRect, -_swigt__p_char, -_swigt__p_wxSingleInstanceChecker, -_swigt__p_wxFileTypeInfo, -_swigt__p_wxFrame, -_swigt__p_wxTimer, -_swigt__p_wxMimeTypesManager, -_swigt__p_wxPyArtProvider, -_swigt__p_wxPyTipProvider, -_swigt__p_wxTipProvider, -_swigt__p_wxJoystick, -_swigt__p_wxSystemOptions, -_swigt__p_wxPoint, -_swigt__p_wxJoystickEvent, -_swigt__p_wxCursor, -_swigt__p_wxObject, -_swigt__p_wxOutputStream, -_swigt__p_wxDateTime, -_swigt__p_wxPyDropSource, -_swigt__p_wxWindow, -_swigt__p_wxString, -_swigt__p_wxPyProcess, -_swigt__p_wxBitmap, -_swigt__p_wxConfig, -_swigt__p_wxChar, -_swigt__p_wxBusyInfo, -_swigt__p_wxPyDropTarget, -_swigt__p_wxPyTextDropTarget, -_swigt__p_wxPyFileDropTarget, -_swigt__p_wxProcessEvent, -_swigt__p_wxPyLog, -_swigt__p_wxLogNull, -_swigt__p_wxColour, -_swigt__p_wxByte, -_swigt__p_wxConfigPathChanger, -_swigt__p_wxPyTimer, -_swigt__p_wxDateSpan, -0 -}; - - -/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ - -static swig_const_info swig_const_table[] = { -{ SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char}, -{ SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char}, -{ SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char}, -{ SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char}, -{ SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char}, -{0}}; - -#ifdef __cplusplus -} -#endif - -#ifdef __cplusplus -extern "C" -#endif -SWIGEXPORT(void) SWIG_init(void) { - static PyObject *SWIG_globals = 0; - static int typeinit = 0; - PyObject *m, *d; - int i; - if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); - m = Py_InitModule((char *) SWIG_name, SwigMethods); - d = PyModule_GetDict(m); - - if (!typeinit) { - for (i = 0; swig_types_initial[i]; i++) { - swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); - } - typeinit = 1; - } - SWIG_InstallConstants(d,swig_const_table); - - PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_OEM_FIXED_FONT)); - PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_FromInt((int)wxSYS_ANSI_FIXED_FONT)); - PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_FromInt((int)wxSYS_ANSI_VAR_FONT)); - PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FONT)); - PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_FromInt((int)wxSYS_DEVICE_DEFAULT_FONT)); - PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_FromInt((int)wxSYS_DEFAULT_PALETTE)); - PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FIXED_FONT)); - PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_FromInt((int)wxSYS_DEFAULT_GUI_FONT)); - PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_FromInt((int)wxSYS_ICONTITLE_FONT)); - PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_FromInt((int)wxSYS_COLOUR_SCROLLBAR)); - PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_FromInt((int)wxSYS_COLOUR_BACKGROUND)); - PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_FromInt((int)wxSYS_COLOUR_DESKTOP)); - PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVECAPTION)); - PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTION)); - PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_FromInt((int)wxSYS_COLOUR_MENU)); - PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_FromInt((int)wxSYS_COLOUR_WINDOW)); - PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWFRAME)); - PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_FromInt((int)wxSYS_COLOUR_MENUTEXT)); - PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWTEXT)); - PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_CAPTIONTEXT)); - PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVEBORDER)); - PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVEBORDER)); - PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_FromInt((int)wxSYS_COLOUR_APPWORKSPACE)); - PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHT)); - PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHTTEXT)); - PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_FromInt((int)wxSYS_COLOUR_BTNFACE)); - PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_FromInt((int)wxSYS_COLOUR_3DFACE)); - PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_BTNSHADOW)); - PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DSHADOW)); - PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_FromInt((int)wxSYS_COLOUR_GRAYTEXT)); - PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_FromInt((int)wxSYS_COLOUR_BTNTEXT)); - PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTIONTEXT)); - PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHIGHLIGHT)); - PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHILIGHT)); - PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHIGHLIGHT)); - PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHILIGHT)); - PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DDKSHADOW)); - PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DLIGHT)); - PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INFOTEXT)); - PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_FromInt((int)wxSYS_COLOUR_INFOBK)); - PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_FromInt((int)wxSYS_COLOUR_LISTBOX)); - PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HOTLIGHT)); - PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTACTIVECAPTION)); - PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTINACTIVECAPTION)); - PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_MENUHILIGHT)); - PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_FromInt((int)wxSYS_COLOUR_MENUBAR)); - PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_FromInt((int)wxSYS_COLOUR_MAX)); - PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_FromInt((int)wxSYS_MOUSE_BUTTONS)); - PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_FromInt((int)wxSYS_BORDER_X)); - PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_FromInt((int)wxSYS_BORDER_Y)); - PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_FromInt((int)wxSYS_CURSOR_X)); - PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_FromInt((int)wxSYS_CURSOR_Y)); - PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_FromInt((int)wxSYS_DCLICK_X)); - PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_FromInt((int)wxSYS_DCLICK_Y)); - PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_FromInt((int)wxSYS_DRAG_X)); - PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_FromInt((int)wxSYS_DRAG_Y)); - PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_FromInt((int)wxSYS_EDGE_X)); - PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_FromInt((int)wxSYS_EDGE_Y)); - PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_X)); - PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_Y)); - PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_FromInt((int)wxSYS_HTHUMB_X)); - PyDict_SetItemString(d,"SYS_ICON_X", SWIG_FromInt((int)wxSYS_ICON_X)); - PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_FromInt((int)wxSYS_ICON_Y)); - PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_FromInt((int)wxSYS_ICONSPACING_X)); - PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_FromInt((int)wxSYS_ICONSPACING_Y)); - PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_FromInt((int)wxSYS_WINDOWMIN_X)); - PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_FromInt((int)wxSYS_WINDOWMIN_Y)); - PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_FromInt((int)wxSYS_SCREEN_X)); - PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_FromInt((int)wxSYS_SCREEN_Y)); - PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_FromInt((int)wxSYS_FRAMESIZE_X)); - PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_FromInt((int)wxSYS_FRAMESIZE_Y)); - PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_FromInt((int)wxSYS_SMALLICON_X)); - PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_FromInt((int)wxSYS_SMALLICON_Y)); - PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_FromInt((int)wxSYS_HSCROLL_Y)); - PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_FromInt((int)wxSYS_VSCROLL_X)); - PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_X)); - PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_Y)); - PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_FromInt((int)wxSYS_VTHUMB_Y)); - PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_FromInt((int)wxSYS_CAPTION_Y)); - PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_FromInt((int)wxSYS_MENU_Y)); - PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_FromInt((int)wxSYS_NETWORK_PRESENT)); - PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_FromInt((int)wxSYS_PENWINDOWS_PRESENT)); - PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_FromInt((int)wxSYS_SHOW_SOUNDS)); - PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_FromInt((int)wxSYS_SWAP_BUTTONS)); - PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_FromInt((int)wxSYS_CAN_DRAW_FRAME_DECORATIONS)); - PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_FromInt((int)wxSYS_CAN_ICONIZE_FRAME)); - PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_FromInt((int)wxSYS_SCREEN_NONE)); - PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_FromInt((int)wxSYS_SCREEN_TINY)); - PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_FromInt((int)wxSYS_SCREEN_PDA)); - PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_FromInt((int)wxSYS_SCREEN_SMALL)); - PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_FromInt((int)wxSYS_SCREEN_DESKTOP)); - PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); - SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set); - SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set); - SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set); - PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_FromInt((int)wxSHUTDOWN_POWEROFF)); - PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_FromInt((int)wxSHUTDOWN_REBOOT)); - PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_FromInt((int)wxTIMER_CONTINUOUS)); - PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_FromInt((int)wxTIMER_ONE_SHOT)); - PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER)); - PyDict_SetItemString(d,"LOG_FatalError", SWIG_FromInt((int)wxLOG_FatalError)); - PyDict_SetItemString(d,"LOG_Error", SWIG_FromInt((int)wxLOG_Error)); - PyDict_SetItemString(d,"LOG_Warning", SWIG_FromInt((int)wxLOG_Warning)); - PyDict_SetItemString(d,"LOG_Message", SWIG_FromInt((int)wxLOG_Message)); - PyDict_SetItemString(d,"LOG_Status", SWIG_FromInt((int)wxLOG_Status)); - PyDict_SetItemString(d,"LOG_Info", SWIG_FromInt((int)wxLOG_Info)); - PyDict_SetItemString(d,"LOG_Debug", SWIG_FromInt((int)wxLOG_Debug)); - PyDict_SetItemString(d,"LOG_Trace", SWIG_FromInt((int)wxLOG_Trace)); - PyDict_SetItemString(d,"LOG_Progress", SWIG_FromInt((int)wxLOG_Progress)); - PyDict_SetItemString(d,"LOG_User", SWIG_FromInt((int)wxLOG_User)); - PyDict_SetItemString(d,"LOG_Max", SWIG_FromInt((int)wxLOG_Max)); - PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc")); - PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages")); - PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc")); - PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount")); - PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole")); - PyDict_SetItemString(d,"TraceMemAlloc", SWIG_FromInt((int)0x0001)); - PyDict_SetItemString(d,"TraceMessages", SWIG_FromInt((int)0x0002)); - PyDict_SetItemString(d,"TraceResAlloc", SWIG_FromInt((int)0x0004)); - PyDict_SetItemString(d,"TraceRefCount", SWIG_FromInt((int)0x0008)); - PyDict_SetItemString(d,"TraceOleCalls", SWIG_FromInt((int)0x0100)); - PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_FromInt((int)wxPROCESS_DEFAULT)); - PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_FromInt((int)wxPROCESS_REDIRECT)); - PyDict_SetItemString(d,"KILL_OK", SWIG_FromInt((int)wxKILL_OK)); - PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_FromInt((int)wxKILL_BAD_SIGNAL)); - PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_FromInt((int)wxKILL_ACCESS_DENIED)); - PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_FromInt((int)wxKILL_NO_PROCESS)); - PyDict_SetItemString(d,"KILL_ERROR", SWIG_FromInt((int)wxKILL_ERROR)); - PyDict_SetItemString(d,"SIGNONE", SWIG_FromInt((int)wxSIGNONE)); - PyDict_SetItemString(d,"SIGHUP", SWIG_FromInt((int)wxSIGHUP)); - PyDict_SetItemString(d,"SIGINT", SWIG_FromInt((int)wxSIGINT)); - PyDict_SetItemString(d,"SIGQUIT", SWIG_FromInt((int)wxSIGQUIT)); - PyDict_SetItemString(d,"SIGILL", SWIG_FromInt((int)wxSIGILL)); - PyDict_SetItemString(d,"SIGTRAP", SWIG_FromInt((int)wxSIGTRAP)); - PyDict_SetItemString(d,"SIGABRT", SWIG_FromInt((int)wxSIGABRT)); - PyDict_SetItemString(d,"SIGIOT", SWIG_FromInt((int)wxSIGIOT)); - PyDict_SetItemString(d,"SIGEMT", SWIG_FromInt((int)wxSIGEMT)); - PyDict_SetItemString(d,"SIGFPE", SWIG_FromInt((int)wxSIGFPE)); - PyDict_SetItemString(d,"SIGKILL", SWIG_FromInt((int)wxSIGKILL)); - PyDict_SetItemString(d,"SIGBUS", SWIG_FromInt((int)wxSIGBUS)); - PyDict_SetItemString(d,"SIGSEGV", SWIG_FromInt((int)wxSIGSEGV)); - PyDict_SetItemString(d,"SIGSYS", SWIG_FromInt((int)wxSIGSYS)); - PyDict_SetItemString(d,"SIGPIPE", SWIG_FromInt((int)wxSIGPIPE)); - PyDict_SetItemString(d,"SIGALRM", SWIG_FromInt((int)wxSIGALRM)); - PyDict_SetItemString(d,"SIGTERM", SWIG_FromInt((int)wxSIGTERM)); - PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS)); - PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_FromInt((int)wxEXEC_ASYNC)); - PyDict_SetItemString(d,"EXEC_SYNC", SWIG_FromInt((int)wxEXEC_SYNC)); - PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_FromInt((int)wxEXEC_NOHIDE)); - PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_FromInt((int)wxEXEC_MAKE_GROUP_LEADER)); - - wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess"); - - PyDict_SetItemString(d,"JOYSTICK1", SWIG_FromInt((int)wxJOYSTICK1)); - PyDict_SetItemString(d,"JOYSTICK2", SWIG_FromInt((int)wxJOYSTICK2)); - PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_FromInt((int)wxJOY_BUTTON_ANY)); - PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_FromInt((int)wxJOY_BUTTON1)); - PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_FromInt((int)wxJOY_BUTTON2)); - PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_FromInt((int)wxJOY_BUTTON3)); - PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_FromInt((int)wxJOY_BUTTON4)); - PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN)); - PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP)); - PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE)); - PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE)); - PyDict_SetItemString(d,"SOUND_SYNC", SWIG_FromInt((int)wxSOUND_SYNC)); - PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_FromInt((int)wxSOUND_ASYNC)); - PyDict_SetItemString(d,"SOUND_LOOP", SWIG_FromInt((int)wxSOUND_LOOP)); - PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_FromInt((int)wxMAILCAP_STANDARD)); - PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_FromInt((int)wxMAILCAP_NETSCAPE)); - PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_FromInt((int)wxMAILCAP_KDE)); - PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_FromInt((int)wxMAILCAP_GNOME)); - PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_FromInt((int)wxMAILCAP_ALL)); - SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set); - SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set); - - wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider"); - - PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_LOCAL_FILE)); - PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_GLOBAL_FILE)); - PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_FromInt((int)wxCONFIG_USE_RELATIVE_PATH)); - PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_FromInt((int)wxCONFIG_USE_NO_ESCAPE_CHARACTERS)); - PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_FromInt((int)wxConfigBase::Type_Unknown)); - PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_FromInt((int)wxConfigBase::Type_String)); - PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_FromInt((int)wxConfigBase::Type_Boolean)); - PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_FromInt((int)wxConfigBase::Type_Integer)); - PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_FromInt((int)wxConfigBase::Type_Float)); - SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set); - SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set); - PyDict_SetItemString(d,"DateTime_Local", SWIG_FromInt((int)wxDateTime::Local)); - PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_FromInt((int)wxDateTime::GMT_12)); - PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_FromInt((int)wxDateTime::GMT_11)); - PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_FromInt((int)wxDateTime::GMT_10)); - PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_FromInt((int)wxDateTime::GMT_9)); - PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_FromInt((int)wxDateTime::GMT_8)); - PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_FromInt((int)wxDateTime::GMT_7)); - PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_FromInt((int)wxDateTime::GMT_6)); - PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_FromInt((int)wxDateTime::GMT_5)); - PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_FromInt((int)wxDateTime::GMT_4)); - PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_FromInt((int)wxDateTime::GMT_3)); - PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_FromInt((int)wxDateTime::GMT_2)); - PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_FromInt((int)wxDateTime::GMT_1)); - PyDict_SetItemString(d,"DateTime_GMT0", SWIG_FromInt((int)wxDateTime::GMT0)); - PyDict_SetItemString(d,"DateTime_GMT1", SWIG_FromInt((int)wxDateTime::GMT1)); - PyDict_SetItemString(d,"DateTime_GMT2", SWIG_FromInt((int)wxDateTime::GMT2)); - PyDict_SetItemString(d,"DateTime_GMT3", SWIG_FromInt((int)wxDateTime::GMT3)); - PyDict_SetItemString(d,"DateTime_GMT4", SWIG_FromInt((int)wxDateTime::GMT4)); - PyDict_SetItemString(d,"DateTime_GMT5", SWIG_FromInt((int)wxDateTime::GMT5)); - PyDict_SetItemString(d,"DateTime_GMT6", SWIG_FromInt((int)wxDateTime::GMT6)); - PyDict_SetItemString(d,"DateTime_GMT7", SWIG_FromInt((int)wxDateTime::GMT7)); - PyDict_SetItemString(d,"DateTime_GMT8", SWIG_FromInt((int)wxDateTime::GMT8)); - PyDict_SetItemString(d,"DateTime_GMT9", SWIG_FromInt((int)wxDateTime::GMT9)); - PyDict_SetItemString(d,"DateTime_GMT10", SWIG_FromInt((int)wxDateTime::GMT10)); - PyDict_SetItemString(d,"DateTime_GMT11", SWIG_FromInt((int)wxDateTime::GMT11)); - PyDict_SetItemString(d,"DateTime_GMT12", SWIG_FromInt((int)wxDateTime::GMT12)); - PyDict_SetItemString(d,"DateTime_WET", SWIG_FromInt((int)wxDateTime::WET)); - PyDict_SetItemString(d,"DateTime_WEST", SWIG_FromInt((int)wxDateTime::WEST)); - PyDict_SetItemString(d,"DateTime_CET", SWIG_FromInt((int)wxDateTime::CET)); - PyDict_SetItemString(d,"DateTime_CEST", SWIG_FromInt((int)wxDateTime::CEST)); - PyDict_SetItemString(d,"DateTime_EET", SWIG_FromInt((int)wxDateTime::EET)); - PyDict_SetItemString(d,"DateTime_EEST", SWIG_FromInt((int)wxDateTime::EEST)); - PyDict_SetItemString(d,"DateTime_MSK", SWIG_FromInt((int)wxDateTime::MSK)); - PyDict_SetItemString(d,"DateTime_MSD", SWIG_FromInt((int)wxDateTime::MSD)); - PyDict_SetItemString(d,"DateTime_AST", SWIG_FromInt((int)wxDateTime::AST)); - PyDict_SetItemString(d,"DateTime_ADT", SWIG_FromInt((int)wxDateTime::ADT)); - PyDict_SetItemString(d,"DateTime_EST", SWIG_FromInt((int)wxDateTime::EST)); - PyDict_SetItemString(d,"DateTime_EDT", SWIG_FromInt((int)wxDateTime::EDT)); - PyDict_SetItemString(d,"DateTime_CST", SWIG_FromInt((int)wxDateTime::CST)); - PyDict_SetItemString(d,"DateTime_CDT", SWIG_FromInt((int)wxDateTime::CDT)); - PyDict_SetItemString(d,"DateTime_MST", SWIG_FromInt((int)wxDateTime::MST)); - PyDict_SetItemString(d,"DateTime_MDT", SWIG_FromInt((int)wxDateTime::MDT)); - PyDict_SetItemString(d,"DateTime_PST", SWIG_FromInt((int)wxDateTime::PST)); - PyDict_SetItemString(d,"DateTime_PDT", SWIG_FromInt((int)wxDateTime::PDT)); - PyDict_SetItemString(d,"DateTime_HST", SWIG_FromInt((int)wxDateTime::HST)); - PyDict_SetItemString(d,"DateTime_AKST", SWIG_FromInt((int)wxDateTime::AKST)); - PyDict_SetItemString(d,"DateTime_AKDT", SWIG_FromInt((int)wxDateTime::AKDT)); - PyDict_SetItemString(d,"DateTime_A_WST", SWIG_FromInt((int)wxDateTime::A_WST)); - PyDict_SetItemString(d,"DateTime_A_CST", SWIG_FromInt((int)wxDateTime::A_CST)); - PyDict_SetItemString(d,"DateTime_A_EST", SWIG_FromInt((int)wxDateTime::A_EST)); - PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_FromInt((int)wxDateTime::A_ESST)); - PyDict_SetItemString(d,"DateTime_UTC", SWIG_FromInt((int)wxDateTime::UTC)); - PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_FromInt((int)wxDateTime::Gregorian)); - PyDict_SetItemString(d,"DateTime_Julian", SWIG_FromInt((int)wxDateTime::Julian)); - PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_FromInt((int)wxDateTime::Gr_Unknown)); - PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_FromInt((int)wxDateTime::Gr_Standard)); - PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_FromInt((int)wxDateTime::Gr_Alaska)); - PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_FromInt((int)wxDateTime::Gr_Albania)); - PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_FromInt((int)wxDateTime::Gr_Austria)); - PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_FromInt((int)wxDateTime::Gr_Austria_Brixen)); - PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_FromInt((int)wxDateTime::Gr_Austria_Salzburg)); - PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_FromInt((int)wxDateTime::Gr_Austria_Tyrol)); - PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_FromInt((int)wxDateTime::Gr_Austria_Carinthia)); - PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_FromInt((int)wxDateTime::Gr_Austria_Styria)); - PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_FromInt((int)wxDateTime::Gr_Belgium)); - PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria)); - PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_1)); - PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_2)); - PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_3)); - PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_FromInt((int)wxDateTime::Gr_Canada)); - PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_FromInt((int)wxDateTime::Gr_China)); - PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_FromInt((int)wxDateTime::Gr_China_1)); - PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_FromInt((int)wxDateTime::Gr_China_2)); - PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_FromInt((int)wxDateTime::Gr_Czechoslovakia)); - PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_FromInt((int)wxDateTime::Gr_Denmark)); - PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_FromInt((int)wxDateTime::Gr_Egypt)); - PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_FromInt((int)wxDateTime::Gr_Estonia)); - PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_FromInt((int)wxDateTime::Gr_Finland)); - PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_FromInt((int)wxDateTime::Gr_France)); - PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_FromInt((int)wxDateTime::Gr_France_Alsace)); - PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_FromInt((int)wxDateTime::Gr_France_Lorraine)); - PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_FromInt((int)wxDateTime::Gr_France_Strasbourg)); - PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_FromInt((int)wxDateTime::Gr_Germany)); - PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Germany_Catholic)); - PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_FromInt((int)wxDateTime::Gr_Germany_Prussia)); - PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Germany_Protestant)); - PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_FromInt((int)wxDateTime::Gr_GreatBritain)); - PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_FromInt((int)wxDateTime::Gr_Greece)); - PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_FromInt((int)wxDateTime::Gr_Hungary)); - PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_FromInt((int)wxDateTime::Gr_Ireland)); - PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_FromInt((int)wxDateTime::Gr_Italy)); - PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_FromInt((int)wxDateTime::Gr_Japan)); - PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_FromInt((int)wxDateTime::Gr_Japan_1)); - PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_FromInt((int)wxDateTime::Gr_Japan_2)); - PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_FromInt((int)wxDateTime::Gr_Japan_3)); - PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_FromInt((int)wxDateTime::Gr_Latvia)); - PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_FromInt((int)wxDateTime::Gr_Lithuania)); - PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_FromInt((int)wxDateTime::Gr_Luxemburg)); - PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_FromInt((int)wxDateTime::Gr_Netherlands)); - PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Groningen)); - PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Gelderland)); - PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Utrecht)); - PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Friesland)); - PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_FromInt((int)wxDateTime::Gr_Norway)); - PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_FromInt((int)wxDateTime::Gr_Poland)); - PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_FromInt((int)wxDateTime::Gr_Portugal)); - PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_FromInt((int)wxDateTime::Gr_Romania)); - PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_FromInt((int)wxDateTime::Gr_Russia)); - PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_FromInt((int)wxDateTime::Gr_Scotland)); - PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_FromInt((int)wxDateTime::Gr_Spain)); - PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_FromInt((int)wxDateTime::Gr_Sweden)); - PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_FromInt((int)wxDateTime::Gr_Switzerland)); - PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Catholic)); - PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Protestant)); - PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_FromInt((int)wxDateTime::Gr_Turkey)); - PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_FromInt((int)wxDateTime::Gr_USA)); - PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_FromInt((int)wxDateTime::Gr_Wales)); - PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_FromInt((int)wxDateTime::Gr_Yugoslavia)); - PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_FromInt((int)wxDateTime::Country_Unknown)); - PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_FromInt((int)wxDateTime::Country_Default)); - PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_Start)); - PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_FromInt((int)wxDateTime::Country_EEC)); - PyDict_SetItemString(d,"DateTime_France", SWIG_FromInt((int)wxDateTime::France)); - PyDict_SetItemString(d,"DateTime_Germany", SWIG_FromInt((int)wxDateTime::Germany)); - PyDict_SetItemString(d,"DateTime_UK", SWIG_FromInt((int)wxDateTime::UK)); - PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_End)); - PyDict_SetItemString(d,"DateTime_Russia", SWIG_FromInt((int)wxDateTime::Russia)); - PyDict_SetItemString(d,"DateTime_USA", SWIG_FromInt((int)wxDateTime::USA)); - PyDict_SetItemString(d,"DateTime_Jan", SWIG_FromInt((int)wxDateTime::Jan)); - PyDict_SetItemString(d,"DateTime_Feb", SWIG_FromInt((int)wxDateTime::Feb)); - PyDict_SetItemString(d,"DateTime_Mar", SWIG_FromInt((int)wxDateTime::Mar)); - PyDict_SetItemString(d,"DateTime_Apr", SWIG_FromInt((int)wxDateTime::Apr)); - PyDict_SetItemString(d,"DateTime_May", SWIG_FromInt((int)wxDateTime::May)); - PyDict_SetItemString(d,"DateTime_Jun", SWIG_FromInt((int)wxDateTime::Jun)); - PyDict_SetItemString(d,"DateTime_Jul", SWIG_FromInt((int)wxDateTime::Jul)); - PyDict_SetItemString(d,"DateTime_Aug", SWIG_FromInt((int)wxDateTime::Aug)); - PyDict_SetItemString(d,"DateTime_Sep", SWIG_FromInt((int)wxDateTime::Sep)); - PyDict_SetItemString(d,"DateTime_Oct", SWIG_FromInt((int)wxDateTime::Oct)); - PyDict_SetItemString(d,"DateTime_Nov", SWIG_FromInt((int)wxDateTime::Nov)); - PyDict_SetItemString(d,"DateTime_Dec", SWIG_FromInt((int)wxDateTime::Dec)); - PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_FromInt((int)wxDateTime::Inv_Month)); - PyDict_SetItemString(d,"DateTime_Sun", SWIG_FromInt((int)wxDateTime::Sun)); - PyDict_SetItemString(d,"DateTime_Mon", SWIG_FromInt((int)wxDateTime::Mon)); - PyDict_SetItemString(d,"DateTime_Tue", SWIG_FromInt((int)wxDateTime::Tue)); - PyDict_SetItemString(d,"DateTime_Wed", SWIG_FromInt((int)wxDateTime::Wed)); - PyDict_SetItemString(d,"DateTime_Thu", SWIG_FromInt((int)wxDateTime::Thu)); - PyDict_SetItemString(d,"DateTime_Fri", SWIG_FromInt((int)wxDateTime::Fri)); - PyDict_SetItemString(d,"DateTime_Sat", SWIG_FromInt((int)wxDateTime::Sat)); - PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_FromInt((int)wxDateTime::Inv_WeekDay)); - PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_FromInt((int)wxDateTime::Inv_Year)); - PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_FromInt((int)wxDateTime::Name_Full)); - PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_FromInt((int)wxDateTime::Name_Abbr)); - PyDict_SetItemString(d,"DateTime_Default_First", SWIG_FromInt((int)wxDateTime::Default_First)); - PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_FromInt((int)wxDateTime::Monday_First)); - PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_FromInt((int)wxDateTime::Sunday_First)); - SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set); - PyDict_SetItemString(d,"DF_INVALID", SWIG_FromInt((int)wxDF_INVALID)); - PyDict_SetItemString(d,"DF_TEXT", SWIG_FromInt((int)wxDF_TEXT)); - PyDict_SetItemString(d,"DF_BITMAP", SWIG_FromInt((int)wxDF_BITMAP)); - PyDict_SetItemString(d,"DF_METAFILE", SWIG_FromInt((int)wxDF_METAFILE)); - PyDict_SetItemString(d,"DF_SYLK", SWIG_FromInt((int)wxDF_SYLK)); - PyDict_SetItemString(d,"DF_DIF", SWIG_FromInt((int)wxDF_DIF)); - PyDict_SetItemString(d,"DF_TIFF", SWIG_FromInt((int)wxDF_TIFF)); - PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_FromInt((int)wxDF_OEMTEXT)); - PyDict_SetItemString(d,"DF_DIB", SWIG_FromInt((int)wxDF_DIB)); - PyDict_SetItemString(d,"DF_PALETTE", SWIG_FromInt((int)wxDF_PALETTE)); - PyDict_SetItemString(d,"DF_PENDATA", SWIG_FromInt((int)wxDF_PENDATA)); - PyDict_SetItemString(d,"DF_RIFF", SWIG_FromInt((int)wxDF_RIFF)); - PyDict_SetItemString(d,"DF_WAVE", SWIG_FromInt((int)wxDF_WAVE)); - PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_FromInt((int)wxDF_UNICODETEXT)); - PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_FromInt((int)wxDF_ENHMETAFILE)); - PyDict_SetItemString(d,"DF_FILENAME", SWIG_FromInt((int)wxDF_FILENAME)); - PyDict_SetItemString(d,"DF_LOCALE", SWIG_FromInt((int)wxDF_LOCALE)); - PyDict_SetItemString(d,"DF_PRIVATE", SWIG_FromInt((int)wxDF_PRIVATE)); - PyDict_SetItemString(d,"DF_HTML", SWIG_FromInt((int)wxDF_HTML)); - PyDict_SetItemString(d,"DF_MAX", SWIG_FromInt((int)wxDF_MAX)); - SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set); - PyDict_SetItemString(d,"DataObject_Get", SWIG_FromInt((int)wxDataObject::Get)); - PyDict_SetItemString(d,"DataObject_Set", SWIG_FromInt((int)wxDataObject::Set)); - PyDict_SetItemString(d,"DataObject_Both", SWIG_FromInt((int)wxDataObject::Both)); - PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_FromInt((int)wxDrag_CopyOnly)); - PyDict_SetItemString(d,"Drag_AllowMove", SWIG_FromInt((int)wxDrag_AllowMove)); - PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_FromInt((int)wxDrag_DefaultMove)); - PyDict_SetItemString(d,"DragError", SWIG_FromInt((int)wxDragError)); - PyDict_SetItemString(d,"DragNone", SWIG_FromInt((int)wxDragNone)); - PyDict_SetItemString(d,"DragCopy", SWIG_FromInt((int)wxDragCopy)); - PyDict_SetItemString(d,"DragMove", SWIG_FromInt((int)wxDragMove)); - PyDict_SetItemString(d,"DragLink", SWIG_FromInt((int)wxDragLink)); - PyDict_SetItemString(d,"DragCancel", SWIG_FromInt((int)wxDragCancel)); - - wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource"); - wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget"); - wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget"); - wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget"); - - SWIG_addvarlink(SWIG_globals,(char*)"TheClipboard",_wrap_TheClipboard_get, _wrap_TheClipboard_set); - SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set); -} - diff --git a/wxPython/src/msw/windows.py b/wxPython/src/msw/windows.py deleted file mode 100644 index 75ec0e572a..0000000000 --- a/wxPython/src/msw/windows.py +++ /dev/null @@ -1,4552 +0,0 @@ -# This file was created automatically by SWIG. -# Don't modify this file, modify the SWIG interface instead. - -import _windows - -import core -wx = core -__docfilter__ = wx.__docfilter__ -#--------------------------------------------------------------------------- - -class Panel(core.Window): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPanel instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, - String name=PanelNameStr) -> Panel - """ - newobj = _windows.new_Panel(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, - String name=PanelNameStr) -> bool - - Create the GUI part of the Window for 2-phase creation mode. - """ - return _windows.Panel_Create(*args, **kwargs) - - def InitDialog(*args, **kwargs): - """ - InitDialog(self) - - Sends an EVT_INIT_DIALOG event, whose handler usually transfers - data to the dialog via validators. - """ - return _windows.Panel_InitDialog(*args, **kwargs) - - -class PanelPtr(Panel): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Panel -_windows.Panel_swigregister(PanelPtr) - -def PrePanel(*args, **kwargs): - """PrePanel() -> Panel""" - val = _windows.new_PrePanel(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -class ScrolledWindow(Panel): - def __repr__(self): - return "<%s.%s; proxy of C++ wxScrolledWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL, - String name=PanelNameStr) -> ScrolledWindow - """ - newobj = _windows.new_ScrolledWindow(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL, - String name=PanelNameStr) -> bool - - Create the GUI part of the Window for 2-phase creation mode. - """ - return _windows.ScrolledWindow_Create(*args, **kwargs) - - def SetScrollbars(*args, **kwargs): - """ - SetScrollbars(self, int pixelsPerUnitX, int pixelsPerUnitY, int noUnitsX, - int noUnitsY, int xPos=0, int yPos=0, bool noRefresh=False) - """ - return _windows.ScrolledWindow_SetScrollbars(*args, **kwargs) - - def Scroll(*args, **kwargs): - """Scroll(self, int x, int y)""" - return _windows.ScrolledWindow_Scroll(*args, **kwargs) - - def GetScrollPageSize(*args, **kwargs): - """GetScrollPageSize(self, int orient) -> int""" - return _windows.ScrolledWindow_GetScrollPageSize(*args, **kwargs) - - def SetScrollPageSize(*args, **kwargs): - """SetScrollPageSize(self, int orient, int pageSize)""" - return _windows.ScrolledWindow_SetScrollPageSize(*args, **kwargs) - - def SetScrollRate(*args, **kwargs): - """SetScrollRate(self, int xstep, int ystep)""" - return _windows.ScrolledWindow_SetScrollRate(*args, **kwargs) - - def GetScrollPixelsPerUnit(*args, **kwargs): - """ - GetScrollPixelsPerUnit() -> (xUnit, yUnit) - - Get the size of one logical unit in physical units. - """ - return _windows.ScrolledWindow_GetScrollPixelsPerUnit(*args, **kwargs) - - def EnableScrolling(*args, **kwargs): - """EnableScrolling(self, bool x_scrolling, bool y_scrolling)""" - return _windows.ScrolledWindow_EnableScrolling(*args, **kwargs) - - def GetViewStart(*args, **kwargs): - """ - GetViewStart() -> (x,y) - - Get the view start - """ - return _windows.ScrolledWindow_GetViewStart(*args, **kwargs) - - def SetScale(*args, **kwargs): - """SetScale(self, double xs, double ys)""" - return _windows.ScrolledWindow_SetScale(*args, **kwargs) - - def GetScaleX(*args, **kwargs): - """GetScaleX(self) -> double""" - return _windows.ScrolledWindow_GetScaleX(*args, **kwargs) - - def GetScaleY(*args, **kwargs): - """GetScaleY(self) -> double""" - return _windows.ScrolledWindow_GetScaleY(*args, **kwargs) - - def CalcScrolledPosition(*args): - """ - CalcScrolledPosition(self, Point pt) -> Point - CalcScrolledPosition(int x, int y) -> (sx, sy) - - Translate between scrolled and unscrolled coordinates. - """ - return _windows.ScrolledWindow_CalcScrolledPosition(*args) - - def CalcUnscrolledPosition(*args): - """ - CalcUnscrolledPosition(self, Point pt) -> Point - CalcUnscrolledPosition(int x, int y) -> (ux, uy) - - Translate between scrolled and unscrolled coordinates. - """ - return _windows.ScrolledWindow_CalcUnscrolledPosition(*args) - - def AdjustScrollbars(*args, **kwargs): - """AdjustScrollbars(self)""" - return _windows.ScrolledWindow_AdjustScrollbars(*args, **kwargs) - - def CalcScrollInc(*args, **kwargs): - """CalcScrollInc(self, ScrollWinEvent event) -> int""" - return _windows.ScrolledWindow_CalcScrollInc(*args, **kwargs) - - def SetTargetWindow(*args, **kwargs): - """SetTargetWindow(self, Window target)""" - return _windows.ScrolledWindow_SetTargetWindow(*args, **kwargs) - - def GetTargetWindow(*args, **kwargs): - """GetTargetWindow(self) -> Window""" - return _windows.ScrolledWindow_GetTargetWindow(*args, **kwargs) - - def SetTargetRect(*args, **kwargs): - """SetTargetRect(self, Rect rect)""" - return _windows.ScrolledWindow_SetTargetRect(*args, **kwargs) - - def GetTargetRect(*args, **kwargs): - """GetTargetRect(self) -> Rect""" - return _windows.ScrolledWindow_GetTargetRect(*args, **kwargs) - - -class ScrolledWindowPtr(ScrolledWindow): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ScrolledWindow -_windows.ScrolledWindow_swigregister(ScrolledWindowPtr) - -def PreScrolledWindow(*args, **kwargs): - """PreScrolledWindow() -> ScrolledWindow""" - val = _windows.new_PreScrolledWindow(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -STAY_ON_TOP = _windows.STAY_ON_TOP -ICONIZE = _windows.ICONIZE -MINIMIZE = _windows.MINIMIZE -MAXIMIZE = _windows.MAXIMIZE -CLOSE_BOX = _windows.CLOSE_BOX -THICK_FRAME = _windows.THICK_FRAME -SYSTEM_MENU = _windows.SYSTEM_MENU -MINIMIZE_BOX = _windows.MINIMIZE_BOX -MAXIMIZE_BOX = _windows.MAXIMIZE_BOX -TINY_CAPTION_HORIZ = _windows.TINY_CAPTION_HORIZ -TINY_CAPTION_VERT = _windows.TINY_CAPTION_VERT -RESIZE_BOX = _windows.RESIZE_BOX -RESIZE_BORDER = _windows.RESIZE_BORDER -DIALOG_NO_PARENT = _windows.DIALOG_NO_PARENT -DEFAULT_FRAME_STYLE = _windows.DEFAULT_FRAME_STYLE -DEFAULT_DIALOG_STYLE = _windows.DEFAULT_DIALOG_STYLE -FRAME_TOOL_WINDOW = _windows.FRAME_TOOL_WINDOW -FRAME_FLOAT_ON_PARENT = _windows.FRAME_FLOAT_ON_PARENT -FRAME_NO_WINDOW_MENU = _windows.FRAME_NO_WINDOW_MENU -FRAME_NO_TASKBAR = _windows.FRAME_NO_TASKBAR -FRAME_SHAPED = _windows.FRAME_SHAPED -DIALOG_MODAL = _windows.DIALOG_MODAL -DIALOG_MODELESS = _windows.DIALOG_MODELESS -USER_COLOURS = _windows.USER_COLOURS -NO_3D = _windows.NO_3D -FULLSCREEN_NOMENUBAR = _windows.FULLSCREEN_NOMENUBAR -FULLSCREEN_NOTOOLBAR = _windows.FULLSCREEN_NOTOOLBAR -FULLSCREEN_NOSTATUSBAR = _windows.FULLSCREEN_NOSTATUSBAR -FULLSCREEN_NOBORDER = _windows.FULLSCREEN_NOBORDER -FULLSCREEN_NOCAPTION = _windows.FULLSCREEN_NOCAPTION -FULLSCREEN_ALL = _windows.FULLSCREEN_ALL -TOPLEVEL_EX_DIALOG = _windows.TOPLEVEL_EX_DIALOG -class TopLevelWindow(core.Window): - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxTopLevelWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def Maximize(*args, **kwargs): - """Maximize(self, bool maximize=True)""" - return _windows.TopLevelWindow_Maximize(*args, **kwargs) - - def Restore(*args, **kwargs): - """Restore(self)""" - return _windows.TopLevelWindow_Restore(*args, **kwargs) - - def Iconize(*args, **kwargs): - """Iconize(self, bool iconize=True)""" - return _windows.TopLevelWindow_Iconize(*args, **kwargs) - - def IsMaximized(*args, **kwargs): - """IsMaximized(self) -> bool""" - return _windows.TopLevelWindow_IsMaximized(*args, **kwargs) - - def IsIconized(*args, **kwargs): - """IsIconized(self) -> bool""" - return _windows.TopLevelWindow_IsIconized(*args, **kwargs) - - def GetIcon(*args, **kwargs): - """GetIcon(self) -> Icon""" - return _windows.TopLevelWindow_GetIcon(*args, **kwargs) - - def SetIcon(*args, **kwargs): - """SetIcon(self, Icon icon)""" - return _windows.TopLevelWindow_SetIcon(*args, **kwargs) - - def SetIcons(*args, **kwargs): - """SetIcons(self, wxIconBundle icons)""" - return _windows.TopLevelWindow_SetIcons(*args, **kwargs) - - def ShowFullScreen(*args, **kwargs): - """ShowFullScreen(self, bool show, long style=FULLSCREEN_ALL) -> bool""" - return _windows.TopLevelWindow_ShowFullScreen(*args, **kwargs) - - def IsFullScreen(*args, **kwargs): - """IsFullScreen(self) -> bool""" - return _windows.TopLevelWindow_IsFullScreen(*args, **kwargs) - - def SetTitle(*args, **kwargs): - """ - SetTitle(self, String title) - - Sets the window's title. Applicable only to frames and dialogs. - """ - return _windows.TopLevelWindow_SetTitle(*args, **kwargs) - - def GetTitle(*args, **kwargs): - """ - GetTitle(self) -> String - - Gets the window's title. Applicable only to frames and dialogs. - """ - return _windows.TopLevelWindow_GetTitle(*args, **kwargs) - - def SetShape(*args, **kwargs): - """SetShape(self, Region region) -> bool""" - return _windows.TopLevelWindow_SetShape(*args, **kwargs) - - -class TopLevelWindowPtr(TopLevelWindow): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = TopLevelWindow -_windows.TopLevelWindow_swigregister(TopLevelWindowPtr) -cvar = _windows.cvar -FrameNameStr = cvar.FrameNameStr -DialogNameStr = cvar.DialogNameStr -StatusLineNameStr = cvar.StatusLineNameStr -ToolBarNameStr = cvar.ToolBarNameStr - -#--------------------------------------------------------------------------- - -class Frame(TopLevelWindow): - def __repr__(self): - return "<%s.%s; proxy of C++ wxFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, String title, Point pos=DefaultPosition, - Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE, - String name=FrameNameStr) -> Frame - """ - newobj = _windows.new_Frame(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id, String title, Point pos=DefaultPosition, - Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE, - String name=FrameNameStr) -> bool - """ - return _windows.Frame_Create(*args, **kwargs) - - def GetClientAreaOrigin(*args, **kwargs): - """ - GetClientAreaOrigin(self) -> Point - - Get the origin of the client area of the window relative to the - window's top left corner (the client area may be shifted because of - the borders, scrollbars, other decorations...) - """ - return _windows.Frame_GetClientAreaOrigin(*args, **kwargs) - - def SendSizeEvent(*args, **kwargs): - """SendSizeEvent(self)""" - return _windows.Frame_SendSizeEvent(*args, **kwargs) - - def SetMenuBar(*args, **kwargs): - """SetMenuBar(self, MenuBar menubar)""" - return _windows.Frame_SetMenuBar(*args, **kwargs) - - def GetMenuBar(*args, **kwargs): - """GetMenuBar(self) -> MenuBar""" - return _windows.Frame_GetMenuBar(*args, **kwargs) - - def ProcessCommand(*args, **kwargs): - """ProcessCommand(self, int winid) -> bool""" - return _windows.Frame_ProcessCommand(*args, **kwargs) - - Command = ProcessCommand - def CreateStatusBar(*args, **kwargs): - """ - CreateStatusBar(self, int number=1, long style=ST_SIZEGRIP, int winid=0, - String name=StatusLineNameStr) -> StatusBar - """ - return _windows.Frame_CreateStatusBar(*args, **kwargs) - - def GetStatusBar(*args, **kwargs): - """GetStatusBar(self) -> StatusBar""" - return _windows.Frame_GetStatusBar(*args, **kwargs) - - def SetStatusBar(*args, **kwargs): - """SetStatusBar(self, StatusBar statBar)""" - return _windows.Frame_SetStatusBar(*args, **kwargs) - - def SetStatusText(*args, **kwargs): - """SetStatusText(self, String text, int number=0)""" - return _windows.Frame_SetStatusText(*args, **kwargs) - - def SetStatusWidths(*args, **kwargs): - """SetStatusWidths(self, int widths, int widths_field)""" - return _windows.Frame_SetStatusWidths(*args, **kwargs) - - def PushStatusText(*args, **kwargs): - """PushStatusText(self, String text, int number=0)""" - return _windows.Frame_PushStatusText(*args, **kwargs) - - def PopStatusText(*args, **kwargs): - """PopStatusText(self, int number=0)""" - return _windows.Frame_PopStatusText(*args, **kwargs) - - def SetStatusBarPane(*args, **kwargs): - """SetStatusBarPane(self, int n)""" - return _windows.Frame_SetStatusBarPane(*args, **kwargs) - - def GetStatusBarPane(*args, **kwargs): - """GetStatusBarPane(self) -> int""" - return _windows.Frame_GetStatusBarPane(*args, **kwargs) - - def CreateToolBar(*args, **kwargs): - """CreateToolBar(self, long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar""" - return _windows.Frame_CreateToolBar(*args, **kwargs) - - def GetToolBar(*args, **kwargs): - """GetToolBar(self) -> wxToolBar""" - return _windows.Frame_GetToolBar(*args, **kwargs) - - def SetToolBar(*args, **kwargs): - """SetToolBar(self, wxToolBar toolbar)""" - return _windows.Frame_SetToolBar(*args, **kwargs) - - def DoGiveHelp(*args, **kwargs): - """DoGiveHelp(self, String text, bool show)""" - return _windows.Frame_DoGiveHelp(*args, **kwargs) - - def DoMenuUpdates(*args, **kwargs): - """DoMenuUpdates(self, Menu menu=None)""" - return _windows.Frame_DoMenuUpdates(*args, **kwargs) - - -class FramePtr(Frame): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Frame -_windows.Frame_swigregister(FramePtr) - -def PreFrame(*args, **kwargs): - """PreFrame() -> Frame""" - val = _windows.new_PreFrame(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -class Dialog(TopLevelWindow): - def __repr__(self): - return "<%s.%s; proxy of C++ wxDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, String title, Point pos=DefaultPosition, - Size size=DefaultSize, long style=DEFAULT_DIALOG_STYLE, - String name=DialogNameStr) -> Dialog - """ - newobj = _windows.new_Dialog(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id, String title, Point pos=DefaultPosition, - Size size=DefaultSize, long style=DEFAULT_DIALOG_STYLE, - String name=DialogNameStr) -> bool - """ - return _windows.Dialog_Create(*args, **kwargs) - - def SetReturnCode(*args, **kwargs): - """SetReturnCode(self, int returnCode)""" - return _windows.Dialog_SetReturnCode(*args, **kwargs) - - def GetReturnCode(*args, **kwargs): - """GetReturnCode(self) -> int""" - return _windows.Dialog_GetReturnCode(*args, **kwargs) - - def CreateTextSizer(*args, **kwargs): - """CreateTextSizer(self, String message) -> Sizer""" - return _windows.Dialog_CreateTextSizer(*args, **kwargs) - - def CreateButtonSizer(*args, **kwargs): - """CreateButtonSizer(self, long flags) -> Sizer""" - return _windows.Dialog_CreateButtonSizer(*args, **kwargs) - - def IsModal(*args, **kwargs): - """IsModal(self) -> bool""" - return _windows.Dialog_IsModal(*args, **kwargs) - - def ShowModal(*args, **kwargs): - """ShowModal(self) -> int""" - return _windows.Dialog_ShowModal(*args, **kwargs) - - def EndModal(*args, **kwargs): - """EndModal(self, int retCode)""" - return _windows.Dialog_EndModal(*args, **kwargs) - - -class DialogPtr(Dialog): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Dialog -_windows.Dialog_swigregister(DialogPtr) - -def PreDialog(*args, **kwargs): - """PreDialog() -> Dialog""" - val = _windows.new_PreDialog(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -class MiniFrame(Frame): - def __repr__(self): - return "<%s.%s; proxy of C++ wxMiniFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, String title, Point pos=DefaultPosition, - Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE, - String name=FrameNameStr) -> MiniFrame - """ - newobj = _windows.new_MiniFrame(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id, String title, Point pos=DefaultPosition, - Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE, - String name=FrameNameStr) -> bool - """ - return _windows.MiniFrame_Create(*args, **kwargs) - - -class MiniFramePtr(MiniFrame): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = MiniFrame -_windows.MiniFrame_swigregister(MiniFramePtr) - -def PreMiniFrame(*args, **kwargs): - """PreMiniFrame() -> MiniFrame""" - val = _windows.new_PreMiniFrame(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -SPLASH_CENTRE_ON_PARENT = _windows.SPLASH_CENTRE_ON_PARENT -SPLASH_CENTRE_ON_SCREEN = _windows.SPLASH_CENTRE_ON_SCREEN -SPLASH_NO_CENTRE = _windows.SPLASH_NO_CENTRE -SPLASH_TIMEOUT = _windows.SPLASH_TIMEOUT -SPLASH_NO_TIMEOUT = _windows.SPLASH_NO_TIMEOUT -class SplashScreenWindow(core.Window): - def __repr__(self): - return "<%s.%s; proxy of C++ wxSplashScreenWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition, - Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow - """ - newobj = _windows.new_SplashScreenWindow(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def SetBitmap(*args, **kwargs): - """SetBitmap(self, Bitmap bitmap)""" - return _windows.SplashScreenWindow_SetBitmap(*args, **kwargs) - - def GetBitmap(*args, **kwargs): - """GetBitmap(self) -> Bitmap""" - return _windows.SplashScreenWindow_GetBitmap(*args, **kwargs) - - -class SplashScreenWindowPtr(SplashScreenWindow): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = SplashScreenWindow -_windows.SplashScreenWindow_swigregister(SplashScreenWindowPtr) - -class SplashScreen(Frame): - def __repr__(self): - return "<%s.%s; proxy of C++ wxSplashScreen instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Bitmap bitmap, long splashStyle, int milliseconds, - Window parent, int id, Point pos=DefaultPosition, - Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen - """ - newobj = _windows.new_SplashScreen(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def GetSplashStyle(*args, **kwargs): - """GetSplashStyle(self) -> long""" - return _windows.SplashScreen_GetSplashStyle(*args, **kwargs) - - def GetSplashWindow(*args, **kwargs): - """GetSplashWindow(self) -> SplashScreenWindow""" - return _windows.SplashScreen_GetSplashWindow(*args, **kwargs) - - def GetTimeout(*args, **kwargs): - """GetTimeout(self) -> int""" - return _windows.SplashScreen_GetTimeout(*args, **kwargs) - - -class SplashScreenPtr(SplashScreen): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = SplashScreen -_windows.SplashScreen_swigregister(SplashScreenPtr) - -#--------------------------------------------------------------------------- - -class StatusBar(core.Window): - def __repr__(self): - return "<%s.%s; proxy of C++ wxStatusBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> StatusBar""" - newobj = _windows.new_StatusBar(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """Create(self, Window parent, int id, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool""" - return _windows.StatusBar_Create(*args, **kwargs) - - def SetFieldsCount(*args, **kwargs): - """SetFieldsCount(self, int number=1)""" - return _windows.StatusBar_SetFieldsCount(*args, **kwargs) - - def GetFieldsCount(*args, **kwargs): - """GetFieldsCount(self) -> int""" - return _windows.StatusBar_GetFieldsCount(*args, **kwargs) - - def SetStatusText(*args, **kwargs): - """SetStatusText(self, String text, int number=0)""" - return _windows.StatusBar_SetStatusText(*args, **kwargs) - - def GetStatusText(*args, **kwargs): - """GetStatusText(self, int number=0) -> String""" - return _windows.StatusBar_GetStatusText(*args, **kwargs) - - def PushStatusText(*args, **kwargs): - """PushStatusText(self, String text, int number=0)""" - return _windows.StatusBar_PushStatusText(*args, **kwargs) - - def PopStatusText(*args, **kwargs): - """PopStatusText(self, int number=0)""" - return _windows.StatusBar_PopStatusText(*args, **kwargs) - - def SetStatusWidths(*args, **kwargs): - """SetStatusWidths(self, int widths, int widths_field)""" - return _windows.StatusBar_SetStatusWidths(*args, **kwargs) - - def GetFieldRect(*args, **kwargs): - """GetFieldRect(self, int i) -> Rect""" - return _windows.StatusBar_GetFieldRect(*args, **kwargs) - - def SetMinHeight(*args, **kwargs): - """SetMinHeight(self, int height)""" - return _windows.StatusBar_SetMinHeight(*args, **kwargs) - - def GetBorderX(*args, **kwargs): - """GetBorderX(self) -> int""" - return _windows.StatusBar_GetBorderX(*args, **kwargs) - - def GetBorderY(*args, **kwargs): - """GetBorderY(self) -> int""" - return _windows.StatusBar_GetBorderY(*args, **kwargs) - - -class StatusBarPtr(StatusBar): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = StatusBar -_windows.StatusBar_swigregister(StatusBarPtr) - -def PreStatusBar(*args, **kwargs): - """PreStatusBar() -> StatusBar""" - val = _windows.new_PreStatusBar(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -SP_NOBORDER = _windows.SP_NOBORDER -SP_NOSASH = _windows.SP_NOSASH -SP_PERMIT_UNSPLIT = _windows.SP_PERMIT_UNSPLIT -SP_LIVE_UPDATE = _windows.SP_LIVE_UPDATE -SP_3DSASH = _windows.SP_3DSASH -SP_3DBORDER = _windows.SP_3DBORDER -SP_NO_XP_THEME = _windows.SP_NO_XP_THEME -SP_BORDER = _windows.SP_BORDER -SP_3D = _windows.SP_3D -SPLIT_HORIZONTAL = _windows.SPLIT_HORIZONTAL -SPLIT_VERTICAL = _windows.SPLIT_VERTICAL -SPLIT_DRAG_NONE = _windows.SPLIT_DRAG_NONE -SPLIT_DRAG_DRAGGING = _windows.SPLIT_DRAG_DRAGGING -SPLIT_DRAG_LEFT_DOWN = _windows.SPLIT_DRAG_LEFT_DOWN -class SplitterWindow(core.Window): - """ - wx.SplitterWindow manages up to two subwindows or panes, - with an optional vertical or horizontal split which can be - used with the mouse or programmatically. - - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow - - Constructor. Creates and shows a SplitterWindow. - """ - if kwargs.has_key('point'): kwargs['pos'] = kwargs['point'];del kwargs['point'] - newobj = _windows.new_SplitterWindow(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool - - Create the GUI part of the SplitterWindow for the 2-phase create. - """ - return _windows.SplitterWindow_Create(*args, **kwargs) - - def GetWindow1(*args, **kwargs): - """ - GetWindow1(self) -> Window - - Gets the only or left/top pane. - """ - return _windows.SplitterWindow_GetWindow1(*args, **kwargs) - - def GetWindow2(*args, **kwargs): - """ - GetWindow2(self) -> Window - - Gets the right/bottom pane. - """ - return _windows.SplitterWindow_GetWindow2(*args, **kwargs) - - def SetSplitMode(*args, **kwargs): - """ - SetSplitMode(self, int mode) - - Sets the split mode. The mode can be wx.SPLIT_VERTICAL or - wx.SPLIT_HORIZONTAL. This only sets the internal variable; - does not update the display. - """ - return _windows.SplitterWindow_SetSplitMode(*args, **kwargs) - - def GetSplitMode(*args, **kwargs): - """ - GetSplitMode(self) -> int - - Gets the split mode - """ - return _windows.SplitterWindow_GetSplitMode(*args, **kwargs) - - def Initialize(*args, **kwargs): - """ - Initialize(self, Window window) - - Initializes the splitter window to have one pane. This - should be called if you wish to initially view only a single - pane in the splitter window. - """ - return _windows.SplitterWindow_Initialize(*args, **kwargs) - - def SplitVertically(*args, **kwargs): - """ - SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool - - Initializes the left and right panes of the splitter window. - - window1 The left pane. - window2 The right pane. - sashPosition The initial position of the sash. If this - value is positive, it specifies the size - of the left pane. If it is negative, it is - absolute value gives the size of the right - pane. Finally, specify 0 (default) to - choose the default position (half of the - total window width). - - Returns True if successful, False otherwise (the window was - already split). - - SplitVertically should be called if you wish to initially - view two panes. It can also be called at any subsequent - time, but the application should check that the window is - not currently split using IsSplit. - """ - return _windows.SplitterWindow_SplitVertically(*args, **kwargs) - - def SplitHorizontally(*args, **kwargs): - """ - SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool - - Initializes the top and bottom panes of the splitter window. - - window1 The top pane. - window2 The bottom pane. - sashPosition The initial position of the sash. If this - value is positive, it specifies the size - of the upper pane. If it is negative, it - is absolute value gives the size of the - lower pane. Finally, specify 0 (default) - to choose the default position (half of - the total window height). - - Returns True if successful, False otherwise (the window was - already split). - - SplitHorizontally should be called if you wish to initially - view two panes. It can also be called at any subsequent - time, but the application should check that the window is - not currently split using IsSplit. - """ - return _windows.SplitterWindow_SplitHorizontally(*args, **kwargs) - - def Unsplit(*args, **kwargs): - """ - Unsplit(self, Window toRemove=None) -> bool - - Unsplits the window. Pass the pane to remove, or None to - remove the right or bottom pane. Returns True if - successful, False otherwise (the window was not split). - - This function will not actually delete the pane being - removed; it sends EVT_SPLITTER_UNSPLIT which can be handled - for the desired behaviour. By default, the pane being - removed is only hidden. - """ - return _windows.SplitterWindow_Unsplit(*args, **kwargs) - - def ReplaceWindow(*args, **kwargs): - """ - ReplaceWindow(self, Window winOld, Window winNew) -> bool - - This function replaces one of the windows managed by the - SplitterWindow with another one. It is in general better to - use it instead of calling Unsplit() and then resplitting the - window back because it will provoke much less flicker. It is - valid to call this function whether the splitter has two - windows or only one. - - Both parameters should be non-None and winOld must specify - one of the windows managed by the splitter. If the - parameters are incorrect or the window couldn't be replaced, - False is returned. Otherwise the function will return True, - but please notice that it will not Destroy the replaced - window and you may wish to do it yourself. - """ - return _windows.SplitterWindow_ReplaceWindow(*args, **kwargs) - - def UpdateSize(*args, **kwargs): - """ - UpdateSize(self) - - Causes any pending sizing of the sash and child panes to - take place immediately. - - Such resizing normally takes place in idle time, in order to - wait for layout to be completed. However, this can cause - unacceptable flicker as the panes are resized after the - window has been shown. To work around this, you can perform - window layout (for example by sending a size event to the - parent window), and then call this function, before showing - the top-level window. - """ - return _windows.SplitterWindow_UpdateSize(*args, **kwargs) - - def IsSplit(*args, **kwargs): - """ - IsSplit(self) -> bool - - Is the window split? - """ - return _windows.SplitterWindow_IsSplit(*args, **kwargs) - - def SetSashSize(*args, **kwargs): - """ - SetSashSize(self, int width) - - Sets the sash size - """ - return _windows.SplitterWindow_SetSashSize(*args, **kwargs) - - def SetBorderSize(*args, **kwargs): - """ - SetBorderSize(self, int width) - - Sets the border size - """ - return _windows.SplitterWindow_SetBorderSize(*args, **kwargs) - - def GetSashSize(*args, **kwargs): - """ - GetSashSize(self) -> int - - Gets the sash size - """ - return _windows.SplitterWindow_GetSashSize(*args, **kwargs) - - def GetBorderSize(*args, **kwargs): - """ - GetBorderSize(self) -> int - - Gets the border size - """ - return _windows.SplitterWindow_GetBorderSize(*args, **kwargs) - - def SetSashPosition(*args, **kwargs): - """ - SetSashPosition(self, int position, bool redraw=True) - - Sets the sash position, in pixels. If redraw is Ttrue then - the panes are resized and the sash and border are redrawn. - """ - return _windows.SplitterWindow_SetSashPosition(*args, **kwargs) - - def GetSashPosition(*args, **kwargs): - """ - GetSashPosition(self) -> int - - Returns the surrent sash position. - """ - return _windows.SplitterWindow_GetSashPosition(*args, **kwargs) - - def SetMinimumPaneSize(*args, **kwargs): - """ - SetMinimumPaneSize(self, int min) - - Sets the minimum pane size in pixels. - - The default minimum pane size is zero, which means that - either pane can be reduced to zero by dragging the sash, - thus removing one of the panes. To prevent this behaviour (and - veto out-of-range sash dragging), set a minimum size, - for example 20 pixels. If the wx.SP_PERMIT_UNSPLIT style is - used when a splitter window is created, the window may be - unsplit even if minimum size is non-zero. - """ - return _windows.SplitterWindow_SetMinimumPaneSize(*args, **kwargs) - - def GetMinimumPaneSize(*args, **kwargs): - """ - GetMinimumPaneSize(self) -> int - - Gets the minimum pane size in pixels. - """ - return _windows.SplitterWindow_GetMinimumPaneSize(*args, **kwargs) - - def SashHitTest(*args, **kwargs): - """ - SashHitTest(self, int x, int y, int tolerance=5) -> bool - - Tests for x, y over the sash - """ - return _windows.SplitterWindow_SashHitTest(*args, **kwargs) - - def SizeWindows(*args, **kwargs): - """ - SizeWindows(self) - - Resizes subwindows - """ - return _windows.SplitterWindow_SizeWindows(*args, **kwargs) - - def SetNeedUpdating(*args, **kwargs): - """SetNeedUpdating(self, bool needUpdating)""" - return _windows.SplitterWindow_SetNeedUpdating(*args, **kwargs) - - def GetNeedUpdating(*args, **kwargs): - """GetNeedUpdating(self) -> bool""" - return _windows.SplitterWindow_GetNeedUpdating(*args, **kwargs) - - -class SplitterWindowPtr(SplitterWindow): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = SplitterWindow -_windows.SplitterWindow_swigregister(SplitterWindowPtr) -SplitterNameStr = cvar.SplitterNameStr - -def PreSplitterWindow(*args, **kwargs): - """ - PreSplitterWindow() -> SplitterWindow - - Precreate a SplitterWindow for 2-phase creation. - """ - val = _windows.new_PreSplitterWindow(*args, **kwargs) - val.thisown = 1 - return val - -class SplitterEvent(core.NotifyEvent): - """This class represents the events generated by a splitter control.""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxSplitterEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, wxEventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent - - This class represents the events generated by a splitter control. - """ - newobj = _windows.new_SplitterEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def SetSashPosition(*args, **kwargs): - """ - SetSashPosition(self, int pos) - - This funciton is only meaningful during - EVT_SPLITTER_SASH_POS_CHANGING and - EVT_SPLITTER_SASH_POS_CHANGED events. In the case of - _CHANGED events, sets the the new sash position. In the case - of _CHANGING events, sets the new tracking bar position so - visual feedback during dragging will represent that change - that will actually take place. Set to -1 from the event - handler code to prevent repositioning. - """ - return _windows.SplitterEvent_SetSashPosition(*args, **kwargs) - - def GetSashPosition(*args, **kwargs): - """ - GetSashPosition(self) -> int - - Returns the new sash position while in - EVT_SPLITTER_SASH_POS_CHANGING and - EVT_SPLITTER_SASH_POS_CHANGED events. - """ - return _windows.SplitterEvent_GetSashPosition(*args, **kwargs) - - def GetWindowBeingRemoved(*args, **kwargs): - """ - GetWindowBeingRemoved(self) -> Window - - Returns a pointer to the window being removed when a - splitter window is unsplit. - """ - return _windows.SplitterEvent_GetWindowBeingRemoved(*args, **kwargs) - - def GetX(*args, **kwargs): - """ - GetX(self) -> int - - Returns the x coordinate of the double-click point in a - EVT_SPLITTER_DCLICK event. - """ - return _windows.SplitterEvent_GetX(*args, **kwargs) - - def GetY(*args, **kwargs): - """ - GetY(self) -> int - - Returns the y coordinate of the double-click point in a - EVT_SPLITTER_DCLICK event. - """ - return _windows.SplitterEvent_GetY(*args, **kwargs) - - -class SplitterEventPtr(SplitterEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = SplitterEvent -_windows.SplitterEvent_swigregister(SplitterEventPtr) - -wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED = _windows.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED -wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING = _windows.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING -wxEVT_COMMAND_SPLITTER_DOUBLECLICKED = _windows.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED -wxEVT_COMMAND_SPLITTER_UNSPLIT = _windows.wxEVT_COMMAND_SPLITTER_UNSPLIT -EVT_SPLITTER_SASH_POS_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED, 1 ) -EVT_SPLITTER_SASH_POS_CHANGING = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING, 1 ) -EVT_SPLITTER_DOUBLECLICKED = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED, 1 ) -EVT_SPLITTER_UNSPLIT = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT, 1 ) -EVT_SPLITTER_DCLICK = EVT_SPLITTER_DOUBLECLICKED - -#--------------------------------------------------------------------------- - -SASH_DRAG_NONE = _windows.SASH_DRAG_NONE -SASH_DRAG_DRAGGING = _windows.SASH_DRAG_DRAGGING -SASH_DRAG_LEFT_DOWN = _windows.SASH_DRAG_LEFT_DOWN -SW_NOBORDER = _windows.SW_NOBORDER -SW_BORDER = _windows.SW_BORDER -SW_3DSASH = _windows.SW_3DSASH -SW_3DBORDER = _windows.SW_3DBORDER -SW_3D = _windows.SW_3D -SASH_TOP = _windows.SASH_TOP -SASH_RIGHT = _windows.SASH_RIGHT -SASH_BOTTOM = _windows.SASH_BOTTOM -SASH_LEFT = _windows.SASH_LEFT -SASH_NONE = _windows.SASH_NONE -class SashWindow(core.Window): - def __repr__(self): - return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - long style=wxCLIP_CHILDREN|wxSW_3D, - String name=SashNameStr) -> SashWindow - """ - newobj = _windows.new_SashWindow(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - long style=wxCLIP_CHILDREN|wxSW_3D, - String name=SashNameStr) -> bool - """ - return _windows.SashWindow_Create(*args, **kwargs) - - def SetSashVisible(*args, **kwargs): - """SetSashVisible(self, int edge, bool sash)""" - return _windows.SashWindow_SetSashVisible(*args, **kwargs) - - def GetSashVisible(*args, **kwargs): - """GetSashVisible(self, int edge) -> bool""" - return _windows.SashWindow_GetSashVisible(*args, **kwargs) - - def SetSashBorder(*args, **kwargs): - """SetSashBorder(self, int edge, bool border)""" - return _windows.SashWindow_SetSashBorder(*args, **kwargs) - - def HasBorder(*args, **kwargs): - """HasBorder(self, int edge) -> bool""" - return _windows.SashWindow_HasBorder(*args, **kwargs) - - def GetEdgeMargin(*args, **kwargs): - """GetEdgeMargin(self, int edge) -> int""" - return _windows.SashWindow_GetEdgeMargin(*args, **kwargs) - - def SetDefaultBorderSize(*args, **kwargs): - """SetDefaultBorderSize(self, int width)""" - return _windows.SashWindow_SetDefaultBorderSize(*args, **kwargs) - - def GetDefaultBorderSize(*args, **kwargs): - """GetDefaultBorderSize(self) -> int""" - return _windows.SashWindow_GetDefaultBorderSize(*args, **kwargs) - - def SetExtraBorderSize(*args, **kwargs): - """SetExtraBorderSize(self, int width)""" - return _windows.SashWindow_SetExtraBorderSize(*args, **kwargs) - - def GetExtraBorderSize(*args, **kwargs): - """GetExtraBorderSize(self) -> int""" - return _windows.SashWindow_GetExtraBorderSize(*args, **kwargs) - - def SetMinimumSizeX(*args, **kwargs): - """SetMinimumSizeX(self, int min)""" - return _windows.SashWindow_SetMinimumSizeX(*args, **kwargs) - - def SetMinimumSizeY(*args, **kwargs): - """SetMinimumSizeY(self, int min)""" - return _windows.SashWindow_SetMinimumSizeY(*args, **kwargs) - - def GetMinimumSizeX(*args, **kwargs): - """GetMinimumSizeX(self) -> int""" - return _windows.SashWindow_GetMinimumSizeX(*args, **kwargs) - - def GetMinimumSizeY(*args, **kwargs): - """GetMinimumSizeY(self) -> int""" - return _windows.SashWindow_GetMinimumSizeY(*args, **kwargs) - - def SetMaximumSizeX(*args, **kwargs): - """SetMaximumSizeX(self, int max)""" - return _windows.SashWindow_SetMaximumSizeX(*args, **kwargs) - - def SetMaximumSizeY(*args, **kwargs): - """SetMaximumSizeY(self, int max)""" - return _windows.SashWindow_SetMaximumSizeY(*args, **kwargs) - - def GetMaximumSizeX(*args, **kwargs): - """GetMaximumSizeX(self) -> int""" - return _windows.SashWindow_GetMaximumSizeX(*args, **kwargs) - - def GetMaximumSizeY(*args, **kwargs): - """GetMaximumSizeY(self) -> int""" - return _windows.SashWindow_GetMaximumSizeY(*args, **kwargs) - - def SashHitTest(*args, **kwargs): - """SashHitTest(self, int x, int y, int tolerance=2) -> int""" - return _windows.SashWindow_SashHitTest(*args, **kwargs) - - def SizeWindows(*args, **kwargs): - """SizeWindows(self)""" - return _windows.SashWindow_SizeWindows(*args, **kwargs) - - -class SashWindowPtr(SashWindow): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = SashWindow -_windows.SashWindow_swigregister(SashWindowPtr) -SashNameStr = cvar.SashNameStr -SashLayoutNameStr = cvar.SashLayoutNameStr - -def PreSashWindow(*args, **kwargs): - """PreSashWindow() -> SashWindow""" - val = _windows.new_PreSashWindow(*args, **kwargs) - val.thisown = 1 - return val - -SASH_STATUS_OK = _windows.SASH_STATUS_OK -SASH_STATUS_OUT_OF_RANGE = _windows.SASH_STATUS_OUT_OF_RANGE -class SashEvent(core.CommandEvent): - def __repr__(self): - return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int id=0, int edge=SASH_NONE) -> SashEvent""" - newobj = _windows.new_SashEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def SetEdge(*args, **kwargs): - """SetEdge(self, int edge)""" - return _windows.SashEvent_SetEdge(*args, **kwargs) - - def GetEdge(*args, **kwargs): - """GetEdge(self) -> int""" - return _windows.SashEvent_GetEdge(*args, **kwargs) - - def SetDragRect(*args, **kwargs): - """SetDragRect(self, Rect rect)""" - return _windows.SashEvent_SetDragRect(*args, **kwargs) - - def GetDragRect(*args, **kwargs): - """GetDragRect(self) -> Rect""" - return _windows.SashEvent_GetDragRect(*args, **kwargs) - - def SetDragStatus(*args, **kwargs): - """SetDragStatus(self, int status)""" - return _windows.SashEvent_SetDragStatus(*args, **kwargs) - - def GetDragStatus(*args, **kwargs): - """GetDragStatus(self) -> int""" - return _windows.SashEvent_GetDragStatus(*args, **kwargs) - - -class SashEventPtr(SashEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = SashEvent -_windows.SashEvent_swigregister(SashEventPtr) - -wxEVT_SASH_DRAGGED = _windows.wxEVT_SASH_DRAGGED -EVT_SASH_DRAGGED = wx.PyEventBinder( wxEVT_SASH_DRAGGED, 1 ) -EVT_SASH_DRAGGED_RANGE = wx.PyEventBinder( wxEVT_SASH_DRAGGED, 2 ) - -#--------------------------------------------------------------------------- - -LAYOUT_HORIZONTAL = _windows.LAYOUT_HORIZONTAL -LAYOUT_VERTICAL = _windows.LAYOUT_VERTICAL -LAYOUT_NONE = _windows.LAYOUT_NONE -LAYOUT_TOP = _windows.LAYOUT_TOP -LAYOUT_LEFT = _windows.LAYOUT_LEFT -LAYOUT_RIGHT = _windows.LAYOUT_RIGHT -LAYOUT_BOTTOM = _windows.LAYOUT_BOTTOM -LAYOUT_LENGTH_Y = _windows.LAYOUT_LENGTH_Y -LAYOUT_LENGTH_X = _windows.LAYOUT_LENGTH_X -LAYOUT_MRU_LENGTH = _windows.LAYOUT_MRU_LENGTH -LAYOUT_QUERY = _windows.LAYOUT_QUERY -wxEVT_QUERY_LAYOUT_INFO = _windows.wxEVT_QUERY_LAYOUT_INFO -wxEVT_CALCULATE_LAYOUT = _windows.wxEVT_CALCULATE_LAYOUT -class QueryLayoutInfoEvent(core.Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int id=0) -> QueryLayoutInfoEvent""" - newobj = _windows.new_QueryLayoutInfoEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def SetRequestedLength(*args, **kwargs): - """SetRequestedLength(self, int length)""" - return _windows.QueryLayoutInfoEvent_SetRequestedLength(*args, **kwargs) - - def GetRequestedLength(*args, **kwargs): - """GetRequestedLength(self) -> int""" - return _windows.QueryLayoutInfoEvent_GetRequestedLength(*args, **kwargs) - - def SetFlags(*args, **kwargs): - """SetFlags(self, int flags)""" - return _windows.QueryLayoutInfoEvent_SetFlags(*args, **kwargs) - - def GetFlags(*args, **kwargs): - """GetFlags(self) -> int""" - return _windows.QueryLayoutInfoEvent_GetFlags(*args, **kwargs) - - def SetSize(*args, **kwargs): - """SetSize(self, Size size)""" - return _windows.QueryLayoutInfoEvent_SetSize(*args, **kwargs) - - def GetSize(*args, **kwargs): - """GetSize(self) -> Size""" - return _windows.QueryLayoutInfoEvent_GetSize(*args, **kwargs) - - def SetOrientation(*args, **kwargs): - """SetOrientation(self, int orient)""" - return _windows.QueryLayoutInfoEvent_SetOrientation(*args, **kwargs) - - def GetOrientation(*args, **kwargs): - """GetOrientation(self) -> int""" - return _windows.QueryLayoutInfoEvent_GetOrientation(*args, **kwargs) - - def SetAlignment(*args, **kwargs): - """SetAlignment(self, int align)""" - return _windows.QueryLayoutInfoEvent_SetAlignment(*args, **kwargs) - - def GetAlignment(*args, **kwargs): - """GetAlignment(self) -> int""" - return _windows.QueryLayoutInfoEvent_GetAlignment(*args, **kwargs) - - -class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = QueryLayoutInfoEvent -_windows.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr) - -class CalculateLayoutEvent(core.Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, int id=0) -> CalculateLayoutEvent""" - newobj = _windows.new_CalculateLayoutEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def SetFlags(*args, **kwargs): - """SetFlags(self, int flags)""" - return _windows.CalculateLayoutEvent_SetFlags(*args, **kwargs) - - def GetFlags(*args, **kwargs): - """GetFlags(self) -> int""" - return _windows.CalculateLayoutEvent_GetFlags(*args, **kwargs) - - def SetRect(*args, **kwargs): - """SetRect(self, Rect rect)""" - return _windows.CalculateLayoutEvent_SetRect(*args, **kwargs) - - def GetRect(*args, **kwargs): - """GetRect(self) -> Rect""" - return _windows.CalculateLayoutEvent_GetRect(*args, **kwargs) - - -class CalculateLayoutEventPtr(CalculateLayoutEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = CalculateLayoutEvent -_windows.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr) - -EVT_QUERY_LAYOUT_INFO = wx.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO ) -EVT_CALCULATE_LAYOUT = wx.PyEventBinder( wxEVT_CALCULATE_LAYOUT ) - -class SashLayoutWindow(SashWindow): - def __repr__(self): - return "<%s.%s; proxy of C++ wxSashLayoutWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - long style=wxCLIP_CHILDREN|wxSW_3D, - String name=SashLayoutNameStr) -> SashLayoutWindow - """ - newobj = _windows.new_SashLayoutWindow(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - long style=wxCLIP_CHILDREN|wxSW_3D, - String name=SashLayoutNameStr) -> bool - """ - return _windows.SashLayoutWindow_Create(*args, **kwargs) - - def GetAlignment(*args, **kwargs): - """GetAlignment(self) -> int""" - return _windows.SashLayoutWindow_GetAlignment(*args, **kwargs) - - def GetOrientation(*args, **kwargs): - """GetOrientation(self) -> int""" - return _windows.SashLayoutWindow_GetOrientation(*args, **kwargs) - - def SetAlignment(*args, **kwargs): - """SetAlignment(self, int alignment)""" - return _windows.SashLayoutWindow_SetAlignment(*args, **kwargs) - - def SetDefaultSize(*args, **kwargs): - """SetDefaultSize(self, Size size)""" - return _windows.SashLayoutWindow_SetDefaultSize(*args, **kwargs) - - def SetOrientation(*args, **kwargs): - """SetOrientation(self, int orientation)""" - return _windows.SashLayoutWindow_SetOrientation(*args, **kwargs) - - -class SashLayoutWindowPtr(SashLayoutWindow): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = SashLayoutWindow -_windows.SashLayoutWindow_swigregister(SashLayoutWindowPtr) - -def PreSashLayoutWindow(*args, **kwargs): - """PreSashLayoutWindow() -> SashLayoutWindow""" - val = _windows.new_PreSashLayoutWindow(*args, **kwargs) - val.thisown = 1 - return val - -class LayoutAlgorithm(core.Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> LayoutAlgorithm""" - newobj = _windows.new_LayoutAlgorithm(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_windows.delete_LayoutAlgorithm): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def LayoutMDIFrame(*args, **kwargs): - """LayoutMDIFrame(self, MDIParentFrame frame, Rect rect=None) -> bool""" - return _windows.LayoutAlgorithm_LayoutMDIFrame(*args, **kwargs) - - def LayoutFrame(*args, **kwargs): - """LayoutFrame(self, Frame frame, Window mainWindow=None) -> bool""" - return _windows.LayoutAlgorithm_LayoutFrame(*args, **kwargs) - - def LayoutWindow(*args, **kwargs): - """LayoutWindow(self, Window parent, Window mainWindow=None) -> bool""" - return _windows.LayoutAlgorithm_LayoutWindow(*args, **kwargs) - - -class LayoutAlgorithmPtr(LayoutAlgorithm): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = LayoutAlgorithm -_windows.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr) - -#--------------------------------------------------------------------------- - -class PopupWindow(core.Window): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Window parent, int flags=BORDER_NONE) -> PopupWindow""" - newobj = _windows.new_PopupWindow(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """Create(self, Window parent, int flags=BORDER_NONE) -> bool""" - return _windows.PopupWindow_Create(*args, **kwargs) - - def Position(*args, **kwargs): - """Position(self, Point ptOrigin, Size size)""" - return _windows.PopupWindow_Position(*args, **kwargs) - - -class PopupWindowPtr(PopupWindow): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PopupWindow -_windows.PopupWindow_swigregister(PopupWindowPtr) - -def PrePopupWindow(*args, **kwargs): - """PrePopupWindow() -> PopupWindow""" - val = _windows.new_PrePopupWindow(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -class PopupTransientWindow(PopupWindow): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow""" - newobj = _windows.new_PopupTransientWindow(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self);self._setCallbackInfo(self, PopupTransientWindow) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _windows.PopupTransientWindow__setCallbackInfo(*args, **kwargs) - - def Popup(*args, **kwargs): - """Popup(self, Window focus=None)""" - return _windows.PopupTransientWindow_Popup(*args, **kwargs) - - def Dismiss(*args, **kwargs): - """Dismiss(self)""" - return _windows.PopupTransientWindow_Dismiss(*args, **kwargs) - - -class PopupTransientWindowPtr(PopupTransientWindow): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PopupTransientWindow -_windows.PopupTransientWindow_swigregister(PopupTransientWindowPtr) - -def PrePopupTransientWindow(*args, **kwargs): - """PrePopupTransientWindow() -> PopupTransientWindow""" - val = _windows.new_PrePopupTransientWindow(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -class TipWindow(PopupTransientWindow): - def __repr__(self): - return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow""" - newobj = _windows.new_TipWindow(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def SetBoundingRect(*args, **kwargs): - """SetBoundingRect(self, Rect rectBound)""" - return _windows.TipWindow_SetBoundingRect(*args, **kwargs) - - def Close(*args, **kwargs): - """Close(self)""" - return _windows.TipWindow_Close(*args, **kwargs) - - -class TipWindowPtr(TipWindow): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = TipWindow -_windows.TipWindow_swigregister(TipWindowPtr) - -#--------------------------------------------------------------------------- - -class VScrolledWindow(Panel): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow - """ - newobj = _windows.new_VScrolledWindow(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self); self._setCallbackInfo(self, VScrolledWindow) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _windows.VScrolledWindow__setCallbackInfo(*args, **kwargs) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool - """ - return _windows.VScrolledWindow_Create(*args, **kwargs) - - def SetLineCount(*args, **kwargs): - """SetLineCount(self, size_t count)""" - return _windows.VScrolledWindow_SetLineCount(*args, **kwargs) - - def ScrollToLine(*args, **kwargs): - """ScrollToLine(self, size_t line) -> bool""" - return _windows.VScrolledWindow_ScrollToLine(*args, **kwargs) - - def ScrollLines(*args, **kwargs): - """ - ScrollLines(self, int lines) -> bool - - If the platform and window class supports it, scrolls the window by - the given number of lines down, if lines is positive, or up if lines - is negative. Returns True if the window was scrolled, False if it was - already on top/bottom and nothing was done. - """ - return _windows.VScrolledWindow_ScrollLines(*args, **kwargs) - - def ScrollPages(*args, **kwargs): - """ - ScrollPages(self, int pages) -> bool - - If the platform and window class supports it, scrolls the window by - the given number of pages down, if pages is positive, or up if pages - is negative. Returns True if the window was scrolled, False if it was - already on top/bottom and nothing was done. - """ - return _windows.VScrolledWindow_ScrollPages(*args, **kwargs) - - def RefreshLine(*args, **kwargs): - """RefreshLine(self, size_t line)""" - return _windows.VScrolledWindow_RefreshLine(*args, **kwargs) - - def RefreshLines(*args, **kwargs): - """RefreshLines(self, size_t from, size_t to)""" - return _windows.VScrolledWindow_RefreshLines(*args, **kwargs) - - def HitTestXT(*args, **kwargs): - """ - HitTestXT(self, int x, int y) -> int - - Test where the given (in client coords) point lies - """ - return _windows.VScrolledWindow_HitTestXT(*args, **kwargs) - - def HitTest(*args, **kwargs): - """ - HitTest(self, Point pt) -> int - - Test where the given (in client coords) point lies - """ - return _windows.VScrolledWindow_HitTest(*args, **kwargs) - - def RefreshAll(*args, **kwargs): - """RefreshAll(self)""" - return _windows.VScrolledWindow_RefreshAll(*args, **kwargs) - - def GetLineCount(*args, **kwargs): - """GetLineCount(self) -> size_t""" - return _windows.VScrolledWindow_GetLineCount(*args, **kwargs) - - def GetFirstVisibleLine(*args, **kwargs): - """GetFirstVisibleLine(self) -> size_t""" - return _windows.VScrolledWindow_GetFirstVisibleLine(*args, **kwargs) - - def GetLastVisibleLine(*args, **kwargs): - """GetLastVisibleLine(self) -> size_t""" - return _windows.VScrolledWindow_GetLastVisibleLine(*args, **kwargs) - - def IsVisible(*args, **kwargs): - """IsVisible(self, size_t line) -> bool""" - return _windows.VScrolledWindow_IsVisible(*args, **kwargs) - - -class VScrolledWindowPtr(VScrolledWindow): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = VScrolledWindow -_windows.VScrolledWindow_swigregister(VScrolledWindowPtr) - -def PreVScrolledWindow(*args, **kwargs): - """PreVScrolledWindow() -> VScrolledWindow""" - val = _windows.new_PreVScrolledWindow(*args, **kwargs) - val.thisown = 1 - return val - -class VListBox(VScrolledWindow): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox - """ - newobj = _windows.new_VListBox(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self);self._setCallbackInfo(self, VListBox) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _windows.VListBox__setCallbackInfo(*args, **kwargs) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool - """ - return _windows.VListBox_Create(*args, **kwargs) - - def GetItemCount(*args, **kwargs): - """GetItemCount(self) -> size_t""" - return _windows.VListBox_GetItemCount(*args, **kwargs) - - def HasMultipleSelection(*args, **kwargs): - """HasMultipleSelection(self) -> bool""" - return _windows.VListBox_HasMultipleSelection(*args, **kwargs) - - def GetSelection(*args, **kwargs): - """GetSelection(self) -> int""" - return _windows.VListBox_GetSelection(*args, **kwargs) - - def IsCurrent(*args, **kwargs): - """IsCurrent(self, size_t item) -> bool""" - return _windows.VListBox_IsCurrent(*args, **kwargs) - - def IsSelected(*args, **kwargs): - """IsSelected(self, size_t item) -> bool""" - return _windows.VListBox_IsSelected(*args, **kwargs) - - def GetSelectedCount(*args, **kwargs): - """GetSelectedCount(self) -> size_t""" - return _windows.VListBox_GetSelectedCount(*args, **kwargs) - - def GetFirstSelected(*args, **kwargs): - """GetFirstSelected(self, unsigned long cookie) -> int""" - return _windows.VListBox_GetFirstSelected(*args, **kwargs) - - def GetNextSelected(*args, **kwargs): - """GetNextSelected(self, unsigned long cookie) -> int""" - return _windows.VListBox_GetNextSelected(*args, **kwargs) - - def GetMargins(*args, **kwargs): - """GetMargins(self) -> Point""" - return _windows.VListBox_GetMargins(*args, **kwargs) - - def GetSelectionBackground(*args, **kwargs): - """GetSelectionBackground(self) -> Colour""" - return _windows.VListBox_GetSelectionBackground(*args, **kwargs) - - def SetItemCount(*args, **kwargs): - """SetItemCount(self, size_t count)""" - return _windows.VListBox_SetItemCount(*args, **kwargs) - - def Clear(*args, **kwargs): - """Clear(self)""" - return _windows.VListBox_Clear(*args, **kwargs) - - def SetSelection(*args, **kwargs): - """SetSelection(self, int selection)""" - return _windows.VListBox_SetSelection(*args, **kwargs) - - def Select(*args, **kwargs): - """Select(self, size_t item, bool select=True) -> bool""" - return _windows.VListBox_Select(*args, **kwargs) - - def SelectRange(*args, **kwargs): - """SelectRange(self, size_t from, size_t to) -> bool""" - return _windows.VListBox_SelectRange(*args, **kwargs) - - def Toggle(*args, **kwargs): - """Toggle(self, size_t item)""" - return _windows.VListBox_Toggle(*args, **kwargs) - - def SelectAll(*args, **kwargs): - """SelectAll(self) -> bool""" - return _windows.VListBox_SelectAll(*args, **kwargs) - - def DeselectAll(*args, **kwargs): - """DeselectAll(self) -> bool""" - return _windows.VListBox_DeselectAll(*args, **kwargs) - - def SetMargins(*args, **kwargs): - """SetMargins(self, Point pt)""" - return _windows.VListBox_SetMargins(*args, **kwargs) - - def SetMarginsXY(*args, **kwargs): - """SetMarginsXY(self, int x, int y)""" - return _windows.VListBox_SetMarginsXY(*args, **kwargs) - - def SetSelectionBackground(*args, **kwargs): - """SetSelectionBackground(self, Colour col)""" - return _windows.VListBox_SetSelectionBackground(*args, **kwargs) - - -class VListBoxPtr(VListBox): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = VListBox -_windows.VListBox_swigregister(VListBoxPtr) -VListBoxNameStr = cvar.VListBoxNameStr - -def PreVListBox(*args, **kwargs): - """PreVListBox() -> VListBox""" - val = _windows.new_PreVListBox(*args, **kwargs) - val.thisown = 1 - return val - -class HtmlListBox(VListBox): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox - """ - newobj = _windows.new_HtmlListBox(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self);self._setCallbackInfo(self, HtmlListBox) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _windows.HtmlListBox__setCallbackInfo(*args, **kwargs) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool - """ - return _windows.HtmlListBox_Create(*args, **kwargs) - - def RefreshAll(*args, **kwargs): - """RefreshAll(self)""" - return _windows.HtmlListBox_RefreshAll(*args, **kwargs) - - def SetItemCount(*args, **kwargs): - """SetItemCount(self, size_t count)""" - return _windows.HtmlListBox_SetItemCount(*args, **kwargs) - - -class HtmlListBoxPtr(HtmlListBox): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = HtmlListBox -_windows.HtmlListBox_swigregister(HtmlListBoxPtr) - -def PreHtmlListBox(*args, **kwargs): - """PreHtmlListBox() -> HtmlListBox""" - val = _windows.new_PreHtmlListBox(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -class TaskBarIcon(core.EvtHandler): - def __repr__(self): - return "<%s.%s; proxy of C++ wxTaskBarIcon instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> TaskBarIcon""" - newobj = _windows.new_TaskBarIcon(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_windows.delete_TaskBarIcon): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def Destroy(*args, **kwargs): - """ - Destroy(self) - - Deletes the C++ object this Python object is a proxy for. - """ - return _windows.TaskBarIcon_Destroy(*args, **kwargs) - - def IsOk(*args, **kwargs): - """IsOk(self) -> bool""" - return _windows.TaskBarIcon_IsOk(*args, **kwargs) - - def __nonzero__(self): return self.IsOk() - def IsIconInstalled(*args, **kwargs): - """IsIconInstalled(self) -> bool""" - return _windows.TaskBarIcon_IsIconInstalled(*args, **kwargs) - - def SetIcon(*args, **kwargs): - """SetIcon(self, Icon icon, String tooltip=EmptyString) -> bool""" - return _windows.TaskBarIcon_SetIcon(*args, **kwargs) - - def RemoveIcon(*args, **kwargs): - """RemoveIcon(self) -> bool""" - return _windows.TaskBarIcon_RemoveIcon(*args, **kwargs) - - def PopupMenu(*args, **kwargs): - """PopupMenu(self, Menu menu) -> bool""" - return _windows.TaskBarIcon_PopupMenu(*args, **kwargs) - - -class TaskBarIconPtr(TaskBarIcon): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = TaskBarIcon -_windows.TaskBarIcon_swigregister(TaskBarIconPtr) - -class TaskBarIconEvent(core.Event): - def __repr__(self): - return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, wxEventType evtType, TaskBarIcon tbIcon) -> TaskBarIconEvent""" - newobj = _windows.new_TaskBarIconEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class TaskBarIconEventPtr(TaskBarIconEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = TaskBarIconEvent -_windows.TaskBarIconEvent_swigregister(TaskBarIconEventPtr) - -wxEVT_TASKBAR_MOVE = _windows.wxEVT_TASKBAR_MOVE -wxEVT_TASKBAR_LEFT_DOWN = _windows.wxEVT_TASKBAR_LEFT_DOWN -wxEVT_TASKBAR_LEFT_UP = _windows.wxEVT_TASKBAR_LEFT_UP -wxEVT_TASKBAR_RIGHT_DOWN = _windows.wxEVT_TASKBAR_RIGHT_DOWN -wxEVT_TASKBAR_RIGHT_UP = _windows.wxEVT_TASKBAR_RIGHT_UP -wxEVT_TASKBAR_LEFT_DCLICK = _windows.wxEVT_TASKBAR_LEFT_DCLICK -wxEVT_TASKBAR_RIGHT_DCLICK = _windows.wxEVT_TASKBAR_RIGHT_DCLICK -EVT_TASKBAR_MOVE = wx.PyEventBinder ( wxEVT_TASKBAR_MOVE ) -EVT_TASKBAR_LEFT_DOWN = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN ) -EVT_TASKBAR_LEFT_UP = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP ) -EVT_TASKBAR_RIGHT_DOWN = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN ) -EVT_TASKBAR_RIGHT_UP = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP ) -EVT_TASKBAR_LEFT_DCLICK = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK ) -EVT_TASKBAR_RIGHT_DCLICK = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK ) - -#--------------------------------------------------------------------------- - -class ColourData(core.Object): - """This class holds a variety of information related to colour dialogs.""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self) -> ColourData - - Constructor, sets default values. - """ - newobj = _windows.new_ColourData(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_windows.delete_ColourData): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def GetChooseFull(*args, **kwargs): - """ - GetChooseFull(self) -> bool - - Under Windows, determines whether the Windows colour dialog will display - the full dialog with custom colour selection controls. Has no meaning - under other platforms. The default value is true. - """ - return _windows.ColourData_GetChooseFull(*args, **kwargs) - - def GetColour(*args, **kwargs): - """ - GetColour(self) -> Colour - - Gets the colour (pre)selected by the dialog. - """ - return _windows.ColourData_GetColour(*args, **kwargs) - - def GetCustomColour(*args, **kwargs): - """ - GetCustomColour(self, int i) -> Colour - - Gets the i'th custom colour associated with the colour dialog. i should - be an integer between 0 and 15. The default custom colours are all white. - """ - return _windows.ColourData_GetCustomColour(*args, **kwargs) - - def SetChooseFull(*args, **kwargs): - """ - SetChooseFull(self, int flag) - - Under Windows, tells the Windows colour dialog to display the full dialog - with custom colour selection controls. Under other platforms, has no effect. - The default value is true. - """ - return _windows.ColourData_SetChooseFull(*args, **kwargs) - - def SetColour(*args, **kwargs): - """ - SetColour(self, Colour colour) - - Sets the default colour for the colour dialog. The default colour is black. - """ - return _windows.ColourData_SetColour(*args, **kwargs) - - def SetCustomColour(*args, **kwargs): - """ - SetCustomColour(self, int i, Colour colour) - - Sets the i'th custom colour for the colour dialog. i should be an integer - between 0 and 15. The default custom colours are all white. - """ - return _windows.ColourData_SetCustomColour(*args, **kwargs) - - -class ColourDataPtr(ColourData): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ColourData -_windows.ColourData_swigregister(ColourDataPtr) -FileSelectorPromptStr = cvar.FileSelectorPromptStr -DirSelectorPromptStr = cvar.DirSelectorPromptStr -DirDialogNameStr = cvar.DirDialogNameStr -FileSelectorDefaultWildcardStr = cvar.FileSelectorDefaultWildcardStr -GetTextFromUserPromptStr = cvar.GetTextFromUserPromptStr -MessageBoxCaptionStr = cvar.MessageBoxCaptionStr - -class ColourDialog(Dialog): - """This class represents the colour chooser dialog.""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, ColourData data=None) -> ColourDialog - - Constructor. Pass a parent window, and optionally a ColourData, which - will be copied to the colour dialog's internal ColourData instance. - """ - newobj = _windows.new_ColourDialog(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def GetColourData(*args, **kwargs): - """ - GetColourData(self) -> ColourData - - Returns a reference to the ColourData used by the dialog. - """ - return _windows.ColourDialog_GetColourData(*args, **kwargs) - - -class ColourDialogPtr(ColourDialog): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ColourDialog -_windows.ColourDialog_swigregister(ColourDialogPtr) - -class DirDialog(Dialog): - """This class represents the directory chooser dialog.""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, String message=DirSelectorPromptStr, - String defaultPath=EmptyString, long style=0, - Point pos=DefaultPosition, Size size=DefaultSize, - String name=DirDialogNameStr) -> DirDialog - - Constructor. Use ShowModal method to show the dialog. - """ - newobj = _windows.new_DirDialog(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def GetPath(*args, **kwargs): - """ - GetPath(self) -> String - - Returns the default or user-selected path. - """ - return _windows.DirDialog_GetPath(*args, **kwargs) - - def GetMessage(*args, **kwargs): - """ - GetMessage(self) -> String - - Returns the message that will be displayed on the dialog. - """ - return _windows.DirDialog_GetMessage(*args, **kwargs) - - def GetStyle(*args, **kwargs): - """ - GetStyle(self) -> long - - Returns the dialog style. - """ - return _windows.DirDialog_GetStyle(*args, **kwargs) - - def SetMessage(*args, **kwargs): - """ - SetMessage(self, String message) - - Sets the message that will be displayed on the dialog. - """ - return _windows.DirDialog_SetMessage(*args, **kwargs) - - def SetPath(*args, **kwargs): - """ - SetPath(self, String path) - - Sets the default path. - """ - return _windows.DirDialog_SetPath(*args, **kwargs) - - -class DirDialogPtr(DirDialog): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = DirDialog -_windows.DirDialog_swigregister(DirDialogPtr) - -class FileDialog(Dialog): - """This class represents the file chooser dialog.""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, String message=FileSelectorPromptStr, - String defaultDir=EmptyString, String defaultFile=EmptyString, - String wildcard=FileSelectorDefaultWildcardStr, - long style=0, Point pos=DefaultPosition) -> FileDialog - - Constructor. Use ShowModal method to show the dialog. - """ - newobj = _windows.new_FileDialog(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def SetMessage(*args, **kwargs): - """ - SetMessage(self, String message) - - Sets the message that will be displayed on the dialog. - """ - return _windows.FileDialog_SetMessage(*args, **kwargs) - - def SetPath(*args, **kwargs): - """ - SetPath(self, String path) - - Sets the path (the combined directory and filename that will - be returned when the dialog is dismissed). - """ - return _windows.FileDialog_SetPath(*args, **kwargs) - - def SetDirectory(*args, **kwargs): - """ - SetDirectory(self, String dir) - - Sets the default directory. - """ - return _windows.FileDialog_SetDirectory(*args, **kwargs) - - def SetFilename(*args, **kwargs): - """ - SetFilename(self, String name) - - Sets the default filename. - """ - return _windows.FileDialog_SetFilename(*args, **kwargs) - - def SetWildcard(*args, **kwargs): - """ - SetWildcard(self, String wildCard) - - Sets the wildcard, which can contain multiple file types, for example: - "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif" - """ - return _windows.FileDialog_SetWildcard(*args, **kwargs) - - def SetStyle(*args, **kwargs): - """ - SetStyle(self, long style) - - Sets the dialog style. - """ - return _windows.FileDialog_SetStyle(*args, **kwargs) - - def SetFilterIndex(*args, **kwargs): - """ - SetFilterIndex(self, int filterIndex) - - Sets the default filter index, starting from zero. - """ - return _windows.FileDialog_SetFilterIndex(*args, **kwargs) - - def GetMessage(*args, **kwargs): - """ - GetMessage(self) -> String - - Returns the message that will be displayed on the dialog. - """ - return _windows.FileDialog_GetMessage(*args, **kwargs) - - def GetPath(*args, **kwargs): - """ - GetPath(self) -> String - - Returns the full path (directory and filename) of the selected file. - """ - return _windows.FileDialog_GetPath(*args, **kwargs) - - def GetDirectory(*args, **kwargs): - """ - GetDirectory(self) -> String - - Returns the default directory. - """ - return _windows.FileDialog_GetDirectory(*args, **kwargs) - - def GetFilename(*args, **kwargs): - """ - GetFilename(self) -> String - - Returns the default filename. - """ - return _windows.FileDialog_GetFilename(*args, **kwargs) - - def GetWildcard(*args, **kwargs): - """ - GetWildcard(self) -> String - - Returns the file dialog wildcard. - """ - return _windows.FileDialog_GetWildcard(*args, **kwargs) - - def GetStyle(*args, **kwargs): - """ - GetStyle(self) -> long - - Returns the dialog style. - """ - return _windows.FileDialog_GetStyle(*args, **kwargs) - - def GetFilterIndex(*args, **kwargs): - """ - GetFilterIndex(self) -> int - - Returns the index into the list of filters supplied, optionally, in - the wildcard parameter. Before the dialog is shown, this is the index - which will be used when the dialog is first displayed. After the dialog - is shown, this is the index selected by the user. - """ - return _windows.FileDialog_GetFilterIndex(*args, **kwargs) - - def GetFilenames(*args, **kwargs): - """ - GetFilenames(self) -> PyObject - - Returns a list of filenames chosen in the dialog. This function should - only be used with the dialogs which have wx.MULTIPLE style, use - GetFilename for the others. - """ - return _windows.FileDialog_GetFilenames(*args, **kwargs) - - def GetPaths(*args, **kwargs): - """ - GetPaths(self) -> PyObject - - Fills the array paths with the full paths of the files chosen. This - function should only be used with the dialogs which have wx.MULTIPLE style, - use GetPath for the others. - """ - return _windows.FileDialog_GetPaths(*args, **kwargs) - - -class FileDialogPtr(FileDialog): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = FileDialog -_windows.FileDialog_swigregister(FileDialogPtr) - -CHOICEDLG_STYLE = _windows.CHOICEDLG_STYLE -class MultiChoiceDialog(Dialog): - """A simple dialog with a multi selection listbox.""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(Window parent, String message, String caption, - List choices=[], long style=CHOICEDLG_STYLE, - Point pos=DefaultPosition) -> MultiChoiceDialog - - Constructor. Use ShowModal method to show the dialog. - """ - newobj = _windows.new_MultiChoiceDialog(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def SetSelections(*args, **kwargs): - """ - SetSelections(List selections) - - Specify the items in the list that shoudl be selected, using a list of integers. - """ - return _windows.MultiChoiceDialog_SetSelections(*args, **kwargs) - - def GetSelections(*args, **kwargs): - """ - GetSelections() -> [selections] - - Returns a list of integers representing the items that are selected. - """ - return _windows.MultiChoiceDialog_GetSelections(*args, **kwargs) - - -class MultiChoiceDialogPtr(MultiChoiceDialog): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = MultiChoiceDialog -_windows.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr) - -class SingleChoiceDialog(Dialog): - """A simple dialog with a single selection listbox.""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(Window parent, String message, String caption, - List choices=[], long style=CHOICEDLG_STYLE, - Point pos=DefaultPosition) -> SingleChoiceDialog - - Constructor. Use ShowModal method to show the dialog. - """ - newobj = _windows.new_SingleChoiceDialog(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def GetSelection(*args, **kwargs): - """ - GetSelection(self) -> int - - Get the index of teh currently selected item. - """ - return _windows.SingleChoiceDialog_GetSelection(*args, **kwargs) - - def GetStringSelection(*args, **kwargs): - """ - GetStringSelection(self) -> String - - Returns the string value of the currently selected item - """ - return _windows.SingleChoiceDialog_GetStringSelection(*args, **kwargs) - - def SetSelection(*args, **kwargs): - """ - SetSelection(self, int sel) - - Set the current selected item to sel - """ - return _windows.SingleChoiceDialog_SetSelection(*args, **kwargs) - - -class SingleChoiceDialogPtr(SingleChoiceDialog): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = SingleChoiceDialog -_windows.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr) - -class TextEntryDialog(Dialog): - """A dialog with text control, [ok] and [cancel] buttons""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr, - String defaultValue=EmptyString, - long style=wxOK|wxCANCEL|wxCENTRE, Point pos=DefaultPosition) -> TextEntryDialog - - Constructor. Use ShowModal method to show the dialog. - """ - newobj = _windows.new_TextEntryDialog(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def GetValue(*args, **kwargs): - """ - GetValue(self) -> String - - Returns the text that the user has entered if the user has pressed OK, - or the original value if the user has pressed Cancel. - """ - return _windows.TextEntryDialog_GetValue(*args, **kwargs) - - def SetValue(*args, **kwargs): - """ - SetValue(self, String value) - - Sets the default text value. - """ - return _windows.TextEntryDialog_SetValue(*args, **kwargs) - - -class TextEntryDialogPtr(TextEntryDialog): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = TextEntryDialog -_windows.TextEntryDialog_swigregister(TextEntryDialogPtr) - -class FontData(core.Object): - """This class holds a variety of information related to font dialogs.""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self) -> FontData - - This class holds a variety of information related to font dialogs. - """ - newobj = _windows.new_FontData(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_windows.delete_FontData): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def EnableEffects(*args, **kwargs): - """ - EnableEffects(self, bool enable) - - Enables or disables 'effects' under MS Windows only. This refers - to the controls for manipulating colour, strikeout and underline - properties. The default value is true. - """ - return _windows.FontData_EnableEffects(*args, **kwargs) - - def GetAllowSymbols(*args, **kwargs): - """ - GetAllowSymbols(self) -> bool - - Under MS Windows, returns a flag determining whether symbol fonts can be - selected. Has no effect on other platforms. The default value is true. - """ - return _windows.FontData_GetAllowSymbols(*args, **kwargs) - - def GetColour(*args, **kwargs): - """ - GetColour(self) -> Colour - - Gets the colour associated with the font dialog. The default value is black. - """ - return _windows.FontData_GetColour(*args, **kwargs) - - def GetChosenFont(*args, **kwargs): - """ - GetChosenFont(self) -> Font - - Gets the font chosen by the user. - """ - return _windows.FontData_GetChosenFont(*args, **kwargs) - - def GetEnableEffects(*args, **kwargs): - """ - GetEnableEffects(self) -> bool - - Determines whether 'effects' are enabled under Windows. - """ - return _windows.FontData_GetEnableEffects(*args, **kwargs) - - def GetInitialFont(*args, **kwargs): - """ - GetInitialFont(self) -> Font - - Gets the font that will be initially used by the font dialog. This should have - previously been set by the application. - """ - return _windows.FontData_GetInitialFont(*args, **kwargs) - - def GetShowHelp(*args, **kwargs): - """ - GetShowHelp(self) -> bool - - Returns true if the Help button will be shown (Windows only). The default - value is false. - """ - return _windows.FontData_GetShowHelp(*args, **kwargs) - - def SetAllowSymbols(*args, **kwargs): - """ - SetAllowSymbols(self, bool allowSymbols) - - Under MS Windows, determines whether symbol fonts can be selected. Has no - effect on other platforms. The default value is true. - """ - return _windows.FontData_SetAllowSymbols(*args, **kwargs) - - def SetChosenFont(*args, **kwargs): - """ - SetChosenFont(self, Font font) - - Sets the font that will be returned to the user (for internal use only). - """ - return _windows.FontData_SetChosenFont(*args, **kwargs) - - def SetColour(*args, **kwargs): - """ - SetColour(self, Colour colour) - - Sets the colour that will be used for the font foreground colour. The default - colour is black. - """ - return _windows.FontData_SetColour(*args, **kwargs) - - def SetInitialFont(*args, **kwargs): - """ - SetInitialFont(self, Font font) - - Sets the font that will be initially used by the font dialog. - """ - return _windows.FontData_SetInitialFont(*args, **kwargs) - - def SetRange(*args, **kwargs): - """ - SetRange(self, int min, int max) - - Sets the valid range for the font point size (Windows only). The default is - 0, 0 (unrestricted range). - """ - return _windows.FontData_SetRange(*args, **kwargs) - - def SetShowHelp(*args, **kwargs): - """ - SetShowHelp(self, bool showHelp) - - Determines whether the Help button will be displayed in the font dialog - (Windows only). The default value is false. - """ - return _windows.FontData_SetShowHelp(*args, **kwargs) - - -class FontDataPtr(FontData): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = FontData -_windows.FontData_swigregister(FontDataPtr) - -class FontDialog(Dialog): - """This class represents the font chooser dialog.""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, FontData data) -> FontDialog - - Constructor. Pass a parent window and the FontData object to be - used to initialize the dialog controls. - """ - newobj = _windows.new_FontDialog(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def GetFontData(*args, **kwargs): - """ - GetFontData(self) -> FontData - - Returns a reference to the internal FontData used by the FontDialog. - """ - return _windows.FontDialog_GetFontData(*args, **kwargs) - - -class FontDialogPtr(FontDialog): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = FontDialog -_windows.FontDialog_swigregister(FontDialogPtr) - -class MessageDialog(Dialog): - """ - This class provides a dialog that shows a single or multi-line message, with - a choice of OK, Yes, No and Cancel buttons. - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr, - long style=wxOK|wxCANCEL|wxCENTRE, - Point pos=DefaultPosition) -> MessageDialog - - This class provides a dialog that shows a single or multi-line message, with - a choice of OK, Yes, No and Cancel buttons. - """ - newobj = _windows.new_MessageDialog(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - -class MessageDialogPtr(MessageDialog): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = MessageDialog -_windows.MessageDialog_swigregister(MessageDialogPtr) - -class ProgressDialog(Frame): - """ - A dialog that shows a short message and a progress bar. Optionally, it can - display an ABORT button. - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, String title, String message, int maximum=100, Window parent=None, - int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog - - Constructor. Creates the dialog, displays it and disables user input for other - windows, or, if wxPD_APP_MODAL flag is not given, for its parent window only. - """ - newobj = _windows.new_ProgressDialog(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Update(*args, **kwargs): - """ - Update(self, int value, String newmsg=EmptyString) -> bool - - Updates the dialog, setting the progress bar to the new value and, if given - changes the message above it. Returns true unless the Cancel button has been - pressed. - - If false is returned, the application can either immediately destroy the - dialog or ask the user for the confirmation and if the abort is not confirmed - the dialog may be resumed with Resume function. - """ - return _windows.ProgressDialog_Update(*args, **kwargs) - - def Resume(*args, **kwargs): - """ - Resume(self) - - Can be used to continue with the dialog, after the user had chosen to abort. - """ - return _windows.ProgressDialog_Resume(*args, **kwargs) - - -class ProgressDialogPtr(ProgressDialog): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ProgressDialog -_windows.ProgressDialog_swigregister(ProgressDialogPtr) - -FR_DOWN = _windows.FR_DOWN -FR_WHOLEWORD = _windows.FR_WHOLEWORD -FR_MATCHCASE = _windows.FR_MATCHCASE -FR_REPLACEDIALOG = _windows.FR_REPLACEDIALOG -FR_NOUPDOWN = _windows.FR_NOUPDOWN -FR_NOMATCHCASE = _windows.FR_NOMATCHCASE -FR_NOWHOLEWORD = _windows.FR_NOWHOLEWORD -wxEVT_COMMAND_FIND = _windows.wxEVT_COMMAND_FIND -wxEVT_COMMAND_FIND_NEXT = _windows.wxEVT_COMMAND_FIND_NEXT -wxEVT_COMMAND_FIND_REPLACE = _windows.wxEVT_COMMAND_FIND_REPLACE -wxEVT_COMMAND_FIND_REPLACE_ALL = _windows.wxEVT_COMMAND_FIND_REPLACE_ALL -wxEVT_COMMAND_FIND_CLOSE = _windows.wxEVT_COMMAND_FIND_CLOSE -EVT_FIND = wx.PyEventBinder( wxEVT_COMMAND_FIND, 1 ) -EVT_FIND_NEXT = wx.PyEventBinder( wxEVT_COMMAND_FIND_NEXT, 1 ) -EVT_FIND_REPLACE = wx.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE, 1 ) -EVT_FIND_REPLACE_ALL = wx.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL, 1 ) -EVT_FIND_CLOSE = wx.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE, 1 ) - -# For backwards compatibility. Should they be removed? -EVT_COMMAND_FIND = EVT_FIND -EVT_COMMAND_FIND_NEXT = EVT_FIND_NEXT -EVT_COMMAND_FIND_REPLACE = EVT_FIND_REPLACE -EVT_COMMAND_FIND_REPLACE_ALL = EVT_FIND_REPLACE_ALL -EVT_COMMAND_FIND_CLOSE = EVT_FIND_CLOSE - -class FindDialogEvent(core.CommandEvent): - """Events for the FindReplaceDialog""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent - - Events for the FindReplaceDialog - """ - newobj = _windows.new_FindDialogEvent(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def GetFlags(*args, **kwargs): - """ - GetFlags(self) -> int - - Get the currently selected flags: this is the combination of - wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags. - """ - return _windows.FindDialogEvent_GetFlags(*args, **kwargs) - - def GetFindString(*args, **kwargs): - """ - GetFindString(self) -> String - - Return the string to find (never empty). - """ - return _windows.FindDialogEvent_GetFindString(*args, **kwargs) - - def GetReplaceString(*args, **kwargs): - """ - GetReplaceString(self) -> String - - Return the string to replace the search string with (only - for replace and replace all events). - """ - return _windows.FindDialogEvent_GetReplaceString(*args, **kwargs) - - def GetDialog(*args, **kwargs): - """ - GetDialog(self) -> FindReplaceDialog - - Return the pointer to the dialog which generated this event. - """ - return _windows.FindDialogEvent_GetDialog(*args, **kwargs) - - def SetFlags(*args, **kwargs): - """SetFlags(self, int flags)""" - return _windows.FindDialogEvent_SetFlags(*args, **kwargs) - - def SetFindString(*args, **kwargs): - """SetFindString(self, String str)""" - return _windows.FindDialogEvent_SetFindString(*args, **kwargs) - - def SetReplaceString(*args, **kwargs): - """SetReplaceString(self, String str)""" - return _windows.FindDialogEvent_SetReplaceString(*args, **kwargs) - - -class FindDialogEventPtr(FindDialogEvent): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = FindDialogEvent -_windows.FindDialogEvent_swigregister(FindDialogEventPtr) - -class FindReplaceData(core.Object): - """ - FindReplaceData holds the data for FindReplaceDialog. It is used to initialize - the dialog with the default values and will keep the last values from the - dialog when it is closed. It is also updated each time a wxFindDialogEvent is - generated so instead of using the wxFindDialogEvent methods you can also - directly query this object. - - Note that all SetXXX() methods may only be called before showing the dialog - and calling them has no effect later. - - Flags - wxFR_DOWN: downward search/replace selected (otherwise, upwards) - - wxFR_WHOLEWORD: whole word search/replace selected - - wxFR_MATCHCASE: case sensitive search/replace selected (otherwise, - case insensitive) - - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, int flags=0) -> FindReplaceData - - Constuctor initializes the flags to default value (0). - """ - newobj = _windows.new_FindReplaceData(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_windows.delete_FindReplaceData): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def GetFindString(*args, **kwargs): - """ - GetFindString(self) -> String - - Get the string to find. - """ - return _windows.FindReplaceData_GetFindString(*args, **kwargs) - - def GetReplaceString(*args, **kwargs): - """ - GetReplaceString(self) -> String - - Get the replacement string. - """ - return _windows.FindReplaceData_GetReplaceString(*args, **kwargs) - - def GetFlags(*args, **kwargs): - """ - GetFlags(self) -> int - - Get the combination of flag values. - """ - return _windows.FindReplaceData_GetFlags(*args, **kwargs) - - def SetFlags(*args, **kwargs): - """ - SetFlags(self, int flags) - - Set the flags to use to initialize the controls of the dialog. - """ - return _windows.FindReplaceData_SetFlags(*args, **kwargs) - - def SetFindString(*args, **kwargs): - """ - SetFindString(self, String str) - - Set the string to find (used as initial value by the dialog). - """ - return _windows.FindReplaceData_SetFindString(*args, **kwargs) - - def SetReplaceString(*args, **kwargs): - """ - SetReplaceString(self, String str) - - Set the replacement string (used as initial value by the dialog). - """ - return _windows.FindReplaceData_SetReplaceString(*args, **kwargs) - - -class FindReplaceDataPtr(FindReplaceData): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = FindReplaceData -_windows.FindReplaceData_swigregister(FindReplaceDataPtr) - -class FindReplaceDialog(Dialog): - """ - FindReplaceDialog is a standard modeless dialog which is used to allow the - user to search for some text (and possibly replace it with something - else). The actual searching is supposed to be done in the owner window which - is the parent of this dialog. Note that it means that unlike for the other - standard dialogs this one must have a parent window. Also note that there is - no way to use this dialog in a modal way; it is always, by design and - implementation, modeless. - """ - def __repr__(self): - return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, FindReplaceData data, String title, - int style=0) -> FindReplaceDialog - - Create a FindReplaceDialog. The parent and data parameters must be - non-None. Use Show to display the dialog. - """ - newobj = _windows.new_FindReplaceDialog(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, FindReplaceData data, String title, - int style=0) -> bool - - Create the dialog, for 2-phase create. - """ - return _windows.FindReplaceDialog_Create(*args, **kwargs) - - def GetData(*args, **kwargs): - """ - GetData(self) -> FindReplaceData - - Get the FindReplaceData object used by this dialog. - """ - return _windows.FindReplaceDialog_GetData(*args, **kwargs) - - def SetData(*args, **kwargs): - """ - SetData(self, FindReplaceData data) - - Set the FindReplaceData object used by this dialog. - """ - return _windows.FindReplaceDialog_SetData(*args, **kwargs) - - -class FindReplaceDialogPtr(FindReplaceDialog): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = FindReplaceDialog -_windows.FindReplaceDialog_swigregister(FindReplaceDialogPtr) - -def PreFindReplaceDialog(*args, **kwargs): - """ - PreFindReplaceDialog() -> FindReplaceDialog - - Precreate a FindReplaceDialog for 2-phase creation - """ - val = _windows.new_PreFindReplaceDialog(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -IDM_WINDOWTILE = _windows.IDM_WINDOWTILE -IDM_WINDOWTILEHOR = _windows.IDM_WINDOWTILEHOR -IDM_WINDOWCASCADE = _windows.IDM_WINDOWCASCADE -IDM_WINDOWICONS = _windows.IDM_WINDOWICONS -IDM_WINDOWNEXT = _windows.IDM_WINDOWNEXT -IDM_WINDOWTILEVERT = _windows.IDM_WINDOWTILEVERT -FIRST_MDI_CHILD = _windows.FIRST_MDI_CHILD -LAST_MDI_CHILD = _windows.LAST_MDI_CHILD -class MDIParentFrame(Frame): - def __repr__(self): - return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, String title, Point pos=DefaultPosition, - Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL, - String name=FrameNameStr) -> MDIParentFrame - """ - newobj = _windows.new_MDIParentFrame(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, Window parent, int id, String title, Point pos=DefaultPosition, - Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL, - String name=FrameNameStr) -> bool - """ - return _windows.MDIParentFrame_Create(*args, **kwargs) - - def ActivateNext(*args, **kwargs): - """ActivateNext(self)""" - return _windows.MDIParentFrame_ActivateNext(*args, **kwargs) - - def ActivatePrevious(*args, **kwargs): - """ActivatePrevious(self)""" - return _windows.MDIParentFrame_ActivatePrevious(*args, **kwargs) - - def ArrangeIcons(*args, **kwargs): - """ArrangeIcons(self)""" - return _windows.MDIParentFrame_ArrangeIcons(*args, **kwargs) - - def Cascade(*args, **kwargs): - """Cascade(self)""" - return _windows.MDIParentFrame_Cascade(*args, **kwargs) - - def GetActiveChild(*args, **kwargs): - """GetActiveChild(self) -> MDIChildFrame""" - return _windows.MDIParentFrame_GetActiveChild(*args, **kwargs) - - def GetClientWindow(*args, **kwargs): - """GetClientWindow(self) -> MDIClientWindow""" - return _windows.MDIParentFrame_GetClientWindow(*args, **kwargs) - - def GetToolBar(*args, **kwargs): - """GetToolBar(self) -> Window""" - return _windows.MDIParentFrame_GetToolBar(*args, **kwargs) - - def GetWindowMenu(*args, **kwargs): - """GetWindowMenu(self) -> Menu""" - return _windows.MDIParentFrame_GetWindowMenu(*args, **kwargs) - - def SetWindowMenu(*args, **kwargs): - """SetWindowMenu(self, Menu menu)""" - return _windows.MDIParentFrame_SetWindowMenu(*args, **kwargs) - - def SetToolBar(*args, **kwargs): - """SetToolBar(self, wxToolBar toolbar)""" - return _windows.MDIParentFrame_SetToolBar(*args, **kwargs) - - def Tile(*args, **kwargs): - """Tile(self)""" - return _windows.MDIParentFrame_Tile(*args, **kwargs) - - -class MDIParentFramePtr(MDIParentFrame): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = MDIParentFrame -_windows.MDIParentFrame_swigregister(MDIParentFramePtr) - -def PreMDIParentFrame(*args, **kwargs): - """PreMDIParentFrame() -> MDIParentFrame""" - val = _windows.new_PreMDIParentFrame(*args, **kwargs) - val.thisown = 1 - return val - -class MDIChildFrame(Frame): - def __repr__(self): - return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, MDIParentFrame parent, int id, String title, Point pos=DefaultPosition, - Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE, - String name=FrameNameStr) -> MDIChildFrame - """ - newobj = _windows.new_MDIChildFrame(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """ - Create(self, MDIParentFrame parent, int id, String title, Point pos=DefaultPosition, - Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE, - String name=FrameNameStr) -> bool - """ - return _windows.MDIChildFrame_Create(*args, **kwargs) - - def Activate(*args, **kwargs): - """Activate(self)""" - return _windows.MDIChildFrame_Activate(*args, **kwargs) - - def Maximize(*args, **kwargs): - """Maximize(self, bool maximize)""" - return _windows.MDIChildFrame_Maximize(*args, **kwargs) - - def Restore(*args, **kwargs): - """Restore(self)""" - return _windows.MDIChildFrame_Restore(*args, **kwargs) - - -class MDIChildFramePtr(MDIChildFrame): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = MDIChildFrame -_windows.MDIChildFrame_swigregister(MDIChildFramePtr) - -def PreMDIChildFrame(*args, **kwargs): - """PreMDIChildFrame() -> MDIChildFrame""" - val = _windows.new_PreMDIChildFrame(*args, **kwargs) - val.thisown = 1 - return val - -class MDIClientWindow(core.Window): - def __repr__(self): - return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, MDIParentFrame parent, long style=0) -> MDIClientWindow""" - newobj = _windows.new_MDIClientWindow(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Create(*args, **kwargs): - """Create(self, MDIParentFrame parent, long style=0) -> bool""" - return _windows.MDIClientWindow_Create(*args, **kwargs) - - -class MDIClientWindowPtr(MDIClientWindow): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = MDIClientWindow -_windows.MDIClientWindow_swigregister(MDIClientWindowPtr) - -def PreMDIClientWindow(*args, **kwargs): - """PreMDIClientWindow() -> MDIClientWindow""" - val = _windows.new_PreMDIClientWindow(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -class PyWindow(core.Window): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - long style=0, String name=PanelNameStr) -> PyWindow - """ - newobj = _windows.new_PyWindow(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self); self._setCallbackInfo(self, PyWindow) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _windows.PyWindow__setCallbackInfo(*args, **kwargs) - - def base_DoMoveWindow(*args, **kwargs): - """base_DoMoveWindow(self, int x, int y, int width, int height)""" - return _windows.PyWindow_base_DoMoveWindow(*args, **kwargs) - - def base_DoSetSize(*args, **kwargs): - """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)""" - return _windows.PyWindow_base_DoSetSize(*args, **kwargs) - - def base_DoSetClientSize(*args, **kwargs): - """base_DoSetClientSize(self, int width, int height)""" - return _windows.PyWindow_base_DoSetClientSize(*args, **kwargs) - - def base_DoSetVirtualSize(*args, **kwargs): - """base_DoSetVirtualSize(self, int x, int y)""" - return _windows.PyWindow_base_DoSetVirtualSize(*args, **kwargs) - - def base_DoGetSize(*args, **kwargs): - """base_DoGetSize() -> (width, height)""" - return _windows.PyWindow_base_DoGetSize(*args, **kwargs) - - def base_DoGetClientSize(*args, **kwargs): - """base_DoGetClientSize() -> (width, height)""" - return _windows.PyWindow_base_DoGetClientSize(*args, **kwargs) - - def base_DoGetPosition(*args, **kwargs): - """base_DoGetPosition() -> (x,y)""" - return _windows.PyWindow_base_DoGetPosition(*args, **kwargs) - - def base_DoGetVirtualSize(*args, **kwargs): - """base_DoGetVirtualSize(self) -> Size""" - return _windows.PyWindow_base_DoGetVirtualSize(*args, **kwargs) - - def base_DoGetBestSize(*args, **kwargs): - """base_DoGetBestSize(self) -> Size""" - return _windows.PyWindow_base_DoGetBestSize(*args, **kwargs) - - def base_InitDialog(*args, **kwargs): - """base_InitDialog(self)""" - return _windows.PyWindow_base_InitDialog(*args, **kwargs) - - def base_TransferDataToWindow(*args, **kwargs): - """base_TransferDataToWindow(self) -> bool""" - return _windows.PyWindow_base_TransferDataToWindow(*args, **kwargs) - - def base_TransferDataFromWindow(*args, **kwargs): - """base_TransferDataFromWindow(self) -> bool""" - return _windows.PyWindow_base_TransferDataFromWindow(*args, **kwargs) - - def base_Validate(*args, **kwargs): - """base_Validate(self) -> bool""" - return _windows.PyWindow_base_Validate(*args, **kwargs) - - def base_AcceptsFocus(*args, **kwargs): - """base_AcceptsFocus(self) -> bool""" - return _windows.PyWindow_base_AcceptsFocus(*args, **kwargs) - - def base_AcceptsFocusFromKeyboard(*args, **kwargs): - """base_AcceptsFocusFromKeyboard(self) -> bool""" - return _windows.PyWindow_base_AcceptsFocusFromKeyboard(*args, **kwargs) - - def base_GetMaxSize(*args, **kwargs): - """base_GetMaxSize(self) -> Size""" - return _windows.PyWindow_base_GetMaxSize(*args, **kwargs) - - def base_AddChild(*args, **kwargs): - """base_AddChild(self, Window child)""" - return _windows.PyWindow_base_AddChild(*args, **kwargs) - - def base_RemoveChild(*args, **kwargs): - """base_RemoveChild(self, Window child)""" - return _windows.PyWindow_base_RemoveChild(*args, **kwargs) - - def base_ShouldInheritColours(*args, **kwargs): - """base_ShouldInheritColours(self) -> bool""" - return _windows.PyWindow_base_ShouldInheritColours(*args, **kwargs) - - def base_ApplyParentThemeBackground(*args, **kwargs): - """base_ApplyParentThemeBackground(self, Colour c)""" - return _windows.PyWindow_base_ApplyParentThemeBackground(*args, **kwargs) - - -class PyWindowPtr(PyWindow): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PyWindow -_windows.PyWindow_swigregister(PyWindowPtr) - -def PrePyWindow(*args, **kwargs): - """PrePyWindow() -> PyWindow""" - val = _windows.new_PrePyWindow(*args, **kwargs) - val.thisown = 1 - return val - -class PyPanel(Panel): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - long style=0, String name=PanelNameStr) -> PyPanel - """ - newobj = _windows.new_PyPanel(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self); self._setCallbackInfo(self, PyPanel) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _windows.PyPanel__setCallbackInfo(*args, **kwargs) - - def base_DoMoveWindow(*args, **kwargs): - """base_DoMoveWindow(self, int x, int y, int width, int height)""" - return _windows.PyPanel_base_DoMoveWindow(*args, **kwargs) - - def base_DoSetSize(*args, **kwargs): - """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)""" - return _windows.PyPanel_base_DoSetSize(*args, **kwargs) - - def base_DoSetClientSize(*args, **kwargs): - """base_DoSetClientSize(self, int width, int height)""" - return _windows.PyPanel_base_DoSetClientSize(*args, **kwargs) - - def base_DoSetVirtualSize(*args, **kwargs): - """base_DoSetVirtualSize(self, int x, int y)""" - return _windows.PyPanel_base_DoSetVirtualSize(*args, **kwargs) - - def base_DoGetSize(*args, **kwargs): - """base_DoGetSize() -> (width, height)""" - return _windows.PyPanel_base_DoGetSize(*args, **kwargs) - - def base_DoGetClientSize(*args, **kwargs): - """base_DoGetClientSize() -> (width, height)""" - return _windows.PyPanel_base_DoGetClientSize(*args, **kwargs) - - def base_DoGetPosition(*args, **kwargs): - """base_DoGetPosition() -> (x,y)""" - return _windows.PyPanel_base_DoGetPosition(*args, **kwargs) - - def base_DoGetVirtualSize(*args, **kwargs): - """base_DoGetVirtualSize(self) -> Size""" - return _windows.PyPanel_base_DoGetVirtualSize(*args, **kwargs) - - def base_DoGetBestSize(*args, **kwargs): - """base_DoGetBestSize(self) -> Size""" - return _windows.PyPanel_base_DoGetBestSize(*args, **kwargs) - - def base_InitDialog(*args, **kwargs): - """base_InitDialog(self)""" - return _windows.PyPanel_base_InitDialog(*args, **kwargs) - - def base_TransferDataToWindow(*args, **kwargs): - """base_TransferDataToWindow(self) -> bool""" - return _windows.PyPanel_base_TransferDataToWindow(*args, **kwargs) - - def base_TransferDataFromWindow(*args, **kwargs): - """base_TransferDataFromWindow(self) -> bool""" - return _windows.PyPanel_base_TransferDataFromWindow(*args, **kwargs) - - def base_Validate(*args, **kwargs): - """base_Validate(self) -> bool""" - return _windows.PyPanel_base_Validate(*args, **kwargs) - - def base_AcceptsFocus(*args, **kwargs): - """base_AcceptsFocus(self) -> bool""" - return _windows.PyPanel_base_AcceptsFocus(*args, **kwargs) - - def base_AcceptsFocusFromKeyboard(*args, **kwargs): - """base_AcceptsFocusFromKeyboard(self) -> bool""" - return _windows.PyPanel_base_AcceptsFocusFromKeyboard(*args, **kwargs) - - def base_GetMaxSize(*args, **kwargs): - """base_GetMaxSize(self) -> Size""" - return _windows.PyPanel_base_GetMaxSize(*args, **kwargs) - - def base_AddChild(*args, **kwargs): - """base_AddChild(self, Window child)""" - return _windows.PyPanel_base_AddChild(*args, **kwargs) - - def base_RemoveChild(*args, **kwargs): - """base_RemoveChild(self, Window child)""" - return _windows.PyPanel_base_RemoveChild(*args, **kwargs) - - def base_ShouldInheritColours(*args, **kwargs): - """base_ShouldInheritColours(self) -> bool""" - return _windows.PyPanel_base_ShouldInheritColours(*args, **kwargs) - - def base_ApplyParentThemeBackground(*args, **kwargs): - """base_ApplyParentThemeBackground(self, Colour c)""" - return _windows.PyPanel_base_ApplyParentThemeBackground(*args, **kwargs) - - -class PyPanelPtr(PyPanel): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PyPanel -_windows.PyPanel_swigregister(PyPanelPtr) - -def PrePyPanel(*args, **kwargs): - """PrePyPanel() -> PyPanel""" - val = _windows.new_PrePyPanel(*args, **kwargs) - val.thisown = 1 - return val - -class PyScrolledWindow(ScrolledWindow): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyScrolledWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - long style=0, String name=PanelNameStr) -> PyScrolledWindow - """ - newobj = _windows.new_PyScrolledWindow(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self); self._setCallbackInfo(self, PyPanel) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _windows.PyScrolledWindow__setCallbackInfo(*args, **kwargs) - - def base_DoMoveWindow(*args, **kwargs): - """base_DoMoveWindow(self, int x, int y, int width, int height)""" - return _windows.PyScrolledWindow_base_DoMoveWindow(*args, **kwargs) - - def base_DoSetSize(*args, **kwargs): - """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)""" - return _windows.PyScrolledWindow_base_DoSetSize(*args, **kwargs) - - def base_DoSetClientSize(*args, **kwargs): - """base_DoSetClientSize(self, int width, int height)""" - return _windows.PyScrolledWindow_base_DoSetClientSize(*args, **kwargs) - - def base_DoSetVirtualSize(*args, **kwargs): - """base_DoSetVirtualSize(self, int x, int y)""" - return _windows.PyScrolledWindow_base_DoSetVirtualSize(*args, **kwargs) - - def base_DoGetSize(*args, **kwargs): - """base_DoGetSize() -> (width, height)""" - return _windows.PyScrolledWindow_base_DoGetSize(*args, **kwargs) - - def base_DoGetClientSize(*args, **kwargs): - """base_DoGetClientSize() -> (width, height)""" - return _windows.PyScrolledWindow_base_DoGetClientSize(*args, **kwargs) - - def base_DoGetPosition(*args, **kwargs): - """base_DoGetPosition() -> (x,y)""" - return _windows.PyScrolledWindow_base_DoGetPosition(*args, **kwargs) - - def base_DoGetVirtualSize(*args, **kwargs): - """base_DoGetVirtualSize(self) -> Size""" - return _windows.PyScrolledWindow_base_DoGetVirtualSize(*args, **kwargs) - - def base_DoGetBestSize(*args, **kwargs): - """base_DoGetBestSize(self) -> Size""" - return _windows.PyScrolledWindow_base_DoGetBestSize(*args, **kwargs) - - def base_InitDialog(*args, **kwargs): - """base_InitDialog(self)""" - return _windows.PyScrolledWindow_base_InitDialog(*args, **kwargs) - - def base_TransferDataToWindow(*args, **kwargs): - """base_TransferDataToWindow(self) -> bool""" - return _windows.PyScrolledWindow_base_TransferDataToWindow(*args, **kwargs) - - def base_TransferDataFromWindow(*args, **kwargs): - """base_TransferDataFromWindow(self) -> bool""" - return _windows.PyScrolledWindow_base_TransferDataFromWindow(*args, **kwargs) - - def base_Validate(*args, **kwargs): - """base_Validate(self) -> bool""" - return _windows.PyScrolledWindow_base_Validate(*args, **kwargs) - - def base_AcceptsFocus(*args, **kwargs): - """base_AcceptsFocus(self) -> bool""" - return _windows.PyScrolledWindow_base_AcceptsFocus(*args, **kwargs) - - def base_AcceptsFocusFromKeyboard(*args, **kwargs): - """base_AcceptsFocusFromKeyboard(self) -> bool""" - return _windows.PyScrolledWindow_base_AcceptsFocusFromKeyboard(*args, **kwargs) - - def base_GetMaxSize(*args, **kwargs): - """base_GetMaxSize(self) -> Size""" - return _windows.PyScrolledWindow_base_GetMaxSize(*args, **kwargs) - - def base_AddChild(*args, **kwargs): - """base_AddChild(self, Window child)""" - return _windows.PyScrolledWindow_base_AddChild(*args, **kwargs) - - def base_RemoveChild(*args, **kwargs): - """base_RemoveChild(self, Window child)""" - return _windows.PyScrolledWindow_base_RemoveChild(*args, **kwargs) - - def base_ShouldInheritColours(*args, **kwargs): - """base_ShouldInheritColours(self) -> bool""" - return _windows.PyScrolledWindow_base_ShouldInheritColours(*args, **kwargs) - - def base_ApplyParentThemeBackground(*args, **kwargs): - """base_ApplyParentThemeBackground(self, Colour c)""" - return _windows.PyScrolledWindow_base_ApplyParentThemeBackground(*args, **kwargs) - - -class PyScrolledWindowPtr(PyScrolledWindow): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PyScrolledWindow -_windows.PyScrolledWindow_swigregister(PyScrolledWindowPtr) - -def PrePyScrolledWindow(*args, **kwargs): - """PrePyScrolledWindow() -> PyScrolledWindow""" - val = _windows.new_PrePyScrolledWindow(*args, **kwargs) - val.thisown = 1 - return val - -#--------------------------------------------------------------------------- - -PRINT_MODE_NONE = _windows.PRINT_MODE_NONE -PRINT_MODE_PREVIEW = _windows.PRINT_MODE_PREVIEW -PRINT_MODE_FILE = _windows.PRINT_MODE_FILE -PRINT_MODE_PRINTER = _windows.PRINT_MODE_PRINTER -PRINT_MODE_STREAM = _windows.PRINT_MODE_STREAM -class PrintData(core.Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> PrintData""" - newobj = _windows.new_PrintData(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_windows.delete_PrintData): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def GetNoCopies(*args, **kwargs): - """GetNoCopies(self) -> int""" - return _windows.PrintData_GetNoCopies(*args, **kwargs) - - def GetCollate(*args, **kwargs): - """GetCollate(self) -> bool""" - return _windows.PrintData_GetCollate(*args, **kwargs) - - def GetOrientation(*args, **kwargs): - """GetOrientation(self) -> int""" - return _windows.PrintData_GetOrientation(*args, **kwargs) - - def Ok(*args, **kwargs): - """Ok(self) -> bool""" - return _windows.PrintData_Ok(*args, **kwargs) - - def GetPrinterName(*args, **kwargs): - """GetPrinterName(self) -> String""" - return _windows.PrintData_GetPrinterName(*args, **kwargs) - - def GetColour(*args, **kwargs): - """GetColour(self) -> bool""" - return _windows.PrintData_GetColour(*args, **kwargs) - - def GetDuplex(*args, **kwargs): - """GetDuplex(self) -> int""" - return _windows.PrintData_GetDuplex(*args, **kwargs) - - def GetPaperId(*args, **kwargs): - """GetPaperId(self) -> int""" - return _windows.PrintData_GetPaperId(*args, **kwargs) - - def GetPaperSize(*args, **kwargs): - """GetPaperSize(self) -> Size""" - return _windows.PrintData_GetPaperSize(*args, **kwargs) - - def GetQuality(*args, **kwargs): - """GetQuality(self) -> int""" - return _windows.PrintData_GetQuality(*args, **kwargs) - - def SetNoCopies(*args, **kwargs): - """SetNoCopies(self, int v)""" - return _windows.PrintData_SetNoCopies(*args, **kwargs) - - def SetCollate(*args, **kwargs): - """SetCollate(self, bool flag)""" - return _windows.PrintData_SetCollate(*args, **kwargs) - - def SetOrientation(*args, **kwargs): - """SetOrientation(self, int orient)""" - return _windows.PrintData_SetOrientation(*args, **kwargs) - - def SetPrinterName(*args, **kwargs): - """SetPrinterName(self, String name)""" - return _windows.PrintData_SetPrinterName(*args, **kwargs) - - def SetColour(*args, **kwargs): - """SetColour(self, bool colour)""" - return _windows.PrintData_SetColour(*args, **kwargs) - - def SetDuplex(*args, **kwargs): - """SetDuplex(self, int duplex)""" - return _windows.PrintData_SetDuplex(*args, **kwargs) - - def SetPaperId(*args, **kwargs): - """SetPaperId(self, int sizeId)""" - return _windows.PrintData_SetPaperId(*args, **kwargs) - - def SetPaperSize(*args, **kwargs): - """SetPaperSize(self, Size sz)""" - return _windows.PrintData_SetPaperSize(*args, **kwargs) - - def SetQuality(*args, **kwargs): - """SetQuality(self, int quality)""" - return _windows.PrintData_SetQuality(*args, **kwargs) - - def GetPrinterCommand(*args, **kwargs): - """GetPrinterCommand(self) -> String""" - return _windows.PrintData_GetPrinterCommand(*args, **kwargs) - - def GetPrinterOptions(*args, **kwargs): - """GetPrinterOptions(self) -> String""" - return _windows.PrintData_GetPrinterOptions(*args, **kwargs) - - def GetPreviewCommand(*args, **kwargs): - """GetPreviewCommand(self) -> String""" - return _windows.PrintData_GetPreviewCommand(*args, **kwargs) - - def GetFilename(*args, **kwargs): - """GetFilename(self) -> String""" - return _windows.PrintData_GetFilename(*args, **kwargs) - - def GetFontMetricPath(*args, **kwargs): - """GetFontMetricPath(self) -> String""" - return _windows.PrintData_GetFontMetricPath(*args, **kwargs) - - def GetPrinterScaleX(*args, **kwargs): - """GetPrinterScaleX(self) -> double""" - return _windows.PrintData_GetPrinterScaleX(*args, **kwargs) - - def GetPrinterScaleY(*args, **kwargs): - """GetPrinterScaleY(self) -> double""" - return _windows.PrintData_GetPrinterScaleY(*args, **kwargs) - - def GetPrinterTranslateX(*args, **kwargs): - """GetPrinterTranslateX(self) -> long""" - return _windows.PrintData_GetPrinterTranslateX(*args, **kwargs) - - def GetPrinterTranslateY(*args, **kwargs): - """GetPrinterTranslateY(self) -> long""" - return _windows.PrintData_GetPrinterTranslateY(*args, **kwargs) - - def GetPrintMode(*args, **kwargs): - """GetPrintMode(self) -> int""" - return _windows.PrintData_GetPrintMode(*args, **kwargs) - - def SetPrinterCommand(*args, **kwargs): - """SetPrinterCommand(self, String command)""" - return _windows.PrintData_SetPrinterCommand(*args, **kwargs) - - def SetPrinterOptions(*args, **kwargs): - """SetPrinterOptions(self, String options)""" - return _windows.PrintData_SetPrinterOptions(*args, **kwargs) - - def SetPreviewCommand(*args, **kwargs): - """SetPreviewCommand(self, String command)""" - return _windows.PrintData_SetPreviewCommand(*args, **kwargs) - - def SetFilename(*args, **kwargs): - """SetFilename(self, String filename)""" - return _windows.PrintData_SetFilename(*args, **kwargs) - - def SetFontMetricPath(*args, **kwargs): - """SetFontMetricPath(self, String path)""" - return _windows.PrintData_SetFontMetricPath(*args, **kwargs) - - def SetPrinterScaleX(*args, **kwargs): - """SetPrinterScaleX(self, double x)""" - return _windows.PrintData_SetPrinterScaleX(*args, **kwargs) - - def SetPrinterScaleY(*args, **kwargs): - """SetPrinterScaleY(self, double y)""" - return _windows.PrintData_SetPrinterScaleY(*args, **kwargs) - - def SetPrinterScaling(*args, **kwargs): - """SetPrinterScaling(self, double x, double y)""" - return _windows.PrintData_SetPrinterScaling(*args, **kwargs) - - def SetPrinterTranslateX(*args, **kwargs): - """SetPrinterTranslateX(self, long x)""" - return _windows.PrintData_SetPrinterTranslateX(*args, **kwargs) - - def SetPrinterTranslateY(*args, **kwargs): - """SetPrinterTranslateY(self, long y)""" - return _windows.PrintData_SetPrinterTranslateY(*args, **kwargs) - - def SetPrinterTranslation(*args, **kwargs): - """SetPrinterTranslation(self, long x, long y)""" - return _windows.PrintData_SetPrinterTranslation(*args, **kwargs) - - def SetPrintMode(*args, **kwargs): - """SetPrintMode(self, int printMode)""" - return _windows.PrintData_SetPrintMode(*args, **kwargs) - - def GetOutputStream(*args, **kwargs): - """GetOutputStream(self) -> OutputStream""" - return _windows.PrintData_GetOutputStream(*args, **kwargs) - - def SetOutputStream(*args, **kwargs): - """SetOutputStream(self, OutputStream outputstream)""" - return _windows.PrintData_SetOutputStream(*args, **kwargs) - - def __nonzero__(self): return self.Ok() - -class PrintDataPtr(PrintData): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PrintData -_windows.PrintData_swigregister(PrintDataPtr) -PrintoutTitleStr = cvar.PrintoutTitleStr -PreviewCanvasNameStr = cvar.PreviewCanvasNameStr - -class PageSetupDialogData(core.Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self) -> PageSetupDialogData""" - newobj = _windows.new_PageSetupDialogData(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_windows.delete_PageSetupDialogData): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def EnableHelp(*args, **kwargs): - """EnableHelp(self, bool flag)""" - return _windows.PageSetupDialogData_EnableHelp(*args, **kwargs) - - def EnableMargins(*args, **kwargs): - """EnableMargins(self, bool flag)""" - return _windows.PageSetupDialogData_EnableMargins(*args, **kwargs) - - def EnableOrientation(*args, **kwargs): - """EnableOrientation(self, bool flag)""" - return _windows.PageSetupDialogData_EnableOrientation(*args, **kwargs) - - def EnablePaper(*args, **kwargs): - """EnablePaper(self, bool flag)""" - return _windows.PageSetupDialogData_EnablePaper(*args, **kwargs) - - def EnablePrinter(*args, **kwargs): - """EnablePrinter(self, bool flag)""" - return _windows.PageSetupDialogData_EnablePrinter(*args, **kwargs) - - def GetDefaultMinMargins(*args, **kwargs): - """GetDefaultMinMargins(self) -> bool""" - return _windows.PageSetupDialogData_GetDefaultMinMargins(*args, **kwargs) - - def GetEnableMargins(*args, **kwargs): - """GetEnableMargins(self) -> bool""" - return _windows.PageSetupDialogData_GetEnableMargins(*args, **kwargs) - - def GetEnableOrientation(*args, **kwargs): - """GetEnableOrientation(self) -> bool""" - return _windows.PageSetupDialogData_GetEnableOrientation(*args, **kwargs) - - def GetEnablePaper(*args, **kwargs): - """GetEnablePaper(self) -> bool""" - return _windows.PageSetupDialogData_GetEnablePaper(*args, **kwargs) - - def GetEnablePrinter(*args, **kwargs): - """GetEnablePrinter(self) -> bool""" - return _windows.PageSetupDialogData_GetEnablePrinter(*args, **kwargs) - - def GetEnableHelp(*args, **kwargs): - """GetEnableHelp(self) -> bool""" - return _windows.PageSetupDialogData_GetEnableHelp(*args, **kwargs) - - def GetDefaultInfo(*args, **kwargs): - """GetDefaultInfo(self) -> bool""" - return _windows.PageSetupDialogData_GetDefaultInfo(*args, **kwargs) - - def GetMarginTopLeft(*args, **kwargs): - """GetMarginTopLeft(self) -> Point""" - return _windows.PageSetupDialogData_GetMarginTopLeft(*args, **kwargs) - - def GetMarginBottomRight(*args, **kwargs): - """GetMarginBottomRight(self) -> Point""" - return _windows.PageSetupDialogData_GetMarginBottomRight(*args, **kwargs) - - def GetMinMarginTopLeft(*args, **kwargs): - """GetMinMarginTopLeft(self) -> Point""" - return _windows.PageSetupDialogData_GetMinMarginTopLeft(*args, **kwargs) - - def GetMinMarginBottomRight(*args, **kwargs): - """GetMinMarginBottomRight(self) -> Point""" - return _windows.PageSetupDialogData_GetMinMarginBottomRight(*args, **kwargs) - - def GetPaperId(*args, **kwargs): - """GetPaperId(self) -> int""" - return _windows.PageSetupDialogData_GetPaperId(*args, **kwargs) - - def GetPaperSize(*args, **kwargs): - """GetPaperSize(self) -> Size""" - return _windows.PageSetupDialogData_GetPaperSize(*args, **kwargs) - - def GetPrintData(*args, **kwargs): - """GetPrintData(self) -> PrintData""" - return _windows.PageSetupDialogData_GetPrintData(*args, **kwargs) - - def Ok(*args, **kwargs): - """Ok(self) -> bool""" - return _windows.PageSetupDialogData_Ok(*args, **kwargs) - - def SetDefaultInfo(*args, **kwargs): - """SetDefaultInfo(self, bool flag)""" - return _windows.PageSetupDialogData_SetDefaultInfo(*args, **kwargs) - - def SetDefaultMinMargins(*args, **kwargs): - """SetDefaultMinMargins(self, bool flag)""" - return _windows.PageSetupDialogData_SetDefaultMinMargins(*args, **kwargs) - - def SetMarginTopLeft(*args, **kwargs): - """SetMarginTopLeft(self, Point pt)""" - return _windows.PageSetupDialogData_SetMarginTopLeft(*args, **kwargs) - - def SetMarginBottomRight(*args, **kwargs): - """SetMarginBottomRight(self, Point pt)""" - return _windows.PageSetupDialogData_SetMarginBottomRight(*args, **kwargs) - - def SetMinMarginTopLeft(*args, **kwargs): - """SetMinMarginTopLeft(self, Point pt)""" - return _windows.PageSetupDialogData_SetMinMarginTopLeft(*args, **kwargs) - - def SetMinMarginBottomRight(*args, **kwargs): - """SetMinMarginBottomRight(self, Point pt)""" - return _windows.PageSetupDialogData_SetMinMarginBottomRight(*args, **kwargs) - - def SetPaperId(*args, **kwargs): - """SetPaperId(self, int id)""" - return _windows.PageSetupDialogData_SetPaperId(*args, **kwargs) - - def SetPaperSize(*args, **kwargs): - """SetPaperSize(self, Size size)""" - return _windows.PageSetupDialogData_SetPaperSize(*args, **kwargs) - - def SetPrintData(*args, **kwargs): - """SetPrintData(self, PrintData printData)""" - return _windows.PageSetupDialogData_SetPrintData(*args, **kwargs) - - def __nonzero__(self): return self.Ok() - -class PageSetupDialogDataPtr(PageSetupDialogData): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PageSetupDialogData -_windows.PageSetupDialogData_swigregister(PageSetupDialogDataPtr) - -class PageSetupDialog(Dialog): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog""" - newobj = _windows.new_PageSetupDialog(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def GetPageSetupData(*args, **kwargs): - """GetPageSetupData(self) -> PageSetupDialogData""" - return _windows.PageSetupDialog_GetPageSetupData(*args, **kwargs) - - def ShowModal(*args, **kwargs): - """ShowModal(self) -> int""" - return _windows.PageSetupDialog_ShowModal(*args, **kwargs) - - -class PageSetupDialogPtr(PageSetupDialog): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PageSetupDialog -_windows.PageSetupDialog_swigregister(PageSetupDialogPtr) - -class PrintDialogData(core.Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args): - """ - __init__(self) -> PrintDialogData - __init__(self, PrintData printData) -> PrintDialogData - """ - newobj = _windows.new_PrintDialogData(*args) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_windows.delete_PrintDialogData): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def GetFromPage(*args, **kwargs): - """GetFromPage(self) -> int""" - return _windows.PrintDialogData_GetFromPage(*args, **kwargs) - - def GetToPage(*args, **kwargs): - """GetToPage(self) -> int""" - return _windows.PrintDialogData_GetToPage(*args, **kwargs) - - def GetMinPage(*args, **kwargs): - """GetMinPage(self) -> int""" - return _windows.PrintDialogData_GetMinPage(*args, **kwargs) - - def GetMaxPage(*args, **kwargs): - """GetMaxPage(self) -> int""" - return _windows.PrintDialogData_GetMaxPage(*args, **kwargs) - - def GetNoCopies(*args, **kwargs): - """GetNoCopies(self) -> int""" - return _windows.PrintDialogData_GetNoCopies(*args, **kwargs) - - def GetAllPages(*args, **kwargs): - """GetAllPages(self) -> bool""" - return _windows.PrintDialogData_GetAllPages(*args, **kwargs) - - def GetSelection(*args, **kwargs): - """GetSelection(self) -> bool""" - return _windows.PrintDialogData_GetSelection(*args, **kwargs) - - def GetCollate(*args, **kwargs): - """GetCollate(self) -> bool""" - return _windows.PrintDialogData_GetCollate(*args, **kwargs) - - def GetPrintToFile(*args, **kwargs): - """GetPrintToFile(self) -> bool""" - return _windows.PrintDialogData_GetPrintToFile(*args, **kwargs) - - def GetSetupDialog(*args, **kwargs): - """GetSetupDialog(self) -> bool""" - return _windows.PrintDialogData_GetSetupDialog(*args, **kwargs) - - def SetFromPage(*args, **kwargs): - """SetFromPage(self, int v)""" - return _windows.PrintDialogData_SetFromPage(*args, **kwargs) - - def SetToPage(*args, **kwargs): - """SetToPage(self, int v)""" - return _windows.PrintDialogData_SetToPage(*args, **kwargs) - - def SetMinPage(*args, **kwargs): - """SetMinPage(self, int v)""" - return _windows.PrintDialogData_SetMinPage(*args, **kwargs) - - def SetMaxPage(*args, **kwargs): - """SetMaxPage(self, int v)""" - return _windows.PrintDialogData_SetMaxPage(*args, **kwargs) - - def SetNoCopies(*args, **kwargs): - """SetNoCopies(self, int v)""" - return _windows.PrintDialogData_SetNoCopies(*args, **kwargs) - - def SetAllPages(*args, **kwargs): - """SetAllPages(self, bool flag)""" - return _windows.PrintDialogData_SetAllPages(*args, **kwargs) - - def SetSelection(*args, **kwargs): - """SetSelection(self, bool flag)""" - return _windows.PrintDialogData_SetSelection(*args, **kwargs) - - def SetCollate(*args, **kwargs): - """SetCollate(self, bool flag)""" - return _windows.PrintDialogData_SetCollate(*args, **kwargs) - - def SetPrintToFile(*args, **kwargs): - """SetPrintToFile(self, bool flag)""" - return _windows.PrintDialogData_SetPrintToFile(*args, **kwargs) - - def SetSetupDialog(*args, **kwargs): - """SetSetupDialog(self, bool flag)""" - return _windows.PrintDialogData_SetSetupDialog(*args, **kwargs) - - def EnablePrintToFile(*args, **kwargs): - """EnablePrintToFile(self, bool flag)""" - return _windows.PrintDialogData_EnablePrintToFile(*args, **kwargs) - - def EnableSelection(*args, **kwargs): - """EnableSelection(self, bool flag)""" - return _windows.PrintDialogData_EnableSelection(*args, **kwargs) - - def EnablePageNumbers(*args, **kwargs): - """EnablePageNumbers(self, bool flag)""" - return _windows.PrintDialogData_EnablePageNumbers(*args, **kwargs) - - def EnableHelp(*args, **kwargs): - """EnableHelp(self, bool flag)""" - return _windows.PrintDialogData_EnableHelp(*args, **kwargs) - - def GetEnablePrintToFile(*args, **kwargs): - """GetEnablePrintToFile(self) -> bool""" - return _windows.PrintDialogData_GetEnablePrintToFile(*args, **kwargs) - - def GetEnableSelection(*args, **kwargs): - """GetEnableSelection(self) -> bool""" - return _windows.PrintDialogData_GetEnableSelection(*args, **kwargs) - - def GetEnablePageNumbers(*args, **kwargs): - """GetEnablePageNumbers(self) -> bool""" - return _windows.PrintDialogData_GetEnablePageNumbers(*args, **kwargs) - - def GetEnableHelp(*args, **kwargs): - """GetEnableHelp(self) -> bool""" - return _windows.PrintDialogData_GetEnableHelp(*args, **kwargs) - - def Ok(*args, **kwargs): - """Ok(self) -> bool""" - return _windows.PrintDialogData_Ok(*args, **kwargs) - - def GetPrintData(*args, **kwargs): - """GetPrintData(self) -> PrintData""" - return _windows.PrintDialogData_GetPrintData(*args, **kwargs) - - def SetPrintData(*args, **kwargs): - """SetPrintData(self, PrintData printData)""" - return _windows.PrintDialogData_SetPrintData(*args, **kwargs) - - def __nonzero__(self): return self.Ok() - -class PrintDialogDataPtr(PrintDialogData): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PrintDialogData -_windows.PrintDialogData_swigregister(PrintDialogDataPtr) - -class PrintDialog(Dialog): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog""" - newobj = _windows.new_PrintDialog(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def GetPrintDialogData(*args, **kwargs): - """GetPrintDialogData(self) -> PrintDialogData""" - return _windows.PrintDialog_GetPrintDialogData(*args, **kwargs) - - def GetPrintDC(*args, **kwargs): - """GetPrintDC(self) -> DC""" - return _windows.PrintDialog_GetPrintDC(*args, **kwargs) - - def ShowModal(*args, **kwargs): - """ShowModal(self) -> int""" - return _windows.PrintDialog_ShowModal(*args, **kwargs) - - -class PrintDialogPtr(PrintDialog): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PrintDialog -_windows.PrintDialog_swigregister(PrintDialogPtr) - -PRINTER_NO_ERROR = _windows.PRINTER_NO_ERROR -PRINTER_CANCELLED = _windows.PRINTER_CANCELLED -PRINTER_ERROR = _windows.PRINTER_ERROR -class Printer(core.Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, PrintDialogData data=None) -> Printer""" - newobj = _windows.new_Printer(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_windows.delete_Printer): - """__del__(self)""" - try: - if self.thisown: destroy(self) - except: pass - - def CreateAbortWindow(*args, **kwargs): - """CreateAbortWindow(self, Window parent, Printout printout)""" - return _windows.Printer_CreateAbortWindow(*args, **kwargs) - - def GetPrintDialogData(*args, **kwargs): - """GetPrintDialogData(self) -> PrintDialogData""" - return _windows.Printer_GetPrintDialogData(*args, **kwargs) - - def Print(*args, **kwargs): - """Print(self, Window parent, Printout printout, int prompt=True) -> bool""" - return _windows.Printer_Print(*args, **kwargs) - - def PrintDialog(*args, **kwargs): - """PrintDialog(self, Window parent) -> DC""" - return _windows.Printer_PrintDialog(*args, **kwargs) - - def ReportError(*args, **kwargs): - """ReportError(self, Window parent, Printout printout, String message)""" - return _windows.Printer_ReportError(*args, **kwargs) - - def Setup(*args, **kwargs): - """Setup(self, Window parent) -> bool""" - return _windows.Printer_Setup(*args, **kwargs) - - def GetAbort(*args, **kwargs): - """GetAbort(self) -> bool""" - return _windows.Printer_GetAbort(*args, **kwargs) - - def GetLastError(*args, **kwargs): - """Printer.GetLastError() -> int""" - return _windows.Printer_GetLastError(*args, **kwargs) - - GetLastError = staticmethod(GetLastError) - -class PrinterPtr(Printer): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Printer -_windows.Printer_swigregister(PrinterPtr) - -def Printer_GetLastError(*args, **kwargs): - """Printer_GetLastError() -> int""" - return _windows.Printer_GetLastError(*args, **kwargs) - -class Printout(core.Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(self, String title=PrintoutTitleStr) -> Printout""" - newobj = _windows.new_Printout(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setCallbackInfo(self, Printout) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _windows.Printout__setCallbackInfo(*args, **kwargs) - - def GetTitle(*args, **kwargs): - """GetTitle(self) -> String""" - return _windows.Printout_GetTitle(*args, **kwargs) - - def GetDC(*args, **kwargs): - """GetDC(self) -> DC""" - return _windows.Printout_GetDC(*args, **kwargs) - - def SetDC(*args, **kwargs): - """SetDC(self, DC dc)""" - return _windows.Printout_SetDC(*args, **kwargs) - - def SetPageSizePixels(*args, **kwargs): - """SetPageSizePixels(self, int w, int h)""" - return _windows.Printout_SetPageSizePixels(*args, **kwargs) - - def GetPageSizePixels(*args, **kwargs): - """GetPageSizePixels() -> (w, h)""" - return _windows.Printout_GetPageSizePixels(*args, **kwargs) - - def SetPageSizeMM(*args, **kwargs): - """SetPageSizeMM(self, int w, int h)""" - return _windows.Printout_SetPageSizeMM(*args, **kwargs) - - def GetPageSizeMM(*args, **kwargs): - """GetPageSizeMM() -> (w, h)""" - return _windows.Printout_GetPageSizeMM(*args, **kwargs) - - def SetPPIScreen(*args, **kwargs): - """SetPPIScreen(self, int x, int y)""" - return _windows.Printout_SetPPIScreen(*args, **kwargs) - - def GetPPIScreen(*args, **kwargs): - """GetPPIScreen() -> (x,y)""" - return _windows.Printout_GetPPIScreen(*args, **kwargs) - - def SetPPIPrinter(*args, **kwargs): - """SetPPIPrinter(self, int x, int y)""" - return _windows.Printout_SetPPIPrinter(*args, **kwargs) - - def GetPPIPrinter(*args, **kwargs): - """GetPPIPrinter() -> (x,y)""" - return _windows.Printout_GetPPIPrinter(*args, **kwargs) - - def IsPreview(*args, **kwargs): - """IsPreview(self) -> bool""" - return _windows.Printout_IsPreview(*args, **kwargs) - - def SetIsPreview(*args, **kwargs): - """SetIsPreview(self, bool p)""" - return _windows.Printout_SetIsPreview(*args, **kwargs) - - def base_OnBeginDocument(*args, **kwargs): - """base_OnBeginDocument(self, int startPage, int endPage) -> bool""" - return _windows.Printout_base_OnBeginDocument(*args, **kwargs) - - def base_OnEndDocument(*args, **kwargs): - """base_OnEndDocument(self)""" - return _windows.Printout_base_OnEndDocument(*args, **kwargs) - - def base_OnBeginPrinting(*args, **kwargs): - """base_OnBeginPrinting(self)""" - return _windows.Printout_base_OnBeginPrinting(*args, **kwargs) - - def base_OnEndPrinting(*args, **kwargs): - """base_OnEndPrinting(self)""" - return _windows.Printout_base_OnEndPrinting(*args, **kwargs) - - def base_OnPreparePrinting(*args, **kwargs): - """base_OnPreparePrinting(self)""" - return _windows.Printout_base_OnPreparePrinting(*args, **kwargs) - - def base_HasPage(*args, **kwargs): - """base_HasPage(self, int page) -> bool""" - return _windows.Printout_base_HasPage(*args, **kwargs) - - def base_GetPageInfo(*args, **kwargs): - """base_GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)""" - return _windows.Printout_base_GetPageInfo(*args, **kwargs) - - -class PrintoutPtr(Printout): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Printout -_windows.Printout_swigregister(PrintoutPtr) - -class PreviewCanvas(ScrolledWindow): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, - String name=PreviewCanvasNameStr) -> PreviewCanvas - """ - newobj = _windows.new_PreviewCanvas(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - -class PreviewCanvasPtr(PreviewCanvas): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PreviewCanvas -_windows.PreviewCanvas_swigregister(PreviewCanvasPtr) - -class PreviewFrame(Frame): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition, - Size size=DefaultSize, - long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame - """ - newobj = _windows.new_PreviewFrame(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def Initialize(*args, **kwargs): - """Initialize(self)""" - return _windows.PreviewFrame_Initialize(*args, **kwargs) - - def CreateControlBar(*args, **kwargs): - """CreateControlBar(self)""" - return _windows.PreviewFrame_CreateControlBar(*args, **kwargs) - - def CreateCanvas(*args, **kwargs): - """CreateCanvas(self)""" - return _windows.PreviewFrame_CreateCanvas(*args, **kwargs) - - def GetControlBar(*args, **kwargs): - """GetControlBar(self) -> PreviewControlBar""" - return _windows.PreviewFrame_GetControlBar(*args, **kwargs) - - -class PreviewFramePtr(PreviewFrame): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PreviewFrame -_windows.PreviewFrame_swigregister(PreviewFramePtr) - -PREVIEW_PRINT = _windows.PREVIEW_PRINT -PREVIEW_PREVIOUS = _windows.PREVIEW_PREVIOUS -PREVIEW_NEXT = _windows.PREVIEW_NEXT -PREVIEW_ZOOM = _windows.PREVIEW_ZOOM -PREVIEW_FIRST = _windows.PREVIEW_FIRST -PREVIEW_LAST = _windows.PREVIEW_LAST -PREVIEW_GOTO = _windows.PREVIEW_GOTO -PREVIEW_DEFAULT = _windows.PREVIEW_DEFAULT -ID_PREVIEW_CLOSE = _windows.ID_PREVIEW_CLOSE -ID_PREVIEW_NEXT = _windows.ID_PREVIEW_NEXT -ID_PREVIEW_PREVIOUS = _windows.ID_PREVIEW_PREVIOUS -ID_PREVIEW_PRINT = _windows.ID_PREVIEW_PRINT -ID_PREVIEW_ZOOM = _windows.ID_PREVIEW_ZOOM -ID_PREVIEW_FIRST = _windows.ID_PREVIEW_FIRST -ID_PREVIEW_LAST = _windows.ID_PREVIEW_LAST -ID_PREVIEW_GOTO = _windows.ID_PREVIEW_GOTO -class PreviewControlBar(Panel): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, PrintPreview preview, long buttons, Window parent, - Point pos=DefaultPosition, Size size=DefaultSize, - long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar - """ - newobj = _windows.new_PreviewControlBar(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setOORInfo(self) - - def GetZoomControl(*args, **kwargs): - """GetZoomControl(self) -> int""" - return _windows.PreviewControlBar_GetZoomControl(*args, **kwargs) - - def SetZoomControl(*args, **kwargs): - """SetZoomControl(self, int zoom)""" - return _windows.PreviewControlBar_SetZoomControl(*args, **kwargs) - - def GetPrintPreview(*args, **kwargs): - """GetPrintPreview(self) -> PrintPreview""" - return _windows.PreviewControlBar_GetPrintPreview(*args, **kwargs) - - def OnNext(*args, **kwargs): - """OnNext(self)""" - return _windows.PreviewControlBar_OnNext(*args, **kwargs) - - def OnPrevious(*args, **kwargs): - """OnPrevious(self)""" - return _windows.PreviewControlBar_OnPrevious(*args, **kwargs) - - def OnFirst(*args, **kwargs): - """OnFirst(self)""" - return _windows.PreviewControlBar_OnFirst(*args, **kwargs) - - def OnLast(*args, **kwargs): - """OnLast(self)""" - return _windows.PreviewControlBar_OnLast(*args, **kwargs) - - def OnGoto(*args, **kwargs): - """OnGoto(self)""" - return _windows.PreviewControlBar_OnGoto(*args, **kwargs) - - -class PreviewControlBarPtr(PreviewControlBar): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PreviewControlBar -_windows.PreviewControlBar_swigregister(PreviewControlBarPtr) - -class PrintPreview(core.Object): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args): - """ - __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview - __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview - """ - newobj = _windows.new_PrintPreview(*args) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def SetCurrentPage(*args, **kwargs): - """SetCurrentPage(self, int pageNum) -> bool""" - return _windows.PrintPreview_SetCurrentPage(*args, **kwargs) - - def GetCurrentPage(*args, **kwargs): - """GetCurrentPage(self) -> int""" - return _windows.PrintPreview_GetCurrentPage(*args, **kwargs) - - def SetPrintout(*args, **kwargs): - """SetPrintout(self, Printout printout)""" - return _windows.PrintPreview_SetPrintout(*args, **kwargs) - - def GetPrintout(*args, **kwargs): - """GetPrintout(self) -> Printout""" - return _windows.PrintPreview_GetPrintout(*args, **kwargs) - - def GetPrintoutForPrinting(*args, **kwargs): - """GetPrintoutForPrinting(self) -> Printout""" - return _windows.PrintPreview_GetPrintoutForPrinting(*args, **kwargs) - - def SetFrame(*args, **kwargs): - """SetFrame(self, Frame frame)""" - return _windows.PrintPreview_SetFrame(*args, **kwargs) - - def SetCanvas(*args, **kwargs): - """SetCanvas(self, PreviewCanvas canvas)""" - return _windows.PrintPreview_SetCanvas(*args, **kwargs) - - def GetFrame(*args, **kwargs): - """GetFrame(self) -> Frame""" - return _windows.PrintPreview_GetFrame(*args, **kwargs) - - def GetCanvas(*args, **kwargs): - """GetCanvas(self) -> PreviewCanvas""" - return _windows.PrintPreview_GetCanvas(*args, **kwargs) - - def PaintPage(*args, **kwargs): - """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool""" - return _windows.PrintPreview_PaintPage(*args, **kwargs) - - def DrawBlankPage(*args, **kwargs): - """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool""" - return _windows.PrintPreview_DrawBlankPage(*args, **kwargs) - - def RenderPage(*args, **kwargs): - """RenderPage(self, int pageNum) -> bool""" - return _windows.PrintPreview_RenderPage(*args, **kwargs) - - def AdjustScrollbars(*args, **kwargs): - """AdjustScrollbars(self, PreviewCanvas canvas)""" - return _windows.PrintPreview_AdjustScrollbars(*args, **kwargs) - - def GetPrintDialogData(*args, **kwargs): - """GetPrintDialogData(self) -> PrintDialogData""" - return _windows.PrintPreview_GetPrintDialogData(*args, **kwargs) - - def SetZoom(*args, **kwargs): - """SetZoom(self, int percent)""" - return _windows.PrintPreview_SetZoom(*args, **kwargs) - - def GetZoom(*args, **kwargs): - """GetZoom(self) -> int""" - return _windows.PrintPreview_GetZoom(*args, **kwargs) - - def GetMaxPage(*args, **kwargs): - """GetMaxPage(self) -> int""" - return _windows.PrintPreview_GetMaxPage(*args, **kwargs) - - def GetMinPage(*args, **kwargs): - """GetMinPage(self) -> int""" - return _windows.PrintPreview_GetMinPage(*args, **kwargs) - - def Ok(*args, **kwargs): - """Ok(self) -> bool""" - return _windows.PrintPreview_Ok(*args, **kwargs) - - def SetOk(*args, **kwargs): - """SetOk(self, bool ok)""" - return _windows.PrintPreview_SetOk(*args, **kwargs) - - def Print(*args, **kwargs): - """Print(self, bool interactive) -> bool""" - return _windows.PrintPreview_Print(*args, **kwargs) - - def DetermineScaling(*args, **kwargs): - """DetermineScaling(self)""" - return _windows.PrintPreview_DetermineScaling(*args, **kwargs) - - def __nonzero__(self): return self.Ok() - -class PrintPreviewPtr(PrintPreview): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PrintPreview -_windows.PrintPreview_swigregister(PrintPreviewPtr) - -class PyPrintPreview(PrintPreview): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args): - """ - __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview - __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview - """ - newobj = _windows.new_PyPrintPreview(*args) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setCallbackInfo(self, PyPrintPreview) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _windows.PyPrintPreview__setCallbackInfo(*args, **kwargs) - - def base_SetCurrentPage(*args, **kwargs): - """base_SetCurrentPage(self, int pageNum) -> bool""" - return _windows.PyPrintPreview_base_SetCurrentPage(*args, **kwargs) - - def base_PaintPage(*args, **kwargs): - """base_PaintPage(self, PreviewCanvas canvas, DC dc) -> bool""" - return _windows.PyPrintPreview_base_PaintPage(*args, **kwargs) - - def base_DrawBlankPage(*args, **kwargs): - """base_DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool""" - return _windows.PyPrintPreview_base_DrawBlankPage(*args, **kwargs) - - def base_RenderPage(*args, **kwargs): - """base_RenderPage(self, int pageNum) -> bool""" - return _windows.PyPrintPreview_base_RenderPage(*args, **kwargs) - - def base_SetZoom(*args, **kwargs): - """base_SetZoom(self, int percent)""" - return _windows.PyPrintPreview_base_SetZoom(*args, **kwargs) - - def base_Print(*args, **kwargs): - """base_Print(self, bool interactive) -> bool""" - return _windows.PyPrintPreview_base_Print(*args, **kwargs) - - def base_DetermineScaling(*args, **kwargs): - """base_DetermineScaling(self)""" - return _windows.PyPrintPreview_base_DetermineScaling(*args, **kwargs) - - -class PyPrintPreviewPtr(PyPrintPreview): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PyPrintPreview -_windows.PyPrintPreview_swigregister(PyPrintPreviewPtr) - -class PyPreviewFrame(PreviewFrame): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition, - Size size=DefaultSize, - long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame - """ - newobj = _windows.new_PyPreviewFrame(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setCallbackInfo(self, PyPreviewFrame); self._setOORInfo(self) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _windows.PyPreviewFrame__setCallbackInfo(*args, **kwargs) - - def SetPreviewCanvas(*args, **kwargs): - """SetPreviewCanvas(self, PreviewCanvas canvas)""" - return _windows.PyPreviewFrame_SetPreviewCanvas(*args, **kwargs) - - def SetControlBar(*args, **kwargs): - """SetControlBar(self, PreviewControlBar bar)""" - return _windows.PyPreviewFrame_SetControlBar(*args, **kwargs) - - def base_Initialize(*args, **kwargs): - """base_Initialize(self)""" - return _windows.PyPreviewFrame_base_Initialize(*args, **kwargs) - - def base_CreateCanvas(*args, **kwargs): - """base_CreateCanvas(self)""" - return _windows.PyPreviewFrame_base_CreateCanvas(*args, **kwargs) - - def base_CreateControlBar(*args, **kwargs): - """base_CreateControlBar(self)""" - return _windows.PyPreviewFrame_base_CreateControlBar(*args, **kwargs) - - -class PyPreviewFramePtr(PyPreviewFrame): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PyPreviewFrame -_windows.PyPreviewFrame_swigregister(PyPreviewFramePtr) - -class PyPreviewControlBar(PreviewControlBar): - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """ - __init__(self, PrintPreview preview, long buttons, Window parent, - Point pos=DefaultPosition, Size size=DefaultSize, - long style=0, String name=PanelNameStr) -> PyPreviewControlBar - """ - newobj = _windows.new_PyPreviewControlBar(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - self._setCallbackInfo(self, PyPreviewControlBar); self._setOORInfo(self) - - def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(self, PyObject self, PyObject _class)""" - return _windows.PyPreviewControlBar__setCallbackInfo(*args, **kwargs) - - def SetPrintPreview(*args, **kwargs): - """SetPrintPreview(self, PrintPreview preview)""" - return _windows.PyPreviewControlBar_SetPrintPreview(*args, **kwargs) - - def base_CreateButtons(*args, **kwargs): - """base_CreateButtons(self)""" - return _windows.PyPreviewControlBar_base_CreateButtons(*args, **kwargs) - - def base_SetZoomControl(*args, **kwargs): - """base_SetZoomControl(self, int zoom)""" - return _windows.PyPreviewControlBar_base_SetZoomControl(*args, **kwargs) - - -class PyPreviewControlBarPtr(PyPreviewControlBar): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = PyPreviewControlBar -_windows.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr) - - diff --git a/wxPython/src/msw/windows_wrap.cpp b/wxPython/src/msw/windows_wrap.cpp deleted file mode 100644 index 072947d1cc..0000000000 --- a/wxPython/src/msw/windows_wrap.cpp +++ /dev/null @@ -1,26476 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.22 - * - * This file is not intended to be easily readable and contains a number of - * coding conventions designed to improve portability and efficiency. Do not make - * changes to this file unless you know what you are doing--modify the SWIG - * interface file instead. - * ----------------------------------------------------------------------------- */ - -#define SWIGPYTHON -#define SWIG_NOINCLUDE - -#ifdef __cplusplus -template class SwigValueWrapper { - T *tt; -public: - SwigValueWrapper() : tt(0) { } - SwigValueWrapper(const SwigValueWrapper& rhs) : tt(new T(*rhs.tt)) { } - SwigValueWrapper(const T& t) : tt(new T(t)) { } - ~SwigValueWrapper() { delete tt; } - SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } - operator T&() const { return *tt; } - T *operator&() { return tt; } -private: - SwigValueWrapper& operator=(const SwigValueWrapper& rhs); -}; -#endif - - -#include "Python.h" - -/*************************************************************** -*- c -*- - * python/precommon.swg - * - * Rename all exported symbols from common.swg, to avoid symbol - * clashes if multiple interpreters are included - * - ************************************************************************/ - -#define SWIG_TypeRegister SWIG_Python_TypeRegister -#define SWIG_TypeCheck SWIG_Python_TypeCheck -#define SWIG_TypeCast SWIG_Python_TypeCast -#define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast -#define SWIG_TypeName SWIG_Python_TypeName -#define SWIG_TypeQuery SWIG_Python_TypeQuery -#define SWIG_TypeClientData SWIG_Python_TypeClientData -#define SWIG_PackData SWIG_Python_PackData -#define SWIG_UnpackData SWIG_Python_UnpackData - - -/*********************************************************************** - * common.swg for wxPython - * - * Include only the function prototypes and such from SWIG's common.swg, - * but not the runtime functions themselves. This helps keep the - * wrapper files clean of unnecessary stuff that is in the libpy.c file - * anyway. - * - ************************************************************************/ - -#include - -#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) -# if defined(_MSC_VER) || defined(__GNUC__) -# if defined(STATIC_LINKED) -# define SWIGEXPORT(a) a -# define SWIGIMPORT(a) extern a -# else -# define SWIGEXPORT(a) __declspec(dllexport) a -# define SWIGIMPORT(a) extern a -# endif -# else -# if defined(__BORLANDC__) -# define SWIGEXPORT(a) a _export -# define SWIGIMPORT(a) a _export -# else -# define SWIGEXPORT(a) a -# define SWIGIMPORT(a) a -# endif -# endif -#else -# define SWIGEXPORT(a) a -# define SWIGIMPORT(a) a -#endif - -#ifdef SWIG_GLOBAL -# define SWIGRUNTIME(a) SWIGEXPORT(a) -#else -# define SWIGRUNTIME(a) static a -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -typedef void *(*swig_converter_func)(void *); -typedef struct swig_type_info *(*swig_dycast_func)(void **); - -typedef struct swig_type_info { - const char *name; - swig_converter_func converter; - const char *str; - void *clientdata; - swig_dycast_func dcast; - struct swig_type_info *next; - struct swig_type_info *prev; -} swig_type_info; - - -SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); -SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); -SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); -SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); -SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); -SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); -SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); -SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); -SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); - - -#ifdef __cplusplus -} -#endif - -/*********************************************************************** - * pyrun.swg for wxPython - * - * Include only the function prototypes and such from SWIG's pyrun.swg, - * but not the runtime functions themselves. This helps keep the - * wrapper files clean of unnecessary stuff that is in the libpy.c file - * anyway. - * - ************************************************************************/ - -#include "Python.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define SWIG_PY_INT 1 -#define SWIG_PY_FLOAT 2 -#define SWIG_PY_STRING 3 -#define SWIG_PY_POINTER 4 -#define SWIG_PY_BINARY 5 - -/* Flags for pointer conversion */ - -#define SWIG_POINTER_EXCEPTION 0x1 -#define SWIG_POINTER_DISOWN 0x2 - -/* Exception handling in wrappers */ -#define SWIG_fail goto fail - -/* Constant information structure */ -typedef struct swig_const_info { - int type; - char *name; - long lvalue; - double dvalue; - void *pvalue; - swig_type_info **ptype; -} swig_const_info; - -/* Common SWIG API */ -#define SWIG_ConvertPtr(obj, pp, type, flags) \ - SWIG_Python_ConvertPtr(obj, pp, type, flags) -#define SWIG_NewPointerObj(p, type, flags) \ - SWIG_Python_NewPointerObj(p, type, flags) -#define SWIG_MustGetPtr(p, type, argnum, flags) \ - SWIG_Python_MustGetPtr(p, type, argnum, flags) - -/* Python-specific SWIG API */ -#define SWIG_newvarlink() \ - SWIG_Python_newvarlink() -#define SWIG_addvarlink(p, name, get_attr, set_attr) \ - SWIG_Python_addvarlink(p, name, get_attr, set_attr) -#define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ - SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) -#define SWIG_NewPackedObj(ptr, sz, type) \ - SWIG_Python_NewPackedObj(ptr, sz, type) -#define SWIG_InstallConstants(d, constants) \ - SWIG_Python_InstallConstants(d, constants) - -typedef double (*py_objasdbl_conv)(PyObject *obj); - -SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); -SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); -SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); -SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); -SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); -SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); -SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); -SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); - - -/* Contract support */ - -#define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else - -#ifdef __cplusplus -} -#endif - - -/* -------- TYPES TABLE (BEGIN) -------- */ - -#define SWIGTYPE_p_wxQueryLayoutInfoEvent swig_types[0] -#define SWIGTYPE_p_wxPreviewFrame swig_types[1] -#define SWIGTYPE_p_wxPyPreviewFrame swig_types[2] -#define SWIGTYPE_p_wxPyPanel swig_types[3] -#define SWIGTYPE_p_wxMenu swig_types[4] -#define SWIGTYPE_p_wxPrintData swig_types[5] -#define SWIGTYPE_p_wxFontData swig_types[6] -#define SWIGTYPE_p_wxEvent swig_types[7] -#define SWIGTYPE_p_wxTaskBarIcon swig_types[8] -#define SWIGTYPE_p_wxIconBundle swig_types[9] -#define SWIGTYPE_p_wxLayoutAlgorithm swig_types[10] -#define SWIGTYPE_p_wxFindDialogEvent swig_types[11] -#define SWIGTYPE_p_wxPreviewCanvas swig_types[12] -#define SWIGTYPE_p_wxFont swig_types[13] -#define SWIGTYPE_p_wxSplitterEvent swig_types[14] -#define SWIGTYPE_p_wxRegion swig_types[15] -#define SWIGTYPE_p_wxFindReplaceData swig_types[16] -#define SWIGTYPE_p_int swig_types[17] -#define SWIGTYPE_p_wxSize swig_types[18] -#define SWIGTYPE_p_wxDC swig_types[19] -#define SWIGTYPE_p_wxIcon swig_types[20] -#define SWIGTYPE_p_wxMDIChildFrame swig_types[21] -#define SWIGTYPE_p_wxColourData swig_types[22] -#define SWIGTYPE_p_wxNotifyEvent swig_types[23] -#define SWIGTYPE_p_wxPyWindow swig_types[24] -#define SWIGTYPE_p_wxSplashScreen swig_types[25] -#define SWIGTYPE_p_wxFindReplaceDialog swig_types[26] -#define SWIGTYPE_p_wxProgressDialog swig_types[27] -#define SWIGTYPE_p_wxMessageDialog swig_types[28] -#define SWIGTYPE_p_wxTextEntryDialog swig_types[29] -#define SWIGTYPE_p_wxSingleChoiceDialog swig_types[30] -#define SWIGTYPE_p_wxMultiChoiceDialog swig_types[31] -#define SWIGTYPE_p_wxFileDialog swig_types[32] -#define SWIGTYPE_p_wxPrinter swig_types[33] -#define SWIGTYPE_p_wxArrayInt swig_types[34] -#define SWIGTYPE_p_wxEvtHandler swig_types[35] -#define SWIGTYPE_p_wxCalculateLayoutEvent swig_types[36] -#define SWIGTYPE_p_wxPyHtmlListBox swig_types[37] -#define SWIGTYPE_p_wxPyVListBox swig_types[38] -#define SWIGTYPE_p_wxRect swig_types[39] -#define SWIGTYPE_p_char swig_types[40] -#define SWIGTYPE_p_wxMiniFrame swig_types[41] -#define SWIGTYPE_p_wxFrame swig_types[42] -#define SWIGTYPE_p_wxPyPrintout swig_types[43] -#define SWIGTYPE_p_wxTaskBarIconEvent swig_types[44] -#define SWIGTYPE_p_wxScrollWinEvent swig_types[45] -#define SWIGTYPE_p_wxStatusBar swig_types[46] -#define SWIGTYPE_p_wxMDIParentFrame swig_types[47] -#define SWIGTYPE_p_wxPoint swig_types[48] -#define SWIGTYPE_p_wxObject swig_types[49] -#define SWIGTYPE_p_wxOutputStream swig_types[50] -#define SWIGTYPE_p_unsigned_long swig_types[51] -#define SWIGTYPE_p_wxPyScrolledWindow swig_types[52] -#define SWIGTYPE_p_wxMDIClientWindow swig_types[53] -#define SWIGTYPE_p_wxTipWindow swig_types[54] -#define SWIGTYPE_p_wxSashLayoutWindow swig_types[55] -#define SWIGTYPE_p_wxSplitterWindow swig_types[56] -#define SWIGTYPE_p_wxPyVScrolledWindow swig_types[57] -#define SWIGTYPE_p_wxPyPopupTransientWindow swig_types[58] -#define SWIGTYPE_p_wxPopupWindow swig_types[59] -#define SWIGTYPE_p_wxSashWindow swig_types[60] -#define SWIGTYPE_p_wxTopLevelWindow swig_types[61] -#define SWIGTYPE_p_wxWindow swig_types[62] -#define SWIGTYPE_p_wxScrolledWindow swig_types[63] -#define SWIGTYPE_p_wxSplashScreenWindow swig_types[64] -#define SWIGTYPE_p_wxMenuBar swig_types[65] -#define SWIGTYPE_p_wxPrintPreview swig_types[66] -#define SWIGTYPE_p_wxSashEvent swig_types[67] -#define SWIGTYPE_p_wxString swig_types[68] -#define SWIGTYPE_p_wxPyPrintPreview swig_types[69] -#define SWIGTYPE_p_wxFontDialog swig_types[70] -#define SWIGTYPE_p_wxDirDialog swig_types[71] -#define SWIGTYPE_p_wxColourDialog swig_types[72] -#define SWIGTYPE_p_wxDialog swig_types[73] -#define SWIGTYPE_p_wxPanel swig_types[74] -#define SWIGTYPE_p_wxPageSetupDialog swig_types[75] -#define SWIGTYPE_p_wxPrintDialog swig_types[76] -#define SWIGTYPE_p_wxBitmap swig_types[77] -#define SWIGTYPE_p_wxCommandEvent swig_types[78] -#define SWIGTYPE_p_wxPreviewControlBar swig_types[79] -#define SWIGTYPE_p_wxPyPreviewControlBar swig_types[80] -#define SWIGTYPE_p_wxColour swig_types[81] -#define SWIGTYPE_p_wxToolBar swig_types[82] -#define SWIGTYPE_p_wxPageSetupDialogData swig_types[83] -#define SWIGTYPE_p_wxPrintDialogData swig_types[84] -static swig_type_info *swig_types[86]; - -/* -------- TYPES TABLE (END) -------- */ - - -/*----------------------------------------------- - @(target):= _windows.so - ------------------------------------------------*/ -#define SWIG_init init_windows - -#define SWIG_name "_windows" - -/* Auxiliar swig macros */ - -#ifdef __cplusplus -#define SWIGSTATICINLINE(a) static inline a -#define SWIGSTATIC(a) static a -#define swig_new_array(type, size) (new type[(size)]) -#define swig_delete_array(cptr) delete[] cptr -#define swig_const_cast(type,a) const_cast(a) -#define swig_static_cast(type,a) static_cast(a) -#define swig_reinterpret_cast(type,a) reinterpret_cast(a) - -#ifdef HAVE_NUMERIC_CAST -#define swig_numeric_cast(type,a) numeric_cast(a) -#else -#define swig_numeric_cast(type,a) static_cast(a) -#endif - -#else /* C case */ - -#define SWIGSTATICINLINE(a) static a -#define SWIGSTATIC(a) static a -#define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type))) -#define swig_delete_array(cptr) free((char*)cptr) -#define swig_const_cast(type,a) (type)(a) -#define swig_static_cast(type,a) (type)(a) -#define swig_reinterpret_cast(type,a) (type)(a) -#define swig_numeric_cast(type,a) (type)(a) - -#endif /* __cplusplus */ - - -#define SWIG_FromSignedChar PyInt_FromLong -#define SWIG_FromUnsignedChar PyInt_FromLong -#define SWIG_FromShort PyInt_FromLong -#define SWIG_FromUnsignedShort PyInt_FromLong -#define SWIG_FromInt PyInt_FromLong -#define SWIG_FromLong PyInt_FromLong -#define SWIG_FromFloat PyFloat_FromDouble -#define SWIG_FromDouble PyFloat_FromDouble -#define SWIG_FromFloat PyFloat_FromDouble -#define SWIG_FromDouble PyFloat_FromDouble - - -#include "wx/wxPython/wxPython.h" -#include "wx/wxPython/pyclasses.h" - - - static const wxString wxPyEmptyString(wxEmptyString); - static const wxString wxPyPanelNameStr(wxPanelNameStr); - - - -#include - - -SWIGSTATICINLINE(long) -SWIG_CheckLongInRange(long value, const char* type, - long min_value, long max_value) -{ - if (!PyErr_Occurred()) { - if (value < min_value) { - PyObject *err = - PyString_FromFormat("value %ld is less than '%s' minimum %ld", - value, type, min_value); - - PyErr_SetObject(PyExc_OverflowError, err); - Py_DECREF(err); - } else if (value > max_value) { - PyObject *err = - PyString_FromFormat("value %ld is greater than '%s' maximum %ld", - value, type, max_value); - PyErr_SetObject(PyExc_OverflowError, err); - Py_DECREF(err); - } - } - return value; -} - - -SWIGSTATICINLINE(long) -SWIG_AsLong(PyObject * obj) -{ - if (PyNumber_Check(obj)) - return PyInt_AsLong(obj); - else { - PyObject* errmsg = PyString_FromFormat("Expected number, got %s", - obj->ob_type->tp_name); - PyErr_SetObject(PyExc_TypeError, errmsg); - Py_DECREF(errmsg); - return 0; - } -} - - -#if INT_MAX != LONG_MAX -SWIGSTATICINLINE(int) -SWIG_AsInt(PyObject *obj) -{ - return swig_numeric_cast(int, - SWIG_CheckLongInRange(SWIG_AsLong(obj), - "int", INT_MIN, INT_MAX)); -} -#else -#define SWIG_AsInt SWIG_AsLong -#endif - - -SWIGSTATICINLINE(int) -SWIG_CheckInt(PyObject* obj) -{ - SWIG_AsInt(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - - -SWIGSTATICINLINE(int) -SWIG_CheckLong(PyObject* obj) -{ - SWIG_AsLong(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - - -SWIGSTATICINLINE(bool) -SWIG_AsBool(PyObject *obj) -{ - return PyObject_IsTrue(obj) ? true : false; -} - - -SWIGSTATICINLINE(int) -SWIG_CheckBool(PyObject* obj) -{ - SWIG_AsBool(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - - -static PyObject* t_output_helper(PyObject* target, PyObject* o) { - PyObject* o2; - PyObject* o3; - - if (!target) { - target = o; - } else if (target == Py_None) { - Py_DECREF(Py_None); - target = o; - } else { - if (!PyTuple_Check(target)) { - o2 = target; - target = PyTuple_New(1); - PyTuple_SetItem(target, 0, o2); - } - o3 = PyTuple_New(1); - PyTuple_SetItem(o3, 0, o); - - o2 = target; - target = PySequence_Concat(o2, o3); - Py_DECREF(o2); - Py_DECREF(o3); - } - return target; -} - - -SWIGSTATICINLINE(double) -SWIG_AsDouble(PyObject *obj) -{ - if (PyNumber_Check(obj)) - return PyFloat_AsDouble(obj); - else { - PyObject* errmsg = PyString_FromFormat("Expected number, got %s", - obj->ob_type->tp_name); - PyErr_SetObject(PyExc_TypeError, errmsg); - Py_DECREF(errmsg); - return 0; - } -} - - -SWIGSTATICINLINE(int) -SWIG_CheckDouble(PyObject* obj) -{ - SWIG_AsDouble(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - - static const wxString wxPyFrameNameStr(wxFrameNameStr); - static const wxString wxPyDialogNameStr(wxDialogNameStr); - static const wxString wxPyStatusLineNameStr(wxStatusLineNameStr); - static const wxString wxPyToolBarNameStr(wxToolBarNameStr); - - -wxRect wxStatusBar_GetFieldRect(wxStatusBar *self,int i){ - wxRect r; - self->GetFieldRect(i, r); - return r; - } - static const wxString wxPySplitterNameStr(wxT("splitter")); - static const wxString wxPySashNameStr(wxT("sashWindow")); - static const wxString wxPySashLayoutNameStr(wxT("layoutWindow")); - -#include - - -class wxPyPopupTransientWindow : public wxPopupTransientWindow -{ -public: - wxPyPopupTransientWindow() : wxPopupTransientWindow() {} - wxPyPopupTransientWindow(wxWindow* parent, int style = wxBORDER_NONE) - : wxPopupTransientWindow(parent, style) {} - - DEC_PYCALLBACK_BOOL_ME(ProcessLeftDown); - DEC_PYCALLBACK__(OnDismiss); - DEC_PYCALLBACK_BOOL_(CanDismiss); - PYPRIVATE; -}; - - -IMP_PYCALLBACK_BOOL_ME(wxPyPopupTransientWindow, wxPopupTransientWindow, ProcessLeftDown); -IMP_PYCALLBACK__(wxPyPopupTransientWindow, wxPopupTransientWindow, OnDismiss); -IMP_PYCALLBACK_BOOL_(wxPyPopupTransientWindow, wxPopupTransientWindow, CanDismiss); - - -#include - -wxTipWindow *new_wxTipWindow(wxWindow *parent,wxString const &text,int maxLength,wxRect *rectBound){ - return new wxTipWindow(parent, text, maxLength, NULL, rectBound); - } - -#include - - -#include - - -class wxPyVScrolledWindow : public wxVScrolledWindow -{ - DECLARE_ABSTRACT_CLASS(wxPyVScrolledWindow); -public: - wxPyVScrolledWindow() : wxVScrolledWindow() {} - - wxPyVScrolledWindow(wxWindow *parent, - wxWindowID id = wxID_ANY, - const wxPoint& pos = wxDefaultPosition, - const wxSize& size = wxDefaultSize, - long style = 0, - const wxString& name = wxPyPanelNameStr) - : wxVScrolledWindow(parent, id, pos, size, style, name) - {} - - // Overridable virtuals - - // this function must be overridden in the derived class and it should - // return the height of the given line in pixels - DEC_PYCALLBACK_COORD_SIZET_constpure(OnGetLineHeight); - - - // this function doesn't have to be overridden but it may be useful to do - // it if calculating the lines heights is a relatively expensive operation - // as it gives the user code a possibility to calculate several of them at - // once - // - // OnGetLinesHint() is normally called just before OnGetLineHeight() but you - // shouldn't rely on the latter being called for all lines in the interval - // specified here. It is also possible that OnGetLineHeight() will be - // called for the lines outside of this interval, so this is really just a - // hint, not a promise. - // - // finally note that lineMin is inclusive, while lineMax is exclusive, as - // usual - DEC_PYCALLBACK_VOID_SIZETSIZET_const(OnGetLinesHint); - - - // when the number of lines changes, we try to estimate the total height - // of all lines which is a rather expensive operation in terms of lines - // access, so if the user code may estimate the average height - // better/faster than we do, it should override this function to implement - // its own logic - // - // this function should return the best guess for the total height it may - // make - DEC_PYCALLBACK_COORD_const(EstimateTotalHeight); - - - // Also expose some other interesting protected methods - - - // find the index of the line we need to show at the top of the window such - // that the last (fully or partially) visible line is the given one - size_t FindFirstFromBottom(size_t lineLast, bool fullyVisible = False) - { return wxVScrolledWindow::FindFirstFromBottom(lineLast, fullyVisible); } - - // get the total height of the lines between lineMin (inclusive) and - // lineMax (exclusive) - wxCoord GetLinesHeight(size_t lineMin, size_t lineMax) const - { return wxVScrolledWindow::GetLinesHeight(lineMin, lineMax); } - - - PYPRIVATE; -}; - -IMPLEMENT_ABSTRACT_CLASS(wxPyVScrolledWindow, wxVScrolledWindow); - -IMP_PYCALLBACK_COORD_SIZET_constpure(wxPyVScrolledWindow, wxVScrolledWindow, OnGetLineHeight); -IMP_PYCALLBACK_VOID_SIZETSIZET_const(wxPyVScrolledWindow, wxVScrolledWindow, OnGetLinesHint); -IMP_PYCALLBACK_COORD_const (wxPyVScrolledWindow, wxVScrolledWindow, EstimateTotalHeight); - - -SWIGSTATICINLINE(unsigned long) -SWIG_AsUnsignedLong(PyObject * obj) -{ - if (PyLong_Check(obj)) { - return PyLong_AsUnsignedLong(obj); - } else { - long i = SWIG_AsLong(obj); - if ( !PyErr_Occurred() && (i < 0)) { - PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); - } - return i; - } -} - - -SWIGSTATICINLINE(int) -SWIG_CheckUnsignedLong(PyObject* obj) -{ - SWIG_AsUnsignedLong(obj); - if (PyErr_Occurred()) { - PyErr_Clear(); - return 0; - } else { - return 1; - } -} - - -SWIGSTATICINLINE(PyObject* ) -SWIG_FromUnsignedLong(unsigned long value) -{ - return (value > LONG_MAX) ? - PyLong_FromUnsignedLong(value) - : PyInt_FromLong(swig_numeric_cast(long,value)); -} - - -#include - - static const wxString wxPyVListBoxNameStr(wxVListBoxNameStr); - -class wxPyVListBox : public wxVListBox -{ - DECLARE_ABSTRACT_CLASS(wxPyVListBox); -public: - wxPyVListBox() : wxVListBox() {} - - wxPyVListBox(wxWindow *parent, - wxWindowID id = wxID_ANY, - const wxPoint& pos = wxDefaultPosition, - const wxSize& size = wxDefaultSize, - long style = 0, - const wxString& name = wxPyVListBoxNameStr) - : wxVListBox(parent, id, pos, size, style, name) - {} - - // Overridable virtuals - - // the derived class must implement this function to actually draw the item - // with the given index on the provided DC - // virtual void OnDrawItem(wxDC& dc, const wxRect& rect, size_t n) const = 0; - DEC_PYCALLBACK__DCRECTSIZET_constpure(OnDrawItem); - - - // the derived class must implement this method to return the height of the - // specified item - // virtual wxCoord OnMeasureItem(size_t n) const = 0; - DEC_PYCALLBACK_COORD_SIZET_constpure(OnMeasureItem); - - - // this method may be used to draw separators between the lines; note that - // the rectangle may be modified, typically to deflate it a bit before - // passing to OnDrawItem() - // - // the base class version doesn't do anything - // virtual void OnDrawSeparator(wxDC& dc, wxRect& rect, size_t n) const; - DEC_PYCALLBACK__DCRECTSIZET_constpure(OnDrawSeparator); - - - // this method is used to draw the items background and, maybe, a border - // around it - // - // the base class version implements a reasonable default behaviour which - // consists in drawing the selected item with the standard background - // colour and drawing a border around the item if it is either selected or - // current - // virtual void OnDrawBackground(wxDC& dc, const wxRect& rect, size_t n) const; - DEC_PYCALLBACK__DCRECTSIZET_const(OnDrawBackground); - - - PYPRIVATE; -}; - -IMPLEMENT_ABSTRACT_CLASS(wxPyVListBox, wxVListBox); - -IMP_PYCALLBACK__DCRECTSIZET_constpure(wxPyVListBox, wxVListBox, OnDrawItem); -IMP_PYCALLBACK_COORD_SIZET_constpure (wxPyVListBox, wxVListBox, OnMeasureItem); -IMP_PYCALLBACK__DCRECTSIZET_constpure(wxPyVListBox, wxVListBox, OnDrawSeparator); -IMP_PYCALLBACK__DCRECTSIZET_const (wxPyVListBox, wxVListBox, OnDrawBackground); - - - -#include - - -class wxPyHtmlListBox : public wxHtmlListBox -{ - DECLARE_ABSTRACT_CLASS(wxPyHtmlListBox); -public: - wxPyHtmlListBox() : wxHtmlListBox() {} - - wxPyHtmlListBox(wxWindow *parent, - wxWindowID id = wxID_ANY, - const wxPoint& pos = wxDefaultPosition, - const wxSize& size = wxDefaultSize, - long style = 0, - const wxString& name = wxPyVListBoxNameStr) - : wxHtmlListBox(parent, id, pos, size, style, name) - {} - - // Overridable virtuals - - // this method must be implemented in the derived class and should return - // the body (i.e. without ) of the HTML for the given item - DEC_PYCALLBACK_STRING_SIZET_pure(OnGetItem); - - // this function may be overridden to decorate HTML returned by OnGetItem() - DEC_PYCALLBACK_STRING_SIZET(OnGetItemMarkup); - -// TODO: -// // this method allows to customize the selection appearance: it may be used -// // to specify the colour of the text which normally has the given colour -// // colFg when it is inside the selection -// // -// // by default, the original colour is not used at all and all text has the -// // same (default for this system) colour inside selection -// virtual wxColour GetSelectedTextColour(const wxColour& colFg) const; - -// // this is the same as GetSelectedTextColour() but allows to customize the -// // background colour -- this is even more rarely used as you can change it -// // globally using SetSelectionBackground() -// virtual wxColour GetSelectedTextBgColour(const wxColour& colBg) const; - - - PYPRIVATE; -}; - - -IMPLEMENT_ABSTRACT_CLASS(wxPyHtmlListBox, wxHtmlListBox) - -IMP_PYCALLBACK_STRING_SIZET_pure(wxPyHtmlListBox, wxHtmlListBox, OnGetItem); -IMP_PYCALLBACK_STRING_SIZET (wxPyHtmlListBox, wxHtmlListBox, OnGetItemMarkup); - - - - - -#ifdef __WXMAC__ -// implement dummy classes and such for wxMac - -class wxTaskBarIcon : public wxEvtHandler -{ -public: - wxTaskBarIcon() { wxPyRaiseNotImplemented(); } -}; - - -class wxTaskBarIconEvent : public wxEvent -{ -public: - wxTaskBarIconEvent(wxEventType, wxTaskBarIcon *) - { wxPyRaiseNotImplemented(); } - virtual wxEvent* Clone() const { return NULL; } -}; - -enum { - wxEVT_TASKBAR_MOVE = 0, - wxEVT_TASKBAR_LEFT_DOWN = 0, - wxEVT_TASKBAR_LEFT_UP = 0, - wxEVT_TASKBAR_RIGHT_DOWN = 0, - wxEVT_TASKBAR_RIGHT_UP = 0, - wxEVT_TASKBAR_LEFT_DCLICK = 0, - wxEVT_TASKBAR_RIGHT_DCLICK = 0, -}; -#endif - -void wxTaskBarIcon_Destroy(wxTaskBarIcon *self){ - - self->RemoveIcon(); - - } - static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr); - static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr); - static const wxString wxPyDirDialogNameStr(wxDirDialogNameStr); - static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr); - static const wxString wxPyGetTextFromUserPromptStr(wxGetTextFromUserPromptStr); - static const wxString wxPyMessageBoxCaptionStr(wxMessageBoxCaptionStr); -PyObject *wxFileDialog_GetFilenames(wxFileDialog *self){ - wxArrayString arr; - self->GetFilenames(arr); - return wxArrayString2PyList_helper(arr); - } -PyObject *wxFileDialog_GetPaths(wxFileDialog *self){ - wxArrayString arr; - self->GetPaths(arr); - return wxArrayString2PyList_helper(arr); - } -PyObject *wxMultiChoiceDialog_GetSelections(wxMultiChoiceDialog *self){ - return wxArrayInt2PyList_helper(self->GetSelections()); - } -wxSingleChoiceDialog *new_wxSingleChoiceDialog(wxWindow *parent,wxString const &message,wxString const &caption,int choices,wxString *choices_array,long style,wxPoint const &pos){ - return new wxSingleChoiceDialog(parent, message, caption, - choices, choices_array, NULL, style, pos); - } - -#include - - // C++ version of Python aware wxWindow -class wxPyWindow : public wxWindow -{ - DECLARE_DYNAMIC_CLASS(wxPyWindow) -public: - wxPyWindow() : wxWindow() {} - wxPyWindow(wxWindow* parent, const wxWindowID id, - const wxPoint& pos = wxDefaultPosition, - const wxSize& size = wxDefaultSize, - long style = 0, - const wxString& name = wxPyPanelNameStr) - : wxWindow(parent, id, pos, size, style, name) {} - - - DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); - DEC_PYCALLBACK_VOID_INT5(DoSetSize); - DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); - DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); - - DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); - DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); - DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); - - DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); - DEC_PYCALLBACK_SIZE_const(DoGetBestSize); - - DEC_PYCALLBACK__(InitDialog); - DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); - DEC_PYCALLBACK_BOOL_(TransferDataToWindow); - DEC_PYCALLBACK_BOOL_(Validate); - - DEC_PYCALLBACK_BOOL_const(AcceptsFocus); - DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); - DEC_PYCALLBACK_SIZE_const(GetMaxSize); - - DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); - DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); - - DEC_PYCALLBACK_BOOL_(ShouldInheritColours); - DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground); - - PYPRIVATE; -}; - -IMPLEMENT_DYNAMIC_CLASS(wxPyWindow, wxWindow); - -IMP_PYCALLBACK_VOID_INT4(wxPyWindow, wxWindow, DoMoveWindow); -IMP_PYCALLBACK_VOID_INT5(wxPyWindow, wxWindow, DoSetSize); -IMP_PYCALLBACK_VOID_INTINT(wxPyWindow, wxWindow, DoSetClientSize); -IMP_PYCALLBACK_VOID_INTINT(wxPyWindow, wxWindow, DoSetVirtualSize); - -IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetSize); -IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetClientSize); -IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetPosition); - -IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, DoGetVirtualSize); -IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, DoGetBestSize); - -IMP_PYCALLBACK__(wxPyWindow, wxWindow, InitDialog); -IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, TransferDataFromWindow); -IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, TransferDataToWindow); -IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, Validate); - -IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, AcceptsFocus); -IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, AcceptsFocusFromKeyboard); -IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, GetMaxSize); - -IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWindow, wxWindow, AddChild); -IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWindow, wxWindow, RemoveChild); - -IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, ShouldInheritColours); -IMP_PYCALLBACK__COLOUR(wxPyWindow, wxWindow, ApplyParentThemeBackground); - - - // C++ version of Python aware wxPanel -class wxPyPanel : public wxPanel -{ - DECLARE_DYNAMIC_CLASS(wxPyPanel) -public: - wxPyPanel() : wxPanel() {} - wxPyPanel(wxWindow* parent, const wxWindowID id, - const wxPoint& pos = wxDefaultPosition, - const wxSize& size = wxDefaultSize, - long style = 0, - const wxString& name = wxPyPanelNameStr) - : wxPanel(parent, id, pos, size, style, name) {} - - - DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); - DEC_PYCALLBACK_VOID_INT5(DoSetSize); - DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); - DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); - - DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); - DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); - DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); - - DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); - DEC_PYCALLBACK_SIZE_const(DoGetBestSize); - - DEC_PYCALLBACK__(InitDialog); - DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); - DEC_PYCALLBACK_BOOL_(TransferDataToWindow); - DEC_PYCALLBACK_BOOL_(Validate); - - DEC_PYCALLBACK_BOOL_const(AcceptsFocus); - DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); - DEC_PYCALLBACK_SIZE_const(GetMaxSize); - - DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); - DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); - - DEC_PYCALLBACK_BOOL_(ShouldInheritColours); - DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground); - - PYPRIVATE; -}; - -IMPLEMENT_DYNAMIC_CLASS(wxPyPanel, wxPanel); - -IMP_PYCALLBACK_VOID_INT4(wxPyPanel, wxPanel, DoMoveWindow); -IMP_PYCALLBACK_VOID_INT5(wxPyPanel, wxPanel, DoSetSize); -IMP_PYCALLBACK_VOID_INTINT(wxPyPanel, wxPanel, DoSetClientSize); -IMP_PYCALLBACK_VOID_INTINT(wxPyPanel, wxPanel, DoSetVirtualSize); - -IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetSize); -IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetClientSize); -IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetPosition); - -IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, DoGetVirtualSize); -IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, DoGetBestSize); - -IMP_PYCALLBACK__(wxPyPanel, wxPanel, InitDialog); -IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, TransferDataFromWindow); -IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, TransferDataToWindow); -IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, Validate); - -IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, AcceptsFocus); -IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, AcceptsFocusFromKeyboard); -IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, GetMaxSize); - -IMP_PYCALLBACK_VOID_WXWINBASE(wxPyPanel, wxPanel, AddChild); -IMP_PYCALLBACK_VOID_WXWINBASE(wxPyPanel, wxPanel, RemoveChild); - -IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, ShouldInheritColours); -IMP_PYCALLBACK__COLOUR(wxPyPanel, wxPanel, ApplyParentThemeBackground); - - // C++ version of Python aware wxScrolledWindow -class wxPyScrolledWindow : public wxScrolledWindow -{ - DECLARE_DYNAMIC_CLASS(wxPyScrolledWindow) -public: - wxPyScrolledWindow() : wxScrolledWindow() {} - wxPyScrolledWindow(wxWindow* parent, const wxWindowID id, - const wxPoint& pos = wxDefaultPosition, - const wxSize& size = wxDefaultSize, - long style = 0, - const wxString& name = wxPyPanelNameStr) - : wxScrolledWindow(parent, id, pos, size, style, name) {} - - - DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); - DEC_PYCALLBACK_VOID_INT5(DoSetSize); - DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); - DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); - - DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); - DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); - DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); - - DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); - DEC_PYCALLBACK_SIZE_const(DoGetBestSize); - - DEC_PYCALLBACK__(InitDialog); - DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); - DEC_PYCALLBACK_BOOL_(TransferDataToWindow); - DEC_PYCALLBACK_BOOL_(Validate); - - DEC_PYCALLBACK_BOOL_const(AcceptsFocus); - DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); - DEC_PYCALLBACK_SIZE_const(GetMaxSize); - - DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); - DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); - - DEC_PYCALLBACK_BOOL_(ShouldInheritColours); - DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground); - - PYPRIVATE; -}; - -IMPLEMENT_DYNAMIC_CLASS(wxPyScrolledWindow, wxScrolledWindow); - -IMP_PYCALLBACK_VOID_INT4(wxPyScrolledWindow, wxScrolledWindow, DoMoveWindow); -IMP_PYCALLBACK_VOID_INT5(wxPyScrolledWindow, wxScrolledWindow, DoSetSize); -IMP_PYCALLBACK_VOID_INTINT(wxPyScrolledWindow, wxScrolledWindow, DoSetClientSize); -IMP_PYCALLBACK_VOID_INTINT(wxPyScrolledWindow, wxScrolledWindow, DoSetVirtualSize); - -IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetSize); -IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetClientSize); -IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetPosition); - -IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, DoGetVirtualSize); -IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, DoGetBestSize); - -IMP_PYCALLBACK__(wxPyScrolledWindow, wxScrolledWindow, InitDialog); -IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, TransferDataFromWindow); -IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, TransferDataToWindow); -IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, Validate); - -IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, AcceptsFocus); -IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, AcceptsFocusFromKeyboard); -IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, GetMaxSize); - -IMP_PYCALLBACK_VOID_WXWINBASE(wxPyScrolledWindow, wxScrolledWindow, AddChild); -IMP_PYCALLBACK_VOID_WXWINBASE(wxPyScrolledWindow, wxScrolledWindow, RemoveChild); - -IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, ShouldInheritColours); -IMP_PYCALLBACK__COLOUR(wxPyScrolledWindow, wxScrolledWindow, ApplyParentThemeBackground); - - -#include "wx/wxPython/printfw.h" - - - static const wxString wxPyPrintoutTitleStr(wxT("Printout")); - static const wxString wxPyPreviewCanvasNameStr(wxT("previewcanvas")); - - - -// Since this one would be tough and ugly to do with the Macros... -void wxPyPrintout::GetPageInfo(int *minPage, int *maxPage, int *pageFrom, int *pageTo) { - bool hadErr = False; - bool found; - - bool blocked = wxPyBeginBlockThreads(); - if ((found = wxPyCBH_findCallback(m_myInst, "GetPageInfo"))) { - PyObject* result = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); - if (result && PyTuple_Check(result) && PyTuple_Size(result) == 4) { - PyObject* val; - - val = PyTuple_GetItem(result, 0); - if (PyInt_Check(val)) *minPage = PyInt_AsLong(val); - else hadErr = True; - - val = PyTuple_GetItem(result, 1); - if (PyInt_Check(val)) *maxPage = PyInt_AsLong(val); - else hadErr = True; - - val = PyTuple_GetItem(result, 2); - if (PyInt_Check(val)) *pageFrom = PyInt_AsLong(val); - else hadErr = True; - - val = PyTuple_GetItem(result, 3); - if (PyInt_Check(val)) *pageTo = PyInt_AsLong(val); - else hadErr = True; - } - else - hadErr = True; - - if (hadErr) { - PyErr_SetString(PyExc_TypeError, "GetPageInfo should return a tuple of 4 integers."); - PyErr_Print(); - } - Py_DECREF(result); - } - wxPyEndBlockThreads(blocked); - if (! found) - wxPrintout::GetPageInfo(minPage, maxPage, pageFrom, pageTo); -} - -void wxPyPrintout::base_GetPageInfo(int *minPage, int *maxPage, int *pageFrom, int *pageTo) { - wxPrintout::GetPageInfo(minPage, maxPage, pageFrom, pageTo); -} - - -IMP_PYCALLBACK_BOOL_INTINT(wxPyPrintout, wxPrintout, OnBeginDocument); -IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnEndDocument); -IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnBeginPrinting); -IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnEndPrinting); -IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnPreparePrinting); -IMP_PYCALLBACK_BOOL_INT_pure(wxPyPrintout, wxPrintout, OnPrintPage); -IMP_PYCALLBACK_BOOL_INT(wxPyPrintout, wxPrintout, HasPage); - - - - - -#define DEC_PYCALLBACK_BOOL_PREWINDC(CBNAME) \ - bool CBNAME(wxPreviewCanvas* a, wxDC& b); \ - bool base_##CBNAME(wxPreviewCanvas* a, wxDC& b) - - -#define IMP_PYCALLBACK_BOOL_PREWINDC(CLASS, PCLASS, CBNAME) \ - bool CLASS::CBNAME(wxPreviewCanvas* a, wxDC& b) { \ - bool rval=False; \ - bool found; \ - bool blocked = wxPyBeginBlockThreads(); \ - if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ - PyObject* win = wxPyMake_wxObject(a); \ - PyObject* dc = wxPyMake_wxObject(&b); \ - rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)", win, dc));\ - Py_DECREF(win); \ - Py_DECREF(dc); \ - } \ - wxPyEndBlockThreads(blocked); \ - if (! found) \ - rval = PCLASS::CBNAME(a, b); \ - return rval; \ - } \ - bool CLASS::base_##CBNAME(wxPreviewCanvas* a, wxDC& b) { \ - return PCLASS::CBNAME(a, b); \ - } - - - - -class wxPyPrintPreview : public wxPrintPreview -{ - DECLARE_CLASS(wxPyPrintPreview) -public: - wxPyPrintPreview(wxPyPrintout* printout, - wxPyPrintout* printoutForPrinting, - wxPrintDialogData* data=NULL) - : wxPrintPreview(printout, printoutForPrinting, data) - {} - wxPyPrintPreview(wxPyPrintout* printout, - wxPyPrintout* printoutForPrinting, - wxPrintData* data=NULL) - : wxPrintPreview(printout, printoutForPrinting, data) - {} - - DEC_PYCALLBACK_BOOL_INT(SetCurrentPage); - DEC_PYCALLBACK_BOOL_PREWINDC(PaintPage); - DEC_PYCALLBACK_BOOL_PREWINDC(DrawBlankPage); - DEC_PYCALLBACK_BOOL_INT(RenderPage); - DEC_PYCALLBACK_VOID_INT(SetZoom); - DEC_PYCALLBACK_BOOL_BOOL(Print); - DEC_PYCALLBACK_VOID_(DetermineScaling); - - PYPRIVATE; -}; - -// Stupid renamed classes... Fix this in 2.5... -#if defined(__WXMSW__) -IMPLEMENT_CLASS( wxPyPrintPreview, wxWindowsPrintPreview ); -#elif defined(__WXMAC__) -IMPLEMENT_CLASS( wxPyPrintPreview, wxMacPrintPreview ); -#else -IMPLEMENT_CLASS( wxPyPrintPreview, wxPostScriptPrintPreview ); -#endif - -IMP_PYCALLBACK_BOOL_INT (wxPyPrintPreview, wxPrintPreview, SetCurrentPage); -IMP_PYCALLBACK_BOOL_PREWINDC(wxPyPrintPreview, wxPrintPreview, PaintPage); -IMP_PYCALLBACK_BOOL_PREWINDC(wxPyPrintPreview, wxPrintPreview, DrawBlankPage); -IMP_PYCALLBACK_BOOL_INT (wxPyPrintPreview, wxPrintPreview, RenderPage); -IMP_PYCALLBACK_VOID_INT (wxPyPrintPreview, wxPrintPreview, SetZoom); -IMP_PYCALLBACK_BOOL_BOOL (wxPyPrintPreview, wxPrintPreview, Print); -IMP_PYCALLBACK_VOID_ (wxPyPrintPreview, wxPrintPreview, DetermineScaling); - - -class wxPyPreviewFrame : public wxPreviewFrame -{ - DECLARE_CLASS(wxPyPreviewFrame); -public: - wxPyPreviewFrame(wxPrintPreview* preview, wxFrame* parent, - const wxString& title, - const wxPoint& pos = wxDefaultPosition, - const wxSize& size = wxDefaultSize, - long style = wxDEFAULT_FRAME_STYLE, - const wxString& name = wxPyFrameNameStr) - : wxPreviewFrame(preview, parent, title, pos, size, style, name) - {} - - void SetPreviewCanvas(wxPreviewCanvas* canvas) { m_previewCanvas = canvas; } - void SetControlBar(wxPreviewControlBar* bar) { m_controlBar = bar; } - - DEC_PYCALLBACK_VOID_(Initialize); - DEC_PYCALLBACK_VOID_(CreateCanvas); - DEC_PYCALLBACK_VOID_(CreateControlBar); - - PYPRIVATE; -}; - -IMPLEMENT_CLASS(wxPyPreviewFrame, wxPreviewFrame); - -IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, Initialize); -IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, CreateCanvas); -IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, CreateControlBar); - - -class wxPyPreviewControlBar : public wxPreviewControlBar -{ - DECLARE_CLASS(wxPyPreviewControlBar); -public: - wxPyPreviewControlBar(wxPrintPreview *preview, - long buttons, - wxWindow *parent, - const wxPoint& pos = wxDefaultPosition, - const wxSize& size = wxDefaultSize, - long style = 0, - const wxString& name = wxPyPanelNameStr) - : wxPreviewControlBar(preview, buttons, parent, pos, size, style, name) - {} - - void SetPrintPreview(wxPrintPreview* preview) { m_printPreview = preview; } - - DEC_PYCALLBACK_VOID_(CreateButtons); - DEC_PYCALLBACK_VOID_INT(SetZoomControl); - - PYPRIVATE; -}; - -IMPLEMENT_CLASS(wxPyPreviewControlBar, wxPreviewControlBar); -IMP_PYCALLBACK_VOID_(wxPyPreviewControlBar, wxPreviewControlBar, CreateButtons); -IMP_PYCALLBACK_VOID_INT(wxPyPreviewControlBar, wxPreviewControlBar, SetZoomControl); - -#ifdef __cplusplus -extern "C" { -#endif -static PyObject *_wrap_new_Panel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) (int)-1 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) wxTAB_TRAVERSAL|wxNO_BORDER ; - wxString const &arg6_defvalue = wxPyPanelNameStr ; - wxString *arg6 = (wxString *) &arg6_defvalue ; - wxPanel *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp6 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Panel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int const) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - { - arg6 = wxString_in_helper(obj5); - if (arg6 == NULL) SWIG_fail; - temp6 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPanel *)new wxPanel(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPanel, 1); - { - if (temp6) - delete arg6; - } - return resultobj; - fail: - { - if (temp6) - delete arg6; - } - return NULL; -} - - -static PyObject *_wrap_new_PrePanel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPanel *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePanel",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPanel *)new wxPanel(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPanel, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Panel_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPanel *arg1 = (wxPanel *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 = (int) (int)-1 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxTAB_TRAVERSAL|wxNO_BORDER ; - wxString const &arg7_defvalue = wxPyPanelNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - bool result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Panel_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPanel, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (int const) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_Panel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPanel *arg1 = (wxPanel *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Panel_InitDialog",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPanel, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->InitDialog(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * Panel_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPanel, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) (int)-1 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) wxHSCROLL|wxVSCROLL ; - wxString const &arg6_defvalue = wxPyPanelNameStr ; - wxString *arg6 = (wxString *) &arg6_defvalue ; - wxScrolledWindow *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp6 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int const) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - { - arg6 = wxString_in_helper(obj5); - if (arg6 == NULL) SWIG_fail; - temp6 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxScrolledWindow *)new wxScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrolledWindow, 1); - { - if (temp6) - delete arg6; - } - return resultobj; - fail: - { - if (temp6) - delete arg6; - } - return NULL; -} - - -static PyObject *_wrap_new_PreScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrolledWindow *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrolledWindow",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxScrolledWindow *)new wxScrolledWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrolledWindow, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrolledWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 = (int) (int)-1 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxHSCROLL|wxVSCROLL ; - wxString const &arg7_defvalue = wxPyPanelNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - bool result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ScrolledWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (int const) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_ScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 = (int) 0 ; - int arg7 = (int) 0 ; - bool arg8 = (bool) False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pixelsPerUnitX",(char *) "pixelsPerUnitY",(char *) "noUnitsX",(char *) "noUnitsY",(char *) "xPos",(char *) "yPos",(char *) "noRefresh", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:ScrolledWindow_SetScrollbars",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - if (obj5) { - arg6 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - arg7 = (int) SWIG_AsInt(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - arg8 = (bool) SWIG_AsBool(obj7); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetScrollbars(arg2,arg3,arg4,arg5,arg6,arg7,arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_Scroll",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Scroll(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrolledWindow_GetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; - int arg2 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "orient", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_GetScrollPageSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxScrolledWindow const *)arg1)->GetScrollPageSize(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrolledWindow_SetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "orient",(char *) "pageSize", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScrollPageSize",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetScrollPageSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrolledWindow_SetScrollRate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "xstep",(char *) "ystep", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScrollRate",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetScrollRate(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetScrollPixelsPerUnit",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxScrolledWindow const *)arg1)->GetScrollPixelsPerUnit(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; - bool arg2 ; - bool arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x_scrolling",(char *) "y_scrolling", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_EnableScrolling",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->EnableScrolling(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrolledWindow_GetViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetViewStart",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxScrolledWindow const *)arg1)->GetViewStart(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrolledWindow_SetScale(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; - double arg2 ; - double arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "xs",(char *) "ys", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScale",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (double) SWIG_AsDouble(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (double) SWIG_AsDouble(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetScale(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrolledWindow_GetScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; - double result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetScaleX",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (double)((wxScrolledWindow const *)arg1)->GetScaleX(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromDouble((double)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrolledWindow_GetScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; - double result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetScaleY",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (double)((wxScrolledWindow const *)arg1)->GetScaleY(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromDouble((double)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrolledWindow_CalcScrolledPosition__SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:ScrolledWindow_CalcScrolledPosition",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxScrolledWindow const *)arg1)->CalcScrolledPosition((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrolledWindow_CalcScrolledPosition__SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; - int arg2 ; - int arg3 ; - int *arg4 = (int *) 0 ; - int *arg5 = (int *) 0 ; - int temp4 ; - int temp5 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - arg4 = &temp4; - arg5 = &temp5; - if(!PyArg_ParseTuple(args,(char *)"OOO:ScrolledWindow_CalcScrolledPosition",&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxScrolledWindow const *)arg1)->CalcScrolledPosition(arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg4)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg5)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrolledWindow_CalcScrolledPosition(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxScrolledWindow, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - _v = wxPySimple_typecheck(argv[1], wxT("wxPoint"), 2); - } - if (_v) { - return _wrap_ScrolledWindow_CalcScrolledPosition__SWIG_0(self,args); - } - } - } - if (argc == 3) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxScrolledWindow, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - _v = SWIG_CheckInt(argv[1]); - if (_v) { - _v = SWIG_CheckInt(argv[2]); - if (_v) { - return _wrap_ScrolledWindow_CalcScrolledPosition__SWIG_1(self,args); - } - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'ScrolledWindow_CalcScrolledPosition'"); - return NULL; -} - - -static PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:ScrolledWindow_CalcUnscrolledPosition",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxScrolledWindow const *)arg1)->CalcUnscrolledPosition((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; - int arg2 ; - int arg3 ; - int *arg4 = (int *) 0 ; - int *arg5 = (int *) 0 ; - int temp4 ; - int temp5 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - arg4 = &temp4; - arg5 = &temp5; - if(!PyArg_ParseTuple(args,(char *)"OOO:ScrolledWindow_CalcUnscrolledPosition",&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxScrolledWindow const *)arg1)->CalcUnscrolledPosition(arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg4)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg5)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxScrolledWindow, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - _v = wxPySimple_typecheck(argv[1], wxT("wxPoint"), 2); - } - if (_v) { - return _wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_0(self,args); - } - } - } - if (argc == 3) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxScrolledWindow, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - _v = SWIG_CheckInt(argv[1]); - if (_v) { - _v = SWIG_CheckInt(argv[2]); - if (_v) { - return _wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_1(self,args); - } - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'ScrolledWindow_CalcUnscrolledPosition'"); - return NULL; -} - - -static PyObject *_wrap_ScrolledWindow_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_AdjustScrollbars",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AdjustScrollbars(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrolledWindow_CalcScrollInc(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; - wxScrollWinEvent *arg2 = 0 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "event", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_CalcScrollInc",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxScrollWinEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->CalcScrollInc(*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrolledWindow_SetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "target", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_SetTargetWindow",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetTargetWindow(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrolledWindow_GetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetTargetWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)((wxScrolledWindow const *)arg1)->GetTargetWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrolledWindow_SetTargetRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; - wxRect *arg2 = 0 ; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_SetTargetRect",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetTargetRect((wxRect const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ScrolledWindow_GetTargetRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; - wxRect result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetTargetRect",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxScrolledWindow const *)arg1)->GetTargetRect(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxRect * resultptr; - resultptr = new wxRect((wxRect &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * ScrolledWindow_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxScrolledWindow, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_FrameNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable FrameNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_FrameNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyFrameNameStr)->c_str(), (&wxPyFrameNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyFrameNameStr)->c_str(), (&wxPyFrameNameStr)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_DialogNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable DialogNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_DialogNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyDialogNameStr)->c_str(), (&wxPyDialogNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyDialogNameStr)->c_str(), (&wxPyDialogNameStr)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_StatusLineNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable StatusLineNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_StatusLineNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyStatusLineNameStr)->c_str(), (&wxPyStatusLineNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyStatusLineNameStr)->c_str(), (&wxPyStatusLineNameStr)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_ToolBarNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable ToolBarNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_ToolBarNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyToolBarNameStr)->c_str(), (&wxPyToolBarNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyToolBarNameStr)->c_str(), (&wxPyToolBarNameStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_TopLevelWindow_Maximize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; - bool arg2 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "maximize", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_Maximize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Maximize(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TopLevelWindow_Restore(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_Restore",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Restore(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TopLevelWindow_Iconize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; - bool arg2 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "iconize", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_Iconize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Iconize(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TopLevelWindow_IsMaximized(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_IsMaximized",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTopLevelWindow const *)arg1)->IsMaximized(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TopLevelWindow_IsIconized(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_IsIconized",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTopLevelWindow const *)arg1)->IsIconized(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TopLevelWindow_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; - wxIcon result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_GetIcon",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxTopLevelWindow const *)arg1)->GetIcon(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxIcon * resultptr; - resultptr = new wxIcon((wxIcon &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TopLevelWindow_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; - wxIcon *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "icon", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetIcon",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetIcon((wxIcon const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TopLevelWindow_SetIcons(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; - wxIconBundle *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "icons", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetIcons",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIconBundle, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetIcons((wxIconBundle const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TopLevelWindow_ShowFullScreen(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; - bool arg2 ; - long arg3 = (long) wxFULLSCREEN_ALL ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "show",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TopLevelWindow_ShowFullScreen",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->ShowFullScreen(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TopLevelWindow_IsFullScreen(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_IsFullScreen",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTopLevelWindow const *)arg1)->IsFullScreen(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TopLevelWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "title", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetTitle",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetTitle((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_TopLevelWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_GetTitle",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxTopLevelWindow const *)arg1)->GetTitle(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TopLevelWindow_SetShape(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; - wxRegion *arg2 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "region", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetShape",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetShape((wxRegion const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * TopLevelWindow_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxTopLevelWindow, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Frame(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxDEFAULT_FRAME_STYLE ; - wxString const &arg7_defvalue = wxPyFrameNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - wxFrame *result; - bool temp3 = False ; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_Frame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int const) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFrame *)new wxFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp3) - delete arg3; - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_new_PreFrame(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFrame *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreFrame",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFrame *)new wxFrame(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Frame_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFrame *arg1 = (wxFrame *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - wxString *arg4 = 0 ; - wxPoint const &arg5_defvalue = wxDefaultPosition ; - wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; - wxSize const &arg6_defvalue = wxDefaultSize ; - wxSize *arg6 = (wxSize *) &arg6_defvalue ; - long arg7 = (long) wxDEFAULT_FRAME_STYLE ; - wxString const &arg8_defvalue = wxPyFrameNameStr ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - bool result; - bool temp4 = False ; - wxPoint temp5 ; - wxSize temp6 ; - bool temp8 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:Frame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int const) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - { - arg6 = &temp6; - if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; - } - } - if (obj6) { - arg7 = (long) SWIG_AsLong(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp4) - delete arg4; - } - { - if (temp8) - delete arg8; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - { - if (temp8) - delete arg8; - } - return NULL; -} - - -static PyObject *_wrap_Frame_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFrame *arg1 = (wxFrame *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetClientAreaOrigin",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxFrame const *)arg1)->GetClientAreaOrigin(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Frame_SendSizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFrame *arg1 = (wxFrame *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_SendSizeEvent",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SendSizeEvent(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Frame_SetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFrame *arg1 = (wxFrame *) 0 ; - wxMenuBar *arg2 = (wxMenuBar *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "menubar", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetMenuBar",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMenuBar(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Frame_GetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFrame *arg1 = (wxFrame *) 0 ; - wxMenuBar *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetMenuBar",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenuBar *)((wxFrame const *)arg1)->GetMenuBar(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Frame_ProcessCommand(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFrame *arg1 = (wxFrame *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "winid", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_ProcessCommand",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->ProcessCommand(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Frame_CreateStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFrame *arg1 = (wxFrame *) 0 ; - int arg2 = (int) 1 ; - long arg3 = (long) wxST_SIZEGRIP ; - int arg4 = (int) 0 ; - wxString const &arg5_defvalue = wxPyStatusLineNameStr ; - wxString *arg5 = (wxString *) &arg5_defvalue ; - wxStatusBar *result; - bool temp5 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "number",(char *) "style",(char *) "winid",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Frame_CreateStatusBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj4) { - { - arg5 = wxString_in_helper(obj4); - if (arg5 == NULL) SWIG_fail; - temp5 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxStatusBar *)(arg1)->CreateStatusBar(arg2,arg3,arg4,(wxString const &)*arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp5) - delete arg5; - } - return resultobj; - fail: - { - if (temp5) - delete arg5; - } - return NULL; -} - - -static PyObject *_wrap_Frame_GetStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFrame *arg1 = (wxFrame *) 0 ; - wxStatusBar *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetStatusBar",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxStatusBar *)((wxFrame const *)arg1)->GetStatusBar(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Frame_SetStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFrame *arg1 = (wxFrame *) 0 ; - wxStatusBar *arg2 = (wxStatusBar *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "statBar", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusBar",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxStatusBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetStatusBar(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Frame_SetStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFrame *arg1 = (wxFrame *) 0 ; - wxString *arg2 = 0 ; - int arg3 = (int) 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "text",(char *) "number", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Frame_SetStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetStatusText((wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Frame_SetStatusWidths(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFrame *arg1 = (wxFrame *) 0 ; - int arg2 ; - int *arg3 = (int *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "widths", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusWidths",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = PyList_Size(obj1); - arg3 = int_LIST_helper(obj1); - if (arg3 == NULL) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetStatusWidths(arg2,(int const *)arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (arg3) delete [] arg3; - } - return resultobj; - fail: - { - if (arg3) delete [] arg3; - } - return NULL; -} - - -static PyObject *_wrap_Frame_PushStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFrame *arg1 = (wxFrame *) 0 ; - wxString *arg2 = 0 ; - int arg3 = (int) 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "text",(char *) "number", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Frame_PushStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->PushStatusText((wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Frame_PopStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFrame *arg1 = (wxFrame *) 0 ; - int arg2 = (int) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "number", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Frame_PopStatusText",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->PopStatusText(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Frame_SetStatusBarPane(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFrame *arg1 = (wxFrame *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "n", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusBarPane",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetStatusBarPane(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Frame_GetStatusBarPane(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFrame *arg1 = (wxFrame *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetStatusBarPane",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxFrame const *)arg1)->GetStatusBarPane(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Frame_CreateToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFrame *arg1 = (wxFrame *) 0 ; - long arg2 = (long) -1 ; - int arg3 = (int) -1 ; - wxString const &arg4_defvalue = wxPyToolBarNameStr ; - wxString *arg4 = (wxString *) &arg4_defvalue ; - wxToolBar *result; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "style",(char *) "winid",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Frame_CreateToolBar",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxToolBar *)(arg1)->CreateToolBar(arg2,arg3,(wxString const &)*arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_Frame_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFrame *arg1 = (wxFrame *) 0 ; - wxToolBar *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetToolBar",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxToolBar *)((wxFrame const *)arg1)->GetToolBar(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Frame_SetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFrame *arg1 = (wxFrame *) 0 ; - wxToolBar *arg2 = (wxToolBar *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "toolbar", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetToolBar",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetToolBar(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Frame_DoGiveHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFrame *arg1 = (wxFrame *) 0 ; - wxString *arg2 = 0 ; - bool arg3 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "text",(char *) "show", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Frame_DoGiveHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DoGiveHelp((wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Frame_DoMenuUpdates(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFrame *arg1 = (wxFrame *) 0 ; - wxMenu *arg2 = (wxMenu *) NULL ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "menu", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Frame_DoMenuUpdates",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DoMenuUpdates(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * Frame_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxFrame, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Dialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxDEFAULT_DIALOG_STYLE ; - wxString const &arg7_defvalue = wxPyDialogNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - wxDialog *result; - bool temp3 = False ; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_Dialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int const) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxDialog *)new wxDialog(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDialog, 1); - { - if (temp3) - delete arg3; - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_new_PreDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDialog *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDialog",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxDialog *)new wxDialog(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDialog, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Dialog_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDialog *arg1 = (wxDialog *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - wxString *arg4 = 0 ; - wxPoint const &arg5_defvalue = wxDefaultPosition ; - wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; - wxSize const &arg6_defvalue = wxDefaultSize ; - wxSize *arg6 = (wxSize *) &arg6_defvalue ; - long arg7 = (long) wxDEFAULT_DIALOG_STYLE ; - wxString const &arg8_defvalue = wxPyDialogNameStr ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - bool result; - bool temp4 = False ; - wxPoint temp5 ; - wxSize temp6 ; - bool temp8 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:Dialog_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int const) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - { - arg6 = &temp6; - if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; - } - } - if (obj6) { - arg7 = (long) SWIG_AsLong(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp4) - delete arg4; - } - { - if (temp8) - delete arg8; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - { - if (temp8) - delete arg8; - } - return NULL; -} - - -static PyObject *_wrap_Dialog_SetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDialog *arg1 = (wxDialog *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "returnCode", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_SetReturnCode",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetReturnCode(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Dialog_GetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDialog *arg1 = (wxDialog *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Dialog_GetReturnCode",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxDialog const *)arg1)->GetReturnCode(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Dialog_CreateTextSizer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDialog *arg1 = (wxDialog *) 0 ; - wxString *arg2 = 0 ; - wxSizer *result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "message", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_CreateTextSizer",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSizer *)(arg1)->CreateTextSizer((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxSizer(result); - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_Dialog_CreateButtonSizer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDialog *arg1 = (wxDialog *) 0 ; - long arg2 ; - wxSizer *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_CreateButtonSizer",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSizer *)(arg1)->CreateButtonSizer(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxSizer(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Dialog_IsModal(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDialog *arg1 = (wxDialog *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Dialog_IsModal",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxDialog const *)arg1)->IsModal(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Dialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDialog *arg1 = (wxDialog *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Dialog_ShowModal",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->ShowModal(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Dialog_EndModal(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDialog *arg1 = (wxDialog *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "retCode", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_EndModal",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->EndModal(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * Dialog_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxDialog, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_MiniFrame(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxDEFAULT_FRAME_STYLE ; - wxString const &arg7_defvalue = wxPyFrameNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - wxMiniFrame *result; - bool temp3 = False ; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_MiniFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int const) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMiniFrame *)new wxMiniFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMiniFrame, 1); - { - if (temp3) - delete arg3; - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_new_PreMiniFrame(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMiniFrame *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMiniFrame",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMiniFrame *)new wxMiniFrame(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMiniFrame, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MiniFrame_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMiniFrame *arg1 = (wxMiniFrame *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - wxString *arg4 = 0 ; - wxPoint const &arg5_defvalue = wxDefaultPosition ; - wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; - wxSize const &arg6_defvalue = wxDefaultSize ; - wxSize *arg6 = (wxSize *) &arg6_defvalue ; - long arg7 = (long) wxDEFAULT_FRAME_STYLE ; - wxString const &arg8_defvalue = wxPyFrameNameStr ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - bool result; - bool temp4 = False ; - wxPoint temp5 ; - wxSize temp6 ; - bool temp8 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:MiniFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMiniFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int const) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - { - arg6 = &temp6; - if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; - } - } - if (obj6) { - arg7 = (long) SWIG_AsLong(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp4) - delete arg4; - } - { - if (temp8) - delete arg8; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - { - if (temp8) - delete arg8; - } - return NULL; -} - - -static PyObject * MiniFrame_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxMiniFrame, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_SplashScreenWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxNO_BORDER ; - wxSplashScreenWindow *result; - wxPoint temp4 ; - wxSize temp5 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "bitmap",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_SplashScreenWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSplashScreenWindow *)new wxSplashScreenWindow((wxBitmap const &)*arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplashScreenWindow, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplashScreenWindow_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplashScreenWindow *arg1 = (wxSplashScreenWindow *) 0 ; - wxBitmap *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bitmap", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplashScreenWindow_SetBitmap",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreenWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetBitmap((wxBitmap const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplashScreenWindow_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplashScreenWindow *arg1 = (wxSplashScreenWindow *) 0 ; - wxBitmap *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreenWindow_GetBitmap",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreenWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxBitmap &_result_ref = (arg1)->GetBitmap(); - result = (wxBitmap *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxBitmap* resultptr = new wxBitmap(*result); - resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * SplashScreenWindow_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxSplashScreenWindow, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_SplashScreen(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxBitmap *arg1 = 0 ; - long arg2 ; - int arg3 ; - wxWindow *arg4 = (wxWindow *) 0 ; - int arg5 ; - wxPoint const &arg6_defvalue = wxDefaultPosition ; - wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; - wxSize const &arg7_defvalue = wxDefaultSize ; - wxSize *arg7 = (wxSize *) &arg7_defvalue ; - long arg8 = (long) wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP ; - wxSplashScreen *result; - wxPoint temp6 ; - wxSize temp7 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "bitmap",(char *) "splashStyle",(char *) "milliseconds",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:new_SplashScreen",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - if (obj5) { - { - arg6 = &temp6; - if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; - } - } - if (obj6) { - { - arg7 = &temp7; - if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; - } - } - if (obj7) { - arg8 = (long) SWIG_AsLong(obj7); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSplashScreen *)new wxSplashScreen((wxBitmap const &)*arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplashScreen, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplashScreen_GetSplashStyle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreen_GetSplashStyle",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxSplashScreen const *)arg1)->GetSplashStyle(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplashScreen_GetSplashWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; - wxSplashScreenWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreen_GetSplashWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSplashScreenWindow *)((wxSplashScreen const *)arg1)->GetSplashWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplashScreenWindow, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplashScreen_GetTimeout(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreen_GetTimeout",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreen, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSplashScreen const *)arg1)->GetTimeout(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * SplashScreen_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxSplashScreen, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_StatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) -1 ; - long arg3 = (long) wxST_SIZEGRIP ; - wxString const &arg4_defvalue = wxPyStatusLineNameStr ; - wxString *arg4 = (wxString *) &arg4_defvalue ; - wxStatusBar *result; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_StatusBar",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxStatusBar *)new wxStatusBar(arg1,arg2,arg3,(wxString const &)*arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_new_PreStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStatusBar *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStatusBar",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxStatusBar *)new wxStatusBar(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_StatusBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStatusBar *arg1 = (wxStatusBar *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - long arg4 = (long) wxST_SIZEGRIP ; - wxString const &arg5_defvalue = wxPyStatusLineNameStr ; - wxString *arg5 = (wxString *) &arg5_defvalue ; - bool result; - bool temp5 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:StatusBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - arg4 = (long) SWIG_AsLong(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj4) { - { - arg5 = wxString_in_helper(obj4); - if (arg5 == NULL) SWIG_fail; - temp5 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxString const &)*arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp5) - delete arg5; - } - return resultobj; - fail: - { - if (temp5) - delete arg5; - } - return NULL; -} - - -static PyObject *_wrap_StatusBar_SetFieldsCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStatusBar *arg1 = (wxStatusBar *) 0 ; - int arg2 = (int) 1 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "number", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_SetFieldsCount",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFieldsCount(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_StatusBar_GetFieldsCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStatusBar *arg1 = (wxStatusBar *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StatusBar_GetFieldsCount",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxStatusBar const *)arg1)->GetFieldsCount(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_StatusBar_SetStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStatusBar *arg1 = (wxStatusBar *) 0 ; - wxString *arg2 = 0 ; - int arg3 = (int) 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "text",(char *) "number", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:StatusBar_SetStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetStatusText((wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_StatusBar_GetStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStatusBar *arg1 = (wxStatusBar *) 0 ; - int arg2 = (int) 0 ; - wxString result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "number", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_GetStatusText",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxStatusBar const *)arg1)->GetStatusText(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_StatusBar_PushStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStatusBar *arg1 = (wxStatusBar *) 0 ; - wxString *arg2 = 0 ; - int arg3 = (int) 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "text",(char *) "number", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:StatusBar_PushStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->PushStatusText((wxString const &)*arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_StatusBar_PopStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStatusBar *arg1 = (wxStatusBar *) 0 ; - int arg2 = (int) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "number", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_PopStatusText",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->PopStatusText(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_StatusBar_SetStatusWidths(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStatusBar *arg1 = (wxStatusBar *) 0 ; - int arg2 ; - int *arg3 = (int *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "widths", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_SetStatusWidths",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = PyList_Size(obj1); - arg3 = int_LIST_helper(obj1); - if (arg3 == NULL) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetStatusWidths(arg2,(int const *)arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (arg3) delete [] arg3; - } - return resultobj; - fail: - { - if (arg3) delete [] arg3; - } - return NULL; -} - - -static PyObject *_wrap_StatusBar_GetFieldRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStatusBar *arg1 = (wxStatusBar *) 0 ; - int arg2 ; - wxRect result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "i", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_GetFieldRect",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = wxStatusBar_GetFieldRect(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxRect * resultptr; - resultptr = new wxRect((wxRect &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_StatusBar_SetMinHeight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStatusBar *arg1 = (wxStatusBar *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_SetMinHeight",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMinHeight(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_StatusBar_GetBorderX(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStatusBar *arg1 = (wxStatusBar *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StatusBar_GetBorderX",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxStatusBar const *)arg1)->GetBorderX(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_StatusBar_GetBorderY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxStatusBar *arg1 = (wxStatusBar *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StatusBar_GetBorderY",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxStatusBar const *)arg1)->GetBorderY(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * StatusBar_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxStatusBar, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_SplitterNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable SplitterNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_SplitterNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPySplitterNameStr)->c_str(), (&wxPySplitterNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPySplitterNameStr)->c_str(), (&wxPySplitterNameStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_SplitterWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) -1 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) wxSP_3D ; - wxString const &arg6_defvalue = wxPySplitterNameStr ; - wxString *arg6 = (wxString *) &arg6_defvalue ; - wxSplitterWindow *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp6 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SplitterWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - { - arg6 = wxString_in_helper(obj5); - if (arg6 == NULL) SWIG_fail; - temp6 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSplitterWindow *)new wxSplitterWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplitterWindow, 1); - { - if (temp6) - delete arg6; - } - return resultobj; - fail: - { - if (temp6) - delete arg6; - } - return NULL; -} - - -static PyObject *_wrap_new_PreSplitterWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSplitterWindow",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSplitterWindow *)new wxSplitterWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplitterWindow, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 = (int) -1 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxSP_3D ; - wxString const &arg7_defvalue = wxPySplitterNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - bool result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SplitterWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_SplitterWindow_GetWindow1(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetWindow1",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)((wxSplitterWindow const *)arg1)->GetWindow1(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterWindow_GetWindow2(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetWindow2",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)((wxSplitterWindow const *)arg1)->GetWindow2(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterWindow_SetSplitMode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "mode", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetSplitMode",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSplitMode(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterWindow_GetSplitMode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetSplitMode",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSplitterWindow const *)arg1)->GetSplitMode(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterWindow_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "window", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_Initialize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Initialize(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterWindow_SplitVertically(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - wxWindow *arg3 = (wxWindow *) 0 ; - int arg4 = (int) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "window1",(char *) "window2",(char *) "sashPosition", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SplitVertically",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SplitVertically(arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterWindow_SplitHorizontally(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - wxWindow *arg3 = (wxWindow *) 0 ; - int arg4 = (int) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "window1",(char *) "window2",(char *) "sashPosition", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SplitHorizontally",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SplitHorizontally(arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterWindow_Unsplit(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; - wxWindow *arg2 = (wxWindow *) NULL ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "toRemove", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:SplitterWindow_Unsplit",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Unsplit(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterWindow_ReplaceWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - wxWindow *arg3 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "winOld",(char *) "winNew", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SplitterWindow_ReplaceWindow",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->ReplaceWindow(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterWindow_UpdateSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_UpdateSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->UpdateSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterWindow_IsSplit(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_IsSplit",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxSplitterWindow const *)arg1)->IsSplit(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterWindow_SetSashSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "width", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetSashSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSashSize(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterWindow_SetBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "width", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetBorderSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetBorderSize(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterWindow_GetSashSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetSashSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSplitterWindow const *)arg1)->GetSashSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterWindow_GetBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetBorderSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSplitterWindow const *)arg1)->GetBorderSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterWindow_SetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; - int arg2 ; - bool arg3 = (bool) True ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "position",(char *) "redraw", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SplitterWindow_SetSashPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSashPosition(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterWindow_GetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetSashPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSplitterWindow const *)arg1)->GetSashPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterWindow_SetMinimumPaneSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "min", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetMinimumPaneSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMinimumPaneSize(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterWindow_GetMinimumPaneSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetMinimumPaneSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSplitterWindow const *)arg1)->GetMinimumPaneSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterWindow_SashHitTest(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; - int arg2 ; - int arg3 ; - int arg4 = (int) 5 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "tolerance", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SashHitTest",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SashHitTest(arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterWindow_SizeWindows(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_SizeWindows",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SizeWindows(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterWindow_SetNeedUpdating(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "needUpdating", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetNeedUpdating",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetNeedUpdating(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterWindow_GetNeedUpdating(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetNeedUpdating",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxSplitterWindow const *)arg1)->GetNeedUpdating(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * SplitterWindow_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxSplitterWindow, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_SplitterEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEventType arg1 = (wxEventType) wxEVT_NULL ; - wxSplitterWindow *arg2 = (wxSplitterWindow *) (wxSplitterWindow *) NULL ; - wxSplitterEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "type",(char *) "splitter", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SplitterEvent",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (wxEventType) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSplitterWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSplitterEvent *)new wxSplitterEvent(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplitterEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterEvent_SetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterEvent_SetSashPosition",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSashPosition(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterEvent_GetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterEvent_GetSashPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSplitterEvent const *)arg1)->GetSashPosition(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterEvent_GetWindowBeingRemoved(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterEvent_GetWindowBeingRemoved",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)((wxSplitterEvent const *)arg1)->GetWindowBeingRemoved(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterEvent_GetX",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSplitterEvent const *)arg1)->GetX(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SplitterEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterEvent_GetY",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSplitterEvent const *)arg1)->GetY(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * SplitterEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxSplitterEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_SashNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable SashNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_SashNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPySashNameStr)->c_str(), (&wxPySashNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPySashNameStr)->c_str(), (&wxPySashNameStr)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_SashLayoutNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable SashLayoutNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_SashLayoutNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPySashLayoutNameStr)->c_str(), (&wxPySashLayoutNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPySashLayoutNameStr)->c_str(), (&wxPySashLayoutNameStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_SashWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) wxCLIP_CHILDREN|wxSW_3D ; - wxString const &arg6_defvalue = wxPySashNameStr ; - wxString *arg6 = (wxString *) &arg6_defvalue ; - wxSashWindow *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp6 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_SashWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - { - arg6 = wxString_in_helper(obj5); - if (arg6 == NULL) SWIG_fail; - temp6 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSashWindow *)new wxSashWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashWindow, 1); - { - if (temp6) - delete arg6; - } - return resultobj; - fail: - { - if (temp6) - delete arg6; - } - return NULL; -} - - -static PyObject *_wrap_new_PreSashWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashWindow *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSashWindow",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSashWindow *)new wxSashWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashWindow, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashWindow *arg1 = (wxSashWindow *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxCLIP_CHILDREN|wxSW_3D ; - wxString const &arg7_defvalue = wxPySashNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - bool result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:SashWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_SashWindow_SetSashVisible(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashWindow *arg1 = (wxSashWindow *) 0 ; - int arg2 ; - bool arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "edge",(char *) "sash", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SashWindow_SetSashVisible",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSashVisible((wxSashEdgePosition )arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashWindow_GetSashVisible(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashWindow *arg1 = (wxSashWindow *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "edge", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_GetSashVisible",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxSashWindow const *)arg1)->GetSashVisible((wxSashEdgePosition )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashWindow_SetSashBorder(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashWindow *arg1 = (wxSashWindow *) 0 ; - int arg2 ; - bool arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "edge",(char *) "border", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SashWindow_SetSashBorder",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSashBorder((wxSashEdgePosition )arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashWindow_HasBorder(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashWindow *arg1 = (wxSashWindow *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "edge", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_HasBorder",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxSashWindow const *)arg1)->HasBorder((wxSashEdgePosition )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashWindow_GetEdgeMargin(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashWindow *arg1 = (wxSashWindow *) 0 ; - int arg2 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "edge", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_GetEdgeMargin",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSashWindow const *)arg1)->GetEdgeMargin((wxSashEdgePosition )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashWindow_SetDefaultBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashWindow *arg1 = (wxSashWindow *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "width", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetDefaultBorderSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDefaultBorderSize(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashWindow_GetDefaultBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashWindow *arg1 = (wxSashWindow *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetDefaultBorderSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSashWindow const *)arg1)->GetDefaultBorderSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashWindow_SetExtraBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashWindow *arg1 = (wxSashWindow *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "width", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetExtraBorderSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetExtraBorderSize(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashWindow_GetExtraBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashWindow *arg1 = (wxSashWindow *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetExtraBorderSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSashWindow const *)arg1)->GetExtraBorderSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashWindow_SetMinimumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashWindow *arg1 = (wxSashWindow *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "min", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMinimumSizeX",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMinimumSizeX(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashWindow_SetMinimumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashWindow *arg1 = (wxSashWindow *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "min", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMinimumSizeY",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMinimumSizeY(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashWindow_GetMinimumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashWindow *arg1 = (wxSashWindow *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetMinimumSizeX",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSashWindow const *)arg1)->GetMinimumSizeX(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashWindow_GetMinimumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashWindow *arg1 = (wxSashWindow *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetMinimumSizeY",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSashWindow const *)arg1)->GetMinimumSizeY(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashWindow_SetMaximumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashWindow *arg1 = (wxSashWindow *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "max", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMaximumSizeX",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMaximumSizeX(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashWindow_SetMaximumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashWindow *arg1 = (wxSashWindow *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "max", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMaximumSizeY",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMaximumSizeY(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashWindow_GetMaximumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashWindow *arg1 = (wxSashWindow *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetMaximumSizeX",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSashWindow const *)arg1)->GetMaximumSizeX(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashWindow_GetMaximumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashWindow *arg1 = (wxSashWindow *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetMaximumSizeY",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSashWindow const *)arg1)->GetMaximumSizeY(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashWindow_SashHitTest(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashWindow *arg1 = (wxSashWindow *) 0 ; - int arg2 ; - int arg3 ; - int arg4 = (int) 2 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "tolerance", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SashWindow_SashHitTest",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->SashHitTest(arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashWindow_SizeWindows(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashWindow *arg1 = (wxSashWindow *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_SizeWindows",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SizeWindows(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * SashWindow_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxSashWindow, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_SashEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - int arg2 = (int) wxSASH_NONE ; - wxSashEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "id",(char *) "edge", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SashEvent",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSashEvent *)new wxSashEvent(arg1,(wxSashEdgePosition )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashEvent_SetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashEvent *arg1 = (wxSashEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "edge", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetEdge",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetEdge((wxSashEdgePosition )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashEvent_GetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashEvent *arg1 = (wxSashEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashEvent_GetEdge",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSashEvent const *)arg1)->GetEdge(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashEvent_SetDragRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashEvent *arg1 = (wxSashEvent *) 0 ; - wxRect *arg2 = 0 ; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetDragRect",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDragRect((wxRect const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashEvent_GetDragRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashEvent *arg1 = (wxSashEvent *) 0 ; - wxRect result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashEvent_GetDragRect",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxSashEvent const *)arg1)->GetDragRect(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxRect * resultptr; - resultptr = new wxRect((wxRect &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashEvent_SetDragStatus(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashEvent *arg1 = (wxSashEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "status", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetDragStatus",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxSashDragStatus) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDragStatus((wxSashDragStatus )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashEvent_GetDragStatus(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashEvent *arg1 = (wxSashEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashEvent_GetDragStatus",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxSashEvent const *)arg1)->GetDragStatus(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * SashEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxSashEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_QueryLayoutInfoEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - wxQueryLayoutInfoEvent *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryLayoutInfoEvent",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxQueryLayoutInfoEvent *)new wxQueryLayoutInfoEvent(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxQueryLayoutInfoEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_QueryLayoutInfoEvent_SetRequestedLength(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "length", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetRequestedLength",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetRequestedLength(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_QueryLayoutInfoEvent_GetRequestedLength(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetRequestedLength",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetRequestedLength(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_QueryLayoutInfoEvent_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFlags(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_QueryLayoutInfoEvent_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetFlags",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetFlags(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_QueryLayoutInfoEvent_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; - wxSize *arg2 = 0 ; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSize((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_QueryLayoutInfoEvent_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxQueryLayoutInfoEvent const *)arg1)->GetSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_QueryLayoutInfoEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "orient", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxLayoutOrientation) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetOrientation((wxLayoutOrientation )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_QueryLayoutInfoEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetOrientation",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetOrientation(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_QueryLayoutInfoEvent_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "align", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetAlignment",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxLayoutAlignment) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetAlignment((wxLayoutAlignment )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_QueryLayoutInfoEvent_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetAlignment",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetAlignment(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * QueryLayoutInfoEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxQueryLayoutInfoEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_CalculateLayoutEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - wxCalculateLayoutEvent *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CalculateLayoutEvent",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxCalculateLayoutEvent *)new wxCalculateLayoutEvent(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCalculateLayoutEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CalculateLayoutEvent_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalculateLayoutEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalculateLayoutEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFlags(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CalculateLayoutEvent_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalculateLayoutEvent_GetFlags",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalculateLayoutEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxCalculateLayoutEvent const *)arg1)->GetFlags(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CalculateLayoutEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; - wxRect *arg2 = 0 ; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalculateLayoutEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalculateLayoutEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetRect((wxRect const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_CalculateLayoutEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; - wxRect result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalculateLayoutEvent_GetRect",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalculateLayoutEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxCalculateLayoutEvent const *)arg1)->GetRect(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxRect * resultptr; - resultptr = new wxRect((wxRect &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * CalculateLayoutEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxCalculateLayoutEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_SashLayoutWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) wxCLIP_CHILDREN|wxSW_3D ; - wxString const &arg6_defvalue = wxPySashLayoutNameStr ; - wxString *arg6 = (wxString *) &arg6_defvalue ; - wxSashLayoutWindow *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp6 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_SashLayoutWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - { - arg6 = wxString_in_helper(obj5); - if (arg6 == NULL) SWIG_fail; - temp6 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSashLayoutWindow *)new wxSashLayoutWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashLayoutWindow, 1); - { - if (temp6) - delete arg6; - } - return resultobj; - fail: - { - if (temp6) - delete arg6; - } - return NULL; -} - - -static PyObject *_wrap_new_PreSashLayoutWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashLayoutWindow *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSashLayoutWindow",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSashLayoutWindow *)new wxSashLayoutWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashLayoutWindow, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashLayoutWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxCLIP_CHILDREN|wxSW_3D ; - wxString const &arg7_defvalue = wxPySashLayoutNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - bool result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:SashLayoutWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_SashLayoutWindow_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashLayoutWindow_GetAlignment",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetAlignment(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashLayoutWindow_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashLayoutWindow_GetOrientation",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetOrientation(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashLayoutWindow_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "alignment", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetAlignment",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxLayoutAlignment) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetAlignment((wxLayoutAlignment )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashLayoutWindow_SetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; - wxSize *arg2 = 0 ; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetDefaultSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDefaultSize((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SashLayoutWindow_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "orientation", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetOrientation",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxLayoutOrientation) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetOrientation((wxLayoutOrientation )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * SashLayoutWindow_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxSashLayoutWindow, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_LayoutAlgorithm(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLayoutAlgorithm *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutAlgorithm",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxLayoutAlgorithm *)new wxLayoutAlgorithm(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutAlgorithm, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_LayoutAlgorithm(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LayoutAlgorithm",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutAlgorithm, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_LayoutAlgorithm_LayoutMDIFrame(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; - wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; - wxRect *arg3 = (wxRect *) NULL ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "frame",(char *) "rect", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutMDIFrame",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutAlgorithm, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMDIParentFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->LayoutMDIFrame(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_LayoutAlgorithm_LayoutFrame(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; - wxFrame *arg2 = (wxFrame *) 0 ; - wxWindow *arg3 = (wxWindow *) NULL ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "frame",(char *) "mainWindow", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutFrame",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutAlgorithm, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->LayoutFrame(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_LayoutAlgorithm_LayoutWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - wxWindow *arg3 = (wxWindow *) NULL ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "mainWindow", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutWindow",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutAlgorithm, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->LayoutWindow(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * LayoutAlgorithm_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxLayoutAlgorithm, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PopupWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) wxBORDER_NONE ; - wxPopupWindow *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PopupWindow",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPopupWindow *)new wxPopupWindow(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPopupWindow, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_PrePopupWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPopupWindow *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePopupWindow",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPopupWindow *)new wxPopupWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPopupWindow, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PopupWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPopupWindow *arg1 = (wxPopupWindow *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 = (int) wxBORDER_NONE ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PopupWindow_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPopupWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PopupWindow_Position(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPopupWindow *arg1 = (wxPopupWindow *) 0 ; - wxPoint *arg2 = 0 ; - wxSize *arg3 = 0 ; - wxPoint temp2 ; - wxSize temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "ptOrigin",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PopupWindow_Position",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPopupWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - arg3 = &temp3; - if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Position((wxPoint const &)*arg2,(wxSize const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * PopupWindow_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPopupWindow, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PopupTransientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) wxBORDER_NONE ; - wxPyPopupTransientWindow *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PopupTransientWindow",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyPopupTransientWindow *)new wxPyPopupTransientWindow(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPopupTransientWindow, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_PrePopupTransientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPopupTransientWindow *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePopupTransientWindow",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyPopupTransientWindow *)new wxPyPopupTransientWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPopupTransientWindow, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PopupTransientWindow__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPopupTransientWindow *arg1 = (wxPyPopupTransientWindow *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PopupTransientWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPopupTransientWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PopupTransientWindow_Popup(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPopupTransientWindow *arg1 = (wxPyPopupTransientWindow *) 0 ; - wxWindow *arg2 = (wxWindow *) NULL ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "focus", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PopupTransientWindow_Popup",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPopupTransientWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Popup(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PopupTransientWindow_Dismiss(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPopupTransientWindow *arg1 = (wxPyPopupTransientWindow *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PopupTransientWindow_Dismiss",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPopupTransientWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Dismiss(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * PopupTransientWindow_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyPopupTransientWindow, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_TipWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxString *arg2 = 0 ; - int arg3 = (int) 100 ; - wxRect *arg4 = (wxRect *) NULL ; - wxTipWindow *result; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "text",(char *) "maxLength",(char *) "rectBound", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_TipWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxRect, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxTipWindow *)new_wxTipWindow(arg1,(wxString const &)*arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipWindow, 1); - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_TipWindow_SetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTipWindow *arg1 = (wxTipWindow *) 0 ; - wxRect *arg2 = 0 ; - wxRect temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "rectBound", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipWindow_SetBoundingRect",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetBoundingRect((wxRect const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TipWindow_Close(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTipWindow *arg1 = (wxTipWindow *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipWindow_Close",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Close(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * TipWindow_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxTipWindow, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_VScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) wxID_ANY ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) 0 ; - wxString const &arg6_defvalue = wxPyPanelNameStr ; - wxString *arg6 = (wxString *) &arg6_defvalue ; - wxPyVScrolledWindow *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp6 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_VScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - { - arg6 = wxString_in_helper(obj5); - if (arg6 == NULL) SWIG_fail; - temp6 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyVScrolledWindow *)new wxPyVScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyVScrolledWindow, 1); - { - if (temp6) - delete arg6; - } - return resultobj; - fail: - { - if (temp6) - delete arg6; - } - return NULL; -} - - -static PyObject *_wrap_new_PreVScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVScrolledWindow *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreVScrolledWindow",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyVScrolledWindow *)new wxPyVScrolledWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyVScrolledWindow, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VScrolledWindow__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VScrolledWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 = (int) wxID_ANY ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) 0 ; - wxString const &arg7_defvalue = wxPyPanelNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - bool result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:VScrolledWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_VScrolledWindow_SetLineCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; - size_t arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "count", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_SetLineCount",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetLineCount(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VScrolledWindow_ScrollToLine(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; - size_t arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "line", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_ScrollToLine",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->ScrollToLine(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VScrolledWindow_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "lines", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_ScrollLines",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->ScrollLines(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VScrolledWindow_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pages", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_ScrollPages",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->ScrollPages(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VScrolledWindow_RefreshLine(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; - size_t arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "line", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_RefreshLine",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RefreshLine(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VScrolledWindow_RefreshLines(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; - size_t arg2 ; - size_t arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "from",(char *) "to", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow_RefreshLines",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (size_t) SWIG_AsUnsignedLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RefreshLines(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VScrolledWindow_HitTestXT(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; - int arg2 ; - int arg3 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow_HitTestXT",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxPyVScrolledWindow const *)arg1)->HitTest(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VScrolledWindow_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; - wxPoint *arg2 = 0 ; - int result; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_HitTest",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxPyVScrolledWindow const *)arg1)->HitTest((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VScrolledWindow_RefreshAll(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VScrolledWindow_RefreshAll",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RefreshAll(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VScrolledWindow_GetLineCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; - size_t result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VScrolledWindow_GetLineCount",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetLineCount(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VScrolledWindow_GetFirstVisibleLine(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; - size_t result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VScrolledWindow_GetFirstVisibleLine",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetFirstVisibleLine(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VScrolledWindow_GetLastVisibleLine(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; - size_t result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VScrolledWindow_GetLastVisibleLine",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetLastVisibleLine(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VScrolledWindow_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; - size_t arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "line", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_IsVisible",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyVScrolledWindow const *)arg1)->IsVisible(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * VScrolledWindow_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyVScrolledWindow, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_VListBoxNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable VListBoxNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_VListBoxNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyVListBoxNameStr)->c_str(), (&wxPyVListBoxNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyVListBoxNameStr)->c_str(), (&wxPyVListBoxNameStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_VListBox(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) wxID_ANY ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) 0 ; - wxString const &arg6_defvalue = wxPyVListBoxNameStr ; - wxString *arg6 = (wxString *) &arg6_defvalue ; - wxPyVListBox *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp6 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_VListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - { - arg6 = wxString_in_helper(obj5); - if (arg6 == NULL) SWIG_fail; - temp6 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyVListBox *)new wxPyVListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyVListBox, 1); - { - if (temp6) - delete arg6; - } - return resultobj; - fail: - { - if (temp6) - delete arg6; - } - return NULL; -} - - -static PyObject *_wrap_new_PreVListBox(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVListBox *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreVListBox",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyVListBox *)new wxPyVListBox(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyVListBox, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VListBox__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 = (int) wxID_ANY ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) 0 ; - wxString const &arg7_defvalue = wxPyVListBoxNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - bool result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:VListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_VListBox_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; - size_t result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetItemCount",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (size_t)((wxPyVListBox const *)arg1)->GetItemCount(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VListBox_HasMultipleSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_HasMultipleSelection",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyVListBox const *)arg1)->HasMultipleSelection(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VListBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetSelection",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxPyVListBox const *)arg1)->GetSelection(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VListBox_IsCurrent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; - size_t arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_IsCurrent",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyVListBox const *)arg1)->IsCurrent(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; - size_t arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyVListBox const *)arg1)->IsSelected(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VListBox_GetSelectedCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; - size_t result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetSelectedCount",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (size_t)((wxPyVListBox const *)arg1)->GetSelectedCount(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromUnsignedLong((unsigned long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VListBox_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; - unsigned long *arg2 = 0 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "cookie", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_GetFirstSelected",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_long, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxPyVListBox const *)arg1)->GetFirstSelected(*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VListBox_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; - unsigned long *arg2 = 0 ; - int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "cookie", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_GetNextSelected",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_long, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxPyVListBox const *)arg1)->GetNextSelected(*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VListBox_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetMargins",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyVListBox const *)arg1)->GetMargins(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VListBox_GetSelectionBackground(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; - wxColour *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetSelectionBackground",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxColour const &_result_ref = ((wxPyVListBox const *)arg1)->GetSelectionBackground(); - result = (wxColour *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VListBox_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; - size_t arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "count", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetItemCount",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetItemCount(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VListBox_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_Clear",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Clear(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "selection", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSelection(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VListBox_Select(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; - size_t arg2 ; - bool arg3 = (bool) True ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item",(char *) "select", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:VListBox_Select",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - arg3 = (bool) SWIG_AsBool(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Select(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VListBox_SelectRange(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; - size_t arg2 ; - size_t arg3 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "from",(char *) "to", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox_SelectRange",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (size_t) SWIG_AsUnsignedLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SelectRange(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VListBox_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; - size_t arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "item", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_Toggle",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Toggle(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VListBox_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_SelectAll",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SelectAll(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VListBox_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_DeselectAll",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->DeselectAll(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VListBox_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetMargins",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMargins((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VListBox_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMargins(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_VListBox_SetSelectionBackground(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "col", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetSelectionBackground",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSelectionBackground((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * VListBox_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyVListBox, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_HtmlListBox(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 = (int) wxID_ANY ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) 0 ; - wxString const &arg6_defvalue = wxPyVListBoxNameStr ; - wxString *arg6 = (wxString *) &arg6_defvalue ; - wxPyHtmlListBox *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp6 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_HtmlListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - { - arg6 = wxString_in_helper(obj5); - if (arg6 == NULL) SWIG_fail; - temp6 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyHtmlListBox *)new wxPyHtmlListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyHtmlListBox, 1); - { - if (temp6) - delete arg6; - } - return resultobj; - fail: - { - if (temp6) - delete arg6; - } - return NULL; -} - - -static PyObject *_wrap_new_PreHtmlListBox(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyHtmlListBox *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreHtmlListBox",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyHtmlListBox *)new wxPyHtmlListBox(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyHtmlListBox, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_HtmlListBox__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HtmlListBox__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyHtmlListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_HtmlListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 = (int) wxID_ANY ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) 0 ; - wxString const &arg7_defvalue = wxPyVListBoxNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - bool result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:HtmlListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyHtmlListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_HtmlListBox_RefreshAll(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HtmlListBox_RefreshAll",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyHtmlListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->RefreshAll(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_HtmlListBox_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; - size_t arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "count", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HtmlListBox_SetItemCount",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyHtmlListBox, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (size_t) SWIG_AsUnsignedLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetItemCount(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * HtmlListBox_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyHtmlListBox, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_TaskBarIcon(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTaskBarIcon *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TaskBarIcon",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxTaskBarIcon *)new wxTaskBarIcon(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTaskBarIcon, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_TaskBarIcon(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TaskBarIcon",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTaskBarIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TaskBarIcon_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TaskBarIcon_Destroy",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTaskBarIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxTaskBarIcon_Destroy(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TaskBarIcon_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TaskBarIcon_IsOk",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTaskBarIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTaskBarIcon const *)arg1)->IsOk(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TaskBarIcon_IsIconInstalled(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TaskBarIcon_IsIconInstalled",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTaskBarIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxTaskBarIcon const *)arg1)->IsIconInstalled(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TaskBarIcon_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; - wxIcon *arg2 = 0 ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - bool result; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "icon",(char *) "tooltip", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TaskBarIcon_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTaskBarIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetIcon((wxIcon const &)*arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_TaskBarIcon_RemoveIcon(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TaskBarIcon_RemoveIcon",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTaskBarIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->RemoveIcon(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TaskBarIcon_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; - wxMenu *arg2 = (wxMenu *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "menu", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TaskBarIcon_PopupMenu",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTaskBarIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->PopupMenu(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * TaskBarIcon_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxTaskBarIcon, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_TaskBarIconEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEventType arg1 ; - wxTaskBarIcon *arg2 = (wxTaskBarIcon *) 0 ; - wxTaskBarIconEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "evtType",(char *) "tbIcon", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_TaskBarIconEvent",kwnames,&obj0,&obj1)) goto fail; - arg1 = (wxEventType) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTaskBarIcon, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxTaskBarIconEvent *)new wxTaskBarIconEvent(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTaskBarIconEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject * TaskBarIconEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxTaskBarIconEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_FileSelectorPromptStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only."); - return 1; -} - - -static PyObject *_wrap_FileSelectorPromptStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_DirSelectorPromptStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only."); - return 1; -} - - -static PyObject *_wrap_DirSelectorPromptStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_DirDialogNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable DirDialogNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_DirDialogNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyDirDialogNameStr)->c_str(), (&wxPyDirDialogNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyDirDialogNameStr)->c_str(), (&wxPyDirDialogNameStr)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only."); - return 1; -} - - -static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_GetTextFromUserPromptStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable GetTextFromUserPromptStr is read-only."); - return 1; -} - - -static PyObject *_wrap_GetTextFromUserPromptStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyGetTextFromUserPromptStr)->c_str(), (&wxPyGetTextFromUserPromptStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyGetTextFromUserPromptStr)->c_str(), (&wxPyGetTextFromUserPromptStr)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_MessageBoxCaptionStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable MessageBoxCaptionStr is read-only."); - return 1; -} - - -static PyObject *_wrap_MessageBoxCaptionStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyMessageBoxCaptionStr)->c_str(), (&wxPyMessageBoxCaptionStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyMessageBoxCaptionStr)->c_str(), (&wxPyMessageBoxCaptionStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_ColourData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColourData *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourData",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxColourData *)new wxColourData(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourData, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_ColourData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColourData *arg1 = (wxColourData *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ColourData_GetChooseFull(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColourData *arg1 = (wxColourData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ColourData_GetChooseFull",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetChooseFull(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ColourData_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColourData *arg1 = (wxColourData *) 0 ; - wxColour result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ColourData_GetColour",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetColour(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ColourData_GetCustomColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColourData *arg1 = (wxColourData *) 0 ; - int arg2 ; - wxColour result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "i", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_GetCustomColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetCustomColour(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ColourData_SetChooseFull(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColourData *arg1 = (wxColourData *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_SetChooseFull",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetChooseFull(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ColourData_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColourData *arg1 = (wxColourData *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colour", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_SetColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetColour((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ColourData_SetCustomColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColourData *arg1 = (wxColourData *) 0 ; - int arg2 ; - wxColour *arg3 = 0 ; - wxColour temp3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "i",(char *) "colour", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourData_SetCustomColour",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = &temp3; - if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetCustomColour(arg2,(wxColour const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * ColourData_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxColourData, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ColourDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxColourData *arg2 = (wxColourData *) NULL ; - wxColourDialog *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_ColourDialog",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColourData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxColourDialog *)new wxColourDialog(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDialog, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_ColourDialog_GetColourData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxColourDialog *arg1 = (wxColourDialog *) 0 ; - wxColourData *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ColourDialog_GetColourData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxColourData &_result_ref = (arg1)->GetColourData(); - result = (wxColourData *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourData, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject * ColourDialog_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxColourDialog, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_DirDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxString const &arg2_defvalue = wxPyDirSelectorPromptStr ; - wxString *arg2 = (wxString *) &arg2_defvalue ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - long arg4 = (long) 0 ; - wxPoint const &arg5_defvalue = wxDefaultPosition ; - wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; - wxSize const &arg6_defvalue = wxDefaultSize ; - wxSize *arg6 = (wxSize *) &arg6_defvalue ; - wxString const &arg7_defvalue = wxPyDirDialogNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - wxDirDialog *result; - bool temp2 = False ; - bool temp3 = False ; - wxPoint temp5 ; - wxSize temp6 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "size",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DirDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - if (obj3) { - arg4 = (long) SWIG_AsLong(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - { - arg6 = &temp6; - if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; - } - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxDirDialog *)new wxDirDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirDialog, 1); - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_DirDialog_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDirDialog *arg1 = (wxDirDialog *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DirDialog_GetPath",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetPath(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DirDialog_GetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDirDialog *arg1 = (wxDirDialog *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DirDialog_GetMessage",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetMessage(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DirDialog_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDirDialog *arg1 = (wxDirDialog *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DirDialog_GetStyle",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->GetStyle(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_DirDialog_SetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDirDialog *arg1 = (wxDirDialog *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "message", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirDialog_SetMessage",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMessage((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_DirDialog_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxDirDialog *arg1 = (wxDirDialog *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "path", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirDialog_SetPath",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPath((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject * DirDialog_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxDirDialog, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_FileDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxString const &arg2_defvalue = wxPyFileSelectorPromptStr ; - wxString *arg2 = (wxString *) &arg2_defvalue ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - wxString const &arg4_defvalue = wxPyEmptyString ; - wxString *arg4 = (wxString *) &arg4_defvalue ; - wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; - wxString *arg5 = (wxString *) &arg5_defvalue ; - long arg6 = (long) 0 ; - wxPoint const &arg7_defvalue = wxDefaultPosition ; - wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; - wxFileDialog *result; - bool temp2 = False ; - bool temp3 = False ; - bool temp4 = False ; - bool temp5 = False ; - wxPoint temp7 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "message",(char *) "defaultDir",(char *) "defaultFile",(char *) "wildcard",(char *) "style",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_FileDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - if (obj3) { - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - } - if (obj4) { - { - arg5 = wxString_in_helper(obj4); - if (arg5 == NULL) SWIG_fail; - temp5 = True; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = &temp7; - if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFileDialog *)new wxFileDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,(wxPoint const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDialog, 1); - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - { - if (temp5) - delete arg5; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - { - if (temp5) - delete arg5; - } - return NULL; -} - - -static PyObject *_wrap_FileDialog_SetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileDialog *arg1 = (wxFileDialog *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "message", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetMessage",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMessage((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_FileDialog_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileDialog *arg1 = (wxFileDialog *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "path", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetPath",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPath((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_FileDialog_SetDirectory(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileDialog *arg1 = (wxFileDialog *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "dir", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetDirectory",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDirectory((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_FileDialog_SetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileDialog *arg1 = (wxFileDialog *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetFilename",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFilename((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_FileDialog_SetWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileDialog *arg1 = (wxFileDialog *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "wildCard", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetWildcard",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetWildcard((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_FileDialog_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileDialog *arg1 = (wxFileDialog *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetStyle",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetStyle(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileDialog_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileDialog *arg1 = (wxFileDialog *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "filterIndex", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFilterIndex(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileDialog_GetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileDialog *arg1 = (wxFileDialog *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetMessage",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxFileDialog const *)arg1)->GetMessage(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileDialog_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileDialog *arg1 = (wxFileDialog *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetPath",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxFileDialog const *)arg1)->GetPath(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileDialog_GetDirectory(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileDialog *arg1 = (wxFileDialog *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetDirectory",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxFileDialog const *)arg1)->GetDirectory(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileDialog_GetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileDialog *arg1 = (wxFileDialog *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetFilename",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxFileDialog const *)arg1)->GetFilename(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileDialog_GetWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileDialog *arg1 = (wxFileDialog *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetWildcard",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxFileDialog const *)arg1)->GetWildcard(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileDialog_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileDialog *arg1 = (wxFileDialog *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetStyle",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)((wxFileDialog const *)arg1)->GetStyle(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileDialog_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileDialog *arg1 = (wxFileDialog *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetFilterIndex",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxFileDialog const *)arg1)->GetFilterIndex(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileDialog_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileDialog *arg1 = (wxFileDialog *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetFilenames",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxFileDialog_GetFilenames(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FileDialog_GetPaths(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFileDialog *arg1 = (wxFileDialog *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetPaths",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxFileDialog_GetPaths(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject * FileDialog_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxFileDialog, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_MultiChoiceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxString *arg2 = 0 ; - wxString *arg3 = 0 ; - int arg4 = (int) 0 ; - wxString *arg5 = (wxString *) 0 ; - long arg6 = (long) wxCHOICEDLG_STYLE ; - wxPoint const &arg7_defvalue = wxDefaultPosition ; - wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; - wxMultiChoiceDialog *result; - bool temp2 = False ; - bool temp3 = False ; - wxPoint temp6 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "message",(char *) "caption",(char *) "choices",(char *) "style",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_MultiChoiceDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - { - arg4 = PyList_Size(obj3); - arg5 = wxString_LIST_helper(obj3); - if (arg5 == NULL) SWIG_fail; - } - } - if (obj4) { - arg6 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - { - arg7 = &temp6; - if ( ! wxPoint_helper(obj5, &arg7)) SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMultiChoiceDialog *)new wxMultiChoiceDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,(wxPoint const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMultiChoiceDialog, 1); - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - { - if (arg5) delete [] arg5; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - { - if (arg5) delete [] arg5; - } - return NULL; -} - - -static PyObject *_wrap_MultiChoiceDialog_SetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMultiChoiceDialog *arg1 = (wxMultiChoiceDialog *) 0 ; - wxArrayInt *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "selections", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MultiChoiceDialog_SetSelections",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMultiChoiceDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - if (! PySequence_Check(obj1)) { - PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); - SWIG_fail; - } - arg2 = new wxArrayInt; - temp2 = True; - int i, len=PySequence_Length(obj1); - for (i=0; iAdd(PyInt_AS_LONG(number)); - Py_DECREF(item); - Py_DECREF(number); - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSelections((wxArrayInt const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) delete arg2; - } - return resultobj; - fail: - { - if (temp2) delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_MultiChoiceDialog_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMultiChoiceDialog *arg1 = (wxMultiChoiceDialog *) 0 ; - PyObject *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MultiChoiceDialog_GetSelections",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMultiChoiceDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (PyObject *)wxMultiChoiceDialog_GetSelections(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = result; - return resultobj; - fail: - return NULL; -} - - -static PyObject * MultiChoiceDialog_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxMultiChoiceDialog, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_SingleChoiceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxString *arg2 = 0 ; - wxString *arg3 = 0 ; - int arg4 ; - wxString *arg5 = (wxString *) 0 ; - long arg6 = (long) wxCHOICEDLG_STYLE ; - wxPoint const &arg7_defvalue = wxDefaultPosition ; - wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; - wxSingleChoiceDialog *result; - bool temp2 = False ; - bool temp3 = False ; - wxPoint temp6 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "message",(char *) "caption",(char *) "choices",(char *) "style",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:new_SingleChoiceDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - { - arg4 = PyList_Size(obj3); - arg5 = wxString_LIST_helper(obj3); - if (arg5 == NULL) SWIG_fail; - } - if (obj4) { - arg6 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - { - arg7 = &temp6; - if ( ! wxPoint_helper(obj5, &arg7)) SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxSingleChoiceDialog *)new_wxSingleChoiceDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,(wxPoint const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleChoiceDialog, 1); - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - { - if (arg5) delete [] arg5; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - { - if (arg5) delete [] arg5; - } - return NULL; -} - - -static PyObject *_wrap_SingleChoiceDialog_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleChoiceDialog_GetSelection",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleChoiceDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetSelection(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SingleChoiceDialog_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleChoiceDialog_GetStringSelection",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleChoiceDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetStringSelection(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_SingleChoiceDialog_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sel", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SingleChoiceDialog_SetSelection",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleChoiceDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSelection(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * SingleChoiceDialog_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxSingleChoiceDialog, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_TextEntryDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxString *arg2 = 0 ; - wxString const &arg3_defvalue = wxPyGetTextFromUserPromptStr ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - wxString const &arg4_defvalue = wxPyEmptyString ; - wxString *arg4 = (wxString *) &arg4_defvalue ; - long arg5 = (long) wxOK|wxCANCEL|wxCENTRE ; - wxPoint const &arg6_defvalue = wxDefaultPosition ; - wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; - wxTextEntryDialog *result; - bool temp2 = False ; - bool temp3 = False ; - bool temp4 = False ; - wxPoint temp6 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "message",(char *) "caption",(char *) "defaultValue",(char *) "style",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_TextEntryDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - if (obj3) { - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - { - arg6 = &temp6; - if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxTextEntryDialog *)new wxTextEntryDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,(wxPoint const &)*arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextEntryDialog, 1); - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_TextEntryDialog_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextEntryDialog *arg1 = (wxTextEntryDialog *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextEntryDialog_GetValue",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextEntryDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetValue(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_TextEntryDialog_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxTextEntryDialog *arg1 = (wxTextEntryDialog *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "value", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextEntryDialog_SetValue",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextEntryDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetValue((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject * TextEntryDialog_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxTextEntryDialog, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_FontData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontData *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontData",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFontData *)new wxFontData(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontData, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_FontData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontData *arg1 = (wxFontData *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontData_EnableEffects(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontData *arg1 = (wxFontData *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "enable", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_EnableEffects",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->EnableEffects(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontData_GetAllowSymbols(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontData *arg1 = (wxFontData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetAllowSymbols",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetAllowSymbols(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontData_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontData *arg1 = (wxFontData *) 0 ; - wxColour result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetColour",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetColour(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxColour * resultptr; - resultptr = new wxColour((wxColour &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontData_GetChosenFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontData *arg1 = (wxFontData *) 0 ; - wxFont result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetChosenFont",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetChosenFont(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxFont * resultptr; - resultptr = new wxFont((wxFont &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontData_GetEnableEffects(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontData *arg1 = (wxFontData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetEnableEffects",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetEnableEffects(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontData_GetInitialFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontData *arg1 = (wxFontData *) 0 ; - wxFont result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetInitialFont",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetInitialFont(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxFont * resultptr; - resultptr = new wxFont((wxFont &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontData_GetShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontData *arg1 = (wxFontData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetShowHelp",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetShowHelp(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontData_SetAllowSymbols(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontData *arg1 = (wxFontData *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "allowSymbols", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetAllowSymbols",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetAllowSymbols(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontData_SetChosenFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontData *arg1 = (wxFontData *) 0 ; - wxFont *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "font", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetChosenFont",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetChosenFont((wxFont const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontData_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontData *arg1 = (wxFontData *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colour", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetColour((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontData_SetInitialFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontData *arg1 = (wxFontData *) 0 ; - wxFont *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "font", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetInitialFont",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetInitialFont((wxFont const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontData_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontData *arg1 = (wxFontData *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "min",(char *) "max", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FontData_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetRange(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontData_SetShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontData *arg1 = (wxFontData *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "showHelp", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetShowHelp",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetShowHelp(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * FontData_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxFontData, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_FontDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxFontData *arg2 = 0 ; - wxFontDialog *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_FontDialog",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFontData, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFontDialog *)new wxFontDialog(arg1,(wxFontData const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontDialog, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FontDialog_GetFontData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFontDialog *arg1 = (wxFontDialog *) 0 ; - wxFontData *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontDialog_GetFontData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxFontData &_result_ref = (arg1)->GetFontData(); - result = (wxFontData *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontData, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject * FontDialog_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxFontDialog, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_MessageDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxString *arg2 = 0 ; - wxString const &arg3_defvalue = wxPyMessageBoxCaptionStr ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - long arg4 = (long) wxOK|wxCANCEL|wxCENTRE ; - wxPoint const &arg5_defvalue = wxDefaultPosition ; - wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; - wxMessageDialog *result; - bool temp2 = False ; - bool temp3 = False ; - wxPoint temp5 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "message",(char *) "caption",(char *) "style",(char *) "pos", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_MessageDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - if (obj3) { - arg4 = (long) SWIG_AsLong(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMessageDialog *)new wxMessageDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,(wxPoint const &)*arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMessageDialog, 1); - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject * MessageDialog_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxMessageDialog, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_ProgressDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString *arg1 = 0 ; - wxString *arg2 = 0 ; - int arg3 = (int) 100 ; - wxWindow *arg4 = (wxWindow *) NULL ; - int arg5 = (int) wxPD_AUTO_HIDE|wxPD_APP_MODAL ; - wxProgressDialog *result; - bool temp1 = False ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "title",(char *) "message",(char *) "maximum",(char *) "parent",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_ProgressDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - if (obj2) { - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj3) { - if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxProgressDialog *)new wxProgressDialog((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProgressDialog, 1); - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_ProgressDialog_Update(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxProgressDialog *arg1 = (wxProgressDialog *) 0 ; - int arg2 ; - wxString const &arg3_defvalue = wxPyEmptyString ; - wxString *arg3 = (wxString *) &arg3_defvalue ; - bool result; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "value",(char *) "newmsg", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ProgressDialog_Update",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProgressDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Update(arg2,(wxString const &)*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_ProgressDialog_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxProgressDialog *arg1 = (wxProgressDialog *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProgressDialog_Resume",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProgressDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Resume(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * ProgressDialog_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxProgressDialog, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_FindDialogEvent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxEventType arg1 = (wxEventType) wxEVT_NULL ; - int arg2 = (int) 0 ; - wxFindDialogEvent *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "commandType",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FindDialogEvent",kwnames,&obj0,&obj1)) goto fail; - if (obj0) { - arg1 = (wxEventType) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj1) { - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFindDialogEvent *)new wxFindDialogEvent(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindDialogEvent, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FindDialogEvent_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindDialogEvent_GetFlags",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetFlags(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FindDialogEvent_GetFindString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindDialogEvent_GetFindString",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = (arg1)->GetFindString(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FindDialogEvent_GetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindDialogEvent_GetReplaceString",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = (arg1)->GetReplaceString(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FindDialogEvent_GetDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; - wxFindReplaceDialog *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindDialogEvent_GetDialog",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFindReplaceDialog *)(arg1)->GetDialog(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceDialog, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FindDialogEvent_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFlags(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FindDialogEvent_SetFindString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "str", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetFindString",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFindString((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_FindDialogEvent_SetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "str", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetReplaceString",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetReplaceString((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject * FindDialogEvent_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxFindDialogEvent, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_FindReplaceData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int arg1 = (int) 0 ; - wxFindReplaceData *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FindReplaceData",kwnames,&obj0)) goto fail; - if (obj0) { - arg1 = (int) SWIG_AsInt(obj0); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFindReplaceData *)new wxFindReplaceData(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceData, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_FindReplaceData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FindReplaceData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FindReplaceData_GetFindString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindReplaceData_GetFindString",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = (arg1)->GetFindString(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FindReplaceData_GetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindReplaceData_GetReplaceString",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = (arg1)->GetReplaceString(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FindReplaceData_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindReplaceData_GetFlags",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetFlags(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FindReplaceData_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetFlags",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFlags(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FindReplaceData_SetFindString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "str", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetFindString",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFindString((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_FindReplaceData_SetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "str", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetReplaceString",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetReplaceString((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject * FindReplaceData_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxFindReplaceData, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_FindReplaceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxFindReplaceData *arg2 = (wxFindReplaceData *) 0 ; - wxString *arg3 = 0 ; - int arg4 = (int) 0 ; - wxFindReplaceDialog *result; - bool temp3 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "data",(char *) "title",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_FindReplaceDialog",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFindReplaceData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFindReplaceDialog *)new wxFindReplaceDialog(arg1,arg2,(wxString const &)*arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceDialog, 1); - { - if (temp3) - delete arg3; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - return NULL; -} - - -static PyObject *_wrap_new_PreFindReplaceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFindReplaceDialog *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreFindReplaceDialog",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFindReplaceDialog *)new wxFindReplaceDialog(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceDialog, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FindReplaceDialog_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - wxFindReplaceData *arg3 = (wxFindReplaceData *) 0 ; - wxString *arg4 = 0 ; - int arg5 = (int) 0 ; - bool result; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "data",(char *) "title",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:FindReplaceDialog_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFindReplaceData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - if (obj4) { - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_FindReplaceDialog_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; - wxFindReplaceData *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindReplaceDialog_GetData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFindReplaceData *)(arg1)->GetData(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceData, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_FindReplaceDialog_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; - wxFindReplaceData *arg2 = (wxFindReplaceData *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceDialog_SetData",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFindReplaceData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetData(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * FindReplaceDialog_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxFindReplaceDialog, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_MDIParentFrame(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL ; - wxString const &arg7_defvalue = wxPyFrameNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - wxMDIParentFrame *result; - bool temp3 = False ; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_MDIParentFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int const) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMDIParentFrame *)new wxMDIParentFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMDIParentFrame, 1); - { - if (temp3) - delete arg3; - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_new_PreMDIParentFrame(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMDIParentFrame *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMDIParentFrame",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMDIParentFrame *)new wxMDIParentFrame(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMDIParentFrame, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MDIParentFrame_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - int arg3 ; - wxString *arg4 = 0 ; - wxPoint const &arg5_defvalue = wxDefaultPosition ; - wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; - wxSize const &arg6_defvalue = wxDefaultSize ; - wxSize *arg6 = (wxSize *) &arg6_defvalue ; - long arg7 = (long) wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL ; - wxString const &arg8_defvalue = wxPyFrameNameStr ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - bool result; - bool temp4 = False ; - wxPoint temp5 ; - wxSize temp6 ; - bool temp8 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:MDIParentFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int const) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - { - arg6 = &temp6; - if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; - } - } - if (obj6) { - arg7 = (long) SWIG_AsLong(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp4) - delete arg4; - } - { - if (temp8) - delete arg8; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - { - if (temp8) - delete arg8; - } - return NULL; -} - - -static PyObject *_wrap_MDIParentFrame_ActivateNext(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_ActivateNext",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ActivateNext(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MDIParentFrame_ActivatePrevious(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_ActivatePrevious",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ActivatePrevious(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MDIParentFrame_ArrangeIcons(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_ArrangeIcons",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ArrangeIcons(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MDIParentFrame_Cascade(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_Cascade",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Cascade(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MDIParentFrame_GetActiveChild(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; - wxMDIChildFrame *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_GetActiveChild",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMDIChildFrame *)(arg1)->GetActiveChild(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MDIParentFrame_GetClientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; - wxMDIClientWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_GetClientWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMDIClientWindow *)(arg1)->GetClientWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MDIParentFrame_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_GetToolBar",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)(arg1)->GetToolBar(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MDIParentFrame_GetWindowMenu(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; - wxMenu *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_GetWindowMenu",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMenu *)(arg1)->GetWindowMenu(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MDIParentFrame_SetWindowMenu(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; - wxMenu *arg2 = (wxMenu *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "menu", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MDIParentFrame_SetWindowMenu",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetWindowMenu(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MDIParentFrame_SetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; - wxToolBar *arg2 = (wxToolBar *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "toolbar", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MDIParentFrame_SetToolBar",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetToolBar(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MDIParentFrame_Tile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_Tile",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Tile(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * MDIParentFrame_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxMDIParentFrame, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_MDIChildFrame(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; - int arg2 ; - wxString *arg3 = 0 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxDEFAULT_FRAME_STYLE ; - wxString const &arg7_defvalue = wxPyFrameNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - wxMDIChildFrame *result; - bool temp3 = False ; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_MDIChildFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int const) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMDIChildFrame *)new wxMDIChildFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp3) - delete arg3; - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_new_PreMDIChildFrame(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMDIChildFrame *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMDIChildFrame",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMDIChildFrame *)new wxMDIChildFrame(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MDIChildFrame_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; - wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; - int arg3 ; - wxString *arg4 = 0 ; - wxPoint const &arg5_defvalue = wxDefaultPosition ; - wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; - wxSize const &arg6_defvalue = wxDefaultSize ; - wxSize *arg6 = (wxSize *) &arg6_defvalue ; - long arg7 = (long) wxDEFAULT_FRAME_STYLE ; - wxString const &arg8_defvalue = wxPyFrameNameStr ; - wxString *arg8 = (wxString *) &arg8_defvalue ; - bool result; - bool temp4 = False ; - wxPoint temp5 ; - wxSize temp6 ; - bool temp8 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:MDIChildFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIChildFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMDIParentFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg3 = (int const) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - { - arg6 = &temp6; - if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; - } - } - if (obj6) { - arg7 = (long) SWIG_AsLong(obj6); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj7) { - { - arg8 = wxString_in_helper(obj7); - if (arg8 == NULL) SWIG_fail; - temp8 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - { - if (temp4) - delete arg4; - } - { - if (temp8) - delete arg8; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - { - if (temp8) - delete arg8; - } - return NULL; -} - - -static PyObject *_wrap_MDIChildFrame_Activate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIChildFrame_Activate",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIChildFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Activate(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MDIChildFrame_Maximize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "maximize", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MDIChildFrame_Maximize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIChildFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Maximize(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MDIChildFrame_Restore(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIChildFrame_Restore",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIChildFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Restore(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * MDIChildFrame_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxMDIChildFrame, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_MDIClientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; - long arg2 = (long) 0 ; - wxMDIClientWindow *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_MDIClientWindow",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMDIClientWindow *)new wxMDIClientWindow(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_PreMDIClientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMDIClientWindow *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMDIClientWindow",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxMDIClientWindow *)new wxMDIClientWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_MDIClientWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxMDIClientWindow *arg1 = (wxMDIClientWindow *) 0 ; - wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; - long arg3 = (long) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "style", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MDIClientWindow_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIClientWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMDIParentFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Create(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * MDIClientWindow_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxMDIClientWindow, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PyWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) 0 ; - wxString const &arg6_defvalue = wxPyPanelNameStr ; - wxString *arg6 = (wxString *) &arg6_defvalue ; - wxPyWindow *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp6 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PyWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int const) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - { - arg6 = wxString_in_helper(obj5); - if (arg6 == NULL) SWIG_fail; - temp6 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyWindow *)new wxPyWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyWindow, 1); - { - if (temp6) - delete arg6; - } - return resultobj; - fail: - { - if (temp6) - delete arg6; - } - return NULL; -} - - -static PyObject *_wrap_new_PrePyWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyWindow *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyWindow",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyWindow *)new wxPyWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyWindow, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyWindow__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyWindow *arg1 = (wxPyWindow *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyWindow_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyWindow *arg1 = (wxPyWindow *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyWindow_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyWindow_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyWindow *arg1 = (wxPyWindow *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 = (int) wxSIZE_AUTO ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyWindow_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - if (obj5) { - arg6 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyWindow_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyWindow *arg1 = (wxPyWindow *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_DoSetClientSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyWindow_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyWindow *arg1 = (wxPyWindow *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_DoSetVirtualSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyWindow_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyWindow *arg1 = (wxPyWindow *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxPyWindow const *)arg1)->base_DoGetSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyWindow_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyWindow *arg1 = (wxPyWindow *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetClientSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxPyWindow const *)arg1)->base_DoGetClientSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyWindow_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyWindow *arg1 = (wxPyWindow *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxPyWindow const *)arg1)->base_DoGetPosition(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyWindow_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyWindow *arg1 = (wxPyWindow *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyWindow const *)arg1)->base_DoGetVirtualSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyWindow_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyWindow *arg1 = (wxPyWindow *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetBestSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyWindow const *)arg1)->base_DoGetBestSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyWindow_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyWindow *arg1 = (wxPyWindow *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_InitDialog",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_InitDialog(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyWindow_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyWindow *arg1 = (wxPyWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_TransferDataToWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_TransferDataToWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyWindow_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyWindow *arg1 = (wxPyWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_TransferDataFromWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyWindow_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyWindow *arg1 = (wxPyWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_Validate",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_Validate(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyWindow_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyWindow *arg1 = (wxPyWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_AcceptsFocus",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyWindow const *)arg1)->base_AcceptsFocus(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyWindow_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyWindow *arg1 = (wxPyWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyWindow const *)arg1)->base_AcceptsFocusFromKeyboard(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyWindow_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyWindow *arg1 = (wxPyWindow *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_GetMaxSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyWindow const *)arg1)->base_GetMaxSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyWindow_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyWindow *arg1 = (wxPyWindow *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "child", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_base_AddChild",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_AddChild(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyWindow_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyWindow *arg1 = (wxPyWindow *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "child", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_RemoveChild(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyWindow_base_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyWindow *arg1 = (wxPyWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_ShouldInheritColours",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_ShouldInheritColours(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyWindow_base_ApplyParentThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyWindow *arg1 = (wxPyWindow *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "c", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * PyWindow_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyWindow, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PyPanel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) 0 ; - wxString const &arg6_defvalue = wxPyPanelNameStr ; - wxString *arg6 = (wxString *) &arg6_defvalue ; - wxPyPanel *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp6 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PyPanel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int const) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - { - arg6 = wxString_in_helper(obj5); - if (arg6 == NULL) SWIG_fail; - temp6 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyPanel *)new wxPyPanel(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPanel, 1); - { - if (temp6) - delete arg6; - } - return resultobj; - fail: - { - if (temp6) - delete arg6; - } - return NULL; -} - - -static PyObject *_wrap_new_PrePyPanel(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPanel *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyPanel",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyPanel *)new wxPyPanel(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPanel, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPanel__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPanel *arg1 = (wxPyPanel *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPanel_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPanel *arg1 = (wxPyPanel *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyPanel_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPanel_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPanel *arg1 = (wxPyPanel *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 = (int) wxSIZE_AUTO ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyPanel_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - if (obj5) { - arg6 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPanel_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPanel *arg1 = (wxPyPanel *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_DoSetClientSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPanel_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPanel *arg1 = (wxPyPanel *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_DoSetVirtualSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPanel_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPanel *arg1 = (wxPyPanel *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxPyPanel const *)arg1)->base_DoGetSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPanel_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPanel *arg1 = (wxPyPanel *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetClientSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxPyPanel const *)arg1)->base_DoGetClientSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPanel_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPanel *arg1 = (wxPyPanel *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxPyPanel const *)arg1)->base_DoGetPosition(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPanel_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPanel *arg1 = (wxPyPanel *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyPanel const *)arg1)->base_DoGetVirtualSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPanel_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPanel *arg1 = (wxPyPanel *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetBestSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyPanel const *)arg1)->base_DoGetBestSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPanel_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPanel *arg1 = (wxPyPanel *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_InitDialog",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_InitDialog(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPanel_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPanel *arg1 = (wxPyPanel *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_TransferDataToWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_TransferDataToWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPanel_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPanel *arg1 = (wxPyPanel *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_TransferDataFromWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPanel_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPanel *arg1 = (wxPyPanel *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_Validate",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_Validate(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPanel_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPanel *arg1 = (wxPyPanel *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_AcceptsFocus",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyPanel const *)arg1)->base_AcceptsFocus(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPanel_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPanel *arg1 = (wxPyPanel *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyPanel const *)arg1)->base_AcceptsFocusFromKeyboard(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPanel_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPanel *arg1 = (wxPyPanel *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_GetMaxSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyPanel const *)arg1)->base_GetMaxSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPanel_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPanel *arg1 = (wxPyPanel *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "child", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_base_AddChild",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_AddChild(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPanel_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPanel *arg1 = (wxPyPanel *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "child", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_RemoveChild(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPanel_base_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPanel *arg1 = (wxPyPanel *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_ShouldInheritColours",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_ShouldInheritColours(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPanel_base_ApplyParentThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPanel *arg1 = (wxPyPanel *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "c", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * PyPanel_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyPanel, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PyScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - int arg2 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) 0 ; - wxString const &arg6_defvalue = wxPyPanelNameStr ; - wxString *arg6 = (wxString *) &arg6_defvalue ; - wxPyScrolledWindow *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp6 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PyScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int const) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - { - arg6 = wxString_in_helper(obj5); - if (arg6 == NULL) SWIG_fail; - temp6 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyScrolledWindow *)new wxPyScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyScrolledWindow, 1); - { - if (temp6) - delete arg6; - } - return resultobj; - fail: - { - if (temp6) - delete arg6; - } - return NULL; -} - - -static PyObject *_wrap_new_PrePyScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyScrolledWindow *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyScrolledWindow",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyScrolledWindow *)new wxPyScrolledWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyScrolledWindow, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyScrolledWindow__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyScrolledWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyScrolledWindow_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyScrolledWindow_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyScrolledWindow_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 = (int) wxSIZE_AUTO ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyScrolledWindow_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - arg5 = (int) SWIG_AsInt(obj4); - if (PyErr_Occurred()) SWIG_fail; - if (obj5) { - arg6 = (int) SWIG_AsInt(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyScrolledWindow_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "width",(char *) "height", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyScrolledWindow_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_DoSetClientSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyScrolledWindow_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyScrolledWindow_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_DoSetVirtualSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyScrolledWindow_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_DoGetSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxPyScrolledWindow const *)arg1)->base_DoGetSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyScrolledWindow_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_DoGetClientSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxPyScrolledWindow const *)arg1)->base_DoGetClientSize(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyScrolledWindow_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_DoGetPosition",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxPyScrolledWindow const *)arg1)->base_DoGetPosition(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyScrolledWindow_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyScrolledWindow const *)arg1)->base_DoGetVirtualSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyScrolledWindow_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_DoGetBestSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyScrolledWindow const *)arg1)->base_DoGetBestSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyScrolledWindow_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_InitDialog",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_InitDialog(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyScrolledWindow_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_TransferDataToWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_TransferDataToWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyScrolledWindow_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_TransferDataFromWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyScrolledWindow_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_Validate",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_Validate(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyScrolledWindow_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_AcceptsFocus",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyScrolledWindow const *)arg1)->base_AcceptsFocus(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyScrolledWindow_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPyScrolledWindow const *)arg1)->base_AcceptsFocusFromKeyboard(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyScrolledWindow_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_GetMaxSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyScrolledWindow const *)arg1)->base_GetMaxSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyScrolledWindow_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "child", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyScrolledWindow_base_AddChild",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_AddChild(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyScrolledWindow_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "child", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyScrolledWindow_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_RemoveChild(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyScrolledWindow_base_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_ShouldInheritColours",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_ShouldInheritColours(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyScrolledWindow_base_ApplyParentThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; - wxColour *arg2 = 0 ; - wxColour temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "c", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyScrolledWindow_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * PyScrolledWindow_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyScrolledWindow, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static int _wrap_PrintoutTitleStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable PrintoutTitleStr is read-only."); - return 1; -} - - -static PyObject *_wrap_PrintoutTitleStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyPrintoutTitleStr)->c_str(), (&wxPyPrintoutTitleStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyPrintoutTitleStr)->c_str(), (&wxPyPrintoutTitleStr)->Len()); -#endif - } - return pyobj; -} - - -static int _wrap_PreviewCanvasNameStr_set(PyObject *_val) { - PyErr_SetString(PyExc_TypeError,"Variable PreviewCanvasNameStr is read-only."); - return 1; -} - - -static PyObject *_wrap_PreviewCanvasNameStr_get() { - PyObject *pyobj; - - { -#if wxUSE_UNICODE - pyobj = PyUnicode_FromWideChar((&wxPyPreviewCanvasNameStr)->c_str(), (&wxPyPreviewCanvasNameStr)->Len()); -#else - pyobj = PyString_FromStringAndSize((&wxPyPreviewCanvasNameStr)->c_str(), (&wxPyPreviewCanvasNameStr)->Len()); -#endif - } - return pyobj; -} - - -static PyObject *_wrap_new_PrintData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrintData",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPrintData *)new wxPrintData(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_PrintData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PrintData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_GetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetNoCopies",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetNoCopies(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_GetCollate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetCollate",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetCollate(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetOrientation",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetOrientation(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_Ok",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Ok(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_GetPrinterName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterName",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = (arg1)->GetPrinterName(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetColour",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetColour(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_GetDuplex(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetDuplex",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetDuplex(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_GetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPaperId",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetPaperId(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_GetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - wxSize *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPaperSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxSize const &_result_ref = (arg1)->GetPaperSize(); - result = (wxSize *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetQuality",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetQuality(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_SetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "v", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetNoCopies",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetNoCopies(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_SetCollate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetCollate",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetCollate(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "orient", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetOrientation",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetOrientation(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_SetPrinterName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterName",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPrinterName((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_PrintData_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "colour", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetColour",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetColour(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_SetDuplex(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "duplex", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetDuplex",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxDuplexMode) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDuplex((wxDuplexMode )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_SetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sizeId", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPaperId",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxPaperSize) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPaperId((wxPaperSize )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_SetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - wxSize *arg2 = 0 ; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "sz", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPaperSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPaperSize((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "quality", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetQuality",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetQuality(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_GetPrinterCommand(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterCommand",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = (arg1)->GetPrinterCommand(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_GetPrinterOptions(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterOptions",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = (arg1)->GetPrinterOptions(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_GetPreviewCommand(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPreviewCommand",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = (arg1)->GetPreviewCommand(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_GetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetFilename",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = (arg1)->GetFilename(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_GetFontMetricPath(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - wxString *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetFontMetricPath",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxString const &_result_ref = (arg1)->GetFontMetricPath(); - result = (wxString *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); -#else - resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_GetPrinterScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - double result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterScaleX",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (double)(arg1)->GetPrinterScaleX(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromDouble((double)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_GetPrinterScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - double result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterScaleY",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (double)(arg1)->GetPrinterScaleY(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromDouble((double)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_GetPrinterTranslateX(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterTranslateX",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->GetPrinterTranslateX(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_GetPrinterTranslateY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - long result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterTranslateY",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (long)(arg1)->GetPrinterTranslateY(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_GetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrintMode",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetPrintMode(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_SetPrinterCommand(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "command", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterCommand",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPrinterCommand((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_PrintData_SetPrinterOptions(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "options", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterOptions",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPrinterOptions((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_PrintData_SetPreviewCommand(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "command", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPreviewCommand",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPreviewCommand((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_PrintData_SetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "filename", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetFilename",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFilename((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_PrintData_SetFontMetricPath(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - wxString *arg2 = 0 ; - bool temp2 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "path", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetFontMetricPath",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = wxString_in_helper(obj1); - if (arg2 == NULL) SWIG_fail; - temp2 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFontMetricPath((wxString const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp2) - delete arg2; - } - return resultobj; - fail: - { - if (temp2) - delete arg2; - } - return NULL; -} - - -static PyObject *_wrap_PrintData_SetPrinterScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - double arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterScaleX",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (double) SWIG_AsDouble(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPrinterScaleX(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_SetPrinterScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - double arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterScaleY",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (double) SWIG_AsDouble(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPrinterScaleY(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_SetPrinterScaling(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - double arg2 ; - double arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintData_SetPrinterScaling",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (double) SWIG_AsDouble(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (double) SWIG_AsDouble(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPrinterScaling(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_SetPrinterTranslateX(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterTranslateX",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPrinterTranslateX(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_SetPrinterTranslateY(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterTranslateY",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPrinterTranslateY(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_SetPrinterTranslation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - long arg2 ; - long arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintData_SetPrinterTranslation",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (long) SWIG_AsLong(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPrinterTranslation(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_SetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "printMode", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrintMode",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxPrintMode) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPrintMode((wxPrintMode )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - wxOutputStream *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetOutputStream",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxOutputStream *)(arg1)->GetOutputStream(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintData_SetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintData *arg1 = (wxPrintData *) 0 ; - wxOutputStream *arg2 = (wxOutputStream *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "outputstream", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetOutputStream",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxOutputStream, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetOutputStream(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * PrintData_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPrintData, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PageSetupDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PageSetupDialogData",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPageSetupDialogData *)new wxPageSetupDialogData(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPageSetupDialogData, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_PageSetupDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PageSetupDialogData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_EnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableHelp",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->EnableHelp(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_EnableMargins(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableMargins",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->EnableMargins(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_EnableOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableOrientation",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->EnableOrientation(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_EnablePaper(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnablePaper",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->EnablePaper(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_EnablePrinter(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnablePrinter",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->EnablePrinter(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_GetDefaultMinMargins(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetDefaultMinMargins",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetDefaultMinMargins(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_GetEnableMargins(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnableMargins",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetEnableMargins(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_GetEnableOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnableOrientation",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetEnableOrientation(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_GetEnablePaper(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnablePaper",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetEnablePaper(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_GetEnablePrinter(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnablePrinter",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetEnablePrinter(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_GetEnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnableHelp",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetEnableHelp(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_GetDefaultInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetDefaultInfo",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetDefaultInfo(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_GetMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetMarginTopLeft",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetMarginTopLeft(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_GetMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetMarginBottomRight",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetMarginBottomRight(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_GetMinMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetMinMarginTopLeft",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetMinMarginTopLeft(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_GetMinMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - wxPoint result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetMinMarginBottomRight",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetMinMarginBottomRight(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxPoint * resultptr; - resultptr = new wxPoint((wxPoint &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_GetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetPaperId",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetPaperId(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_GetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - wxSize result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetPaperSize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (arg1)->GetPaperSize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - wxSize * resultptr; - resultptr = new wxSize((wxSize &) result); - resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - wxPrintData *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetPrintData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxPrintData &_result_ref = (arg1)->GetPrintData(); - result = (wxPrintData *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_Ok",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Ok(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_SetDefaultInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetDefaultInfo",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDefaultInfo(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_SetDefaultMinMargins(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetDefaultMinMargins",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDefaultMinMargins(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_SetMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMarginTopLeft",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMarginTopLeft((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_SetMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMarginBottomRight",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMarginBottomRight((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_SetMinMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMinMarginTopLeft",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMinMarginTopLeft((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_SetMinMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - wxPoint *arg2 = 0 ; - wxPoint temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMinMarginBottomRight",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMinMarginBottomRight((wxPoint const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_SetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "id", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPaperId",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (wxPaperSize) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPaperId((wxPaperSize )arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_SetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - wxSize *arg2 = 0 ; - wxSize temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "size", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPaperSize",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg2 = &temp2; - if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPaperSize((wxSize const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialogData_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; - wxPrintData *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "printData", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPrintData",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPrintData((wxPrintData const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * PageSetupDialogData_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPageSetupDialogData, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PageSetupDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxPageSetupDialogData *arg2 = (wxPageSetupDialogData *) NULL ; - wxPageSetupDialog *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PageSetupDialog",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPageSetupDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPageSetupDialog *)new wxPageSetupDialog(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPageSetupDialog, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialog_GetPageSetupData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 0 ; - wxPageSetupDialogData *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialog_GetPageSetupData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxPageSetupDialogData &_result_ref = (arg1)->GetPageSetupData(); - result = (wxPageSetupDialogData *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPageSetupDialogData, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PageSetupDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialog_ShowModal",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->ShowModal(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * PageSetupDialog_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPageSetupDialog, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PrintDialogData__SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxPrintDialogData *result; - - if(!PyArg_ParseTuple(args,(char *)":new_PrintDialogData")) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPrintDialogData *)new wxPrintDialogData(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_PrintDialogData__SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxPrintData *arg1 = 0 ; - wxPrintDialogData *result; - PyObject * obj0 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"O:new_PrintDialogData",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg1 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPrintDialogData *)new wxPrintDialogData((wxPrintData const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_PrintDialogData(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[2]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 1); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if (argc == 0) { - return _wrap_new_PrintDialogData__SWIG_0(self,args); - } - if (argc == 1) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPrintData, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_new_PrintDialogData__SWIG_1(self,args); - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_PrintDialogData'"); - return NULL; -} - - -static PyObject *_wrap_delete_PrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PrintDialogData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_GetFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetFromPage",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxPrintDialogData const *)arg1)->GetFromPage(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_GetToPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetToPage",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxPrintDialogData const *)arg1)->GetToPage(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_GetMinPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetMinPage",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxPrintDialogData const *)arg1)->GetMinPage(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_GetMaxPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetMaxPage",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxPrintDialogData const *)arg1)->GetMaxPage(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_GetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetNoCopies",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)((wxPrintDialogData const *)arg1)->GetNoCopies(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_GetAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetAllPages",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPrintDialogData const *)arg1)->GetAllPages(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetSelection",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPrintDialogData const *)arg1)->GetSelection(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_GetCollate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetCollate",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPrintDialogData const *)arg1)->GetCollate(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_GetPrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetPrintToFile",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPrintDialogData const *)arg1)->GetPrintToFile(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_GetSetupDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetSetupDialog",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPrintDialogData const *)arg1)->GetSetupDialog(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_SetFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "v", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetFromPage",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFromPage(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_SetToPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "v", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetToPage",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetToPage(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_SetMinPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "v", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetMinPage",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMinPage(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_SetMaxPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "v", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetMaxPage",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetMaxPage(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_SetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "v", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetNoCopies",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetNoCopies(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_SetAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetAllPages",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetAllPages(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetSelection",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSelection(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_SetCollate(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetCollate",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetCollate(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_SetPrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetPrintToFile",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPrintToFile(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_SetSetupDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetSetupDialog",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetSetupDialog(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_EnablePrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnablePrintToFile",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->EnablePrintToFile(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_EnableSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnableSelection",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->EnableSelection(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_EnablePageNumbers(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnablePageNumbers",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->EnablePageNumbers(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_EnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "flag", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnableHelp",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->EnableHelp(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_GetEnablePrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetEnablePrintToFile",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPrintDialogData const *)arg1)->GetEnablePrintToFile(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_GetEnableSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetEnableSelection",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPrintDialogData const *)arg1)->GetEnableSelection(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_GetEnablePageNumbers(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetEnablePageNumbers",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPrintDialogData const *)arg1)->GetEnablePageNumbers(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_GetEnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetEnableHelp",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPrintDialogData const *)arg1)->GetEnableHelp(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_Ok",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxPrintDialogData const *)arg1)->Ok(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - wxPrintData *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetPrintData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxPrintData &_result_ref = (arg1)->GetPrintData(); - result = (wxPrintData *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialogData_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; - wxPrintData *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "printData", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetPrintData",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPrintData((wxPrintData const &)*arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * PrintDialogData_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPrintDialogData, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PrintDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxWindow *arg1 = (wxWindow *) 0 ; - wxPrintDialogData *arg2 = (wxPrintDialogData *) NULL ; - wxPrintDialog *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "parent",(char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PrintDialog",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj1) { - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPrintDialog *)new wxPrintDialog(arg1,arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialog, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialog_GetPrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; - wxPrintDialogData *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialog_GetPrintDialogData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); - result = (wxPrintDialogData *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialog_GetPrintDC(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; - wxDC *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialog_GetPrintDC",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxDC *)(arg1)->GetPrintDC(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialog_ShowModal",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialog, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->ShowModal(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * PrintDialog_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPrintDialog, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Printer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintDialogData *arg1 = (wxPrintDialogData *) NULL ; - wxPrinter *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "data", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Printer",kwnames,&obj0)) goto fail; - if (obj0) { - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPrinter *)new wxPrinter(arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinter, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_delete_Printer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrinter *arg1 = (wxPrinter *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Printer",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - delete arg1; - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printer_CreateAbortWindow(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrinter *arg1 = (wxPrinter *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "printout", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printer_CreateAbortWindow",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->CreateAbortWindow(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printer_GetPrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrinter *arg1 = (wxPrinter *) 0 ; - wxPrintDialogData *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printer_GetPrintDialogData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); - result = (wxPrintDialogData *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printer_Print(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrinter *arg1 = (wxPrinter *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; - int arg4 = (int) True ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "printout",(char *) "prompt", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Printer_Print",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj3) { - arg4 = (int) SWIG_AsInt(obj3); - if (PyErr_Occurred()) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Print(arg2,arg3,arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printer_PrintDialog(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrinter *arg1 = (wxPrinter *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - wxDC *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printer_PrintDialog",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxDC *)(arg1)->PrintDialog(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printer_ReportError(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrinter *arg1 = (wxPrinter *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; - wxString *arg4 = 0 ; - bool temp4 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent",(char *) "printout",(char *) "message", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Printer_ReportError",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg4 = wxString_in_helper(obj3); - if (arg4 == NULL) SWIG_fail; - temp4 = True; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->ReportError(arg2,arg3,(wxString const &)*arg4); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - if (temp4) - delete arg4; - } - return resultobj; - fail: - { - if (temp4) - delete arg4; - } - return NULL; -} - - -static PyObject *_wrap_Printer_Setup(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrinter *arg1 = (wxPrinter *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "parent", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printer_Setup",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Setup(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printer_GetAbort(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrinter *arg1 = (wxPrinter *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printer_GetAbort",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->GetAbort(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printer_GetLastError(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - int result; - char *kwnames[] = { - NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Printer_GetLastError",kwnames)) goto fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)wxPrinter::GetLastError(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject * Printer_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPrinter, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_Printout(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxString const &arg1_defvalue = wxPyPrintoutTitleStr ; - wxString *arg1 = (wxString *) &arg1_defvalue ; - wxPyPrintout *result; - bool temp1 = False ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "title", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Printout",kwnames,&obj0)) goto fail; - if (obj0) { - { - arg1 = wxString_in_helper(obj0); - if (arg1 == NULL) SWIG_fail; - temp1 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyPrintout *)new wxPyPrintout((wxString const &)*arg1); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - { - if (temp1) - delete arg1; - } - return resultobj; - fail: - { - if (temp1) - delete arg1; - } - return NULL; -} - - -static PyObject *_wrap_Printout__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printout_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - wxString result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetTitle",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = ((wxPyPrintout const *)arg1)->GetTitle(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { -#if wxUSE_UNICODE - resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); -#else - resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); -#endif - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printout_GetDC(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - wxDC *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetDC",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxDC *)(arg1)->GetDC(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printout_SetDC(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - wxDC *arg2 = (wxDC *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "dc", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_SetDC",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetDC(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printout_SetPageSizePixels(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "w",(char *) "h", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPageSizePixels",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPageSizePixels(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printout_GetPageSizePixels(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetPageSizePixels",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->GetPageSizePixels(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printout_SetPageSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "w",(char *) "h", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPageSizeMM",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPageSizeMM(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printout_GetPageSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetPageSizeMM",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->GetPageSizeMM(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printout_SetPPIScreen(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPPIScreen",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPPIScreen(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printout_GetPPIScreen(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetPPIScreen",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->GetPPIScreen(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printout_SetPPIPrinter(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - int arg2 ; - int arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "x",(char *) "y", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPPIPrinter",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPPIPrinter(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printout_GetPPIPrinter(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int temp2 ; - int temp3 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetPPIPrinter",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->GetPPIPrinter(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printout_IsPreview(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_IsPreview",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->IsPreview(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printout_SetIsPreview(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "p", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_SetIsPreview",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetIsPreview(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printout_base_OnBeginDocument(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - int arg2 ; - int arg3 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "startPage",(char *) "endPage", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_base_OnBeginDocument",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - arg3 = (int) SWIG_AsInt(obj2); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_OnBeginDocument(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printout_base_OnEndDocument(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_OnEndDocument",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_OnEndDocument(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printout_base_OnBeginPrinting(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_OnBeginPrinting",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_OnBeginPrinting(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printout_base_OnEndPrinting(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_OnEndPrinting",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_OnEndPrinting(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printout_base_OnPreparePrinting(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_OnPreparePrinting",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_OnPreparePrinting(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printout_base_HasPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "page", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_base_HasPage",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_HasPage(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_Printout_base_GetPageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int *arg4 = (int *) 0 ; - int *arg5 = (int *) 0 ; - int temp2 ; - int temp3 ; - int temp4 ; - int temp5 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - arg2 = &temp2; - arg3 = &temp3; - arg4 = &temp4; - arg5 = &temp5; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_GetPageInfo",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_GetPageInfo(arg2,arg3,arg4,arg5); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - { - PyObject *o = PyInt_FromLong((long) (*arg2)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg3)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg4)); - resultobj = t_output_helper(resultobj,o); - } - { - PyObject *o = PyInt_FromLong((long) (*arg5)); - resultobj = t_output_helper(resultobj,o); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject * Printout_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyPrintout, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PreviewCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - wxWindow *arg2 = (wxWindow *) 0 ; - wxPoint const &arg3_defvalue = wxDefaultPosition ; - wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; - wxSize const &arg4_defvalue = wxDefaultSize ; - wxSize *arg4 = (wxSize *) &arg4_defvalue ; - long arg5 = (long) 0 ; - wxString const &arg6_defvalue = wxPyPreviewCanvasNameStr ; - wxString *arg6 = (wxString *) &arg6_defvalue ; - wxPreviewCanvas *result; - wxPoint temp3 ; - wxSize temp4 ; - bool temp6 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - char *kwnames[] = { - (char *) "preview",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PreviewCanvas",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - { - arg3 = &temp3; - if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; - } - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - arg5 = (long) SWIG_AsLong(obj4); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj5) { - { - arg6 = wxString_in_helper(obj5); - if (arg6 == NULL) SWIG_fail; - temp6 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPreviewCanvas *)new wxPreviewCanvas(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewCanvas, 1); - { - if (temp6) - delete arg6; - } - return resultobj; - fail: - { - if (temp6) - delete arg6; - } - return NULL; -} - - -static PyObject * PreviewCanvas_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPreviewCanvas, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PreviewFrame(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - wxFrame *arg2 = (wxFrame *) 0 ; - wxString *arg3 = 0 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxDEFAULT_FRAME_STYLE ; - wxString const &arg7_defvalue = wxPyFrameNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - wxPreviewFrame *result; - bool temp3 = False ; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "preview",(char *) "parent",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PreviewFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPreviewFrame *)new wxPreviewFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewFrame, 1); - { - if (temp3) - delete arg3; - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_PreviewFrame_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewFrame_Initialize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->Initialize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PreviewFrame_CreateControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewFrame_CreateControlBar",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->CreateControlBar(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PreviewFrame_CreateCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewFrame_CreateCanvas",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->CreateCanvas(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PreviewFrame_GetControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; - wxPreviewControlBar *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewFrame_GetControlBar",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPreviewControlBar *)((wxPreviewFrame const *)arg1)->GetControlBar(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewControlBar, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject * PreviewFrame_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPreviewFrame, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PreviewControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - long arg2 ; - wxWindow *arg3 = (wxWindow *) 0 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxTAB_TRAVERSAL ; - wxString const &arg7_defvalue = wxPyPanelNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - wxPreviewControlBar *result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "preview",(char *) "buttons",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PreviewControlBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPreviewControlBar *)new wxPreviewControlBar(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewControlBar, 1); - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_PreviewControlBar_GetZoomControl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_GetZoomControl",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetZoomControl(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PreviewControlBar_SetZoomControl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "zoom", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PreviewControlBar_SetZoomControl",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetZoomControl(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PreviewControlBar_GetPrintPreview(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; - wxPrintPreview *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_GetPrintPreview",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPrintPreview *)(arg1)->GetPrintPreview(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintPreview, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PreviewControlBar_OnNext(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnNext",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->OnNext(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PreviewControlBar_OnPrevious(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnPrevious",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->OnPrevious(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PreviewControlBar_OnFirst(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnFirst",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->OnFirst(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PreviewControlBar_OnLast(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnLast",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->OnLast(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PreviewControlBar_OnGoto(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnGoto",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->OnGoto(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * PreviewControlBar_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPreviewControlBar, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PrintPreview__SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; - wxPrintDialogData *arg3 = (wxPrintDialogData *) NULL ; - wxPrintPreview *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO|O:new_PrintPreview",&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPrintPreview *)new wxPrintPreview(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintPreview, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_PrintPreview__SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; - wxPrintData *arg3 = (wxPrintData *) 0 ; - wxPrintPreview *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OOO:new_PrintPreview",&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPrintPreview *)new wxPrintPreview(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintPreview, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_PrintPreview(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if ((argc >= 2) && (argc <= 3)) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - if (argc <= 2) { - return _wrap_new_PrintPreview__SWIG_0(self,args); - } - { - void *ptr; - if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxPrintDialogData, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_new_PrintPreview__SWIG_0(self,args); - } - } - } - } - if (argc == 3) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxPrintData, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_new_PrintPreview__SWIG_1(self,args); - } - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_PrintPreview'"); - return NULL; -} - - -static PyObject *_wrap_PrintPreview_SetCurrentPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pageNum", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetCurrentPage",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->SetCurrentPage(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintPreview_GetCurrentPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetCurrentPage",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetCurrentPage(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintPreview_SetPrintout(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "printout", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetPrintout",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPrintout(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintPreview_GetPrintout(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - wxPyPrintout *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetPrintout",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyPrintout *)(arg1)->GetPrintout(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintPreview_GetPrintoutForPrinting(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - wxPyPrintout *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetPrintoutForPrinting",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyPrintout *)(arg1)->GetPrintoutForPrinting(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintPreview_SetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - wxFrame *arg2 = (wxFrame *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "frame", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetFrame",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetFrame(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintPreview_SetCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "canvas", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetCanvas",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetCanvas(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintPreview_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - wxFrame *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetFrame",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxFrame *)(arg1)->GetFrame(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintPreview_GetCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - wxPreviewCanvas *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetCanvas",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPreviewCanvas *)(arg1)->GetCanvas(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewCanvas, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintPreview_PaintPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; - wxDC *arg3 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "canvas",(char *) "dc", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintPreview_PaintPage",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->PaintPage(arg2,*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintPreview_DrawBlankPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; - wxDC *arg3 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "canvas",(char *) "dc", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintPreview_DrawBlankPage",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->DrawBlankPage(arg2,*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintPreview_RenderPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pageNum", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_RenderPage",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->RenderPage(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintPreview_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "canvas", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_AdjustScrollbars",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->AdjustScrollbars(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintPreview_GetPrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - wxPrintDialogData *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetPrintDialogData",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - { - wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); - result = (wxPrintDialogData *) &_result_ref; - } - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 0); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintPreview_SetZoom(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "percent", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetZoom",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetZoom(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintPreview_GetZoom(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetZoom",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetZoom(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintPreview_GetMaxPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetMaxPage",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetMaxPage(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintPreview_GetMinPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - int result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetMinPage",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (int)(arg1)->GetMinPage(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_FromInt((int)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintPreview_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - bool result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_Ok",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Ok(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintPreview_SetOk(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "ok", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetOk",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetOk(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintPreview_Print(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - bool arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "interactive", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_Print",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Print(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PrintPreview_DetermineScaling(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_DetermineScaling",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->DetermineScaling(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * PrintPreview_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPrintPreview, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PyPrintPreview__SWIG_0(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; - wxPrintDialogData *arg3 = (wxPrintDialogData *) NULL ; - wxPyPrintPreview *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO|O:new_PyPrintPreview",&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj2) { - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPrintDialogData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyPrintPreview *)new wxPyPrintPreview(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPrintPreview, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_PyPrintPreview__SWIG_1(PyObject *self, PyObject *args) { - PyObject *resultobj; - wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; - wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; - wxPrintData *arg3 = (wxPrintData *) 0 ; - wxPyPrintPreview *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OOO:new_PyPrintPreview",&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyPrintout, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPrintData, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyPrintPreview *)new wxPyPrintPreview(arg1,arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPrintPreview, 1); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_new_PyPrintPreview(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - argc = PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GetItem(args,ii); - } - if ((argc >= 2) && (argc <= 3)) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - if (argc <= 2) { - return _wrap_new_PyPrintPreview__SWIG_0(self,args); - } - { - void *ptr; - if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxPrintDialogData, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_new_PyPrintPreview__SWIG_0(self,args); - } - } - } - } - if (argc == 3) { - int _v; - { - void *ptr; - if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - { - void *ptr; - if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxPrintData, 0) == -1) { - _v = 0; - PyErr_Clear(); - } else { - _v = 1; - } - } - if (_v) { - return _wrap_new_PyPrintPreview__SWIG_1(self,args); - } - } - } - } - - PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_PyPrintPreview'"); - return NULL; -} - - -static PyObject *_wrap_PyPrintPreview__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPrintPreview__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPrintPreview_base_SetCurrentPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pageNum", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPrintPreview_base_SetCurrentPage",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_SetCurrentPage(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPrintPreview_base_PaintPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; - wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; - wxDC *arg3 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "canvas",(char *) "dc", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPrintPreview_base_PaintPage",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_PaintPage(arg2,*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPrintPreview_base_DrawBlankPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; - wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; - wxDC *arg3 = 0 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "canvas",(char *) "dc", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPrintPreview_base_DrawBlankPage",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, - SWIG_POINTER_EXCEPTION | 0)) == -1) - SWIG_fail; - if (arg3 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); - SWIG_fail; - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_DrawBlankPage(arg2,*arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPrintPreview_base_RenderPage(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; - int arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "pageNum", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPrintPreview_base_RenderPage",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_RenderPage(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPrintPreview_base_SetZoom(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "percent", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPrintPreview_base_SetZoom",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_SetZoom(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPrintPreview_base_Print(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; - bool arg2 ; - bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "interactive", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPrintPreview_base_Print",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (bool) SWIG_AsBool(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->base_Print(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); - } - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPrintPreview_base_DetermineScaling(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPrintPreview_base_DetermineScaling",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_DetermineScaling(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * PyPrintPreview_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyPrintPreview, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PyPreviewFrame(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - wxFrame *arg2 = (wxFrame *) 0 ; - wxString *arg3 = 0 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) wxDEFAULT_FRAME_STYLE ; - wxString const &arg7_defvalue = wxPyFrameNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - wxPyPreviewFrame *result; - bool temp3 = False ; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "preview",(char *) "parent",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PyPreviewFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - arg3 = wxString_in_helper(obj2); - if (arg3 == NULL) SWIG_fail; - temp3 = True; - } - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyPreviewFrame *)new wxPyPreviewFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPreviewFrame, 1); - { - if (temp3) - delete arg3; - } - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp3) - delete arg3; - } - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_PyPreviewFrame__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPreviewFrame__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPreviewFrame_SetPreviewCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; - wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "canvas", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewFrame_SetPreviewCanvas",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPreviewCanvas(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPreviewFrame_SetControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; - wxPreviewControlBar *arg2 = (wxPreviewControlBar *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "bar", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewFrame_SetControlBar",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewControlBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetControlBar(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPreviewFrame_base_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPreviewFrame_base_Initialize",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_Initialize(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPreviewFrame_base_CreateCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPreviewFrame_base_CreateCanvas",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_CreateCanvas(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPreviewFrame_base_CreateControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPreviewFrame_base_CreateControlBar",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_CreateControlBar(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * PyPreviewFrame_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyPreviewFrame, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_new_PyPreviewControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; - long arg2 ; - wxWindow *arg3 = (wxWindow *) 0 ; - wxPoint const &arg4_defvalue = wxDefaultPosition ; - wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; - wxSize const &arg5_defvalue = wxDefaultSize ; - wxSize *arg5 = (wxSize *) &arg5_defvalue ; - long arg6 = (long) 0 ; - wxString const &arg7_defvalue = wxPyPanelNameStr ; - wxString *arg7 = (wxString *) &arg7_defvalue ; - wxPyPreviewControlBar *result; - wxPoint temp4 ; - wxSize temp5 ; - bool temp7 = False ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - char *kwnames[] = { - (char *) "preview",(char *) "buttons",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PyPreviewControlBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (long) SWIG_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if (obj3) { - { - arg4 = &temp4; - if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; - } - } - if (obj4) { - { - arg5 = &temp5; - if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; - } - } - if (obj5) { - arg6 = (long) SWIG_AsLong(obj5); - if (PyErr_Occurred()) SWIG_fail; - } - if (obj6) { - { - arg7 = wxString_in_helper(obj6); - if (arg7 == NULL) SWIG_fail; - temp7 = True; - } - } - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxPyPreviewControlBar *)new wxPyPreviewControlBar(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPreviewControlBar, 1); - { - if (temp7) - delete arg7; - } - return resultobj; - fail: - { - if (temp7) - delete arg7; - } - return NULL; -} - - -static PyObject *_wrap_PyPreviewControlBar__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "self",(char *) "_class", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPreviewControlBar__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewControlBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = obj1; - arg3 = obj2; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->_setCallbackInfo(arg2,arg3); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPreviewControlBar_SetPrintPreview(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; - wxPrintPreview *arg2 = (wxPrintPreview *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "preview", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewControlBar_SetPrintPreview",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewControlBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintPreview, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->SetPrintPreview(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPreviewControlBar_base_CreateButtons(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPreviewControlBar_base_CreateButtons",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewControlBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_CreateButtons(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_PyPreviewControlBar_base_SetZoomControl(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; - int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *kwnames[] = { - (char *) "self",(char *) "zoom", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewControlBar_base_SetZoomControl",kwnames,&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewControlBar, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - arg2 = (int) SWIG_AsInt(obj1); - if (PyErr_Occurred()) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->base_SetZoomControl(arg2); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - -static PyObject * PyPreviewControlBar_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_wxPyPreviewControlBar, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyMethodDef SwigMethods[] = { - { (char *)"new_Panel", (PyCFunction) _wrap_new_Panel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PrePanel", (PyCFunction) _wrap_new_PrePanel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Panel_Create", (PyCFunction) _wrap_Panel_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Panel_InitDialog", (PyCFunction) _wrap_Panel_InitDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Panel_swigregister", Panel_swigregister, METH_VARARGS }, - { (char *)"new_ScrolledWindow", (PyCFunction) _wrap_new_ScrolledWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreScrolledWindow", (PyCFunction) _wrap_new_PreScrolledWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrolledWindow_Create", (PyCFunction) _wrap_ScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrolledWindow_SetScrollbars", (PyCFunction) _wrap_ScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrolledWindow_Scroll", (PyCFunction) _wrap_ScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_ScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_ScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrolledWindow_SetScrollRate", (PyCFunction) _wrap_ScrolledWindow_SetScrollRate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_ScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrolledWindow_EnableScrolling", (PyCFunction) _wrap_ScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrolledWindow_GetViewStart", (PyCFunction) _wrap_ScrolledWindow_GetViewStart, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrolledWindow_SetScale", (PyCFunction) _wrap_ScrolledWindow_SetScale, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrolledWindow_GetScaleX", (PyCFunction) _wrap_ScrolledWindow_GetScaleX, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrolledWindow_GetScaleY", (PyCFunction) _wrap_ScrolledWindow_GetScaleY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrolledWindow_CalcScrolledPosition", _wrap_ScrolledWindow_CalcScrolledPosition, METH_VARARGS }, - { (char *)"ScrolledWindow_CalcUnscrolledPosition", _wrap_ScrolledWindow_CalcUnscrolledPosition, METH_VARARGS }, - { (char *)"ScrolledWindow_AdjustScrollbars", (PyCFunction) _wrap_ScrolledWindow_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrolledWindow_CalcScrollInc", (PyCFunction) _wrap_ScrolledWindow_CalcScrollInc, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_ScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrolledWindow_GetTargetWindow", (PyCFunction) _wrap_ScrolledWindow_GetTargetWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrolledWindow_SetTargetRect", (PyCFunction) _wrap_ScrolledWindow_SetTargetRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrolledWindow_GetTargetRect", (PyCFunction) _wrap_ScrolledWindow_GetTargetRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ScrolledWindow_swigregister", ScrolledWindow_swigregister, METH_VARARGS }, - { (char *)"TopLevelWindow_Maximize", (PyCFunction) _wrap_TopLevelWindow_Maximize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TopLevelWindow_Restore", (PyCFunction) _wrap_TopLevelWindow_Restore, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TopLevelWindow_Iconize", (PyCFunction) _wrap_TopLevelWindow_Iconize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TopLevelWindow_IsMaximized", (PyCFunction) _wrap_TopLevelWindow_IsMaximized, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TopLevelWindow_IsIconized", (PyCFunction) _wrap_TopLevelWindow_IsIconized, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TopLevelWindow_GetIcon", (PyCFunction) _wrap_TopLevelWindow_GetIcon, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TopLevelWindow_SetIcon", (PyCFunction) _wrap_TopLevelWindow_SetIcon, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TopLevelWindow_SetIcons", (PyCFunction) _wrap_TopLevelWindow_SetIcons, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TopLevelWindow_ShowFullScreen", (PyCFunction) _wrap_TopLevelWindow_ShowFullScreen, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TopLevelWindow_IsFullScreen", (PyCFunction) _wrap_TopLevelWindow_IsFullScreen, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TopLevelWindow_SetTitle", (PyCFunction) _wrap_TopLevelWindow_SetTitle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TopLevelWindow_GetTitle", (PyCFunction) _wrap_TopLevelWindow_GetTitle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TopLevelWindow_SetShape", (PyCFunction) _wrap_TopLevelWindow_SetShape, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TopLevelWindow_swigregister", TopLevelWindow_swigregister, METH_VARARGS }, - { (char *)"new_Frame", (PyCFunction) _wrap_new_Frame, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreFrame", (PyCFunction) _wrap_new_PreFrame, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Frame_Create", (PyCFunction) _wrap_Frame_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Frame_GetClientAreaOrigin", (PyCFunction) _wrap_Frame_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Frame_SendSizeEvent", (PyCFunction) _wrap_Frame_SendSizeEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Frame_SetMenuBar", (PyCFunction) _wrap_Frame_SetMenuBar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Frame_GetMenuBar", (PyCFunction) _wrap_Frame_GetMenuBar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Frame_ProcessCommand", (PyCFunction) _wrap_Frame_ProcessCommand, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Frame_CreateStatusBar", (PyCFunction) _wrap_Frame_CreateStatusBar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Frame_GetStatusBar", (PyCFunction) _wrap_Frame_GetStatusBar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Frame_SetStatusBar", (PyCFunction) _wrap_Frame_SetStatusBar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Frame_SetStatusText", (PyCFunction) _wrap_Frame_SetStatusText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Frame_SetStatusWidths", (PyCFunction) _wrap_Frame_SetStatusWidths, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Frame_PushStatusText", (PyCFunction) _wrap_Frame_PushStatusText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Frame_PopStatusText", (PyCFunction) _wrap_Frame_PopStatusText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Frame_SetStatusBarPane", (PyCFunction) _wrap_Frame_SetStatusBarPane, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Frame_GetStatusBarPane", (PyCFunction) _wrap_Frame_GetStatusBarPane, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Frame_CreateToolBar", (PyCFunction) _wrap_Frame_CreateToolBar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Frame_GetToolBar", (PyCFunction) _wrap_Frame_GetToolBar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Frame_SetToolBar", (PyCFunction) _wrap_Frame_SetToolBar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Frame_DoGiveHelp", (PyCFunction) _wrap_Frame_DoGiveHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Frame_DoMenuUpdates", (PyCFunction) _wrap_Frame_DoMenuUpdates, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Frame_swigregister", Frame_swigregister, METH_VARARGS }, - { (char *)"new_Dialog", (PyCFunction) _wrap_new_Dialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreDialog", (PyCFunction) _wrap_new_PreDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Dialog_Create", (PyCFunction) _wrap_Dialog_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Dialog_SetReturnCode", (PyCFunction) _wrap_Dialog_SetReturnCode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Dialog_GetReturnCode", (PyCFunction) _wrap_Dialog_GetReturnCode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Dialog_CreateTextSizer", (PyCFunction) _wrap_Dialog_CreateTextSizer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Dialog_CreateButtonSizer", (PyCFunction) _wrap_Dialog_CreateButtonSizer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Dialog_IsModal", (PyCFunction) _wrap_Dialog_IsModal, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Dialog_ShowModal", (PyCFunction) _wrap_Dialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Dialog_EndModal", (PyCFunction) _wrap_Dialog_EndModal, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Dialog_swigregister", Dialog_swigregister, METH_VARARGS }, - { (char *)"new_MiniFrame", (PyCFunction) _wrap_new_MiniFrame, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreMiniFrame", (PyCFunction) _wrap_new_PreMiniFrame, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MiniFrame_Create", (PyCFunction) _wrap_MiniFrame_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MiniFrame_swigregister", MiniFrame_swigregister, METH_VARARGS }, - { (char *)"new_SplashScreenWindow", (PyCFunction) _wrap_new_SplashScreenWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplashScreenWindow_SetBitmap", (PyCFunction) _wrap_SplashScreenWindow_SetBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplashScreenWindow_GetBitmap", (PyCFunction) _wrap_SplashScreenWindow_GetBitmap, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplashScreenWindow_swigregister", SplashScreenWindow_swigregister, METH_VARARGS }, - { (char *)"new_SplashScreen", (PyCFunction) _wrap_new_SplashScreen, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplashScreen_GetSplashStyle", (PyCFunction) _wrap_SplashScreen_GetSplashStyle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplashScreen_GetSplashWindow", (PyCFunction) _wrap_SplashScreen_GetSplashWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplashScreen_GetTimeout", (PyCFunction) _wrap_SplashScreen_GetTimeout, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplashScreen_swigregister", SplashScreen_swigregister, METH_VARARGS }, - { (char *)"new_StatusBar", (PyCFunction) _wrap_new_StatusBar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreStatusBar", (PyCFunction) _wrap_new_PreStatusBar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StatusBar_Create", (PyCFunction) _wrap_StatusBar_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StatusBar_SetFieldsCount", (PyCFunction) _wrap_StatusBar_SetFieldsCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StatusBar_GetFieldsCount", (PyCFunction) _wrap_StatusBar_GetFieldsCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StatusBar_SetStatusText", (PyCFunction) _wrap_StatusBar_SetStatusText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StatusBar_GetStatusText", (PyCFunction) _wrap_StatusBar_GetStatusText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StatusBar_PushStatusText", (PyCFunction) _wrap_StatusBar_PushStatusText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StatusBar_PopStatusText", (PyCFunction) _wrap_StatusBar_PopStatusText, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StatusBar_SetStatusWidths", (PyCFunction) _wrap_StatusBar_SetStatusWidths, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StatusBar_GetFieldRect", (PyCFunction) _wrap_StatusBar_GetFieldRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StatusBar_SetMinHeight", (PyCFunction) _wrap_StatusBar_SetMinHeight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StatusBar_GetBorderX", (PyCFunction) _wrap_StatusBar_GetBorderX, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StatusBar_GetBorderY", (PyCFunction) _wrap_StatusBar_GetBorderY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"StatusBar_swigregister", StatusBar_swigregister, METH_VARARGS }, - { (char *)"new_SplitterWindow", (PyCFunction) _wrap_new_SplitterWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreSplitterWindow", (PyCFunction) _wrap_new_PreSplitterWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_Create", (PyCFunction) _wrap_SplitterWindow_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_GetWindow1", (PyCFunction) _wrap_SplitterWindow_GetWindow1, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_GetWindow2", (PyCFunction) _wrap_SplitterWindow_GetWindow2, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_SetSplitMode", (PyCFunction) _wrap_SplitterWindow_SetSplitMode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_GetSplitMode", (PyCFunction) _wrap_SplitterWindow_GetSplitMode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_Initialize", (PyCFunction) _wrap_SplitterWindow_Initialize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_SplitVertically", (PyCFunction) _wrap_SplitterWindow_SplitVertically, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_SplitHorizontally", (PyCFunction) _wrap_SplitterWindow_SplitHorizontally, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_Unsplit", (PyCFunction) _wrap_SplitterWindow_Unsplit, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_ReplaceWindow", (PyCFunction) _wrap_SplitterWindow_ReplaceWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_UpdateSize", (PyCFunction) _wrap_SplitterWindow_UpdateSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_IsSplit", (PyCFunction) _wrap_SplitterWindow_IsSplit, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_SetSashSize", (PyCFunction) _wrap_SplitterWindow_SetSashSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_SetBorderSize", (PyCFunction) _wrap_SplitterWindow_SetBorderSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_GetSashSize", (PyCFunction) _wrap_SplitterWindow_GetSashSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_GetBorderSize", (PyCFunction) _wrap_SplitterWindow_GetBorderSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_SetSashPosition", (PyCFunction) _wrap_SplitterWindow_SetSashPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_GetSashPosition", (PyCFunction) _wrap_SplitterWindow_GetSashPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_SetMinimumPaneSize", (PyCFunction) _wrap_SplitterWindow_SetMinimumPaneSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_GetMinimumPaneSize", (PyCFunction) _wrap_SplitterWindow_GetMinimumPaneSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_SashHitTest", (PyCFunction) _wrap_SplitterWindow_SashHitTest, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_SizeWindows", (PyCFunction) _wrap_SplitterWindow_SizeWindows, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_SetNeedUpdating", (PyCFunction) _wrap_SplitterWindow_SetNeedUpdating, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_GetNeedUpdating", (PyCFunction) _wrap_SplitterWindow_GetNeedUpdating, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterWindow_swigregister", SplitterWindow_swigregister, METH_VARARGS }, - { (char *)"new_SplitterEvent", (PyCFunction) _wrap_new_SplitterEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterEvent_SetSashPosition", (PyCFunction) _wrap_SplitterEvent_SetSashPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterEvent_GetSashPosition", (PyCFunction) _wrap_SplitterEvent_GetSashPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterEvent_GetWindowBeingRemoved", (PyCFunction) _wrap_SplitterEvent_GetWindowBeingRemoved, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterEvent_GetX", (PyCFunction) _wrap_SplitterEvent_GetX, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterEvent_GetY", (PyCFunction) _wrap_SplitterEvent_GetY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SplitterEvent_swigregister", SplitterEvent_swigregister, METH_VARARGS }, - { (char *)"new_SashWindow", (PyCFunction) _wrap_new_SashWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreSashWindow", (PyCFunction) _wrap_new_PreSashWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashWindow_Create", (PyCFunction) _wrap_SashWindow_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashWindow_SetSashVisible", (PyCFunction) _wrap_SashWindow_SetSashVisible, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashWindow_GetSashVisible", (PyCFunction) _wrap_SashWindow_GetSashVisible, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashWindow_SetSashBorder", (PyCFunction) _wrap_SashWindow_SetSashBorder, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashWindow_HasBorder", (PyCFunction) _wrap_SashWindow_HasBorder, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashWindow_GetEdgeMargin", (PyCFunction) _wrap_SashWindow_GetEdgeMargin, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashWindow_SetDefaultBorderSize", (PyCFunction) _wrap_SashWindow_SetDefaultBorderSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashWindow_GetDefaultBorderSize", (PyCFunction) _wrap_SashWindow_GetDefaultBorderSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashWindow_SetExtraBorderSize", (PyCFunction) _wrap_SashWindow_SetExtraBorderSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashWindow_GetExtraBorderSize", (PyCFunction) _wrap_SashWindow_GetExtraBorderSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashWindow_SetMinimumSizeX", (PyCFunction) _wrap_SashWindow_SetMinimumSizeX, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashWindow_SetMinimumSizeY", (PyCFunction) _wrap_SashWindow_SetMinimumSizeY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashWindow_GetMinimumSizeX", (PyCFunction) _wrap_SashWindow_GetMinimumSizeX, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashWindow_GetMinimumSizeY", (PyCFunction) _wrap_SashWindow_GetMinimumSizeY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashWindow_SetMaximumSizeX", (PyCFunction) _wrap_SashWindow_SetMaximumSizeX, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashWindow_SetMaximumSizeY", (PyCFunction) _wrap_SashWindow_SetMaximumSizeY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashWindow_GetMaximumSizeX", (PyCFunction) _wrap_SashWindow_GetMaximumSizeX, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashWindow_GetMaximumSizeY", (PyCFunction) _wrap_SashWindow_GetMaximumSizeY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashWindow_SashHitTest", (PyCFunction) _wrap_SashWindow_SashHitTest, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashWindow_SizeWindows", (PyCFunction) _wrap_SashWindow_SizeWindows, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashWindow_swigregister", SashWindow_swigregister, METH_VARARGS }, - { (char *)"new_SashEvent", (PyCFunction) _wrap_new_SashEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashEvent_SetEdge", (PyCFunction) _wrap_SashEvent_SetEdge, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashEvent_GetEdge", (PyCFunction) _wrap_SashEvent_GetEdge, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashEvent_SetDragRect", (PyCFunction) _wrap_SashEvent_SetDragRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashEvent_GetDragRect", (PyCFunction) _wrap_SashEvent_GetDragRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashEvent_SetDragStatus", (PyCFunction) _wrap_SashEvent_SetDragStatus, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashEvent_GetDragStatus", (PyCFunction) _wrap_SashEvent_GetDragStatus, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashEvent_swigregister", SashEvent_swigregister, METH_VARARGS }, - { (char *)"new_QueryLayoutInfoEvent", (PyCFunction) _wrap_new_QueryLayoutInfoEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"QueryLayoutInfoEvent_SetRequestedLength", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetRequestedLength, METH_VARARGS | METH_KEYWORDS }, - { (char *)"QueryLayoutInfoEvent_GetRequestedLength", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetRequestedLength, METH_VARARGS | METH_KEYWORDS }, - { (char *)"QueryLayoutInfoEvent_SetFlags", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetFlags, METH_VARARGS | METH_KEYWORDS }, - { (char *)"QueryLayoutInfoEvent_GetFlags", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetFlags, METH_VARARGS | METH_KEYWORDS }, - { (char *)"QueryLayoutInfoEvent_SetSize", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"QueryLayoutInfoEvent_GetSize", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"QueryLayoutInfoEvent_SetOrientation", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"QueryLayoutInfoEvent_GetOrientation", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"QueryLayoutInfoEvent_SetAlignment", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetAlignment, METH_VARARGS | METH_KEYWORDS }, - { (char *)"QueryLayoutInfoEvent_GetAlignment", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetAlignment, METH_VARARGS | METH_KEYWORDS }, - { (char *)"QueryLayoutInfoEvent_swigregister", QueryLayoutInfoEvent_swigregister, METH_VARARGS }, - { (char *)"new_CalculateLayoutEvent", (PyCFunction) _wrap_new_CalculateLayoutEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CalculateLayoutEvent_SetFlags", (PyCFunction) _wrap_CalculateLayoutEvent_SetFlags, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CalculateLayoutEvent_GetFlags", (PyCFunction) _wrap_CalculateLayoutEvent_GetFlags, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CalculateLayoutEvent_SetRect", (PyCFunction) _wrap_CalculateLayoutEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CalculateLayoutEvent_GetRect", (PyCFunction) _wrap_CalculateLayoutEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"CalculateLayoutEvent_swigregister", CalculateLayoutEvent_swigregister, METH_VARARGS }, - { (char *)"new_SashLayoutWindow", (PyCFunction) _wrap_new_SashLayoutWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreSashLayoutWindow", (PyCFunction) _wrap_new_PreSashLayoutWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashLayoutWindow_Create", (PyCFunction) _wrap_SashLayoutWindow_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashLayoutWindow_GetAlignment", (PyCFunction) _wrap_SashLayoutWindow_GetAlignment, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashLayoutWindow_GetOrientation", (PyCFunction) _wrap_SashLayoutWindow_GetOrientation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashLayoutWindow_SetAlignment", (PyCFunction) _wrap_SashLayoutWindow_SetAlignment, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashLayoutWindow_SetDefaultSize", (PyCFunction) _wrap_SashLayoutWindow_SetDefaultSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashLayoutWindow_SetOrientation", (PyCFunction) _wrap_SashLayoutWindow_SetOrientation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SashLayoutWindow_swigregister", SashLayoutWindow_swigregister, METH_VARARGS }, - { (char *)"new_LayoutAlgorithm", (PyCFunction) _wrap_new_LayoutAlgorithm, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_LayoutAlgorithm", (PyCFunction) _wrap_delete_LayoutAlgorithm, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LayoutAlgorithm_LayoutMDIFrame", (PyCFunction) _wrap_LayoutAlgorithm_LayoutMDIFrame, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LayoutAlgorithm_LayoutFrame", (PyCFunction) _wrap_LayoutAlgorithm_LayoutFrame, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LayoutAlgorithm_LayoutWindow", (PyCFunction) _wrap_LayoutAlgorithm_LayoutWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"LayoutAlgorithm_swigregister", LayoutAlgorithm_swigregister, METH_VARARGS }, - { (char *)"new_PopupWindow", (PyCFunction) _wrap_new_PopupWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PrePopupWindow", (PyCFunction) _wrap_new_PrePopupWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PopupWindow_Create", (PyCFunction) _wrap_PopupWindow_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PopupWindow_Position", (PyCFunction) _wrap_PopupWindow_Position, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PopupWindow_swigregister", PopupWindow_swigregister, METH_VARARGS }, - { (char *)"new_PopupTransientWindow", (PyCFunction) _wrap_new_PopupTransientWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PrePopupTransientWindow", (PyCFunction) _wrap_new_PrePopupTransientWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PopupTransientWindow__setCallbackInfo", (PyCFunction) _wrap_PopupTransientWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PopupTransientWindow_Popup", (PyCFunction) _wrap_PopupTransientWindow_Popup, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PopupTransientWindow_Dismiss", (PyCFunction) _wrap_PopupTransientWindow_Dismiss, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PopupTransientWindow_swigregister", PopupTransientWindow_swigregister, METH_VARARGS }, - { (char *)"new_TipWindow", (PyCFunction) _wrap_new_TipWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TipWindow_SetBoundingRect", (PyCFunction) _wrap_TipWindow_SetBoundingRect, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TipWindow_Close", (PyCFunction) _wrap_TipWindow_Close, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TipWindow_swigregister", TipWindow_swigregister, METH_VARARGS }, - { (char *)"new_VScrolledWindow", (PyCFunction) _wrap_new_VScrolledWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreVScrolledWindow", (PyCFunction) _wrap_new_PreVScrolledWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VScrolledWindow__setCallbackInfo", (PyCFunction) _wrap_VScrolledWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VScrolledWindow_Create", (PyCFunction) _wrap_VScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VScrolledWindow_SetLineCount", (PyCFunction) _wrap_VScrolledWindow_SetLineCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VScrolledWindow_ScrollToLine", (PyCFunction) _wrap_VScrolledWindow_ScrollToLine, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VScrolledWindow_ScrollLines", (PyCFunction) _wrap_VScrolledWindow_ScrollLines, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VScrolledWindow_ScrollPages", (PyCFunction) _wrap_VScrolledWindow_ScrollPages, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VScrolledWindow_RefreshLine", (PyCFunction) _wrap_VScrolledWindow_RefreshLine, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VScrolledWindow_RefreshLines", (PyCFunction) _wrap_VScrolledWindow_RefreshLines, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VScrolledWindow_HitTestXT", (PyCFunction) _wrap_VScrolledWindow_HitTestXT, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VScrolledWindow_HitTest", (PyCFunction) _wrap_VScrolledWindow_HitTest, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VScrolledWindow_RefreshAll", (PyCFunction) _wrap_VScrolledWindow_RefreshAll, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VScrolledWindow_GetLineCount", (PyCFunction) _wrap_VScrolledWindow_GetLineCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VScrolledWindow_GetFirstVisibleLine", (PyCFunction) _wrap_VScrolledWindow_GetFirstVisibleLine, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VScrolledWindow_GetLastVisibleLine", (PyCFunction) _wrap_VScrolledWindow_GetLastVisibleLine, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VScrolledWindow_IsVisible", (PyCFunction) _wrap_VScrolledWindow_IsVisible, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VScrolledWindow_swigregister", VScrolledWindow_swigregister, METH_VARARGS }, - { (char *)"new_VListBox", (PyCFunction) _wrap_new_VListBox, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreVListBox", (PyCFunction) _wrap_new_PreVListBox, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VListBox__setCallbackInfo", (PyCFunction) _wrap_VListBox__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VListBox_Create", (PyCFunction) _wrap_VListBox_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VListBox_GetItemCount", (PyCFunction) _wrap_VListBox_GetItemCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VListBox_HasMultipleSelection", (PyCFunction) _wrap_VListBox_HasMultipleSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VListBox_GetSelection", (PyCFunction) _wrap_VListBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VListBox_IsCurrent", (PyCFunction) _wrap_VListBox_IsCurrent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VListBox_IsSelected", (PyCFunction) _wrap_VListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VListBox_GetSelectedCount", (PyCFunction) _wrap_VListBox_GetSelectedCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VListBox_GetFirstSelected", (PyCFunction) _wrap_VListBox_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VListBox_GetNextSelected", (PyCFunction) _wrap_VListBox_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VListBox_GetMargins", (PyCFunction) _wrap_VListBox_GetMargins, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VListBox_GetSelectionBackground", (PyCFunction) _wrap_VListBox_GetSelectionBackground, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VListBox_SetItemCount", (PyCFunction) _wrap_VListBox_SetItemCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VListBox_Clear", (PyCFunction) _wrap_VListBox_Clear, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VListBox_SetSelection", (PyCFunction) _wrap_VListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VListBox_Select", (PyCFunction) _wrap_VListBox_Select, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VListBox_SelectRange", (PyCFunction) _wrap_VListBox_SelectRange, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VListBox_Toggle", (PyCFunction) _wrap_VListBox_Toggle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VListBox_SelectAll", (PyCFunction) _wrap_VListBox_SelectAll, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VListBox_DeselectAll", (PyCFunction) _wrap_VListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VListBox_SetMargins", (PyCFunction) _wrap_VListBox_SetMargins, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VListBox_SetMarginsXY", (PyCFunction) _wrap_VListBox_SetMarginsXY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VListBox_SetSelectionBackground", (PyCFunction) _wrap_VListBox_SetSelectionBackground, METH_VARARGS | METH_KEYWORDS }, - { (char *)"VListBox_swigregister", VListBox_swigregister, METH_VARARGS }, - { (char *)"new_HtmlListBox", (PyCFunction) _wrap_new_HtmlListBox, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreHtmlListBox", (PyCFunction) _wrap_new_PreHtmlListBox, METH_VARARGS | METH_KEYWORDS }, - { (char *)"HtmlListBox__setCallbackInfo", (PyCFunction) _wrap_HtmlListBox__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"HtmlListBox_Create", (PyCFunction) _wrap_HtmlListBox_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"HtmlListBox_RefreshAll", (PyCFunction) _wrap_HtmlListBox_RefreshAll, METH_VARARGS | METH_KEYWORDS }, - { (char *)"HtmlListBox_SetItemCount", (PyCFunction) _wrap_HtmlListBox_SetItemCount, METH_VARARGS | METH_KEYWORDS }, - { (char *)"HtmlListBox_swigregister", HtmlListBox_swigregister, METH_VARARGS }, - { (char *)"new_TaskBarIcon", (PyCFunction) _wrap_new_TaskBarIcon, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_TaskBarIcon", (PyCFunction) _wrap_delete_TaskBarIcon, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TaskBarIcon_Destroy", (PyCFunction) _wrap_TaskBarIcon_Destroy, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TaskBarIcon_IsOk", (PyCFunction) _wrap_TaskBarIcon_IsOk, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TaskBarIcon_IsIconInstalled", (PyCFunction) _wrap_TaskBarIcon_IsIconInstalled, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TaskBarIcon_SetIcon", (PyCFunction) _wrap_TaskBarIcon_SetIcon, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TaskBarIcon_RemoveIcon", (PyCFunction) _wrap_TaskBarIcon_RemoveIcon, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TaskBarIcon_PopupMenu", (PyCFunction) _wrap_TaskBarIcon_PopupMenu, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TaskBarIcon_swigregister", TaskBarIcon_swigregister, METH_VARARGS }, - { (char *)"new_TaskBarIconEvent", (PyCFunction) _wrap_new_TaskBarIconEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TaskBarIconEvent_swigregister", TaskBarIconEvent_swigregister, METH_VARARGS }, - { (char *)"new_ColourData", (PyCFunction) _wrap_new_ColourData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_ColourData", (PyCFunction) _wrap_delete_ColourData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ColourData_GetChooseFull", (PyCFunction) _wrap_ColourData_GetChooseFull, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ColourData_GetColour", (PyCFunction) _wrap_ColourData_GetColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ColourData_GetCustomColour", (PyCFunction) _wrap_ColourData_GetCustomColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ColourData_SetChooseFull", (PyCFunction) _wrap_ColourData_SetChooseFull, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ColourData_SetColour", (PyCFunction) _wrap_ColourData_SetColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ColourData_SetCustomColour", (PyCFunction) _wrap_ColourData_SetCustomColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ColourData_swigregister", ColourData_swigregister, METH_VARARGS }, - { (char *)"new_ColourDialog", (PyCFunction) _wrap_new_ColourDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ColourDialog_GetColourData", (PyCFunction) _wrap_ColourDialog_GetColourData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ColourDialog_swigregister", ColourDialog_swigregister, METH_VARARGS }, - { (char *)"new_DirDialog", (PyCFunction) _wrap_new_DirDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DirDialog_GetPath", (PyCFunction) _wrap_DirDialog_GetPath, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DirDialog_GetMessage", (PyCFunction) _wrap_DirDialog_GetMessage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DirDialog_GetStyle", (PyCFunction) _wrap_DirDialog_GetStyle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DirDialog_SetMessage", (PyCFunction) _wrap_DirDialog_SetMessage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DirDialog_SetPath", (PyCFunction) _wrap_DirDialog_SetPath, METH_VARARGS | METH_KEYWORDS }, - { (char *)"DirDialog_swigregister", DirDialog_swigregister, METH_VARARGS }, - { (char *)"new_FileDialog", (PyCFunction) _wrap_new_FileDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDialog_SetMessage", (PyCFunction) _wrap_FileDialog_SetMessage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDialog_SetPath", (PyCFunction) _wrap_FileDialog_SetPath, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDialog_SetDirectory", (PyCFunction) _wrap_FileDialog_SetDirectory, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDialog_SetFilename", (PyCFunction) _wrap_FileDialog_SetFilename, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDialog_SetWildcard", (PyCFunction) _wrap_FileDialog_SetWildcard, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDialog_SetStyle", (PyCFunction) _wrap_FileDialog_SetStyle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDialog_SetFilterIndex", (PyCFunction) _wrap_FileDialog_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDialog_GetMessage", (PyCFunction) _wrap_FileDialog_GetMessage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDialog_GetPath", (PyCFunction) _wrap_FileDialog_GetPath, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDialog_GetDirectory", (PyCFunction) _wrap_FileDialog_GetDirectory, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDialog_GetFilename", (PyCFunction) _wrap_FileDialog_GetFilename, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDialog_GetWildcard", (PyCFunction) _wrap_FileDialog_GetWildcard, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDialog_GetStyle", (PyCFunction) _wrap_FileDialog_GetStyle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDialog_GetFilterIndex", (PyCFunction) _wrap_FileDialog_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDialog_GetFilenames", (PyCFunction) _wrap_FileDialog_GetFilenames, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDialog_GetPaths", (PyCFunction) _wrap_FileDialog_GetPaths, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FileDialog_swigregister", FileDialog_swigregister, METH_VARARGS }, - { (char *)"new_MultiChoiceDialog", (PyCFunction) _wrap_new_MultiChoiceDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MultiChoiceDialog_SetSelections", (PyCFunction) _wrap_MultiChoiceDialog_SetSelections, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MultiChoiceDialog_GetSelections", (PyCFunction) _wrap_MultiChoiceDialog_GetSelections, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MultiChoiceDialog_swigregister", MultiChoiceDialog_swigregister, METH_VARARGS }, - { (char *)"new_SingleChoiceDialog", (PyCFunction) _wrap_new_SingleChoiceDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SingleChoiceDialog_GetSelection", (PyCFunction) _wrap_SingleChoiceDialog_GetSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SingleChoiceDialog_GetStringSelection", (PyCFunction) _wrap_SingleChoiceDialog_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SingleChoiceDialog_SetSelection", (PyCFunction) _wrap_SingleChoiceDialog_SetSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"SingleChoiceDialog_swigregister", SingleChoiceDialog_swigregister, METH_VARARGS }, - { (char *)"new_TextEntryDialog", (PyCFunction) _wrap_new_TextEntryDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextEntryDialog_GetValue", (PyCFunction) _wrap_TextEntryDialog_GetValue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextEntryDialog_SetValue", (PyCFunction) _wrap_TextEntryDialog_SetValue, METH_VARARGS | METH_KEYWORDS }, - { (char *)"TextEntryDialog_swigregister", TextEntryDialog_swigregister, METH_VARARGS }, - { (char *)"new_FontData", (PyCFunction) _wrap_new_FontData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_FontData", (PyCFunction) _wrap_delete_FontData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontData_EnableEffects", (PyCFunction) _wrap_FontData_EnableEffects, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontData_GetAllowSymbols", (PyCFunction) _wrap_FontData_GetAllowSymbols, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontData_GetColour", (PyCFunction) _wrap_FontData_GetColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontData_GetChosenFont", (PyCFunction) _wrap_FontData_GetChosenFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontData_GetEnableEffects", (PyCFunction) _wrap_FontData_GetEnableEffects, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontData_GetInitialFont", (PyCFunction) _wrap_FontData_GetInitialFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontData_GetShowHelp", (PyCFunction) _wrap_FontData_GetShowHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontData_SetAllowSymbols", (PyCFunction) _wrap_FontData_SetAllowSymbols, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontData_SetChosenFont", (PyCFunction) _wrap_FontData_SetChosenFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontData_SetColour", (PyCFunction) _wrap_FontData_SetColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontData_SetInitialFont", (PyCFunction) _wrap_FontData_SetInitialFont, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontData_SetRange", (PyCFunction) _wrap_FontData_SetRange, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontData_SetShowHelp", (PyCFunction) _wrap_FontData_SetShowHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontData_swigregister", FontData_swigregister, METH_VARARGS }, - { (char *)"new_FontDialog", (PyCFunction) _wrap_new_FontDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontDialog_GetFontData", (PyCFunction) _wrap_FontDialog_GetFontData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FontDialog_swigregister", FontDialog_swigregister, METH_VARARGS }, - { (char *)"new_MessageDialog", (PyCFunction) _wrap_new_MessageDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MessageDialog_swigregister", MessageDialog_swigregister, METH_VARARGS }, - { (char *)"new_ProgressDialog", (PyCFunction) _wrap_new_ProgressDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ProgressDialog_Update", (PyCFunction) _wrap_ProgressDialog_Update, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ProgressDialog_Resume", (PyCFunction) _wrap_ProgressDialog_Resume, METH_VARARGS | METH_KEYWORDS }, - { (char *)"ProgressDialog_swigregister", ProgressDialog_swigregister, METH_VARARGS }, - { (char *)"new_FindDialogEvent", (PyCFunction) _wrap_new_FindDialogEvent, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FindDialogEvent_GetFlags", (PyCFunction) _wrap_FindDialogEvent_GetFlags, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FindDialogEvent_GetFindString", (PyCFunction) _wrap_FindDialogEvent_GetFindString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FindDialogEvent_GetReplaceString", (PyCFunction) _wrap_FindDialogEvent_GetReplaceString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FindDialogEvent_GetDialog", (PyCFunction) _wrap_FindDialogEvent_GetDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FindDialogEvent_SetFlags", (PyCFunction) _wrap_FindDialogEvent_SetFlags, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FindDialogEvent_SetFindString", (PyCFunction) _wrap_FindDialogEvent_SetFindString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FindDialogEvent_SetReplaceString", (PyCFunction) _wrap_FindDialogEvent_SetReplaceString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FindDialogEvent_swigregister", FindDialogEvent_swigregister, METH_VARARGS }, - { (char *)"new_FindReplaceData", (PyCFunction) _wrap_new_FindReplaceData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_FindReplaceData", (PyCFunction) _wrap_delete_FindReplaceData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FindReplaceData_GetFindString", (PyCFunction) _wrap_FindReplaceData_GetFindString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FindReplaceData_GetReplaceString", (PyCFunction) _wrap_FindReplaceData_GetReplaceString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FindReplaceData_GetFlags", (PyCFunction) _wrap_FindReplaceData_GetFlags, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FindReplaceData_SetFlags", (PyCFunction) _wrap_FindReplaceData_SetFlags, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FindReplaceData_SetFindString", (PyCFunction) _wrap_FindReplaceData_SetFindString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FindReplaceData_SetReplaceString", (PyCFunction) _wrap_FindReplaceData_SetReplaceString, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FindReplaceData_swigregister", FindReplaceData_swigregister, METH_VARARGS }, - { (char *)"new_FindReplaceDialog", (PyCFunction) _wrap_new_FindReplaceDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreFindReplaceDialog", (PyCFunction) _wrap_new_PreFindReplaceDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FindReplaceDialog_Create", (PyCFunction) _wrap_FindReplaceDialog_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FindReplaceDialog_GetData", (PyCFunction) _wrap_FindReplaceDialog_GetData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FindReplaceDialog_SetData", (PyCFunction) _wrap_FindReplaceDialog_SetData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"FindReplaceDialog_swigregister", FindReplaceDialog_swigregister, METH_VARARGS }, - { (char *)"new_MDIParentFrame", (PyCFunction) _wrap_new_MDIParentFrame, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreMDIParentFrame", (PyCFunction) _wrap_new_PreMDIParentFrame, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MDIParentFrame_Create", (PyCFunction) _wrap_MDIParentFrame_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MDIParentFrame_ActivateNext", (PyCFunction) _wrap_MDIParentFrame_ActivateNext, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MDIParentFrame_ActivatePrevious", (PyCFunction) _wrap_MDIParentFrame_ActivatePrevious, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MDIParentFrame_ArrangeIcons", (PyCFunction) _wrap_MDIParentFrame_ArrangeIcons, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MDIParentFrame_Cascade", (PyCFunction) _wrap_MDIParentFrame_Cascade, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MDIParentFrame_GetActiveChild", (PyCFunction) _wrap_MDIParentFrame_GetActiveChild, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MDIParentFrame_GetClientWindow", (PyCFunction) _wrap_MDIParentFrame_GetClientWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MDIParentFrame_GetToolBar", (PyCFunction) _wrap_MDIParentFrame_GetToolBar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MDIParentFrame_GetWindowMenu", (PyCFunction) _wrap_MDIParentFrame_GetWindowMenu, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MDIParentFrame_SetWindowMenu", (PyCFunction) _wrap_MDIParentFrame_SetWindowMenu, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MDIParentFrame_SetToolBar", (PyCFunction) _wrap_MDIParentFrame_SetToolBar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MDIParentFrame_Tile", (PyCFunction) _wrap_MDIParentFrame_Tile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MDIParentFrame_swigregister", MDIParentFrame_swigregister, METH_VARARGS }, - { (char *)"new_MDIChildFrame", (PyCFunction) _wrap_new_MDIChildFrame, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreMDIChildFrame", (PyCFunction) _wrap_new_PreMDIChildFrame, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MDIChildFrame_Create", (PyCFunction) _wrap_MDIChildFrame_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MDIChildFrame_Activate", (PyCFunction) _wrap_MDIChildFrame_Activate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MDIChildFrame_Maximize", (PyCFunction) _wrap_MDIChildFrame_Maximize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MDIChildFrame_Restore", (PyCFunction) _wrap_MDIChildFrame_Restore, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MDIChildFrame_swigregister", MDIChildFrame_swigregister, METH_VARARGS }, - { (char *)"new_MDIClientWindow", (PyCFunction) _wrap_new_MDIClientWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PreMDIClientWindow", (PyCFunction) _wrap_new_PreMDIClientWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MDIClientWindow_Create", (PyCFunction) _wrap_MDIClientWindow_Create, METH_VARARGS | METH_KEYWORDS }, - { (char *)"MDIClientWindow_swigregister", MDIClientWindow_swigregister, METH_VARARGS }, - { (char *)"new_PyWindow", (PyCFunction) _wrap_new_PyWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PrePyWindow", (PyCFunction) _wrap_new_PrePyWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyWindow__setCallbackInfo", (PyCFunction) _wrap_PyWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyWindow_base_DoMoveWindow", (PyCFunction) _wrap_PyWindow_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyWindow_base_DoSetSize", (PyCFunction) _wrap_PyWindow_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyWindow_base_DoSetClientSize", (PyCFunction) _wrap_PyWindow_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyWindow_base_DoSetVirtualSize", (PyCFunction) _wrap_PyWindow_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyWindow_base_DoGetSize", (PyCFunction) _wrap_PyWindow_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyWindow_base_DoGetClientSize", (PyCFunction) _wrap_PyWindow_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyWindow_base_DoGetPosition", (PyCFunction) _wrap_PyWindow_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyWindow_base_DoGetVirtualSize", (PyCFunction) _wrap_PyWindow_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyWindow_base_DoGetBestSize", (PyCFunction) _wrap_PyWindow_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyWindow_base_InitDialog", (PyCFunction) _wrap_PyWindow_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyWindow_base_TransferDataToWindow", (PyCFunction) _wrap_PyWindow_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyWindow_base_TransferDataFromWindow", (PyCFunction) _wrap_PyWindow_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyWindow_base_Validate", (PyCFunction) _wrap_PyWindow_base_Validate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyWindow_base_AcceptsFocus", (PyCFunction) _wrap_PyWindow_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyWindow_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyWindow_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyWindow_base_GetMaxSize", (PyCFunction) _wrap_PyWindow_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyWindow_base_AddChild", (PyCFunction) _wrap_PyWindow_base_AddChild, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyWindow_base_RemoveChild", (PyCFunction) _wrap_PyWindow_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyWindow_base_ShouldInheritColours", (PyCFunction) _wrap_PyWindow_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyWindow_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyWindow_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyWindow_swigregister", PyWindow_swigregister, METH_VARARGS }, - { (char *)"new_PyPanel", (PyCFunction) _wrap_new_PyPanel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PrePyPanel", (PyCFunction) _wrap_new_PrePyPanel, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPanel__setCallbackInfo", (PyCFunction) _wrap_PyPanel__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPanel_base_DoMoveWindow", (PyCFunction) _wrap_PyPanel_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPanel_base_DoSetSize", (PyCFunction) _wrap_PyPanel_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPanel_base_DoSetClientSize", (PyCFunction) _wrap_PyPanel_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPanel_base_DoSetVirtualSize", (PyCFunction) _wrap_PyPanel_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPanel_base_DoGetSize", (PyCFunction) _wrap_PyPanel_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPanel_base_DoGetClientSize", (PyCFunction) _wrap_PyPanel_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPanel_base_DoGetPosition", (PyCFunction) _wrap_PyPanel_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPanel_base_DoGetVirtualSize", (PyCFunction) _wrap_PyPanel_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPanel_base_DoGetBestSize", (PyCFunction) _wrap_PyPanel_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPanel_base_InitDialog", (PyCFunction) _wrap_PyPanel_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPanel_base_TransferDataToWindow", (PyCFunction) _wrap_PyPanel_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPanel_base_TransferDataFromWindow", (PyCFunction) _wrap_PyPanel_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPanel_base_Validate", (PyCFunction) _wrap_PyPanel_base_Validate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPanel_base_AcceptsFocus", (PyCFunction) _wrap_PyPanel_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPanel_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyPanel_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPanel_base_GetMaxSize", (PyCFunction) _wrap_PyPanel_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPanel_base_AddChild", (PyCFunction) _wrap_PyPanel_base_AddChild, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPanel_base_RemoveChild", (PyCFunction) _wrap_PyPanel_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPanel_base_ShouldInheritColours", (PyCFunction) _wrap_PyPanel_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPanel_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyPanel_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPanel_swigregister", PyPanel_swigregister, METH_VARARGS }, - { (char *)"new_PyScrolledWindow", (PyCFunction) _wrap_new_PyScrolledWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"new_PrePyScrolledWindow", (PyCFunction) _wrap_new_PrePyScrolledWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyScrolledWindow__setCallbackInfo", (PyCFunction) _wrap_PyScrolledWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyScrolledWindow_base_DoMoveWindow", (PyCFunction) _wrap_PyScrolledWindow_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyScrolledWindow_base_DoSetSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyScrolledWindow_base_DoSetClientSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyScrolledWindow_base_DoSetVirtualSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyScrolledWindow_base_DoGetSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyScrolledWindow_base_DoGetClientSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyScrolledWindow_base_DoGetPosition", (PyCFunction) _wrap_PyScrolledWindow_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyScrolledWindow_base_DoGetVirtualSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyScrolledWindow_base_DoGetBestSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyScrolledWindow_base_InitDialog", (PyCFunction) _wrap_PyScrolledWindow_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyScrolledWindow_base_TransferDataToWindow", (PyCFunction) _wrap_PyScrolledWindow_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyScrolledWindow_base_TransferDataFromWindow", (PyCFunction) _wrap_PyScrolledWindow_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyScrolledWindow_base_Validate", (PyCFunction) _wrap_PyScrolledWindow_base_Validate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyScrolledWindow_base_AcceptsFocus", (PyCFunction) _wrap_PyScrolledWindow_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyScrolledWindow_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyScrolledWindow_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyScrolledWindow_base_GetMaxSize", (PyCFunction) _wrap_PyScrolledWindow_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyScrolledWindow_base_AddChild", (PyCFunction) _wrap_PyScrolledWindow_base_AddChild, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyScrolledWindow_base_RemoveChild", (PyCFunction) _wrap_PyScrolledWindow_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyScrolledWindow_base_ShouldInheritColours", (PyCFunction) _wrap_PyScrolledWindow_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyScrolledWindow_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyScrolledWindow_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyScrolledWindow_swigregister", PyScrolledWindow_swigregister, METH_VARARGS }, - { (char *)"new_PrintData", (PyCFunction) _wrap_new_PrintData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_PrintData", (PyCFunction) _wrap_delete_PrintData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_GetNoCopies", (PyCFunction) _wrap_PrintData_GetNoCopies, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_GetCollate", (PyCFunction) _wrap_PrintData_GetCollate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_GetOrientation", (PyCFunction) _wrap_PrintData_GetOrientation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_Ok", (PyCFunction) _wrap_PrintData_Ok, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_GetPrinterName", (PyCFunction) _wrap_PrintData_GetPrinterName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_GetColour", (PyCFunction) _wrap_PrintData_GetColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_GetDuplex", (PyCFunction) _wrap_PrintData_GetDuplex, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_GetPaperId", (PyCFunction) _wrap_PrintData_GetPaperId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_GetPaperSize", (PyCFunction) _wrap_PrintData_GetPaperSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_GetQuality", (PyCFunction) _wrap_PrintData_GetQuality, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_SetNoCopies", (PyCFunction) _wrap_PrintData_SetNoCopies, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_SetCollate", (PyCFunction) _wrap_PrintData_SetCollate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_SetOrientation", (PyCFunction) _wrap_PrintData_SetOrientation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_SetPrinterName", (PyCFunction) _wrap_PrintData_SetPrinterName, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_SetColour", (PyCFunction) _wrap_PrintData_SetColour, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_SetDuplex", (PyCFunction) _wrap_PrintData_SetDuplex, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_SetPaperId", (PyCFunction) _wrap_PrintData_SetPaperId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_SetPaperSize", (PyCFunction) _wrap_PrintData_SetPaperSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_SetQuality", (PyCFunction) _wrap_PrintData_SetQuality, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_GetPrinterCommand", (PyCFunction) _wrap_PrintData_GetPrinterCommand, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_GetPrinterOptions", (PyCFunction) _wrap_PrintData_GetPrinterOptions, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_GetPreviewCommand", (PyCFunction) _wrap_PrintData_GetPreviewCommand, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_GetFilename", (PyCFunction) _wrap_PrintData_GetFilename, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_GetFontMetricPath", (PyCFunction) _wrap_PrintData_GetFontMetricPath, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_GetPrinterScaleX", (PyCFunction) _wrap_PrintData_GetPrinterScaleX, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_GetPrinterScaleY", (PyCFunction) _wrap_PrintData_GetPrinterScaleY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_GetPrinterTranslateX", (PyCFunction) _wrap_PrintData_GetPrinterTranslateX, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_GetPrinterTranslateY", (PyCFunction) _wrap_PrintData_GetPrinterTranslateY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_GetPrintMode", (PyCFunction) _wrap_PrintData_GetPrintMode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_SetPrinterCommand", (PyCFunction) _wrap_PrintData_SetPrinterCommand, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_SetPrinterOptions", (PyCFunction) _wrap_PrintData_SetPrinterOptions, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_SetPreviewCommand", (PyCFunction) _wrap_PrintData_SetPreviewCommand, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_SetFilename", (PyCFunction) _wrap_PrintData_SetFilename, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_SetFontMetricPath", (PyCFunction) _wrap_PrintData_SetFontMetricPath, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_SetPrinterScaleX", (PyCFunction) _wrap_PrintData_SetPrinterScaleX, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_SetPrinterScaleY", (PyCFunction) _wrap_PrintData_SetPrinterScaleY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_SetPrinterScaling", (PyCFunction) _wrap_PrintData_SetPrinterScaling, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_SetPrinterTranslateX", (PyCFunction) _wrap_PrintData_SetPrinterTranslateX, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_SetPrinterTranslateY", (PyCFunction) _wrap_PrintData_SetPrinterTranslateY, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_SetPrinterTranslation", (PyCFunction) _wrap_PrintData_SetPrinterTranslation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_SetPrintMode", (PyCFunction) _wrap_PrintData_SetPrintMode, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_GetOutputStream", (PyCFunction) _wrap_PrintData_GetOutputStream, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_SetOutputStream", (PyCFunction) _wrap_PrintData_SetOutputStream, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintData_swigregister", PrintData_swigregister, METH_VARARGS }, - { (char *)"new_PageSetupDialogData", (PyCFunction) _wrap_new_PageSetupDialogData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_PageSetupDialogData", (PyCFunction) _wrap_delete_PageSetupDialogData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_EnableHelp", (PyCFunction) _wrap_PageSetupDialogData_EnableHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_EnableMargins", (PyCFunction) _wrap_PageSetupDialogData_EnableMargins, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_EnableOrientation", (PyCFunction) _wrap_PageSetupDialogData_EnableOrientation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_EnablePaper", (PyCFunction) _wrap_PageSetupDialogData_EnablePaper, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_EnablePrinter", (PyCFunction) _wrap_PageSetupDialogData_EnablePrinter, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_GetDefaultMinMargins", (PyCFunction) _wrap_PageSetupDialogData_GetDefaultMinMargins, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_GetEnableMargins", (PyCFunction) _wrap_PageSetupDialogData_GetEnableMargins, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_GetEnableOrientation", (PyCFunction) _wrap_PageSetupDialogData_GetEnableOrientation, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_GetEnablePaper", (PyCFunction) _wrap_PageSetupDialogData_GetEnablePaper, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_GetEnablePrinter", (PyCFunction) _wrap_PageSetupDialogData_GetEnablePrinter, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_GetEnableHelp", (PyCFunction) _wrap_PageSetupDialogData_GetEnableHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_GetDefaultInfo", (PyCFunction) _wrap_PageSetupDialogData_GetDefaultInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_GetMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_GetMarginTopLeft, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_GetMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_GetMarginBottomRight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_GetMinMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_GetMinMarginTopLeft, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_GetMinMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_GetMinMarginBottomRight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_GetPaperId", (PyCFunction) _wrap_PageSetupDialogData_GetPaperId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_GetPaperSize", (PyCFunction) _wrap_PageSetupDialogData_GetPaperSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_GetPrintData", (PyCFunction) _wrap_PageSetupDialogData_GetPrintData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_Ok", (PyCFunction) _wrap_PageSetupDialogData_Ok, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_SetDefaultInfo", (PyCFunction) _wrap_PageSetupDialogData_SetDefaultInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_SetDefaultMinMargins", (PyCFunction) _wrap_PageSetupDialogData_SetDefaultMinMargins, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_SetMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_SetMarginTopLeft, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_SetMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_SetMarginBottomRight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_SetMinMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_SetMinMarginTopLeft, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_SetMinMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_SetMinMarginBottomRight, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_SetPaperId", (PyCFunction) _wrap_PageSetupDialogData_SetPaperId, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_SetPaperSize", (PyCFunction) _wrap_PageSetupDialogData_SetPaperSize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_SetPrintData", (PyCFunction) _wrap_PageSetupDialogData_SetPrintData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialogData_swigregister", PageSetupDialogData_swigregister, METH_VARARGS }, - { (char *)"new_PageSetupDialog", (PyCFunction) _wrap_new_PageSetupDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialog_GetPageSetupData", (PyCFunction) _wrap_PageSetupDialog_GetPageSetupData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialog_ShowModal", (PyCFunction) _wrap_PageSetupDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PageSetupDialog_swigregister", PageSetupDialog_swigregister, METH_VARARGS }, - { (char *)"new_PrintDialogData", _wrap_new_PrintDialogData, METH_VARARGS }, - { (char *)"delete_PrintDialogData", (PyCFunction) _wrap_delete_PrintDialogData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_GetFromPage", (PyCFunction) _wrap_PrintDialogData_GetFromPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_GetToPage", (PyCFunction) _wrap_PrintDialogData_GetToPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_GetMinPage", (PyCFunction) _wrap_PrintDialogData_GetMinPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_GetMaxPage", (PyCFunction) _wrap_PrintDialogData_GetMaxPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_GetNoCopies", (PyCFunction) _wrap_PrintDialogData_GetNoCopies, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_GetAllPages", (PyCFunction) _wrap_PrintDialogData_GetAllPages, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_GetSelection", (PyCFunction) _wrap_PrintDialogData_GetSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_GetCollate", (PyCFunction) _wrap_PrintDialogData_GetCollate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_GetPrintToFile", (PyCFunction) _wrap_PrintDialogData_GetPrintToFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_GetSetupDialog", (PyCFunction) _wrap_PrintDialogData_GetSetupDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_SetFromPage", (PyCFunction) _wrap_PrintDialogData_SetFromPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_SetToPage", (PyCFunction) _wrap_PrintDialogData_SetToPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_SetMinPage", (PyCFunction) _wrap_PrintDialogData_SetMinPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_SetMaxPage", (PyCFunction) _wrap_PrintDialogData_SetMaxPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_SetNoCopies", (PyCFunction) _wrap_PrintDialogData_SetNoCopies, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_SetAllPages", (PyCFunction) _wrap_PrintDialogData_SetAllPages, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_SetSelection", (PyCFunction) _wrap_PrintDialogData_SetSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_SetCollate", (PyCFunction) _wrap_PrintDialogData_SetCollate, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_SetPrintToFile", (PyCFunction) _wrap_PrintDialogData_SetPrintToFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_SetSetupDialog", (PyCFunction) _wrap_PrintDialogData_SetSetupDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_EnablePrintToFile", (PyCFunction) _wrap_PrintDialogData_EnablePrintToFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_EnableSelection", (PyCFunction) _wrap_PrintDialogData_EnableSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_EnablePageNumbers", (PyCFunction) _wrap_PrintDialogData_EnablePageNumbers, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_EnableHelp", (PyCFunction) _wrap_PrintDialogData_EnableHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_GetEnablePrintToFile", (PyCFunction) _wrap_PrintDialogData_GetEnablePrintToFile, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_GetEnableSelection", (PyCFunction) _wrap_PrintDialogData_GetEnableSelection, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_GetEnablePageNumbers", (PyCFunction) _wrap_PrintDialogData_GetEnablePageNumbers, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_GetEnableHelp", (PyCFunction) _wrap_PrintDialogData_GetEnableHelp, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_Ok", (PyCFunction) _wrap_PrintDialogData_Ok, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_GetPrintData", (PyCFunction) _wrap_PrintDialogData_GetPrintData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_SetPrintData", (PyCFunction) _wrap_PrintDialogData_SetPrintData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialogData_swigregister", PrintDialogData_swigregister, METH_VARARGS }, - { (char *)"new_PrintDialog", (PyCFunction) _wrap_new_PrintDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialog_GetPrintDialogData", (PyCFunction) _wrap_PrintDialog_GetPrintDialogData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialog_GetPrintDC", (PyCFunction) _wrap_PrintDialog_GetPrintDC, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialog_ShowModal", (PyCFunction) _wrap_PrintDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintDialog_swigregister", PrintDialog_swigregister, METH_VARARGS }, - { (char *)"new_Printer", (PyCFunction) _wrap_new_Printer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"delete_Printer", (PyCFunction) _wrap_delete_Printer, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printer_CreateAbortWindow", (PyCFunction) _wrap_Printer_CreateAbortWindow, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printer_GetPrintDialogData", (PyCFunction) _wrap_Printer_GetPrintDialogData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printer_Print", (PyCFunction) _wrap_Printer_Print, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printer_PrintDialog", (PyCFunction) _wrap_Printer_PrintDialog, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printer_ReportError", (PyCFunction) _wrap_Printer_ReportError, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printer_Setup", (PyCFunction) _wrap_Printer_Setup, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printer_GetAbort", (PyCFunction) _wrap_Printer_GetAbort, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printer_GetLastError", (PyCFunction) _wrap_Printer_GetLastError, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printer_swigregister", Printer_swigregister, METH_VARARGS }, - { (char *)"new_Printout", (PyCFunction) _wrap_new_Printout, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printout__setCallbackInfo", (PyCFunction) _wrap_Printout__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printout_GetTitle", (PyCFunction) _wrap_Printout_GetTitle, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printout_GetDC", (PyCFunction) _wrap_Printout_GetDC, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printout_SetDC", (PyCFunction) _wrap_Printout_SetDC, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printout_SetPageSizePixels", (PyCFunction) _wrap_Printout_SetPageSizePixels, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printout_GetPageSizePixels", (PyCFunction) _wrap_Printout_GetPageSizePixels, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printout_SetPageSizeMM", (PyCFunction) _wrap_Printout_SetPageSizeMM, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printout_GetPageSizeMM", (PyCFunction) _wrap_Printout_GetPageSizeMM, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printout_SetPPIScreen", (PyCFunction) _wrap_Printout_SetPPIScreen, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printout_GetPPIScreen", (PyCFunction) _wrap_Printout_GetPPIScreen, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printout_SetPPIPrinter", (PyCFunction) _wrap_Printout_SetPPIPrinter, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printout_GetPPIPrinter", (PyCFunction) _wrap_Printout_GetPPIPrinter, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printout_IsPreview", (PyCFunction) _wrap_Printout_IsPreview, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printout_SetIsPreview", (PyCFunction) _wrap_Printout_SetIsPreview, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printout_base_OnBeginDocument", (PyCFunction) _wrap_Printout_base_OnBeginDocument, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printout_base_OnEndDocument", (PyCFunction) _wrap_Printout_base_OnEndDocument, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printout_base_OnBeginPrinting", (PyCFunction) _wrap_Printout_base_OnBeginPrinting, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printout_base_OnEndPrinting", (PyCFunction) _wrap_Printout_base_OnEndPrinting, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printout_base_OnPreparePrinting", (PyCFunction) _wrap_Printout_base_OnPreparePrinting, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printout_base_HasPage", (PyCFunction) _wrap_Printout_base_HasPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printout_base_GetPageInfo", (PyCFunction) _wrap_Printout_base_GetPageInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"Printout_swigregister", Printout_swigregister, METH_VARARGS }, - { (char *)"new_PreviewCanvas", (PyCFunction) _wrap_new_PreviewCanvas, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PreviewCanvas_swigregister", PreviewCanvas_swigregister, METH_VARARGS }, - { (char *)"new_PreviewFrame", (PyCFunction) _wrap_new_PreviewFrame, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PreviewFrame_Initialize", (PyCFunction) _wrap_PreviewFrame_Initialize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PreviewFrame_CreateControlBar", (PyCFunction) _wrap_PreviewFrame_CreateControlBar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PreviewFrame_CreateCanvas", (PyCFunction) _wrap_PreviewFrame_CreateCanvas, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PreviewFrame_GetControlBar", (PyCFunction) _wrap_PreviewFrame_GetControlBar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PreviewFrame_swigregister", PreviewFrame_swigregister, METH_VARARGS }, - { (char *)"new_PreviewControlBar", (PyCFunction) _wrap_new_PreviewControlBar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PreviewControlBar_GetZoomControl", (PyCFunction) _wrap_PreviewControlBar_GetZoomControl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PreviewControlBar_SetZoomControl", (PyCFunction) _wrap_PreviewControlBar_SetZoomControl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PreviewControlBar_GetPrintPreview", (PyCFunction) _wrap_PreviewControlBar_GetPrintPreview, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PreviewControlBar_OnNext", (PyCFunction) _wrap_PreviewControlBar_OnNext, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PreviewControlBar_OnPrevious", (PyCFunction) _wrap_PreviewControlBar_OnPrevious, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PreviewControlBar_OnFirst", (PyCFunction) _wrap_PreviewControlBar_OnFirst, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PreviewControlBar_OnLast", (PyCFunction) _wrap_PreviewControlBar_OnLast, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PreviewControlBar_OnGoto", (PyCFunction) _wrap_PreviewControlBar_OnGoto, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PreviewControlBar_swigregister", PreviewControlBar_swigregister, METH_VARARGS }, - { (char *)"new_PrintPreview", _wrap_new_PrintPreview, METH_VARARGS }, - { (char *)"PrintPreview_SetCurrentPage", (PyCFunction) _wrap_PrintPreview_SetCurrentPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintPreview_GetCurrentPage", (PyCFunction) _wrap_PrintPreview_GetCurrentPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintPreview_SetPrintout", (PyCFunction) _wrap_PrintPreview_SetPrintout, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintPreview_GetPrintout", (PyCFunction) _wrap_PrintPreview_GetPrintout, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintPreview_GetPrintoutForPrinting", (PyCFunction) _wrap_PrintPreview_GetPrintoutForPrinting, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintPreview_SetFrame", (PyCFunction) _wrap_PrintPreview_SetFrame, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintPreview_SetCanvas", (PyCFunction) _wrap_PrintPreview_SetCanvas, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintPreview_GetFrame", (PyCFunction) _wrap_PrintPreview_GetFrame, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintPreview_GetCanvas", (PyCFunction) _wrap_PrintPreview_GetCanvas, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintPreview_PaintPage", (PyCFunction) _wrap_PrintPreview_PaintPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintPreview_DrawBlankPage", (PyCFunction) _wrap_PrintPreview_DrawBlankPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintPreview_RenderPage", (PyCFunction) _wrap_PrintPreview_RenderPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintPreview_AdjustScrollbars", (PyCFunction) _wrap_PrintPreview_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintPreview_GetPrintDialogData", (PyCFunction) _wrap_PrintPreview_GetPrintDialogData, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintPreview_SetZoom", (PyCFunction) _wrap_PrintPreview_SetZoom, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintPreview_GetZoom", (PyCFunction) _wrap_PrintPreview_GetZoom, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintPreview_GetMaxPage", (PyCFunction) _wrap_PrintPreview_GetMaxPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintPreview_GetMinPage", (PyCFunction) _wrap_PrintPreview_GetMinPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintPreview_Ok", (PyCFunction) _wrap_PrintPreview_Ok, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintPreview_SetOk", (PyCFunction) _wrap_PrintPreview_SetOk, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintPreview_Print", (PyCFunction) _wrap_PrintPreview_Print, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintPreview_DetermineScaling", (PyCFunction) _wrap_PrintPreview_DetermineScaling, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PrintPreview_swigregister", PrintPreview_swigregister, METH_VARARGS }, - { (char *)"new_PyPrintPreview", _wrap_new_PyPrintPreview, METH_VARARGS }, - { (char *)"PyPrintPreview__setCallbackInfo", (PyCFunction) _wrap_PyPrintPreview__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPrintPreview_base_SetCurrentPage", (PyCFunction) _wrap_PyPrintPreview_base_SetCurrentPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPrintPreview_base_PaintPage", (PyCFunction) _wrap_PyPrintPreview_base_PaintPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPrintPreview_base_DrawBlankPage", (PyCFunction) _wrap_PyPrintPreview_base_DrawBlankPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPrintPreview_base_RenderPage", (PyCFunction) _wrap_PyPrintPreview_base_RenderPage, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPrintPreview_base_SetZoom", (PyCFunction) _wrap_PyPrintPreview_base_SetZoom, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPrintPreview_base_Print", (PyCFunction) _wrap_PyPrintPreview_base_Print, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPrintPreview_base_DetermineScaling", (PyCFunction) _wrap_PyPrintPreview_base_DetermineScaling, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPrintPreview_swigregister", PyPrintPreview_swigregister, METH_VARARGS }, - { (char *)"new_PyPreviewFrame", (PyCFunction) _wrap_new_PyPreviewFrame, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPreviewFrame__setCallbackInfo", (PyCFunction) _wrap_PyPreviewFrame__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPreviewFrame_SetPreviewCanvas", (PyCFunction) _wrap_PyPreviewFrame_SetPreviewCanvas, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPreviewFrame_SetControlBar", (PyCFunction) _wrap_PyPreviewFrame_SetControlBar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPreviewFrame_base_Initialize", (PyCFunction) _wrap_PyPreviewFrame_base_Initialize, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPreviewFrame_base_CreateCanvas", (PyCFunction) _wrap_PyPreviewFrame_base_CreateCanvas, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPreviewFrame_base_CreateControlBar", (PyCFunction) _wrap_PyPreviewFrame_base_CreateControlBar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPreviewFrame_swigregister", PyPreviewFrame_swigregister, METH_VARARGS }, - { (char *)"new_PyPreviewControlBar", (PyCFunction) _wrap_new_PyPreviewControlBar, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPreviewControlBar__setCallbackInfo", (PyCFunction) _wrap_PyPreviewControlBar__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPreviewControlBar_SetPrintPreview", (PyCFunction) _wrap_PyPreviewControlBar_SetPrintPreview, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPreviewControlBar_base_CreateButtons", (PyCFunction) _wrap_PyPreviewControlBar_base_CreateButtons, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPreviewControlBar_base_SetZoomControl", (PyCFunction) _wrap_PyPreviewControlBar_base_SetZoomControl, METH_VARARGS | METH_KEYWORDS }, - { (char *)"PyPreviewControlBar_swigregister", PyPreviewControlBar_swigregister, METH_VARARGS }, - { NULL, NULL } -}; - - -/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ - -static void *_p_wxPyPreviewFrameTo_p_wxPreviewFrame(void *x) { - return (void *)((wxPreviewFrame *) ((wxPyPreviewFrame *) x)); -} -static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); -} -static void *_p_wxMenuEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxMenuEvent *) x)); -} -static void *_p_wxCloseEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxCloseEvent *) x)); -} -static void *_p_wxMouseEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxMouseEvent *) x)); -} -static void *_p_wxEraseEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxEraseEvent *) x)); -} -static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); -} -static void *_p_wxSplitterEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); -} -static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); -} -static void *_p_wxScrollEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); -} -static void *_p_wxFindDialogEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxFindDialogEvent *) x)); -} -static void *_p_wxPyEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxPyEvent *) x)); -} -static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); -} -static void *_p_wxCalculateLayoutEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxCalculateLayoutEvent *) x)); -} -static void *_p_wxIdleEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxIdleEvent *) x)); -} -static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); -} -static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); -} -static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); -} -static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxIconizeEvent *) x)); -} -static void *_p_wxActivateEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxActivateEvent *) x)); -} -static void *_p_wxSizeEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxSizeEvent *) x)); -} -static void *_p_wxMoveEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxMoveEvent *) x)); -} -static void *_p_wxPaintEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxPaintEvent *) x)); -} -static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); -} -static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); -} -static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); -} -static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); -} -static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); -} -static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); -} -static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); -} -static void *_p_wxFocusEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxFocusEvent *) x)); -} -static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); -} -static void *_p_wxSashEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxSashEvent *) x)); -} -static void *_p_wxQueryLayoutInfoEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxQueryLayoutInfoEvent *) x)); -} -static void *_p_wxShowEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxShowEvent *) x)); -} -static void *_p_wxCommandEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxCommandEvent *) x)); -} -static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); -} -static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); -} -static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); -} -static void *_p_wxKeyEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxKeyEvent *) x)); -} -static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); -} -static void *_p_wxTaskBarIconEventTo_p_wxEvent(void *x) { - return (void *)((wxEvent *) ((wxTaskBarIconEvent *) x)); -} -static void *_p_wxSplitterEventTo_p_wxNotifyEvent(void *x) { - return (void *)((wxNotifyEvent *) ((wxSplitterEvent *) x)); -} -static void *_p_wxSplashScreenTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); -} -static void *_p_wxMiniFrameTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); -} -static void *_p_wxPyPanelTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyPanel *) x)); -} -static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); -} -static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) ((wxValidator *) x)); -} -static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); -} -static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) ((wxMenu *) x)); -} -static void *_p_wxTextEntryDialogTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); -} -static void *_p_wxSingleChoiceDialogTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); -} -static void *_p_wxMultiChoiceDialogTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); -} -static void *_p_wxFileDialogTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); -} -static void *_p_wxMessageDialogTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); -} -static void *_p_wxProgressDialogTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); -} -static void *_p_wxFindReplaceDialogTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); -} -static void *_p_wxPanelTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *) ((wxPanel *) x)); -} -static void *_p_wxStatusBarTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *) ((wxStatusBar *) x)); -} -static void *_p_wxPyVScrolledWindowTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); -} -static void *_p_wxTipWindowTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); -} -static void *_p_wxPyPopupTransientWindowTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); -} -static void *_p_wxPopupWindowTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *) ((wxPopupWindow *) x)); -} -static void *_p_wxSashLayoutWindowTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); -} -static void *_p_wxSashWindowTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *) ((wxSashWindow *) x)); -} -static void *_p_wxSplitterWindowTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplitterWindow *) x)); -} -static void *_p_wxSplashScreenWindowTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplashScreenWindow *) x)); -} -static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) ((wxWindow *) x)); -} -static void *_p_wxScrolledWindowTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); -} -static void *_p_wxTopLevelWindowTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *) ((wxTopLevelWindow *) x)); -} -static void *_p_wxMDIClientWindowTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *) ((wxMDIClientWindow *) x)); -} -static void *_p_wxPyScrolledWindowTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); -} -static void *_p_wxControlTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); -} -static void *_p_wxPreviewFrameTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); -} -static void *_p_wxPyPreviewFrameTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); -} -static void *_p_wxMDIChildFrameTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); -} -static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) ((wxPyApp *) x)); -} -static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); -} -static void *_p_wxPyWindowTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *) ((wxPyWindow *) x)); -} -static void *_p_wxPreviewCanvasTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); -} -static void *_p_wxPyHtmlListBoxTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); -} -static void *_p_wxPyVListBoxTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); -} -static void *_p_wxPreviewControlBarTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); -} -static void *_p_wxPyPreviewControlBarTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); -} -static void *_p_wxTaskBarIconTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) ((wxTaskBarIcon *) x)); -} -static void *_p_wxFrameTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); -} -static void *_p_wxFontDialogTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); -} -static void *_p_wxDirDialogTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); -} -static void *_p_wxColourDialogTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); -} -static void *_p_wxDialogTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); -} -static void *_p_wxPageSetupDialogTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); -} -static void *_p_wxPrintDialogTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); -} -static void *_p_wxMDIParentFrameTo_p_wxEvtHandler(void *x) { - return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); -} -static void *_p_wxPyHtmlListBoxTo_p_wxPyVListBox(void *x) { - return (void *)((wxPyVListBox *) ((wxPyHtmlListBox *) x)); -} -static void *_p_wxMDIChildFrameTo_p_wxFrame(void *x) { - return (void *)((wxFrame *) ((wxMDIChildFrame *) x)); -} -static void *_p_wxProgressDialogTo_p_wxFrame(void *x) { - return (void *)((wxFrame *) ((wxProgressDialog *) x)); -} -static void *_p_wxPreviewFrameTo_p_wxFrame(void *x) { - return (void *)((wxFrame *) ((wxPreviewFrame *) x)); -} -static void *_p_wxPyPreviewFrameTo_p_wxFrame(void *x) { - return (void *)((wxFrame *) (wxPreviewFrame *) ((wxPyPreviewFrame *) x)); -} -static void *_p_wxMiniFrameTo_p_wxFrame(void *x) { - return (void *)((wxFrame *) ((wxMiniFrame *) x)); -} -static void *_p_wxSplashScreenTo_p_wxFrame(void *x) { - return (void *)((wxFrame *) ((wxSplashScreen *) x)); -} -static void *_p_wxMDIParentFrameTo_p_wxFrame(void *x) { - return (void *)((wxFrame *) ((wxMDIParentFrame *) x)); -} -static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxLayoutConstraints *) x)); -} -static void *_p_wxQueryLayoutInfoEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxQueryLayoutInfoEvent *) x)); -} -static void *_p_wxPreviewFrameTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); -} -static void *_p_wxPyPreviewFrameTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); -} -static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); -} -static void *_p_wxSizerItemTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxSizerItem *) x)); -} -static void *_p_wxScrollEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); -} -static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); -} -static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); -} -static void *_p_wxBoxSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); -} -static void *_p_wxSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxSizer *) x)); -} -static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); -} -static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); -} -static void *_p_wxPyPanelTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyPanel *) x)); -} -static void *_p_wxEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxEvent *) x)); -} -static void *_p_wxFontDataTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxFontData *) x)); -} -static void *_p_wxPrintDataTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxPrintData *) x)); -} -static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); -} -static void *_p_wxGridSizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); -} -static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); -} -static void *_p_wxLayoutAlgorithmTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxLayoutAlgorithm *) x)); -} -static void *_p_wxTaskBarIconTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *) ((wxTaskBarIcon *) x)); -} -static void *_p_wxFindDialogEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFindDialogEvent *) x)); -} -static void *_p_wxPaintEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); -} -static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); -} -static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); -} -static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); -} -static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); -} -static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); -} -static void *_p_wxPreviewCanvasTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); -} -static void *_p_wxControlTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); -} -static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); -} -static void *_p_wxSplitterEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); -} -static void *_p_wxFSFileTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxFSFile *) x)); -} -static void *_p_wxFindReplaceDataTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxFindReplaceData *) x)); -} -static void *_p_wxPySizerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); -} -static void *_p_wxMDIChildFrameTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); -} -static void *_p_wxColourDataTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxColourData *) x)); -} -static void *_p_wxPyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); -} -static void *_p_wxNotifyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); -} -static void *_p_wxPyWindowTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPyWindow *) x)); -} -static void *_p_wxSplashScreenTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); -} -static void *_p_wxFileDialogTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); -} -static void *_p_wxMultiChoiceDialogTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); -} -static void *_p_wxSingleChoiceDialogTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); -} -static void *_p_wxTextEntryDialogTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); -} -static void *_p_wxMessageDialogTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); -} -static void *_p_wxProgressDialogTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); -} -static void *_p_wxFindReplaceDialogTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); -} -static void *_p_wxShowEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); -} -static void *_p_wxPrinterTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxPrinter *) x)); -} -static void *_p_wxMenuItemTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxMenuItem *) x)); -} -static void *_p_wxIdleEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); -} -static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); -} -static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); -} -static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); -} -static void *_p_wxIconizeEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); -} -static void *_p_wxSizeEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); -} -static void *_p_wxMoveEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); -} -static void *_p_wxActivateEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); -} -static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); -} -static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); -} -static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); -} -static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); -} -static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); -} -static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); -} -static void *_p_wxANIHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); -} -static void *_p_wxCURHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); -} -static void *_p_wxICOHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); -} -static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); -} -static void *_p_wxImageHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxImageHandler *) x)); -} -static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); -} -static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxEvtHandler *) x)); -} -static void *_p_wxCalculateLayoutEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxCalculateLayoutEvent *) x)); -} -static void *_p_wxPyVListBoxTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); -} -static void *_p_wxPyHtmlListBoxTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); -} -static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxAcceleratorTable *) x)); -} -static void *_p_wxMiniFrameTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); -} -static void *_p_wxImageTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxImage *) x)); -} -static void *_p_wxFrameTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); -} -static void *_p_wxPyPrintoutTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxPyPrintout *) x)); -} -static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); -} -static void *_p_wxTaskBarIconEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxTaskBarIconEvent *) x)); -} -static void *_p_wxStatusBarTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxStatusBar *) x)); -} -static void *_p_wxMDIParentFrameTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); -} -static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); -} -static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); -} -static void *_p_wxKeyEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); -} -static void *_p_wxWindowTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); -} -static void *_p_wxMenuTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); -} -static void *_p_wxMenuBarTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); -} -static void *_p_wxScrolledWindowTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); -} -static void *_p_wxTopLevelWindowTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxTopLevelWindow *) x)); -} -static void *_p_wxSplashScreenWindowTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplashScreenWindow *) x)); -} -static void *_p_wxSplitterWindowTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplitterWindow *) x)); -} -static void *_p_wxSashWindowTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSashWindow *) x)); -} -static void *_p_wxSashLayoutWindowTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); -} -static void *_p_wxPopupWindowTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPopupWindow *) x)); -} -static void *_p_wxPyPopupTransientWindowTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); -} -static void *_p_wxTipWindowTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); -} -static void *_p_wxPyVScrolledWindowTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); -} -static void *_p_wxMDIClientWindowTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMDIClientWindow *) x)); -} -static void *_p_wxPyScrolledWindowTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); -} -static void *_p_wxSashEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxSashEvent *) x)); -} -static void *_p_wxPrintPreviewTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxPrintPreview *) x)); -} -static void *_p_wxPyPrintPreviewTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxPrintPreview *) ((wxPyPrintPreview *) x)); -} -static void *_p_wxPanelTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPanel *) x)); -} -static void *_p_wxDialogTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); -} -static void *_p_wxColourDialogTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); -} -static void *_p_wxDirDialogTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); -} -static void *_p_wxFontDialogTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); -} -static void *_p_wxPageSetupDialogTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); -} -static void *_p_wxPrintDialogTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); -} -static void *_p_wxFileSystemTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxFileSystem *) x)); -} -static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); -} -static void *_p_wxMenuEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); -} -static void *_p_wxPyAppTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); -} -static void *_p_wxCloseEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); -} -static void *_p_wxMouseEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); -} -static void *_p_wxEraseEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); -} -static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); -} -static void *_p_wxCommandEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); -} -static void *_p_wxPreviewControlBarTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); -} -static void *_p_wxPyPreviewControlBarTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); -} -static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); -} -static void *_p_wxFocusEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); -} -static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); -} -static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); -} -static void *_p_wxPageSetupDialogDataTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxPageSetupDialogData *) x)); -} -static void *_p_wxPrintDialogDataTo_p_wxObject(void *x) { - return (void *)((wxObject *) ((wxPrintDialogData *) x)); -} -static void *_p_wxPyValidatorTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); -} -static void *_p_wxValidatorTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); -} -static void *_p_wxPyVListBoxTo_p_wxPyVScrolledWindow(void *x) { - return (void *)((wxPyVScrolledWindow *) ((wxPyVListBox *) x)); -} -static void *_p_wxPyHtmlListBoxTo_p_wxPyVScrolledWindow(void *x) { - return (void *)((wxPyVScrolledWindow *) (wxPyVListBox *) ((wxPyHtmlListBox *) x)); -} -static void *_p_wxTipWindowTo_p_wxPyPopupTransientWindow(void *x) { - return (void *)((wxPyPopupTransientWindow *) ((wxTipWindow *) x)); -} -static void *_p_wxPyPopupTransientWindowTo_p_wxPopupWindow(void *x) { - return (void *)((wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); -} -static void *_p_wxTipWindowTo_p_wxPopupWindow(void *x) { - return (void *)((wxPopupWindow *) (wxPyPopupTransientWindow *) ((wxTipWindow *) x)); -} -static void *_p_wxSashLayoutWindowTo_p_wxSashWindow(void *x) { - return (void *)((wxSashWindow *) ((wxSashLayoutWindow *) x)); -} -static void *_p_wxFrameTo_p_wxTopLevelWindow(void *x) { - return (void *)((wxTopLevelWindow *) ((wxFrame *) x)); -} -static void *_p_wxMiniFrameTo_p_wxTopLevelWindow(void *x) { - return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMiniFrame *) x)); -} -static void *_p_wxFontDialogTo_p_wxTopLevelWindow(void *x) { - return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFontDialog *) x)); -} -static void *_p_wxDirDialogTo_p_wxTopLevelWindow(void *x) { - return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxDirDialog *) x)); -} -static void *_p_wxColourDialogTo_p_wxTopLevelWindow(void *x) { - return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxColourDialog *) x)); -} -static void *_p_wxDialogTo_p_wxTopLevelWindow(void *x) { - return (void *)((wxTopLevelWindow *) ((wxDialog *) x)); -} -static void *_p_wxPageSetupDialogTo_p_wxTopLevelWindow(void *x) { - return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxPageSetupDialog *) x)); -} -static void *_p_wxPrintDialogTo_p_wxTopLevelWindow(void *x) { - return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxPrintDialog *) x)); -} -static void *_p_wxSplashScreenTo_p_wxTopLevelWindow(void *x) { - return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxSplashScreen *) x)); -} -static void *_p_wxMDIParentFrameTo_p_wxTopLevelWindow(void *x) { - return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMDIParentFrame *) x)); -} -static void *_p_wxMDIChildFrameTo_p_wxTopLevelWindow(void *x) { - return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMDIChildFrame *) x)); -} -static void *_p_wxFindReplaceDialogTo_p_wxTopLevelWindow(void *x) { - return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFindReplaceDialog *) x)); -} -static void *_p_wxProgressDialogTo_p_wxTopLevelWindow(void *x) { - return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxProgressDialog *) x)); -} -static void *_p_wxMessageDialogTo_p_wxTopLevelWindow(void *x) { - return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxMessageDialog *) x)); -} -static void *_p_wxTextEntryDialogTo_p_wxTopLevelWindow(void *x) { - return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxTextEntryDialog *) x)); -} -static void *_p_wxSingleChoiceDialogTo_p_wxTopLevelWindow(void *x) { - return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxSingleChoiceDialog *) x)); -} -static void *_p_wxMultiChoiceDialogTo_p_wxTopLevelWindow(void *x) { - return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxMultiChoiceDialog *) x)); -} -static void *_p_wxFileDialogTo_p_wxTopLevelWindow(void *x) { - return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFileDialog *) x)); -} -static void *_p_wxPreviewFrameTo_p_wxTopLevelWindow(void *x) { - return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxPreviewFrame *) x)); -} -static void *_p_wxPyPreviewFrameTo_p_wxTopLevelWindow(void *x) { - return (void *)((wxTopLevelWindow *) (wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); -} -static void *_p_wxSplashScreenTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); -} -static void *_p_wxMiniFrameTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); -} -static void *_p_wxPyPanelTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxPanel *) ((wxPyPanel *) x)); -} -static void *_p_wxMenuBarTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) ((wxMenuBar *) x)); -} -static void *_p_wxFindReplaceDialogTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); -} -static void *_p_wxProgressDialogTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); -} -static void *_p_wxMessageDialogTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); -} -static void *_p_wxTextEntryDialogTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); -} -static void *_p_wxSingleChoiceDialogTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); -} -static void *_p_wxMultiChoiceDialogTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); -} -static void *_p_wxFileDialogTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); -} -static void *_p_wxPanelTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) ((wxPanel *) x)); -} -static void *_p_wxStatusBarTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) ((wxStatusBar *) x)); -} -static void *_p_wxMDIClientWindowTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) ((wxMDIClientWindow *) x)); -} -static void *_p_wxPyVScrolledWindowTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxPanel *) ((wxPyVScrolledWindow *) x)); -} -static void *_p_wxTipWindowTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); -} -static void *_p_wxPyPopupTransientWindowTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); -} -static void *_p_wxPopupWindowTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) ((wxPopupWindow *) x)); -} -static void *_p_wxSashLayoutWindowTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxSashWindow *) ((wxSashLayoutWindow *) x)); -} -static void *_p_wxScrolledWindowTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxPanel *) ((wxScrolledWindow *) x)); -} -static void *_p_wxTopLevelWindowTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) ((wxTopLevelWindow *) x)); -} -static void *_p_wxSplashScreenWindowTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) ((wxSplashScreenWindow *) x)); -} -static void *_p_wxSplitterWindowTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) ((wxSplitterWindow *) x)); -} -static void *_p_wxSashWindowTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) ((wxSashWindow *) x)); -} -static void *_p_wxPyScrolledWindowTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); -} -static void *_p_wxControlTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) ((wxControl *) x)); -} -static void *_p_wxPreviewFrameTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); -} -static void *_p_wxPyPreviewFrameTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); -} -static void *_p_wxMDIChildFrameTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); -} -static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); -} -static void *_p_wxPyWindowTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) ((wxPyWindow *) x)); -} -static void *_p_wxPreviewCanvasTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); -} -static void *_p_wxPyHtmlListBoxTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); -} -static void *_p_wxPyVListBoxTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); -} -static void *_p_wxPreviewControlBarTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxPanel *) ((wxPreviewControlBar *) x)); -} -static void *_p_wxPyPreviewControlBarTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); -} -static void *_p_wxFrameTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxFrame *) x)); -} -static void *_p_wxFontDialogTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); -} -static void *_p_wxDirDialogTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); -} -static void *_p_wxColourDialogTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); -} -static void *_p_wxDialogTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxDialog *) x)); -} -static void *_p_wxPageSetupDialogTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); -} -static void *_p_wxPrintDialogTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); -} -static void *_p_wxMDIParentFrameTo_p_wxWindow(void *x) { - return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); -} -static void *_p_wxPyScrolledWindowTo_p_wxScrolledWindow(void *x) { - return (void *)((wxScrolledWindow *) ((wxPyScrolledWindow *) x)); -} -static void *_p_wxPreviewCanvasTo_p_wxScrolledWindow(void *x) { - return (void *)((wxScrolledWindow *) ((wxPreviewCanvas *) x)); -} -static void *_p_wxPyPrintPreviewTo_p_wxPrintPreview(void *x) { - return (void *)((wxPrintPreview *) ((wxPyPrintPreview *) x)); -} -static void *_p_wxColourDialogTo_p_wxDialog(void *x) { - return (void *)((wxDialog *) ((wxColourDialog *) x)); -} -static void *_p_wxDirDialogTo_p_wxDialog(void *x) { - return (void *)((wxDialog *) ((wxDirDialog *) x)); -} -static void *_p_wxFontDialogTo_p_wxDialog(void *x) { - return (void *)((wxDialog *) ((wxFontDialog *) x)); -} -static void *_p_wxPageSetupDialogTo_p_wxDialog(void *x) { - return (void *)((wxDialog *) ((wxPageSetupDialog *) x)); -} -static void *_p_wxPrintDialogTo_p_wxDialog(void *x) { - return (void *)((wxDialog *) ((wxPrintDialog *) x)); -} -static void *_p_wxFileDialogTo_p_wxDialog(void *x) { - return (void *)((wxDialog *) ((wxFileDialog *) x)); -} -static void *_p_wxMultiChoiceDialogTo_p_wxDialog(void *x) { - return (void *)((wxDialog *) ((wxMultiChoiceDialog *) x)); -} -static void *_p_wxSingleChoiceDialogTo_p_wxDialog(void *x) { - return (void *)((wxDialog *) ((wxSingleChoiceDialog *) x)); -} -static void *_p_wxTextEntryDialogTo_p_wxDialog(void *x) { - return (void *)((wxDialog *) ((wxTextEntryDialog *) x)); -} -static void *_p_wxMessageDialogTo_p_wxDialog(void *x) { - return (void *)((wxDialog *) ((wxMessageDialog *) x)); -} -static void *_p_wxFindReplaceDialogTo_p_wxDialog(void *x) { - return (void *)((wxDialog *) ((wxFindReplaceDialog *) x)); -} -static void *_p_wxScrolledWindowTo_p_wxPanel(void *x) { - return (void *)((wxPanel *) ((wxScrolledWindow *) x)); -} -static void *_p_wxPyVScrolledWindowTo_p_wxPanel(void *x) { - return (void *)((wxPanel *) ((wxPyVScrolledWindow *) x)); -} -static void *_p_wxPyScrolledWindowTo_p_wxPanel(void *x) { - return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPyScrolledWindow *) x)); -} -static void *_p_wxPyVListBoxTo_p_wxPanel(void *x) { - return (void *)((wxPanel *) (wxPyVScrolledWindow *) ((wxPyVListBox *) x)); -} -static void *_p_wxPyHtmlListBoxTo_p_wxPanel(void *x) { - return (void *)((wxPanel *) (wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); -} -static void *_p_wxPyPanelTo_p_wxPanel(void *x) { - return (void *)((wxPanel *) ((wxPyPanel *) x)); -} -static void *_p_wxPreviewCanvasTo_p_wxPanel(void *x) { - return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPreviewCanvas *) x)); -} -static void *_p_wxPreviewControlBarTo_p_wxPanel(void *x) { - return (void *)((wxPanel *) ((wxPreviewControlBar *) x)); -} -static void *_p_wxPyPreviewControlBarTo_p_wxPanel(void *x) { - return (void *)((wxPanel *) (wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); -} -static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); -} -static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); -} -static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); -} -static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); -} -static void *_p_wxFindDialogEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxFindDialogEvent *) x)); -} -static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); -} -static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); -} -static void *_p_wxSplitterEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSplitterEvent *) x)); -} -static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); -} -static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); -} -static void *_p_wxSashEventTo_p_wxCommandEvent(void *x) { - return (void *)((wxCommandEvent *) ((wxSashEvent *) x)); -} -static void *_p_wxPyPreviewControlBarTo_p_wxPreviewControlBar(void *x) { - return (void *)((wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); -} -static swig_type_info _swigt__p_wxQueryLayoutInfoEvent[] = {{"_p_wxQueryLayoutInfoEvent", 0, "wxQueryLayoutInfoEvent *", 0, 0, 0, 0},{"_p_wxQueryLayoutInfoEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPreviewFrame[] = {{"_p_wxPreviewFrame", 0, "wxPreviewFrame *", 0, 0, 0, 0},{"_p_wxPreviewFrame", 0, 0, 0, 0, 0, 0},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_p_wxPreviewFrame, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyPreviewFrame[] = {{"_p_wxPyPreviewFrame", 0, "wxPyPreviewFrame *", 0, 0, 0, 0},{"_p_wxPyPreviewFrame", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyPanel[] = {{"_p_wxPyPanel", 0, "wxPyPanel *", 0, 0, 0, 0},{"_p_wxPyPanel", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMenu[] = {{"_p_wxMenu", 0, "wxMenu *", 0, 0, 0, 0},{"_p_wxMenu", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPrintData[] = {{"_p_wxPrintData", 0, "wxPrintData *", 0, 0, 0, 0},{"_p_wxPrintData", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFontData[] = {{"_p_wxFontData", 0, "wxFontData *", 0, 0, 0, 0},{"_p_wxFontData", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSplitterEvent", _p_wxSplitterEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFindDialogEvent", _p_wxFindDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCalculateLayoutEvent", _p_wxCalculateLayoutEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSashEvent", _p_wxSashEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxQueryLayoutInfoEvent", _p_wxQueryLayoutInfoEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxTaskBarIconEvent", _p_wxTaskBarIconEventTo_p_wxEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxTaskBarIcon[] = {{"_p_wxTaskBarIcon", 0, "wxTaskBarIcon *", 0, 0, 0, 0},{"_p_wxTaskBarIcon", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxIconBundle[] = {{"_p_wxIconBundle", 0, "wxIconBundle *", 0, 0, 0, 0},{"_p_wxIconBundle", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxLayoutAlgorithm[] = {{"_p_wxLayoutAlgorithm", 0, "wxLayoutAlgorithm *", 0, 0, 0, 0},{"_p_wxLayoutAlgorithm", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFindDialogEvent[] = {{"_p_wxFindDialogEvent", 0, "wxFindDialogEvent *", 0, 0, 0, 0},{"_p_wxFindDialogEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPreviewCanvas[] = {{"_p_wxPreviewCanvas", 0, "wxPreviewCanvas *", 0, 0, 0, 0},{"_p_wxPreviewCanvas", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0, 0, 0, 0},{"_p_wxFont", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSplitterEvent[] = {{"_p_wxSplitterEvent", 0, "wxSplitterEvent *", 0, 0, 0, 0},{"_p_wxSplitterEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0, 0, 0, 0},{"_p_wxRegion", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFindReplaceData[] = {{"_p_wxFindReplaceData", 0, "wxFindReplaceData *", 0, 0, 0, 0},{"_p_wxFindReplaceData", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0, 0, 0, 0},{"_p_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0, 0, 0, 0},{"_p_wxSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0, 0, 0, 0},{"_p_wxDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0, 0, 0, 0},{"_p_wxIcon", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMDIChildFrame[] = {{"_p_wxMDIChildFrame", 0, "wxMDIChildFrame *", 0, 0, 0, 0},{"_p_wxMDIChildFrame", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxColourData[] = {{"_p_wxColourData", 0, "wxColourData *", 0, 0, 0, 0},{"_p_wxColourData", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxNotifyEvent[] = {{"_p_wxNotifyEvent", 0, "wxNotifyEvent *", 0, 0, 0, 0},{"_p_wxSplitterEvent", _p_wxSplitterEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyWindow[] = {{"_p_wxPyWindow", 0, "wxPyWindow *", 0, 0, 0, 0},{"_p_wxPyWindow", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSplashScreen[] = {{"_p_wxSplashScreen", 0, "wxSplashScreen *", 0, 0, 0, 0},{"_p_wxSplashScreen", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFindReplaceDialog[] = {{"_p_wxFindReplaceDialog", 0, "wxFindReplaceDialog *", 0, 0, 0, 0},{"_p_wxFindReplaceDialog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxProgressDialog[] = {{"_p_wxProgressDialog", 0, "wxProgressDialog *", 0, 0, 0, 0},{"_p_wxProgressDialog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMessageDialog[] = {{"_p_wxMessageDialog", 0, "wxMessageDialog *", 0, 0, 0, 0},{"_p_wxMessageDialog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxTextEntryDialog[] = {{"_p_wxTextEntryDialog", 0, "wxTextEntryDialog *", 0, 0, 0, 0},{"_p_wxTextEntryDialog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSingleChoiceDialog[] = {{"_p_wxSingleChoiceDialog", 0, "wxSingleChoiceDialog *", 0, 0, 0, 0},{"_p_wxSingleChoiceDialog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMultiChoiceDialog[] = {{"_p_wxMultiChoiceDialog", 0, "wxMultiChoiceDialog *", 0, 0, 0, 0},{"_p_wxMultiChoiceDialog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFileDialog[] = {{"_p_wxFileDialog", 0, "wxFileDialog *", 0, 0, 0, 0},{"_p_wxFileDialog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPrinter[] = {{"_p_wxPrinter", 0, "wxPrinter *", 0, 0, 0, 0},{"_p_wxPrinter", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxArrayInt[] = {{"_p_wxArrayInt", 0, "wxArrayInt *", 0, 0, 0, 0},{"_p_wxArrayInt", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxSplashScreen", _p_wxSplashScreenTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMiniFrame", _p_wxMiniFrameTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyPanel", _p_wxPyPanelTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxFindReplaceDialog", _p_wxFindReplaceDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxTextEntryDialog", _p_wxTextEntryDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSingleChoiceDialog", _p_wxSingleChoiceDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMultiChoiceDialog", _p_wxMultiChoiceDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxFileDialog", _p_wxFileDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMessageDialog", _p_wxMessageDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxProgressDialog", _p_wxProgressDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPanel", _p_wxPanelTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStatusBar", _p_wxStatusBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxTopLevelWindow", _p_wxTopLevelWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMDIClientWindow", _p_wxMDIClientWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyVScrolledWindow", _p_wxPyVScrolledWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyScrolledWindow", _p_wxPyScrolledWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxScrolledWindow", _p_wxScrolledWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSashWindow", _p_wxSashWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSashLayoutWindow", _p_wxSashLayoutWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSplitterWindow", _p_wxSplitterWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSplashScreenWindow", _p_wxSplashScreenWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPopupWindow", _p_wxPopupWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyPopupTransientWindow", _p_wxPyPopupTransientWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxTipWindow", _p_wxTipWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPreviewFrame", _p_wxPreviewFrameTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMDIChildFrame", _p_wxMDIChildFrameTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyWindow", _p_wxPyWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPreviewControlBar", _p_wxPreviewControlBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxTaskBarIcon", _p_wxTaskBarIconTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxFrame", _p_wxFrameTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxDialog", _p_wxDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPageSetupDialog", _p_wxPageSetupDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPrintDialog", _p_wxPrintDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxColourDialog", _p_wxColourDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxDirDialog", _p_wxDirDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxFontDialog", _p_wxFontDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMDIParentFrame", _p_wxMDIParentFrameTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxCalculateLayoutEvent[] = {{"_p_wxCalculateLayoutEvent", 0, "wxCalculateLayoutEvent *", 0, 0, 0, 0},{"_p_wxCalculateLayoutEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyHtmlListBox[] = {{"_p_wxPyHtmlListBox", 0, "wxPyHtmlListBox *", 0, 0, 0, 0},{"_p_wxPyHtmlListBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyVListBox[] = {{"_p_wxPyVListBox", 0, "wxPyVListBox *", 0, 0, 0, 0},{"_p_wxPyVListBox", 0, 0, 0, 0, 0, 0},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxPyVListBox, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0, 0, 0, 0},{"_p_wxRect", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMiniFrame[] = {{"_p_wxMiniFrame", 0, "wxMiniFrame *", 0, 0, 0, 0},{"_p_wxMiniFrame", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFrame[] = {{"_p_wxFrame", 0, "wxFrame *", 0, 0, 0, 0},{"_p_wxMDIChildFrame", _p_wxMDIChildFrameTo_p_wxFrame, 0, 0, 0, 0, 0},{"_p_wxProgressDialog", _p_wxProgressDialogTo_p_wxFrame, 0, 0, 0, 0, 0},{"_p_wxPreviewFrame", _p_wxPreviewFrameTo_p_wxFrame, 0, 0, 0, 0, 0},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_p_wxFrame, 0, 0, 0, 0, 0},{"_p_wxMiniFrame", _p_wxMiniFrameTo_p_wxFrame, 0, 0, 0, 0, 0},{"_p_wxFrame", 0, 0, 0, 0, 0, 0},{"_p_wxSplashScreen", _p_wxSplashScreenTo_p_wxFrame, 0, 0, 0, 0, 0},{"_p_wxMDIParentFrame", _p_wxMDIParentFrameTo_p_wxFrame, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyPrintout[] = {{"_p_wxPyPrintout", 0, "wxPyPrintout *", 0, 0, 0, 0},{"_p_wxPyPrintout", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxTaskBarIconEvent[] = {{"_p_wxTaskBarIconEvent", 0, "wxTaskBarIconEvent *", 0, 0, 0, 0},{"_p_wxTaskBarIconEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxScrollWinEvent[] = {{"_p_wxScrollWinEvent", 0, "wxScrollWinEvent *", 0, 0, 0, 0},{"_p_wxScrollWinEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxStatusBar[] = {{"_p_wxStatusBar", 0, "wxStatusBar *", 0, 0, 0, 0},{"_p_wxStatusBar", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMDIParentFrame[] = {{"_p_wxMDIParentFrame", 0, "wxMDIParentFrame *", 0, 0, 0, 0},{"_p_wxMDIParentFrame", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0, 0, 0, 0},{"_p_wxPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxQueryLayoutInfoEvent", _p_wxQueryLayoutInfoEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPreviewFrame", _p_wxPreviewFrameTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyPanel", _p_wxPyPanelTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFontData", _p_wxFontDataTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPrintData", _p_wxPrintDataTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTaskBarIcon", _p_wxTaskBarIconTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxLayoutAlgorithm", _p_wxLayoutAlgorithmTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFindDialogEvent", _p_wxFindDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSplitterEvent", _p_wxSplitterEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFindReplaceData", _p_wxFindReplaceDataTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMDIChildFrame", _p_wxMDIChildFrameTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxColourData", _p_wxColourDataTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyWindow", _p_wxPyWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSplashScreen", _p_wxSplashScreenTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTextEntryDialog", _p_wxTextEntryDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMessageDialog", _p_wxMessageDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxProgressDialog", _p_wxProgressDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFindReplaceDialog", _p_wxFindReplaceDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSingleChoiceDialog", _p_wxSingleChoiceDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMultiChoiceDialog", _p_wxMultiChoiceDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileDialog", _p_wxFileDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPrinter", _p_wxPrinterTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCalculateLayoutEvent", _p_wxCalculateLayoutEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMiniFrame", _p_wxMiniFrameTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFrame", _p_wxFrameTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyPrintout", _p_wxPyPrintoutTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTaskBarIconEvent", _p_wxTaskBarIconEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStatusBar", _p_wxStatusBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMDIParentFrame", _p_wxMDIParentFrameTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrolledWindow", _p_wxScrolledWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyScrolledWindow", _p_wxPyScrolledWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyVScrolledWindow", _p_wxPyVScrolledWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMDIClientWindow", _p_wxMDIClientWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTopLevelWindow", _p_wxTopLevelWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSashWindow", _p_wxSashWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSashLayoutWindow", _p_wxSashLayoutWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSplitterWindow", _p_wxSplitterWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSplashScreenWindow", _p_wxSplashScreenWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPopupWindow", _p_wxPopupWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyPopupTransientWindow", _p_wxPyPopupTransientWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTipWindow", _p_wxTipWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSashEvent", _p_wxSashEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPrintPreview", _p_wxPrintPreviewTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyPrintPreview", _p_wxPyPrintPreviewTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPanel", _p_wxPanelTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPrintDialog", _p_wxPrintDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPageSetupDialog", _p_wxPageSetupDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDialog", _p_wxDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxColourDialog", _p_wxColourDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDirDialog", _p_wxDirDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFontDialog", _p_wxFontDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPreviewControlBar", _p_wxPreviewControlBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPageSetupDialogData", _p_wxPageSetupDialogDataTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPrintDialogData", _p_wxPrintDialogDataTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxOutputStream[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0, 0, 0, 0},{"_p_wxOutputStream", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_unsigned_long[] = {{"_p_unsigned_long", 0, "unsigned long *", 0, 0, 0, 0},{"_p_unsigned_long", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyScrolledWindow[] = {{"_p_wxPyScrolledWindow", 0, "wxPyScrolledWindow *", 0, 0, 0, 0},{"_p_wxPyScrolledWindow", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMDIClientWindow[] = {{"_p_wxMDIClientWindow", 0, "wxMDIClientWindow *", 0, 0, 0, 0},{"_p_wxMDIClientWindow", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxTipWindow[] = {{"_p_wxTipWindow", 0, "wxTipWindow *", 0, 0, 0, 0},{"_p_wxTipWindow", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSashLayoutWindow[] = {{"_p_wxSashLayoutWindow", 0, "wxSashLayoutWindow *", 0, 0, 0, 0},{"_p_wxSashLayoutWindow", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSplitterWindow[] = {{"_p_wxSplitterWindow", 0, "wxSplitterWindow *", 0, 0, 0, 0},{"_p_wxSplitterWindow", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyVScrolledWindow[] = {{"_p_wxPyVScrolledWindow", 0, "wxPyVScrolledWindow *", 0, 0, 0, 0},{"_p_wxPyVScrolledWindow", 0, 0, 0, 0, 0, 0},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxPyVScrolledWindow, 0, 0, 0, 0, 0},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxPyVScrolledWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyPopupTransientWindow[] = {{"_p_wxPyPopupTransientWindow", 0, "wxPyPopupTransientWindow *", 0, 0, 0, 0},{"_p_wxPyPopupTransientWindow", 0, 0, 0, 0, 0, 0},{"_p_wxTipWindow", _p_wxTipWindowTo_p_wxPyPopupTransientWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPopupWindow[] = {{"_p_wxPopupWindow", 0, "wxPopupWindow *", 0, 0, 0, 0},{"_p_wxPopupWindow", 0, 0, 0, 0, 0, 0},{"_p_wxPyPopupTransientWindow", _p_wxPyPopupTransientWindowTo_p_wxPopupWindow, 0, 0, 0, 0, 0},{"_p_wxTipWindow", _p_wxTipWindowTo_p_wxPopupWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSashWindow[] = {{"_p_wxSashWindow", 0, "wxSashWindow *", 0, 0, 0, 0},{"_p_wxSashWindow", 0, 0, 0, 0, 0, 0},{"_p_wxSashLayoutWindow", _p_wxSashLayoutWindowTo_p_wxSashWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxTopLevelWindow[] = {{"_p_wxTopLevelWindow", 0, "wxTopLevelWindow *", 0, 0, 0, 0},{"_p_wxFrame", _p_wxFrameTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxMiniFrame", _p_wxMiniFrameTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxDirDialog", _p_wxDirDialogTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxColourDialog", _p_wxColourDialogTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxDialog", _p_wxDialogTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxPageSetupDialog", _p_wxPageSetupDialogTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxPrintDialog", _p_wxPrintDialogTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxFontDialog", _p_wxFontDialogTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxSplashScreen", _p_wxSplashScreenTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxTopLevelWindow", 0, 0, 0, 0, 0, 0},{"_p_wxMDIParentFrame", _p_wxMDIParentFrameTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxMDIChildFrame", _p_wxMDIChildFrameTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxProgressDialog", _p_wxProgressDialogTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxFileDialog", _p_wxFileDialogTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxMultiChoiceDialog", _p_wxMultiChoiceDialogTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxSingleChoiceDialog", _p_wxSingleChoiceDialogTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxTextEntryDialog", _p_wxTextEntryDialogTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxMessageDialog", _p_wxMessageDialogTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxFindReplaceDialog", _p_wxFindReplaceDialogTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxPreviewFrame", _p_wxPreviewFrameTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxSplashScreen", _p_wxSplashScreenTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMiniFrame", _p_wxMiniFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyPanel", _p_wxPyPanelTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxFindReplaceDialog", _p_wxFindReplaceDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxProgressDialog", _p_wxProgressDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMessageDialog", _p_wxMessageDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxTextEntryDialog", _p_wxTextEntryDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSingleChoiceDialog", _p_wxSingleChoiceDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMultiChoiceDialog", _p_wxMultiChoiceDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxFileDialog", _p_wxFileDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPanel", _p_wxPanelTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStatusBar", _p_wxStatusBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxTopLevelWindow", _p_wxTopLevelWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSplashScreenWindow", _p_wxSplashScreenWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSplitterWindow", _p_wxSplitterWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSashLayoutWindow", _p_wxSashLayoutWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSashWindow", _p_wxSashWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyVScrolledWindow", _p_wxPyVScrolledWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyScrolledWindow", _p_wxPyScrolledWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxScrolledWindow", _p_wxScrolledWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPopupWindow", _p_wxPopupWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyPopupTransientWindow", _p_wxPyPopupTransientWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxTipWindow", _p_wxTipWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMDIClientWindow", _p_wxMDIClientWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPreviewFrame", _p_wxPreviewFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMDIChildFrame", _p_wxMDIChildFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyWindow", _p_wxPyWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPreviewControlBar", _p_wxPreviewControlBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxFrame", _p_wxFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPageSetupDialog", _p_wxPageSetupDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPrintDialog", _p_wxPrintDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxDialog", _p_wxDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxColourDialog", _p_wxColourDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxDirDialog", _p_wxDirDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxFontDialog", _p_wxFontDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMDIParentFrame", _p_wxMDIParentFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxScrolledWindow[] = {{"_p_wxScrolledWindow", 0, "wxScrolledWindow *", 0, 0, 0, 0},{"_p_wxScrolledWindow", 0, 0, 0, 0, 0, 0},{"_p_wxPyScrolledWindow", _p_wxPyScrolledWindowTo_p_wxScrolledWindow, 0, 0, 0, 0, 0},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxScrolledWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSplashScreenWindow[] = {{"_p_wxSplashScreenWindow", 0, "wxSplashScreenWindow *", 0, 0, 0, 0},{"_p_wxSplashScreenWindow", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxMenuBar[] = {{"_p_wxMenuBar", 0, "wxMenuBar *", 0, 0, 0, 0},{"_p_wxMenuBar", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPrintPreview[] = {{"_p_wxPrintPreview", 0, "wxPrintPreview *", 0, 0, 0, 0},{"_p_wxPrintPreview", 0, 0, 0, 0, 0, 0},{"_p_wxPyPrintPreview", _p_wxPyPrintPreviewTo_p_wxPrintPreview, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxSashEvent[] = {{"_p_wxSashEvent", 0, "wxSashEvent *", 0, 0, 0, 0},{"_p_wxSashEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0, 0, 0, 0},{"_p_wxString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyPrintPreview[] = {{"_p_wxPyPrintPreview", 0, "wxPyPrintPreview *", 0, 0, 0, 0},{"_p_wxPyPrintPreview", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxFontDialog[] = {{"_p_wxFontDialog", 0, "wxFontDialog *", 0, 0, 0, 0},{"_p_wxFontDialog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxDirDialog[] = {{"_p_wxDirDialog", 0, "wxDirDialog *", 0, 0, 0, 0},{"_p_wxDirDialog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxColourDialog[] = {{"_p_wxColourDialog", 0, "wxColourDialog *", 0, 0, 0, 0},{"_p_wxColourDialog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxDialog[] = {{"_p_wxDialog", 0, "wxDialog *", 0, 0, 0, 0},{"_p_wxDialog", 0, 0, 0, 0, 0, 0},{"_p_wxColourDialog", _p_wxColourDialogTo_p_wxDialog, 0, 0, 0, 0, 0},{"_p_wxDirDialog", _p_wxDirDialogTo_p_wxDialog, 0, 0, 0, 0, 0},{"_p_wxFontDialog", _p_wxFontDialogTo_p_wxDialog, 0, 0, 0, 0, 0},{"_p_wxPageSetupDialog", _p_wxPageSetupDialogTo_p_wxDialog, 0, 0, 0, 0, 0},{"_p_wxPrintDialog", _p_wxPrintDialogTo_p_wxDialog, 0, 0, 0, 0, 0},{"_p_wxFileDialog", _p_wxFileDialogTo_p_wxDialog, 0, 0, 0, 0, 0},{"_p_wxMultiChoiceDialog", _p_wxMultiChoiceDialogTo_p_wxDialog, 0, 0, 0, 0, 0},{"_p_wxSingleChoiceDialog", _p_wxSingleChoiceDialogTo_p_wxDialog, 0, 0, 0, 0, 0},{"_p_wxTextEntryDialog", _p_wxTextEntryDialogTo_p_wxDialog, 0, 0, 0, 0, 0},{"_p_wxMessageDialog", _p_wxMessageDialogTo_p_wxDialog, 0, 0, 0, 0, 0},{"_p_wxFindReplaceDialog", _p_wxFindReplaceDialogTo_p_wxDialog, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPanel[] = {{"_p_wxPanel", 0, "wxPanel *", 0, 0, 0, 0},{"_p_wxPanel", 0, 0, 0, 0, 0, 0},{"_p_wxScrolledWindow", _p_wxScrolledWindowTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPyScrolledWindow", _p_wxPyScrolledWindowTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPyVScrolledWindow", _p_wxPyVScrolledWindowTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPyPanel", _p_wxPyPanelTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPreviewControlBar", _p_wxPreviewControlBarTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxPanel, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPageSetupDialog[] = {{"_p_wxPageSetupDialog", 0, "wxPageSetupDialog *", 0, 0, 0, 0},{"_p_wxPageSetupDialog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPrintDialog[] = {{"_p_wxPrintDialog", 0, "wxPrintDialog *", 0, 0, 0, 0},{"_p_wxPrintDialog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0, 0, 0, 0},{"_p_wxBitmap", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxFindDialogEvent", _p_wxFindDialogEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxSplitterEvent", _p_wxSplitterEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", 0, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxSashEvent", _p_wxSashEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPreviewControlBar[] = {{"_p_wxPreviewControlBar", 0, "wxPreviewControlBar *", 0, 0, 0, 0},{"_p_wxPreviewControlBar", 0, 0, 0, 0, 0, 0},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxPreviewControlBar, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPyPreviewControlBar[] = {{"_p_wxPyPreviewControlBar", 0, "wxPyPreviewControlBar *", 0, 0, 0, 0},{"_p_wxPyPreviewControlBar", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0, 0, 0, 0},{"_p_wxColour", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxToolBar[] = {{"_p_wxToolBar", 0, "wxToolBar *", 0, 0, 0, 0},{"_p_wxToolBar", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPageSetupDialogData[] = {{"_p_wxPageSetupDialogData", 0, "wxPageSetupDialogData *", 0, 0, 0, 0},{"_p_wxPageSetupDialogData", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; -static swig_type_info _swigt__p_wxPrintDialogData[] = {{"_p_wxPrintDialogData", 0, "wxPrintDialogData *", 0, 0, 0, 0},{"_p_wxPrintDialogData", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; - -static swig_type_info *swig_types_initial[] = { -_swigt__p_wxQueryLayoutInfoEvent, -_swigt__p_wxPreviewFrame, -_swigt__p_wxPyPreviewFrame, -_swigt__p_wxPyPanel, -_swigt__p_wxMenu, -_swigt__p_wxPrintData, -_swigt__p_wxFontData, -_swigt__p_wxEvent, -_swigt__p_wxTaskBarIcon, -_swigt__p_wxIconBundle, -_swigt__p_wxLayoutAlgorithm, -_swigt__p_wxFindDialogEvent, -_swigt__p_wxPreviewCanvas, -_swigt__p_wxFont, -_swigt__p_wxSplitterEvent, -_swigt__p_wxRegion, -_swigt__p_wxFindReplaceData, -_swigt__p_int, -_swigt__p_wxSize, -_swigt__p_wxDC, -_swigt__p_wxIcon, -_swigt__p_wxMDIChildFrame, -_swigt__p_wxColourData, -_swigt__p_wxNotifyEvent, -_swigt__p_wxPyWindow, -_swigt__p_wxSplashScreen, -_swigt__p_wxFindReplaceDialog, -_swigt__p_wxProgressDialog, -_swigt__p_wxMessageDialog, -_swigt__p_wxTextEntryDialog, -_swigt__p_wxSingleChoiceDialog, -_swigt__p_wxMultiChoiceDialog, -_swigt__p_wxFileDialog, -_swigt__p_wxPrinter, -_swigt__p_wxArrayInt, -_swigt__p_wxEvtHandler, -_swigt__p_wxCalculateLayoutEvent, -_swigt__p_wxPyHtmlListBox, -_swigt__p_wxPyVListBox, -_swigt__p_wxRect, -_swigt__p_char, -_swigt__p_wxMiniFrame, -_swigt__p_wxFrame, -_swigt__p_wxPyPrintout, -_swigt__p_wxTaskBarIconEvent, -_swigt__p_wxScrollWinEvent, -_swigt__p_wxStatusBar, -_swigt__p_wxMDIParentFrame, -_swigt__p_wxPoint, -_swigt__p_wxObject, -_swigt__p_wxOutputStream, -_swigt__p_unsigned_long, -_swigt__p_wxPyScrolledWindow, -_swigt__p_wxMDIClientWindow, -_swigt__p_wxTipWindow, -_swigt__p_wxSashLayoutWindow, -_swigt__p_wxSplitterWindow, -_swigt__p_wxPyVScrolledWindow, -_swigt__p_wxPyPopupTransientWindow, -_swigt__p_wxPopupWindow, -_swigt__p_wxSashWindow, -_swigt__p_wxTopLevelWindow, -_swigt__p_wxWindow, -_swigt__p_wxScrolledWindow, -_swigt__p_wxSplashScreenWindow, -_swigt__p_wxMenuBar, -_swigt__p_wxPrintPreview, -_swigt__p_wxSashEvent, -_swigt__p_wxString, -_swigt__p_wxPyPrintPreview, -_swigt__p_wxFontDialog, -_swigt__p_wxDirDialog, -_swigt__p_wxColourDialog, -_swigt__p_wxDialog, -_swigt__p_wxPanel, -_swigt__p_wxPageSetupDialog, -_swigt__p_wxPrintDialog, -_swigt__p_wxBitmap, -_swigt__p_wxCommandEvent, -_swigt__p_wxPreviewControlBar, -_swigt__p_wxPyPreviewControlBar, -_swigt__p_wxColour, -_swigt__p_wxToolBar, -_swigt__p_wxPageSetupDialogData, -_swigt__p_wxPrintDialogData, -0 -}; - - -/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ - -static swig_const_info swig_const_table[] = { -{0}}; - -#ifdef __cplusplus -} -#endif - -#ifdef __cplusplus -extern "C" -#endif -SWIGEXPORT(void) SWIG_init(void) { - static PyObject *SWIG_globals = 0; - static int typeinit = 0; - PyObject *m, *d; - int i; - if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); - m = Py_InitModule((char *) SWIG_name, SwigMethods); - d = PyModule_GetDict(m); - - if (!typeinit) { - for (i = 0; swig_types_initial[i]; i++) { - swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); - } - typeinit = 1; - } - SWIG_InstallConstants(d,swig_const_table); - - PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); - SWIG_addvarlink(SWIG_globals,(char*)"FrameNameStr",_wrap_FrameNameStr_get, _wrap_FrameNameStr_set); - SWIG_addvarlink(SWIG_globals,(char*)"DialogNameStr",_wrap_DialogNameStr_get, _wrap_DialogNameStr_set); - SWIG_addvarlink(SWIG_globals,(char*)"StatusLineNameStr",_wrap_StatusLineNameStr_get, _wrap_StatusLineNameStr_set); - SWIG_addvarlink(SWIG_globals,(char*)"ToolBarNameStr",_wrap_ToolBarNameStr_get, _wrap_ToolBarNameStr_set); - PyDict_SetItemString(d,"STAY_ON_TOP", SWIG_FromInt((int)wxSTAY_ON_TOP)); - PyDict_SetItemString(d,"ICONIZE", SWIG_FromInt((int)wxICONIZE)); - PyDict_SetItemString(d,"MINIMIZE", SWIG_FromInt((int)wxMINIMIZE)); - PyDict_SetItemString(d,"MAXIMIZE", SWIG_FromInt((int)wxMAXIMIZE)); - PyDict_SetItemString(d,"CLOSE_BOX", SWIG_FromInt((int)wxCLOSE_BOX)); - PyDict_SetItemString(d,"THICK_FRAME", SWIG_FromInt((int)wxTHICK_FRAME)); - PyDict_SetItemString(d,"SYSTEM_MENU", SWIG_FromInt((int)wxSYSTEM_MENU)); - PyDict_SetItemString(d,"MINIMIZE_BOX", SWIG_FromInt((int)wxMINIMIZE_BOX)); - PyDict_SetItemString(d,"MAXIMIZE_BOX", SWIG_FromInt((int)wxMAXIMIZE_BOX)); - PyDict_SetItemString(d,"TINY_CAPTION_HORIZ", SWIG_FromInt((int)wxTINY_CAPTION_HORIZ)); - PyDict_SetItemString(d,"TINY_CAPTION_VERT", SWIG_FromInt((int)wxTINY_CAPTION_VERT)); - PyDict_SetItemString(d,"RESIZE_BOX", SWIG_FromInt((int)wxRESIZE_BOX)); - PyDict_SetItemString(d,"RESIZE_BORDER", SWIG_FromInt((int)wxRESIZE_BORDER)); - PyDict_SetItemString(d,"DIALOG_NO_PARENT", SWIG_FromInt((int)wxDIALOG_NO_PARENT)); - PyDict_SetItemString(d,"DEFAULT_FRAME_STYLE", SWIG_FromInt((int)wxDEFAULT_FRAME_STYLE)); - PyDict_SetItemString(d,"DEFAULT_DIALOG_STYLE", SWIG_FromInt((int)wxDEFAULT_DIALOG_STYLE)); - PyDict_SetItemString(d,"FRAME_TOOL_WINDOW", SWIG_FromInt((int)wxFRAME_TOOL_WINDOW)); - PyDict_SetItemString(d,"FRAME_FLOAT_ON_PARENT", SWIG_FromInt((int)wxFRAME_FLOAT_ON_PARENT)); - PyDict_SetItemString(d,"FRAME_NO_WINDOW_MENU", SWIG_FromInt((int)wxFRAME_NO_WINDOW_MENU)); - PyDict_SetItemString(d,"FRAME_NO_TASKBAR", SWIG_FromInt((int)wxFRAME_NO_TASKBAR)); - PyDict_SetItemString(d,"FRAME_SHAPED", SWIG_FromInt((int)wxFRAME_SHAPED)); - PyDict_SetItemString(d,"DIALOG_MODAL", SWIG_FromInt((int)wxDIALOG_MODAL)); - PyDict_SetItemString(d,"DIALOG_MODELESS", SWIG_FromInt((int)wxDIALOG_MODELESS)); - PyDict_SetItemString(d,"USER_COLOURS", SWIG_FromInt((int)wxUSER_COLOURS)); - PyDict_SetItemString(d,"NO_3D", SWIG_FromInt((int)wxNO_3D)); - PyDict_SetItemString(d,"FULLSCREEN_NOMENUBAR", SWIG_FromInt((int)wxFULLSCREEN_NOMENUBAR)); - PyDict_SetItemString(d,"FULLSCREEN_NOTOOLBAR", SWIG_FromInt((int)wxFULLSCREEN_NOTOOLBAR)); - PyDict_SetItemString(d,"FULLSCREEN_NOSTATUSBAR", SWIG_FromInt((int)wxFULLSCREEN_NOSTATUSBAR)); - PyDict_SetItemString(d,"FULLSCREEN_NOBORDER", SWIG_FromInt((int)wxFULLSCREEN_NOBORDER)); - PyDict_SetItemString(d,"FULLSCREEN_NOCAPTION", SWIG_FromInt((int)wxFULLSCREEN_NOCAPTION)); - PyDict_SetItemString(d,"FULLSCREEN_ALL", SWIG_FromInt((int)wxFULLSCREEN_ALL)); - PyDict_SetItemString(d,"TOPLEVEL_EX_DIALOG", SWIG_FromInt((int)wxTOPLEVEL_EX_DIALOG)); - PyDict_SetItemString(d,"SPLASH_CENTRE_ON_PARENT", SWIG_FromInt((int)wxSPLASH_CENTRE_ON_PARENT)); - PyDict_SetItemString(d,"SPLASH_CENTRE_ON_SCREEN", SWIG_FromInt((int)wxSPLASH_CENTRE_ON_SCREEN)); - PyDict_SetItemString(d,"SPLASH_NO_CENTRE", SWIG_FromInt((int)wxSPLASH_NO_CENTRE)); - PyDict_SetItemString(d,"SPLASH_TIMEOUT", SWIG_FromInt((int)wxSPLASH_TIMEOUT)); - PyDict_SetItemString(d,"SPLASH_NO_TIMEOUT", SWIG_FromInt((int)wxSPLASH_NO_TIMEOUT)); - SWIG_addvarlink(SWIG_globals,(char*)"SplitterNameStr",_wrap_SplitterNameStr_get, _wrap_SplitterNameStr_set); - PyDict_SetItemString(d,"SP_NOBORDER", SWIG_FromInt((int)wxSP_NOBORDER)); - PyDict_SetItemString(d,"SP_NOSASH", SWIG_FromInt((int)wxSP_NOSASH)); - PyDict_SetItemString(d,"SP_PERMIT_UNSPLIT", SWIG_FromInt((int)wxSP_PERMIT_UNSPLIT)); - PyDict_SetItemString(d,"SP_LIVE_UPDATE", SWIG_FromInt((int)wxSP_LIVE_UPDATE)); - PyDict_SetItemString(d,"SP_3DSASH", SWIG_FromInt((int)wxSP_3DSASH)); - PyDict_SetItemString(d,"SP_3DBORDER", SWIG_FromInt((int)wxSP_3DBORDER)); - PyDict_SetItemString(d,"SP_NO_XP_THEME", SWIG_FromInt((int)wxSP_NO_XP_THEME)); - PyDict_SetItemString(d,"SP_BORDER", SWIG_FromInt((int)wxSP_BORDER)); - PyDict_SetItemString(d,"SP_3D", SWIG_FromInt((int)wxSP_3D)); - PyDict_SetItemString(d,"SPLIT_HORIZONTAL", SWIG_FromInt((int)wxSPLIT_HORIZONTAL)); - PyDict_SetItemString(d,"SPLIT_VERTICAL", SWIG_FromInt((int)wxSPLIT_VERTICAL)); - PyDict_SetItemString(d,"SPLIT_DRAG_NONE", SWIG_FromInt((int)wxSPLIT_DRAG_NONE)); - PyDict_SetItemString(d,"SPLIT_DRAG_DRAGGING", SWIG_FromInt((int)wxSPLIT_DRAG_DRAGGING)); - PyDict_SetItemString(d,"SPLIT_DRAG_LEFT_DOWN", SWIG_FromInt((int)wxSPLIT_DRAG_LEFT_DOWN)); - PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING)); - PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_DOUBLECLICKED)); - PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_UNSPLIT", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_UNSPLIT)); - SWIG_addvarlink(SWIG_globals,(char*)"SashNameStr",_wrap_SashNameStr_get, _wrap_SashNameStr_set); - SWIG_addvarlink(SWIG_globals,(char*)"SashLayoutNameStr",_wrap_SashLayoutNameStr_get, _wrap_SashLayoutNameStr_set); - PyDict_SetItemString(d,"SASH_DRAG_NONE", SWIG_FromInt((int)wxSASH_DRAG_NONE)); - PyDict_SetItemString(d,"SASH_DRAG_DRAGGING", SWIG_FromInt((int)wxSASH_DRAG_DRAGGING)); - PyDict_SetItemString(d,"SASH_DRAG_LEFT_DOWN", SWIG_FromInt((int)wxSASH_DRAG_LEFT_DOWN)); - PyDict_SetItemString(d,"SW_NOBORDER", SWIG_FromInt((int)wxSW_NOBORDER)); - PyDict_SetItemString(d,"SW_BORDER", SWIG_FromInt((int)wxSW_BORDER)); - PyDict_SetItemString(d,"SW_3DSASH", SWIG_FromInt((int)wxSW_3DSASH)); - PyDict_SetItemString(d,"SW_3DBORDER", SWIG_FromInt((int)wxSW_3DBORDER)); - PyDict_SetItemString(d,"SW_3D", SWIG_FromInt((int)wxSW_3D)); - PyDict_SetItemString(d,"SASH_TOP", SWIG_FromInt((int)wxSASH_TOP)); - PyDict_SetItemString(d,"SASH_RIGHT", SWIG_FromInt((int)wxSASH_RIGHT)); - PyDict_SetItemString(d,"SASH_BOTTOM", SWIG_FromInt((int)wxSASH_BOTTOM)); - PyDict_SetItemString(d,"SASH_LEFT", SWIG_FromInt((int)wxSASH_LEFT)); - PyDict_SetItemString(d,"SASH_NONE", SWIG_FromInt((int)wxSASH_NONE)); - PyDict_SetItemString(d,"SASH_STATUS_OK", SWIG_FromInt((int)wxSASH_STATUS_OK)); - PyDict_SetItemString(d,"SASH_STATUS_OUT_OF_RANGE", SWIG_FromInt((int)wxSASH_STATUS_OUT_OF_RANGE)); - PyDict_SetItemString(d, "wxEVT_SASH_DRAGGED", PyInt_FromLong(wxEVT_SASH_DRAGGED)); - PyDict_SetItemString(d,"LAYOUT_HORIZONTAL", SWIG_FromInt((int)wxLAYOUT_HORIZONTAL)); - PyDict_SetItemString(d,"LAYOUT_VERTICAL", SWIG_FromInt((int)wxLAYOUT_VERTICAL)); - PyDict_SetItemString(d,"LAYOUT_NONE", SWIG_FromInt((int)wxLAYOUT_NONE)); - PyDict_SetItemString(d,"LAYOUT_TOP", SWIG_FromInt((int)wxLAYOUT_TOP)); - PyDict_SetItemString(d,"LAYOUT_LEFT", SWIG_FromInt((int)wxLAYOUT_LEFT)); - PyDict_SetItemString(d,"LAYOUT_RIGHT", SWIG_FromInt((int)wxLAYOUT_RIGHT)); - PyDict_SetItemString(d,"LAYOUT_BOTTOM", SWIG_FromInt((int)wxLAYOUT_BOTTOM)); - PyDict_SetItemString(d,"LAYOUT_LENGTH_Y", SWIG_FromInt((int)wxLAYOUT_LENGTH_Y)); - PyDict_SetItemString(d,"LAYOUT_LENGTH_X", SWIG_FromInt((int)wxLAYOUT_LENGTH_X)); - PyDict_SetItemString(d,"LAYOUT_MRU_LENGTH", SWIG_FromInt((int)wxLAYOUT_MRU_LENGTH)); - PyDict_SetItemString(d,"LAYOUT_QUERY", SWIG_FromInt((int)wxLAYOUT_QUERY)); - PyDict_SetItemString(d, "wxEVT_QUERY_LAYOUT_INFO", PyInt_FromLong(wxEVT_QUERY_LAYOUT_INFO)); - PyDict_SetItemString(d, "wxEVT_CALCULATE_LAYOUT", PyInt_FromLong(wxEVT_CALCULATE_LAYOUT)); - SWIG_addvarlink(SWIG_globals,(char*)"VListBoxNameStr",_wrap_VListBoxNameStr_get, _wrap_VListBoxNameStr_set); - - // Map renamed classes back to their common name for OOR - wxPyPtrTypeMap_Add("wxHtmlListBox", "wxPyHtmlListBox"); - wxPyPtrTypeMap_Add("wxVListBox", "wxPyVListBox"); - wxPyPtrTypeMap_Add("wxVScrolledWindow", "wxPyVScrolledWindow"); - - PyDict_SetItemString(d, "wxEVT_TASKBAR_MOVE", PyInt_FromLong(wxEVT_TASKBAR_MOVE)); - PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_DOWN", PyInt_FromLong(wxEVT_TASKBAR_LEFT_DOWN)); - PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_UP", PyInt_FromLong(wxEVT_TASKBAR_LEFT_UP)); - PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_DOWN", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_DOWN)); - PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_UP", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_UP)); - PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_DCLICK", PyInt_FromLong(wxEVT_TASKBAR_LEFT_DCLICK)); - PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_DCLICK", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_DCLICK)); - SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set); - SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set); - SWIG_addvarlink(SWIG_globals,(char*)"DirDialogNameStr",_wrap_DirDialogNameStr_get, _wrap_DirDialogNameStr_set); - SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set); - SWIG_addvarlink(SWIG_globals,(char*)"GetTextFromUserPromptStr",_wrap_GetTextFromUserPromptStr_get, _wrap_GetTextFromUserPromptStr_set); - SWIG_addvarlink(SWIG_globals,(char*)"MessageBoxCaptionStr",_wrap_MessageBoxCaptionStr_get, _wrap_MessageBoxCaptionStr_set); - PyDict_SetItemString(d,"CHOICEDLG_STYLE", SWIG_FromInt((int)wxCHOICEDLG_STYLE)); - PyDict_SetItemString(d,"FR_DOWN", SWIG_FromInt((int)wxFR_DOWN)); - PyDict_SetItemString(d,"FR_WHOLEWORD", SWIG_FromInt((int)wxFR_WHOLEWORD)); - PyDict_SetItemString(d,"FR_MATCHCASE", SWIG_FromInt((int)wxFR_MATCHCASE)); - PyDict_SetItemString(d,"FR_REPLACEDIALOG", SWIG_FromInt((int)wxFR_REPLACEDIALOG)); - PyDict_SetItemString(d,"FR_NOUPDOWN", SWIG_FromInt((int)wxFR_NOUPDOWN)); - PyDict_SetItemString(d,"FR_NOMATCHCASE", SWIG_FromInt((int)wxFR_NOMATCHCASE)); - PyDict_SetItemString(d,"FR_NOWHOLEWORD", SWIG_FromInt((int)wxFR_NOWHOLEWORD)); - PyDict_SetItemString(d, "wxEVT_COMMAND_FIND", PyInt_FromLong(wxEVT_COMMAND_FIND)); - PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_NEXT", PyInt_FromLong(wxEVT_COMMAND_FIND_NEXT)); - PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_REPLACE", PyInt_FromLong(wxEVT_COMMAND_FIND_REPLACE)); - PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_REPLACE_ALL", PyInt_FromLong(wxEVT_COMMAND_FIND_REPLACE_ALL)); - PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_CLOSE", PyInt_FromLong(wxEVT_COMMAND_FIND_CLOSE)); - PyDict_SetItemString(d,"IDM_WINDOWTILE", SWIG_FromInt((int)4001)); - PyDict_SetItemString(d,"IDM_WINDOWTILEHOR", SWIG_FromInt((int)4001)); - PyDict_SetItemString(d,"IDM_WINDOWCASCADE", SWIG_FromInt((int)4002)); - PyDict_SetItemString(d,"IDM_WINDOWICONS", SWIG_FromInt((int)4003)); - PyDict_SetItemString(d,"IDM_WINDOWNEXT", SWIG_FromInt((int)4004)); - PyDict_SetItemString(d,"IDM_WINDOWTILEVERT", SWIG_FromInt((int)4005)); - PyDict_SetItemString(d,"FIRST_MDI_CHILD", SWIG_FromInt((int)4100)); - PyDict_SetItemString(d,"LAST_MDI_CHILD", SWIG_FromInt((int)4600)); - SWIG_addvarlink(SWIG_globals,(char*)"PrintoutTitleStr",_wrap_PrintoutTitleStr_get, _wrap_PrintoutTitleStr_set); - SWIG_addvarlink(SWIG_globals,(char*)"PreviewCanvasNameStr",_wrap_PreviewCanvasNameStr_get, _wrap_PreviewCanvasNameStr_set); - PyDict_SetItemString(d,"PRINT_MODE_NONE", SWIG_FromInt((int)wxPRINT_MODE_NONE)); - PyDict_SetItemString(d,"PRINT_MODE_PREVIEW", SWIG_FromInt((int)wxPRINT_MODE_PREVIEW)); - PyDict_SetItemString(d,"PRINT_MODE_FILE", SWIG_FromInt((int)wxPRINT_MODE_FILE)); - PyDict_SetItemString(d,"PRINT_MODE_PRINTER", SWIG_FromInt((int)wxPRINT_MODE_PRINTER)); - PyDict_SetItemString(d,"PRINT_MODE_STREAM", SWIG_FromInt((int)wxPRINT_MODE_STREAM)); - PyDict_SetItemString(d,"PRINTER_NO_ERROR", SWIG_FromInt((int)wxPRINTER_NO_ERROR)); - PyDict_SetItemString(d,"PRINTER_CANCELLED", SWIG_FromInt((int)wxPRINTER_CANCELLED)); - PyDict_SetItemString(d,"PRINTER_ERROR", SWIG_FromInt((int)wxPRINTER_ERROR)); - PyDict_SetItemString(d,"PREVIEW_PRINT", SWIG_FromInt((int)wxPREVIEW_PRINT)); - PyDict_SetItemString(d,"PREVIEW_PREVIOUS", SWIG_FromInt((int)wxPREVIEW_PREVIOUS)); - PyDict_SetItemString(d,"PREVIEW_NEXT", SWIG_FromInt((int)wxPREVIEW_NEXT)); - PyDict_SetItemString(d,"PREVIEW_ZOOM", SWIG_FromInt((int)wxPREVIEW_ZOOM)); - PyDict_SetItemString(d,"PREVIEW_FIRST", SWIG_FromInt((int)wxPREVIEW_FIRST)); - PyDict_SetItemString(d,"PREVIEW_LAST", SWIG_FromInt((int)wxPREVIEW_LAST)); - PyDict_SetItemString(d,"PREVIEW_GOTO", SWIG_FromInt((int)wxPREVIEW_GOTO)); - PyDict_SetItemString(d,"PREVIEW_DEFAULT", SWIG_FromInt((int)wxPREVIEW_DEFAULT)); - PyDict_SetItemString(d,"ID_PREVIEW_CLOSE", SWIG_FromInt((int)wxID_PREVIEW_CLOSE)); - PyDict_SetItemString(d,"ID_PREVIEW_NEXT", SWIG_FromInt((int)wxID_PREVIEW_NEXT)); - PyDict_SetItemString(d,"ID_PREVIEW_PREVIOUS", SWIG_FromInt((int)wxID_PREVIEW_PREVIOUS)); - PyDict_SetItemString(d,"ID_PREVIEW_PRINT", SWIG_FromInt((int)wxID_PREVIEW_PRINT)); - PyDict_SetItemString(d,"ID_PREVIEW_ZOOM", SWIG_FromInt((int)wxID_PREVIEW_ZOOM)); - PyDict_SetItemString(d,"ID_PREVIEW_FIRST", SWIG_FromInt((int)wxID_PREVIEW_FIRST)); - PyDict_SetItemString(d,"ID_PREVIEW_LAST", SWIG_FromInt((int)wxID_PREVIEW_LAST)); - PyDict_SetItemString(d,"ID_PREVIEW_GOTO", SWIG_FromInt((int)wxID_PREVIEW_GOTO)); - - wxPyPtrTypeMap_Add("wxPrintout", "wxPyPrintout"); - -} - diff --git a/wxPython/src/windows.i b/wxPython/src/windows.i index 570a95305f..2591e356c3 100644 --- a/wxPython/src/windows.i +++ b/wxPython/src/windows.i @@ -10,8 +10,7 @@ // Licence: wxWindows license ///////////////////////////////////////////////////////////////////////////// - -%module windows +%module _windows //--------------------------------------------------------------------------- @@ -24,10 +23,10 @@ //--------------------------------------------------------------------------- %import core.i -%pythoncode { wx = core } +%pythoncode { wx = _core } %pythoncode { __docfilter__ = wx.__docfilter__ } -%include _windows_rename.i +%include __windows_rename.i MAKE_CONST_WXSTRING_NOSWIG(EmptyString); diff --git a/wxPython/src/wizard.i b/wxPython/src/wizard.i index 542abb0b85..309da8bac3 100644 --- a/wxPython/src/wizard.i +++ b/wxPython/src/wizard.i @@ -24,7 +24,7 @@ //---------------------------------------------------------------------- %import windows.i -%pythoncode { wx = core } +%pythoncode { wx = _core } %include _wizard_rename.i diff --git a/wxPython/wxPython/_controls.py b/wxPython/wxPython/_controls.py new file mode 100644 index 0000000000..d930404f08 --- /dev/null +++ b/wxPython/wxPython/_controls.py @@ -0,0 +1,452 @@ +## This file reverse renames symbols in the wx package to give +## them their wx prefix again, for backwards compatibility. +## +## Generated by ./distrib/build_renamers.py + +# This silly stuff here is so the wxPython.wx module doesn't conflict +# with the wx package. We need to import modules from the wx package +# here, then we'll put the wxPython.wx entry back in sys.modules. +import sys +_wx = None +if sys.modules.has_key('wxPython.wx'): + _wx = sys.modules['wxPython.wx'] + del sys.modules['wxPython.wx'] + +import wx._controls + +sys.modules['wxPython.wx'] = _wx +del sys, _wx + + +# Now assign all the reverse-renamed names: +wxButtonNameStr = wx._controls.ButtonNameStr +wxBU_LEFT = wx._controls.BU_LEFT +wxBU_TOP = wx._controls.BU_TOP +wxBU_RIGHT = wx._controls.BU_RIGHT +wxBU_BOTTOM = wx._controls.BU_BOTTOM +wxBU_EXACTFIT = wx._controls.BU_EXACTFIT +wxBU_AUTODRAW = wx._controls.BU_AUTODRAW +wxButton = wx._controls.Button +wxButtonPtr = wx._controls.ButtonPtr +wxPreButton = wx._controls.PreButton +wxButton_GetDefaultSize = wx._controls.Button_GetDefaultSize +wxBitmapButton = wx._controls.BitmapButton +wxBitmapButtonPtr = wx._controls.BitmapButtonPtr +wxPreBitmapButton = wx._controls.PreBitmapButton +wxCheckBoxNameStr = wx._controls.CheckBoxNameStr +wxCHK_2STATE = wx._controls.CHK_2STATE +wxCHK_3STATE = wx._controls.CHK_3STATE +wxCHK_ALLOW_3RD_STATE_FOR_USER = wx._controls.CHK_ALLOW_3RD_STATE_FOR_USER +wxCHK_UNCHECKED = wx._controls.CHK_UNCHECKED +wxCHK_CHECKED = wx._controls.CHK_CHECKED +wxCHK_UNDETERMINED = wx._controls.CHK_UNDETERMINED +wxCheckBox = wx._controls.CheckBox +wxCheckBoxPtr = wx._controls.CheckBoxPtr +wxPreCheckBox = wx._controls.PreCheckBox +wxChoiceNameStr = wx._controls.ChoiceNameStr +wxChoice = wx._controls.Choice +wxChoicePtr = wx._controls.ChoicePtr +wxPreChoice = wx._controls.PreChoice +wxComboBoxNameStr = wx._controls.ComboBoxNameStr +wxComboBox = wx._controls.ComboBox +wxComboBoxPtr = wx._controls.ComboBoxPtr +wxPreComboBox = wx._controls.PreComboBox +wxGaugeNameStr = wx._controls.GaugeNameStr +wxGA_HORIZONTAL = wx._controls.GA_HORIZONTAL +wxGA_VERTICAL = wx._controls.GA_VERTICAL +wxGA_SMOOTH = wx._controls.GA_SMOOTH +wxGA_PROGRESSBAR = wx._controls.GA_PROGRESSBAR +wxGauge = wx._controls.Gauge +wxGaugePtr = wx._controls.GaugePtr +wxPreGauge = wx._controls.PreGauge +wxStaticBitmapNameStr = wx._controls.StaticBitmapNameStr +wxStaticBoxNameStr = wx._controls.StaticBoxNameStr +wxStaticTextNameStr = wx._controls.StaticTextNameStr +wxStaticBox = wx._controls.StaticBox +wxStaticBoxPtr = wx._controls.StaticBoxPtr +wxPreStaticBox = wx._controls.PreStaticBox +wxStaticLine = wx._controls.StaticLine +wxStaticLinePtr = wx._controls.StaticLinePtr +wxPreStaticLine = wx._controls.PreStaticLine +wxStaticLine_GetDefaultSize = wx._controls.StaticLine_GetDefaultSize +wxStaticText = wx._controls.StaticText +wxStaticTextPtr = wx._controls.StaticTextPtr +wxPreStaticText = wx._controls.PreStaticText +wxStaticBitmap = wx._controls.StaticBitmap +wxStaticBitmapPtr = wx._controls.StaticBitmapPtr +wxPreStaticBitmap = wx._controls.PreStaticBitmap +wxListBoxNameStr = wx._controls.ListBoxNameStr +wxListBox = wx._controls.ListBox +wxListBoxPtr = wx._controls.ListBoxPtr +wxPreListBox = wx._controls.PreListBox +wxListBox_GetClassDefaultAttributes = wx._controls.ListBox_GetClassDefaultAttributes +wxCheckListBox = wx._controls.CheckListBox +wxCheckListBoxPtr = wx._controls.CheckListBoxPtr +wxPreCheckListBox = wx._controls.PreCheckListBox +wxTextCtrlNameStr = wx._controls.TextCtrlNameStr +wxTE_NO_VSCROLL = wx._controls.TE_NO_VSCROLL +wxTE_AUTO_SCROLL = wx._controls.TE_AUTO_SCROLL +wxTE_READONLY = wx._controls.TE_READONLY +wxTE_MULTILINE = wx._controls.TE_MULTILINE +wxTE_PROCESS_TAB = wx._controls.TE_PROCESS_TAB +wxTE_LEFT = wx._controls.TE_LEFT +wxTE_CENTER = wx._controls.TE_CENTER +wxTE_RIGHT = wx._controls.TE_RIGHT +wxTE_CENTRE = wx._controls.TE_CENTRE +wxTE_RICH = wx._controls.TE_RICH +wxTE_PROCESS_ENTER = wx._controls.TE_PROCESS_ENTER +wxTE_PASSWORD = wx._controls.TE_PASSWORD +wxTE_AUTO_URL = wx._controls.TE_AUTO_URL +wxTE_NOHIDESEL = wx._controls.TE_NOHIDESEL +wxTE_DONTWRAP = wx._controls.TE_DONTWRAP +wxTE_LINEWRAP = wx._controls.TE_LINEWRAP +wxTE_WORDWRAP = wx._controls.TE_WORDWRAP +wxTE_RICH2 = wx._controls.TE_RICH2 +wxTEXT_ALIGNMENT_DEFAULT = wx._controls.TEXT_ALIGNMENT_DEFAULT +wxTEXT_ALIGNMENT_LEFT = wx._controls.TEXT_ALIGNMENT_LEFT +wxTEXT_ALIGNMENT_CENTRE = wx._controls.TEXT_ALIGNMENT_CENTRE +wxTEXT_ALIGNMENT_CENTER = wx._controls.TEXT_ALIGNMENT_CENTER +wxTEXT_ALIGNMENT_RIGHT = wx._controls.TEXT_ALIGNMENT_RIGHT +wxTEXT_ALIGNMENT_JUSTIFIED = wx._controls.TEXT_ALIGNMENT_JUSTIFIED +wxTEXT_ATTR_TEXT_COLOUR = wx._controls.TEXT_ATTR_TEXT_COLOUR +wxTEXT_ATTR_BACKGROUND_COLOUR = wx._controls.TEXT_ATTR_BACKGROUND_COLOUR +wxTEXT_ATTR_FONT_FACE = wx._controls.TEXT_ATTR_FONT_FACE +wxTEXT_ATTR_FONT_SIZE = wx._controls.TEXT_ATTR_FONT_SIZE +wxTEXT_ATTR_FONT_WEIGHT = wx._controls.TEXT_ATTR_FONT_WEIGHT +wxTEXT_ATTR_FONT_ITALIC = wx._controls.TEXT_ATTR_FONT_ITALIC +wxTEXT_ATTR_FONT_UNDERLINE = wx._controls.TEXT_ATTR_FONT_UNDERLINE +wxTEXT_ATTR_FONT = wx._controls.TEXT_ATTR_FONT +wxTEXT_ATTR_ALIGNMENT = wx._controls.TEXT_ATTR_ALIGNMENT +wxTEXT_ATTR_LEFT_INDENT = wx._controls.TEXT_ATTR_LEFT_INDENT +wxTEXT_ATTR_RIGHT_INDENT = wx._controls.TEXT_ATTR_RIGHT_INDENT +wxTEXT_ATTR_TABS = wx._controls.TEXT_ATTR_TABS +wxTE_HT_UNKNOWN = wx._controls.TE_HT_UNKNOWN +wxTE_HT_BEFORE = wx._controls.TE_HT_BEFORE +wxTE_HT_ON_TEXT = wx._controls.TE_HT_ON_TEXT +wxTE_HT_BELOW = wx._controls.TE_HT_BELOW +wxTE_HT_BEYOND = wx._controls.TE_HT_BEYOND +wxTextAttr = wx._controls.TextAttr +wxTextAttrPtr = wx._controls.TextAttrPtr +wxTextAttr_Combine = wx._controls.TextAttr_Combine +wxTextCtrl = wx._controls.TextCtrl +wxTextCtrlPtr = wx._controls.TextCtrlPtr +wxPreTextCtrl = wx._controls.PreTextCtrl +wxEVT_COMMAND_TEXT_UPDATED = wx._controls.wxEVT_COMMAND_TEXT_UPDATED +wxEVT_COMMAND_TEXT_ENTER = wx._controls.wxEVT_COMMAND_TEXT_ENTER +wxEVT_COMMAND_TEXT_URL = wx._controls.wxEVT_COMMAND_TEXT_URL +wxEVT_COMMAND_TEXT_MAXLEN = wx._controls.wxEVT_COMMAND_TEXT_MAXLEN +wxTextUrlEvent = wx._controls.TextUrlEvent +wxTextUrlEventPtr = wx._controls.TextUrlEventPtr +wxScrollBarNameStr = wx._controls.ScrollBarNameStr +wxScrollBar = wx._controls.ScrollBar +wxScrollBarPtr = wx._controls.ScrollBarPtr +wxPreScrollBar = wx._controls.PreScrollBar +wxSPIN_BUTTON_NAME = wx._controls.SPIN_BUTTON_NAME +wxSpinCtrlNameStr = wx._controls.SpinCtrlNameStr +wxSP_HORIZONTAL = wx._controls.SP_HORIZONTAL +wxSP_VERTICAL = wx._controls.SP_VERTICAL +wxSP_ARROW_KEYS = wx._controls.SP_ARROW_KEYS +wxSP_WRAP = wx._controls.SP_WRAP +wxSpinButton = wx._controls.SpinButton +wxSpinButtonPtr = wx._controls.SpinButtonPtr +wxPreSpinButton = wx._controls.PreSpinButton +wxSpinCtrl = wx._controls.SpinCtrl +wxSpinCtrlPtr = wx._controls.SpinCtrlPtr +wxPreSpinCtrl = wx._controls.PreSpinCtrl +wxSpinEvent = wx._controls.SpinEvent +wxSpinEventPtr = wx._controls.SpinEventPtr +wxEVT_COMMAND_SPINCTRL_UPDATED = wx._controls.wxEVT_COMMAND_SPINCTRL_UPDATED +wxRadioBoxNameStr = wx._controls.RadioBoxNameStr +wxRadioButtonNameStr = wx._controls.RadioButtonNameStr +wxRadioBox = wx._controls.RadioBox +wxRadioBoxPtr = wx._controls.RadioBoxPtr +wxPreRadioBox = wx._controls.PreRadioBox +wxRadioButton = wx._controls.RadioButton +wxRadioButtonPtr = wx._controls.RadioButtonPtr +wxPreRadioButton = wx._controls.PreRadioButton +wxSliderNameStr = wx._controls.SliderNameStr +wxSlider = wx._controls.Slider +wxSliderPtr = wx._controls.SliderPtr +wxPreSlider = wx._controls.PreSlider +wxToggleButtonNameStr = wx._controls.ToggleButtonNameStr +wxEVT_COMMAND_TOGGLEBUTTON_CLICKED = wx._controls.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED +wxToggleButton = wx._controls.ToggleButton +wxToggleButtonPtr = wx._controls.ToggleButtonPtr +wxPreToggleButton = wx._controls.PreToggleButton +wxNOTEBOOK_NAME = wx._controls.NOTEBOOK_NAME +wxBookCtrl = wx._controls.BookCtrl +wxBookCtrlPtr = wx._controls.BookCtrlPtr +wxBookCtrlEvent = wx._controls.BookCtrlEvent +wxBookCtrlEventPtr = wx._controls.BookCtrlEventPtr +wxNB_FIXEDWIDTH = wx._controls.NB_FIXEDWIDTH +wxNB_TOP = wx._controls.NB_TOP +wxNB_LEFT = wx._controls.NB_LEFT +wxNB_RIGHT = wx._controls.NB_RIGHT +wxNB_BOTTOM = wx._controls.NB_BOTTOM +wxNB_MULTILINE = wx._controls.NB_MULTILINE +wxNB_HITTEST_NOWHERE = wx._controls.NB_HITTEST_NOWHERE +wxNB_HITTEST_ONICON = wx._controls.NB_HITTEST_ONICON +wxNB_HITTEST_ONLABEL = wx._controls.NB_HITTEST_ONLABEL +wxNB_HITTEST_ONITEM = wx._controls.NB_HITTEST_ONITEM +wxNotebook = wx._controls.Notebook +wxNotebookPtr = wx._controls.NotebookPtr +wxPreNotebook = wx._controls.PreNotebook +wxNotebookEvent = wx._controls.NotebookEvent +wxNotebookEventPtr = wx._controls.NotebookEventPtr +wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED = wx._controls.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED +wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING = wx._controls.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING +wxLB_DEFAULT = wx._controls.LB_DEFAULT +wxLB_TOP = wx._controls.LB_TOP +wxLB_BOTTOM = wx._controls.LB_BOTTOM +wxLB_LEFT = wx._controls.LB_LEFT +wxLB_RIGHT = wx._controls.LB_RIGHT +wxLB_ALIGN_MASK = wx._controls.LB_ALIGN_MASK +wxListbook = wx._controls.Listbook +wxListbookPtr = wx._controls.ListbookPtr +wxPreListbook = wx._controls.PreListbook +wxListbookEvent = wx._controls.ListbookEvent +wxListbookEventPtr = wx._controls.ListbookEventPtr +wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED = wx._controls.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED +wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING = wx._controls.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING +wxBookCtrlSizer = wx._controls.BookCtrlSizer +wxBookCtrlSizerPtr = wx._controls.BookCtrlSizerPtr +wxNotebookSizer = wx._controls.NotebookSizer +wxNotebookSizerPtr = wx._controls.NotebookSizerPtr +wxTOOL_STYLE_BUTTON = wx._controls.TOOL_STYLE_BUTTON +wxTOOL_STYLE_SEPARATOR = wx._controls.TOOL_STYLE_SEPARATOR +wxTOOL_STYLE_CONTROL = wx._controls.TOOL_STYLE_CONTROL +wxTB_HORIZONTAL = wx._controls.TB_HORIZONTAL +wxTB_VERTICAL = wx._controls.TB_VERTICAL +wxTB_3DBUTTONS = wx._controls.TB_3DBUTTONS +wxTB_FLAT = wx._controls.TB_FLAT +wxTB_DOCKABLE = wx._controls.TB_DOCKABLE +wxTB_NOICONS = wx._controls.TB_NOICONS +wxTB_TEXT = wx._controls.TB_TEXT +wxTB_NODIVIDER = wx._controls.TB_NODIVIDER +wxTB_NOALIGN = wx._controls.TB_NOALIGN +wxTB_HORZ_LAYOUT = wx._controls.TB_HORZ_LAYOUT +wxTB_HORZ_TEXT = wx._controls.TB_HORZ_TEXT +wxToolBarToolBase = wx._controls.ToolBarToolBase +wxToolBarToolBasePtr = wx._controls.ToolBarToolBasePtr +wxToolBarBase = wx._controls.ToolBarBase +wxToolBarBasePtr = wx._controls.ToolBarBasePtr +wxToolBar = wx._controls.ToolBar +wxToolBarPtr = wx._controls.ToolBarPtr +wxPreToolBar = wx._controls.PreToolBar +wxListCtrlNameStr = wx._controls.ListCtrlNameStr +wxLC_VRULES = wx._controls.LC_VRULES +wxLC_HRULES = wx._controls.LC_HRULES +wxLC_ICON = wx._controls.LC_ICON +wxLC_SMALL_ICON = wx._controls.LC_SMALL_ICON +wxLC_LIST = wx._controls.LC_LIST +wxLC_REPORT = wx._controls.LC_REPORT +wxLC_ALIGN_TOP = wx._controls.LC_ALIGN_TOP +wxLC_ALIGN_LEFT = wx._controls.LC_ALIGN_LEFT +wxLC_AUTOARRANGE = wx._controls.LC_AUTOARRANGE +wxLC_VIRTUAL = wx._controls.LC_VIRTUAL +wxLC_EDIT_LABELS = wx._controls.LC_EDIT_LABELS +wxLC_NO_HEADER = wx._controls.LC_NO_HEADER +wxLC_NO_SORT_HEADER = wx._controls.LC_NO_SORT_HEADER +wxLC_SINGLE_SEL = wx._controls.LC_SINGLE_SEL +wxLC_SORT_ASCENDING = wx._controls.LC_SORT_ASCENDING +wxLC_SORT_DESCENDING = wx._controls.LC_SORT_DESCENDING +wxLC_MASK_TYPE = wx._controls.LC_MASK_TYPE +wxLC_MASK_ALIGN = wx._controls.LC_MASK_ALIGN +wxLC_MASK_SORT = wx._controls.LC_MASK_SORT +wxLIST_MASK_STATE = wx._controls.LIST_MASK_STATE +wxLIST_MASK_TEXT = wx._controls.LIST_MASK_TEXT +wxLIST_MASK_IMAGE = wx._controls.LIST_MASK_IMAGE +wxLIST_MASK_DATA = wx._controls.LIST_MASK_DATA +wxLIST_SET_ITEM = wx._controls.LIST_SET_ITEM +wxLIST_MASK_WIDTH = wx._controls.LIST_MASK_WIDTH +wxLIST_MASK_FORMAT = wx._controls.LIST_MASK_FORMAT +wxLIST_STATE_DONTCARE = wx._controls.LIST_STATE_DONTCARE +wxLIST_STATE_DROPHILITED = wx._controls.LIST_STATE_DROPHILITED +wxLIST_STATE_FOCUSED = wx._controls.LIST_STATE_FOCUSED +wxLIST_STATE_SELECTED = wx._controls.LIST_STATE_SELECTED +wxLIST_STATE_CUT = wx._controls.LIST_STATE_CUT +wxLIST_STATE_DISABLED = wx._controls.LIST_STATE_DISABLED +wxLIST_STATE_FILTERED = wx._controls.LIST_STATE_FILTERED +wxLIST_STATE_INUSE = wx._controls.LIST_STATE_INUSE +wxLIST_STATE_PICKED = wx._controls.LIST_STATE_PICKED +wxLIST_STATE_SOURCE = wx._controls.LIST_STATE_SOURCE +wxLIST_HITTEST_ABOVE = wx._controls.LIST_HITTEST_ABOVE +wxLIST_HITTEST_BELOW = wx._controls.LIST_HITTEST_BELOW +wxLIST_HITTEST_NOWHERE = wx._controls.LIST_HITTEST_NOWHERE +wxLIST_HITTEST_ONITEMICON = wx._controls.LIST_HITTEST_ONITEMICON +wxLIST_HITTEST_ONITEMLABEL = wx._controls.LIST_HITTEST_ONITEMLABEL +wxLIST_HITTEST_ONITEMRIGHT = wx._controls.LIST_HITTEST_ONITEMRIGHT +wxLIST_HITTEST_ONITEMSTATEICON = wx._controls.LIST_HITTEST_ONITEMSTATEICON +wxLIST_HITTEST_TOLEFT = wx._controls.LIST_HITTEST_TOLEFT +wxLIST_HITTEST_TORIGHT = wx._controls.LIST_HITTEST_TORIGHT +wxLIST_HITTEST_ONITEM = wx._controls.LIST_HITTEST_ONITEM +wxLIST_NEXT_ABOVE = wx._controls.LIST_NEXT_ABOVE +wxLIST_NEXT_ALL = wx._controls.LIST_NEXT_ALL +wxLIST_NEXT_BELOW = wx._controls.LIST_NEXT_BELOW +wxLIST_NEXT_LEFT = wx._controls.LIST_NEXT_LEFT +wxLIST_NEXT_RIGHT = wx._controls.LIST_NEXT_RIGHT +wxLIST_ALIGN_DEFAULT = wx._controls.LIST_ALIGN_DEFAULT +wxLIST_ALIGN_LEFT = wx._controls.LIST_ALIGN_LEFT +wxLIST_ALIGN_TOP = wx._controls.LIST_ALIGN_TOP +wxLIST_ALIGN_SNAP_TO_GRID = wx._controls.LIST_ALIGN_SNAP_TO_GRID +wxLIST_FORMAT_LEFT = wx._controls.LIST_FORMAT_LEFT +wxLIST_FORMAT_RIGHT = wx._controls.LIST_FORMAT_RIGHT +wxLIST_FORMAT_CENTRE = wx._controls.LIST_FORMAT_CENTRE +wxLIST_FORMAT_CENTER = wx._controls.LIST_FORMAT_CENTER +wxLIST_AUTOSIZE = wx._controls.LIST_AUTOSIZE +wxLIST_AUTOSIZE_USEHEADER = wx._controls.LIST_AUTOSIZE_USEHEADER +wxLIST_RECT_BOUNDS = wx._controls.LIST_RECT_BOUNDS +wxLIST_RECT_ICON = wx._controls.LIST_RECT_ICON +wxLIST_RECT_LABEL = wx._controls.LIST_RECT_LABEL +wxLIST_FIND_UP = wx._controls.LIST_FIND_UP +wxLIST_FIND_DOWN = wx._controls.LIST_FIND_DOWN +wxLIST_FIND_LEFT = wx._controls.LIST_FIND_LEFT +wxLIST_FIND_RIGHT = wx._controls.LIST_FIND_RIGHT +wxListItemAttr = wx._controls.ListItemAttr +wxListItemAttrPtr = wx._controls.ListItemAttrPtr +wxListItem = wx._controls.ListItem +wxListItemPtr = wx._controls.ListItemPtr +wxListEvent = wx._controls.ListEvent +wxListEventPtr = wx._controls.ListEventPtr +wxEVT_COMMAND_LIST_BEGIN_DRAG = wx._controls.wxEVT_COMMAND_LIST_BEGIN_DRAG +wxEVT_COMMAND_LIST_BEGIN_RDRAG = wx._controls.wxEVT_COMMAND_LIST_BEGIN_RDRAG +wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT = wx._controls.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT +wxEVT_COMMAND_LIST_END_LABEL_EDIT = wx._controls.wxEVT_COMMAND_LIST_END_LABEL_EDIT +wxEVT_COMMAND_LIST_DELETE_ITEM = wx._controls.wxEVT_COMMAND_LIST_DELETE_ITEM +wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS = wx._controls.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS +wxEVT_COMMAND_LIST_GET_INFO = wx._controls.wxEVT_COMMAND_LIST_GET_INFO +wxEVT_COMMAND_LIST_SET_INFO = wx._controls.wxEVT_COMMAND_LIST_SET_INFO +wxEVT_COMMAND_LIST_ITEM_SELECTED = wx._controls.wxEVT_COMMAND_LIST_ITEM_SELECTED +wxEVT_COMMAND_LIST_ITEM_DESELECTED = wx._controls.wxEVT_COMMAND_LIST_ITEM_DESELECTED +wxEVT_COMMAND_LIST_KEY_DOWN = wx._controls.wxEVT_COMMAND_LIST_KEY_DOWN +wxEVT_COMMAND_LIST_INSERT_ITEM = wx._controls.wxEVT_COMMAND_LIST_INSERT_ITEM +wxEVT_COMMAND_LIST_COL_CLICK = wx._controls.wxEVT_COMMAND_LIST_COL_CLICK +wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK = wx._controls.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK +wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK = wx._controls.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK +wxEVT_COMMAND_LIST_ITEM_ACTIVATED = wx._controls.wxEVT_COMMAND_LIST_ITEM_ACTIVATED +wxEVT_COMMAND_LIST_CACHE_HINT = wx._controls.wxEVT_COMMAND_LIST_CACHE_HINT +wxEVT_COMMAND_LIST_COL_RIGHT_CLICK = wx._controls.wxEVT_COMMAND_LIST_COL_RIGHT_CLICK +wxEVT_COMMAND_LIST_COL_BEGIN_DRAG = wx._controls.wxEVT_COMMAND_LIST_COL_BEGIN_DRAG +wxEVT_COMMAND_LIST_COL_DRAGGING = wx._controls.wxEVT_COMMAND_LIST_COL_DRAGGING +wxEVT_COMMAND_LIST_COL_END_DRAG = wx._controls.wxEVT_COMMAND_LIST_COL_END_DRAG +wxEVT_COMMAND_LIST_ITEM_FOCUSED = wx._controls.wxEVT_COMMAND_LIST_ITEM_FOCUSED +wxListCtrl = wx._controls.ListCtrl +wxListCtrlPtr = wx._controls.ListCtrlPtr +wxPreListCtrl = wx._controls.PreListCtrl +wxListCtrl_GetClassDefaultAttributes = wx._controls.ListCtrl_GetClassDefaultAttributes +wxListView = wx._controls.ListView +wxListViewPtr = wx._controls.ListViewPtr +wxPreListView = wx._controls.PreListView +wxTreeCtrlNameStr = wx._controls.TreeCtrlNameStr +wxTR_NO_BUTTONS = wx._controls.TR_NO_BUTTONS +wxTR_HAS_BUTTONS = wx._controls.TR_HAS_BUTTONS +wxTR_NO_LINES = wx._controls.TR_NO_LINES +wxTR_LINES_AT_ROOT = wx._controls.TR_LINES_AT_ROOT +wxTR_SINGLE = wx._controls.TR_SINGLE +wxTR_MULTIPLE = wx._controls.TR_MULTIPLE +wxTR_EXTENDED = wx._controls.TR_EXTENDED +wxTR_HAS_VARIABLE_ROW_HEIGHT = wx._controls.TR_HAS_VARIABLE_ROW_HEIGHT +wxTR_EDIT_LABELS = wx._controls.TR_EDIT_LABELS +wxTR_HIDE_ROOT = wx._controls.TR_HIDE_ROOT +wxTR_ROW_LINES = wx._controls.TR_ROW_LINES +wxTR_FULL_ROW_HIGHLIGHT = wx._controls.TR_FULL_ROW_HIGHLIGHT +wxTR_DEFAULT_STYLE = wx._controls.TR_DEFAULT_STYLE +wxTR_TWIST_BUTTONS = wx._controls.TR_TWIST_BUTTONS +wxTR_MAC_BUTTONS = wx._controls.TR_MAC_BUTTONS +wxTR_AQUA_BUTTONS = wx._controls.TR_AQUA_BUTTONS +wxTreeItemIcon_Normal = wx._controls.TreeItemIcon_Normal +wxTreeItemIcon_Selected = wx._controls.TreeItemIcon_Selected +wxTreeItemIcon_Expanded = wx._controls.TreeItemIcon_Expanded +wxTreeItemIcon_SelectedExpanded = wx._controls.TreeItemIcon_SelectedExpanded +wxTreeItemIcon_Max = wx._controls.TreeItemIcon_Max +wxTREE_HITTEST_ABOVE = wx._controls.TREE_HITTEST_ABOVE +wxTREE_HITTEST_BELOW = wx._controls.TREE_HITTEST_BELOW +wxTREE_HITTEST_NOWHERE = wx._controls.TREE_HITTEST_NOWHERE +wxTREE_HITTEST_ONITEMBUTTON = wx._controls.TREE_HITTEST_ONITEMBUTTON +wxTREE_HITTEST_ONITEMICON = wx._controls.TREE_HITTEST_ONITEMICON +wxTREE_HITTEST_ONITEMINDENT = wx._controls.TREE_HITTEST_ONITEMINDENT +wxTREE_HITTEST_ONITEMLABEL = wx._controls.TREE_HITTEST_ONITEMLABEL +wxTREE_HITTEST_ONITEMRIGHT = wx._controls.TREE_HITTEST_ONITEMRIGHT +wxTREE_HITTEST_ONITEMSTATEICON = wx._controls.TREE_HITTEST_ONITEMSTATEICON +wxTREE_HITTEST_TOLEFT = wx._controls.TREE_HITTEST_TOLEFT +wxTREE_HITTEST_TORIGHT = wx._controls.TREE_HITTEST_TORIGHT +wxTREE_HITTEST_ONITEMUPPERPART = wx._controls.TREE_HITTEST_ONITEMUPPERPART +wxTREE_HITTEST_ONITEMLOWERPART = wx._controls.TREE_HITTEST_ONITEMLOWERPART +wxTREE_HITTEST_ONITEM = wx._controls.TREE_HITTEST_ONITEM +wxTreeItemId = wx._controls.TreeItemId +wxTreeItemIdPtr = wx._controls.TreeItemIdPtr +wxTreeItemData = wx._controls.TreeItemData +wxTreeItemDataPtr = wx._controls.TreeItemDataPtr +wxEVT_COMMAND_TREE_BEGIN_DRAG = wx._controls.wxEVT_COMMAND_TREE_BEGIN_DRAG +wxEVT_COMMAND_TREE_BEGIN_RDRAG = wx._controls.wxEVT_COMMAND_TREE_BEGIN_RDRAG +wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT = wx._controls.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT +wxEVT_COMMAND_TREE_END_LABEL_EDIT = wx._controls.wxEVT_COMMAND_TREE_END_LABEL_EDIT +wxEVT_COMMAND_TREE_DELETE_ITEM = wx._controls.wxEVT_COMMAND_TREE_DELETE_ITEM +wxEVT_COMMAND_TREE_GET_INFO = wx._controls.wxEVT_COMMAND_TREE_GET_INFO +wxEVT_COMMAND_TREE_SET_INFO = wx._controls.wxEVT_COMMAND_TREE_SET_INFO +wxEVT_COMMAND_TREE_ITEM_EXPANDED = wx._controls.wxEVT_COMMAND_TREE_ITEM_EXPANDED +wxEVT_COMMAND_TREE_ITEM_EXPANDING = wx._controls.wxEVT_COMMAND_TREE_ITEM_EXPANDING +wxEVT_COMMAND_TREE_ITEM_COLLAPSED = wx._controls.wxEVT_COMMAND_TREE_ITEM_COLLAPSED +wxEVT_COMMAND_TREE_ITEM_COLLAPSING = wx._controls.wxEVT_COMMAND_TREE_ITEM_COLLAPSING +wxEVT_COMMAND_TREE_SEL_CHANGED = wx._controls.wxEVT_COMMAND_TREE_SEL_CHANGED +wxEVT_COMMAND_TREE_SEL_CHANGING = wx._controls.wxEVT_COMMAND_TREE_SEL_CHANGING +wxEVT_COMMAND_TREE_KEY_DOWN = wx._controls.wxEVT_COMMAND_TREE_KEY_DOWN +wxEVT_COMMAND_TREE_ITEM_ACTIVATED = wx._controls.wxEVT_COMMAND_TREE_ITEM_ACTIVATED +wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK = wx._controls.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK +wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK = wx._controls.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK +wxEVT_COMMAND_TREE_END_DRAG = wx._controls.wxEVT_COMMAND_TREE_END_DRAG +wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK = wx._controls.wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK +wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP = wx._controls.wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP +wxTreeEvent = wx._controls.TreeEvent +wxTreeEventPtr = wx._controls.TreeEventPtr +wxTreeCtrl = wx._controls.TreeCtrl +wxTreeCtrlPtr = wx._controls.TreeCtrlPtr +wxPreTreeCtrl = wx._controls.PreTreeCtrl +wxTreeCtrl_GetClassDefaultAttributes = wx._controls.TreeCtrl_GetClassDefaultAttributes +wxDirDialogDefaultFolderStr = wx._controls.DirDialogDefaultFolderStr +wxDIRCTRL_DIR_ONLY = wx._controls.DIRCTRL_DIR_ONLY +wxDIRCTRL_SELECT_FIRST = wx._controls.DIRCTRL_SELECT_FIRST +wxDIRCTRL_SHOW_FILTERS = wx._controls.DIRCTRL_SHOW_FILTERS +wxDIRCTRL_3D_INTERNAL = wx._controls.DIRCTRL_3D_INTERNAL +wxDIRCTRL_EDIT_LABELS = wx._controls.DIRCTRL_EDIT_LABELS +wxGenericDirCtrl = wx._controls.GenericDirCtrl +wxGenericDirCtrlPtr = wx._controls.GenericDirCtrlPtr +wxPreGenericDirCtrl = wx._controls.PreGenericDirCtrl +wxDirFilterListCtrl = wx._controls.DirFilterListCtrl +wxDirFilterListCtrlPtr = wx._controls.DirFilterListCtrlPtr +wxPreDirFilterListCtrl = wx._controls.PreDirFilterListCtrl +wxPyControl = wx._controls.PyControl +wxPyControlPtr = wx._controls.PyControlPtr +wxPrePyControl = wx._controls.PrePyControl +wxFRAME_EX_CONTEXTHELP = wx._controls.FRAME_EX_CONTEXTHELP +wxDIALOG_EX_CONTEXTHELP = wx._controls.DIALOG_EX_CONTEXTHELP +wxEVT_HELP = wx._controls.wxEVT_HELP +wxEVT_DETAILED_HELP = wx._controls.wxEVT_DETAILED_HELP +wxHelpEvent = wx._controls.HelpEvent +wxHelpEventPtr = wx._controls.HelpEventPtr +wxContextHelp = wx._controls.ContextHelp +wxContextHelpPtr = wx._controls.ContextHelpPtr +wxContextHelpButton = wx._controls.ContextHelpButton +wxContextHelpButtonPtr = wx._controls.ContextHelpButtonPtr +wxHelpProvider = wx._controls.HelpProvider +wxHelpProviderPtr = wx._controls.HelpProviderPtr +wxHelpProvider_Set = wx._controls.HelpProvider_Set +wxHelpProvider_Get = wx._controls.HelpProvider_Get +wxSimpleHelpProvider = wx._controls.SimpleHelpProvider +wxSimpleHelpProviderPtr = wx._controls.SimpleHelpProviderPtr +wxDragImage = wx._controls.DragImage +wxDragImagePtr = wx._controls.DragImagePtr +wxDragIcon = wx._controls.DragIcon +wxDragString = wx._controls.DragString +wxDragTreeItem = wx._controls.DragTreeItem +wxDragListItem = wx._controls.DragListItem + + +d = globals() +for k, v in wx._controls.__dict__.iteritems(): + if k.startswith('EVT'): + d[k] = v +del d, k, v + + + diff --git a/wxPython/wxPython/_core.py b/wxPython/wxPython/_core.py new file mode 100644 index 0000000000..c41be916ab --- /dev/null +++ b/wxPython/wxPython/_core.py @@ -0,0 +1,1091 @@ +## This file reverse renames symbols in the wx package to give +## them their wx prefix again, for backwards compatibility. +## +## Generated by ./distrib/build_renamers.py + +# This silly stuff here is so the wxPython.wx module doesn't conflict +# with the wx package. We need to import modules from the wx package +# here, then we'll put the wxPython.wx entry back in sys.modules. +import sys +_wx = None +if sys.modules.has_key('wxPython.wx'): + _wx = sys.modules['wxPython.wx'] + del sys.modules['wxPython.wx'] + +import wx._core + +sys.modules['wxPython.wx'] = _wx +del sys, _wx + + +# Now assign all the reverse-renamed names: +wxNOT_FOUND = wx._core.NOT_FOUND +wxVSCROLL = wx._core.VSCROLL +wxHSCROLL = wx._core.HSCROLL +wxCAPTION = wx._core.CAPTION +wxDOUBLE_BORDER = wx._core.DOUBLE_BORDER +wxSUNKEN_BORDER = wx._core.SUNKEN_BORDER +wxRAISED_BORDER = wx._core.RAISED_BORDER +wxBORDER = wx._core.BORDER +wxSIMPLE_BORDER = wx._core.SIMPLE_BORDER +wxSTATIC_BORDER = wx._core.STATIC_BORDER +wxTRANSPARENT_WINDOW = wx._core.TRANSPARENT_WINDOW +wxNO_BORDER = wx._core.NO_BORDER +wxTAB_TRAVERSAL = wx._core.TAB_TRAVERSAL +wxWANTS_CHARS = wx._core.WANTS_CHARS +wxPOPUP_WINDOW = wx._core.POPUP_WINDOW +wxCENTER_FRAME = wx._core.CENTER_FRAME +wxCENTRE_ON_SCREEN = wx._core.CENTRE_ON_SCREEN +wxCENTER_ON_SCREEN = wx._core.CENTER_ON_SCREEN +wxED_CLIENT_MARGIN = wx._core.ED_CLIENT_MARGIN +wxED_BUTTONS_BOTTOM = wx._core.ED_BUTTONS_BOTTOM +wxED_BUTTONS_RIGHT = wx._core.ED_BUTTONS_RIGHT +wxED_STATIC_LINE = wx._core.ED_STATIC_LINE +wxEXT_DIALOG_STYLE = wx._core.EXT_DIALOG_STYLE +wxCLIP_CHILDREN = wx._core.CLIP_CHILDREN +wxCLIP_SIBLINGS = wx._core.CLIP_SIBLINGS +wxALWAYS_SHOW_SB = wx._core.ALWAYS_SHOW_SB +wxRETAINED = wx._core.RETAINED +wxBACKINGSTORE = wx._core.BACKINGSTORE +wxCOLOURED = wx._core.COLOURED +wxFIXED_LENGTH = wx._core.FIXED_LENGTH +wxLB_NEEDED_SB = wx._core.LB_NEEDED_SB +wxLB_ALWAYS_SB = wx._core.LB_ALWAYS_SB +wxLB_SORT = wx._core.LB_SORT +wxLB_SINGLE = wx._core.LB_SINGLE +wxLB_MULTIPLE = wx._core.LB_MULTIPLE +wxLB_EXTENDED = wx._core.LB_EXTENDED +wxLB_OWNERDRAW = wx._core.LB_OWNERDRAW +wxLB_HSCROLL = wx._core.LB_HSCROLL +wxPROCESS_ENTER = wx._core.PROCESS_ENTER +wxPASSWORD = wx._core.PASSWORD +wxCB_SIMPLE = wx._core.CB_SIMPLE +wxCB_DROPDOWN = wx._core.CB_DROPDOWN +wxCB_SORT = wx._core.CB_SORT +wxCB_READONLY = wx._core.CB_READONLY +wxRA_HORIZONTAL = wx._core.RA_HORIZONTAL +wxRA_VERTICAL = wx._core.RA_VERTICAL +wxRA_SPECIFY_ROWS = wx._core.RA_SPECIFY_ROWS +wxRA_SPECIFY_COLS = wx._core.RA_SPECIFY_COLS +wxRB_GROUP = wx._core.RB_GROUP +wxRB_SINGLE = wx._core.RB_SINGLE +wxSL_HORIZONTAL = wx._core.SL_HORIZONTAL +wxSL_VERTICAL = wx._core.SL_VERTICAL +wxSL_AUTOTICKS = wx._core.SL_AUTOTICKS +wxSL_LABELS = wx._core.SL_LABELS +wxSL_LEFT = wx._core.SL_LEFT +wxSL_TOP = wx._core.SL_TOP +wxSL_RIGHT = wx._core.SL_RIGHT +wxSL_BOTTOM = wx._core.SL_BOTTOM +wxSL_BOTH = wx._core.SL_BOTH +wxSL_SELRANGE = wx._core.SL_SELRANGE +wxSB_HORIZONTAL = wx._core.SB_HORIZONTAL +wxSB_VERTICAL = wx._core.SB_VERTICAL +wxST_SIZEGRIP = wx._core.ST_SIZEGRIP +wxST_NO_AUTORESIZE = wx._core.ST_NO_AUTORESIZE +wxFLOOD_SURFACE = wx._core.FLOOD_SURFACE +wxFLOOD_BORDER = wx._core.FLOOD_BORDER +wxODDEVEN_RULE = wx._core.ODDEVEN_RULE +wxWINDING_RULE = wx._core.WINDING_RULE +wxTOOL_TOP = wx._core.TOOL_TOP +wxTOOL_BOTTOM = wx._core.TOOL_BOTTOM +wxTOOL_LEFT = wx._core.TOOL_LEFT +wxTOOL_RIGHT = wx._core.TOOL_RIGHT +wxOK = wx._core.OK +wxYES_NO = wx._core.YES_NO +wxCANCEL = wx._core.CANCEL +wxYES = wx._core.YES +wxNO = wx._core.NO +wxNO_DEFAULT = wx._core.NO_DEFAULT +wxYES_DEFAULT = wx._core.YES_DEFAULT +wxICON_EXCLAMATION = wx._core.ICON_EXCLAMATION +wxICON_HAND = wx._core.ICON_HAND +wxICON_QUESTION = wx._core.ICON_QUESTION +wxICON_INFORMATION = wx._core.ICON_INFORMATION +wxICON_STOP = wx._core.ICON_STOP +wxICON_ASTERISK = wx._core.ICON_ASTERISK +wxICON_MASK = wx._core.ICON_MASK +wxICON_WARNING = wx._core.ICON_WARNING +wxICON_ERROR = wx._core.ICON_ERROR +wxFORWARD = wx._core.FORWARD +wxBACKWARD = wx._core.BACKWARD +wxRESET = wx._core.RESET +wxHELP = wx._core.HELP +wxMORE = wx._core.MORE +wxSETUP = wx._core.SETUP +wxSIZE_AUTO_WIDTH = wx._core.SIZE_AUTO_WIDTH +wxSIZE_AUTO_HEIGHT = wx._core.SIZE_AUTO_HEIGHT +wxSIZE_AUTO = wx._core.SIZE_AUTO +wxSIZE_USE_EXISTING = wx._core.SIZE_USE_EXISTING +wxSIZE_ALLOW_MINUS_ONE = wx._core.SIZE_ALLOW_MINUS_ONE +wxPORTRAIT = wx._core.PORTRAIT +wxLANDSCAPE = wx._core.LANDSCAPE +wxPRINT_QUALITY_HIGH = wx._core.PRINT_QUALITY_HIGH +wxPRINT_QUALITY_MEDIUM = wx._core.PRINT_QUALITY_MEDIUM +wxPRINT_QUALITY_LOW = wx._core.PRINT_QUALITY_LOW +wxPRINT_QUALITY_DRAFT = wx._core.PRINT_QUALITY_DRAFT +wxID_ANY = wx._core.ID_ANY +wxID_SEPARATOR = wx._core.ID_SEPARATOR +wxID_LOWEST = wx._core.ID_LOWEST +wxID_OPEN = wx._core.ID_OPEN +wxID_CLOSE = wx._core.ID_CLOSE +wxID_NEW = wx._core.ID_NEW +wxID_SAVE = wx._core.ID_SAVE +wxID_SAVEAS = wx._core.ID_SAVEAS +wxID_REVERT = wx._core.ID_REVERT +wxID_EXIT = wx._core.ID_EXIT +wxID_UNDO = wx._core.ID_UNDO +wxID_REDO = wx._core.ID_REDO +wxID_HELP = wx._core.ID_HELP +wxID_PRINT = wx._core.ID_PRINT +wxID_PRINT_SETUP = wx._core.ID_PRINT_SETUP +wxID_PREVIEW = wx._core.ID_PREVIEW +wxID_ABOUT = wx._core.ID_ABOUT +wxID_HELP_CONTENTS = wx._core.ID_HELP_CONTENTS +wxID_HELP_COMMANDS = wx._core.ID_HELP_COMMANDS +wxID_HELP_PROCEDURES = wx._core.ID_HELP_PROCEDURES +wxID_HELP_CONTEXT = wx._core.ID_HELP_CONTEXT +wxID_CLOSE_ALL = wx._core.ID_CLOSE_ALL +wxID_PREFERENCES = wx._core.ID_PREFERENCES +wxID_CUT = wx._core.ID_CUT +wxID_COPY = wx._core.ID_COPY +wxID_PASTE = wx._core.ID_PASTE +wxID_CLEAR = wx._core.ID_CLEAR +wxID_FIND = wx._core.ID_FIND +wxID_DUPLICATE = wx._core.ID_DUPLICATE +wxID_SELECTALL = wx._core.ID_SELECTALL +wxID_DELETE = wx._core.ID_DELETE +wxID_REPLACE = wx._core.ID_REPLACE +wxID_REPLACE_ALL = wx._core.ID_REPLACE_ALL +wxID_PROPERTIES = wx._core.ID_PROPERTIES +wxID_VIEW_DETAILS = wx._core.ID_VIEW_DETAILS +wxID_VIEW_LARGEICONS = wx._core.ID_VIEW_LARGEICONS +wxID_VIEW_SMALLICONS = wx._core.ID_VIEW_SMALLICONS +wxID_VIEW_LIST = wx._core.ID_VIEW_LIST +wxID_VIEW_SORTDATE = wx._core.ID_VIEW_SORTDATE +wxID_VIEW_SORTNAME = wx._core.ID_VIEW_SORTNAME +wxID_VIEW_SORTSIZE = wx._core.ID_VIEW_SORTSIZE +wxID_VIEW_SORTTYPE = wx._core.ID_VIEW_SORTTYPE +wxID_FILE1 = wx._core.ID_FILE1 +wxID_FILE2 = wx._core.ID_FILE2 +wxID_FILE3 = wx._core.ID_FILE3 +wxID_FILE4 = wx._core.ID_FILE4 +wxID_FILE5 = wx._core.ID_FILE5 +wxID_FILE6 = wx._core.ID_FILE6 +wxID_FILE7 = wx._core.ID_FILE7 +wxID_FILE8 = wx._core.ID_FILE8 +wxID_FILE9 = wx._core.ID_FILE9 +wxID_OK = wx._core.ID_OK +wxID_CANCEL = wx._core.ID_CANCEL +wxID_APPLY = wx._core.ID_APPLY +wxID_YES = wx._core.ID_YES +wxID_NO = wx._core.ID_NO +wxID_STATIC = wx._core.ID_STATIC +wxID_FORWARD = wx._core.ID_FORWARD +wxID_BACKWARD = wx._core.ID_BACKWARD +wxID_DEFAULT = wx._core.ID_DEFAULT +wxID_MORE = wx._core.ID_MORE +wxID_SETUP = wx._core.ID_SETUP +wxID_RESET = wx._core.ID_RESET +wxID_CONTEXT_HELP = wx._core.ID_CONTEXT_HELP +wxID_YESTOALL = wx._core.ID_YESTOALL +wxID_NOTOALL = wx._core.ID_NOTOALL +wxID_ABORT = wx._core.ID_ABORT +wxID_RETRY = wx._core.ID_RETRY +wxID_IGNORE = wx._core.ID_IGNORE +wxID_HIGHEST = wx._core.ID_HIGHEST +wxOPEN = wx._core.OPEN +wxSAVE = wx._core.SAVE +wxHIDE_READONLY = wx._core.HIDE_READONLY +wxOVERWRITE_PROMPT = wx._core.OVERWRITE_PROMPT +wxFILE_MUST_EXIST = wx._core.FILE_MUST_EXIST +wxMULTIPLE = wx._core.MULTIPLE +wxCHANGE_DIR = wx._core.CHANGE_DIR +wxACCEL_ALT = wx._core.ACCEL_ALT +wxACCEL_CTRL = wx._core.ACCEL_CTRL +wxACCEL_SHIFT = wx._core.ACCEL_SHIFT +wxACCEL_NORMAL = wx._core.ACCEL_NORMAL +wxPD_AUTO_HIDE = wx._core.PD_AUTO_HIDE +wxPD_APP_MODAL = wx._core.PD_APP_MODAL +wxPD_CAN_ABORT = wx._core.PD_CAN_ABORT +wxPD_ELAPSED_TIME = wx._core.PD_ELAPSED_TIME +wxPD_ESTIMATED_TIME = wx._core.PD_ESTIMATED_TIME +wxPD_REMAINING_TIME = wx._core.PD_REMAINING_TIME +wxDD_NEW_DIR_BUTTON = wx._core.DD_NEW_DIR_BUTTON +wxDD_DEFAULT_STYLE = wx._core.DD_DEFAULT_STYLE +wxMENU_TEAROFF = wx._core.MENU_TEAROFF +wxMB_DOCKABLE = wx._core.MB_DOCKABLE +wxNO_FULL_REPAINT_ON_RESIZE = wx._core.NO_FULL_REPAINT_ON_RESIZE +wxFULL_REPAINT_ON_RESIZE = wx._core.FULL_REPAINT_ON_RESIZE +wxLI_HORIZONTAL = wx._core.LI_HORIZONTAL +wxLI_VERTICAL = wx._core.LI_VERTICAL +wxWS_EX_VALIDATE_RECURSIVELY = wx._core.WS_EX_VALIDATE_RECURSIVELY +wxWS_EX_BLOCK_EVENTS = wx._core.WS_EX_BLOCK_EVENTS +wxWS_EX_TRANSIENT = wx._core.WS_EX_TRANSIENT +wxWS_EX_THEMED_BACKGROUND = wx._core.WS_EX_THEMED_BACKGROUND +wxWS_EX_PROCESS_IDLE = wx._core.WS_EX_PROCESS_IDLE +wxWS_EX_PROCESS_UI_UPDATES = wx._core.WS_EX_PROCESS_UI_UPDATES +wxMM_TEXT = wx._core.MM_TEXT +wxMM_LOMETRIC = wx._core.MM_LOMETRIC +wxMM_HIMETRIC = wx._core.MM_HIMETRIC +wxMM_LOENGLISH = wx._core.MM_LOENGLISH +wxMM_HIENGLISH = wx._core.MM_HIENGLISH +wxMM_TWIPS = wx._core.MM_TWIPS +wxMM_ISOTROPIC = wx._core.MM_ISOTROPIC +wxMM_ANISOTROPIC = wx._core.MM_ANISOTROPIC +wxMM_POINTS = wx._core.MM_POINTS +wxMM_METRIC = wx._core.MM_METRIC +wxCENTRE = wx._core.CENTRE +wxCENTER = wx._core.CENTER +wxHORIZONTAL = wx._core.HORIZONTAL +wxVERTICAL = wx._core.VERTICAL +wxBOTH = wx._core.BOTH +wxLEFT = wx._core.LEFT +wxRIGHT = wx._core.RIGHT +wxUP = wx._core.UP +wxDOWN = wx._core.DOWN +wxTOP = wx._core.TOP +wxBOTTOM = wx._core.BOTTOM +wxNORTH = wx._core.NORTH +wxSOUTH = wx._core.SOUTH +wxWEST = wx._core.WEST +wxEAST = wx._core.EAST +wxALL = wx._core.ALL +wxALIGN_NOT = wx._core.ALIGN_NOT +wxALIGN_CENTER_HORIZONTAL = wx._core.ALIGN_CENTER_HORIZONTAL +wxALIGN_CENTRE_HORIZONTAL = wx._core.ALIGN_CENTRE_HORIZONTAL +wxALIGN_LEFT = wx._core.ALIGN_LEFT +wxALIGN_TOP = wx._core.ALIGN_TOP +wxALIGN_RIGHT = wx._core.ALIGN_RIGHT +wxALIGN_BOTTOM = wx._core.ALIGN_BOTTOM +wxALIGN_CENTER_VERTICAL = wx._core.ALIGN_CENTER_VERTICAL +wxALIGN_CENTRE_VERTICAL = wx._core.ALIGN_CENTRE_VERTICAL +wxALIGN_CENTER = wx._core.ALIGN_CENTER +wxALIGN_CENTRE = wx._core.ALIGN_CENTRE +wxALIGN_MASK = wx._core.ALIGN_MASK +wxSTRETCH_NOT = wx._core.STRETCH_NOT +wxSHRINK = wx._core.SHRINK +wxGROW = wx._core.GROW +wxEXPAND = wx._core.EXPAND +wxSHAPED = wx._core.SHAPED +wxFIXED_MINSIZE = wx._core.FIXED_MINSIZE +wxTILE = wx._core.TILE +wxADJUST_MINSIZE = wx._core.ADJUST_MINSIZE +wxBORDER_DEFAULT = wx._core.BORDER_DEFAULT +wxBORDER_NONE = wx._core.BORDER_NONE +wxBORDER_STATIC = wx._core.BORDER_STATIC +wxBORDER_SIMPLE = wx._core.BORDER_SIMPLE +wxBORDER_RAISED = wx._core.BORDER_RAISED +wxBORDER_SUNKEN = wx._core.BORDER_SUNKEN +wxBORDER_DOUBLE = wx._core.BORDER_DOUBLE +wxBORDER_MASK = wx._core.BORDER_MASK +wxDEFAULT = wx._core.DEFAULT +wxDECORATIVE = wx._core.DECORATIVE +wxROMAN = wx._core.ROMAN +wxSCRIPT = wx._core.SCRIPT +wxSWISS = wx._core.SWISS +wxMODERN = wx._core.MODERN +wxTELETYPE = wx._core.TELETYPE +wxVARIABLE = wx._core.VARIABLE +wxFIXED = wx._core.FIXED +wxNORMAL = wx._core.NORMAL +wxLIGHT = wx._core.LIGHT +wxBOLD = wx._core.BOLD +wxITALIC = wx._core.ITALIC +wxSLANT = wx._core.SLANT +wxSOLID = wx._core.SOLID +wxDOT = wx._core.DOT +wxLONG_DASH = wx._core.LONG_DASH +wxSHORT_DASH = wx._core.SHORT_DASH +wxDOT_DASH = wx._core.DOT_DASH +wxUSER_DASH = wx._core.USER_DASH +wxTRANSPARENT = wx._core.TRANSPARENT +wxSTIPPLE = wx._core.STIPPLE +wxBDIAGONAL_HATCH = wx._core.BDIAGONAL_HATCH +wxCROSSDIAG_HATCH = wx._core.CROSSDIAG_HATCH +wxFDIAGONAL_HATCH = wx._core.FDIAGONAL_HATCH +wxCROSS_HATCH = wx._core.CROSS_HATCH +wxHORIZONTAL_HATCH = wx._core.HORIZONTAL_HATCH +wxVERTICAL_HATCH = wx._core.VERTICAL_HATCH +wxJOIN_BEVEL = wx._core.JOIN_BEVEL +wxJOIN_MITER = wx._core.JOIN_MITER +wxJOIN_ROUND = wx._core.JOIN_ROUND +wxCAP_ROUND = wx._core.CAP_ROUND +wxCAP_PROJECTING = wx._core.CAP_PROJECTING +wxCAP_BUTT = wx._core.CAP_BUTT +wxCLEAR = wx._core.CLEAR +wxXOR = wx._core.XOR +wxINVERT = wx._core.INVERT +wxOR_REVERSE = wx._core.OR_REVERSE +wxAND_REVERSE = wx._core.AND_REVERSE +wxCOPY = wx._core.COPY +wxAND = wx._core.AND +wxAND_INVERT = wx._core.AND_INVERT +wxNO_OP = wx._core.NO_OP +wxNOR = wx._core.NOR +wxEQUIV = wx._core.EQUIV +wxSRC_INVERT = wx._core.SRC_INVERT +wxOR_INVERT = wx._core.OR_INVERT +wxNAND = wx._core.NAND +wxOR = wx._core.OR +wxSET = wx._core.SET +WXK_BACK = wx._core.WXK_BACK +WXK_TAB = wx._core.WXK_TAB +WXK_RETURN = wx._core.WXK_RETURN +WXK_ESCAPE = wx._core.WXK_ESCAPE +WXK_SPACE = wx._core.WXK_SPACE +WXK_DELETE = wx._core.WXK_DELETE +WXK_START = wx._core.WXK_START +WXK_LBUTTON = wx._core.WXK_LBUTTON +WXK_RBUTTON = wx._core.WXK_RBUTTON +WXK_CANCEL = wx._core.WXK_CANCEL +WXK_MBUTTON = wx._core.WXK_MBUTTON +WXK_CLEAR = wx._core.WXK_CLEAR +WXK_SHIFT = wx._core.WXK_SHIFT +WXK_ALT = wx._core.WXK_ALT +WXK_CONTROL = wx._core.WXK_CONTROL +WXK_MENU = wx._core.WXK_MENU +WXK_PAUSE = wx._core.WXK_PAUSE +WXK_CAPITAL = wx._core.WXK_CAPITAL +WXK_PRIOR = wx._core.WXK_PRIOR +WXK_NEXT = wx._core.WXK_NEXT +WXK_END = wx._core.WXK_END +WXK_HOME = wx._core.WXK_HOME +WXK_LEFT = wx._core.WXK_LEFT +WXK_UP = wx._core.WXK_UP +WXK_RIGHT = wx._core.WXK_RIGHT +WXK_DOWN = wx._core.WXK_DOWN +WXK_SELECT = wx._core.WXK_SELECT +WXK_PRINT = wx._core.WXK_PRINT +WXK_EXECUTE = wx._core.WXK_EXECUTE +WXK_SNAPSHOT = wx._core.WXK_SNAPSHOT +WXK_INSERT = wx._core.WXK_INSERT +WXK_HELP = wx._core.WXK_HELP +WXK_NUMPAD0 = wx._core.WXK_NUMPAD0 +WXK_NUMPAD1 = wx._core.WXK_NUMPAD1 +WXK_NUMPAD2 = wx._core.WXK_NUMPAD2 +WXK_NUMPAD3 = wx._core.WXK_NUMPAD3 +WXK_NUMPAD4 = wx._core.WXK_NUMPAD4 +WXK_NUMPAD5 = wx._core.WXK_NUMPAD5 +WXK_NUMPAD6 = wx._core.WXK_NUMPAD6 +WXK_NUMPAD7 = wx._core.WXK_NUMPAD7 +WXK_NUMPAD8 = wx._core.WXK_NUMPAD8 +WXK_NUMPAD9 = wx._core.WXK_NUMPAD9 +WXK_MULTIPLY = wx._core.WXK_MULTIPLY +WXK_ADD = wx._core.WXK_ADD +WXK_SEPARATOR = wx._core.WXK_SEPARATOR +WXK_SUBTRACT = wx._core.WXK_SUBTRACT +WXK_DECIMAL = wx._core.WXK_DECIMAL +WXK_DIVIDE = wx._core.WXK_DIVIDE +WXK_F1 = wx._core.WXK_F1 +WXK_F2 = wx._core.WXK_F2 +WXK_F3 = wx._core.WXK_F3 +WXK_F4 = wx._core.WXK_F4 +WXK_F5 = wx._core.WXK_F5 +WXK_F6 = wx._core.WXK_F6 +WXK_F7 = wx._core.WXK_F7 +WXK_F8 = wx._core.WXK_F8 +WXK_F9 = wx._core.WXK_F9 +WXK_F10 = wx._core.WXK_F10 +WXK_F11 = wx._core.WXK_F11 +WXK_F12 = wx._core.WXK_F12 +WXK_F13 = wx._core.WXK_F13 +WXK_F14 = wx._core.WXK_F14 +WXK_F15 = wx._core.WXK_F15 +WXK_F16 = wx._core.WXK_F16 +WXK_F17 = wx._core.WXK_F17 +WXK_F18 = wx._core.WXK_F18 +WXK_F19 = wx._core.WXK_F19 +WXK_F20 = wx._core.WXK_F20 +WXK_F21 = wx._core.WXK_F21 +WXK_F22 = wx._core.WXK_F22 +WXK_F23 = wx._core.WXK_F23 +WXK_F24 = wx._core.WXK_F24 +WXK_NUMLOCK = wx._core.WXK_NUMLOCK +WXK_SCROLL = wx._core.WXK_SCROLL +WXK_PAGEUP = wx._core.WXK_PAGEUP +WXK_PAGEDOWN = wx._core.WXK_PAGEDOWN +WXK_NUMPAD_SPACE = wx._core.WXK_NUMPAD_SPACE +WXK_NUMPAD_TAB = wx._core.WXK_NUMPAD_TAB +WXK_NUMPAD_ENTER = wx._core.WXK_NUMPAD_ENTER +WXK_NUMPAD_F1 = wx._core.WXK_NUMPAD_F1 +WXK_NUMPAD_F2 = wx._core.WXK_NUMPAD_F2 +WXK_NUMPAD_F3 = wx._core.WXK_NUMPAD_F3 +WXK_NUMPAD_F4 = wx._core.WXK_NUMPAD_F4 +WXK_NUMPAD_HOME = wx._core.WXK_NUMPAD_HOME +WXK_NUMPAD_LEFT = wx._core.WXK_NUMPAD_LEFT +WXK_NUMPAD_UP = wx._core.WXK_NUMPAD_UP +WXK_NUMPAD_RIGHT = wx._core.WXK_NUMPAD_RIGHT +WXK_NUMPAD_DOWN = wx._core.WXK_NUMPAD_DOWN +WXK_NUMPAD_PRIOR = wx._core.WXK_NUMPAD_PRIOR +WXK_NUMPAD_PAGEUP = wx._core.WXK_NUMPAD_PAGEUP +WXK_NUMPAD_NEXT = wx._core.WXK_NUMPAD_NEXT +WXK_NUMPAD_PAGEDOWN = wx._core.WXK_NUMPAD_PAGEDOWN +WXK_NUMPAD_END = wx._core.WXK_NUMPAD_END +WXK_NUMPAD_BEGIN = wx._core.WXK_NUMPAD_BEGIN +WXK_NUMPAD_INSERT = wx._core.WXK_NUMPAD_INSERT +WXK_NUMPAD_DELETE = wx._core.WXK_NUMPAD_DELETE +WXK_NUMPAD_EQUAL = wx._core.WXK_NUMPAD_EQUAL +WXK_NUMPAD_MULTIPLY = wx._core.WXK_NUMPAD_MULTIPLY +WXK_NUMPAD_ADD = wx._core.WXK_NUMPAD_ADD +WXK_NUMPAD_SEPARATOR = wx._core.WXK_NUMPAD_SEPARATOR +WXK_NUMPAD_SUBTRACT = wx._core.WXK_NUMPAD_SUBTRACT +WXK_NUMPAD_DECIMAL = wx._core.WXK_NUMPAD_DECIMAL +WXK_NUMPAD_DIVIDE = wx._core.WXK_NUMPAD_DIVIDE +WXK_WINDOWS_LEFT = wx._core.WXK_WINDOWS_LEFT +WXK_WINDOWS_RIGHT = wx._core.WXK_WINDOWS_RIGHT +WXK_WINDOWS_MENU = wx._core.WXK_WINDOWS_MENU +wxPAPER_NONE = wx._core.PAPER_NONE +wxPAPER_LETTER = wx._core.PAPER_LETTER +wxPAPER_LEGAL = wx._core.PAPER_LEGAL +wxPAPER_A4 = wx._core.PAPER_A4 +wxPAPER_CSHEET = wx._core.PAPER_CSHEET +wxPAPER_DSHEET = wx._core.PAPER_DSHEET +wxPAPER_ESHEET = wx._core.PAPER_ESHEET +wxPAPER_LETTERSMALL = wx._core.PAPER_LETTERSMALL +wxPAPER_TABLOID = wx._core.PAPER_TABLOID +wxPAPER_LEDGER = wx._core.PAPER_LEDGER +wxPAPER_STATEMENT = wx._core.PAPER_STATEMENT +wxPAPER_EXECUTIVE = wx._core.PAPER_EXECUTIVE +wxPAPER_A3 = wx._core.PAPER_A3 +wxPAPER_A4SMALL = wx._core.PAPER_A4SMALL +wxPAPER_A5 = wx._core.PAPER_A5 +wxPAPER_B4 = wx._core.PAPER_B4 +wxPAPER_B5 = wx._core.PAPER_B5 +wxPAPER_FOLIO = wx._core.PAPER_FOLIO +wxPAPER_QUARTO = wx._core.PAPER_QUARTO +wxPAPER_10X14 = wx._core.PAPER_10X14 +wxPAPER_11X17 = wx._core.PAPER_11X17 +wxPAPER_NOTE = wx._core.PAPER_NOTE +wxPAPER_ENV_9 = wx._core.PAPER_ENV_9 +wxPAPER_ENV_10 = wx._core.PAPER_ENV_10 +wxPAPER_ENV_11 = wx._core.PAPER_ENV_11 +wxPAPER_ENV_12 = wx._core.PAPER_ENV_12 +wxPAPER_ENV_14 = wx._core.PAPER_ENV_14 +wxPAPER_ENV_DL = wx._core.PAPER_ENV_DL +wxPAPER_ENV_C5 = wx._core.PAPER_ENV_C5 +wxPAPER_ENV_C3 = wx._core.PAPER_ENV_C3 +wxPAPER_ENV_C4 = wx._core.PAPER_ENV_C4 +wxPAPER_ENV_C6 = wx._core.PAPER_ENV_C6 +wxPAPER_ENV_C65 = wx._core.PAPER_ENV_C65 +wxPAPER_ENV_B4 = wx._core.PAPER_ENV_B4 +wxPAPER_ENV_B5 = wx._core.PAPER_ENV_B5 +wxPAPER_ENV_B6 = wx._core.PAPER_ENV_B6 +wxPAPER_ENV_ITALY = wx._core.PAPER_ENV_ITALY +wxPAPER_ENV_MONARCH = wx._core.PAPER_ENV_MONARCH +wxPAPER_ENV_PERSONAL = wx._core.PAPER_ENV_PERSONAL +wxPAPER_FANFOLD_US = wx._core.PAPER_FANFOLD_US +wxPAPER_FANFOLD_STD_GERMAN = wx._core.PAPER_FANFOLD_STD_GERMAN +wxPAPER_FANFOLD_LGL_GERMAN = wx._core.PAPER_FANFOLD_LGL_GERMAN +wxPAPER_ISO_B4 = wx._core.PAPER_ISO_B4 +wxPAPER_JAPANESE_POSTCARD = wx._core.PAPER_JAPANESE_POSTCARD +wxPAPER_9X11 = wx._core.PAPER_9X11 +wxPAPER_10X11 = wx._core.PAPER_10X11 +wxPAPER_15X11 = wx._core.PAPER_15X11 +wxPAPER_ENV_INVITE = wx._core.PAPER_ENV_INVITE +wxPAPER_LETTER_EXTRA = wx._core.PAPER_LETTER_EXTRA +wxPAPER_LEGAL_EXTRA = wx._core.PAPER_LEGAL_EXTRA +wxPAPER_TABLOID_EXTRA = wx._core.PAPER_TABLOID_EXTRA +wxPAPER_A4_EXTRA = wx._core.PAPER_A4_EXTRA +wxPAPER_LETTER_TRANSVERSE = wx._core.PAPER_LETTER_TRANSVERSE +wxPAPER_A4_TRANSVERSE = wx._core.PAPER_A4_TRANSVERSE +wxPAPER_LETTER_EXTRA_TRANSVERSE = wx._core.PAPER_LETTER_EXTRA_TRANSVERSE +wxPAPER_A_PLUS = wx._core.PAPER_A_PLUS +wxPAPER_B_PLUS = wx._core.PAPER_B_PLUS +wxPAPER_LETTER_PLUS = wx._core.PAPER_LETTER_PLUS +wxPAPER_A4_PLUS = wx._core.PAPER_A4_PLUS +wxPAPER_A5_TRANSVERSE = wx._core.PAPER_A5_TRANSVERSE +wxPAPER_B5_TRANSVERSE = wx._core.PAPER_B5_TRANSVERSE +wxPAPER_A3_EXTRA = wx._core.PAPER_A3_EXTRA +wxPAPER_A5_EXTRA = wx._core.PAPER_A5_EXTRA +wxPAPER_B5_EXTRA = wx._core.PAPER_B5_EXTRA +wxPAPER_A2 = wx._core.PAPER_A2 +wxPAPER_A3_TRANSVERSE = wx._core.PAPER_A3_TRANSVERSE +wxPAPER_A3_EXTRA_TRANSVERSE = wx._core.PAPER_A3_EXTRA_TRANSVERSE +wxDUPLEX_SIMPLEX = wx._core.DUPLEX_SIMPLEX +wxDUPLEX_HORIZONTAL = wx._core.DUPLEX_HORIZONTAL +wxDUPLEX_VERTICAL = wx._core.DUPLEX_VERTICAL +wxITEM_SEPARATOR = wx._core.ITEM_SEPARATOR +wxITEM_NORMAL = wx._core.ITEM_NORMAL +wxITEM_CHECK = wx._core.ITEM_CHECK +wxITEM_RADIO = wx._core.ITEM_RADIO +wxITEM_MAX = wx._core.ITEM_MAX +wxHT_NOWHERE = wx._core.HT_NOWHERE +wxHT_SCROLLBAR_FIRST = wx._core.HT_SCROLLBAR_FIRST +wxHT_SCROLLBAR_ARROW_LINE_1 = wx._core.HT_SCROLLBAR_ARROW_LINE_1 +wxHT_SCROLLBAR_ARROW_LINE_2 = wx._core.HT_SCROLLBAR_ARROW_LINE_2 +wxHT_SCROLLBAR_ARROW_PAGE_1 = wx._core.HT_SCROLLBAR_ARROW_PAGE_1 +wxHT_SCROLLBAR_ARROW_PAGE_2 = wx._core.HT_SCROLLBAR_ARROW_PAGE_2 +wxHT_SCROLLBAR_THUMB = wx._core.HT_SCROLLBAR_THUMB +wxHT_SCROLLBAR_BAR_1 = wx._core.HT_SCROLLBAR_BAR_1 +wxHT_SCROLLBAR_BAR_2 = wx._core.HT_SCROLLBAR_BAR_2 +wxHT_SCROLLBAR_LAST = wx._core.HT_SCROLLBAR_LAST +wxHT_WINDOW_OUTSIDE = wx._core.HT_WINDOW_OUTSIDE +wxHT_WINDOW_INSIDE = wx._core.HT_WINDOW_INSIDE +wxHT_WINDOW_VERT_SCROLLBAR = wx._core.HT_WINDOW_VERT_SCROLLBAR +wxHT_WINDOW_HORZ_SCROLLBAR = wx._core.HT_WINDOW_HORZ_SCROLLBAR +wxHT_WINDOW_CORNER = wx._core.HT_WINDOW_CORNER +wxHT_MAX = wx._core.HT_MAX +wxMOD_NONE = wx._core.MOD_NONE +wxMOD_ALT = wx._core.MOD_ALT +wxMOD_CONTROL = wx._core.MOD_CONTROL +wxMOD_SHIFT = wx._core.MOD_SHIFT +wxMOD_WIN = wx._core.MOD_WIN +wxUPDATE_UI_NONE = wx._core.UPDATE_UI_NONE +wxUPDATE_UI_RECURSE = wx._core.UPDATE_UI_RECURSE +wxUPDATE_UI_FROMIDLE = wx._core.UPDATE_UI_FROMIDLE +wxEmptyString = wx._core.EmptyString +wxObject = wx._core.Object +wxObjectPtr = wx._core.ObjectPtr +wxBITMAP_TYPE_INVALID = wx._core.BITMAP_TYPE_INVALID +wxBITMAP_TYPE_BMP = wx._core.BITMAP_TYPE_BMP +wxBITMAP_TYPE_ICO = wx._core.BITMAP_TYPE_ICO +wxBITMAP_TYPE_CUR = wx._core.BITMAP_TYPE_CUR +wxBITMAP_TYPE_XBM = wx._core.BITMAP_TYPE_XBM +wxBITMAP_TYPE_XBM_DATA = wx._core.BITMAP_TYPE_XBM_DATA +wxBITMAP_TYPE_XPM = wx._core.BITMAP_TYPE_XPM +wxBITMAP_TYPE_XPM_DATA = wx._core.BITMAP_TYPE_XPM_DATA +wxBITMAP_TYPE_TIF = wx._core.BITMAP_TYPE_TIF +wxBITMAP_TYPE_GIF = wx._core.BITMAP_TYPE_GIF +wxBITMAP_TYPE_PNG = wx._core.BITMAP_TYPE_PNG +wxBITMAP_TYPE_JPEG = wx._core.BITMAP_TYPE_JPEG +wxBITMAP_TYPE_PNM = wx._core.BITMAP_TYPE_PNM +wxBITMAP_TYPE_PCX = wx._core.BITMAP_TYPE_PCX +wxBITMAP_TYPE_PICT = wx._core.BITMAP_TYPE_PICT +wxBITMAP_TYPE_ICON = wx._core.BITMAP_TYPE_ICON +wxBITMAP_TYPE_ANI = wx._core.BITMAP_TYPE_ANI +wxBITMAP_TYPE_IFF = wx._core.BITMAP_TYPE_IFF +wxBITMAP_TYPE_MACCURSOR = wx._core.BITMAP_TYPE_MACCURSOR +wxBITMAP_TYPE_ANY = wx._core.BITMAP_TYPE_ANY +wxCURSOR_NONE = wx._core.CURSOR_NONE +wxCURSOR_ARROW = wx._core.CURSOR_ARROW +wxCURSOR_RIGHT_ARROW = wx._core.CURSOR_RIGHT_ARROW +wxCURSOR_BULLSEYE = wx._core.CURSOR_BULLSEYE +wxCURSOR_CHAR = wx._core.CURSOR_CHAR +wxCURSOR_CROSS = wx._core.CURSOR_CROSS +wxCURSOR_HAND = wx._core.CURSOR_HAND +wxCURSOR_IBEAM = wx._core.CURSOR_IBEAM +wxCURSOR_LEFT_BUTTON = wx._core.CURSOR_LEFT_BUTTON +wxCURSOR_MAGNIFIER = wx._core.CURSOR_MAGNIFIER +wxCURSOR_MIDDLE_BUTTON = wx._core.CURSOR_MIDDLE_BUTTON +wxCURSOR_NO_ENTRY = wx._core.CURSOR_NO_ENTRY +wxCURSOR_PAINT_BRUSH = wx._core.CURSOR_PAINT_BRUSH +wxCURSOR_PENCIL = wx._core.CURSOR_PENCIL +wxCURSOR_POINT_LEFT = wx._core.CURSOR_POINT_LEFT +wxCURSOR_POINT_RIGHT = wx._core.CURSOR_POINT_RIGHT +wxCURSOR_QUESTION_ARROW = wx._core.CURSOR_QUESTION_ARROW +wxCURSOR_RIGHT_BUTTON = wx._core.CURSOR_RIGHT_BUTTON +wxCURSOR_SIZENESW = wx._core.CURSOR_SIZENESW +wxCURSOR_SIZENS = wx._core.CURSOR_SIZENS +wxCURSOR_SIZENWSE = wx._core.CURSOR_SIZENWSE +wxCURSOR_SIZEWE = wx._core.CURSOR_SIZEWE +wxCURSOR_SIZING = wx._core.CURSOR_SIZING +wxCURSOR_SPRAYCAN = wx._core.CURSOR_SPRAYCAN +wxCURSOR_WAIT = wx._core.CURSOR_WAIT +wxCURSOR_WATCH = wx._core.CURSOR_WATCH +wxCURSOR_BLANK = wx._core.CURSOR_BLANK +wxCURSOR_DEFAULT = wx._core.CURSOR_DEFAULT +wxCURSOR_COPY_ARROW = wx._core.CURSOR_COPY_ARROW +wxCURSOR_ARROWWAIT = wx._core.CURSOR_ARROWWAIT +wxCURSOR_MAX = wx._core.CURSOR_MAX +wxSize = wx._core.Size +wxSizePtr = wx._core.SizePtr +wxRealPoint = wx._core.RealPoint +wxRealPointPtr = wx._core.RealPointPtr +wxPoint = wx._core.Point +wxPointPtr = wx._core.PointPtr +wxRect = wx._core.Rect +wxRectPtr = wx._core.RectPtr +wxRectPP = wx._core.RectPP +wxRectPS = wx._core.RectPS +wxIntersectRect = wx._core.IntersectRect +wxPoint2D = wx._core.Point2D +wxPoint2DPtr = wx._core.Point2DPtr +wxPoint2DCopy = wx._core.Point2DCopy +wxPoint2DFromPoint = wx._core.Point2DFromPoint +wxDefaultPosition = wx._core.DefaultPosition +wxDefaultSize = wx._core.DefaultSize +wxFromStart = wx._core.FromStart +wxFromCurrent = wx._core.FromCurrent +wxFromEnd = wx._core.FromEnd +wxInputStream = wx._core.InputStream +wxInputStreamPtr = wx._core.InputStreamPtr +wxOutputStream = wx._core.OutputStream +wxOutputStreamPtr = wx._core.OutputStreamPtr +wxFSFile = wx._core.FSFile +wxFSFilePtr = wx._core.FSFilePtr +wxCPPFileSystemHandler = wx._core.CPPFileSystemHandler +wxCPPFileSystemHandlerPtr = wx._core.CPPFileSystemHandlerPtr +wxFileSystemHandler = wx._core.FileSystemHandler +wxFileSystemHandlerPtr = wx._core.FileSystemHandlerPtr +wxFileSystem = wx._core.FileSystem +wxFileSystemPtr = wx._core.FileSystemPtr +wxFileSystem_AddHandler = wx._core.FileSystem_AddHandler +wxFileSystem_CleanUpHandlers = wx._core.FileSystem_CleanUpHandlers +wxFileSystem_FileNameToURL = wx._core.FileSystem_FileNameToURL +wxFileSystem_URLToFileName = wx._core.FileSystem_URLToFileName +wxInternetFSHandler = wx._core.InternetFSHandler +wxInternetFSHandlerPtr = wx._core.InternetFSHandlerPtr +wxZipFSHandler = wx._core.ZipFSHandler +wxZipFSHandlerPtr = wx._core.ZipFSHandlerPtr +__wxMemoryFSHandler_AddFile_wxImage = wx._core.__wxMemoryFSHandler_AddFile_wxImage +__wxMemoryFSHandler_AddFile_wxBitmap = wx._core.__wxMemoryFSHandler_AddFile_wxBitmap +__wxMemoryFSHandler_AddFile_Data = wx._core.__wxMemoryFSHandler_AddFile_Data +wxMemoryFSHandler = wx._core.MemoryFSHandler +wxMemoryFSHandlerPtr = wx._core.MemoryFSHandlerPtr +wxMemoryFSHandler_RemoveFile = wx._core.MemoryFSHandler_RemoveFile +wxImageHandler = wx._core.ImageHandler +wxImageHandlerPtr = wx._core.ImageHandlerPtr +wxImageHistogram = wx._core.ImageHistogram +wxImageHistogramPtr = wx._core.ImageHistogramPtr +wxImageHistogram_MakeKey = wx._core.ImageHistogram_MakeKey +wxImage = wx._core.Image +wxImagePtr = wx._core.ImagePtr +wxImageFromMime = wx._core.ImageFromMime +wxImageFromStream = wx._core.ImageFromStream +wxImageFromStreamMime = wx._core.ImageFromStreamMime +wxEmptyImage = wx._core.EmptyImage +wxEmptyImage = wx._core.EmptyImage +wxImageFromBitmap = wx._core.ImageFromBitmap +wxImageFromData = wx._core.ImageFromData +wxImage_CanRead = wx._core.Image_CanRead +wxImage_GetImageCount = wx._core.Image_GetImageCount +wxImage_CanReadStream = wx._core.Image_CanReadStream +wxImage_AddHandler = wx._core.Image_AddHandler +wxImage_InsertHandler = wx._core.Image_InsertHandler +wxImage_RemoveHandler = wx._core.Image_RemoveHandler +wxImage_GetImageExtWildcard = wx._core.Image_GetImageExtWildcard +wxInitAllImageHandlers = wx._core.InitAllImageHandlers +wxNullImage = wx._core.NullImage +wxIMAGE_OPTION_BMP_FORMAT = wx._core.IMAGE_OPTION_BMP_FORMAT +wxIMAGE_OPTION_CUR_HOTSPOT_X = wx._core.IMAGE_OPTION_CUR_HOTSPOT_X +wxIMAGE_OPTION_CUR_HOTSPOT_Y = wx._core.IMAGE_OPTION_CUR_HOTSPOT_Y +wxIMAGE_OPTION_RESOLUTION = wx._core.IMAGE_OPTION_RESOLUTION +wxIMAGE_OPTION_RESOLUTIONUNIT = wx._core.IMAGE_OPTION_RESOLUTIONUNIT +wxIMAGE_RESOLUTION_INCHES = wx._core.IMAGE_RESOLUTION_INCHES +wxIMAGE_RESOLUTION_CM = wx._core.IMAGE_RESOLUTION_CM +wxBMP_24BPP = wx._core.BMP_24BPP +wxBMP_8BPP = wx._core.BMP_8BPP +wxBMP_8BPP_GREY = wx._core.BMP_8BPP_GREY +wxBMP_8BPP_GRAY = wx._core.BMP_8BPP_GRAY +wxBMP_8BPP_RED = wx._core.BMP_8BPP_RED +wxBMP_8BPP_PALETTE = wx._core.BMP_8BPP_PALETTE +wxBMP_4BPP = wx._core.BMP_4BPP +wxBMP_1BPP = wx._core.BMP_1BPP +wxBMP_1BPP_BW = wx._core.BMP_1BPP_BW +wxBMPHandler = wx._core.BMPHandler +wxBMPHandlerPtr = wx._core.BMPHandlerPtr +wxICOHandler = wx._core.ICOHandler +wxICOHandlerPtr = wx._core.ICOHandlerPtr +wxCURHandler = wx._core.CURHandler +wxCURHandlerPtr = wx._core.CURHandlerPtr +wxANIHandler = wx._core.ANIHandler +wxANIHandlerPtr = wx._core.ANIHandlerPtr +wxPNGHandler = wx._core.PNGHandler +wxPNGHandlerPtr = wx._core.PNGHandlerPtr +wxGIFHandler = wx._core.GIFHandler +wxGIFHandlerPtr = wx._core.GIFHandlerPtr +wxPCXHandler = wx._core.PCXHandler +wxPCXHandlerPtr = wx._core.PCXHandlerPtr +wxJPEGHandler = wx._core.JPEGHandler +wxJPEGHandlerPtr = wx._core.JPEGHandlerPtr +wxPNMHandler = wx._core.PNMHandler +wxPNMHandlerPtr = wx._core.PNMHandlerPtr +wxXPMHandler = wx._core.XPMHandler +wxXPMHandlerPtr = wx._core.XPMHandlerPtr +wxTIFFHandler = wx._core.TIFFHandler +wxTIFFHandlerPtr = wx._core.TIFFHandlerPtr +wxEvtHandler = wx._core.EvtHandler +wxEvtHandlerPtr = wx._core.EvtHandlerPtr +wxEVENT_PROPAGATE_NONE = wx._core.EVENT_PROPAGATE_NONE +wxEVENT_PROPAGATE_MAX = wx._core.EVENT_PROPAGATE_MAX +wxNewEventType = wx._core.NewEventType +wxEVT_NULL = wx._core.wxEVT_NULL +wxEVT_FIRST = wx._core.wxEVT_FIRST +wxEVT_USER_FIRST = wx._core.wxEVT_USER_FIRST +wxEVT_COMMAND_BUTTON_CLICKED = wx._core.wxEVT_COMMAND_BUTTON_CLICKED +wxEVT_COMMAND_CHECKBOX_CLICKED = wx._core.wxEVT_COMMAND_CHECKBOX_CLICKED +wxEVT_COMMAND_CHOICE_SELECTED = wx._core.wxEVT_COMMAND_CHOICE_SELECTED +wxEVT_COMMAND_LISTBOX_SELECTED = wx._core.wxEVT_COMMAND_LISTBOX_SELECTED +wxEVT_COMMAND_LISTBOX_DOUBLECLICKED = wx._core.wxEVT_COMMAND_LISTBOX_DOUBLECLICKED +wxEVT_COMMAND_CHECKLISTBOX_TOGGLED = wx._core.wxEVT_COMMAND_CHECKLISTBOX_TOGGLED +wxEVT_COMMAND_MENU_SELECTED = wx._core.wxEVT_COMMAND_MENU_SELECTED +wxEVT_COMMAND_TOOL_CLICKED = wx._core.wxEVT_COMMAND_TOOL_CLICKED +wxEVT_COMMAND_SLIDER_UPDATED = wx._core.wxEVT_COMMAND_SLIDER_UPDATED +wxEVT_COMMAND_RADIOBOX_SELECTED = wx._core.wxEVT_COMMAND_RADIOBOX_SELECTED +wxEVT_COMMAND_RADIOBUTTON_SELECTED = wx._core.wxEVT_COMMAND_RADIOBUTTON_SELECTED +wxEVT_COMMAND_SCROLLBAR_UPDATED = wx._core.wxEVT_COMMAND_SCROLLBAR_UPDATED +wxEVT_COMMAND_VLBOX_SELECTED = wx._core.wxEVT_COMMAND_VLBOX_SELECTED +wxEVT_COMMAND_COMBOBOX_SELECTED = wx._core.wxEVT_COMMAND_COMBOBOX_SELECTED +wxEVT_COMMAND_TOOL_RCLICKED = wx._core.wxEVT_COMMAND_TOOL_RCLICKED +wxEVT_COMMAND_TOOL_ENTER = wx._core.wxEVT_COMMAND_TOOL_ENTER +wxEVT_LEFT_DOWN = wx._core.wxEVT_LEFT_DOWN +wxEVT_LEFT_UP = wx._core.wxEVT_LEFT_UP +wxEVT_MIDDLE_DOWN = wx._core.wxEVT_MIDDLE_DOWN +wxEVT_MIDDLE_UP = wx._core.wxEVT_MIDDLE_UP +wxEVT_RIGHT_DOWN = wx._core.wxEVT_RIGHT_DOWN +wxEVT_RIGHT_UP = wx._core.wxEVT_RIGHT_UP +wxEVT_MOTION = wx._core.wxEVT_MOTION +wxEVT_ENTER_WINDOW = wx._core.wxEVT_ENTER_WINDOW +wxEVT_LEAVE_WINDOW = wx._core.wxEVT_LEAVE_WINDOW +wxEVT_LEFT_DCLICK = wx._core.wxEVT_LEFT_DCLICK +wxEVT_MIDDLE_DCLICK = wx._core.wxEVT_MIDDLE_DCLICK +wxEVT_RIGHT_DCLICK = wx._core.wxEVT_RIGHT_DCLICK +wxEVT_SET_FOCUS = wx._core.wxEVT_SET_FOCUS +wxEVT_KILL_FOCUS = wx._core.wxEVT_KILL_FOCUS +wxEVT_CHILD_FOCUS = wx._core.wxEVT_CHILD_FOCUS +wxEVT_MOUSEWHEEL = wx._core.wxEVT_MOUSEWHEEL +wxEVT_NC_LEFT_DOWN = wx._core.wxEVT_NC_LEFT_DOWN +wxEVT_NC_LEFT_UP = wx._core.wxEVT_NC_LEFT_UP +wxEVT_NC_MIDDLE_DOWN = wx._core.wxEVT_NC_MIDDLE_DOWN +wxEVT_NC_MIDDLE_UP = wx._core.wxEVT_NC_MIDDLE_UP +wxEVT_NC_RIGHT_DOWN = wx._core.wxEVT_NC_RIGHT_DOWN +wxEVT_NC_RIGHT_UP = wx._core.wxEVT_NC_RIGHT_UP +wxEVT_NC_MOTION = wx._core.wxEVT_NC_MOTION +wxEVT_NC_ENTER_WINDOW = wx._core.wxEVT_NC_ENTER_WINDOW +wxEVT_NC_LEAVE_WINDOW = wx._core.wxEVT_NC_LEAVE_WINDOW +wxEVT_NC_LEFT_DCLICK = wx._core.wxEVT_NC_LEFT_DCLICK +wxEVT_NC_MIDDLE_DCLICK = wx._core.wxEVT_NC_MIDDLE_DCLICK +wxEVT_NC_RIGHT_DCLICK = wx._core.wxEVT_NC_RIGHT_DCLICK +wxEVT_CHAR = wx._core.wxEVT_CHAR +wxEVT_CHAR_HOOK = wx._core.wxEVT_CHAR_HOOK +wxEVT_NAVIGATION_KEY = wx._core.wxEVT_NAVIGATION_KEY +wxEVT_KEY_DOWN = wx._core.wxEVT_KEY_DOWN +wxEVT_KEY_UP = wx._core.wxEVT_KEY_UP +wxEVT_HOTKEY = wx._core.wxEVT_HOTKEY +wxEVT_SET_CURSOR = wx._core.wxEVT_SET_CURSOR +wxEVT_SCROLL_TOP = wx._core.wxEVT_SCROLL_TOP +wxEVT_SCROLL_BOTTOM = wx._core.wxEVT_SCROLL_BOTTOM +wxEVT_SCROLL_LINEUP = wx._core.wxEVT_SCROLL_LINEUP +wxEVT_SCROLL_LINEDOWN = wx._core.wxEVT_SCROLL_LINEDOWN +wxEVT_SCROLL_PAGEUP = wx._core.wxEVT_SCROLL_PAGEUP +wxEVT_SCROLL_PAGEDOWN = wx._core.wxEVT_SCROLL_PAGEDOWN +wxEVT_SCROLL_THUMBTRACK = wx._core.wxEVT_SCROLL_THUMBTRACK +wxEVT_SCROLL_THUMBRELEASE = wx._core.wxEVT_SCROLL_THUMBRELEASE +wxEVT_SCROLL_ENDSCROLL = wx._core.wxEVT_SCROLL_ENDSCROLL +wxEVT_SCROLLWIN_TOP = wx._core.wxEVT_SCROLLWIN_TOP +wxEVT_SCROLLWIN_BOTTOM = wx._core.wxEVT_SCROLLWIN_BOTTOM +wxEVT_SCROLLWIN_LINEUP = wx._core.wxEVT_SCROLLWIN_LINEUP +wxEVT_SCROLLWIN_LINEDOWN = wx._core.wxEVT_SCROLLWIN_LINEDOWN +wxEVT_SCROLLWIN_PAGEUP = wx._core.wxEVT_SCROLLWIN_PAGEUP +wxEVT_SCROLLWIN_PAGEDOWN = wx._core.wxEVT_SCROLLWIN_PAGEDOWN +wxEVT_SCROLLWIN_THUMBTRACK = wx._core.wxEVT_SCROLLWIN_THUMBTRACK +wxEVT_SCROLLWIN_THUMBRELEASE = wx._core.wxEVT_SCROLLWIN_THUMBRELEASE +wxEVT_SIZE = wx._core.wxEVT_SIZE +wxEVT_MOVE = wx._core.wxEVT_MOVE +wxEVT_CLOSE_WINDOW = wx._core.wxEVT_CLOSE_WINDOW +wxEVT_END_SESSION = wx._core.wxEVT_END_SESSION +wxEVT_QUERY_END_SESSION = wx._core.wxEVT_QUERY_END_SESSION +wxEVT_ACTIVATE_APP = wx._core.wxEVT_ACTIVATE_APP +wxEVT_POWER = wx._core.wxEVT_POWER +wxEVT_ACTIVATE = wx._core.wxEVT_ACTIVATE +wxEVT_CREATE = wx._core.wxEVT_CREATE +wxEVT_DESTROY = wx._core.wxEVT_DESTROY +wxEVT_SHOW = wx._core.wxEVT_SHOW +wxEVT_ICONIZE = wx._core.wxEVT_ICONIZE +wxEVT_MAXIMIZE = wx._core.wxEVT_MAXIMIZE +wxEVT_MOUSE_CAPTURE_CHANGED = wx._core.wxEVT_MOUSE_CAPTURE_CHANGED +wxEVT_PAINT = wx._core.wxEVT_PAINT +wxEVT_ERASE_BACKGROUND = wx._core.wxEVT_ERASE_BACKGROUND +wxEVT_NC_PAINT = wx._core.wxEVT_NC_PAINT +wxEVT_PAINT_ICON = wx._core.wxEVT_PAINT_ICON +wxEVT_MENU_OPEN = wx._core.wxEVT_MENU_OPEN +wxEVT_MENU_CLOSE = wx._core.wxEVT_MENU_CLOSE +wxEVT_MENU_HIGHLIGHT = wx._core.wxEVT_MENU_HIGHLIGHT +wxEVT_CONTEXT_MENU = wx._core.wxEVT_CONTEXT_MENU +wxEVT_SYS_COLOUR_CHANGED = wx._core.wxEVT_SYS_COLOUR_CHANGED +wxEVT_DISPLAY_CHANGED = wx._core.wxEVT_DISPLAY_CHANGED +wxEVT_SETTING_CHANGED = wx._core.wxEVT_SETTING_CHANGED +wxEVT_QUERY_NEW_PALETTE = wx._core.wxEVT_QUERY_NEW_PALETTE +wxEVT_PALETTE_CHANGED = wx._core.wxEVT_PALETTE_CHANGED +wxEVT_DROP_FILES = wx._core.wxEVT_DROP_FILES +wxEVT_DRAW_ITEM = wx._core.wxEVT_DRAW_ITEM +wxEVT_MEASURE_ITEM = wx._core.wxEVT_MEASURE_ITEM +wxEVT_COMPARE_ITEM = wx._core.wxEVT_COMPARE_ITEM +wxEVT_INIT_DIALOG = wx._core.wxEVT_INIT_DIALOG +wxEVT_IDLE = wx._core.wxEVT_IDLE +wxEVT_UPDATE_UI = wx._core.wxEVT_UPDATE_UI +wxEVT_SIZING = wx._core.wxEVT_SIZING +wxEVT_MOVING = wx._core.wxEVT_MOVING +wxEVT_COMMAND_LEFT_CLICK = wx._core.wxEVT_COMMAND_LEFT_CLICK +wxEVT_COMMAND_LEFT_DCLICK = wx._core.wxEVT_COMMAND_LEFT_DCLICK +wxEVT_COMMAND_RIGHT_CLICK = wx._core.wxEVT_COMMAND_RIGHT_CLICK +wxEVT_COMMAND_RIGHT_DCLICK = wx._core.wxEVT_COMMAND_RIGHT_DCLICK +wxEVT_COMMAND_SET_FOCUS = wx._core.wxEVT_COMMAND_SET_FOCUS +wxEVT_COMMAND_KILL_FOCUS = wx._core.wxEVT_COMMAND_KILL_FOCUS +wxEVT_COMMAND_ENTER = wx._core.wxEVT_COMMAND_ENTER +wxEvent = wx._core.Event +wxEventPtr = wx._core.EventPtr +wxPropagationDisabler = wx._core.PropagationDisabler +wxPropagationDisablerPtr = wx._core.PropagationDisablerPtr +wxPropagateOnce = wx._core.PropagateOnce +wxPropagateOncePtr = wx._core.PropagateOncePtr +wxCommandEvent = wx._core.CommandEvent +wxCommandEventPtr = wx._core.CommandEventPtr +wxNotifyEvent = wx._core.NotifyEvent +wxNotifyEventPtr = wx._core.NotifyEventPtr +wxScrollEvent = wx._core.ScrollEvent +wxScrollEventPtr = wx._core.ScrollEventPtr +wxScrollWinEvent = wx._core.ScrollWinEvent +wxScrollWinEventPtr = wx._core.ScrollWinEventPtr +wxMOUSE_BTN_ANY = wx._core.MOUSE_BTN_ANY +wxMOUSE_BTN_NONE = wx._core.MOUSE_BTN_NONE +wxMOUSE_BTN_LEFT = wx._core.MOUSE_BTN_LEFT +wxMOUSE_BTN_MIDDLE = wx._core.MOUSE_BTN_MIDDLE +wxMOUSE_BTN_RIGHT = wx._core.MOUSE_BTN_RIGHT +wxMouseEvent = wx._core.MouseEvent +wxMouseEventPtr = wx._core.MouseEventPtr +wxSetCursorEvent = wx._core.SetCursorEvent +wxSetCursorEventPtr = wx._core.SetCursorEventPtr +wxKeyEvent = wx._core.KeyEvent +wxKeyEventPtr = wx._core.KeyEventPtr +wxSizeEvent = wx._core.SizeEvent +wxSizeEventPtr = wx._core.SizeEventPtr +wxMoveEvent = wx._core.MoveEvent +wxMoveEventPtr = wx._core.MoveEventPtr +wxPaintEvent = wx._core.PaintEvent +wxPaintEventPtr = wx._core.PaintEventPtr +wxNcPaintEvent = wx._core.NcPaintEvent +wxNcPaintEventPtr = wx._core.NcPaintEventPtr +wxEraseEvent = wx._core.EraseEvent +wxEraseEventPtr = wx._core.EraseEventPtr +wxFocusEvent = wx._core.FocusEvent +wxFocusEventPtr = wx._core.FocusEventPtr +wxChildFocusEvent = wx._core.ChildFocusEvent +wxChildFocusEventPtr = wx._core.ChildFocusEventPtr +wxActivateEvent = wx._core.ActivateEvent +wxActivateEventPtr = wx._core.ActivateEventPtr +wxInitDialogEvent = wx._core.InitDialogEvent +wxInitDialogEventPtr = wx._core.InitDialogEventPtr +wxMenuEvent = wx._core.MenuEvent +wxMenuEventPtr = wx._core.MenuEventPtr +wxCloseEvent = wx._core.CloseEvent +wxCloseEventPtr = wx._core.CloseEventPtr +wxShowEvent = wx._core.ShowEvent +wxShowEventPtr = wx._core.ShowEventPtr +wxIconizeEvent = wx._core.IconizeEvent +wxIconizeEventPtr = wx._core.IconizeEventPtr +wxMaximizeEvent = wx._core.MaximizeEvent +wxMaximizeEventPtr = wx._core.MaximizeEventPtr +wxDropFilesEvent = wx._core.DropFilesEvent +wxDropFilesEventPtr = wx._core.DropFilesEventPtr +wxUPDATE_UI_PROCESS_ALL = wx._core.UPDATE_UI_PROCESS_ALL +wxUPDATE_UI_PROCESS_SPECIFIED = wx._core.UPDATE_UI_PROCESS_SPECIFIED +wxUpdateUIEvent = wx._core.UpdateUIEvent +wxUpdateUIEventPtr = wx._core.UpdateUIEventPtr +wxUpdateUIEvent_SetUpdateInterval = wx._core.UpdateUIEvent_SetUpdateInterval +wxUpdateUIEvent_GetUpdateInterval = wx._core.UpdateUIEvent_GetUpdateInterval +wxUpdateUIEvent_CanUpdate = wx._core.UpdateUIEvent_CanUpdate +wxUpdateUIEvent_ResetUpdateTime = wx._core.UpdateUIEvent_ResetUpdateTime +wxUpdateUIEvent_SetMode = wx._core.UpdateUIEvent_SetMode +wxUpdateUIEvent_GetMode = wx._core.UpdateUIEvent_GetMode +wxSysColourChangedEvent = wx._core.SysColourChangedEvent +wxSysColourChangedEventPtr = wx._core.SysColourChangedEventPtr +wxMouseCaptureChangedEvent = wx._core.MouseCaptureChangedEvent +wxMouseCaptureChangedEventPtr = wx._core.MouseCaptureChangedEventPtr +wxDisplayChangedEvent = wx._core.DisplayChangedEvent +wxDisplayChangedEventPtr = wx._core.DisplayChangedEventPtr +wxPaletteChangedEvent = wx._core.PaletteChangedEvent +wxPaletteChangedEventPtr = wx._core.PaletteChangedEventPtr +wxQueryNewPaletteEvent = wx._core.QueryNewPaletteEvent +wxQueryNewPaletteEventPtr = wx._core.QueryNewPaletteEventPtr +wxNavigationKeyEvent = wx._core.NavigationKeyEvent +wxNavigationKeyEventPtr = wx._core.NavigationKeyEventPtr +wxWindowCreateEvent = wx._core.WindowCreateEvent +wxWindowCreateEventPtr = wx._core.WindowCreateEventPtr +wxWindowDestroyEvent = wx._core.WindowDestroyEvent +wxWindowDestroyEventPtr = wx._core.WindowDestroyEventPtr +wxContextMenuEvent = wx._core.ContextMenuEvent +wxContextMenuEventPtr = wx._core.ContextMenuEventPtr +wxIDLE_PROCESS_ALL = wx._core.IDLE_PROCESS_ALL +wxIDLE_PROCESS_SPECIFIED = wx._core.IDLE_PROCESS_SPECIFIED +wxIdleEvent = wx._core.IdleEvent +wxIdleEventPtr = wx._core.IdleEventPtr +wxIdleEvent_SetMode = wx._core.IdleEvent_SetMode +wxIdleEvent_GetMode = wx._core.IdleEvent_GetMode +wxIdleEvent_CanSend = wx._core.IdleEvent_CanSend +wxPyEvent = wx._core.PyEvent +wxPyEventPtr = wx._core.PyEventPtr +wxPyCommandEvent = wx._core.PyCommandEvent +wxPyCommandEventPtr = wx._core.PyCommandEventPtr +wxPYAPP_ASSERT_SUPPRESS = wx._core.PYAPP_ASSERT_SUPPRESS +wxPYAPP_ASSERT_EXCEPTION = wx._core.PYAPP_ASSERT_EXCEPTION +wxPYAPP_ASSERT_DIALOG = wx._core.PYAPP_ASSERT_DIALOG +wxPYAPP_ASSERT_LOG = wx._core.PYAPP_ASSERT_LOG +wxPRINT_WINDOWS = wx._core.PRINT_WINDOWS +wxPRINT_POSTSCRIPT = wx._core.PRINT_POSTSCRIPT +wxPyApp = wx._core.PyApp +wxPyAppPtr = wx._core.PyAppPtr +wxPyApp_GetMacSupportPCMenuShortcuts = wx._core.PyApp_GetMacSupportPCMenuShortcuts +wxPyApp_GetMacAboutMenuItemId = wx._core.PyApp_GetMacAboutMenuItemId +wxPyApp_GetMacPreferencesMenuItemId = wx._core.PyApp_GetMacPreferencesMenuItemId +wxPyApp_GetMacExitMenuItemId = wx._core.PyApp_GetMacExitMenuItemId +wxPyApp_GetMacHelpMenuTitleName = wx._core.PyApp_GetMacHelpMenuTitleName +wxPyApp_SetMacSupportPCMenuShortcuts = wx._core.PyApp_SetMacSupportPCMenuShortcuts +wxPyApp_SetMacAboutMenuItemId = wx._core.PyApp_SetMacAboutMenuItemId +wxPyApp_SetMacPreferencesMenuItemId = wx._core.PyApp_SetMacPreferencesMenuItemId +wxPyApp_SetMacExitMenuItemId = wx._core.PyApp_SetMacExitMenuItemId +wxPyApp_SetMacHelpMenuTitleName = wx._core.PyApp_SetMacHelpMenuTitleName +wxPyApp_GetComCtl32Version = wx._core.PyApp_GetComCtl32Version +wxExit = wx._core.Exit +wxYield = wx._core.Yield +wxYieldIfNeeded = wx._core.YieldIfNeeded +wxSafeYield = wx._core.SafeYield +wxWakeUpIdle = wx._core.WakeUpIdle +wxPostEvent = wx._core.PostEvent +wxApp_CleanUp = wx._core.App_CleanUp +wxGetApp = wx._core.GetApp +wxAcceleratorEntry = wx._core.AcceleratorEntry +wxAcceleratorEntryPtr = wx._core.AcceleratorEntryPtr +wxAcceleratorTable = wx._core.AcceleratorTable +wxAcceleratorTablePtr = wx._core.AcceleratorTablePtr +wxNullAcceleratorTable = wx._core.NullAcceleratorTable +wxGetAccelFromString = wx._core.GetAccelFromString +wxPanelNameStr = wx._core.PanelNameStr +wxVisualAttributes = wx._core.VisualAttributes +wxVisualAttributesPtr = wx._core.VisualAttributesPtr +wxWINDOW_VARIANT_NORMAL = wx._core.WINDOW_VARIANT_NORMAL +wxWINDOW_VARIANT_SMALL = wx._core.WINDOW_VARIANT_SMALL +wxWINDOW_VARIANT_MINI = wx._core.WINDOW_VARIANT_MINI +wxWINDOW_VARIANT_LARGE = wx._core.WINDOW_VARIANT_LARGE +wxWINDOW_VARIANT_MAX = wx._core.WINDOW_VARIANT_MAX +wxWindow = wx._core.Window +wxWindowPtr = wx._core.WindowPtr +wxPreWindow = wx._core.PreWindow +wxWindow_NewControlId = wx._core.Window_NewControlId +wxWindow_NextControlId = wx._core.Window_NextControlId +wxWindow_PrevControlId = wx._core.Window_PrevControlId +wxWindow_FindFocus = wx._core.Window_FindFocus +wxWindow_GetCapture = wx._core.Window_GetCapture +wxWindow_GetClassDefaultAttributes = wx._core.Window_GetClassDefaultAttributes +wxFindWindowById = wx._core.FindWindowById +wxFindWindowByName = wx._core.FindWindowByName +wxFindWindowByLabel = wx._core.FindWindowByLabel +wxWindow_FromHWND = wx._core.Window_FromHWND +wxValidator = wx._core.Validator +wxValidatorPtr = wx._core.ValidatorPtr +wxValidator_IsSilent = wx._core.Validator_IsSilent +wxValidator_SetBellOnError = wx._core.Validator_SetBellOnError +wxPyValidator = wx._core.PyValidator +wxPyValidatorPtr = wx._core.PyValidatorPtr +wxDefaultValidator = wx._core.DefaultValidator +wxMenu = wx._core.Menu +wxMenuPtr = wx._core.MenuPtr +wxMenuBar = wx._core.MenuBar +wxMenuBarPtr = wx._core.MenuBarPtr +wxMenuItem = wx._core.MenuItem +wxMenuItemPtr = wx._core.MenuItemPtr +wxMenuItem_GetLabelFromText = wx._core.MenuItem_GetLabelFromText +wxMenuItem_GetDefaultMarginWidth = wx._core.MenuItem_GetDefaultMarginWidth +wxControlNameStr = wx._core.ControlNameStr +wxControl = wx._core.Control +wxControlPtr = wx._core.ControlPtr +wxPreControl = wx._core.PreControl +wxControl_GetClassDefaultAttributes = wx._core.Control_GetClassDefaultAttributes +wxItemContainer = wx._core.ItemContainer +wxItemContainerPtr = wx._core.ItemContainerPtr +wxControlWithItems = wx._core.ControlWithItems +wxControlWithItemsPtr = wx._core.ControlWithItemsPtr +wxSizerItem = wx._core.SizerItem +wxSizerItemPtr = wx._core.SizerItemPtr +wxSizerItemSpacer = wx._core.SizerItemSpacer +wxSizerItemWindow = wx._core.SizerItemWindow +wxSizerItemSizer = wx._core.SizerItemSizer +wxSizer = wx._core.Sizer +wxSizerPtr = wx._core.SizerPtr +wxPySizer = wx._core.PySizer +wxPySizerPtr = wx._core.PySizerPtr +wxBoxSizer = wx._core.BoxSizer +wxBoxSizerPtr = wx._core.BoxSizerPtr +wxStaticBoxSizer = wx._core.StaticBoxSizer +wxStaticBoxSizerPtr = wx._core.StaticBoxSizerPtr +wxGridSizer = wx._core.GridSizer +wxGridSizerPtr = wx._core.GridSizerPtr +wxFLEX_GROWMODE_NONE = wx._core.FLEX_GROWMODE_NONE +wxFLEX_GROWMODE_SPECIFIED = wx._core.FLEX_GROWMODE_SPECIFIED +wxFLEX_GROWMODE_ALL = wx._core.FLEX_GROWMODE_ALL +wxFlexGridSizer = wx._core.FlexGridSizer +wxFlexGridSizerPtr = wx._core.FlexGridSizerPtr +wxGBPosition = wx._core.GBPosition +wxGBPositionPtr = wx._core.GBPositionPtr +wxGBSpan = wx._core.GBSpan +wxGBSpanPtr = wx._core.GBSpanPtr +wxDefaultSpan = wx._core.DefaultSpan +wxGBSizerItem = wx._core.GBSizerItem +wxGBSizerItemPtr = wx._core.GBSizerItemPtr +wxGBSizerItemWindow = wx._core.GBSizerItemWindow +wxGBSizerItemSizer = wx._core.GBSizerItemSizer +wxGBSizerItemSpacer = wx._core.GBSizerItemSpacer +wxGridBagSizer = wx._core.GridBagSizer +wxGridBagSizerPtr = wx._core.GridBagSizerPtr +wxLeft = wx._core.Left +wxTop = wx._core.Top +wxRight = wx._core.Right +wxBottom = wx._core.Bottom +wxWidth = wx._core.Width +wxHeight = wx._core.Height +wxCentre = wx._core.Centre +wxCenter = wx._core.Center +wxCentreX = wx._core.CentreX +wxCentreY = wx._core.CentreY +wxUnconstrained = wx._core.Unconstrained +wxAsIs = wx._core.AsIs +wxPercentOf = wx._core.PercentOf +wxAbove = wx._core.Above +wxBelow = wx._core.Below +wxLeftOf = wx._core.LeftOf +wxRightOf = wx._core.RightOf +wxSameAs = wx._core.SameAs +wxAbsolute = wx._core.Absolute +wxIndividualLayoutConstraint = wx._core.IndividualLayoutConstraint +wxIndividualLayoutConstraintPtr = wx._core.IndividualLayoutConstraintPtr +wxLayoutConstraints = wx._core.LayoutConstraints +wxLayoutConstraintsPtr = wx._core.LayoutConstraintsPtr +wxPyOnDemandOutputWindow = wx._core.PyOnDemandOutputWindow +wxApp = wx._core.App +wxPySimpleApp = wx._core.PySimpleApp +wxPyWidgetTester = wx._core.PyWidgetTester +wxApp_GetMacSupportPCMenuShortcuts = wx._core.App_GetMacSupportPCMenuShortcuts +wxApp_GetMacAboutMenuItemId = wx._core.App_GetMacAboutMenuItemId +wxApp_GetMacPreferencesMenuItemId = wx._core.App_GetMacPreferencesMenuItemId +wxApp_GetMacExitMenuItemId = wx._core.App_GetMacExitMenuItemId +wxApp_GetMacHelpMenuTitleName = wx._core.App_GetMacHelpMenuTitleName +wxApp_SetMacSupportPCMenuShortcuts = wx._core.App_SetMacSupportPCMenuShortcuts +wxApp_SetMacAboutMenuItemId = wx._core.App_SetMacAboutMenuItemId +wxApp_SetMacPreferencesMenuItemId = wx._core.App_SetMacPreferencesMenuItemId +wxApp_SetMacExitMenuItemId = wx._core.App_SetMacExitMenuItemId +wxApp_SetMacHelpMenuTitleName = wx._core.App_SetMacHelpMenuTitleName +wxApp_GetComCtl32Version = wx._core.App_GetComCtl32Version +wxPlatform = wx._core.Platform +wxUSE_UNICODE = wx._core.USE_UNICODE +wxVERSION_STRING = wx._core.VERSION_STRING +wxMAJOR_VERSION = wx._core.MAJOR_VERSION +wxMINOR_VERSION = wx._core.MINOR_VERSION +wxRELEASE_VERSION = wx._core.RELEASE_VERSION +wxSUBREL_VERSION = wx._core.SUBREL_VERSION +wxVERSION = wx._core.VERSION +wxRELEASE_NUMBER = wx._core.RELEASE_NUMBER +wxPyUnbornObjectError = wx._core.PyUnbornObjectError +wxPyDeadObjectError = wx._core.PyDeadObjectError +wxCallAfter = wx._core.CallAfter +wxFutureCall = wx._core.FutureCall +wxNotebookPage = wx._core.NotebookPage +wxPyEventBinder = wx._core.PyEventBinder +wxDLG_PNT = wx._core.DLG_PNT +wxDLG_SZE = wx._core.DLG_SZE +wxPyAssertionError = wx._core.PyAssertionError +wxMemoryFSHandler_AddFile = wx._core.MemoryFSHandler_AddFile + + +d = globals() +for k, v in wx._core.__dict__.iteritems(): + if k.startswith('EVT'): + d[k] = v + elif k.startswith('WXK'): + d[k] = v + elif k.startswith('__version__'): + d[k] = v +del d, k, v + + + diff --git a/wxPython/wxPython/_gdi.py b/wxPython/wxPython/_gdi.py new file mode 100644 index 0000000000..713d1816cc --- /dev/null +++ b/wxPython/wxPython/_gdi.py @@ -0,0 +1,595 @@ +## This file reverse renames symbols in the wx package to give +## them their wx prefix again, for backwards compatibility. +## +## Generated by ./distrib/build_renamers.py + +# This silly stuff here is so the wxPython.wx module doesn't conflict +# with the wx package. We need to import modules from the wx package +# here, then we'll put the wxPython.wx entry back in sys.modules. +import sys +_wx = None +if sys.modules.has_key('wxPython.wx'): + _wx = sys.modules['wxPython.wx'] + del sys.modules['wxPython.wx'] + +import wx._gdi + +sys.modules['wxPython.wx'] = _wx +del sys, _wx + + +# Now assign all the reverse-renamed names: +wxGDIObject = wx._gdi.GDIObject +wxGDIObjectPtr = wx._gdi.GDIObjectPtr +wxColour = wx._gdi.Colour +wxColourPtr = wx._gdi.ColourPtr +wxNamedColour = wx._gdi.NamedColour +wxColourRGB = wx._gdi.ColourRGB +wxPalette = wx._gdi.Palette +wxPalettePtr = wx._gdi.PalettePtr +wxPen = wx._gdi.Pen +wxPenPtr = wx._gdi.PenPtr +wxPyPen = wx._gdi.PyPen +wxPyPenPtr = wx._gdi.PyPenPtr +wxBrush = wx._gdi.Brush +wxBrushPtr = wx._gdi.BrushPtr +wxBitmap = wx._gdi.Bitmap +wxBitmapPtr = wx._gdi.BitmapPtr +wxBitmapFromIcon = wx._gdi.BitmapFromIcon +wxBitmapFromImage = wx._gdi.BitmapFromImage +wxBitmapFromXPMData = wx._gdi.BitmapFromXPMData +wxBitmapFromBits = wx._gdi.BitmapFromBits +wxEmptyBitmap = wx._gdi.EmptyBitmap +wxEmptyBitmap = wx._gdi.EmptyBitmap +wxMask = wx._gdi.Mask +wxMaskPtr = wx._gdi.MaskPtr +wxIcon = wx._gdi.Icon +wxIconPtr = wx._gdi.IconPtr +wxEmptyIcon = wx._gdi.EmptyIcon +wxIconFromLocation = wx._gdi.IconFromLocation +wxIconFromBitmap = wx._gdi.IconFromBitmap +wxIconFromXPMData = wx._gdi.IconFromXPMData +wxIconLocation = wx._gdi.IconLocation +wxIconLocationPtr = wx._gdi.IconLocationPtr +wxIconBundle = wx._gdi.IconBundle +wxIconBundlePtr = wx._gdi.IconBundlePtr +wxIconBundleFromFile = wx._gdi.IconBundleFromFile +wxIconBundleFromIcon = wx._gdi.IconBundleFromIcon +wxCursor = wx._gdi.Cursor +wxCursorPtr = wx._gdi.CursorPtr +wxStockCursor = wx._gdi.StockCursor +wxCursorFromImage = wx._gdi.CursorFromImage +wxOutRegion = wx._gdi.OutRegion +wxPartRegion = wx._gdi.PartRegion +wxInRegion = wx._gdi.InRegion +wxRegion = wx._gdi.Region +wxRegionPtr = wx._gdi.RegionPtr +wxRegionFromBitmap = wx._gdi.RegionFromBitmap +wxRegionFromPoints = wx._gdi.RegionFromPoints +wxRegionIterator = wx._gdi.RegionIterator +wxRegionIteratorPtr = wx._gdi.RegionIteratorPtr +wxFONTFAMILY_DEFAULT = wx._gdi.FONTFAMILY_DEFAULT +wxFONTFAMILY_DECORATIVE = wx._gdi.FONTFAMILY_DECORATIVE +wxFONTFAMILY_ROMAN = wx._gdi.FONTFAMILY_ROMAN +wxFONTFAMILY_SCRIPT = wx._gdi.FONTFAMILY_SCRIPT +wxFONTFAMILY_SWISS = wx._gdi.FONTFAMILY_SWISS +wxFONTFAMILY_MODERN = wx._gdi.FONTFAMILY_MODERN +wxFONTFAMILY_TELETYPE = wx._gdi.FONTFAMILY_TELETYPE +wxFONTFAMILY_MAX = wx._gdi.FONTFAMILY_MAX +wxFONTFAMILY_UNKNOWN = wx._gdi.FONTFAMILY_UNKNOWN +wxFONTSTYLE_NORMAL = wx._gdi.FONTSTYLE_NORMAL +wxFONTSTYLE_ITALIC = wx._gdi.FONTSTYLE_ITALIC +wxFONTSTYLE_SLANT = wx._gdi.FONTSTYLE_SLANT +wxFONTSTYLE_MAX = wx._gdi.FONTSTYLE_MAX +wxFONTWEIGHT_NORMAL = wx._gdi.FONTWEIGHT_NORMAL +wxFONTWEIGHT_LIGHT = wx._gdi.FONTWEIGHT_LIGHT +wxFONTWEIGHT_BOLD = wx._gdi.FONTWEIGHT_BOLD +wxFONTWEIGHT_MAX = wx._gdi.FONTWEIGHT_MAX +wxFONTFLAG_DEFAULT = wx._gdi.FONTFLAG_DEFAULT +wxFONTFLAG_ITALIC = wx._gdi.FONTFLAG_ITALIC +wxFONTFLAG_SLANT = wx._gdi.FONTFLAG_SLANT +wxFONTFLAG_LIGHT = wx._gdi.FONTFLAG_LIGHT +wxFONTFLAG_BOLD = wx._gdi.FONTFLAG_BOLD +wxFONTFLAG_ANTIALIASED = wx._gdi.FONTFLAG_ANTIALIASED +wxFONTFLAG_NOT_ANTIALIASED = wx._gdi.FONTFLAG_NOT_ANTIALIASED +wxFONTFLAG_UNDERLINED = wx._gdi.FONTFLAG_UNDERLINED +wxFONTFLAG_STRIKETHROUGH = wx._gdi.FONTFLAG_STRIKETHROUGH +wxFONTFLAG_MASK = wx._gdi.FONTFLAG_MASK +wxFONTENCODING_SYSTEM = wx._gdi.FONTENCODING_SYSTEM +wxFONTENCODING_DEFAULT = wx._gdi.FONTENCODING_DEFAULT +wxFONTENCODING_ISO8859_1 = wx._gdi.FONTENCODING_ISO8859_1 +wxFONTENCODING_ISO8859_2 = wx._gdi.FONTENCODING_ISO8859_2 +wxFONTENCODING_ISO8859_3 = wx._gdi.FONTENCODING_ISO8859_3 +wxFONTENCODING_ISO8859_4 = wx._gdi.FONTENCODING_ISO8859_4 +wxFONTENCODING_ISO8859_5 = wx._gdi.FONTENCODING_ISO8859_5 +wxFONTENCODING_ISO8859_6 = wx._gdi.FONTENCODING_ISO8859_6 +wxFONTENCODING_ISO8859_7 = wx._gdi.FONTENCODING_ISO8859_7 +wxFONTENCODING_ISO8859_8 = wx._gdi.FONTENCODING_ISO8859_8 +wxFONTENCODING_ISO8859_9 = wx._gdi.FONTENCODING_ISO8859_9 +wxFONTENCODING_ISO8859_10 = wx._gdi.FONTENCODING_ISO8859_10 +wxFONTENCODING_ISO8859_11 = wx._gdi.FONTENCODING_ISO8859_11 +wxFONTENCODING_ISO8859_12 = wx._gdi.FONTENCODING_ISO8859_12 +wxFONTENCODING_ISO8859_13 = wx._gdi.FONTENCODING_ISO8859_13 +wxFONTENCODING_ISO8859_14 = wx._gdi.FONTENCODING_ISO8859_14 +wxFONTENCODING_ISO8859_15 = wx._gdi.FONTENCODING_ISO8859_15 +wxFONTENCODING_ISO8859_MAX = wx._gdi.FONTENCODING_ISO8859_MAX +wxFONTENCODING_KOI8 = wx._gdi.FONTENCODING_KOI8 +wxFONTENCODING_KOI8_U = wx._gdi.FONTENCODING_KOI8_U +wxFONTENCODING_ALTERNATIVE = wx._gdi.FONTENCODING_ALTERNATIVE +wxFONTENCODING_BULGARIAN = wx._gdi.FONTENCODING_BULGARIAN +wxFONTENCODING_CP437 = wx._gdi.FONTENCODING_CP437 +wxFONTENCODING_CP850 = wx._gdi.FONTENCODING_CP850 +wxFONTENCODING_CP852 = wx._gdi.FONTENCODING_CP852 +wxFONTENCODING_CP855 = wx._gdi.FONTENCODING_CP855 +wxFONTENCODING_CP866 = wx._gdi.FONTENCODING_CP866 +wxFONTENCODING_CP874 = wx._gdi.FONTENCODING_CP874 +wxFONTENCODING_CP932 = wx._gdi.FONTENCODING_CP932 +wxFONTENCODING_CP936 = wx._gdi.FONTENCODING_CP936 +wxFONTENCODING_CP949 = wx._gdi.FONTENCODING_CP949 +wxFONTENCODING_CP950 = wx._gdi.FONTENCODING_CP950 +wxFONTENCODING_CP1250 = wx._gdi.FONTENCODING_CP1250 +wxFONTENCODING_CP1251 = wx._gdi.FONTENCODING_CP1251 +wxFONTENCODING_CP1252 = wx._gdi.FONTENCODING_CP1252 +wxFONTENCODING_CP1253 = wx._gdi.FONTENCODING_CP1253 +wxFONTENCODING_CP1254 = wx._gdi.FONTENCODING_CP1254 +wxFONTENCODING_CP1255 = wx._gdi.FONTENCODING_CP1255 +wxFONTENCODING_CP1256 = wx._gdi.FONTENCODING_CP1256 +wxFONTENCODING_CP1257 = wx._gdi.FONTENCODING_CP1257 +wxFONTENCODING_CP12_MAX = wx._gdi.FONTENCODING_CP12_MAX +wxFONTENCODING_UTF7 = wx._gdi.FONTENCODING_UTF7 +wxFONTENCODING_UTF8 = wx._gdi.FONTENCODING_UTF8 +wxFONTENCODING_EUC_JP = wx._gdi.FONTENCODING_EUC_JP +wxFONTENCODING_UTF16BE = wx._gdi.FONTENCODING_UTF16BE +wxFONTENCODING_UTF16LE = wx._gdi.FONTENCODING_UTF16LE +wxFONTENCODING_UTF32BE = wx._gdi.FONTENCODING_UTF32BE +wxFONTENCODING_UTF32LE = wx._gdi.FONTENCODING_UTF32LE +wxFONTENCODING_MACROMAN = wx._gdi.FONTENCODING_MACROMAN +wxFONTENCODING_MACJAPANESE = wx._gdi.FONTENCODING_MACJAPANESE +wxFONTENCODING_MACCHINESETRAD = wx._gdi.FONTENCODING_MACCHINESETRAD +wxFONTENCODING_MACKOREAN = wx._gdi.FONTENCODING_MACKOREAN +wxFONTENCODING_MACARABIC = wx._gdi.FONTENCODING_MACARABIC +wxFONTENCODING_MACHEBREW = wx._gdi.FONTENCODING_MACHEBREW +wxFONTENCODING_MACGREEK = wx._gdi.FONTENCODING_MACGREEK +wxFONTENCODING_MACCYRILLIC = wx._gdi.FONTENCODING_MACCYRILLIC +wxFONTENCODING_MACDEVANAGARI = wx._gdi.FONTENCODING_MACDEVANAGARI +wxFONTENCODING_MACGURMUKHI = wx._gdi.FONTENCODING_MACGURMUKHI +wxFONTENCODING_MACGUJARATI = wx._gdi.FONTENCODING_MACGUJARATI +wxFONTENCODING_MACORIYA = wx._gdi.FONTENCODING_MACORIYA +wxFONTENCODING_MACBENGALI = wx._gdi.FONTENCODING_MACBENGALI +wxFONTENCODING_MACTAMIL = wx._gdi.FONTENCODING_MACTAMIL +wxFONTENCODING_MACTELUGU = wx._gdi.FONTENCODING_MACTELUGU +wxFONTENCODING_MACKANNADA = wx._gdi.FONTENCODING_MACKANNADA +wxFONTENCODING_MACMALAJALAM = wx._gdi.FONTENCODING_MACMALAJALAM +wxFONTENCODING_MACSINHALESE = wx._gdi.FONTENCODING_MACSINHALESE +wxFONTENCODING_MACBURMESE = wx._gdi.FONTENCODING_MACBURMESE +wxFONTENCODING_MACKHMER = wx._gdi.FONTENCODING_MACKHMER +wxFONTENCODING_MACTHAI = wx._gdi.FONTENCODING_MACTHAI +wxFONTENCODING_MACLAOTIAN = wx._gdi.FONTENCODING_MACLAOTIAN +wxFONTENCODING_MACGEORGIAN = wx._gdi.FONTENCODING_MACGEORGIAN +wxFONTENCODING_MACARMENIAN = wx._gdi.FONTENCODING_MACARMENIAN +wxFONTENCODING_MACCHINESESIMP = wx._gdi.FONTENCODING_MACCHINESESIMP +wxFONTENCODING_MACTIBETAN = wx._gdi.FONTENCODING_MACTIBETAN +wxFONTENCODING_MACMONGOLIAN = wx._gdi.FONTENCODING_MACMONGOLIAN +wxFONTENCODING_MACETHIOPIC = wx._gdi.FONTENCODING_MACETHIOPIC +wxFONTENCODING_MACCENTRALEUR = wx._gdi.FONTENCODING_MACCENTRALEUR +wxFONTENCODING_MACVIATNAMESE = wx._gdi.FONTENCODING_MACVIATNAMESE +wxFONTENCODING_MACARABICEXT = wx._gdi.FONTENCODING_MACARABICEXT +wxFONTENCODING_MACSYMBOL = wx._gdi.FONTENCODING_MACSYMBOL +wxFONTENCODING_MACDINGBATS = wx._gdi.FONTENCODING_MACDINGBATS +wxFONTENCODING_MACTURKISH = wx._gdi.FONTENCODING_MACTURKISH +wxFONTENCODING_MACCROATIAN = wx._gdi.FONTENCODING_MACCROATIAN +wxFONTENCODING_MACICELANDIC = wx._gdi.FONTENCODING_MACICELANDIC +wxFONTENCODING_MACROMANIAN = wx._gdi.FONTENCODING_MACROMANIAN +wxFONTENCODING_MACCELTIC = wx._gdi.FONTENCODING_MACCELTIC +wxFONTENCODING_MACGAELIC = wx._gdi.FONTENCODING_MACGAELIC +wxFONTENCODING_MACKEYBOARD = wx._gdi.FONTENCODING_MACKEYBOARD +wxFONTENCODING_MACMIN = wx._gdi.FONTENCODING_MACMIN +wxFONTENCODING_MACMAX = wx._gdi.FONTENCODING_MACMAX +wxFONTENCODING_MAX = wx._gdi.FONTENCODING_MAX +wxFONTENCODING_UTF16 = wx._gdi.FONTENCODING_UTF16 +wxFONTENCODING_UTF32 = wx._gdi.FONTENCODING_UTF32 +wxFONTENCODING_UNICODE = wx._gdi.FONTENCODING_UNICODE +wxFONTENCODING_GB2312 = wx._gdi.FONTENCODING_GB2312 +wxFONTENCODING_BIG5 = wx._gdi.FONTENCODING_BIG5 +wxFONTENCODING_SHIFT_JIS = wx._gdi.FONTENCODING_SHIFT_JIS +wxNativeFontInfo = wx._gdi.NativeFontInfo +wxNativeFontInfoPtr = wx._gdi.NativeFontInfoPtr +wxNativeEncodingInfo = wx._gdi.NativeEncodingInfo +wxNativeEncodingInfoPtr = wx._gdi.NativeEncodingInfoPtr +wxGetNativeFontEncoding = wx._gdi.GetNativeFontEncoding +wxTestFontEncoding = wx._gdi.TestFontEncoding +wxFontMapper = wx._gdi.FontMapper +wxFontMapperPtr = wx._gdi.FontMapperPtr +wxFontMapper_Get = wx._gdi.FontMapper_Get +wxFontMapper_Set = wx._gdi.FontMapper_Set +wxFontMapper_GetSupportedEncodingsCount = wx._gdi.FontMapper_GetSupportedEncodingsCount +wxFontMapper_GetEncoding = wx._gdi.FontMapper_GetEncoding +wxFontMapper_GetEncodingName = wx._gdi.FontMapper_GetEncodingName +wxFontMapper_GetEncodingDescription = wx._gdi.FontMapper_GetEncodingDescription +wxFontMapper_GetEncodingFromName = wx._gdi.FontMapper_GetEncodingFromName +wxFontMapper_GetDefaultConfigPath = wx._gdi.FontMapper_GetDefaultConfigPath +wxFont = wx._gdi.Font +wxFontPtr = wx._gdi.FontPtr +wxFontFromNativeInfo = wx._gdi.FontFromNativeInfo +wxFontFromNativeInfoString = wx._gdi.FontFromNativeInfoString +wxFont2 = wx._gdi.Font2 +wxFont_GetDefaultEncoding = wx._gdi.Font_GetDefaultEncoding +wxFont_SetDefaultEncoding = wx._gdi.Font_SetDefaultEncoding +wxFontEnumerator = wx._gdi.FontEnumerator +wxFontEnumeratorPtr = wx._gdi.FontEnumeratorPtr +wxLANGUAGE_DEFAULT = wx._gdi.LANGUAGE_DEFAULT +wxLANGUAGE_UNKNOWN = wx._gdi.LANGUAGE_UNKNOWN +wxLANGUAGE_ABKHAZIAN = wx._gdi.LANGUAGE_ABKHAZIAN +wxLANGUAGE_AFAR = wx._gdi.LANGUAGE_AFAR +wxLANGUAGE_AFRIKAANS = wx._gdi.LANGUAGE_AFRIKAANS +wxLANGUAGE_ALBANIAN = wx._gdi.LANGUAGE_ALBANIAN +wxLANGUAGE_AMHARIC = wx._gdi.LANGUAGE_AMHARIC +wxLANGUAGE_ARABIC = wx._gdi.LANGUAGE_ARABIC +wxLANGUAGE_ARABIC_ALGERIA = wx._gdi.LANGUAGE_ARABIC_ALGERIA +wxLANGUAGE_ARABIC_BAHRAIN = wx._gdi.LANGUAGE_ARABIC_BAHRAIN +wxLANGUAGE_ARABIC_EGYPT = wx._gdi.LANGUAGE_ARABIC_EGYPT +wxLANGUAGE_ARABIC_IRAQ = wx._gdi.LANGUAGE_ARABIC_IRAQ +wxLANGUAGE_ARABIC_JORDAN = wx._gdi.LANGUAGE_ARABIC_JORDAN +wxLANGUAGE_ARABIC_KUWAIT = wx._gdi.LANGUAGE_ARABIC_KUWAIT +wxLANGUAGE_ARABIC_LEBANON = wx._gdi.LANGUAGE_ARABIC_LEBANON +wxLANGUAGE_ARABIC_LIBYA = wx._gdi.LANGUAGE_ARABIC_LIBYA +wxLANGUAGE_ARABIC_MOROCCO = wx._gdi.LANGUAGE_ARABIC_MOROCCO +wxLANGUAGE_ARABIC_OMAN = wx._gdi.LANGUAGE_ARABIC_OMAN +wxLANGUAGE_ARABIC_QATAR = wx._gdi.LANGUAGE_ARABIC_QATAR +wxLANGUAGE_ARABIC_SAUDI_ARABIA = wx._gdi.LANGUAGE_ARABIC_SAUDI_ARABIA +wxLANGUAGE_ARABIC_SUDAN = wx._gdi.LANGUAGE_ARABIC_SUDAN +wxLANGUAGE_ARABIC_SYRIA = wx._gdi.LANGUAGE_ARABIC_SYRIA +wxLANGUAGE_ARABIC_TUNISIA = wx._gdi.LANGUAGE_ARABIC_TUNISIA +wxLANGUAGE_ARABIC_UAE = wx._gdi.LANGUAGE_ARABIC_UAE +wxLANGUAGE_ARABIC_YEMEN = wx._gdi.LANGUAGE_ARABIC_YEMEN +wxLANGUAGE_ARMENIAN = wx._gdi.LANGUAGE_ARMENIAN +wxLANGUAGE_ASSAMESE = wx._gdi.LANGUAGE_ASSAMESE +wxLANGUAGE_AYMARA = wx._gdi.LANGUAGE_AYMARA +wxLANGUAGE_AZERI = wx._gdi.LANGUAGE_AZERI +wxLANGUAGE_AZERI_CYRILLIC = wx._gdi.LANGUAGE_AZERI_CYRILLIC +wxLANGUAGE_AZERI_LATIN = wx._gdi.LANGUAGE_AZERI_LATIN +wxLANGUAGE_BASHKIR = wx._gdi.LANGUAGE_BASHKIR +wxLANGUAGE_BASQUE = wx._gdi.LANGUAGE_BASQUE +wxLANGUAGE_BELARUSIAN = wx._gdi.LANGUAGE_BELARUSIAN +wxLANGUAGE_BENGALI = wx._gdi.LANGUAGE_BENGALI +wxLANGUAGE_BHUTANI = wx._gdi.LANGUAGE_BHUTANI +wxLANGUAGE_BIHARI = wx._gdi.LANGUAGE_BIHARI +wxLANGUAGE_BISLAMA = wx._gdi.LANGUAGE_BISLAMA +wxLANGUAGE_BRETON = wx._gdi.LANGUAGE_BRETON +wxLANGUAGE_BULGARIAN = wx._gdi.LANGUAGE_BULGARIAN +wxLANGUAGE_BURMESE = wx._gdi.LANGUAGE_BURMESE +wxLANGUAGE_CAMBODIAN = wx._gdi.LANGUAGE_CAMBODIAN +wxLANGUAGE_CATALAN = wx._gdi.LANGUAGE_CATALAN +wxLANGUAGE_CHINESE = wx._gdi.LANGUAGE_CHINESE +wxLANGUAGE_CHINESE_SIMPLIFIED = wx._gdi.LANGUAGE_CHINESE_SIMPLIFIED +wxLANGUAGE_CHINESE_TRADITIONAL = wx._gdi.LANGUAGE_CHINESE_TRADITIONAL +wxLANGUAGE_CHINESE_HONGKONG = wx._gdi.LANGUAGE_CHINESE_HONGKONG +wxLANGUAGE_CHINESE_MACAU = wx._gdi.LANGUAGE_CHINESE_MACAU +wxLANGUAGE_CHINESE_SINGAPORE = wx._gdi.LANGUAGE_CHINESE_SINGAPORE +wxLANGUAGE_CHINESE_TAIWAN = wx._gdi.LANGUAGE_CHINESE_TAIWAN +wxLANGUAGE_CORSICAN = wx._gdi.LANGUAGE_CORSICAN +wxLANGUAGE_CROATIAN = wx._gdi.LANGUAGE_CROATIAN +wxLANGUAGE_CZECH = wx._gdi.LANGUAGE_CZECH +wxLANGUAGE_DANISH = wx._gdi.LANGUAGE_DANISH +wxLANGUAGE_DUTCH = wx._gdi.LANGUAGE_DUTCH +wxLANGUAGE_DUTCH_BELGIAN = wx._gdi.LANGUAGE_DUTCH_BELGIAN +wxLANGUAGE_ENGLISH = wx._gdi.LANGUAGE_ENGLISH +wxLANGUAGE_ENGLISH_UK = wx._gdi.LANGUAGE_ENGLISH_UK +wxLANGUAGE_ENGLISH_US = wx._gdi.LANGUAGE_ENGLISH_US +wxLANGUAGE_ENGLISH_AUSTRALIA = wx._gdi.LANGUAGE_ENGLISH_AUSTRALIA +wxLANGUAGE_ENGLISH_BELIZE = wx._gdi.LANGUAGE_ENGLISH_BELIZE +wxLANGUAGE_ENGLISH_BOTSWANA = wx._gdi.LANGUAGE_ENGLISH_BOTSWANA +wxLANGUAGE_ENGLISH_CANADA = wx._gdi.LANGUAGE_ENGLISH_CANADA +wxLANGUAGE_ENGLISH_CARIBBEAN = wx._gdi.LANGUAGE_ENGLISH_CARIBBEAN +wxLANGUAGE_ENGLISH_DENMARK = wx._gdi.LANGUAGE_ENGLISH_DENMARK +wxLANGUAGE_ENGLISH_EIRE = wx._gdi.LANGUAGE_ENGLISH_EIRE +wxLANGUAGE_ENGLISH_JAMAICA = wx._gdi.LANGUAGE_ENGLISH_JAMAICA +wxLANGUAGE_ENGLISH_NEW_ZEALAND = wx._gdi.LANGUAGE_ENGLISH_NEW_ZEALAND +wxLANGUAGE_ENGLISH_PHILIPPINES = wx._gdi.LANGUAGE_ENGLISH_PHILIPPINES +wxLANGUAGE_ENGLISH_SOUTH_AFRICA = wx._gdi.LANGUAGE_ENGLISH_SOUTH_AFRICA +wxLANGUAGE_ENGLISH_TRINIDAD = wx._gdi.LANGUAGE_ENGLISH_TRINIDAD +wxLANGUAGE_ENGLISH_ZIMBABWE = wx._gdi.LANGUAGE_ENGLISH_ZIMBABWE +wxLANGUAGE_ESPERANTO = wx._gdi.LANGUAGE_ESPERANTO +wxLANGUAGE_ESTONIAN = wx._gdi.LANGUAGE_ESTONIAN +wxLANGUAGE_FAEROESE = wx._gdi.LANGUAGE_FAEROESE +wxLANGUAGE_FARSI = wx._gdi.LANGUAGE_FARSI +wxLANGUAGE_FIJI = wx._gdi.LANGUAGE_FIJI +wxLANGUAGE_FINNISH = wx._gdi.LANGUAGE_FINNISH +wxLANGUAGE_FRENCH = wx._gdi.LANGUAGE_FRENCH +wxLANGUAGE_FRENCH_BELGIAN = wx._gdi.LANGUAGE_FRENCH_BELGIAN +wxLANGUAGE_FRENCH_CANADIAN = wx._gdi.LANGUAGE_FRENCH_CANADIAN +wxLANGUAGE_FRENCH_LUXEMBOURG = wx._gdi.LANGUAGE_FRENCH_LUXEMBOURG +wxLANGUAGE_FRENCH_MONACO = wx._gdi.LANGUAGE_FRENCH_MONACO +wxLANGUAGE_FRENCH_SWISS = wx._gdi.LANGUAGE_FRENCH_SWISS +wxLANGUAGE_FRISIAN = wx._gdi.LANGUAGE_FRISIAN +wxLANGUAGE_GALICIAN = wx._gdi.LANGUAGE_GALICIAN +wxLANGUAGE_GEORGIAN = wx._gdi.LANGUAGE_GEORGIAN +wxLANGUAGE_GERMAN = wx._gdi.LANGUAGE_GERMAN +wxLANGUAGE_GERMAN_AUSTRIAN = wx._gdi.LANGUAGE_GERMAN_AUSTRIAN +wxLANGUAGE_GERMAN_BELGIUM = wx._gdi.LANGUAGE_GERMAN_BELGIUM +wxLANGUAGE_GERMAN_LIECHTENSTEIN = wx._gdi.LANGUAGE_GERMAN_LIECHTENSTEIN +wxLANGUAGE_GERMAN_LUXEMBOURG = wx._gdi.LANGUAGE_GERMAN_LUXEMBOURG +wxLANGUAGE_GERMAN_SWISS = wx._gdi.LANGUAGE_GERMAN_SWISS +wxLANGUAGE_GREEK = wx._gdi.LANGUAGE_GREEK +wxLANGUAGE_GREENLANDIC = wx._gdi.LANGUAGE_GREENLANDIC +wxLANGUAGE_GUARANI = wx._gdi.LANGUAGE_GUARANI +wxLANGUAGE_GUJARATI = wx._gdi.LANGUAGE_GUJARATI +wxLANGUAGE_HAUSA = wx._gdi.LANGUAGE_HAUSA +wxLANGUAGE_HEBREW = wx._gdi.LANGUAGE_HEBREW +wxLANGUAGE_HINDI = wx._gdi.LANGUAGE_HINDI +wxLANGUAGE_HUNGARIAN = wx._gdi.LANGUAGE_HUNGARIAN +wxLANGUAGE_ICELANDIC = wx._gdi.LANGUAGE_ICELANDIC +wxLANGUAGE_INDONESIAN = wx._gdi.LANGUAGE_INDONESIAN +wxLANGUAGE_INTERLINGUA = wx._gdi.LANGUAGE_INTERLINGUA +wxLANGUAGE_INTERLINGUE = wx._gdi.LANGUAGE_INTERLINGUE +wxLANGUAGE_INUKTITUT = wx._gdi.LANGUAGE_INUKTITUT +wxLANGUAGE_INUPIAK = wx._gdi.LANGUAGE_INUPIAK +wxLANGUAGE_IRISH = wx._gdi.LANGUAGE_IRISH +wxLANGUAGE_ITALIAN = wx._gdi.LANGUAGE_ITALIAN +wxLANGUAGE_ITALIAN_SWISS = wx._gdi.LANGUAGE_ITALIAN_SWISS +wxLANGUAGE_JAPANESE = wx._gdi.LANGUAGE_JAPANESE +wxLANGUAGE_JAVANESE = wx._gdi.LANGUAGE_JAVANESE +wxLANGUAGE_KANNADA = wx._gdi.LANGUAGE_KANNADA +wxLANGUAGE_KASHMIRI = wx._gdi.LANGUAGE_KASHMIRI +wxLANGUAGE_KASHMIRI_INDIA = wx._gdi.LANGUAGE_KASHMIRI_INDIA +wxLANGUAGE_KAZAKH = wx._gdi.LANGUAGE_KAZAKH +wxLANGUAGE_KERNEWEK = wx._gdi.LANGUAGE_KERNEWEK +wxLANGUAGE_KINYARWANDA = wx._gdi.LANGUAGE_KINYARWANDA +wxLANGUAGE_KIRGHIZ = wx._gdi.LANGUAGE_KIRGHIZ +wxLANGUAGE_KIRUNDI = wx._gdi.LANGUAGE_KIRUNDI +wxLANGUAGE_KONKANI = wx._gdi.LANGUAGE_KONKANI +wxLANGUAGE_KOREAN = wx._gdi.LANGUAGE_KOREAN +wxLANGUAGE_KURDISH = wx._gdi.LANGUAGE_KURDISH +wxLANGUAGE_LAOTHIAN = wx._gdi.LANGUAGE_LAOTHIAN +wxLANGUAGE_LATIN = wx._gdi.LANGUAGE_LATIN +wxLANGUAGE_LATVIAN = wx._gdi.LANGUAGE_LATVIAN +wxLANGUAGE_LINGALA = wx._gdi.LANGUAGE_LINGALA +wxLANGUAGE_LITHUANIAN = wx._gdi.LANGUAGE_LITHUANIAN +wxLANGUAGE_MACEDONIAN = wx._gdi.LANGUAGE_MACEDONIAN +wxLANGUAGE_MALAGASY = wx._gdi.LANGUAGE_MALAGASY +wxLANGUAGE_MALAY = wx._gdi.LANGUAGE_MALAY +wxLANGUAGE_MALAYALAM = wx._gdi.LANGUAGE_MALAYALAM +wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM = wx._gdi.LANGUAGE_MALAY_BRUNEI_DARUSSALAM +wxLANGUAGE_MALAY_MALAYSIA = wx._gdi.LANGUAGE_MALAY_MALAYSIA +wxLANGUAGE_MALTESE = wx._gdi.LANGUAGE_MALTESE +wxLANGUAGE_MANIPURI = wx._gdi.LANGUAGE_MANIPURI +wxLANGUAGE_MAORI = wx._gdi.LANGUAGE_MAORI +wxLANGUAGE_MARATHI = wx._gdi.LANGUAGE_MARATHI +wxLANGUAGE_MOLDAVIAN = wx._gdi.LANGUAGE_MOLDAVIAN +wxLANGUAGE_MONGOLIAN = wx._gdi.LANGUAGE_MONGOLIAN +wxLANGUAGE_NAURU = wx._gdi.LANGUAGE_NAURU +wxLANGUAGE_NEPALI = wx._gdi.LANGUAGE_NEPALI +wxLANGUAGE_NEPALI_INDIA = wx._gdi.LANGUAGE_NEPALI_INDIA +wxLANGUAGE_NORWEGIAN_BOKMAL = wx._gdi.LANGUAGE_NORWEGIAN_BOKMAL +wxLANGUAGE_NORWEGIAN_NYNORSK = wx._gdi.LANGUAGE_NORWEGIAN_NYNORSK +wxLANGUAGE_OCCITAN = wx._gdi.LANGUAGE_OCCITAN +wxLANGUAGE_ORIYA = wx._gdi.LANGUAGE_ORIYA +wxLANGUAGE_OROMO = wx._gdi.LANGUAGE_OROMO +wxLANGUAGE_PASHTO = wx._gdi.LANGUAGE_PASHTO +wxLANGUAGE_POLISH = wx._gdi.LANGUAGE_POLISH +wxLANGUAGE_PORTUGUESE = wx._gdi.LANGUAGE_PORTUGUESE +wxLANGUAGE_PORTUGUESE_BRAZILIAN = wx._gdi.LANGUAGE_PORTUGUESE_BRAZILIAN +wxLANGUAGE_PUNJABI = wx._gdi.LANGUAGE_PUNJABI +wxLANGUAGE_QUECHUA = wx._gdi.LANGUAGE_QUECHUA +wxLANGUAGE_RHAETO_ROMANCE = wx._gdi.LANGUAGE_RHAETO_ROMANCE +wxLANGUAGE_ROMANIAN = wx._gdi.LANGUAGE_ROMANIAN +wxLANGUAGE_RUSSIAN = wx._gdi.LANGUAGE_RUSSIAN +wxLANGUAGE_RUSSIAN_UKRAINE = wx._gdi.LANGUAGE_RUSSIAN_UKRAINE +wxLANGUAGE_SAMOAN = wx._gdi.LANGUAGE_SAMOAN +wxLANGUAGE_SANGHO = wx._gdi.LANGUAGE_SANGHO +wxLANGUAGE_SANSKRIT = wx._gdi.LANGUAGE_SANSKRIT +wxLANGUAGE_SCOTS_GAELIC = wx._gdi.LANGUAGE_SCOTS_GAELIC +wxLANGUAGE_SERBIAN = wx._gdi.LANGUAGE_SERBIAN +wxLANGUAGE_SERBIAN_CYRILLIC = wx._gdi.LANGUAGE_SERBIAN_CYRILLIC +wxLANGUAGE_SERBIAN_LATIN = wx._gdi.LANGUAGE_SERBIAN_LATIN +wxLANGUAGE_SERBO_CROATIAN = wx._gdi.LANGUAGE_SERBO_CROATIAN +wxLANGUAGE_SESOTHO = wx._gdi.LANGUAGE_SESOTHO +wxLANGUAGE_SETSWANA = wx._gdi.LANGUAGE_SETSWANA +wxLANGUAGE_SHONA = wx._gdi.LANGUAGE_SHONA +wxLANGUAGE_SINDHI = wx._gdi.LANGUAGE_SINDHI +wxLANGUAGE_SINHALESE = wx._gdi.LANGUAGE_SINHALESE +wxLANGUAGE_SISWATI = wx._gdi.LANGUAGE_SISWATI +wxLANGUAGE_SLOVAK = wx._gdi.LANGUAGE_SLOVAK +wxLANGUAGE_SLOVENIAN = wx._gdi.LANGUAGE_SLOVENIAN +wxLANGUAGE_SOMALI = wx._gdi.LANGUAGE_SOMALI +wxLANGUAGE_SPANISH = wx._gdi.LANGUAGE_SPANISH +wxLANGUAGE_SPANISH_ARGENTINA = wx._gdi.LANGUAGE_SPANISH_ARGENTINA +wxLANGUAGE_SPANISH_BOLIVIA = wx._gdi.LANGUAGE_SPANISH_BOLIVIA +wxLANGUAGE_SPANISH_CHILE = wx._gdi.LANGUAGE_SPANISH_CHILE +wxLANGUAGE_SPANISH_COLOMBIA = wx._gdi.LANGUAGE_SPANISH_COLOMBIA +wxLANGUAGE_SPANISH_COSTA_RICA = wx._gdi.LANGUAGE_SPANISH_COSTA_RICA +wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC = wx._gdi.LANGUAGE_SPANISH_DOMINICAN_REPUBLIC +wxLANGUAGE_SPANISH_ECUADOR = wx._gdi.LANGUAGE_SPANISH_ECUADOR +wxLANGUAGE_SPANISH_EL_SALVADOR = wx._gdi.LANGUAGE_SPANISH_EL_SALVADOR +wxLANGUAGE_SPANISH_GUATEMALA = wx._gdi.LANGUAGE_SPANISH_GUATEMALA +wxLANGUAGE_SPANISH_HONDURAS = wx._gdi.LANGUAGE_SPANISH_HONDURAS +wxLANGUAGE_SPANISH_MEXICAN = wx._gdi.LANGUAGE_SPANISH_MEXICAN +wxLANGUAGE_SPANISH_MODERN = wx._gdi.LANGUAGE_SPANISH_MODERN +wxLANGUAGE_SPANISH_NICARAGUA = wx._gdi.LANGUAGE_SPANISH_NICARAGUA +wxLANGUAGE_SPANISH_PANAMA = wx._gdi.LANGUAGE_SPANISH_PANAMA +wxLANGUAGE_SPANISH_PARAGUAY = wx._gdi.LANGUAGE_SPANISH_PARAGUAY +wxLANGUAGE_SPANISH_PERU = wx._gdi.LANGUAGE_SPANISH_PERU +wxLANGUAGE_SPANISH_PUERTO_RICO = wx._gdi.LANGUAGE_SPANISH_PUERTO_RICO +wxLANGUAGE_SPANISH_URUGUAY = wx._gdi.LANGUAGE_SPANISH_URUGUAY +wxLANGUAGE_SPANISH_US = wx._gdi.LANGUAGE_SPANISH_US +wxLANGUAGE_SPANISH_VENEZUELA = wx._gdi.LANGUAGE_SPANISH_VENEZUELA +wxLANGUAGE_SUNDANESE = wx._gdi.LANGUAGE_SUNDANESE +wxLANGUAGE_SWAHILI = wx._gdi.LANGUAGE_SWAHILI +wxLANGUAGE_SWEDISH = wx._gdi.LANGUAGE_SWEDISH +wxLANGUAGE_SWEDISH_FINLAND = wx._gdi.LANGUAGE_SWEDISH_FINLAND +wxLANGUAGE_TAGALOG = wx._gdi.LANGUAGE_TAGALOG +wxLANGUAGE_TAJIK = wx._gdi.LANGUAGE_TAJIK +wxLANGUAGE_TAMIL = wx._gdi.LANGUAGE_TAMIL +wxLANGUAGE_TATAR = wx._gdi.LANGUAGE_TATAR +wxLANGUAGE_TELUGU = wx._gdi.LANGUAGE_TELUGU +wxLANGUAGE_THAI = wx._gdi.LANGUAGE_THAI +wxLANGUAGE_TIBETAN = wx._gdi.LANGUAGE_TIBETAN +wxLANGUAGE_TIGRINYA = wx._gdi.LANGUAGE_TIGRINYA +wxLANGUAGE_TONGA = wx._gdi.LANGUAGE_TONGA +wxLANGUAGE_TSONGA = wx._gdi.LANGUAGE_TSONGA +wxLANGUAGE_TURKISH = wx._gdi.LANGUAGE_TURKISH +wxLANGUAGE_TURKMEN = wx._gdi.LANGUAGE_TURKMEN +wxLANGUAGE_TWI = wx._gdi.LANGUAGE_TWI +wxLANGUAGE_UIGHUR = wx._gdi.LANGUAGE_UIGHUR +wxLANGUAGE_UKRAINIAN = wx._gdi.LANGUAGE_UKRAINIAN +wxLANGUAGE_URDU = wx._gdi.LANGUAGE_URDU +wxLANGUAGE_URDU_INDIA = wx._gdi.LANGUAGE_URDU_INDIA +wxLANGUAGE_URDU_PAKISTAN = wx._gdi.LANGUAGE_URDU_PAKISTAN +wxLANGUAGE_UZBEK = wx._gdi.LANGUAGE_UZBEK +wxLANGUAGE_UZBEK_CYRILLIC = wx._gdi.LANGUAGE_UZBEK_CYRILLIC +wxLANGUAGE_UZBEK_LATIN = wx._gdi.LANGUAGE_UZBEK_LATIN +wxLANGUAGE_VIETNAMESE = wx._gdi.LANGUAGE_VIETNAMESE +wxLANGUAGE_VOLAPUK = wx._gdi.LANGUAGE_VOLAPUK +wxLANGUAGE_WELSH = wx._gdi.LANGUAGE_WELSH +wxLANGUAGE_WOLOF = wx._gdi.LANGUAGE_WOLOF +wxLANGUAGE_XHOSA = wx._gdi.LANGUAGE_XHOSA +wxLANGUAGE_YIDDISH = wx._gdi.LANGUAGE_YIDDISH +wxLANGUAGE_YORUBA = wx._gdi.LANGUAGE_YORUBA +wxLANGUAGE_ZHUANG = wx._gdi.LANGUAGE_ZHUANG +wxLANGUAGE_ZULU = wx._gdi.LANGUAGE_ZULU +wxLANGUAGE_USER_DEFINED = wx._gdi.LANGUAGE_USER_DEFINED +wxLanguageInfo = wx._gdi.LanguageInfo +wxLanguageInfoPtr = wx._gdi.LanguageInfoPtr +wxLOCALE_CAT_NUMBER = wx._gdi.LOCALE_CAT_NUMBER +wxLOCALE_CAT_DATE = wx._gdi.LOCALE_CAT_DATE +wxLOCALE_CAT_MONEY = wx._gdi.LOCALE_CAT_MONEY +wxLOCALE_CAT_MAX = wx._gdi.LOCALE_CAT_MAX +wxLOCALE_THOUSANDS_SEP = wx._gdi.LOCALE_THOUSANDS_SEP +wxLOCALE_DECIMAL_POINT = wx._gdi.LOCALE_DECIMAL_POINT +wxLOCALE_LOAD_DEFAULT = wx._gdi.LOCALE_LOAD_DEFAULT +wxLOCALE_CONV_ENCODING = wx._gdi.LOCALE_CONV_ENCODING +wxLocale = wx._gdi.Locale +wxLocalePtr = wx._gdi.LocalePtr +wxLocale_GetSystemLanguage = wx._gdi.Locale_GetSystemLanguage +wxLocale_GetSystemEncoding = wx._gdi.Locale_GetSystemEncoding +wxLocale_GetSystemEncodingName = wx._gdi.Locale_GetSystemEncodingName +wxLocale_AddCatalogLookupPathPrefix = wx._gdi.Locale_AddCatalogLookupPathPrefix +wxLocale_GetLanguageInfo = wx._gdi.Locale_GetLanguageInfo +wxLocale_GetLanguageName = wx._gdi.Locale_GetLanguageName +wxLocale_FindLanguageInfo = wx._gdi.Locale_FindLanguageInfo +wxLocale_AddLanguage = wx._gdi.Locale_AddLanguage +wxGetLocale = wx._gdi.GetLocale +wxGetTranslation = wx._gdi.GetTranslation +wxGetTranslation = wx._gdi.GetTranslation +wxCONVERT_STRICT = wx._gdi.CONVERT_STRICT +wxCONVERT_SUBSTITUTE = wx._gdi.CONVERT_SUBSTITUTE +wxPLATFORM_CURRENT = wx._gdi.PLATFORM_CURRENT +wxPLATFORM_UNIX = wx._gdi.PLATFORM_UNIX +wxPLATFORM_WINDOWS = wx._gdi.PLATFORM_WINDOWS +wxPLATFORM_OS2 = wx._gdi.PLATFORM_OS2 +wxPLATFORM_MAC = wx._gdi.PLATFORM_MAC +wxEncodingConverter = wx._gdi.EncodingConverter +wxEncodingConverterPtr = wx._gdi.EncodingConverterPtr +wxEncodingConverter_GetPlatformEquivalents = wx._gdi.EncodingConverter_GetPlatformEquivalents +wxEncodingConverter_GetAllEquivalents = wx._gdi.EncodingConverter_GetAllEquivalents +wxEncodingConverter_CanConvert = wx._gdi.EncodingConverter_CanConvert +wxDC = wx._gdi.DC +wxDCPtr = wx._gdi.DCPtr +wxMemoryDC = wx._gdi.MemoryDC +wxMemoryDCPtr = wx._gdi.MemoryDCPtr +wxMemoryDCFromDC = wx._gdi.MemoryDCFromDC +wxBufferedDC = wx._gdi.BufferedDC +wxBufferedDCPtr = wx._gdi.BufferedDCPtr +wxBufferedDCInternalBuffer = wx._gdi.BufferedDCInternalBuffer +wxBufferedPaintDC = wx._gdi.BufferedPaintDC +wxBufferedPaintDCPtr = wx._gdi.BufferedPaintDCPtr +wxScreenDC = wx._gdi.ScreenDC +wxScreenDCPtr = wx._gdi.ScreenDCPtr +wxClientDC = wx._gdi.ClientDC +wxClientDCPtr = wx._gdi.ClientDCPtr +wxPaintDC = wx._gdi.PaintDC +wxPaintDCPtr = wx._gdi.PaintDCPtr +wxWindowDC = wx._gdi.WindowDC +wxWindowDCPtr = wx._gdi.WindowDCPtr +wxMirrorDC = wx._gdi.MirrorDC +wxMirrorDCPtr = wx._gdi.MirrorDCPtr +wxPostScriptDC = wx._gdi.PostScriptDC +wxPostScriptDCPtr = wx._gdi.PostScriptDCPtr +wxPostScriptDC_SetResolution = wx._gdi.PostScriptDC_SetResolution +wxPostScriptDC_GetResolution = wx._gdi.PostScriptDC_GetResolution +wxMetaFile = wx._gdi.MetaFile +wxMetaFilePtr = wx._gdi.MetaFilePtr +wxMetaFileDC = wx._gdi.MetaFileDC +wxMetaFileDCPtr = wx._gdi.MetaFileDCPtr +wxPrinterDC = wx._gdi.PrinterDC +wxPrinterDCPtr = wx._gdi.PrinterDCPtr +wxIMAGELIST_DRAW_NORMAL = wx._gdi.IMAGELIST_DRAW_NORMAL +wxIMAGELIST_DRAW_TRANSPARENT = wx._gdi.IMAGELIST_DRAW_TRANSPARENT +wxIMAGELIST_DRAW_SELECTED = wx._gdi.IMAGELIST_DRAW_SELECTED +wxIMAGELIST_DRAW_FOCUSED = wx._gdi.IMAGELIST_DRAW_FOCUSED +wxIMAGE_LIST_NORMAL = wx._gdi.IMAGE_LIST_NORMAL +wxIMAGE_LIST_SMALL = wx._gdi.IMAGE_LIST_SMALL +wxIMAGE_LIST_STATE = wx._gdi.IMAGE_LIST_STATE +wxImageList = wx._gdi.ImageList +wxImageListPtr = wx._gdi.ImageListPtr +wxNORMAL_FONT = wx._gdi.NORMAL_FONT +wxSMALL_FONT = wx._gdi.SMALL_FONT +wxITALIC_FONT = wx._gdi.ITALIC_FONT +wxSWISS_FONT = wx._gdi.SWISS_FONT +wxRED_PEN = wx._gdi.RED_PEN +wxCYAN_PEN = wx._gdi.CYAN_PEN +wxGREEN_PEN = wx._gdi.GREEN_PEN +wxBLACK_PEN = wx._gdi.BLACK_PEN +wxWHITE_PEN = wx._gdi.WHITE_PEN +wxTRANSPARENT_PEN = wx._gdi.TRANSPARENT_PEN +wxBLACK_DASHED_PEN = wx._gdi.BLACK_DASHED_PEN +wxGREY_PEN = wx._gdi.GREY_PEN +wxMEDIUM_GREY_PEN = wx._gdi.MEDIUM_GREY_PEN +wxLIGHT_GREY_PEN = wx._gdi.LIGHT_GREY_PEN +wxBLUE_BRUSH = wx._gdi.BLUE_BRUSH +wxGREEN_BRUSH = wx._gdi.GREEN_BRUSH +wxWHITE_BRUSH = wx._gdi.WHITE_BRUSH +wxBLACK_BRUSH = wx._gdi.BLACK_BRUSH +wxTRANSPARENT_BRUSH = wx._gdi.TRANSPARENT_BRUSH +wxCYAN_BRUSH = wx._gdi.CYAN_BRUSH +wxRED_BRUSH = wx._gdi.RED_BRUSH +wxGREY_BRUSH = wx._gdi.GREY_BRUSH +wxMEDIUM_GREY_BRUSH = wx._gdi.MEDIUM_GREY_BRUSH +wxLIGHT_GREY_BRUSH = wx._gdi.LIGHT_GREY_BRUSH +wxBLACK = wx._gdi.BLACK +wxWHITE = wx._gdi.WHITE +wxRED = wx._gdi.RED +wxBLUE = wx._gdi.BLUE +wxGREEN = wx._gdi.GREEN +wxCYAN = wx._gdi.CYAN +wxLIGHT_GREY = wx._gdi.LIGHT_GREY +wxSTANDARD_CURSOR = wx._gdi.STANDARD_CURSOR +wxHOURGLASS_CURSOR = wx._gdi.HOURGLASS_CURSOR +wxCROSS_CURSOR = wx._gdi.CROSS_CURSOR +wxNullBitmap = wx._gdi.NullBitmap +wxNullIcon = wx._gdi.NullIcon +wxNullCursor = wx._gdi.NullCursor +wxNullPen = wx._gdi.NullPen +wxNullBrush = wx._gdi.NullBrush +wxNullPalette = wx._gdi.NullPalette +wxNullFont = wx._gdi.NullFont +wxNullColour = wx._gdi.NullColour +wxPenList = wx._gdi.PenList +wxPenListPtr = wx._gdi.PenListPtr +wxBrushList = wx._gdi.BrushList +wxBrushListPtr = wx._gdi.BrushListPtr +wxColourDatabase = wx._gdi.ColourDatabase +wxColourDatabasePtr = wx._gdi.ColourDatabasePtr +wxFontList = wx._gdi.FontList +wxFontListPtr = wx._gdi.FontListPtr +wxTheFontList = wx._gdi.TheFontList +wxThePenList = wx._gdi.ThePenList +wxTheBrushList = wx._gdi.TheBrushList +wxTheColourDatabase = wx._gdi.TheColourDatabase +wxEffects = wx._gdi.Effects +wxEffectsPtr = wx._gdi.EffectsPtr +wxDC_old = wx._gdi.DC_old +wxMemoryDC_old = wx._gdi.MemoryDC_old +wxBufferedDC_old = wx._gdi.BufferedDC_old +wxBufferedPaintDC_old = wx._gdi.BufferedPaintDC_old +wxScreenDC_old = wx._gdi.ScreenDC_old +wxClientDC_old = wx._gdi.ClientDC_old +wxPaintDC_old = wx._gdi.PaintDC_old +wxWindowDC_old = wx._gdi.WindowDC_old +wxMirrorDC_old = wx._gdi.MirrorDC_old +wxPostScriptDC_old = wx._gdi.PostScriptDC_old +wxMetaFileDC_old = wx._gdi.MetaFileDC_old +wxPrinterDC_old = wx._gdi.PrinterDC_old +wxMaskColour = wx._gdi.MaskColour + + diff --git a/wxPython/wxPython/_misc.py b/wxPython/wxPython/_misc.py new file mode 100644 index 0000000000..593c95fc06 --- /dev/null +++ b/wxPython/wxPython/_misc.py @@ -0,0 +1,579 @@ +## This file reverse renames symbols in the wx package to give +## them their wx prefix again, for backwards compatibility. +## +## Generated by ./distrib/build_renamers.py + +# This silly stuff here is so the wxPython.wx module doesn't conflict +# with the wx package. We need to import modules from the wx package +# here, then we'll put the wxPython.wx entry back in sys.modules. +import sys +_wx = None +if sys.modules.has_key('wxPython.wx'): + _wx = sys.modules['wxPython.wx'] + del sys.modules['wxPython.wx'] + +import wx._misc + +sys.modules['wxPython.wx'] = _wx +del sys, _wx + + +# Now assign all the reverse-renamed names: +wxSYS_OEM_FIXED_FONT = wx._misc.SYS_OEM_FIXED_FONT +wxSYS_ANSI_FIXED_FONT = wx._misc.SYS_ANSI_FIXED_FONT +wxSYS_ANSI_VAR_FONT = wx._misc.SYS_ANSI_VAR_FONT +wxSYS_SYSTEM_FONT = wx._misc.SYS_SYSTEM_FONT +wxSYS_DEVICE_DEFAULT_FONT = wx._misc.SYS_DEVICE_DEFAULT_FONT +wxSYS_DEFAULT_PALETTE = wx._misc.SYS_DEFAULT_PALETTE +wxSYS_SYSTEM_FIXED_FONT = wx._misc.SYS_SYSTEM_FIXED_FONT +wxSYS_DEFAULT_GUI_FONT = wx._misc.SYS_DEFAULT_GUI_FONT +wxSYS_ICONTITLE_FONT = wx._misc.SYS_ICONTITLE_FONT +wxSYS_COLOUR_SCROLLBAR = wx._misc.SYS_COLOUR_SCROLLBAR +wxSYS_COLOUR_BACKGROUND = wx._misc.SYS_COLOUR_BACKGROUND +wxSYS_COLOUR_DESKTOP = wx._misc.SYS_COLOUR_DESKTOP +wxSYS_COLOUR_ACTIVECAPTION = wx._misc.SYS_COLOUR_ACTIVECAPTION +wxSYS_COLOUR_INACTIVECAPTION = wx._misc.SYS_COLOUR_INACTIVECAPTION +wxSYS_COLOUR_MENU = wx._misc.SYS_COLOUR_MENU +wxSYS_COLOUR_WINDOW = wx._misc.SYS_COLOUR_WINDOW +wxSYS_COLOUR_WINDOWFRAME = wx._misc.SYS_COLOUR_WINDOWFRAME +wxSYS_COLOUR_MENUTEXT = wx._misc.SYS_COLOUR_MENUTEXT +wxSYS_COLOUR_WINDOWTEXT = wx._misc.SYS_COLOUR_WINDOWTEXT +wxSYS_COLOUR_CAPTIONTEXT = wx._misc.SYS_COLOUR_CAPTIONTEXT +wxSYS_COLOUR_ACTIVEBORDER = wx._misc.SYS_COLOUR_ACTIVEBORDER +wxSYS_COLOUR_INACTIVEBORDER = wx._misc.SYS_COLOUR_INACTIVEBORDER +wxSYS_COLOUR_APPWORKSPACE = wx._misc.SYS_COLOUR_APPWORKSPACE +wxSYS_COLOUR_HIGHLIGHT = wx._misc.SYS_COLOUR_HIGHLIGHT +wxSYS_COLOUR_HIGHLIGHTTEXT = wx._misc.SYS_COLOUR_HIGHLIGHTTEXT +wxSYS_COLOUR_BTNFACE = wx._misc.SYS_COLOUR_BTNFACE +wxSYS_COLOUR_3DFACE = wx._misc.SYS_COLOUR_3DFACE +wxSYS_COLOUR_BTNSHADOW = wx._misc.SYS_COLOUR_BTNSHADOW +wxSYS_COLOUR_3DSHADOW = wx._misc.SYS_COLOUR_3DSHADOW +wxSYS_COLOUR_GRAYTEXT = wx._misc.SYS_COLOUR_GRAYTEXT +wxSYS_COLOUR_BTNTEXT = wx._misc.SYS_COLOUR_BTNTEXT +wxSYS_COLOUR_INACTIVECAPTIONTEXT = wx._misc.SYS_COLOUR_INACTIVECAPTIONTEXT +wxSYS_COLOUR_BTNHIGHLIGHT = wx._misc.SYS_COLOUR_BTNHIGHLIGHT +wxSYS_COLOUR_BTNHILIGHT = wx._misc.SYS_COLOUR_BTNHILIGHT +wxSYS_COLOUR_3DHIGHLIGHT = wx._misc.SYS_COLOUR_3DHIGHLIGHT +wxSYS_COLOUR_3DHILIGHT = wx._misc.SYS_COLOUR_3DHILIGHT +wxSYS_COLOUR_3DDKSHADOW = wx._misc.SYS_COLOUR_3DDKSHADOW +wxSYS_COLOUR_3DLIGHT = wx._misc.SYS_COLOUR_3DLIGHT +wxSYS_COLOUR_INFOTEXT = wx._misc.SYS_COLOUR_INFOTEXT +wxSYS_COLOUR_INFOBK = wx._misc.SYS_COLOUR_INFOBK +wxSYS_COLOUR_LISTBOX = wx._misc.SYS_COLOUR_LISTBOX +wxSYS_COLOUR_HOTLIGHT = wx._misc.SYS_COLOUR_HOTLIGHT +wxSYS_COLOUR_GRADIENTACTIVECAPTION = wx._misc.SYS_COLOUR_GRADIENTACTIVECAPTION +wxSYS_COLOUR_GRADIENTINACTIVECAPTION = wx._misc.SYS_COLOUR_GRADIENTINACTIVECAPTION +wxSYS_COLOUR_MENUHILIGHT = wx._misc.SYS_COLOUR_MENUHILIGHT +wxSYS_COLOUR_MENUBAR = wx._misc.SYS_COLOUR_MENUBAR +wxSYS_COLOUR_MAX = wx._misc.SYS_COLOUR_MAX +wxSYS_MOUSE_BUTTONS = wx._misc.SYS_MOUSE_BUTTONS +wxSYS_BORDER_X = wx._misc.SYS_BORDER_X +wxSYS_BORDER_Y = wx._misc.SYS_BORDER_Y +wxSYS_CURSOR_X = wx._misc.SYS_CURSOR_X +wxSYS_CURSOR_Y = wx._misc.SYS_CURSOR_Y +wxSYS_DCLICK_X = wx._misc.SYS_DCLICK_X +wxSYS_DCLICK_Y = wx._misc.SYS_DCLICK_Y +wxSYS_DRAG_X = wx._misc.SYS_DRAG_X +wxSYS_DRAG_Y = wx._misc.SYS_DRAG_Y +wxSYS_EDGE_X = wx._misc.SYS_EDGE_X +wxSYS_EDGE_Y = wx._misc.SYS_EDGE_Y +wxSYS_HSCROLL_ARROW_X = wx._misc.SYS_HSCROLL_ARROW_X +wxSYS_HSCROLL_ARROW_Y = wx._misc.SYS_HSCROLL_ARROW_Y +wxSYS_HTHUMB_X = wx._misc.SYS_HTHUMB_X +wxSYS_ICON_X = wx._misc.SYS_ICON_X +wxSYS_ICON_Y = wx._misc.SYS_ICON_Y +wxSYS_ICONSPACING_X = wx._misc.SYS_ICONSPACING_X +wxSYS_ICONSPACING_Y = wx._misc.SYS_ICONSPACING_Y +wxSYS_WINDOWMIN_X = wx._misc.SYS_WINDOWMIN_X +wxSYS_WINDOWMIN_Y = wx._misc.SYS_WINDOWMIN_Y +wxSYS_SCREEN_X = wx._misc.SYS_SCREEN_X +wxSYS_SCREEN_Y = wx._misc.SYS_SCREEN_Y +wxSYS_FRAMESIZE_X = wx._misc.SYS_FRAMESIZE_X +wxSYS_FRAMESIZE_Y = wx._misc.SYS_FRAMESIZE_Y +wxSYS_SMALLICON_X = wx._misc.SYS_SMALLICON_X +wxSYS_SMALLICON_Y = wx._misc.SYS_SMALLICON_Y +wxSYS_HSCROLL_Y = wx._misc.SYS_HSCROLL_Y +wxSYS_VSCROLL_X = wx._misc.SYS_VSCROLL_X +wxSYS_VSCROLL_ARROW_X = wx._misc.SYS_VSCROLL_ARROW_X +wxSYS_VSCROLL_ARROW_Y = wx._misc.SYS_VSCROLL_ARROW_Y +wxSYS_VTHUMB_Y = wx._misc.SYS_VTHUMB_Y +wxSYS_CAPTION_Y = wx._misc.SYS_CAPTION_Y +wxSYS_MENU_Y = wx._misc.SYS_MENU_Y +wxSYS_NETWORK_PRESENT = wx._misc.SYS_NETWORK_PRESENT +wxSYS_PENWINDOWS_PRESENT = wx._misc.SYS_PENWINDOWS_PRESENT +wxSYS_SHOW_SOUNDS = wx._misc.SYS_SHOW_SOUNDS +wxSYS_SWAP_BUTTONS = wx._misc.SYS_SWAP_BUTTONS +wxSYS_CAN_DRAW_FRAME_DECORATIONS = wx._misc.SYS_CAN_DRAW_FRAME_DECORATIONS +wxSYS_CAN_ICONIZE_FRAME = wx._misc.SYS_CAN_ICONIZE_FRAME +wxSYS_SCREEN_NONE = wx._misc.SYS_SCREEN_NONE +wxSYS_SCREEN_TINY = wx._misc.SYS_SCREEN_TINY +wxSYS_SCREEN_PDA = wx._misc.SYS_SCREEN_PDA +wxSYS_SCREEN_SMALL = wx._misc.SYS_SCREEN_SMALL +wxSYS_SCREEN_DESKTOP = wx._misc.SYS_SCREEN_DESKTOP +wxSystemSettings = wx._misc.SystemSettings +wxSystemSettingsPtr = wx._misc.SystemSettingsPtr +wxSystemSettings_GetColour = wx._misc.SystemSettings_GetColour +wxSystemSettings_GetFont = wx._misc.SystemSettings_GetFont +wxSystemSettings_GetMetric = wx._misc.SystemSettings_GetMetric +wxSystemSettings_HasFeature = wx._misc.SystemSettings_HasFeature +wxSystemSettings_GetScreenType = wx._misc.SystemSettings_GetScreenType +wxSystemSettings_SetScreenType = wx._misc.SystemSettings_SetScreenType +wxSystemOptions = wx._misc.SystemOptions +wxSystemOptionsPtr = wx._misc.SystemOptionsPtr +wxSystemOptions_SetOption = wx._misc.SystemOptions_SetOption +wxSystemOptions_SetOptionInt = wx._misc.SystemOptions_SetOptionInt +wxSystemOptions_GetOption = wx._misc.SystemOptions_GetOption +wxSystemOptions_GetOptionInt = wx._misc.SystemOptions_GetOptionInt +wxSystemOptions_HasOption = wx._misc.SystemOptions_HasOption +wxFileSelectorPromptStr = wx._misc.FileSelectorPromptStr +wxFileSelectorDefaultWildcardStr = wx._misc.FileSelectorDefaultWildcardStr +wxDirSelectorPromptStr = wx._misc.DirSelectorPromptStr +wxNewId = wx._misc.NewId +wxRegisterId = wx._misc.RegisterId +wxGetCurrentId = wx._misc.GetCurrentId +wxBell = wx._misc.Bell +wxEndBusyCursor = wx._misc.EndBusyCursor +wxGetElapsedTime = wx._misc.GetElapsedTime +wxGetMousePosition = wx._misc.GetMousePosition +wxIsBusy = wx._misc.IsBusy +wxNow = wx._misc.Now +wxShell = wx._misc.Shell +wxStartTimer = wx._misc.StartTimer +wxGetOsVersion = wx._misc.GetOsVersion +wxGetOsDescription = wx._misc.GetOsDescription +wxGetFreeMemory = wx._misc.GetFreeMemory +wxSHUTDOWN_POWEROFF = wx._misc.SHUTDOWN_POWEROFF +wxSHUTDOWN_REBOOT = wx._misc.SHUTDOWN_REBOOT +wxShutdown = wx._misc.Shutdown +wxSleep = wx._misc.Sleep +wxUsleep = wx._misc.Usleep +wxEnableTopLevelWindows = wx._misc.EnableTopLevelWindows +wxStripMenuCodes = wx._misc.StripMenuCodes +wxGetEmailAddress = wx._misc.GetEmailAddress +wxGetHostName = wx._misc.GetHostName +wxGetFullHostName = wx._misc.GetFullHostName +wxGetUserId = wx._misc.GetUserId +wxGetUserName = wx._misc.GetUserName +wxGetHomeDir = wx._misc.GetHomeDir +wxGetUserHome = wx._misc.GetUserHome +wxGetProcessId = wx._misc.GetProcessId +wxTrap = wx._misc.Trap +wxFileSelector = wx._misc.FileSelector +wxLoadFileSelector = wx._misc.LoadFileSelector +wxSaveFileSelector = wx._misc.SaveFileSelector +wxDirSelector = wx._misc.DirSelector +wxGetTextFromUser = wx._misc.GetTextFromUser +wxGetPasswordFromUser = wx._misc.GetPasswordFromUser +wxGetSingleChoice = wx._misc.GetSingleChoice +wxGetSingleChoiceIndex = wx._misc.GetSingleChoiceIndex +wxMessageBox = wx._misc.MessageBox +wxGetNumberFromUser = wx._misc.GetNumberFromUser +wxColourDisplay = wx._misc.ColourDisplay +wxDisplayDepth = wx._misc.DisplayDepth +wxGetDisplayDepth = wx._misc.GetDisplayDepth +wxDisplaySize = wx._misc.DisplaySize +wxGetDisplaySize = wx._misc.GetDisplaySize +wxDisplaySizeMM = wx._misc.DisplaySizeMM +wxGetDisplaySizeMM = wx._misc.GetDisplaySizeMM +wxClientDisplayRect = wx._misc.ClientDisplayRect +wxGetClientDisplayRect = wx._misc.GetClientDisplayRect +wxSetCursor = wx._misc.SetCursor +wxBeginBusyCursor = wx._misc.BeginBusyCursor +wxGetActiveWindow = wx._misc.GetActiveWindow +wxGenericFindWindowAtPoint = wx._misc.GenericFindWindowAtPoint +wxFindWindowAtPoint = wx._misc.FindWindowAtPoint +wxGetTopLevelParent = wx._misc.GetTopLevelParent +wxGetKeyState = wx._misc.GetKeyState +wxWakeUpMainThread = wx._misc.WakeUpMainThread +wxMutexGuiEnter = wx._misc.MutexGuiEnter +wxMutexGuiLeave = wx._misc.MutexGuiLeave +wxMutexGuiLocker = wx._misc.MutexGuiLocker +wxMutexGuiLockerPtr = wx._misc.MutexGuiLockerPtr +wxThread_IsMain = wx._misc.Thread_IsMain +wxToolTip = wx._misc.ToolTip +wxToolTipPtr = wx._misc.ToolTipPtr +wxToolTip_Enable = wx._misc.ToolTip_Enable +wxToolTip_SetDelay = wx._misc.ToolTip_SetDelay +wxCaret = wx._misc.Caret +wxCaretPtr = wx._misc.CaretPtr +wxCaret_GetBlinkTime = wx._misc.Caret_GetBlinkTime +wxCaret_SetBlinkTime = wx._misc.Caret_SetBlinkTime +wxBusyCursor = wx._misc.BusyCursor +wxBusyCursorPtr = wx._misc.BusyCursorPtr +wxWindowDisabler = wx._misc.WindowDisabler +wxWindowDisablerPtr = wx._misc.WindowDisablerPtr +wxBusyInfo = wx._misc.BusyInfo +wxBusyInfoPtr = wx._misc.BusyInfoPtr +wxStopWatch = wx._misc.StopWatch +wxStopWatchPtr = wx._misc.StopWatchPtr +wxFileHistory = wx._misc.FileHistory +wxFileHistoryPtr = wx._misc.FileHistoryPtr +wxSingleInstanceChecker = wx._misc.SingleInstanceChecker +wxSingleInstanceCheckerPtr = wx._misc.SingleInstanceCheckerPtr +wxPreSingleInstanceChecker = wx._misc.PreSingleInstanceChecker +wxDrawWindowOnDC = wx._misc.DrawWindowOnDC +wxTipProvider = wx._misc.TipProvider +wxTipProviderPtr = wx._misc.TipProviderPtr +wxPyTipProvider = wx._misc.PyTipProvider +wxPyTipProviderPtr = wx._misc.PyTipProviderPtr +wxShowTip = wx._misc.ShowTip +wxCreateFileTipProvider = wx._misc.CreateFileTipProvider +wxTIMER_CONTINUOUS = wx._misc.TIMER_CONTINUOUS +wxTIMER_ONE_SHOT = wx._misc.TIMER_ONE_SHOT +wxEVT_TIMER = wx._misc.wxEVT_TIMER +wxTimer = wx._misc.Timer +wxTimerPtr = wx._misc.TimerPtr +wxTimerEvent = wx._misc.TimerEvent +wxTimerEventPtr = wx._misc.TimerEventPtr +wxTimerRunner = wx._misc.TimerRunner +wxTimerRunnerPtr = wx._misc.TimerRunnerPtr +wxLOG_FatalError = wx._misc.LOG_FatalError +wxLOG_Error = wx._misc.LOG_Error +wxLOG_Warning = wx._misc.LOG_Warning +wxLOG_Message = wx._misc.LOG_Message +wxLOG_Status = wx._misc.LOG_Status +wxLOG_Info = wx._misc.LOG_Info +wxLOG_Debug = wx._misc.LOG_Debug +wxLOG_Trace = wx._misc.LOG_Trace +wxLOG_Progress = wx._misc.LOG_Progress +wxLOG_User = wx._misc.LOG_User +wxLOG_Max = wx._misc.LOG_Max +wxTRACE_MemAlloc = wx._misc.TRACE_MemAlloc +wxTRACE_Messages = wx._misc.TRACE_Messages +wxTRACE_ResAlloc = wx._misc.TRACE_ResAlloc +wxTRACE_RefCount = wx._misc.TRACE_RefCount +wxTRACE_OleCalls = wx._misc.TRACE_OleCalls +wxTraceMemAlloc = wx._misc.TraceMemAlloc +wxTraceMessages = wx._misc.TraceMessages +wxTraceResAlloc = wx._misc.TraceResAlloc +wxTraceRefCount = wx._misc.TraceRefCount +wxTraceOleCalls = wx._misc.TraceOleCalls +wxLog = wx._misc.Log +wxLogPtr = wx._misc.LogPtr +wxLog_IsEnabled = wx._misc.Log_IsEnabled +wxLog_EnableLogging = wx._misc.Log_EnableLogging +wxLog_OnLog = wx._misc.Log_OnLog +wxLog_FlushActive = wx._misc.Log_FlushActive +wxLog_GetActiveTarget = wx._misc.Log_GetActiveTarget +wxLog_SetActiveTarget = wx._misc.Log_SetActiveTarget +wxLog_Suspend = wx._misc.Log_Suspend +wxLog_Resume = wx._misc.Log_Resume +wxLog_SetVerbose = wx._misc.Log_SetVerbose +wxLog_SetLogLevel = wx._misc.Log_SetLogLevel +wxLog_DontCreateOnDemand = wx._misc.Log_DontCreateOnDemand +wxLog_SetTraceMask = wx._misc.Log_SetTraceMask +wxLog_AddTraceMask = wx._misc.Log_AddTraceMask +wxLog_RemoveTraceMask = wx._misc.Log_RemoveTraceMask +wxLog_ClearTraceMasks = wx._misc.Log_ClearTraceMasks +wxLog_GetTraceMasks = wx._misc.Log_GetTraceMasks +wxLog_SetTimestamp = wx._misc.Log_SetTimestamp +wxLog_GetVerbose = wx._misc.Log_GetVerbose +wxLog_GetTraceMask = wx._misc.Log_GetTraceMask +wxLog_IsAllowedTraceMask = wx._misc.Log_IsAllowedTraceMask +wxLog_GetLogLevel = wx._misc.Log_GetLogLevel +wxLog_GetTimestamp = wx._misc.Log_GetTimestamp +wxLog_TimeStamp = wx._misc.Log_TimeStamp +wxLogStderr = wx._misc.LogStderr +wxLogStderrPtr = wx._misc.LogStderrPtr +wxLogTextCtrl = wx._misc.LogTextCtrl +wxLogTextCtrlPtr = wx._misc.LogTextCtrlPtr +wxLogGui = wx._misc.LogGui +wxLogGuiPtr = wx._misc.LogGuiPtr +wxLogWindow = wx._misc.LogWindow +wxLogWindowPtr = wx._misc.LogWindowPtr +wxLogChain = wx._misc.LogChain +wxLogChainPtr = wx._misc.LogChainPtr +wxSysErrorCode = wx._misc.SysErrorCode +wxSysErrorMsg = wx._misc.SysErrorMsg +wxLogFatalError = wx._misc.LogFatalError +wxLogError = wx._misc.LogError +wxLogWarning = wx._misc.LogWarning +wxLogMessage = wx._misc.LogMessage +wxLogInfo = wx._misc.LogInfo +wxLogDebug = wx._misc.LogDebug +wxLogVerbose = wx._misc.LogVerbose +wxLogStatus = wx._misc.LogStatus +wxLogStatusFrame = wx._misc.LogStatusFrame +wxLogSysError = wx._misc.LogSysError +wxLogTrace = wx._misc.LogTrace +wxLogTrace = wx._misc.LogTrace +wxLogGeneric = wx._misc.LogGeneric +wxSafeShowMessage = wx._misc.SafeShowMessage +wxLogNull = wx._misc.LogNull +wxLogNullPtr = wx._misc.LogNullPtr +wxPyLog = wx._misc.PyLog +wxPyLogPtr = wx._misc.PyLogPtr +wxPROCESS_DEFAULT = wx._misc.PROCESS_DEFAULT +wxPROCESS_REDIRECT = wx._misc.PROCESS_REDIRECT +wxKILL_OK = wx._misc.KILL_OK +wxKILL_BAD_SIGNAL = wx._misc.KILL_BAD_SIGNAL +wxKILL_ACCESS_DENIED = wx._misc.KILL_ACCESS_DENIED +wxKILL_NO_PROCESS = wx._misc.KILL_NO_PROCESS +wxKILL_ERROR = wx._misc.KILL_ERROR +wxSIGNONE = wx._misc.SIGNONE +wxSIGHUP = wx._misc.SIGHUP +wxSIGINT = wx._misc.SIGINT +wxSIGQUIT = wx._misc.SIGQUIT +wxSIGILL = wx._misc.SIGILL +wxSIGTRAP = wx._misc.SIGTRAP +wxSIGABRT = wx._misc.SIGABRT +wxSIGIOT = wx._misc.SIGIOT +wxSIGEMT = wx._misc.SIGEMT +wxSIGFPE = wx._misc.SIGFPE +wxSIGKILL = wx._misc.SIGKILL +wxSIGBUS = wx._misc.SIGBUS +wxSIGSEGV = wx._misc.SIGSEGV +wxSIGSYS = wx._misc.SIGSYS +wxSIGPIPE = wx._misc.SIGPIPE +wxSIGALRM = wx._misc.SIGALRM +wxSIGTERM = wx._misc.SIGTERM +wxProcess = wx._misc.Process +wxProcessPtr = wx._misc.ProcessPtr +wxProcess_Kill = wx._misc.Process_Kill +wxProcess_Exists = wx._misc.Process_Exists +wxProcess_Open = wx._misc.Process_Open +wxProcessEvent = wx._misc.ProcessEvent +wxProcessEventPtr = wx._misc.ProcessEventPtr +wxEVT_END_PROCESS = wx._misc.wxEVT_END_PROCESS +wxEXEC_ASYNC = wx._misc.EXEC_ASYNC +wxEXEC_SYNC = wx._misc.EXEC_SYNC +wxEXEC_NOHIDE = wx._misc.EXEC_NOHIDE +wxEXEC_MAKE_GROUP_LEADER = wx._misc.EXEC_MAKE_GROUP_LEADER +wxExecute = wx._misc.Execute +wxJOYSTICK1 = wx._misc.JOYSTICK1 +wxJOYSTICK2 = wx._misc.JOYSTICK2 +wxJOY_BUTTON_ANY = wx._misc.JOY_BUTTON_ANY +wxJOY_BUTTON1 = wx._misc.JOY_BUTTON1 +wxJOY_BUTTON2 = wx._misc.JOY_BUTTON2 +wxJOY_BUTTON3 = wx._misc.JOY_BUTTON3 +wxJOY_BUTTON4 = wx._misc.JOY_BUTTON4 +wxJoystick = wx._misc.Joystick +wxJoystickPtr = wx._misc.JoystickPtr +wxEVT_JOY_BUTTON_DOWN = wx._misc.wxEVT_JOY_BUTTON_DOWN +wxEVT_JOY_BUTTON_UP = wx._misc.wxEVT_JOY_BUTTON_UP +wxEVT_JOY_MOVE = wx._misc.wxEVT_JOY_MOVE +wxEVT_JOY_ZMOVE = wx._misc.wxEVT_JOY_ZMOVE +wxJoystickEvent = wx._misc.JoystickEvent +wxJoystickEventPtr = wx._misc.JoystickEventPtr +wxSOUND_SYNC = wx._misc.SOUND_SYNC +wxSOUND_ASYNC = wx._misc.SOUND_ASYNC +wxSOUND_LOOP = wx._misc.SOUND_LOOP +wxSound = wx._misc.Sound +wxSoundPtr = wx._misc.SoundPtr +wxSound_PlaySound = wx._misc.Sound_PlaySound +wxSound_Stop = wx._misc.Sound_Stop +wxMAILCAP_STANDARD = wx._misc.MAILCAP_STANDARD +wxMAILCAP_NETSCAPE = wx._misc.MAILCAP_NETSCAPE +wxMAILCAP_KDE = wx._misc.MAILCAP_KDE +wxMAILCAP_GNOME = wx._misc.MAILCAP_GNOME +wxMAILCAP_ALL = wx._misc.MAILCAP_ALL +wxFileTypeInfo = wx._misc.FileTypeInfo +wxFileTypeInfoPtr = wx._misc.FileTypeInfoPtr +wxFileTypeInfoSequence = wx._misc.FileTypeInfoSequence +wxNullFileTypeInfo = wx._misc.NullFileTypeInfo +wxFileType = wx._misc.FileType +wxFileTypePtr = wx._misc.FileTypePtr +wxFileType_ExpandCommand = wx._misc.FileType_ExpandCommand +wxTheMimeTypesManager = wx._misc.TheMimeTypesManager +wxMimeTypesManager = wx._misc.MimeTypesManager +wxMimeTypesManagerPtr = wx._misc.MimeTypesManagerPtr +wxMimeTypesManager_IsOfType = wx._misc.MimeTypesManager_IsOfType +wxART_TOOLBAR = wx._misc.ART_TOOLBAR +wxART_MENU = wx._misc.ART_MENU +wxART_FRAME_ICON = wx._misc.ART_FRAME_ICON +wxART_CMN_DIALOG = wx._misc.ART_CMN_DIALOG +wxART_HELP_BROWSER = wx._misc.ART_HELP_BROWSER +wxART_MESSAGE_BOX = wx._misc.ART_MESSAGE_BOX +wxART_OTHER = wx._misc.ART_OTHER +wxART_ADD_BOOKMARK = wx._misc.ART_ADD_BOOKMARK +wxART_DEL_BOOKMARK = wx._misc.ART_DEL_BOOKMARK +wxART_HELP_SIDE_PANEL = wx._misc.ART_HELP_SIDE_PANEL +wxART_HELP_SETTINGS = wx._misc.ART_HELP_SETTINGS +wxART_HELP_BOOK = wx._misc.ART_HELP_BOOK +wxART_HELP_FOLDER = wx._misc.ART_HELP_FOLDER +wxART_HELP_PAGE = wx._misc.ART_HELP_PAGE +wxART_GO_BACK = wx._misc.ART_GO_BACK +wxART_GO_FORWARD = wx._misc.ART_GO_FORWARD +wxART_GO_UP = wx._misc.ART_GO_UP +wxART_GO_DOWN = wx._misc.ART_GO_DOWN +wxART_GO_TO_PARENT = wx._misc.ART_GO_TO_PARENT +wxART_GO_HOME = wx._misc.ART_GO_HOME +wxART_FILE_OPEN = wx._misc.ART_FILE_OPEN +wxART_PRINT = wx._misc.ART_PRINT +wxART_HELP = wx._misc.ART_HELP +wxART_TIP = wx._misc.ART_TIP +wxART_REPORT_VIEW = wx._misc.ART_REPORT_VIEW +wxART_LIST_VIEW = wx._misc.ART_LIST_VIEW +wxART_NEW_DIR = wx._misc.ART_NEW_DIR +wxART_FOLDER = wx._misc.ART_FOLDER +wxART_GO_DIR_UP = wx._misc.ART_GO_DIR_UP +wxART_EXECUTABLE_FILE = wx._misc.ART_EXECUTABLE_FILE +wxART_NORMAL_FILE = wx._misc.ART_NORMAL_FILE +wxART_TICK_MARK = wx._misc.ART_TICK_MARK +wxART_CROSS_MARK = wx._misc.ART_CROSS_MARK +wxART_ERROR = wx._misc.ART_ERROR +wxART_QUESTION = wx._misc.ART_QUESTION +wxART_WARNING = wx._misc.ART_WARNING +wxART_INFORMATION = wx._misc.ART_INFORMATION +wxART_MISSING_IMAGE = wx._misc.ART_MISSING_IMAGE +wxArtProvider = wx._misc.ArtProvider +wxArtProviderPtr = wx._misc.ArtProviderPtr +wxArtProvider_PushProvider = wx._misc.ArtProvider_PushProvider +wxArtProvider_PopProvider = wx._misc.ArtProvider_PopProvider +wxArtProvider_RemoveProvider = wx._misc.ArtProvider_RemoveProvider +wxArtProvider_GetBitmap = wx._misc.ArtProvider_GetBitmap +wxArtProvider_GetIcon = wx._misc.ArtProvider_GetIcon +wxCONFIG_USE_LOCAL_FILE = wx._misc.CONFIG_USE_LOCAL_FILE +wxCONFIG_USE_GLOBAL_FILE = wx._misc.CONFIG_USE_GLOBAL_FILE +wxCONFIG_USE_RELATIVE_PATH = wx._misc.CONFIG_USE_RELATIVE_PATH +wxCONFIG_USE_NO_ESCAPE_CHARACTERS = wx._misc.CONFIG_USE_NO_ESCAPE_CHARACTERS +wxConfigBase = wx._misc.ConfigBase +wxConfigBasePtr = wx._misc.ConfigBasePtr +wxConfigBase_Set = wx._misc.ConfigBase_Set +wxConfigBase_Get = wx._misc.ConfigBase_Get +wxConfigBase_Create = wx._misc.ConfigBase_Create +wxConfigBase_DontCreateOnDemand = wx._misc.ConfigBase_DontCreateOnDemand +wxConfig = wx._misc.Config +wxConfigPtr = wx._misc.ConfigPtr +wxFileConfig = wx._misc.FileConfig +wxFileConfigPtr = wx._misc.FileConfigPtr +wxConfigPathChanger = wx._misc.ConfigPathChanger +wxConfigPathChangerPtr = wx._misc.ConfigPathChangerPtr +wxExpandEnvVars = wx._misc.ExpandEnvVars +wxDateFormatStr = wx._misc.DateFormatStr +wxTimeSpanFormatStr = wx._misc.TimeSpanFormatStr +wxDateTime = wx._misc.DateTime +wxDateTimePtr = wx._misc.DateTimePtr +wxDateTime_SetCountry = wx._misc.DateTime_SetCountry +wxDateTime_GetCountry = wx._misc.DateTime_GetCountry +wxDateTime_IsWestEuropeanCountry = wx._misc.DateTime_IsWestEuropeanCountry +wxDateTime_GetCurrentYear = wx._misc.DateTime_GetCurrentYear +wxDateTime_ConvertYearToBC = wx._misc.DateTime_ConvertYearToBC +wxDateTime_GetCurrentMonth = wx._misc.DateTime_GetCurrentMonth +wxDateTime_IsLeapYear = wx._misc.DateTime_IsLeapYear +wxDateTime_GetCentury = wx._misc.DateTime_GetCentury +wxDateTime_GetNumberOfDaysinYear = wx._misc.DateTime_GetNumberOfDaysinYear +wxDateTime_GetNumberOfDaysInMonth = wx._misc.DateTime_GetNumberOfDaysInMonth +wxDateTime_GetMonthName = wx._misc.DateTime_GetMonthName +wxDateTime_GetWeekDayName = wx._misc.DateTime_GetWeekDayName +wxDateTime_GetAmPmStrings = wx._misc.DateTime_GetAmPmStrings +wxDateTime_IsDSTApplicable = wx._misc.DateTime_IsDSTApplicable +wxDateTime_GetBeginDST = wx._misc.DateTime_GetBeginDST +wxDateTime_GetEndDST = wx._misc.DateTime_GetEndDST +wxDateTime_Now = wx._misc.DateTime_Now +wxDateTime_UNow = wx._misc.DateTime_UNow +wxDateTime_Today = wx._misc.DateTime_Today +wxDateTimeFromTimeT = wx._misc.DateTimeFromTimeT +wxDateTimeFromJDN = wx._misc.DateTimeFromJDN +wxDateTimeFromHMS = wx._misc.DateTimeFromHMS +wxDateTimeFromDMY = wx._misc.DateTimeFromDMY +wxTimeSpan = wx._misc.TimeSpan +wxTimeSpanPtr = wx._misc.TimeSpanPtr +wxTimeSpan_Seconds = wx._misc.TimeSpan_Seconds +wxTimeSpan_Second = wx._misc.TimeSpan_Second +wxTimeSpan_Minutes = wx._misc.TimeSpan_Minutes +wxTimeSpan_Minute = wx._misc.TimeSpan_Minute +wxTimeSpan_Hours = wx._misc.TimeSpan_Hours +wxTimeSpan_Hour = wx._misc.TimeSpan_Hour +wxTimeSpan_Days = wx._misc.TimeSpan_Days +wxTimeSpan_Day = wx._misc.TimeSpan_Day +wxTimeSpan_Weeks = wx._misc.TimeSpan_Weeks +wxTimeSpan_Week = wx._misc.TimeSpan_Week +wxDateSpan = wx._misc.DateSpan +wxDateSpanPtr = wx._misc.DateSpanPtr +wxDateSpan_Days = wx._misc.DateSpan_Days +wxDateSpan_Day = wx._misc.DateSpan_Day +wxDateSpan_Weeks = wx._misc.DateSpan_Weeks +wxDateSpan_Week = wx._misc.DateSpan_Week +wxDateSpan_Months = wx._misc.DateSpan_Months +wxDateSpan_Month = wx._misc.DateSpan_Month +wxDateSpan_Years = wx._misc.DateSpan_Years +wxDateSpan_Year = wx._misc.DateSpan_Year +wxGetLocalTime = wx._misc.GetLocalTime +wxGetUTCTime = wx._misc.GetUTCTime +wxGetCurrentTime = wx._misc.GetCurrentTime +wxGetLocalTimeMillis = wx._misc.GetLocalTimeMillis +wxDefaultDateTime = wx._misc.DefaultDateTime +wxDF_INVALID = wx._misc.DF_INVALID +wxDF_TEXT = wx._misc.DF_TEXT +wxDF_BITMAP = wx._misc.DF_BITMAP +wxDF_METAFILE = wx._misc.DF_METAFILE +wxDF_SYLK = wx._misc.DF_SYLK +wxDF_DIF = wx._misc.DF_DIF +wxDF_TIFF = wx._misc.DF_TIFF +wxDF_OEMTEXT = wx._misc.DF_OEMTEXT +wxDF_DIB = wx._misc.DF_DIB +wxDF_PALETTE = wx._misc.DF_PALETTE +wxDF_PENDATA = wx._misc.DF_PENDATA +wxDF_RIFF = wx._misc.DF_RIFF +wxDF_WAVE = wx._misc.DF_WAVE +wxDF_UNICODETEXT = wx._misc.DF_UNICODETEXT +wxDF_ENHMETAFILE = wx._misc.DF_ENHMETAFILE +wxDF_FILENAME = wx._misc.DF_FILENAME +wxDF_LOCALE = wx._misc.DF_LOCALE +wxDF_PRIVATE = wx._misc.DF_PRIVATE +wxDF_HTML = wx._misc.DF_HTML +wxDF_MAX = wx._misc.DF_MAX +wxDataFormat = wx._misc.DataFormat +wxDataFormatPtr = wx._misc.DataFormatPtr +wxCustomDataFormat = wx._misc.CustomDataFormat +wxFormatInvalid = wx._misc.FormatInvalid +wxDataObject = wx._misc.DataObject +wxDataObjectPtr = wx._misc.DataObjectPtr +wxDataObjectSimple = wx._misc.DataObjectSimple +wxDataObjectSimplePtr = wx._misc.DataObjectSimplePtr +wxPyDataObjectSimple = wx._misc.PyDataObjectSimple +wxPyDataObjectSimplePtr = wx._misc.PyDataObjectSimplePtr +wxDataObjectComposite = wx._misc.DataObjectComposite +wxDataObjectCompositePtr = wx._misc.DataObjectCompositePtr +wxTextDataObject = wx._misc.TextDataObject +wxTextDataObjectPtr = wx._misc.TextDataObjectPtr +wxPyTextDataObject = wx._misc.PyTextDataObject +wxPyTextDataObjectPtr = wx._misc.PyTextDataObjectPtr +wxBitmapDataObject = wx._misc.BitmapDataObject +wxBitmapDataObjectPtr = wx._misc.BitmapDataObjectPtr +wxPyBitmapDataObject = wx._misc.PyBitmapDataObject +wxPyBitmapDataObjectPtr = wx._misc.PyBitmapDataObjectPtr +wxFileDataObject = wx._misc.FileDataObject +wxFileDataObjectPtr = wx._misc.FileDataObjectPtr +wxCustomDataObject = wx._misc.CustomDataObject +wxCustomDataObjectPtr = wx._misc.CustomDataObjectPtr +wxURLDataObject = wx._misc.URLDataObject +wxURLDataObjectPtr = wx._misc.URLDataObjectPtr +wxMetafileDataObject = wx._misc.MetafileDataObject +wxMetafileDataObjectPtr = wx._misc.MetafileDataObjectPtr +wxDrag_CopyOnly = wx._misc.Drag_CopyOnly +wxDrag_AllowMove = wx._misc.Drag_AllowMove +wxDrag_DefaultMove = wx._misc.Drag_DefaultMove +wxDragError = wx._misc.DragError +wxDragNone = wx._misc.DragNone +wxDragCopy = wx._misc.DragCopy +wxDragMove = wx._misc.DragMove +wxDragLink = wx._misc.DragLink +wxDragCancel = wx._misc.DragCancel +wxIsDragResultOk = wx._misc.IsDragResultOk +wxDropSource = wx._misc.DropSource +wxDropSourcePtr = wx._misc.DropSourcePtr +wxDropTarget = wx._misc.DropTarget +wxDropTargetPtr = wx._misc.DropTargetPtr +wxTextDropTarget = wx._misc.TextDropTarget +wxTextDropTargetPtr = wx._misc.TextDropTargetPtr +wxFileDropTarget = wx._misc.FileDropTarget +wxFileDropTargetPtr = wx._misc.FileDropTargetPtr +wxClipboard = wx._misc.Clipboard +wxClipboardPtr = wx._misc.ClipboardPtr +wxTheClipboard = wx._misc.TheClipboard +wxClipboardLocker = wx._misc.ClipboardLocker +wxClipboardLockerPtr = wx._misc.ClipboardLockerPtr +wxVideoMode = wx._misc.VideoMode +wxVideoModePtr = wx._misc.VideoModePtr +wxDefaultVideoMode = wx._misc.DefaultVideoMode +wxDisplay = wx._misc.Display +wxDisplayPtr = wx._misc.DisplayPtr +wxDisplay_GetCount = wx._misc.Display_GetCount +wxDisplay_GetFromPoint = wx._misc.Display_GetFromPoint +wxDisplay_GetFromWindow = wx._misc.Display_GetFromWindow +wxPyTimer = wx._misc.PyTimer +wxPyDropTarget = wx._misc.PyDropTarget + + diff --git a/wxPython/wxPython/_windows.py b/wxPython/wxPython/_windows.py new file mode 100644 index 0000000000..3401a23786 --- /dev/null +++ b/wxPython/wxPython/_windows.py @@ -0,0 +1,325 @@ +## This file reverse renames symbols in the wx package to give +## them their wx prefix again, for backwards compatibility. +## +## Generated by ./distrib/build_renamers.py + +# This silly stuff here is so the wxPython.wx module doesn't conflict +# with the wx package. We need to import modules from the wx package +# here, then we'll put the wxPython.wx entry back in sys.modules. +import sys +_wx = None +if sys.modules.has_key('wxPython.wx'): + _wx = sys.modules['wxPython.wx'] + del sys.modules['wxPython.wx'] + +import wx._windows + +sys.modules['wxPython.wx'] = _wx +del sys, _wx + + +# Now assign all the reverse-renamed names: +wxPanel = wx._windows.Panel +wxPanelPtr = wx._windows.PanelPtr +wxPrePanel = wx._windows.PrePanel +wxScrolledWindow = wx._windows.ScrolledWindow +wxScrolledWindowPtr = wx._windows.ScrolledWindowPtr +wxPreScrolledWindow = wx._windows.PreScrolledWindow +wxFrameNameStr = wx._windows.FrameNameStr +wxDialogNameStr = wx._windows.DialogNameStr +wxStatusLineNameStr = wx._windows.StatusLineNameStr +wxToolBarNameStr = wx._windows.ToolBarNameStr +wxSTAY_ON_TOP = wx._windows.STAY_ON_TOP +wxICONIZE = wx._windows.ICONIZE +wxMINIMIZE = wx._windows.MINIMIZE +wxMAXIMIZE = wx._windows.MAXIMIZE +wxCLOSE_BOX = wx._windows.CLOSE_BOX +wxTHICK_FRAME = wx._windows.THICK_FRAME +wxSYSTEM_MENU = wx._windows.SYSTEM_MENU +wxMINIMIZE_BOX = wx._windows.MINIMIZE_BOX +wxMAXIMIZE_BOX = wx._windows.MAXIMIZE_BOX +wxTINY_CAPTION_HORIZ = wx._windows.TINY_CAPTION_HORIZ +wxTINY_CAPTION_VERT = wx._windows.TINY_CAPTION_VERT +wxRESIZE_BOX = wx._windows.RESIZE_BOX +wxRESIZE_BORDER = wx._windows.RESIZE_BORDER +wxDIALOG_NO_PARENT = wx._windows.DIALOG_NO_PARENT +wxDEFAULT_FRAME_STYLE = wx._windows.DEFAULT_FRAME_STYLE +wxDEFAULT_DIALOG_STYLE = wx._windows.DEFAULT_DIALOG_STYLE +wxFRAME_TOOL_WINDOW = wx._windows.FRAME_TOOL_WINDOW +wxFRAME_FLOAT_ON_PARENT = wx._windows.FRAME_FLOAT_ON_PARENT +wxFRAME_NO_WINDOW_MENU = wx._windows.FRAME_NO_WINDOW_MENU +wxFRAME_NO_TASKBAR = wx._windows.FRAME_NO_TASKBAR +wxFRAME_SHAPED = wx._windows.FRAME_SHAPED +wxDIALOG_MODAL = wx._windows.DIALOG_MODAL +wxDIALOG_MODELESS = wx._windows.DIALOG_MODELESS +wxUSER_COLOURS = wx._windows.USER_COLOURS +wxNO_3D = wx._windows.NO_3D +wxFULLSCREEN_NOMENUBAR = wx._windows.FULLSCREEN_NOMENUBAR +wxFULLSCREEN_NOTOOLBAR = wx._windows.FULLSCREEN_NOTOOLBAR +wxFULLSCREEN_NOSTATUSBAR = wx._windows.FULLSCREEN_NOSTATUSBAR +wxFULLSCREEN_NOBORDER = wx._windows.FULLSCREEN_NOBORDER +wxFULLSCREEN_NOCAPTION = wx._windows.FULLSCREEN_NOCAPTION +wxFULLSCREEN_ALL = wx._windows.FULLSCREEN_ALL +wxTOPLEVEL_EX_DIALOG = wx._windows.TOPLEVEL_EX_DIALOG +wxTopLevelWindow = wx._windows.TopLevelWindow +wxTopLevelWindowPtr = wx._windows.TopLevelWindowPtr +wxFrame = wx._windows.Frame +wxFramePtr = wx._windows.FramePtr +wxPreFrame = wx._windows.PreFrame +wxDialog = wx._windows.Dialog +wxDialogPtr = wx._windows.DialogPtr +wxPreDialog = wx._windows.PreDialog +wxMiniFrame = wx._windows.MiniFrame +wxMiniFramePtr = wx._windows.MiniFramePtr +wxPreMiniFrame = wx._windows.PreMiniFrame +wxSPLASH_CENTRE_ON_PARENT = wx._windows.SPLASH_CENTRE_ON_PARENT +wxSPLASH_CENTRE_ON_SCREEN = wx._windows.SPLASH_CENTRE_ON_SCREEN +wxSPLASH_NO_CENTRE = wx._windows.SPLASH_NO_CENTRE +wxSPLASH_TIMEOUT = wx._windows.SPLASH_TIMEOUT +wxSPLASH_NO_TIMEOUT = wx._windows.SPLASH_NO_TIMEOUT +wxSplashScreenWindow = wx._windows.SplashScreenWindow +wxSplashScreenWindowPtr = wx._windows.SplashScreenWindowPtr +wxSplashScreen = wx._windows.SplashScreen +wxSplashScreenPtr = wx._windows.SplashScreenPtr +wxStatusBar = wx._windows.StatusBar +wxStatusBarPtr = wx._windows.StatusBarPtr +wxPreStatusBar = wx._windows.PreStatusBar +wxSplitterNameStr = wx._windows.SplitterNameStr +wxSP_NOBORDER = wx._windows.SP_NOBORDER +wxSP_NOSASH = wx._windows.SP_NOSASH +wxSP_PERMIT_UNSPLIT = wx._windows.SP_PERMIT_UNSPLIT +wxSP_LIVE_UPDATE = wx._windows.SP_LIVE_UPDATE +wxSP_3DSASH = wx._windows.SP_3DSASH +wxSP_3DBORDER = wx._windows.SP_3DBORDER +wxSP_NO_XP_THEME = wx._windows.SP_NO_XP_THEME +wxSP_BORDER = wx._windows.SP_BORDER +wxSP_3D = wx._windows.SP_3D +wxSPLIT_HORIZONTAL = wx._windows.SPLIT_HORIZONTAL +wxSPLIT_VERTICAL = wx._windows.SPLIT_VERTICAL +wxSPLIT_DRAG_NONE = wx._windows.SPLIT_DRAG_NONE +wxSPLIT_DRAG_DRAGGING = wx._windows.SPLIT_DRAG_DRAGGING +wxSPLIT_DRAG_LEFT_DOWN = wx._windows.SPLIT_DRAG_LEFT_DOWN +wxSplitterWindow = wx._windows.SplitterWindow +wxSplitterWindowPtr = wx._windows.SplitterWindowPtr +wxPreSplitterWindow = wx._windows.PreSplitterWindow +wxSplitterEvent = wx._windows.SplitterEvent +wxSplitterEventPtr = wx._windows.SplitterEventPtr +wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED = wx._windows.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED +wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING = wx._windows.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING +wxEVT_COMMAND_SPLITTER_DOUBLECLICKED = wx._windows.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED +wxEVT_COMMAND_SPLITTER_UNSPLIT = wx._windows.wxEVT_COMMAND_SPLITTER_UNSPLIT +wxSashNameStr = wx._windows.SashNameStr +wxSashLayoutNameStr = wx._windows.SashLayoutNameStr +wxSASH_DRAG_NONE = wx._windows.SASH_DRAG_NONE +wxSASH_DRAG_DRAGGING = wx._windows.SASH_DRAG_DRAGGING +wxSASH_DRAG_LEFT_DOWN = wx._windows.SASH_DRAG_LEFT_DOWN +wxSW_NOBORDER = wx._windows.SW_NOBORDER +wxSW_BORDER = wx._windows.SW_BORDER +wxSW_3DSASH = wx._windows.SW_3DSASH +wxSW_3DBORDER = wx._windows.SW_3DBORDER +wxSW_3D = wx._windows.SW_3D +wxSASH_TOP = wx._windows.SASH_TOP +wxSASH_RIGHT = wx._windows.SASH_RIGHT +wxSASH_BOTTOM = wx._windows.SASH_BOTTOM +wxSASH_LEFT = wx._windows.SASH_LEFT +wxSASH_NONE = wx._windows.SASH_NONE +wxSashWindow = wx._windows.SashWindow +wxSashWindowPtr = wx._windows.SashWindowPtr +wxPreSashWindow = wx._windows.PreSashWindow +wxSASH_STATUS_OK = wx._windows.SASH_STATUS_OK +wxSASH_STATUS_OUT_OF_RANGE = wx._windows.SASH_STATUS_OUT_OF_RANGE +wxSashEvent = wx._windows.SashEvent +wxSashEventPtr = wx._windows.SashEventPtr +wxEVT_SASH_DRAGGED = wx._windows.wxEVT_SASH_DRAGGED +wxLAYOUT_HORIZONTAL = wx._windows.LAYOUT_HORIZONTAL +wxLAYOUT_VERTICAL = wx._windows.LAYOUT_VERTICAL +wxLAYOUT_NONE = wx._windows.LAYOUT_NONE +wxLAYOUT_TOP = wx._windows.LAYOUT_TOP +wxLAYOUT_LEFT = wx._windows.LAYOUT_LEFT +wxLAYOUT_RIGHT = wx._windows.LAYOUT_RIGHT +wxLAYOUT_BOTTOM = wx._windows.LAYOUT_BOTTOM +wxLAYOUT_LENGTH_Y = wx._windows.LAYOUT_LENGTH_Y +wxLAYOUT_LENGTH_X = wx._windows.LAYOUT_LENGTH_X +wxLAYOUT_MRU_LENGTH = wx._windows.LAYOUT_MRU_LENGTH +wxLAYOUT_QUERY = wx._windows.LAYOUT_QUERY +wxEVT_QUERY_LAYOUT_INFO = wx._windows.wxEVT_QUERY_LAYOUT_INFO +wxEVT_CALCULATE_LAYOUT = wx._windows.wxEVT_CALCULATE_LAYOUT +wxQueryLayoutInfoEvent = wx._windows.QueryLayoutInfoEvent +wxQueryLayoutInfoEventPtr = wx._windows.QueryLayoutInfoEventPtr +wxCalculateLayoutEvent = wx._windows.CalculateLayoutEvent +wxCalculateLayoutEventPtr = wx._windows.CalculateLayoutEventPtr +wxSashLayoutWindow = wx._windows.SashLayoutWindow +wxSashLayoutWindowPtr = wx._windows.SashLayoutWindowPtr +wxPreSashLayoutWindow = wx._windows.PreSashLayoutWindow +wxLayoutAlgorithm = wx._windows.LayoutAlgorithm +wxLayoutAlgorithmPtr = wx._windows.LayoutAlgorithmPtr +wxPopupWindow = wx._windows.PopupWindow +wxPopupWindowPtr = wx._windows.PopupWindowPtr +wxPrePopupWindow = wx._windows.PrePopupWindow +wxPopupTransientWindow = wx._windows.PopupTransientWindow +wxPopupTransientWindowPtr = wx._windows.PopupTransientWindowPtr +wxPrePopupTransientWindow = wx._windows.PrePopupTransientWindow +wxTipWindow = wx._windows.TipWindow +wxTipWindowPtr = wx._windows.TipWindowPtr +wxVScrolledWindow = wx._windows.VScrolledWindow +wxVScrolledWindowPtr = wx._windows.VScrolledWindowPtr +wxPreVScrolledWindow = wx._windows.PreVScrolledWindow +wxVListBoxNameStr = wx._windows.VListBoxNameStr +wxVListBox = wx._windows.VListBox +wxVListBoxPtr = wx._windows.VListBoxPtr +wxPreVListBox = wx._windows.PreVListBox +wxHtmlListBox = wx._windows.HtmlListBox +wxHtmlListBoxPtr = wx._windows.HtmlListBoxPtr +wxPreHtmlListBox = wx._windows.PreHtmlListBox +wxTaskBarIcon = wx._windows.TaskBarIcon +wxTaskBarIconPtr = wx._windows.TaskBarIconPtr +wxTaskBarIconEvent = wx._windows.TaskBarIconEvent +wxTaskBarIconEventPtr = wx._windows.TaskBarIconEventPtr +wxEVT_TASKBAR_MOVE = wx._windows.wxEVT_TASKBAR_MOVE +wxEVT_TASKBAR_LEFT_DOWN = wx._windows.wxEVT_TASKBAR_LEFT_DOWN +wxEVT_TASKBAR_LEFT_UP = wx._windows.wxEVT_TASKBAR_LEFT_UP +wxEVT_TASKBAR_RIGHT_DOWN = wx._windows.wxEVT_TASKBAR_RIGHT_DOWN +wxEVT_TASKBAR_RIGHT_UP = wx._windows.wxEVT_TASKBAR_RIGHT_UP +wxEVT_TASKBAR_LEFT_DCLICK = wx._windows.wxEVT_TASKBAR_LEFT_DCLICK +wxEVT_TASKBAR_RIGHT_DCLICK = wx._windows.wxEVT_TASKBAR_RIGHT_DCLICK +wxFileSelectorPromptStr = wx._windows.FileSelectorPromptStr +wxDirSelectorPromptStr = wx._windows.DirSelectorPromptStr +wxDirDialogNameStr = wx._windows.DirDialogNameStr +wxFileSelectorDefaultWildcardStr = wx._windows.FileSelectorDefaultWildcardStr +wxGetTextFromUserPromptStr = wx._windows.GetTextFromUserPromptStr +wxMessageBoxCaptionStr = wx._windows.MessageBoxCaptionStr +wxColourData = wx._windows.ColourData +wxColourDataPtr = wx._windows.ColourDataPtr +wxColourDialog = wx._windows.ColourDialog +wxColourDialogPtr = wx._windows.ColourDialogPtr +wxDirDialog = wx._windows.DirDialog +wxDirDialogPtr = wx._windows.DirDialogPtr +wxFileDialog = wx._windows.FileDialog +wxFileDialogPtr = wx._windows.FileDialogPtr +wxCHOICEDLG_STYLE = wx._windows.CHOICEDLG_STYLE +wxMultiChoiceDialog = wx._windows.MultiChoiceDialog +wxMultiChoiceDialogPtr = wx._windows.MultiChoiceDialogPtr +wxSingleChoiceDialog = wx._windows.SingleChoiceDialog +wxSingleChoiceDialogPtr = wx._windows.SingleChoiceDialogPtr +wxTextEntryDialog = wx._windows.TextEntryDialog +wxTextEntryDialogPtr = wx._windows.TextEntryDialogPtr +wxFontData = wx._windows.FontData +wxFontDataPtr = wx._windows.FontDataPtr +wxFontDialog = wx._windows.FontDialog +wxFontDialogPtr = wx._windows.FontDialogPtr +wxMessageDialog = wx._windows.MessageDialog +wxMessageDialogPtr = wx._windows.MessageDialogPtr +wxProgressDialog = wx._windows.ProgressDialog +wxProgressDialogPtr = wx._windows.ProgressDialogPtr +wxFR_DOWN = wx._windows.FR_DOWN +wxFR_WHOLEWORD = wx._windows.FR_WHOLEWORD +wxFR_MATCHCASE = wx._windows.FR_MATCHCASE +wxFR_REPLACEDIALOG = wx._windows.FR_REPLACEDIALOG +wxFR_NOUPDOWN = wx._windows.FR_NOUPDOWN +wxFR_NOMATCHCASE = wx._windows.FR_NOMATCHCASE +wxFR_NOWHOLEWORD = wx._windows.FR_NOWHOLEWORD +wxEVT_COMMAND_FIND = wx._windows.wxEVT_COMMAND_FIND +wxEVT_COMMAND_FIND_NEXT = wx._windows.wxEVT_COMMAND_FIND_NEXT +wxEVT_COMMAND_FIND_REPLACE = wx._windows.wxEVT_COMMAND_FIND_REPLACE +wxEVT_COMMAND_FIND_REPLACE_ALL = wx._windows.wxEVT_COMMAND_FIND_REPLACE_ALL +wxEVT_COMMAND_FIND_CLOSE = wx._windows.wxEVT_COMMAND_FIND_CLOSE +wxFindDialogEvent = wx._windows.FindDialogEvent +wxFindDialogEventPtr = wx._windows.FindDialogEventPtr +wxFindReplaceData = wx._windows.FindReplaceData +wxFindReplaceDataPtr = wx._windows.FindReplaceDataPtr +wxFindReplaceDialog = wx._windows.FindReplaceDialog +wxFindReplaceDialogPtr = wx._windows.FindReplaceDialogPtr +wxPreFindReplaceDialog = wx._windows.PreFindReplaceDialog +IDM_WINDOWTILE = wx._windows.IDM_WINDOWTILE +IDM_WINDOWTILEHOR = wx._windows.IDM_WINDOWTILEHOR +IDM_WINDOWCASCADE = wx._windows.IDM_WINDOWCASCADE +IDM_WINDOWICONS = wx._windows.IDM_WINDOWICONS +IDM_WINDOWNEXT = wx._windows.IDM_WINDOWNEXT +IDM_WINDOWTILEVERT = wx._windows.IDM_WINDOWTILEVERT +wxFIRST_MDI_CHILD = wx._windows.FIRST_MDI_CHILD +wxLAST_MDI_CHILD = wx._windows.LAST_MDI_CHILD +wxMDIParentFrame = wx._windows.MDIParentFrame +wxMDIParentFramePtr = wx._windows.MDIParentFramePtr +wxPreMDIParentFrame = wx._windows.PreMDIParentFrame +wxMDIChildFrame = wx._windows.MDIChildFrame +wxMDIChildFramePtr = wx._windows.MDIChildFramePtr +wxPreMDIChildFrame = wx._windows.PreMDIChildFrame +wxMDIClientWindow = wx._windows.MDIClientWindow +wxMDIClientWindowPtr = wx._windows.MDIClientWindowPtr +wxPreMDIClientWindow = wx._windows.PreMDIClientWindow +wxPyWindow = wx._windows.PyWindow +wxPyWindowPtr = wx._windows.PyWindowPtr +wxPrePyWindow = wx._windows.PrePyWindow +wxPyPanel = wx._windows.PyPanel +wxPyPanelPtr = wx._windows.PyPanelPtr +wxPrePyPanel = wx._windows.PrePyPanel +wxPyScrolledWindow = wx._windows.PyScrolledWindow +wxPyScrolledWindowPtr = wx._windows.PyScrolledWindowPtr +wxPrePyScrolledWindow = wx._windows.PrePyScrolledWindow +wxPrintoutTitleStr = wx._windows.PrintoutTitleStr +wxPreviewCanvasNameStr = wx._windows.PreviewCanvasNameStr +wxPRINT_MODE_NONE = wx._windows.PRINT_MODE_NONE +wxPRINT_MODE_PREVIEW = wx._windows.PRINT_MODE_PREVIEW +wxPRINT_MODE_FILE = wx._windows.PRINT_MODE_FILE +wxPRINT_MODE_PRINTER = wx._windows.PRINT_MODE_PRINTER +wxPRINT_MODE_STREAM = wx._windows.PRINT_MODE_STREAM +wxPrintData = wx._windows.PrintData +wxPrintDataPtr = wx._windows.PrintDataPtr +wxPageSetupDialogData = wx._windows.PageSetupDialogData +wxPageSetupDialogDataPtr = wx._windows.PageSetupDialogDataPtr +wxPageSetupDialog = wx._windows.PageSetupDialog +wxPageSetupDialogPtr = wx._windows.PageSetupDialogPtr +wxPrintDialogData = wx._windows.PrintDialogData +wxPrintDialogDataPtr = wx._windows.PrintDialogDataPtr +wxPrintDialog = wx._windows.PrintDialog +wxPrintDialogPtr = wx._windows.PrintDialogPtr +wxPRINTER_NO_ERROR = wx._windows.PRINTER_NO_ERROR +wxPRINTER_CANCELLED = wx._windows.PRINTER_CANCELLED +wxPRINTER_ERROR = wx._windows.PRINTER_ERROR +wxPrinter = wx._windows.Printer +wxPrinterPtr = wx._windows.PrinterPtr +wxPrinter_GetLastError = wx._windows.Printer_GetLastError +wxPrintout = wx._windows.Printout +wxPrintoutPtr = wx._windows.PrintoutPtr +wxPreviewCanvas = wx._windows.PreviewCanvas +wxPreviewCanvasPtr = wx._windows.PreviewCanvasPtr +wxPreviewFrame = wx._windows.PreviewFrame +wxPreviewFramePtr = wx._windows.PreviewFramePtr +wxPREVIEW_PRINT = wx._windows.PREVIEW_PRINT +wxPREVIEW_PREVIOUS = wx._windows.PREVIEW_PREVIOUS +wxPREVIEW_NEXT = wx._windows.PREVIEW_NEXT +wxPREVIEW_ZOOM = wx._windows.PREVIEW_ZOOM +wxPREVIEW_FIRST = wx._windows.PREVIEW_FIRST +wxPREVIEW_LAST = wx._windows.PREVIEW_LAST +wxPREVIEW_GOTO = wx._windows.PREVIEW_GOTO +wxPREVIEW_DEFAULT = wx._windows.PREVIEW_DEFAULT +wxID_PREVIEW_CLOSE = wx._windows.ID_PREVIEW_CLOSE +wxID_PREVIEW_NEXT = wx._windows.ID_PREVIEW_NEXT +wxID_PREVIEW_PREVIOUS = wx._windows.ID_PREVIEW_PREVIOUS +wxID_PREVIEW_PRINT = wx._windows.ID_PREVIEW_PRINT +wxID_PREVIEW_ZOOM = wx._windows.ID_PREVIEW_ZOOM +wxID_PREVIEW_FIRST = wx._windows.ID_PREVIEW_FIRST +wxID_PREVIEW_LAST = wx._windows.ID_PREVIEW_LAST +wxID_PREVIEW_GOTO = wx._windows.ID_PREVIEW_GOTO +wxPreviewControlBar = wx._windows.PreviewControlBar +wxPreviewControlBarPtr = wx._windows.PreviewControlBarPtr +wxPrintPreview = wx._windows.PrintPreview +wxPrintPreviewPtr = wx._windows.PrintPreviewPtr +wxPyPrintPreview = wx._windows.PyPrintPreview +wxPyPrintPreviewPtr = wx._windows.PyPrintPreviewPtr +wxPyPreviewFrame = wx._windows.PyPreviewFrame +wxPyPreviewFramePtr = wx._windows.PyPreviewFramePtr +wxPyPreviewControlBar = wx._windows.PyPreviewControlBar +wxPyPreviewControlBarPtr = wx._windows.PyPreviewControlBarPtr + + +d = globals() +for k, v in wx._windows.__dict__.iteritems(): + if k.startswith('EVT'): + d[k] = v + elif k.startswith('IDM'): + d[k] = v +del d, k, v + + + diff --git a/wxPython/wxPython/_wx.py b/wxPython/wxPython/_wx.py index 9c671ae9e4..74c8a274c8 100644 --- a/wxPython/wxPython/_wx.py +++ b/wxPython/wxPython/_wx.py @@ -1,11 +1,11 @@ # Load all symbols that should appear in the wxPython.wx namespace -from core import * -from core import __version__ -from gdi import * -from windows import * -from controls import * -from misc import * +from _core import * +from _core import __version__ +from _gdi import * +from _windows import * +from _controls import * +from _misc import * # Cleanup this one. del wx diff --git a/wxPython/wxPython/controls.py b/wxPython/wxPython/controls.py deleted file mode 100644 index c6b8545c9a..0000000000 --- a/wxPython/wxPython/controls.py +++ /dev/null @@ -1,452 +0,0 @@ -## This file reverse renames symbols in the wx package to give -## them their wx prefix again, for backwards compatibility. -## -## Generated by ./distrib/build_renamers.py - -# This silly stuff here is so the wxPython.wx module doesn't conflict -# with the wx package. We need to import modules from the wx package -# here, then we'll put the wxPython.wx entry back in sys.modules. -import sys -_wx = None -if sys.modules.has_key('wxPython.wx'): - _wx = sys.modules['wxPython.wx'] - del sys.modules['wxPython.wx'] - -import wx.controls - -sys.modules['wxPython.wx'] = _wx -del sys, _wx - - -# Now assign all the reverse-renamed names: -wxButtonNameStr = wx.controls.ButtonNameStr -wxBU_LEFT = wx.controls.BU_LEFT -wxBU_TOP = wx.controls.BU_TOP -wxBU_RIGHT = wx.controls.BU_RIGHT -wxBU_BOTTOM = wx.controls.BU_BOTTOM -wxBU_EXACTFIT = wx.controls.BU_EXACTFIT -wxBU_AUTODRAW = wx.controls.BU_AUTODRAW -wxButton = wx.controls.Button -wxButtonPtr = wx.controls.ButtonPtr -wxPreButton = wx.controls.PreButton -wxButton_GetDefaultSize = wx.controls.Button_GetDefaultSize -wxBitmapButton = wx.controls.BitmapButton -wxBitmapButtonPtr = wx.controls.BitmapButtonPtr -wxPreBitmapButton = wx.controls.PreBitmapButton -wxCheckBoxNameStr = wx.controls.CheckBoxNameStr -wxCHK_2STATE = wx.controls.CHK_2STATE -wxCHK_3STATE = wx.controls.CHK_3STATE -wxCHK_ALLOW_3RD_STATE_FOR_USER = wx.controls.CHK_ALLOW_3RD_STATE_FOR_USER -wxCHK_UNCHECKED = wx.controls.CHK_UNCHECKED -wxCHK_CHECKED = wx.controls.CHK_CHECKED -wxCHK_UNDETERMINED = wx.controls.CHK_UNDETERMINED -wxCheckBox = wx.controls.CheckBox -wxCheckBoxPtr = wx.controls.CheckBoxPtr -wxPreCheckBox = wx.controls.PreCheckBox -wxChoiceNameStr = wx.controls.ChoiceNameStr -wxChoice = wx.controls.Choice -wxChoicePtr = wx.controls.ChoicePtr -wxPreChoice = wx.controls.PreChoice -wxComboBoxNameStr = wx.controls.ComboBoxNameStr -wxComboBox = wx.controls.ComboBox -wxComboBoxPtr = wx.controls.ComboBoxPtr -wxPreComboBox = wx.controls.PreComboBox -wxGaugeNameStr = wx.controls.GaugeNameStr -wxGA_HORIZONTAL = wx.controls.GA_HORIZONTAL -wxGA_VERTICAL = wx.controls.GA_VERTICAL -wxGA_SMOOTH = wx.controls.GA_SMOOTH -wxGA_PROGRESSBAR = wx.controls.GA_PROGRESSBAR -wxGauge = wx.controls.Gauge -wxGaugePtr = wx.controls.GaugePtr -wxPreGauge = wx.controls.PreGauge -wxStaticBitmapNameStr = wx.controls.StaticBitmapNameStr -wxStaticBoxNameStr = wx.controls.StaticBoxNameStr -wxStaticTextNameStr = wx.controls.StaticTextNameStr -wxStaticBox = wx.controls.StaticBox -wxStaticBoxPtr = wx.controls.StaticBoxPtr -wxPreStaticBox = wx.controls.PreStaticBox -wxStaticLine = wx.controls.StaticLine -wxStaticLinePtr = wx.controls.StaticLinePtr -wxPreStaticLine = wx.controls.PreStaticLine -wxStaticLine_GetDefaultSize = wx.controls.StaticLine_GetDefaultSize -wxStaticText = wx.controls.StaticText -wxStaticTextPtr = wx.controls.StaticTextPtr -wxPreStaticText = wx.controls.PreStaticText -wxStaticBitmap = wx.controls.StaticBitmap -wxStaticBitmapPtr = wx.controls.StaticBitmapPtr -wxPreStaticBitmap = wx.controls.PreStaticBitmap -wxListBoxNameStr = wx.controls.ListBoxNameStr -wxListBox = wx.controls.ListBox -wxListBoxPtr = wx.controls.ListBoxPtr -wxPreListBox = wx.controls.PreListBox -wxListBox_GetClassDefaultAttributes = wx.controls.ListBox_GetClassDefaultAttributes -wxCheckListBox = wx.controls.CheckListBox -wxCheckListBoxPtr = wx.controls.CheckListBoxPtr -wxPreCheckListBox = wx.controls.PreCheckListBox -wxTextCtrlNameStr = wx.controls.TextCtrlNameStr -wxTE_NO_VSCROLL = wx.controls.TE_NO_VSCROLL -wxTE_AUTO_SCROLL = wx.controls.TE_AUTO_SCROLL -wxTE_READONLY = wx.controls.TE_READONLY -wxTE_MULTILINE = wx.controls.TE_MULTILINE -wxTE_PROCESS_TAB = wx.controls.TE_PROCESS_TAB -wxTE_LEFT = wx.controls.TE_LEFT -wxTE_CENTER = wx.controls.TE_CENTER -wxTE_RIGHT = wx.controls.TE_RIGHT -wxTE_CENTRE = wx.controls.TE_CENTRE -wxTE_RICH = wx.controls.TE_RICH -wxTE_PROCESS_ENTER = wx.controls.TE_PROCESS_ENTER -wxTE_PASSWORD = wx.controls.TE_PASSWORD -wxTE_AUTO_URL = wx.controls.TE_AUTO_URL -wxTE_NOHIDESEL = wx.controls.TE_NOHIDESEL -wxTE_DONTWRAP = wx.controls.TE_DONTWRAP -wxTE_LINEWRAP = wx.controls.TE_LINEWRAP -wxTE_WORDWRAP = wx.controls.TE_WORDWRAP -wxTE_RICH2 = wx.controls.TE_RICH2 -wxTEXT_ALIGNMENT_DEFAULT = wx.controls.TEXT_ALIGNMENT_DEFAULT -wxTEXT_ALIGNMENT_LEFT = wx.controls.TEXT_ALIGNMENT_LEFT -wxTEXT_ALIGNMENT_CENTRE = wx.controls.TEXT_ALIGNMENT_CENTRE -wxTEXT_ALIGNMENT_CENTER = wx.controls.TEXT_ALIGNMENT_CENTER -wxTEXT_ALIGNMENT_RIGHT = wx.controls.TEXT_ALIGNMENT_RIGHT -wxTEXT_ALIGNMENT_JUSTIFIED = wx.controls.TEXT_ALIGNMENT_JUSTIFIED -wxTEXT_ATTR_TEXT_COLOUR = wx.controls.TEXT_ATTR_TEXT_COLOUR -wxTEXT_ATTR_BACKGROUND_COLOUR = wx.controls.TEXT_ATTR_BACKGROUND_COLOUR -wxTEXT_ATTR_FONT_FACE = wx.controls.TEXT_ATTR_FONT_FACE -wxTEXT_ATTR_FONT_SIZE = wx.controls.TEXT_ATTR_FONT_SIZE -wxTEXT_ATTR_FONT_WEIGHT = wx.controls.TEXT_ATTR_FONT_WEIGHT -wxTEXT_ATTR_FONT_ITALIC = wx.controls.TEXT_ATTR_FONT_ITALIC -wxTEXT_ATTR_FONT_UNDERLINE = wx.controls.TEXT_ATTR_FONT_UNDERLINE -wxTEXT_ATTR_FONT = wx.controls.TEXT_ATTR_FONT -wxTEXT_ATTR_ALIGNMENT = wx.controls.TEXT_ATTR_ALIGNMENT -wxTEXT_ATTR_LEFT_INDENT = wx.controls.TEXT_ATTR_LEFT_INDENT -wxTEXT_ATTR_RIGHT_INDENT = wx.controls.TEXT_ATTR_RIGHT_INDENT -wxTEXT_ATTR_TABS = wx.controls.TEXT_ATTR_TABS -wxTE_HT_UNKNOWN = wx.controls.TE_HT_UNKNOWN -wxTE_HT_BEFORE = wx.controls.TE_HT_BEFORE -wxTE_HT_ON_TEXT = wx.controls.TE_HT_ON_TEXT -wxTE_HT_BELOW = wx.controls.TE_HT_BELOW -wxTE_HT_BEYOND = wx.controls.TE_HT_BEYOND -wxTextAttr = wx.controls.TextAttr -wxTextAttrPtr = wx.controls.TextAttrPtr -wxTextAttr_Combine = wx.controls.TextAttr_Combine -wxTextCtrl = wx.controls.TextCtrl -wxTextCtrlPtr = wx.controls.TextCtrlPtr -wxPreTextCtrl = wx.controls.PreTextCtrl -wxEVT_COMMAND_TEXT_UPDATED = wx.controls.wxEVT_COMMAND_TEXT_UPDATED -wxEVT_COMMAND_TEXT_ENTER = wx.controls.wxEVT_COMMAND_TEXT_ENTER -wxEVT_COMMAND_TEXT_URL = wx.controls.wxEVT_COMMAND_TEXT_URL -wxEVT_COMMAND_TEXT_MAXLEN = wx.controls.wxEVT_COMMAND_TEXT_MAXLEN -wxTextUrlEvent = wx.controls.TextUrlEvent -wxTextUrlEventPtr = wx.controls.TextUrlEventPtr -wxScrollBarNameStr = wx.controls.ScrollBarNameStr -wxScrollBar = wx.controls.ScrollBar -wxScrollBarPtr = wx.controls.ScrollBarPtr -wxPreScrollBar = wx.controls.PreScrollBar -wxSPIN_BUTTON_NAME = wx.controls.SPIN_BUTTON_NAME -wxSpinCtrlNameStr = wx.controls.SpinCtrlNameStr -wxSP_HORIZONTAL = wx.controls.SP_HORIZONTAL -wxSP_VERTICAL = wx.controls.SP_VERTICAL -wxSP_ARROW_KEYS = wx.controls.SP_ARROW_KEYS -wxSP_WRAP = wx.controls.SP_WRAP -wxSpinButton = wx.controls.SpinButton -wxSpinButtonPtr = wx.controls.SpinButtonPtr -wxPreSpinButton = wx.controls.PreSpinButton -wxSpinCtrl = wx.controls.SpinCtrl -wxSpinCtrlPtr = wx.controls.SpinCtrlPtr -wxPreSpinCtrl = wx.controls.PreSpinCtrl -wxSpinEvent = wx.controls.SpinEvent -wxSpinEventPtr = wx.controls.SpinEventPtr -wxEVT_COMMAND_SPINCTRL_UPDATED = wx.controls.wxEVT_COMMAND_SPINCTRL_UPDATED -wxRadioBoxNameStr = wx.controls.RadioBoxNameStr -wxRadioButtonNameStr = wx.controls.RadioButtonNameStr -wxRadioBox = wx.controls.RadioBox -wxRadioBoxPtr = wx.controls.RadioBoxPtr -wxPreRadioBox = wx.controls.PreRadioBox -wxRadioButton = wx.controls.RadioButton -wxRadioButtonPtr = wx.controls.RadioButtonPtr -wxPreRadioButton = wx.controls.PreRadioButton -wxSliderNameStr = wx.controls.SliderNameStr -wxSlider = wx.controls.Slider -wxSliderPtr = wx.controls.SliderPtr -wxPreSlider = wx.controls.PreSlider -wxToggleButtonNameStr = wx.controls.ToggleButtonNameStr -wxEVT_COMMAND_TOGGLEBUTTON_CLICKED = wx.controls.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED -wxToggleButton = wx.controls.ToggleButton -wxToggleButtonPtr = wx.controls.ToggleButtonPtr -wxPreToggleButton = wx.controls.PreToggleButton -wxNOTEBOOK_NAME = wx.controls.NOTEBOOK_NAME -wxBookCtrl = wx.controls.BookCtrl -wxBookCtrlPtr = wx.controls.BookCtrlPtr -wxBookCtrlEvent = wx.controls.BookCtrlEvent -wxBookCtrlEventPtr = wx.controls.BookCtrlEventPtr -wxNB_FIXEDWIDTH = wx.controls.NB_FIXEDWIDTH -wxNB_TOP = wx.controls.NB_TOP -wxNB_LEFT = wx.controls.NB_LEFT -wxNB_RIGHT = wx.controls.NB_RIGHT -wxNB_BOTTOM = wx.controls.NB_BOTTOM -wxNB_MULTILINE = wx.controls.NB_MULTILINE -wxNB_HITTEST_NOWHERE = wx.controls.NB_HITTEST_NOWHERE -wxNB_HITTEST_ONICON = wx.controls.NB_HITTEST_ONICON -wxNB_HITTEST_ONLABEL = wx.controls.NB_HITTEST_ONLABEL -wxNB_HITTEST_ONITEM = wx.controls.NB_HITTEST_ONITEM -wxNotebook = wx.controls.Notebook -wxNotebookPtr = wx.controls.NotebookPtr -wxPreNotebook = wx.controls.PreNotebook -wxNotebookEvent = wx.controls.NotebookEvent -wxNotebookEventPtr = wx.controls.NotebookEventPtr -wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED = wx.controls.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED -wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING = wx.controls.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING -wxLB_DEFAULT = wx.controls.LB_DEFAULT -wxLB_TOP = wx.controls.LB_TOP -wxLB_BOTTOM = wx.controls.LB_BOTTOM -wxLB_LEFT = wx.controls.LB_LEFT -wxLB_RIGHT = wx.controls.LB_RIGHT -wxLB_ALIGN_MASK = wx.controls.LB_ALIGN_MASK -wxListbook = wx.controls.Listbook -wxListbookPtr = wx.controls.ListbookPtr -wxPreListbook = wx.controls.PreListbook -wxListbookEvent = wx.controls.ListbookEvent -wxListbookEventPtr = wx.controls.ListbookEventPtr -wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED = wx.controls.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED -wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING = wx.controls.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING -wxBookCtrlSizer = wx.controls.BookCtrlSizer -wxBookCtrlSizerPtr = wx.controls.BookCtrlSizerPtr -wxNotebookSizer = wx.controls.NotebookSizer -wxNotebookSizerPtr = wx.controls.NotebookSizerPtr -wxTOOL_STYLE_BUTTON = wx.controls.TOOL_STYLE_BUTTON -wxTOOL_STYLE_SEPARATOR = wx.controls.TOOL_STYLE_SEPARATOR -wxTOOL_STYLE_CONTROL = wx.controls.TOOL_STYLE_CONTROL -wxTB_HORIZONTAL = wx.controls.TB_HORIZONTAL -wxTB_VERTICAL = wx.controls.TB_VERTICAL -wxTB_3DBUTTONS = wx.controls.TB_3DBUTTONS -wxTB_FLAT = wx.controls.TB_FLAT -wxTB_DOCKABLE = wx.controls.TB_DOCKABLE -wxTB_NOICONS = wx.controls.TB_NOICONS -wxTB_TEXT = wx.controls.TB_TEXT -wxTB_NODIVIDER = wx.controls.TB_NODIVIDER -wxTB_NOALIGN = wx.controls.TB_NOALIGN -wxTB_HORZ_LAYOUT = wx.controls.TB_HORZ_LAYOUT -wxTB_HORZ_TEXT = wx.controls.TB_HORZ_TEXT -wxToolBarToolBase = wx.controls.ToolBarToolBase -wxToolBarToolBasePtr = wx.controls.ToolBarToolBasePtr -wxToolBarBase = wx.controls.ToolBarBase -wxToolBarBasePtr = wx.controls.ToolBarBasePtr -wxToolBar = wx.controls.ToolBar -wxToolBarPtr = wx.controls.ToolBarPtr -wxPreToolBar = wx.controls.PreToolBar -wxListCtrlNameStr = wx.controls.ListCtrlNameStr -wxLC_VRULES = wx.controls.LC_VRULES -wxLC_HRULES = wx.controls.LC_HRULES -wxLC_ICON = wx.controls.LC_ICON -wxLC_SMALL_ICON = wx.controls.LC_SMALL_ICON -wxLC_LIST = wx.controls.LC_LIST -wxLC_REPORT = wx.controls.LC_REPORT -wxLC_ALIGN_TOP = wx.controls.LC_ALIGN_TOP -wxLC_ALIGN_LEFT = wx.controls.LC_ALIGN_LEFT -wxLC_AUTOARRANGE = wx.controls.LC_AUTOARRANGE -wxLC_VIRTUAL = wx.controls.LC_VIRTUAL -wxLC_EDIT_LABELS = wx.controls.LC_EDIT_LABELS -wxLC_NO_HEADER = wx.controls.LC_NO_HEADER -wxLC_NO_SORT_HEADER = wx.controls.LC_NO_SORT_HEADER -wxLC_SINGLE_SEL = wx.controls.LC_SINGLE_SEL -wxLC_SORT_ASCENDING = wx.controls.LC_SORT_ASCENDING -wxLC_SORT_DESCENDING = wx.controls.LC_SORT_DESCENDING -wxLC_MASK_TYPE = wx.controls.LC_MASK_TYPE -wxLC_MASK_ALIGN = wx.controls.LC_MASK_ALIGN -wxLC_MASK_SORT = wx.controls.LC_MASK_SORT -wxLIST_MASK_STATE = wx.controls.LIST_MASK_STATE -wxLIST_MASK_TEXT = wx.controls.LIST_MASK_TEXT -wxLIST_MASK_IMAGE = wx.controls.LIST_MASK_IMAGE -wxLIST_MASK_DATA = wx.controls.LIST_MASK_DATA -wxLIST_SET_ITEM = wx.controls.LIST_SET_ITEM -wxLIST_MASK_WIDTH = wx.controls.LIST_MASK_WIDTH -wxLIST_MASK_FORMAT = wx.controls.LIST_MASK_FORMAT -wxLIST_STATE_DONTCARE = wx.controls.LIST_STATE_DONTCARE -wxLIST_STATE_DROPHILITED = wx.controls.LIST_STATE_DROPHILITED -wxLIST_STATE_FOCUSED = wx.controls.LIST_STATE_FOCUSED -wxLIST_STATE_SELECTED = wx.controls.LIST_STATE_SELECTED -wxLIST_STATE_CUT = wx.controls.LIST_STATE_CUT -wxLIST_STATE_DISABLED = wx.controls.LIST_STATE_DISABLED -wxLIST_STATE_FILTERED = wx.controls.LIST_STATE_FILTERED -wxLIST_STATE_INUSE = wx.controls.LIST_STATE_INUSE -wxLIST_STATE_PICKED = wx.controls.LIST_STATE_PICKED -wxLIST_STATE_SOURCE = wx.controls.LIST_STATE_SOURCE -wxLIST_HITTEST_ABOVE = wx.controls.LIST_HITTEST_ABOVE -wxLIST_HITTEST_BELOW = wx.controls.LIST_HITTEST_BELOW -wxLIST_HITTEST_NOWHERE = wx.controls.LIST_HITTEST_NOWHERE -wxLIST_HITTEST_ONITEMICON = wx.controls.LIST_HITTEST_ONITEMICON -wxLIST_HITTEST_ONITEMLABEL = wx.controls.LIST_HITTEST_ONITEMLABEL -wxLIST_HITTEST_ONITEMRIGHT = wx.controls.LIST_HITTEST_ONITEMRIGHT -wxLIST_HITTEST_ONITEMSTATEICON = wx.controls.LIST_HITTEST_ONITEMSTATEICON -wxLIST_HITTEST_TOLEFT = wx.controls.LIST_HITTEST_TOLEFT -wxLIST_HITTEST_TORIGHT = wx.controls.LIST_HITTEST_TORIGHT -wxLIST_HITTEST_ONITEM = wx.controls.LIST_HITTEST_ONITEM -wxLIST_NEXT_ABOVE = wx.controls.LIST_NEXT_ABOVE -wxLIST_NEXT_ALL = wx.controls.LIST_NEXT_ALL -wxLIST_NEXT_BELOW = wx.controls.LIST_NEXT_BELOW -wxLIST_NEXT_LEFT = wx.controls.LIST_NEXT_LEFT -wxLIST_NEXT_RIGHT = wx.controls.LIST_NEXT_RIGHT -wxLIST_ALIGN_DEFAULT = wx.controls.LIST_ALIGN_DEFAULT -wxLIST_ALIGN_LEFT = wx.controls.LIST_ALIGN_LEFT -wxLIST_ALIGN_TOP = wx.controls.LIST_ALIGN_TOP -wxLIST_ALIGN_SNAP_TO_GRID = wx.controls.LIST_ALIGN_SNAP_TO_GRID -wxLIST_FORMAT_LEFT = wx.controls.LIST_FORMAT_LEFT -wxLIST_FORMAT_RIGHT = wx.controls.LIST_FORMAT_RIGHT -wxLIST_FORMAT_CENTRE = wx.controls.LIST_FORMAT_CENTRE -wxLIST_FORMAT_CENTER = wx.controls.LIST_FORMAT_CENTER -wxLIST_AUTOSIZE = wx.controls.LIST_AUTOSIZE -wxLIST_AUTOSIZE_USEHEADER = wx.controls.LIST_AUTOSIZE_USEHEADER -wxLIST_RECT_BOUNDS = wx.controls.LIST_RECT_BOUNDS -wxLIST_RECT_ICON = wx.controls.LIST_RECT_ICON -wxLIST_RECT_LABEL = wx.controls.LIST_RECT_LABEL -wxLIST_FIND_UP = wx.controls.LIST_FIND_UP -wxLIST_FIND_DOWN = wx.controls.LIST_FIND_DOWN -wxLIST_FIND_LEFT = wx.controls.LIST_FIND_LEFT -wxLIST_FIND_RIGHT = wx.controls.LIST_FIND_RIGHT -wxListItemAttr = wx.controls.ListItemAttr -wxListItemAttrPtr = wx.controls.ListItemAttrPtr -wxListItem = wx.controls.ListItem -wxListItemPtr = wx.controls.ListItemPtr -wxListEvent = wx.controls.ListEvent -wxListEventPtr = wx.controls.ListEventPtr -wxEVT_COMMAND_LIST_BEGIN_DRAG = wx.controls.wxEVT_COMMAND_LIST_BEGIN_DRAG -wxEVT_COMMAND_LIST_BEGIN_RDRAG = wx.controls.wxEVT_COMMAND_LIST_BEGIN_RDRAG -wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT = wx.controls.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT -wxEVT_COMMAND_LIST_END_LABEL_EDIT = wx.controls.wxEVT_COMMAND_LIST_END_LABEL_EDIT -wxEVT_COMMAND_LIST_DELETE_ITEM = wx.controls.wxEVT_COMMAND_LIST_DELETE_ITEM -wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS = wx.controls.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS -wxEVT_COMMAND_LIST_GET_INFO = wx.controls.wxEVT_COMMAND_LIST_GET_INFO -wxEVT_COMMAND_LIST_SET_INFO = wx.controls.wxEVT_COMMAND_LIST_SET_INFO -wxEVT_COMMAND_LIST_ITEM_SELECTED = wx.controls.wxEVT_COMMAND_LIST_ITEM_SELECTED -wxEVT_COMMAND_LIST_ITEM_DESELECTED = wx.controls.wxEVT_COMMAND_LIST_ITEM_DESELECTED -wxEVT_COMMAND_LIST_KEY_DOWN = wx.controls.wxEVT_COMMAND_LIST_KEY_DOWN -wxEVT_COMMAND_LIST_INSERT_ITEM = wx.controls.wxEVT_COMMAND_LIST_INSERT_ITEM -wxEVT_COMMAND_LIST_COL_CLICK = wx.controls.wxEVT_COMMAND_LIST_COL_CLICK -wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK = wx.controls.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK -wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK = wx.controls.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK -wxEVT_COMMAND_LIST_ITEM_ACTIVATED = wx.controls.wxEVT_COMMAND_LIST_ITEM_ACTIVATED -wxEVT_COMMAND_LIST_CACHE_HINT = wx.controls.wxEVT_COMMAND_LIST_CACHE_HINT -wxEVT_COMMAND_LIST_COL_RIGHT_CLICK = wx.controls.wxEVT_COMMAND_LIST_COL_RIGHT_CLICK -wxEVT_COMMAND_LIST_COL_BEGIN_DRAG = wx.controls.wxEVT_COMMAND_LIST_COL_BEGIN_DRAG -wxEVT_COMMAND_LIST_COL_DRAGGING = wx.controls.wxEVT_COMMAND_LIST_COL_DRAGGING -wxEVT_COMMAND_LIST_COL_END_DRAG = wx.controls.wxEVT_COMMAND_LIST_COL_END_DRAG -wxEVT_COMMAND_LIST_ITEM_FOCUSED = wx.controls.wxEVT_COMMAND_LIST_ITEM_FOCUSED -wxListCtrl = wx.controls.ListCtrl -wxListCtrlPtr = wx.controls.ListCtrlPtr -wxPreListCtrl = wx.controls.PreListCtrl -wxListCtrl_GetClassDefaultAttributes = wx.controls.ListCtrl_GetClassDefaultAttributes -wxListView = wx.controls.ListView -wxListViewPtr = wx.controls.ListViewPtr -wxPreListView = wx.controls.PreListView -wxTreeCtrlNameStr = wx.controls.TreeCtrlNameStr -wxTR_NO_BUTTONS = wx.controls.TR_NO_BUTTONS -wxTR_HAS_BUTTONS = wx.controls.TR_HAS_BUTTONS -wxTR_NO_LINES = wx.controls.TR_NO_LINES -wxTR_LINES_AT_ROOT = wx.controls.TR_LINES_AT_ROOT -wxTR_SINGLE = wx.controls.TR_SINGLE -wxTR_MULTIPLE = wx.controls.TR_MULTIPLE -wxTR_EXTENDED = wx.controls.TR_EXTENDED -wxTR_HAS_VARIABLE_ROW_HEIGHT = wx.controls.TR_HAS_VARIABLE_ROW_HEIGHT -wxTR_EDIT_LABELS = wx.controls.TR_EDIT_LABELS -wxTR_HIDE_ROOT = wx.controls.TR_HIDE_ROOT -wxTR_ROW_LINES = wx.controls.TR_ROW_LINES -wxTR_FULL_ROW_HIGHLIGHT = wx.controls.TR_FULL_ROW_HIGHLIGHT -wxTR_DEFAULT_STYLE = wx.controls.TR_DEFAULT_STYLE -wxTR_TWIST_BUTTONS = wx.controls.TR_TWIST_BUTTONS -wxTR_MAC_BUTTONS = wx.controls.TR_MAC_BUTTONS -wxTR_AQUA_BUTTONS = wx.controls.TR_AQUA_BUTTONS -wxTreeItemIcon_Normal = wx.controls.TreeItemIcon_Normal -wxTreeItemIcon_Selected = wx.controls.TreeItemIcon_Selected -wxTreeItemIcon_Expanded = wx.controls.TreeItemIcon_Expanded -wxTreeItemIcon_SelectedExpanded = wx.controls.TreeItemIcon_SelectedExpanded -wxTreeItemIcon_Max = wx.controls.TreeItemIcon_Max -wxTREE_HITTEST_ABOVE = wx.controls.TREE_HITTEST_ABOVE -wxTREE_HITTEST_BELOW = wx.controls.TREE_HITTEST_BELOW -wxTREE_HITTEST_NOWHERE = wx.controls.TREE_HITTEST_NOWHERE -wxTREE_HITTEST_ONITEMBUTTON = wx.controls.TREE_HITTEST_ONITEMBUTTON -wxTREE_HITTEST_ONITEMICON = wx.controls.TREE_HITTEST_ONITEMICON -wxTREE_HITTEST_ONITEMINDENT = wx.controls.TREE_HITTEST_ONITEMINDENT -wxTREE_HITTEST_ONITEMLABEL = wx.controls.TREE_HITTEST_ONITEMLABEL -wxTREE_HITTEST_ONITEMRIGHT = wx.controls.TREE_HITTEST_ONITEMRIGHT -wxTREE_HITTEST_ONITEMSTATEICON = wx.controls.TREE_HITTEST_ONITEMSTATEICON -wxTREE_HITTEST_TOLEFT = wx.controls.TREE_HITTEST_TOLEFT -wxTREE_HITTEST_TORIGHT = wx.controls.TREE_HITTEST_TORIGHT -wxTREE_HITTEST_ONITEMUPPERPART = wx.controls.TREE_HITTEST_ONITEMUPPERPART -wxTREE_HITTEST_ONITEMLOWERPART = wx.controls.TREE_HITTEST_ONITEMLOWERPART -wxTREE_HITTEST_ONITEM = wx.controls.TREE_HITTEST_ONITEM -wxTreeItemId = wx.controls.TreeItemId -wxTreeItemIdPtr = wx.controls.TreeItemIdPtr -wxTreeItemData = wx.controls.TreeItemData -wxTreeItemDataPtr = wx.controls.TreeItemDataPtr -wxEVT_COMMAND_TREE_BEGIN_DRAG = wx.controls.wxEVT_COMMAND_TREE_BEGIN_DRAG -wxEVT_COMMAND_TREE_BEGIN_RDRAG = wx.controls.wxEVT_COMMAND_TREE_BEGIN_RDRAG -wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT = wx.controls.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT -wxEVT_COMMAND_TREE_END_LABEL_EDIT = wx.controls.wxEVT_COMMAND_TREE_END_LABEL_EDIT -wxEVT_COMMAND_TREE_DELETE_ITEM = wx.controls.wxEVT_COMMAND_TREE_DELETE_ITEM -wxEVT_COMMAND_TREE_GET_INFO = wx.controls.wxEVT_COMMAND_TREE_GET_INFO -wxEVT_COMMAND_TREE_SET_INFO = wx.controls.wxEVT_COMMAND_TREE_SET_INFO -wxEVT_COMMAND_TREE_ITEM_EXPANDED = wx.controls.wxEVT_COMMAND_TREE_ITEM_EXPANDED -wxEVT_COMMAND_TREE_ITEM_EXPANDING = wx.controls.wxEVT_COMMAND_TREE_ITEM_EXPANDING -wxEVT_COMMAND_TREE_ITEM_COLLAPSED = wx.controls.wxEVT_COMMAND_TREE_ITEM_COLLAPSED -wxEVT_COMMAND_TREE_ITEM_COLLAPSING = wx.controls.wxEVT_COMMAND_TREE_ITEM_COLLAPSING -wxEVT_COMMAND_TREE_SEL_CHANGED = wx.controls.wxEVT_COMMAND_TREE_SEL_CHANGED -wxEVT_COMMAND_TREE_SEL_CHANGING = wx.controls.wxEVT_COMMAND_TREE_SEL_CHANGING -wxEVT_COMMAND_TREE_KEY_DOWN = wx.controls.wxEVT_COMMAND_TREE_KEY_DOWN -wxEVT_COMMAND_TREE_ITEM_ACTIVATED = wx.controls.wxEVT_COMMAND_TREE_ITEM_ACTIVATED -wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK = wx.controls.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK -wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK = wx.controls.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK -wxEVT_COMMAND_TREE_END_DRAG = wx.controls.wxEVT_COMMAND_TREE_END_DRAG -wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK = wx.controls.wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK -wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP = wx.controls.wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP -wxTreeEvent = wx.controls.TreeEvent -wxTreeEventPtr = wx.controls.TreeEventPtr -wxTreeCtrl = wx.controls.TreeCtrl -wxTreeCtrlPtr = wx.controls.TreeCtrlPtr -wxPreTreeCtrl = wx.controls.PreTreeCtrl -wxTreeCtrl_GetClassDefaultAttributes = wx.controls.TreeCtrl_GetClassDefaultAttributes -wxDirDialogDefaultFolderStr = wx.controls.DirDialogDefaultFolderStr -wxDIRCTRL_DIR_ONLY = wx.controls.DIRCTRL_DIR_ONLY -wxDIRCTRL_SELECT_FIRST = wx.controls.DIRCTRL_SELECT_FIRST -wxDIRCTRL_SHOW_FILTERS = wx.controls.DIRCTRL_SHOW_FILTERS -wxDIRCTRL_3D_INTERNAL = wx.controls.DIRCTRL_3D_INTERNAL -wxDIRCTRL_EDIT_LABELS = wx.controls.DIRCTRL_EDIT_LABELS -wxGenericDirCtrl = wx.controls.GenericDirCtrl -wxGenericDirCtrlPtr = wx.controls.GenericDirCtrlPtr -wxPreGenericDirCtrl = wx.controls.PreGenericDirCtrl -wxDirFilterListCtrl = wx.controls.DirFilterListCtrl -wxDirFilterListCtrlPtr = wx.controls.DirFilterListCtrlPtr -wxPreDirFilterListCtrl = wx.controls.PreDirFilterListCtrl -wxPyControl = wx.controls.PyControl -wxPyControlPtr = wx.controls.PyControlPtr -wxPrePyControl = wx.controls.PrePyControl -wxFRAME_EX_CONTEXTHELP = wx.controls.FRAME_EX_CONTEXTHELP -wxDIALOG_EX_CONTEXTHELP = wx.controls.DIALOG_EX_CONTEXTHELP -wxEVT_HELP = wx.controls.wxEVT_HELP -wxEVT_DETAILED_HELP = wx.controls.wxEVT_DETAILED_HELP -wxHelpEvent = wx.controls.HelpEvent -wxHelpEventPtr = wx.controls.HelpEventPtr -wxContextHelp = wx.controls.ContextHelp -wxContextHelpPtr = wx.controls.ContextHelpPtr -wxContextHelpButton = wx.controls.ContextHelpButton -wxContextHelpButtonPtr = wx.controls.ContextHelpButtonPtr -wxHelpProvider = wx.controls.HelpProvider -wxHelpProviderPtr = wx.controls.HelpProviderPtr -wxHelpProvider_Set = wx.controls.HelpProvider_Set -wxHelpProvider_Get = wx.controls.HelpProvider_Get -wxSimpleHelpProvider = wx.controls.SimpleHelpProvider -wxSimpleHelpProviderPtr = wx.controls.SimpleHelpProviderPtr -wxDragImage = wx.controls.DragImage -wxDragImagePtr = wx.controls.DragImagePtr -wxDragIcon = wx.controls.DragIcon -wxDragString = wx.controls.DragString -wxDragTreeItem = wx.controls.DragTreeItem -wxDragListItem = wx.controls.DragListItem - - -d = globals() -for k, v in wx.controls.__dict__.iteritems(): - if k.startswith('EVT'): - d[k] = v -del d, k, v - - - diff --git a/wxPython/wxPython/core.py b/wxPython/wxPython/core.py deleted file mode 100644 index 7148cb9d94..0000000000 --- a/wxPython/wxPython/core.py +++ /dev/null @@ -1,1091 +0,0 @@ -## This file reverse renames symbols in the wx package to give -## them their wx prefix again, for backwards compatibility. -## -## Generated by ./distrib/build_renamers.py - -# This silly stuff here is so the wxPython.wx module doesn't conflict -# with the wx package. We need to import modules from the wx package -# here, then we'll put the wxPython.wx entry back in sys.modules. -import sys -_wx = None -if sys.modules.has_key('wxPython.wx'): - _wx = sys.modules['wxPython.wx'] - del sys.modules['wxPython.wx'] - -import wx.core - -sys.modules['wxPython.wx'] = _wx -del sys, _wx - - -# Now assign all the reverse-renamed names: -wxNOT_FOUND = wx.core.NOT_FOUND -wxVSCROLL = wx.core.VSCROLL -wxHSCROLL = wx.core.HSCROLL -wxCAPTION = wx.core.CAPTION -wxDOUBLE_BORDER = wx.core.DOUBLE_BORDER -wxSUNKEN_BORDER = wx.core.SUNKEN_BORDER -wxRAISED_BORDER = wx.core.RAISED_BORDER -wxBORDER = wx.core.BORDER -wxSIMPLE_BORDER = wx.core.SIMPLE_BORDER -wxSTATIC_BORDER = wx.core.STATIC_BORDER -wxTRANSPARENT_WINDOW = wx.core.TRANSPARENT_WINDOW -wxNO_BORDER = wx.core.NO_BORDER -wxTAB_TRAVERSAL = wx.core.TAB_TRAVERSAL -wxWANTS_CHARS = wx.core.WANTS_CHARS -wxPOPUP_WINDOW = wx.core.POPUP_WINDOW -wxCENTER_FRAME = wx.core.CENTER_FRAME -wxCENTRE_ON_SCREEN = wx.core.CENTRE_ON_SCREEN -wxCENTER_ON_SCREEN = wx.core.CENTER_ON_SCREEN -wxED_CLIENT_MARGIN = wx.core.ED_CLIENT_MARGIN -wxED_BUTTONS_BOTTOM = wx.core.ED_BUTTONS_BOTTOM -wxED_BUTTONS_RIGHT = wx.core.ED_BUTTONS_RIGHT -wxED_STATIC_LINE = wx.core.ED_STATIC_LINE -wxEXT_DIALOG_STYLE = wx.core.EXT_DIALOG_STYLE -wxCLIP_CHILDREN = wx.core.CLIP_CHILDREN -wxCLIP_SIBLINGS = wx.core.CLIP_SIBLINGS -wxALWAYS_SHOW_SB = wx.core.ALWAYS_SHOW_SB -wxRETAINED = wx.core.RETAINED -wxBACKINGSTORE = wx.core.BACKINGSTORE -wxCOLOURED = wx.core.COLOURED -wxFIXED_LENGTH = wx.core.FIXED_LENGTH -wxLB_NEEDED_SB = wx.core.LB_NEEDED_SB -wxLB_ALWAYS_SB = wx.core.LB_ALWAYS_SB -wxLB_SORT = wx.core.LB_SORT -wxLB_SINGLE = wx.core.LB_SINGLE -wxLB_MULTIPLE = wx.core.LB_MULTIPLE -wxLB_EXTENDED = wx.core.LB_EXTENDED -wxLB_OWNERDRAW = wx.core.LB_OWNERDRAW -wxLB_HSCROLL = wx.core.LB_HSCROLL -wxPROCESS_ENTER = wx.core.PROCESS_ENTER -wxPASSWORD = wx.core.PASSWORD -wxCB_SIMPLE = wx.core.CB_SIMPLE -wxCB_DROPDOWN = wx.core.CB_DROPDOWN -wxCB_SORT = wx.core.CB_SORT -wxCB_READONLY = wx.core.CB_READONLY -wxRA_HORIZONTAL = wx.core.RA_HORIZONTAL -wxRA_VERTICAL = wx.core.RA_VERTICAL -wxRA_SPECIFY_ROWS = wx.core.RA_SPECIFY_ROWS -wxRA_SPECIFY_COLS = wx.core.RA_SPECIFY_COLS -wxRB_GROUP = wx.core.RB_GROUP -wxRB_SINGLE = wx.core.RB_SINGLE -wxSL_HORIZONTAL = wx.core.SL_HORIZONTAL -wxSL_VERTICAL = wx.core.SL_VERTICAL -wxSL_AUTOTICKS = wx.core.SL_AUTOTICKS -wxSL_LABELS = wx.core.SL_LABELS -wxSL_LEFT = wx.core.SL_LEFT -wxSL_TOP = wx.core.SL_TOP -wxSL_RIGHT = wx.core.SL_RIGHT -wxSL_BOTTOM = wx.core.SL_BOTTOM -wxSL_BOTH = wx.core.SL_BOTH -wxSL_SELRANGE = wx.core.SL_SELRANGE -wxSB_HORIZONTAL = wx.core.SB_HORIZONTAL -wxSB_VERTICAL = wx.core.SB_VERTICAL -wxST_SIZEGRIP = wx.core.ST_SIZEGRIP -wxST_NO_AUTORESIZE = wx.core.ST_NO_AUTORESIZE -wxFLOOD_SURFACE = wx.core.FLOOD_SURFACE -wxFLOOD_BORDER = wx.core.FLOOD_BORDER -wxODDEVEN_RULE = wx.core.ODDEVEN_RULE -wxWINDING_RULE = wx.core.WINDING_RULE -wxTOOL_TOP = wx.core.TOOL_TOP -wxTOOL_BOTTOM = wx.core.TOOL_BOTTOM -wxTOOL_LEFT = wx.core.TOOL_LEFT -wxTOOL_RIGHT = wx.core.TOOL_RIGHT -wxOK = wx.core.OK -wxYES_NO = wx.core.YES_NO -wxCANCEL = wx.core.CANCEL -wxYES = wx.core.YES -wxNO = wx.core.NO -wxNO_DEFAULT = wx.core.NO_DEFAULT -wxYES_DEFAULT = wx.core.YES_DEFAULT -wxICON_EXCLAMATION = wx.core.ICON_EXCLAMATION -wxICON_HAND = wx.core.ICON_HAND -wxICON_QUESTION = wx.core.ICON_QUESTION -wxICON_INFORMATION = wx.core.ICON_INFORMATION -wxICON_STOP = wx.core.ICON_STOP -wxICON_ASTERISK = wx.core.ICON_ASTERISK -wxICON_MASK = wx.core.ICON_MASK -wxICON_WARNING = wx.core.ICON_WARNING -wxICON_ERROR = wx.core.ICON_ERROR -wxFORWARD = wx.core.FORWARD -wxBACKWARD = wx.core.BACKWARD -wxRESET = wx.core.RESET -wxHELP = wx.core.HELP -wxMORE = wx.core.MORE -wxSETUP = wx.core.SETUP -wxSIZE_AUTO_WIDTH = wx.core.SIZE_AUTO_WIDTH -wxSIZE_AUTO_HEIGHT = wx.core.SIZE_AUTO_HEIGHT -wxSIZE_AUTO = wx.core.SIZE_AUTO -wxSIZE_USE_EXISTING = wx.core.SIZE_USE_EXISTING -wxSIZE_ALLOW_MINUS_ONE = wx.core.SIZE_ALLOW_MINUS_ONE -wxPORTRAIT = wx.core.PORTRAIT -wxLANDSCAPE = wx.core.LANDSCAPE -wxPRINT_QUALITY_HIGH = wx.core.PRINT_QUALITY_HIGH -wxPRINT_QUALITY_MEDIUM = wx.core.PRINT_QUALITY_MEDIUM -wxPRINT_QUALITY_LOW = wx.core.PRINT_QUALITY_LOW -wxPRINT_QUALITY_DRAFT = wx.core.PRINT_QUALITY_DRAFT -wxID_ANY = wx.core.ID_ANY -wxID_SEPARATOR = wx.core.ID_SEPARATOR -wxID_LOWEST = wx.core.ID_LOWEST -wxID_OPEN = wx.core.ID_OPEN -wxID_CLOSE = wx.core.ID_CLOSE -wxID_NEW = wx.core.ID_NEW -wxID_SAVE = wx.core.ID_SAVE -wxID_SAVEAS = wx.core.ID_SAVEAS -wxID_REVERT = wx.core.ID_REVERT -wxID_EXIT = wx.core.ID_EXIT -wxID_UNDO = wx.core.ID_UNDO -wxID_REDO = wx.core.ID_REDO -wxID_HELP = wx.core.ID_HELP -wxID_PRINT = wx.core.ID_PRINT -wxID_PRINT_SETUP = wx.core.ID_PRINT_SETUP -wxID_PREVIEW = wx.core.ID_PREVIEW -wxID_ABOUT = wx.core.ID_ABOUT -wxID_HELP_CONTENTS = wx.core.ID_HELP_CONTENTS -wxID_HELP_COMMANDS = wx.core.ID_HELP_COMMANDS -wxID_HELP_PROCEDURES = wx.core.ID_HELP_PROCEDURES -wxID_HELP_CONTEXT = wx.core.ID_HELP_CONTEXT -wxID_CLOSE_ALL = wx.core.ID_CLOSE_ALL -wxID_PREFERENCES = wx.core.ID_PREFERENCES -wxID_CUT = wx.core.ID_CUT -wxID_COPY = wx.core.ID_COPY -wxID_PASTE = wx.core.ID_PASTE -wxID_CLEAR = wx.core.ID_CLEAR -wxID_FIND = wx.core.ID_FIND -wxID_DUPLICATE = wx.core.ID_DUPLICATE -wxID_SELECTALL = wx.core.ID_SELECTALL -wxID_DELETE = wx.core.ID_DELETE -wxID_REPLACE = wx.core.ID_REPLACE -wxID_REPLACE_ALL = wx.core.ID_REPLACE_ALL -wxID_PROPERTIES = wx.core.ID_PROPERTIES -wxID_VIEW_DETAILS = wx.core.ID_VIEW_DETAILS -wxID_VIEW_LARGEICONS = wx.core.ID_VIEW_LARGEICONS -wxID_VIEW_SMALLICONS = wx.core.ID_VIEW_SMALLICONS -wxID_VIEW_LIST = wx.core.ID_VIEW_LIST -wxID_VIEW_SORTDATE = wx.core.ID_VIEW_SORTDATE -wxID_VIEW_SORTNAME = wx.core.ID_VIEW_SORTNAME -wxID_VIEW_SORTSIZE = wx.core.ID_VIEW_SORTSIZE -wxID_VIEW_SORTTYPE = wx.core.ID_VIEW_SORTTYPE -wxID_FILE1 = wx.core.ID_FILE1 -wxID_FILE2 = wx.core.ID_FILE2 -wxID_FILE3 = wx.core.ID_FILE3 -wxID_FILE4 = wx.core.ID_FILE4 -wxID_FILE5 = wx.core.ID_FILE5 -wxID_FILE6 = wx.core.ID_FILE6 -wxID_FILE7 = wx.core.ID_FILE7 -wxID_FILE8 = wx.core.ID_FILE8 -wxID_FILE9 = wx.core.ID_FILE9 -wxID_OK = wx.core.ID_OK -wxID_CANCEL = wx.core.ID_CANCEL -wxID_APPLY = wx.core.ID_APPLY -wxID_YES = wx.core.ID_YES -wxID_NO = wx.core.ID_NO -wxID_STATIC = wx.core.ID_STATIC -wxID_FORWARD = wx.core.ID_FORWARD -wxID_BACKWARD = wx.core.ID_BACKWARD -wxID_DEFAULT = wx.core.ID_DEFAULT -wxID_MORE = wx.core.ID_MORE -wxID_SETUP = wx.core.ID_SETUP -wxID_RESET = wx.core.ID_RESET -wxID_CONTEXT_HELP = wx.core.ID_CONTEXT_HELP -wxID_YESTOALL = wx.core.ID_YESTOALL -wxID_NOTOALL = wx.core.ID_NOTOALL -wxID_ABORT = wx.core.ID_ABORT -wxID_RETRY = wx.core.ID_RETRY -wxID_IGNORE = wx.core.ID_IGNORE -wxID_HIGHEST = wx.core.ID_HIGHEST -wxOPEN = wx.core.OPEN -wxSAVE = wx.core.SAVE -wxHIDE_READONLY = wx.core.HIDE_READONLY -wxOVERWRITE_PROMPT = wx.core.OVERWRITE_PROMPT -wxFILE_MUST_EXIST = wx.core.FILE_MUST_EXIST -wxMULTIPLE = wx.core.MULTIPLE -wxCHANGE_DIR = wx.core.CHANGE_DIR -wxACCEL_ALT = wx.core.ACCEL_ALT -wxACCEL_CTRL = wx.core.ACCEL_CTRL -wxACCEL_SHIFT = wx.core.ACCEL_SHIFT -wxACCEL_NORMAL = wx.core.ACCEL_NORMAL -wxPD_AUTO_HIDE = wx.core.PD_AUTO_HIDE -wxPD_APP_MODAL = wx.core.PD_APP_MODAL -wxPD_CAN_ABORT = wx.core.PD_CAN_ABORT -wxPD_ELAPSED_TIME = wx.core.PD_ELAPSED_TIME -wxPD_ESTIMATED_TIME = wx.core.PD_ESTIMATED_TIME -wxPD_REMAINING_TIME = wx.core.PD_REMAINING_TIME -wxDD_NEW_DIR_BUTTON = wx.core.DD_NEW_DIR_BUTTON -wxDD_DEFAULT_STYLE = wx.core.DD_DEFAULT_STYLE -wxMENU_TEAROFF = wx.core.MENU_TEAROFF -wxMB_DOCKABLE = wx.core.MB_DOCKABLE -wxNO_FULL_REPAINT_ON_RESIZE = wx.core.NO_FULL_REPAINT_ON_RESIZE -wxFULL_REPAINT_ON_RESIZE = wx.core.FULL_REPAINT_ON_RESIZE -wxLI_HORIZONTAL = wx.core.LI_HORIZONTAL -wxLI_VERTICAL = wx.core.LI_VERTICAL -wxWS_EX_VALIDATE_RECURSIVELY = wx.core.WS_EX_VALIDATE_RECURSIVELY -wxWS_EX_BLOCK_EVENTS = wx.core.WS_EX_BLOCK_EVENTS -wxWS_EX_TRANSIENT = wx.core.WS_EX_TRANSIENT -wxWS_EX_THEMED_BACKGROUND = wx.core.WS_EX_THEMED_BACKGROUND -wxWS_EX_PROCESS_IDLE = wx.core.WS_EX_PROCESS_IDLE -wxWS_EX_PROCESS_UI_UPDATES = wx.core.WS_EX_PROCESS_UI_UPDATES -wxMM_TEXT = wx.core.MM_TEXT -wxMM_LOMETRIC = wx.core.MM_LOMETRIC -wxMM_HIMETRIC = wx.core.MM_HIMETRIC -wxMM_LOENGLISH = wx.core.MM_LOENGLISH -wxMM_HIENGLISH = wx.core.MM_HIENGLISH -wxMM_TWIPS = wx.core.MM_TWIPS -wxMM_ISOTROPIC = wx.core.MM_ISOTROPIC -wxMM_ANISOTROPIC = wx.core.MM_ANISOTROPIC -wxMM_POINTS = wx.core.MM_POINTS -wxMM_METRIC = wx.core.MM_METRIC -wxCENTRE = wx.core.CENTRE -wxCENTER = wx.core.CENTER -wxHORIZONTAL = wx.core.HORIZONTAL -wxVERTICAL = wx.core.VERTICAL -wxBOTH = wx.core.BOTH -wxLEFT = wx.core.LEFT -wxRIGHT = wx.core.RIGHT -wxUP = wx.core.UP -wxDOWN = wx.core.DOWN -wxTOP = wx.core.TOP -wxBOTTOM = wx.core.BOTTOM -wxNORTH = wx.core.NORTH -wxSOUTH = wx.core.SOUTH -wxWEST = wx.core.WEST -wxEAST = wx.core.EAST -wxALL = wx.core.ALL -wxALIGN_NOT = wx.core.ALIGN_NOT -wxALIGN_CENTER_HORIZONTAL = wx.core.ALIGN_CENTER_HORIZONTAL -wxALIGN_CENTRE_HORIZONTAL = wx.core.ALIGN_CENTRE_HORIZONTAL -wxALIGN_LEFT = wx.core.ALIGN_LEFT -wxALIGN_TOP = wx.core.ALIGN_TOP -wxALIGN_RIGHT = wx.core.ALIGN_RIGHT -wxALIGN_BOTTOM = wx.core.ALIGN_BOTTOM -wxALIGN_CENTER_VERTICAL = wx.core.ALIGN_CENTER_VERTICAL -wxALIGN_CENTRE_VERTICAL = wx.core.ALIGN_CENTRE_VERTICAL -wxALIGN_CENTER = wx.core.ALIGN_CENTER -wxALIGN_CENTRE = wx.core.ALIGN_CENTRE -wxALIGN_MASK = wx.core.ALIGN_MASK -wxSTRETCH_NOT = wx.core.STRETCH_NOT -wxSHRINK = wx.core.SHRINK -wxGROW = wx.core.GROW -wxEXPAND = wx.core.EXPAND -wxSHAPED = wx.core.SHAPED -wxFIXED_MINSIZE = wx.core.FIXED_MINSIZE -wxTILE = wx.core.TILE -wxADJUST_MINSIZE = wx.core.ADJUST_MINSIZE -wxBORDER_DEFAULT = wx.core.BORDER_DEFAULT -wxBORDER_NONE = wx.core.BORDER_NONE -wxBORDER_STATIC = wx.core.BORDER_STATIC -wxBORDER_SIMPLE = wx.core.BORDER_SIMPLE -wxBORDER_RAISED = wx.core.BORDER_RAISED -wxBORDER_SUNKEN = wx.core.BORDER_SUNKEN -wxBORDER_DOUBLE = wx.core.BORDER_DOUBLE -wxBORDER_MASK = wx.core.BORDER_MASK -wxDEFAULT = wx.core.DEFAULT -wxDECORATIVE = wx.core.DECORATIVE -wxROMAN = wx.core.ROMAN -wxSCRIPT = wx.core.SCRIPT -wxSWISS = wx.core.SWISS -wxMODERN = wx.core.MODERN -wxTELETYPE = wx.core.TELETYPE -wxVARIABLE = wx.core.VARIABLE -wxFIXED = wx.core.FIXED -wxNORMAL = wx.core.NORMAL -wxLIGHT = wx.core.LIGHT -wxBOLD = wx.core.BOLD -wxITALIC = wx.core.ITALIC -wxSLANT = wx.core.SLANT -wxSOLID = wx.core.SOLID -wxDOT = wx.core.DOT -wxLONG_DASH = wx.core.LONG_DASH -wxSHORT_DASH = wx.core.SHORT_DASH -wxDOT_DASH = wx.core.DOT_DASH -wxUSER_DASH = wx.core.USER_DASH -wxTRANSPARENT = wx.core.TRANSPARENT -wxSTIPPLE = wx.core.STIPPLE -wxBDIAGONAL_HATCH = wx.core.BDIAGONAL_HATCH -wxCROSSDIAG_HATCH = wx.core.CROSSDIAG_HATCH -wxFDIAGONAL_HATCH = wx.core.FDIAGONAL_HATCH -wxCROSS_HATCH = wx.core.CROSS_HATCH -wxHORIZONTAL_HATCH = wx.core.HORIZONTAL_HATCH -wxVERTICAL_HATCH = wx.core.VERTICAL_HATCH -wxJOIN_BEVEL = wx.core.JOIN_BEVEL -wxJOIN_MITER = wx.core.JOIN_MITER -wxJOIN_ROUND = wx.core.JOIN_ROUND -wxCAP_ROUND = wx.core.CAP_ROUND -wxCAP_PROJECTING = wx.core.CAP_PROJECTING -wxCAP_BUTT = wx.core.CAP_BUTT -wxCLEAR = wx.core.CLEAR -wxXOR = wx.core.XOR -wxINVERT = wx.core.INVERT -wxOR_REVERSE = wx.core.OR_REVERSE -wxAND_REVERSE = wx.core.AND_REVERSE -wxCOPY = wx.core.COPY -wxAND = wx.core.AND -wxAND_INVERT = wx.core.AND_INVERT -wxNO_OP = wx.core.NO_OP -wxNOR = wx.core.NOR -wxEQUIV = wx.core.EQUIV -wxSRC_INVERT = wx.core.SRC_INVERT -wxOR_INVERT = wx.core.OR_INVERT -wxNAND = wx.core.NAND -wxOR = wx.core.OR -wxSET = wx.core.SET -WXK_BACK = wx.core.WXK_BACK -WXK_TAB = wx.core.WXK_TAB -WXK_RETURN = wx.core.WXK_RETURN -WXK_ESCAPE = wx.core.WXK_ESCAPE -WXK_SPACE = wx.core.WXK_SPACE -WXK_DELETE = wx.core.WXK_DELETE -WXK_START = wx.core.WXK_START -WXK_LBUTTON = wx.core.WXK_LBUTTON -WXK_RBUTTON = wx.core.WXK_RBUTTON -WXK_CANCEL = wx.core.WXK_CANCEL -WXK_MBUTTON = wx.core.WXK_MBUTTON -WXK_CLEAR = wx.core.WXK_CLEAR -WXK_SHIFT = wx.core.WXK_SHIFT -WXK_ALT = wx.core.WXK_ALT -WXK_CONTROL = wx.core.WXK_CONTROL -WXK_MENU = wx.core.WXK_MENU -WXK_PAUSE = wx.core.WXK_PAUSE -WXK_CAPITAL = wx.core.WXK_CAPITAL -WXK_PRIOR = wx.core.WXK_PRIOR -WXK_NEXT = wx.core.WXK_NEXT -WXK_END = wx.core.WXK_END -WXK_HOME = wx.core.WXK_HOME -WXK_LEFT = wx.core.WXK_LEFT -WXK_UP = wx.core.WXK_UP -WXK_RIGHT = wx.core.WXK_RIGHT -WXK_DOWN = wx.core.WXK_DOWN -WXK_SELECT = wx.core.WXK_SELECT -WXK_PRINT = wx.core.WXK_PRINT -WXK_EXECUTE = wx.core.WXK_EXECUTE -WXK_SNAPSHOT = wx.core.WXK_SNAPSHOT -WXK_INSERT = wx.core.WXK_INSERT -WXK_HELP = wx.core.WXK_HELP -WXK_NUMPAD0 = wx.core.WXK_NUMPAD0 -WXK_NUMPAD1 = wx.core.WXK_NUMPAD1 -WXK_NUMPAD2 = wx.core.WXK_NUMPAD2 -WXK_NUMPAD3 = wx.core.WXK_NUMPAD3 -WXK_NUMPAD4 = wx.core.WXK_NUMPAD4 -WXK_NUMPAD5 = wx.core.WXK_NUMPAD5 -WXK_NUMPAD6 = wx.core.WXK_NUMPAD6 -WXK_NUMPAD7 = wx.core.WXK_NUMPAD7 -WXK_NUMPAD8 = wx.core.WXK_NUMPAD8 -WXK_NUMPAD9 = wx.core.WXK_NUMPAD9 -WXK_MULTIPLY = wx.core.WXK_MULTIPLY -WXK_ADD = wx.core.WXK_ADD -WXK_SEPARATOR = wx.core.WXK_SEPARATOR -WXK_SUBTRACT = wx.core.WXK_SUBTRACT -WXK_DECIMAL = wx.core.WXK_DECIMAL -WXK_DIVIDE = wx.core.WXK_DIVIDE -WXK_F1 = wx.core.WXK_F1 -WXK_F2 = wx.core.WXK_F2 -WXK_F3 = wx.core.WXK_F3 -WXK_F4 = wx.core.WXK_F4 -WXK_F5 = wx.core.WXK_F5 -WXK_F6 = wx.core.WXK_F6 -WXK_F7 = wx.core.WXK_F7 -WXK_F8 = wx.core.WXK_F8 -WXK_F9 = wx.core.WXK_F9 -WXK_F10 = wx.core.WXK_F10 -WXK_F11 = wx.core.WXK_F11 -WXK_F12 = wx.core.WXK_F12 -WXK_F13 = wx.core.WXK_F13 -WXK_F14 = wx.core.WXK_F14 -WXK_F15 = wx.core.WXK_F15 -WXK_F16 = wx.core.WXK_F16 -WXK_F17 = wx.core.WXK_F17 -WXK_F18 = wx.core.WXK_F18 -WXK_F19 = wx.core.WXK_F19 -WXK_F20 = wx.core.WXK_F20 -WXK_F21 = wx.core.WXK_F21 -WXK_F22 = wx.core.WXK_F22 -WXK_F23 = wx.core.WXK_F23 -WXK_F24 = wx.core.WXK_F24 -WXK_NUMLOCK = wx.core.WXK_NUMLOCK -WXK_SCROLL = wx.core.WXK_SCROLL -WXK_PAGEUP = wx.core.WXK_PAGEUP -WXK_PAGEDOWN = wx.core.WXK_PAGEDOWN -WXK_NUMPAD_SPACE = wx.core.WXK_NUMPAD_SPACE -WXK_NUMPAD_TAB = wx.core.WXK_NUMPAD_TAB -WXK_NUMPAD_ENTER = wx.core.WXK_NUMPAD_ENTER -WXK_NUMPAD_F1 = wx.core.WXK_NUMPAD_F1 -WXK_NUMPAD_F2 = wx.core.WXK_NUMPAD_F2 -WXK_NUMPAD_F3 = wx.core.WXK_NUMPAD_F3 -WXK_NUMPAD_F4 = wx.core.WXK_NUMPAD_F4 -WXK_NUMPAD_HOME = wx.core.WXK_NUMPAD_HOME -WXK_NUMPAD_LEFT = wx.core.WXK_NUMPAD_LEFT -WXK_NUMPAD_UP = wx.core.WXK_NUMPAD_UP -WXK_NUMPAD_RIGHT = wx.core.WXK_NUMPAD_RIGHT -WXK_NUMPAD_DOWN = wx.core.WXK_NUMPAD_DOWN -WXK_NUMPAD_PRIOR = wx.core.WXK_NUMPAD_PRIOR -WXK_NUMPAD_PAGEUP = wx.core.WXK_NUMPAD_PAGEUP -WXK_NUMPAD_NEXT = wx.core.WXK_NUMPAD_NEXT -WXK_NUMPAD_PAGEDOWN = wx.core.WXK_NUMPAD_PAGEDOWN -WXK_NUMPAD_END = wx.core.WXK_NUMPAD_END -WXK_NUMPAD_BEGIN = wx.core.WXK_NUMPAD_BEGIN -WXK_NUMPAD_INSERT = wx.core.WXK_NUMPAD_INSERT -WXK_NUMPAD_DELETE = wx.core.WXK_NUMPAD_DELETE -WXK_NUMPAD_EQUAL = wx.core.WXK_NUMPAD_EQUAL -WXK_NUMPAD_MULTIPLY = wx.core.WXK_NUMPAD_MULTIPLY -WXK_NUMPAD_ADD = wx.core.WXK_NUMPAD_ADD -WXK_NUMPAD_SEPARATOR = wx.core.WXK_NUMPAD_SEPARATOR -WXK_NUMPAD_SUBTRACT = wx.core.WXK_NUMPAD_SUBTRACT -WXK_NUMPAD_DECIMAL = wx.core.WXK_NUMPAD_DECIMAL -WXK_NUMPAD_DIVIDE = wx.core.WXK_NUMPAD_DIVIDE -WXK_WINDOWS_LEFT = wx.core.WXK_WINDOWS_LEFT -WXK_WINDOWS_RIGHT = wx.core.WXK_WINDOWS_RIGHT -WXK_WINDOWS_MENU = wx.core.WXK_WINDOWS_MENU -wxPAPER_NONE = wx.core.PAPER_NONE -wxPAPER_LETTER = wx.core.PAPER_LETTER -wxPAPER_LEGAL = wx.core.PAPER_LEGAL -wxPAPER_A4 = wx.core.PAPER_A4 -wxPAPER_CSHEET = wx.core.PAPER_CSHEET -wxPAPER_DSHEET = wx.core.PAPER_DSHEET -wxPAPER_ESHEET = wx.core.PAPER_ESHEET -wxPAPER_LETTERSMALL = wx.core.PAPER_LETTERSMALL -wxPAPER_TABLOID = wx.core.PAPER_TABLOID -wxPAPER_LEDGER = wx.core.PAPER_LEDGER -wxPAPER_STATEMENT = wx.core.PAPER_STATEMENT -wxPAPER_EXECUTIVE = wx.core.PAPER_EXECUTIVE -wxPAPER_A3 = wx.core.PAPER_A3 -wxPAPER_A4SMALL = wx.core.PAPER_A4SMALL -wxPAPER_A5 = wx.core.PAPER_A5 -wxPAPER_B4 = wx.core.PAPER_B4 -wxPAPER_B5 = wx.core.PAPER_B5 -wxPAPER_FOLIO = wx.core.PAPER_FOLIO -wxPAPER_QUARTO = wx.core.PAPER_QUARTO -wxPAPER_10X14 = wx.core.PAPER_10X14 -wxPAPER_11X17 = wx.core.PAPER_11X17 -wxPAPER_NOTE = wx.core.PAPER_NOTE -wxPAPER_ENV_9 = wx.core.PAPER_ENV_9 -wxPAPER_ENV_10 = wx.core.PAPER_ENV_10 -wxPAPER_ENV_11 = wx.core.PAPER_ENV_11 -wxPAPER_ENV_12 = wx.core.PAPER_ENV_12 -wxPAPER_ENV_14 = wx.core.PAPER_ENV_14 -wxPAPER_ENV_DL = wx.core.PAPER_ENV_DL -wxPAPER_ENV_C5 = wx.core.PAPER_ENV_C5 -wxPAPER_ENV_C3 = wx.core.PAPER_ENV_C3 -wxPAPER_ENV_C4 = wx.core.PAPER_ENV_C4 -wxPAPER_ENV_C6 = wx.core.PAPER_ENV_C6 -wxPAPER_ENV_C65 = wx.core.PAPER_ENV_C65 -wxPAPER_ENV_B4 = wx.core.PAPER_ENV_B4 -wxPAPER_ENV_B5 = wx.core.PAPER_ENV_B5 -wxPAPER_ENV_B6 = wx.core.PAPER_ENV_B6 -wxPAPER_ENV_ITALY = wx.core.PAPER_ENV_ITALY -wxPAPER_ENV_MONARCH = wx.core.PAPER_ENV_MONARCH -wxPAPER_ENV_PERSONAL = wx.core.PAPER_ENV_PERSONAL -wxPAPER_FANFOLD_US = wx.core.PAPER_FANFOLD_US -wxPAPER_FANFOLD_STD_GERMAN = wx.core.PAPER_FANFOLD_STD_GERMAN -wxPAPER_FANFOLD_LGL_GERMAN = wx.core.PAPER_FANFOLD_LGL_GERMAN -wxPAPER_ISO_B4 = wx.core.PAPER_ISO_B4 -wxPAPER_JAPANESE_POSTCARD = wx.core.PAPER_JAPANESE_POSTCARD -wxPAPER_9X11 = wx.core.PAPER_9X11 -wxPAPER_10X11 = wx.core.PAPER_10X11 -wxPAPER_15X11 = wx.core.PAPER_15X11 -wxPAPER_ENV_INVITE = wx.core.PAPER_ENV_INVITE -wxPAPER_LETTER_EXTRA = wx.core.PAPER_LETTER_EXTRA -wxPAPER_LEGAL_EXTRA = wx.core.PAPER_LEGAL_EXTRA -wxPAPER_TABLOID_EXTRA = wx.core.PAPER_TABLOID_EXTRA -wxPAPER_A4_EXTRA = wx.core.PAPER_A4_EXTRA -wxPAPER_LETTER_TRANSVERSE = wx.core.PAPER_LETTER_TRANSVERSE -wxPAPER_A4_TRANSVERSE = wx.core.PAPER_A4_TRANSVERSE -wxPAPER_LETTER_EXTRA_TRANSVERSE = wx.core.PAPER_LETTER_EXTRA_TRANSVERSE -wxPAPER_A_PLUS = wx.core.PAPER_A_PLUS -wxPAPER_B_PLUS = wx.core.PAPER_B_PLUS -wxPAPER_LETTER_PLUS = wx.core.PAPER_LETTER_PLUS -wxPAPER_A4_PLUS = wx.core.PAPER_A4_PLUS -wxPAPER_A5_TRANSVERSE = wx.core.PAPER_A5_TRANSVERSE -wxPAPER_B5_TRANSVERSE = wx.core.PAPER_B5_TRANSVERSE -wxPAPER_A3_EXTRA = wx.core.PAPER_A3_EXTRA -wxPAPER_A5_EXTRA = wx.core.PAPER_A5_EXTRA -wxPAPER_B5_EXTRA = wx.core.PAPER_B5_EXTRA -wxPAPER_A2 = wx.core.PAPER_A2 -wxPAPER_A3_TRANSVERSE = wx.core.PAPER_A3_TRANSVERSE -wxPAPER_A3_EXTRA_TRANSVERSE = wx.core.PAPER_A3_EXTRA_TRANSVERSE -wxDUPLEX_SIMPLEX = wx.core.DUPLEX_SIMPLEX -wxDUPLEX_HORIZONTAL = wx.core.DUPLEX_HORIZONTAL -wxDUPLEX_VERTICAL = wx.core.DUPLEX_VERTICAL -wxITEM_SEPARATOR = wx.core.ITEM_SEPARATOR -wxITEM_NORMAL = wx.core.ITEM_NORMAL -wxITEM_CHECK = wx.core.ITEM_CHECK -wxITEM_RADIO = wx.core.ITEM_RADIO -wxITEM_MAX = wx.core.ITEM_MAX -wxHT_NOWHERE = wx.core.HT_NOWHERE -wxHT_SCROLLBAR_FIRST = wx.core.HT_SCROLLBAR_FIRST -wxHT_SCROLLBAR_ARROW_LINE_1 = wx.core.HT_SCROLLBAR_ARROW_LINE_1 -wxHT_SCROLLBAR_ARROW_LINE_2 = wx.core.HT_SCROLLBAR_ARROW_LINE_2 -wxHT_SCROLLBAR_ARROW_PAGE_1 = wx.core.HT_SCROLLBAR_ARROW_PAGE_1 -wxHT_SCROLLBAR_ARROW_PAGE_2 = wx.core.HT_SCROLLBAR_ARROW_PAGE_2 -wxHT_SCROLLBAR_THUMB = wx.core.HT_SCROLLBAR_THUMB -wxHT_SCROLLBAR_BAR_1 = wx.core.HT_SCROLLBAR_BAR_1 -wxHT_SCROLLBAR_BAR_2 = wx.core.HT_SCROLLBAR_BAR_2 -wxHT_SCROLLBAR_LAST = wx.core.HT_SCROLLBAR_LAST -wxHT_WINDOW_OUTSIDE = wx.core.HT_WINDOW_OUTSIDE -wxHT_WINDOW_INSIDE = wx.core.HT_WINDOW_INSIDE -wxHT_WINDOW_VERT_SCROLLBAR = wx.core.HT_WINDOW_VERT_SCROLLBAR -wxHT_WINDOW_HORZ_SCROLLBAR = wx.core.HT_WINDOW_HORZ_SCROLLBAR -wxHT_WINDOW_CORNER = wx.core.HT_WINDOW_CORNER -wxHT_MAX = wx.core.HT_MAX -wxMOD_NONE = wx.core.MOD_NONE -wxMOD_ALT = wx.core.MOD_ALT -wxMOD_CONTROL = wx.core.MOD_CONTROL -wxMOD_SHIFT = wx.core.MOD_SHIFT -wxMOD_WIN = wx.core.MOD_WIN -wxUPDATE_UI_NONE = wx.core.UPDATE_UI_NONE -wxUPDATE_UI_RECURSE = wx.core.UPDATE_UI_RECURSE -wxUPDATE_UI_FROMIDLE = wx.core.UPDATE_UI_FROMIDLE -wxEmptyString = wx.core.EmptyString -wxObject = wx.core.Object -wxObjectPtr = wx.core.ObjectPtr -wxBITMAP_TYPE_INVALID = wx.core.BITMAP_TYPE_INVALID -wxBITMAP_TYPE_BMP = wx.core.BITMAP_TYPE_BMP -wxBITMAP_TYPE_ICO = wx.core.BITMAP_TYPE_ICO -wxBITMAP_TYPE_CUR = wx.core.BITMAP_TYPE_CUR -wxBITMAP_TYPE_XBM = wx.core.BITMAP_TYPE_XBM -wxBITMAP_TYPE_XBM_DATA = wx.core.BITMAP_TYPE_XBM_DATA -wxBITMAP_TYPE_XPM = wx.core.BITMAP_TYPE_XPM -wxBITMAP_TYPE_XPM_DATA = wx.core.BITMAP_TYPE_XPM_DATA -wxBITMAP_TYPE_TIF = wx.core.BITMAP_TYPE_TIF -wxBITMAP_TYPE_GIF = wx.core.BITMAP_TYPE_GIF -wxBITMAP_TYPE_PNG = wx.core.BITMAP_TYPE_PNG -wxBITMAP_TYPE_JPEG = wx.core.BITMAP_TYPE_JPEG -wxBITMAP_TYPE_PNM = wx.core.BITMAP_TYPE_PNM -wxBITMAP_TYPE_PCX = wx.core.BITMAP_TYPE_PCX -wxBITMAP_TYPE_PICT = wx.core.BITMAP_TYPE_PICT -wxBITMAP_TYPE_ICON = wx.core.BITMAP_TYPE_ICON -wxBITMAP_TYPE_ANI = wx.core.BITMAP_TYPE_ANI -wxBITMAP_TYPE_IFF = wx.core.BITMAP_TYPE_IFF -wxBITMAP_TYPE_MACCURSOR = wx.core.BITMAP_TYPE_MACCURSOR -wxBITMAP_TYPE_ANY = wx.core.BITMAP_TYPE_ANY -wxCURSOR_NONE = wx.core.CURSOR_NONE -wxCURSOR_ARROW = wx.core.CURSOR_ARROW -wxCURSOR_RIGHT_ARROW = wx.core.CURSOR_RIGHT_ARROW -wxCURSOR_BULLSEYE = wx.core.CURSOR_BULLSEYE -wxCURSOR_CHAR = wx.core.CURSOR_CHAR -wxCURSOR_CROSS = wx.core.CURSOR_CROSS -wxCURSOR_HAND = wx.core.CURSOR_HAND -wxCURSOR_IBEAM = wx.core.CURSOR_IBEAM -wxCURSOR_LEFT_BUTTON = wx.core.CURSOR_LEFT_BUTTON -wxCURSOR_MAGNIFIER = wx.core.CURSOR_MAGNIFIER -wxCURSOR_MIDDLE_BUTTON = wx.core.CURSOR_MIDDLE_BUTTON -wxCURSOR_NO_ENTRY = wx.core.CURSOR_NO_ENTRY -wxCURSOR_PAINT_BRUSH = wx.core.CURSOR_PAINT_BRUSH -wxCURSOR_PENCIL = wx.core.CURSOR_PENCIL -wxCURSOR_POINT_LEFT = wx.core.CURSOR_POINT_LEFT -wxCURSOR_POINT_RIGHT = wx.core.CURSOR_POINT_RIGHT -wxCURSOR_QUESTION_ARROW = wx.core.CURSOR_QUESTION_ARROW -wxCURSOR_RIGHT_BUTTON = wx.core.CURSOR_RIGHT_BUTTON -wxCURSOR_SIZENESW = wx.core.CURSOR_SIZENESW -wxCURSOR_SIZENS = wx.core.CURSOR_SIZENS -wxCURSOR_SIZENWSE = wx.core.CURSOR_SIZENWSE -wxCURSOR_SIZEWE = wx.core.CURSOR_SIZEWE -wxCURSOR_SIZING = wx.core.CURSOR_SIZING -wxCURSOR_SPRAYCAN = wx.core.CURSOR_SPRAYCAN -wxCURSOR_WAIT = wx.core.CURSOR_WAIT -wxCURSOR_WATCH = wx.core.CURSOR_WATCH -wxCURSOR_BLANK = wx.core.CURSOR_BLANK -wxCURSOR_DEFAULT = wx.core.CURSOR_DEFAULT -wxCURSOR_COPY_ARROW = wx.core.CURSOR_COPY_ARROW -wxCURSOR_ARROWWAIT = wx.core.CURSOR_ARROWWAIT -wxCURSOR_MAX = wx.core.CURSOR_MAX -wxSize = wx.core.Size -wxSizePtr = wx.core.SizePtr -wxRealPoint = wx.core.RealPoint -wxRealPointPtr = wx.core.RealPointPtr -wxPoint = wx.core.Point -wxPointPtr = wx.core.PointPtr -wxRect = wx.core.Rect -wxRectPtr = wx.core.RectPtr -wxRectPP = wx.core.RectPP -wxRectPS = wx.core.RectPS -wxIntersectRect = wx.core.IntersectRect -wxPoint2D = wx.core.Point2D -wxPoint2DPtr = wx.core.Point2DPtr -wxPoint2DCopy = wx.core.Point2DCopy -wxPoint2DFromPoint = wx.core.Point2DFromPoint -wxDefaultPosition = wx.core.DefaultPosition -wxDefaultSize = wx.core.DefaultSize -wxFromStart = wx.core.FromStart -wxFromCurrent = wx.core.FromCurrent -wxFromEnd = wx.core.FromEnd -wxInputStream = wx.core.InputStream -wxInputStreamPtr = wx.core.InputStreamPtr -wxOutputStream = wx.core.OutputStream -wxOutputStreamPtr = wx.core.OutputStreamPtr -wxFSFile = wx.core.FSFile -wxFSFilePtr = wx.core.FSFilePtr -wxCPPFileSystemHandler = wx.core.CPPFileSystemHandler -wxCPPFileSystemHandlerPtr = wx.core.CPPFileSystemHandlerPtr -wxFileSystemHandler = wx.core.FileSystemHandler -wxFileSystemHandlerPtr = wx.core.FileSystemHandlerPtr -wxFileSystem = wx.core.FileSystem -wxFileSystemPtr = wx.core.FileSystemPtr -wxFileSystem_AddHandler = wx.core.FileSystem_AddHandler -wxFileSystem_CleanUpHandlers = wx.core.FileSystem_CleanUpHandlers -wxFileSystem_FileNameToURL = wx.core.FileSystem_FileNameToURL -wxFileSystem_URLToFileName = wx.core.FileSystem_URLToFileName -wxInternetFSHandler = wx.core.InternetFSHandler -wxInternetFSHandlerPtr = wx.core.InternetFSHandlerPtr -wxZipFSHandler = wx.core.ZipFSHandler -wxZipFSHandlerPtr = wx.core.ZipFSHandlerPtr -__wxMemoryFSHandler_AddFile_wxImage = wx.core.__wxMemoryFSHandler_AddFile_wxImage -__wxMemoryFSHandler_AddFile_wxBitmap = wx.core.__wxMemoryFSHandler_AddFile_wxBitmap -__wxMemoryFSHandler_AddFile_Data = wx.core.__wxMemoryFSHandler_AddFile_Data -wxMemoryFSHandler = wx.core.MemoryFSHandler -wxMemoryFSHandlerPtr = wx.core.MemoryFSHandlerPtr -wxMemoryFSHandler_RemoveFile = wx.core.MemoryFSHandler_RemoveFile -wxImageHandler = wx.core.ImageHandler -wxImageHandlerPtr = wx.core.ImageHandlerPtr -wxImageHistogram = wx.core.ImageHistogram -wxImageHistogramPtr = wx.core.ImageHistogramPtr -wxImageHistogram_MakeKey = wx.core.ImageHistogram_MakeKey -wxImage = wx.core.Image -wxImagePtr = wx.core.ImagePtr -wxImageFromMime = wx.core.ImageFromMime -wxImageFromStream = wx.core.ImageFromStream -wxImageFromStreamMime = wx.core.ImageFromStreamMime -wxEmptyImage = wx.core.EmptyImage -wxEmptyImage = wx.core.EmptyImage -wxImageFromBitmap = wx.core.ImageFromBitmap -wxImageFromData = wx.core.ImageFromData -wxImage_CanRead = wx.core.Image_CanRead -wxImage_GetImageCount = wx.core.Image_GetImageCount -wxImage_CanReadStream = wx.core.Image_CanReadStream -wxImage_AddHandler = wx.core.Image_AddHandler -wxImage_InsertHandler = wx.core.Image_InsertHandler -wxImage_RemoveHandler = wx.core.Image_RemoveHandler -wxImage_GetImageExtWildcard = wx.core.Image_GetImageExtWildcard -wxInitAllImageHandlers = wx.core.InitAllImageHandlers -wxNullImage = wx.core.NullImage -wxIMAGE_OPTION_BMP_FORMAT = wx.core.IMAGE_OPTION_BMP_FORMAT -wxIMAGE_OPTION_CUR_HOTSPOT_X = wx.core.IMAGE_OPTION_CUR_HOTSPOT_X -wxIMAGE_OPTION_CUR_HOTSPOT_Y = wx.core.IMAGE_OPTION_CUR_HOTSPOT_Y -wxIMAGE_OPTION_RESOLUTION = wx.core.IMAGE_OPTION_RESOLUTION -wxIMAGE_OPTION_RESOLUTIONUNIT = wx.core.IMAGE_OPTION_RESOLUTIONUNIT -wxIMAGE_RESOLUTION_INCHES = wx.core.IMAGE_RESOLUTION_INCHES -wxIMAGE_RESOLUTION_CM = wx.core.IMAGE_RESOLUTION_CM -wxBMP_24BPP = wx.core.BMP_24BPP -wxBMP_8BPP = wx.core.BMP_8BPP -wxBMP_8BPP_GREY = wx.core.BMP_8BPP_GREY -wxBMP_8BPP_GRAY = wx.core.BMP_8BPP_GRAY -wxBMP_8BPP_RED = wx.core.BMP_8BPP_RED -wxBMP_8BPP_PALETTE = wx.core.BMP_8BPP_PALETTE -wxBMP_4BPP = wx.core.BMP_4BPP -wxBMP_1BPP = wx.core.BMP_1BPP -wxBMP_1BPP_BW = wx.core.BMP_1BPP_BW -wxBMPHandler = wx.core.BMPHandler -wxBMPHandlerPtr = wx.core.BMPHandlerPtr -wxICOHandler = wx.core.ICOHandler -wxICOHandlerPtr = wx.core.ICOHandlerPtr -wxCURHandler = wx.core.CURHandler -wxCURHandlerPtr = wx.core.CURHandlerPtr -wxANIHandler = wx.core.ANIHandler -wxANIHandlerPtr = wx.core.ANIHandlerPtr -wxPNGHandler = wx.core.PNGHandler -wxPNGHandlerPtr = wx.core.PNGHandlerPtr -wxGIFHandler = wx.core.GIFHandler -wxGIFHandlerPtr = wx.core.GIFHandlerPtr -wxPCXHandler = wx.core.PCXHandler -wxPCXHandlerPtr = wx.core.PCXHandlerPtr -wxJPEGHandler = wx.core.JPEGHandler -wxJPEGHandlerPtr = wx.core.JPEGHandlerPtr -wxPNMHandler = wx.core.PNMHandler -wxPNMHandlerPtr = wx.core.PNMHandlerPtr -wxXPMHandler = wx.core.XPMHandler -wxXPMHandlerPtr = wx.core.XPMHandlerPtr -wxTIFFHandler = wx.core.TIFFHandler -wxTIFFHandlerPtr = wx.core.TIFFHandlerPtr -wxEvtHandler = wx.core.EvtHandler -wxEvtHandlerPtr = wx.core.EvtHandlerPtr -wxEVENT_PROPAGATE_NONE = wx.core.EVENT_PROPAGATE_NONE -wxEVENT_PROPAGATE_MAX = wx.core.EVENT_PROPAGATE_MAX -wxNewEventType = wx.core.NewEventType -wxEVT_NULL = wx.core.wxEVT_NULL -wxEVT_FIRST = wx.core.wxEVT_FIRST -wxEVT_USER_FIRST = wx.core.wxEVT_USER_FIRST -wxEVT_COMMAND_BUTTON_CLICKED = wx.core.wxEVT_COMMAND_BUTTON_CLICKED -wxEVT_COMMAND_CHECKBOX_CLICKED = wx.core.wxEVT_COMMAND_CHECKBOX_CLICKED -wxEVT_COMMAND_CHOICE_SELECTED = wx.core.wxEVT_COMMAND_CHOICE_SELECTED -wxEVT_COMMAND_LISTBOX_SELECTED = wx.core.wxEVT_COMMAND_LISTBOX_SELECTED -wxEVT_COMMAND_LISTBOX_DOUBLECLICKED = wx.core.wxEVT_COMMAND_LISTBOX_DOUBLECLICKED -wxEVT_COMMAND_CHECKLISTBOX_TOGGLED = wx.core.wxEVT_COMMAND_CHECKLISTBOX_TOGGLED -wxEVT_COMMAND_MENU_SELECTED = wx.core.wxEVT_COMMAND_MENU_SELECTED -wxEVT_COMMAND_TOOL_CLICKED = wx.core.wxEVT_COMMAND_TOOL_CLICKED -wxEVT_COMMAND_SLIDER_UPDATED = wx.core.wxEVT_COMMAND_SLIDER_UPDATED -wxEVT_COMMAND_RADIOBOX_SELECTED = wx.core.wxEVT_COMMAND_RADIOBOX_SELECTED -wxEVT_COMMAND_RADIOBUTTON_SELECTED = wx.core.wxEVT_COMMAND_RADIOBUTTON_SELECTED -wxEVT_COMMAND_SCROLLBAR_UPDATED = wx.core.wxEVT_COMMAND_SCROLLBAR_UPDATED -wxEVT_COMMAND_VLBOX_SELECTED = wx.core.wxEVT_COMMAND_VLBOX_SELECTED -wxEVT_COMMAND_COMBOBOX_SELECTED = wx.core.wxEVT_COMMAND_COMBOBOX_SELECTED -wxEVT_COMMAND_TOOL_RCLICKED = wx.core.wxEVT_COMMAND_TOOL_RCLICKED -wxEVT_COMMAND_TOOL_ENTER = wx.core.wxEVT_COMMAND_TOOL_ENTER -wxEVT_LEFT_DOWN = wx.core.wxEVT_LEFT_DOWN -wxEVT_LEFT_UP = wx.core.wxEVT_LEFT_UP -wxEVT_MIDDLE_DOWN = wx.core.wxEVT_MIDDLE_DOWN -wxEVT_MIDDLE_UP = wx.core.wxEVT_MIDDLE_UP -wxEVT_RIGHT_DOWN = wx.core.wxEVT_RIGHT_DOWN -wxEVT_RIGHT_UP = wx.core.wxEVT_RIGHT_UP -wxEVT_MOTION = wx.core.wxEVT_MOTION -wxEVT_ENTER_WINDOW = wx.core.wxEVT_ENTER_WINDOW -wxEVT_LEAVE_WINDOW = wx.core.wxEVT_LEAVE_WINDOW -wxEVT_LEFT_DCLICK = wx.core.wxEVT_LEFT_DCLICK -wxEVT_MIDDLE_DCLICK = wx.core.wxEVT_MIDDLE_DCLICK -wxEVT_RIGHT_DCLICK = wx.core.wxEVT_RIGHT_DCLICK -wxEVT_SET_FOCUS = wx.core.wxEVT_SET_FOCUS -wxEVT_KILL_FOCUS = wx.core.wxEVT_KILL_FOCUS -wxEVT_CHILD_FOCUS = wx.core.wxEVT_CHILD_FOCUS -wxEVT_MOUSEWHEEL = wx.core.wxEVT_MOUSEWHEEL -wxEVT_NC_LEFT_DOWN = wx.core.wxEVT_NC_LEFT_DOWN -wxEVT_NC_LEFT_UP = wx.core.wxEVT_NC_LEFT_UP -wxEVT_NC_MIDDLE_DOWN = wx.core.wxEVT_NC_MIDDLE_DOWN -wxEVT_NC_MIDDLE_UP = wx.core.wxEVT_NC_MIDDLE_UP -wxEVT_NC_RIGHT_DOWN = wx.core.wxEVT_NC_RIGHT_DOWN -wxEVT_NC_RIGHT_UP = wx.core.wxEVT_NC_RIGHT_UP -wxEVT_NC_MOTION = wx.core.wxEVT_NC_MOTION -wxEVT_NC_ENTER_WINDOW = wx.core.wxEVT_NC_ENTER_WINDOW -wxEVT_NC_LEAVE_WINDOW = wx.core.wxEVT_NC_LEAVE_WINDOW -wxEVT_NC_LEFT_DCLICK = wx.core.wxEVT_NC_LEFT_DCLICK -wxEVT_NC_MIDDLE_DCLICK = wx.core.wxEVT_NC_MIDDLE_DCLICK -wxEVT_NC_RIGHT_DCLICK = wx.core.wxEVT_NC_RIGHT_DCLICK -wxEVT_CHAR = wx.core.wxEVT_CHAR -wxEVT_CHAR_HOOK = wx.core.wxEVT_CHAR_HOOK -wxEVT_NAVIGATION_KEY = wx.core.wxEVT_NAVIGATION_KEY -wxEVT_KEY_DOWN = wx.core.wxEVT_KEY_DOWN -wxEVT_KEY_UP = wx.core.wxEVT_KEY_UP -wxEVT_HOTKEY = wx.core.wxEVT_HOTKEY -wxEVT_SET_CURSOR = wx.core.wxEVT_SET_CURSOR -wxEVT_SCROLL_TOP = wx.core.wxEVT_SCROLL_TOP -wxEVT_SCROLL_BOTTOM = wx.core.wxEVT_SCROLL_BOTTOM -wxEVT_SCROLL_LINEUP = wx.core.wxEVT_SCROLL_LINEUP -wxEVT_SCROLL_LINEDOWN = wx.core.wxEVT_SCROLL_LINEDOWN -wxEVT_SCROLL_PAGEUP = wx.core.wxEVT_SCROLL_PAGEUP -wxEVT_SCROLL_PAGEDOWN = wx.core.wxEVT_SCROLL_PAGEDOWN -wxEVT_SCROLL_THUMBTRACK = wx.core.wxEVT_SCROLL_THUMBTRACK -wxEVT_SCROLL_THUMBRELEASE = wx.core.wxEVT_SCROLL_THUMBRELEASE -wxEVT_SCROLL_ENDSCROLL = wx.core.wxEVT_SCROLL_ENDSCROLL -wxEVT_SCROLLWIN_TOP = wx.core.wxEVT_SCROLLWIN_TOP -wxEVT_SCROLLWIN_BOTTOM = wx.core.wxEVT_SCROLLWIN_BOTTOM -wxEVT_SCROLLWIN_LINEUP = wx.core.wxEVT_SCROLLWIN_LINEUP -wxEVT_SCROLLWIN_LINEDOWN = wx.core.wxEVT_SCROLLWIN_LINEDOWN -wxEVT_SCROLLWIN_PAGEUP = wx.core.wxEVT_SCROLLWIN_PAGEUP -wxEVT_SCROLLWIN_PAGEDOWN = wx.core.wxEVT_SCROLLWIN_PAGEDOWN -wxEVT_SCROLLWIN_THUMBTRACK = wx.core.wxEVT_SCROLLWIN_THUMBTRACK -wxEVT_SCROLLWIN_THUMBRELEASE = wx.core.wxEVT_SCROLLWIN_THUMBRELEASE -wxEVT_SIZE = wx.core.wxEVT_SIZE -wxEVT_MOVE = wx.core.wxEVT_MOVE -wxEVT_CLOSE_WINDOW = wx.core.wxEVT_CLOSE_WINDOW -wxEVT_END_SESSION = wx.core.wxEVT_END_SESSION -wxEVT_QUERY_END_SESSION = wx.core.wxEVT_QUERY_END_SESSION -wxEVT_ACTIVATE_APP = wx.core.wxEVT_ACTIVATE_APP -wxEVT_POWER = wx.core.wxEVT_POWER -wxEVT_ACTIVATE = wx.core.wxEVT_ACTIVATE -wxEVT_CREATE = wx.core.wxEVT_CREATE -wxEVT_DESTROY = wx.core.wxEVT_DESTROY -wxEVT_SHOW = wx.core.wxEVT_SHOW -wxEVT_ICONIZE = wx.core.wxEVT_ICONIZE -wxEVT_MAXIMIZE = wx.core.wxEVT_MAXIMIZE -wxEVT_MOUSE_CAPTURE_CHANGED = wx.core.wxEVT_MOUSE_CAPTURE_CHANGED -wxEVT_PAINT = wx.core.wxEVT_PAINT -wxEVT_ERASE_BACKGROUND = wx.core.wxEVT_ERASE_BACKGROUND -wxEVT_NC_PAINT = wx.core.wxEVT_NC_PAINT -wxEVT_PAINT_ICON = wx.core.wxEVT_PAINT_ICON -wxEVT_MENU_OPEN = wx.core.wxEVT_MENU_OPEN -wxEVT_MENU_CLOSE = wx.core.wxEVT_MENU_CLOSE -wxEVT_MENU_HIGHLIGHT = wx.core.wxEVT_MENU_HIGHLIGHT -wxEVT_CONTEXT_MENU = wx.core.wxEVT_CONTEXT_MENU -wxEVT_SYS_COLOUR_CHANGED = wx.core.wxEVT_SYS_COLOUR_CHANGED -wxEVT_DISPLAY_CHANGED = wx.core.wxEVT_DISPLAY_CHANGED -wxEVT_SETTING_CHANGED = wx.core.wxEVT_SETTING_CHANGED -wxEVT_QUERY_NEW_PALETTE = wx.core.wxEVT_QUERY_NEW_PALETTE -wxEVT_PALETTE_CHANGED = wx.core.wxEVT_PALETTE_CHANGED -wxEVT_DROP_FILES = wx.core.wxEVT_DROP_FILES -wxEVT_DRAW_ITEM = wx.core.wxEVT_DRAW_ITEM -wxEVT_MEASURE_ITEM = wx.core.wxEVT_MEASURE_ITEM -wxEVT_COMPARE_ITEM = wx.core.wxEVT_COMPARE_ITEM -wxEVT_INIT_DIALOG = wx.core.wxEVT_INIT_DIALOG -wxEVT_IDLE = wx.core.wxEVT_IDLE -wxEVT_UPDATE_UI = wx.core.wxEVT_UPDATE_UI -wxEVT_SIZING = wx.core.wxEVT_SIZING -wxEVT_MOVING = wx.core.wxEVT_MOVING -wxEVT_COMMAND_LEFT_CLICK = wx.core.wxEVT_COMMAND_LEFT_CLICK -wxEVT_COMMAND_LEFT_DCLICK = wx.core.wxEVT_COMMAND_LEFT_DCLICK -wxEVT_COMMAND_RIGHT_CLICK = wx.core.wxEVT_COMMAND_RIGHT_CLICK -wxEVT_COMMAND_RIGHT_DCLICK = wx.core.wxEVT_COMMAND_RIGHT_DCLICK -wxEVT_COMMAND_SET_FOCUS = wx.core.wxEVT_COMMAND_SET_FOCUS -wxEVT_COMMAND_KILL_FOCUS = wx.core.wxEVT_COMMAND_KILL_FOCUS -wxEVT_COMMAND_ENTER = wx.core.wxEVT_COMMAND_ENTER -wxEvent = wx.core.Event -wxEventPtr = wx.core.EventPtr -wxPropagationDisabler = wx.core.PropagationDisabler -wxPropagationDisablerPtr = wx.core.PropagationDisablerPtr -wxPropagateOnce = wx.core.PropagateOnce -wxPropagateOncePtr = wx.core.PropagateOncePtr -wxCommandEvent = wx.core.CommandEvent -wxCommandEventPtr = wx.core.CommandEventPtr -wxNotifyEvent = wx.core.NotifyEvent -wxNotifyEventPtr = wx.core.NotifyEventPtr -wxScrollEvent = wx.core.ScrollEvent -wxScrollEventPtr = wx.core.ScrollEventPtr -wxScrollWinEvent = wx.core.ScrollWinEvent -wxScrollWinEventPtr = wx.core.ScrollWinEventPtr -wxMOUSE_BTN_ANY = wx.core.MOUSE_BTN_ANY -wxMOUSE_BTN_NONE = wx.core.MOUSE_BTN_NONE -wxMOUSE_BTN_LEFT = wx.core.MOUSE_BTN_LEFT -wxMOUSE_BTN_MIDDLE = wx.core.MOUSE_BTN_MIDDLE -wxMOUSE_BTN_RIGHT = wx.core.MOUSE_BTN_RIGHT -wxMouseEvent = wx.core.MouseEvent -wxMouseEventPtr = wx.core.MouseEventPtr -wxSetCursorEvent = wx.core.SetCursorEvent -wxSetCursorEventPtr = wx.core.SetCursorEventPtr -wxKeyEvent = wx.core.KeyEvent -wxKeyEventPtr = wx.core.KeyEventPtr -wxSizeEvent = wx.core.SizeEvent -wxSizeEventPtr = wx.core.SizeEventPtr -wxMoveEvent = wx.core.MoveEvent -wxMoveEventPtr = wx.core.MoveEventPtr -wxPaintEvent = wx.core.PaintEvent -wxPaintEventPtr = wx.core.PaintEventPtr -wxNcPaintEvent = wx.core.NcPaintEvent -wxNcPaintEventPtr = wx.core.NcPaintEventPtr -wxEraseEvent = wx.core.EraseEvent -wxEraseEventPtr = wx.core.EraseEventPtr -wxFocusEvent = wx.core.FocusEvent -wxFocusEventPtr = wx.core.FocusEventPtr -wxChildFocusEvent = wx.core.ChildFocusEvent -wxChildFocusEventPtr = wx.core.ChildFocusEventPtr -wxActivateEvent = wx.core.ActivateEvent -wxActivateEventPtr = wx.core.ActivateEventPtr -wxInitDialogEvent = wx.core.InitDialogEvent -wxInitDialogEventPtr = wx.core.InitDialogEventPtr -wxMenuEvent = wx.core.MenuEvent -wxMenuEventPtr = wx.core.MenuEventPtr -wxCloseEvent = wx.core.CloseEvent -wxCloseEventPtr = wx.core.CloseEventPtr -wxShowEvent = wx.core.ShowEvent -wxShowEventPtr = wx.core.ShowEventPtr -wxIconizeEvent = wx.core.IconizeEvent -wxIconizeEventPtr = wx.core.IconizeEventPtr -wxMaximizeEvent = wx.core.MaximizeEvent -wxMaximizeEventPtr = wx.core.MaximizeEventPtr -wxDropFilesEvent = wx.core.DropFilesEvent -wxDropFilesEventPtr = wx.core.DropFilesEventPtr -wxUPDATE_UI_PROCESS_ALL = wx.core.UPDATE_UI_PROCESS_ALL -wxUPDATE_UI_PROCESS_SPECIFIED = wx.core.UPDATE_UI_PROCESS_SPECIFIED -wxUpdateUIEvent = wx.core.UpdateUIEvent -wxUpdateUIEventPtr = wx.core.UpdateUIEventPtr -wxUpdateUIEvent_SetUpdateInterval = wx.core.UpdateUIEvent_SetUpdateInterval -wxUpdateUIEvent_GetUpdateInterval = wx.core.UpdateUIEvent_GetUpdateInterval -wxUpdateUIEvent_CanUpdate = wx.core.UpdateUIEvent_CanUpdate -wxUpdateUIEvent_ResetUpdateTime = wx.core.UpdateUIEvent_ResetUpdateTime -wxUpdateUIEvent_SetMode = wx.core.UpdateUIEvent_SetMode -wxUpdateUIEvent_GetMode = wx.core.UpdateUIEvent_GetMode -wxSysColourChangedEvent = wx.core.SysColourChangedEvent -wxSysColourChangedEventPtr = wx.core.SysColourChangedEventPtr -wxMouseCaptureChangedEvent = wx.core.MouseCaptureChangedEvent -wxMouseCaptureChangedEventPtr = wx.core.MouseCaptureChangedEventPtr -wxDisplayChangedEvent = wx.core.DisplayChangedEvent -wxDisplayChangedEventPtr = wx.core.DisplayChangedEventPtr -wxPaletteChangedEvent = wx.core.PaletteChangedEvent -wxPaletteChangedEventPtr = wx.core.PaletteChangedEventPtr -wxQueryNewPaletteEvent = wx.core.QueryNewPaletteEvent -wxQueryNewPaletteEventPtr = wx.core.QueryNewPaletteEventPtr -wxNavigationKeyEvent = wx.core.NavigationKeyEvent -wxNavigationKeyEventPtr = wx.core.NavigationKeyEventPtr -wxWindowCreateEvent = wx.core.WindowCreateEvent -wxWindowCreateEventPtr = wx.core.WindowCreateEventPtr -wxWindowDestroyEvent = wx.core.WindowDestroyEvent -wxWindowDestroyEventPtr = wx.core.WindowDestroyEventPtr -wxContextMenuEvent = wx.core.ContextMenuEvent -wxContextMenuEventPtr = wx.core.ContextMenuEventPtr -wxIDLE_PROCESS_ALL = wx.core.IDLE_PROCESS_ALL -wxIDLE_PROCESS_SPECIFIED = wx.core.IDLE_PROCESS_SPECIFIED -wxIdleEvent = wx.core.IdleEvent -wxIdleEventPtr = wx.core.IdleEventPtr -wxIdleEvent_SetMode = wx.core.IdleEvent_SetMode -wxIdleEvent_GetMode = wx.core.IdleEvent_GetMode -wxIdleEvent_CanSend = wx.core.IdleEvent_CanSend -wxPyEvent = wx.core.PyEvent -wxPyEventPtr = wx.core.PyEventPtr -wxPyCommandEvent = wx.core.PyCommandEvent -wxPyCommandEventPtr = wx.core.PyCommandEventPtr -wxPYAPP_ASSERT_SUPPRESS = wx.core.PYAPP_ASSERT_SUPPRESS -wxPYAPP_ASSERT_EXCEPTION = wx.core.PYAPP_ASSERT_EXCEPTION -wxPYAPP_ASSERT_DIALOG = wx.core.PYAPP_ASSERT_DIALOG -wxPYAPP_ASSERT_LOG = wx.core.PYAPP_ASSERT_LOG -wxPRINT_WINDOWS = wx.core.PRINT_WINDOWS -wxPRINT_POSTSCRIPT = wx.core.PRINT_POSTSCRIPT -wxPyApp = wx.core.PyApp -wxPyAppPtr = wx.core.PyAppPtr -wxPyApp_GetMacSupportPCMenuShortcuts = wx.core.PyApp_GetMacSupportPCMenuShortcuts -wxPyApp_GetMacAboutMenuItemId = wx.core.PyApp_GetMacAboutMenuItemId -wxPyApp_GetMacPreferencesMenuItemId = wx.core.PyApp_GetMacPreferencesMenuItemId -wxPyApp_GetMacExitMenuItemId = wx.core.PyApp_GetMacExitMenuItemId -wxPyApp_GetMacHelpMenuTitleName = wx.core.PyApp_GetMacHelpMenuTitleName -wxPyApp_SetMacSupportPCMenuShortcuts = wx.core.PyApp_SetMacSupportPCMenuShortcuts -wxPyApp_SetMacAboutMenuItemId = wx.core.PyApp_SetMacAboutMenuItemId -wxPyApp_SetMacPreferencesMenuItemId = wx.core.PyApp_SetMacPreferencesMenuItemId -wxPyApp_SetMacExitMenuItemId = wx.core.PyApp_SetMacExitMenuItemId -wxPyApp_SetMacHelpMenuTitleName = wx.core.PyApp_SetMacHelpMenuTitleName -wxPyApp_GetComCtl32Version = wx.core.PyApp_GetComCtl32Version -wxExit = wx.core.Exit -wxYield = wx.core.Yield -wxYieldIfNeeded = wx.core.YieldIfNeeded -wxSafeYield = wx.core.SafeYield -wxWakeUpIdle = wx.core.WakeUpIdle -wxPostEvent = wx.core.PostEvent -wxApp_CleanUp = wx.core.App_CleanUp -wxGetApp = wx.core.GetApp -wxAcceleratorEntry = wx.core.AcceleratorEntry -wxAcceleratorEntryPtr = wx.core.AcceleratorEntryPtr -wxAcceleratorTable = wx.core.AcceleratorTable -wxAcceleratorTablePtr = wx.core.AcceleratorTablePtr -wxNullAcceleratorTable = wx.core.NullAcceleratorTable -wxGetAccelFromString = wx.core.GetAccelFromString -wxPanelNameStr = wx.core.PanelNameStr -wxVisualAttributes = wx.core.VisualAttributes -wxVisualAttributesPtr = wx.core.VisualAttributesPtr -wxWINDOW_VARIANT_NORMAL = wx.core.WINDOW_VARIANT_NORMAL -wxWINDOW_VARIANT_SMALL = wx.core.WINDOW_VARIANT_SMALL -wxWINDOW_VARIANT_MINI = wx.core.WINDOW_VARIANT_MINI -wxWINDOW_VARIANT_LARGE = wx.core.WINDOW_VARIANT_LARGE -wxWINDOW_VARIANT_MAX = wx.core.WINDOW_VARIANT_MAX -wxWindow = wx.core.Window -wxWindowPtr = wx.core.WindowPtr -wxPreWindow = wx.core.PreWindow -wxWindow_NewControlId = wx.core.Window_NewControlId -wxWindow_NextControlId = wx.core.Window_NextControlId -wxWindow_PrevControlId = wx.core.Window_PrevControlId -wxWindow_FindFocus = wx.core.Window_FindFocus -wxWindow_GetCapture = wx.core.Window_GetCapture -wxWindow_GetClassDefaultAttributes = wx.core.Window_GetClassDefaultAttributes -wxFindWindowById = wx.core.FindWindowById -wxFindWindowByName = wx.core.FindWindowByName -wxFindWindowByLabel = wx.core.FindWindowByLabel -wxWindow_FromHWND = wx.core.Window_FromHWND -wxValidator = wx.core.Validator -wxValidatorPtr = wx.core.ValidatorPtr -wxValidator_IsSilent = wx.core.Validator_IsSilent -wxValidator_SetBellOnError = wx.core.Validator_SetBellOnError -wxPyValidator = wx.core.PyValidator -wxPyValidatorPtr = wx.core.PyValidatorPtr -wxDefaultValidator = wx.core.DefaultValidator -wxMenu = wx.core.Menu -wxMenuPtr = wx.core.MenuPtr -wxMenuBar = wx.core.MenuBar -wxMenuBarPtr = wx.core.MenuBarPtr -wxMenuItem = wx.core.MenuItem -wxMenuItemPtr = wx.core.MenuItemPtr -wxMenuItem_GetLabelFromText = wx.core.MenuItem_GetLabelFromText -wxMenuItem_GetDefaultMarginWidth = wx.core.MenuItem_GetDefaultMarginWidth -wxControlNameStr = wx.core.ControlNameStr -wxControl = wx.core.Control -wxControlPtr = wx.core.ControlPtr -wxPreControl = wx.core.PreControl -wxControl_GetClassDefaultAttributes = wx.core.Control_GetClassDefaultAttributes -wxItemContainer = wx.core.ItemContainer -wxItemContainerPtr = wx.core.ItemContainerPtr -wxControlWithItems = wx.core.ControlWithItems -wxControlWithItemsPtr = wx.core.ControlWithItemsPtr -wxSizerItem = wx.core.SizerItem -wxSizerItemPtr = wx.core.SizerItemPtr -wxSizerItemSpacer = wx.core.SizerItemSpacer -wxSizerItemWindow = wx.core.SizerItemWindow -wxSizerItemSizer = wx.core.SizerItemSizer -wxSizer = wx.core.Sizer -wxSizerPtr = wx.core.SizerPtr -wxPySizer = wx.core.PySizer -wxPySizerPtr = wx.core.PySizerPtr -wxBoxSizer = wx.core.BoxSizer -wxBoxSizerPtr = wx.core.BoxSizerPtr -wxStaticBoxSizer = wx.core.StaticBoxSizer -wxStaticBoxSizerPtr = wx.core.StaticBoxSizerPtr -wxGridSizer = wx.core.GridSizer -wxGridSizerPtr = wx.core.GridSizerPtr -wxFLEX_GROWMODE_NONE = wx.core.FLEX_GROWMODE_NONE -wxFLEX_GROWMODE_SPECIFIED = wx.core.FLEX_GROWMODE_SPECIFIED -wxFLEX_GROWMODE_ALL = wx.core.FLEX_GROWMODE_ALL -wxFlexGridSizer = wx.core.FlexGridSizer -wxFlexGridSizerPtr = wx.core.FlexGridSizerPtr -wxGBPosition = wx.core.GBPosition -wxGBPositionPtr = wx.core.GBPositionPtr -wxGBSpan = wx.core.GBSpan -wxGBSpanPtr = wx.core.GBSpanPtr -wxDefaultSpan = wx.core.DefaultSpan -wxGBSizerItem = wx.core.GBSizerItem -wxGBSizerItemPtr = wx.core.GBSizerItemPtr -wxGBSizerItemWindow = wx.core.GBSizerItemWindow -wxGBSizerItemSizer = wx.core.GBSizerItemSizer -wxGBSizerItemSpacer = wx.core.GBSizerItemSpacer -wxGridBagSizer = wx.core.GridBagSizer -wxGridBagSizerPtr = wx.core.GridBagSizerPtr -wxLeft = wx.core.Left -wxTop = wx.core.Top -wxRight = wx.core.Right -wxBottom = wx.core.Bottom -wxWidth = wx.core.Width -wxHeight = wx.core.Height -wxCentre = wx.core.Centre -wxCenter = wx.core.Center -wxCentreX = wx.core.CentreX -wxCentreY = wx.core.CentreY -wxUnconstrained = wx.core.Unconstrained -wxAsIs = wx.core.AsIs -wxPercentOf = wx.core.PercentOf -wxAbove = wx.core.Above -wxBelow = wx.core.Below -wxLeftOf = wx.core.LeftOf -wxRightOf = wx.core.RightOf -wxSameAs = wx.core.SameAs -wxAbsolute = wx.core.Absolute -wxIndividualLayoutConstraint = wx.core.IndividualLayoutConstraint -wxIndividualLayoutConstraintPtr = wx.core.IndividualLayoutConstraintPtr -wxLayoutConstraints = wx.core.LayoutConstraints -wxLayoutConstraintsPtr = wx.core.LayoutConstraintsPtr -wxPyOnDemandOutputWindow = wx.core.PyOnDemandOutputWindow -wxApp = wx.core.App -wxPySimpleApp = wx.core.PySimpleApp -wxPyWidgetTester = wx.core.PyWidgetTester -wxApp_GetMacSupportPCMenuShortcuts = wx.core.App_GetMacSupportPCMenuShortcuts -wxApp_GetMacAboutMenuItemId = wx.core.App_GetMacAboutMenuItemId -wxApp_GetMacPreferencesMenuItemId = wx.core.App_GetMacPreferencesMenuItemId -wxApp_GetMacExitMenuItemId = wx.core.App_GetMacExitMenuItemId -wxApp_GetMacHelpMenuTitleName = wx.core.App_GetMacHelpMenuTitleName -wxApp_SetMacSupportPCMenuShortcuts = wx.core.App_SetMacSupportPCMenuShortcuts -wxApp_SetMacAboutMenuItemId = wx.core.App_SetMacAboutMenuItemId -wxApp_SetMacPreferencesMenuItemId = wx.core.App_SetMacPreferencesMenuItemId -wxApp_SetMacExitMenuItemId = wx.core.App_SetMacExitMenuItemId -wxApp_SetMacHelpMenuTitleName = wx.core.App_SetMacHelpMenuTitleName -wxApp_GetComCtl32Version = wx.core.App_GetComCtl32Version -wxPlatform = wx.core.Platform -wxUSE_UNICODE = wx.core.USE_UNICODE -wxVERSION_STRING = wx.core.VERSION_STRING -wxMAJOR_VERSION = wx.core.MAJOR_VERSION -wxMINOR_VERSION = wx.core.MINOR_VERSION -wxRELEASE_VERSION = wx.core.RELEASE_VERSION -wxSUBREL_VERSION = wx.core.SUBREL_VERSION -wxVERSION = wx.core.VERSION -wxRELEASE_NUMBER = wx.core.RELEASE_NUMBER -wxPyUnbornObjectError = wx.core.PyUnbornObjectError -wxPyDeadObjectError = wx.core.PyDeadObjectError -wxCallAfter = wx.core.CallAfter -wxFutureCall = wx.core.FutureCall -wxNotebookPage = wx.core.NotebookPage -wxPyEventBinder = wx.core.PyEventBinder -wxDLG_PNT = wx.core.DLG_PNT -wxDLG_SZE = wx.core.DLG_SZE -wxPyAssertionError = wx.core.PyAssertionError -wxMemoryFSHandler_AddFile = wx.core.MemoryFSHandler_AddFile - - -d = globals() -for k, v in wx.core.__dict__.iteritems(): - if k.startswith('EVT'): - d[k] = v - elif k.startswith('WXK'): - d[k] = v - elif k.startswith('__version__'): - d[k] = v -del d, k, v - - - diff --git a/wxPython/wxPython/gdi.py b/wxPython/wxPython/gdi.py deleted file mode 100644 index 65bc00c752..0000000000 --- a/wxPython/wxPython/gdi.py +++ /dev/null @@ -1,595 +0,0 @@ -## This file reverse renames symbols in the wx package to give -## them their wx prefix again, for backwards compatibility. -## -## Generated by ./distrib/build_renamers.py - -# This silly stuff here is so the wxPython.wx module doesn't conflict -# with the wx package. We need to import modules from the wx package -# here, then we'll put the wxPython.wx entry back in sys.modules. -import sys -_wx = None -if sys.modules.has_key('wxPython.wx'): - _wx = sys.modules['wxPython.wx'] - del sys.modules['wxPython.wx'] - -import wx.gdi - -sys.modules['wxPython.wx'] = _wx -del sys, _wx - - -# Now assign all the reverse-renamed names: -wxGDIObject = wx.gdi.GDIObject -wxGDIObjectPtr = wx.gdi.GDIObjectPtr -wxColour = wx.gdi.Colour -wxColourPtr = wx.gdi.ColourPtr -wxNamedColour = wx.gdi.NamedColour -wxColourRGB = wx.gdi.ColourRGB -wxPalette = wx.gdi.Palette -wxPalettePtr = wx.gdi.PalettePtr -wxPen = wx.gdi.Pen -wxPenPtr = wx.gdi.PenPtr -wxPyPen = wx.gdi.PyPen -wxPyPenPtr = wx.gdi.PyPenPtr -wxBrush = wx.gdi.Brush -wxBrushPtr = wx.gdi.BrushPtr -wxBitmap = wx.gdi.Bitmap -wxBitmapPtr = wx.gdi.BitmapPtr -wxBitmapFromIcon = wx.gdi.BitmapFromIcon -wxBitmapFromImage = wx.gdi.BitmapFromImage -wxBitmapFromXPMData = wx.gdi.BitmapFromXPMData -wxBitmapFromBits = wx.gdi.BitmapFromBits -wxEmptyBitmap = wx.gdi.EmptyBitmap -wxEmptyBitmap = wx.gdi.EmptyBitmap -wxMask = wx.gdi.Mask -wxMaskPtr = wx.gdi.MaskPtr -wxIcon = wx.gdi.Icon -wxIconPtr = wx.gdi.IconPtr -wxEmptyIcon = wx.gdi.EmptyIcon -wxIconFromLocation = wx.gdi.IconFromLocation -wxIconFromBitmap = wx.gdi.IconFromBitmap -wxIconFromXPMData = wx.gdi.IconFromXPMData -wxIconLocation = wx.gdi.IconLocation -wxIconLocationPtr = wx.gdi.IconLocationPtr -wxIconBundle = wx.gdi.IconBundle -wxIconBundlePtr = wx.gdi.IconBundlePtr -wxIconBundleFromFile = wx.gdi.IconBundleFromFile -wxIconBundleFromIcon = wx.gdi.IconBundleFromIcon -wxCursor = wx.gdi.Cursor -wxCursorPtr = wx.gdi.CursorPtr -wxStockCursor = wx.gdi.StockCursor -wxCursorFromImage = wx.gdi.CursorFromImage -wxOutRegion = wx.gdi.OutRegion -wxPartRegion = wx.gdi.PartRegion -wxInRegion = wx.gdi.InRegion -wxRegion = wx.gdi.Region -wxRegionPtr = wx.gdi.RegionPtr -wxRegionFromBitmap = wx.gdi.RegionFromBitmap -wxRegionFromPoints = wx.gdi.RegionFromPoints -wxRegionIterator = wx.gdi.RegionIterator -wxRegionIteratorPtr = wx.gdi.RegionIteratorPtr -wxFONTFAMILY_DEFAULT = wx.gdi.FONTFAMILY_DEFAULT -wxFONTFAMILY_DECORATIVE = wx.gdi.FONTFAMILY_DECORATIVE -wxFONTFAMILY_ROMAN = wx.gdi.FONTFAMILY_ROMAN -wxFONTFAMILY_SCRIPT = wx.gdi.FONTFAMILY_SCRIPT -wxFONTFAMILY_SWISS = wx.gdi.FONTFAMILY_SWISS -wxFONTFAMILY_MODERN = wx.gdi.FONTFAMILY_MODERN -wxFONTFAMILY_TELETYPE = wx.gdi.FONTFAMILY_TELETYPE -wxFONTFAMILY_MAX = wx.gdi.FONTFAMILY_MAX -wxFONTFAMILY_UNKNOWN = wx.gdi.FONTFAMILY_UNKNOWN -wxFONTSTYLE_NORMAL = wx.gdi.FONTSTYLE_NORMAL -wxFONTSTYLE_ITALIC = wx.gdi.FONTSTYLE_ITALIC -wxFONTSTYLE_SLANT = wx.gdi.FONTSTYLE_SLANT -wxFONTSTYLE_MAX = wx.gdi.FONTSTYLE_MAX -wxFONTWEIGHT_NORMAL = wx.gdi.FONTWEIGHT_NORMAL -wxFONTWEIGHT_LIGHT = wx.gdi.FONTWEIGHT_LIGHT -wxFONTWEIGHT_BOLD = wx.gdi.FONTWEIGHT_BOLD -wxFONTWEIGHT_MAX = wx.gdi.FONTWEIGHT_MAX -wxFONTFLAG_DEFAULT = wx.gdi.FONTFLAG_DEFAULT -wxFONTFLAG_ITALIC = wx.gdi.FONTFLAG_ITALIC -wxFONTFLAG_SLANT = wx.gdi.FONTFLAG_SLANT -wxFONTFLAG_LIGHT = wx.gdi.FONTFLAG_LIGHT -wxFONTFLAG_BOLD = wx.gdi.FONTFLAG_BOLD -wxFONTFLAG_ANTIALIASED = wx.gdi.FONTFLAG_ANTIALIASED -wxFONTFLAG_NOT_ANTIALIASED = wx.gdi.FONTFLAG_NOT_ANTIALIASED -wxFONTFLAG_UNDERLINED = wx.gdi.FONTFLAG_UNDERLINED -wxFONTFLAG_STRIKETHROUGH = wx.gdi.FONTFLAG_STRIKETHROUGH -wxFONTFLAG_MASK = wx.gdi.FONTFLAG_MASK -wxFONTENCODING_SYSTEM = wx.gdi.FONTENCODING_SYSTEM -wxFONTENCODING_DEFAULT = wx.gdi.FONTENCODING_DEFAULT -wxFONTENCODING_ISO8859_1 = wx.gdi.FONTENCODING_ISO8859_1 -wxFONTENCODING_ISO8859_2 = wx.gdi.FONTENCODING_ISO8859_2 -wxFONTENCODING_ISO8859_3 = wx.gdi.FONTENCODING_ISO8859_3 -wxFONTENCODING_ISO8859_4 = wx.gdi.FONTENCODING_ISO8859_4 -wxFONTENCODING_ISO8859_5 = wx.gdi.FONTENCODING_ISO8859_5 -wxFONTENCODING_ISO8859_6 = wx.gdi.FONTENCODING_ISO8859_6 -wxFONTENCODING_ISO8859_7 = wx.gdi.FONTENCODING_ISO8859_7 -wxFONTENCODING_ISO8859_8 = wx.gdi.FONTENCODING_ISO8859_8 -wxFONTENCODING_ISO8859_9 = wx.gdi.FONTENCODING_ISO8859_9 -wxFONTENCODING_ISO8859_10 = wx.gdi.FONTENCODING_ISO8859_10 -wxFONTENCODING_ISO8859_11 = wx.gdi.FONTENCODING_ISO8859_11 -wxFONTENCODING_ISO8859_12 = wx.gdi.FONTENCODING_ISO8859_12 -wxFONTENCODING_ISO8859_13 = wx.gdi.FONTENCODING_ISO8859_13 -wxFONTENCODING_ISO8859_14 = wx.gdi.FONTENCODING_ISO8859_14 -wxFONTENCODING_ISO8859_15 = wx.gdi.FONTENCODING_ISO8859_15 -wxFONTENCODING_ISO8859_MAX = wx.gdi.FONTENCODING_ISO8859_MAX -wxFONTENCODING_KOI8 = wx.gdi.FONTENCODING_KOI8 -wxFONTENCODING_KOI8_U = wx.gdi.FONTENCODING_KOI8_U -wxFONTENCODING_ALTERNATIVE = wx.gdi.FONTENCODING_ALTERNATIVE -wxFONTENCODING_BULGARIAN = wx.gdi.FONTENCODING_BULGARIAN -wxFONTENCODING_CP437 = wx.gdi.FONTENCODING_CP437 -wxFONTENCODING_CP850 = wx.gdi.FONTENCODING_CP850 -wxFONTENCODING_CP852 = wx.gdi.FONTENCODING_CP852 -wxFONTENCODING_CP855 = wx.gdi.FONTENCODING_CP855 -wxFONTENCODING_CP866 = wx.gdi.FONTENCODING_CP866 -wxFONTENCODING_CP874 = wx.gdi.FONTENCODING_CP874 -wxFONTENCODING_CP932 = wx.gdi.FONTENCODING_CP932 -wxFONTENCODING_CP936 = wx.gdi.FONTENCODING_CP936 -wxFONTENCODING_CP949 = wx.gdi.FONTENCODING_CP949 -wxFONTENCODING_CP950 = wx.gdi.FONTENCODING_CP950 -wxFONTENCODING_CP1250 = wx.gdi.FONTENCODING_CP1250 -wxFONTENCODING_CP1251 = wx.gdi.FONTENCODING_CP1251 -wxFONTENCODING_CP1252 = wx.gdi.FONTENCODING_CP1252 -wxFONTENCODING_CP1253 = wx.gdi.FONTENCODING_CP1253 -wxFONTENCODING_CP1254 = wx.gdi.FONTENCODING_CP1254 -wxFONTENCODING_CP1255 = wx.gdi.FONTENCODING_CP1255 -wxFONTENCODING_CP1256 = wx.gdi.FONTENCODING_CP1256 -wxFONTENCODING_CP1257 = wx.gdi.FONTENCODING_CP1257 -wxFONTENCODING_CP12_MAX = wx.gdi.FONTENCODING_CP12_MAX -wxFONTENCODING_UTF7 = wx.gdi.FONTENCODING_UTF7 -wxFONTENCODING_UTF8 = wx.gdi.FONTENCODING_UTF8 -wxFONTENCODING_EUC_JP = wx.gdi.FONTENCODING_EUC_JP -wxFONTENCODING_UTF16BE = wx.gdi.FONTENCODING_UTF16BE -wxFONTENCODING_UTF16LE = wx.gdi.FONTENCODING_UTF16LE -wxFONTENCODING_UTF32BE = wx.gdi.FONTENCODING_UTF32BE -wxFONTENCODING_UTF32LE = wx.gdi.FONTENCODING_UTF32LE -wxFONTENCODING_MACROMAN = wx.gdi.FONTENCODING_MACROMAN -wxFONTENCODING_MACJAPANESE = wx.gdi.FONTENCODING_MACJAPANESE -wxFONTENCODING_MACCHINESETRAD = wx.gdi.FONTENCODING_MACCHINESETRAD -wxFONTENCODING_MACKOREAN = wx.gdi.FONTENCODING_MACKOREAN -wxFONTENCODING_MACARABIC = wx.gdi.FONTENCODING_MACARABIC -wxFONTENCODING_MACHEBREW = wx.gdi.FONTENCODING_MACHEBREW -wxFONTENCODING_MACGREEK = wx.gdi.FONTENCODING_MACGREEK -wxFONTENCODING_MACCYRILLIC = wx.gdi.FONTENCODING_MACCYRILLIC -wxFONTENCODING_MACDEVANAGARI = wx.gdi.FONTENCODING_MACDEVANAGARI -wxFONTENCODING_MACGURMUKHI = wx.gdi.FONTENCODING_MACGURMUKHI -wxFONTENCODING_MACGUJARATI = wx.gdi.FONTENCODING_MACGUJARATI -wxFONTENCODING_MACORIYA = wx.gdi.FONTENCODING_MACORIYA -wxFONTENCODING_MACBENGALI = wx.gdi.FONTENCODING_MACBENGALI -wxFONTENCODING_MACTAMIL = wx.gdi.FONTENCODING_MACTAMIL -wxFONTENCODING_MACTELUGU = wx.gdi.FONTENCODING_MACTELUGU -wxFONTENCODING_MACKANNADA = wx.gdi.FONTENCODING_MACKANNADA -wxFONTENCODING_MACMALAJALAM = wx.gdi.FONTENCODING_MACMALAJALAM -wxFONTENCODING_MACSINHALESE = wx.gdi.FONTENCODING_MACSINHALESE -wxFONTENCODING_MACBURMESE = wx.gdi.FONTENCODING_MACBURMESE -wxFONTENCODING_MACKHMER = wx.gdi.FONTENCODING_MACKHMER -wxFONTENCODING_MACTHAI = wx.gdi.FONTENCODING_MACTHAI -wxFONTENCODING_MACLAOTIAN = wx.gdi.FONTENCODING_MACLAOTIAN -wxFONTENCODING_MACGEORGIAN = wx.gdi.FONTENCODING_MACGEORGIAN -wxFONTENCODING_MACARMENIAN = wx.gdi.FONTENCODING_MACARMENIAN -wxFONTENCODING_MACCHINESESIMP = wx.gdi.FONTENCODING_MACCHINESESIMP -wxFONTENCODING_MACTIBETAN = wx.gdi.FONTENCODING_MACTIBETAN -wxFONTENCODING_MACMONGOLIAN = wx.gdi.FONTENCODING_MACMONGOLIAN -wxFONTENCODING_MACETHIOPIC = wx.gdi.FONTENCODING_MACETHIOPIC -wxFONTENCODING_MACCENTRALEUR = wx.gdi.FONTENCODING_MACCENTRALEUR -wxFONTENCODING_MACVIATNAMESE = wx.gdi.FONTENCODING_MACVIATNAMESE -wxFONTENCODING_MACARABICEXT = wx.gdi.FONTENCODING_MACARABICEXT -wxFONTENCODING_MACSYMBOL = wx.gdi.FONTENCODING_MACSYMBOL -wxFONTENCODING_MACDINGBATS = wx.gdi.FONTENCODING_MACDINGBATS -wxFONTENCODING_MACTURKISH = wx.gdi.FONTENCODING_MACTURKISH -wxFONTENCODING_MACCROATIAN = wx.gdi.FONTENCODING_MACCROATIAN -wxFONTENCODING_MACICELANDIC = wx.gdi.FONTENCODING_MACICELANDIC -wxFONTENCODING_MACROMANIAN = wx.gdi.FONTENCODING_MACROMANIAN -wxFONTENCODING_MACCELTIC = wx.gdi.FONTENCODING_MACCELTIC -wxFONTENCODING_MACGAELIC = wx.gdi.FONTENCODING_MACGAELIC -wxFONTENCODING_MACKEYBOARD = wx.gdi.FONTENCODING_MACKEYBOARD -wxFONTENCODING_MACMIN = wx.gdi.FONTENCODING_MACMIN -wxFONTENCODING_MACMAX = wx.gdi.FONTENCODING_MACMAX -wxFONTENCODING_MAX = wx.gdi.FONTENCODING_MAX -wxFONTENCODING_UTF16 = wx.gdi.FONTENCODING_UTF16 -wxFONTENCODING_UTF32 = wx.gdi.FONTENCODING_UTF32 -wxFONTENCODING_UNICODE = wx.gdi.FONTENCODING_UNICODE -wxFONTENCODING_GB2312 = wx.gdi.FONTENCODING_GB2312 -wxFONTENCODING_BIG5 = wx.gdi.FONTENCODING_BIG5 -wxFONTENCODING_SHIFT_JIS = wx.gdi.FONTENCODING_SHIFT_JIS -wxNativeFontInfo = wx.gdi.NativeFontInfo -wxNativeFontInfoPtr = wx.gdi.NativeFontInfoPtr -wxNativeEncodingInfo = wx.gdi.NativeEncodingInfo -wxNativeEncodingInfoPtr = wx.gdi.NativeEncodingInfoPtr -wxGetNativeFontEncoding = wx.gdi.GetNativeFontEncoding -wxTestFontEncoding = wx.gdi.TestFontEncoding -wxFontMapper = wx.gdi.FontMapper -wxFontMapperPtr = wx.gdi.FontMapperPtr -wxFontMapper_Get = wx.gdi.FontMapper_Get -wxFontMapper_Set = wx.gdi.FontMapper_Set -wxFontMapper_GetSupportedEncodingsCount = wx.gdi.FontMapper_GetSupportedEncodingsCount -wxFontMapper_GetEncoding = wx.gdi.FontMapper_GetEncoding -wxFontMapper_GetEncodingName = wx.gdi.FontMapper_GetEncodingName -wxFontMapper_GetEncodingDescription = wx.gdi.FontMapper_GetEncodingDescription -wxFontMapper_GetEncodingFromName = wx.gdi.FontMapper_GetEncodingFromName -wxFontMapper_GetDefaultConfigPath = wx.gdi.FontMapper_GetDefaultConfigPath -wxFont = wx.gdi.Font -wxFontPtr = wx.gdi.FontPtr -wxFontFromNativeInfo = wx.gdi.FontFromNativeInfo -wxFontFromNativeInfoString = wx.gdi.FontFromNativeInfoString -wxFont2 = wx.gdi.Font2 -wxFont_GetDefaultEncoding = wx.gdi.Font_GetDefaultEncoding -wxFont_SetDefaultEncoding = wx.gdi.Font_SetDefaultEncoding -wxFontEnumerator = wx.gdi.FontEnumerator -wxFontEnumeratorPtr = wx.gdi.FontEnumeratorPtr -wxLANGUAGE_DEFAULT = wx.gdi.LANGUAGE_DEFAULT -wxLANGUAGE_UNKNOWN = wx.gdi.LANGUAGE_UNKNOWN -wxLANGUAGE_ABKHAZIAN = wx.gdi.LANGUAGE_ABKHAZIAN -wxLANGUAGE_AFAR = wx.gdi.LANGUAGE_AFAR -wxLANGUAGE_AFRIKAANS = wx.gdi.LANGUAGE_AFRIKAANS -wxLANGUAGE_ALBANIAN = wx.gdi.LANGUAGE_ALBANIAN -wxLANGUAGE_AMHARIC = wx.gdi.LANGUAGE_AMHARIC -wxLANGUAGE_ARABIC = wx.gdi.LANGUAGE_ARABIC -wxLANGUAGE_ARABIC_ALGERIA = wx.gdi.LANGUAGE_ARABIC_ALGERIA -wxLANGUAGE_ARABIC_BAHRAIN = wx.gdi.LANGUAGE_ARABIC_BAHRAIN -wxLANGUAGE_ARABIC_EGYPT = wx.gdi.LANGUAGE_ARABIC_EGYPT -wxLANGUAGE_ARABIC_IRAQ = wx.gdi.LANGUAGE_ARABIC_IRAQ -wxLANGUAGE_ARABIC_JORDAN = wx.gdi.LANGUAGE_ARABIC_JORDAN -wxLANGUAGE_ARABIC_KUWAIT = wx.gdi.LANGUAGE_ARABIC_KUWAIT -wxLANGUAGE_ARABIC_LEBANON = wx.gdi.LANGUAGE_ARABIC_LEBANON -wxLANGUAGE_ARABIC_LIBYA = wx.gdi.LANGUAGE_ARABIC_LIBYA -wxLANGUAGE_ARABIC_MOROCCO = wx.gdi.LANGUAGE_ARABIC_MOROCCO -wxLANGUAGE_ARABIC_OMAN = wx.gdi.LANGUAGE_ARABIC_OMAN -wxLANGUAGE_ARABIC_QATAR = wx.gdi.LANGUAGE_ARABIC_QATAR -wxLANGUAGE_ARABIC_SAUDI_ARABIA = wx.gdi.LANGUAGE_ARABIC_SAUDI_ARABIA -wxLANGUAGE_ARABIC_SUDAN = wx.gdi.LANGUAGE_ARABIC_SUDAN -wxLANGUAGE_ARABIC_SYRIA = wx.gdi.LANGUAGE_ARABIC_SYRIA -wxLANGUAGE_ARABIC_TUNISIA = wx.gdi.LANGUAGE_ARABIC_TUNISIA -wxLANGUAGE_ARABIC_UAE = wx.gdi.LANGUAGE_ARABIC_UAE -wxLANGUAGE_ARABIC_YEMEN = wx.gdi.LANGUAGE_ARABIC_YEMEN -wxLANGUAGE_ARMENIAN = wx.gdi.LANGUAGE_ARMENIAN -wxLANGUAGE_ASSAMESE = wx.gdi.LANGUAGE_ASSAMESE -wxLANGUAGE_AYMARA = wx.gdi.LANGUAGE_AYMARA -wxLANGUAGE_AZERI = wx.gdi.LANGUAGE_AZERI -wxLANGUAGE_AZERI_CYRILLIC = wx.gdi.LANGUAGE_AZERI_CYRILLIC -wxLANGUAGE_AZERI_LATIN = wx.gdi.LANGUAGE_AZERI_LATIN -wxLANGUAGE_BASHKIR = wx.gdi.LANGUAGE_BASHKIR -wxLANGUAGE_BASQUE = wx.gdi.LANGUAGE_BASQUE -wxLANGUAGE_BELARUSIAN = wx.gdi.LANGUAGE_BELARUSIAN -wxLANGUAGE_BENGALI = wx.gdi.LANGUAGE_BENGALI -wxLANGUAGE_BHUTANI = wx.gdi.LANGUAGE_BHUTANI -wxLANGUAGE_BIHARI = wx.gdi.LANGUAGE_BIHARI -wxLANGUAGE_BISLAMA = wx.gdi.LANGUAGE_BISLAMA -wxLANGUAGE_BRETON = wx.gdi.LANGUAGE_BRETON -wxLANGUAGE_BULGARIAN = wx.gdi.LANGUAGE_BULGARIAN -wxLANGUAGE_BURMESE = wx.gdi.LANGUAGE_BURMESE -wxLANGUAGE_CAMBODIAN = wx.gdi.LANGUAGE_CAMBODIAN -wxLANGUAGE_CATALAN = wx.gdi.LANGUAGE_CATALAN -wxLANGUAGE_CHINESE = wx.gdi.LANGUAGE_CHINESE -wxLANGUAGE_CHINESE_SIMPLIFIED = wx.gdi.LANGUAGE_CHINESE_SIMPLIFIED -wxLANGUAGE_CHINESE_TRADITIONAL = wx.gdi.LANGUAGE_CHINESE_TRADITIONAL -wxLANGUAGE_CHINESE_HONGKONG = wx.gdi.LANGUAGE_CHINESE_HONGKONG -wxLANGUAGE_CHINESE_MACAU = wx.gdi.LANGUAGE_CHINESE_MACAU -wxLANGUAGE_CHINESE_SINGAPORE = wx.gdi.LANGUAGE_CHINESE_SINGAPORE -wxLANGUAGE_CHINESE_TAIWAN = wx.gdi.LANGUAGE_CHINESE_TAIWAN -wxLANGUAGE_CORSICAN = wx.gdi.LANGUAGE_CORSICAN -wxLANGUAGE_CROATIAN = wx.gdi.LANGUAGE_CROATIAN -wxLANGUAGE_CZECH = wx.gdi.LANGUAGE_CZECH -wxLANGUAGE_DANISH = wx.gdi.LANGUAGE_DANISH -wxLANGUAGE_DUTCH = wx.gdi.LANGUAGE_DUTCH -wxLANGUAGE_DUTCH_BELGIAN = wx.gdi.LANGUAGE_DUTCH_BELGIAN -wxLANGUAGE_ENGLISH = wx.gdi.LANGUAGE_ENGLISH -wxLANGUAGE_ENGLISH_UK = wx.gdi.LANGUAGE_ENGLISH_UK -wxLANGUAGE_ENGLISH_US = wx.gdi.LANGUAGE_ENGLISH_US -wxLANGUAGE_ENGLISH_AUSTRALIA = wx.gdi.LANGUAGE_ENGLISH_AUSTRALIA -wxLANGUAGE_ENGLISH_BELIZE = wx.gdi.LANGUAGE_ENGLISH_BELIZE -wxLANGUAGE_ENGLISH_BOTSWANA = wx.gdi.LANGUAGE_ENGLISH_BOTSWANA -wxLANGUAGE_ENGLISH_CANADA = wx.gdi.LANGUAGE_ENGLISH_CANADA -wxLANGUAGE_ENGLISH_CARIBBEAN = wx.gdi.LANGUAGE_ENGLISH_CARIBBEAN -wxLANGUAGE_ENGLISH_DENMARK = wx.gdi.LANGUAGE_ENGLISH_DENMARK -wxLANGUAGE_ENGLISH_EIRE = wx.gdi.LANGUAGE_ENGLISH_EIRE -wxLANGUAGE_ENGLISH_JAMAICA = wx.gdi.LANGUAGE_ENGLISH_JAMAICA -wxLANGUAGE_ENGLISH_NEW_ZEALAND = wx.gdi.LANGUAGE_ENGLISH_NEW_ZEALAND -wxLANGUAGE_ENGLISH_PHILIPPINES = wx.gdi.LANGUAGE_ENGLISH_PHILIPPINES -wxLANGUAGE_ENGLISH_SOUTH_AFRICA = wx.gdi.LANGUAGE_ENGLISH_SOUTH_AFRICA -wxLANGUAGE_ENGLISH_TRINIDAD = wx.gdi.LANGUAGE_ENGLISH_TRINIDAD -wxLANGUAGE_ENGLISH_ZIMBABWE = wx.gdi.LANGUAGE_ENGLISH_ZIMBABWE -wxLANGUAGE_ESPERANTO = wx.gdi.LANGUAGE_ESPERANTO -wxLANGUAGE_ESTONIAN = wx.gdi.LANGUAGE_ESTONIAN -wxLANGUAGE_FAEROESE = wx.gdi.LANGUAGE_FAEROESE -wxLANGUAGE_FARSI = wx.gdi.LANGUAGE_FARSI -wxLANGUAGE_FIJI = wx.gdi.LANGUAGE_FIJI -wxLANGUAGE_FINNISH = wx.gdi.LANGUAGE_FINNISH -wxLANGUAGE_FRENCH = wx.gdi.LANGUAGE_FRENCH -wxLANGUAGE_FRENCH_BELGIAN = wx.gdi.LANGUAGE_FRENCH_BELGIAN -wxLANGUAGE_FRENCH_CANADIAN = wx.gdi.LANGUAGE_FRENCH_CANADIAN -wxLANGUAGE_FRENCH_LUXEMBOURG = wx.gdi.LANGUAGE_FRENCH_LUXEMBOURG -wxLANGUAGE_FRENCH_MONACO = wx.gdi.LANGUAGE_FRENCH_MONACO -wxLANGUAGE_FRENCH_SWISS = wx.gdi.LANGUAGE_FRENCH_SWISS -wxLANGUAGE_FRISIAN = wx.gdi.LANGUAGE_FRISIAN -wxLANGUAGE_GALICIAN = wx.gdi.LANGUAGE_GALICIAN -wxLANGUAGE_GEORGIAN = wx.gdi.LANGUAGE_GEORGIAN -wxLANGUAGE_GERMAN = wx.gdi.LANGUAGE_GERMAN -wxLANGUAGE_GERMAN_AUSTRIAN = wx.gdi.LANGUAGE_GERMAN_AUSTRIAN -wxLANGUAGE_GERMAN_BELGIUM = wx.gdi.LANGUAGE_GERMAN_BELGIUM -wxLANGUAGE_GERMAN_LIECHTENSTEIN = wx.gdi.LANGUAGE_GERMAN_LIECHTENSTEIN -wxLANGUAGE_GERMAN_LUXEMBOURG = wx.gdi.LANGUAGE_GERMAN_LUXEMBOURG -wxLANGUAGE_GERMAN_SWISS = wx.gdi.LANGUAGE_GERMAN_SWISS -wxLANGUAGE_GREEK = wx.gdi.LANGUAGE_GREEK -wxLANGUAGE_GREENLANDIC = wx.gdi.LANGUAGE_GREENLANDIC -wxLANGUAGE_GUARANI = wx.gdi.LANGUAGE_GUARANI -wxLANGUAGE_GUJARATI = wx.gdi.LANGUAGE_GUJARATI -wxLANGUAGE_HAUSA = wx.gdi.LANGUAGE_HAUSA -wxLANGUAGE_HEBREW = wx.gdi.LANGUAGE_HEBREW -wxLANGUAGE_HINDI = wx.gdi.LANGUAGE_HINDI -wxLANGUAGE_HUNGARIAN = wx.gdi.LANGUAGE_HUNGARIAN -wxLANGUAGE_ICELANDIC = wx.gdi.LANGUAGE_ICELANDIC -wxLANGUAGE_INDONESIAN = wx.gdi.LANGUAGE_INDONESIAN -wxLANGUAGE_INTERLINGUA = wx.gdi.LANGUAGE_INTERLINGUA -wxLANGUAGE_INTERLINGUE = wx.gdi.LANGUAGE_INTERLINGUE -wxLANGUAGE_INUKTITUT = wx.gdi.LANGUAGE_INUKTITUT -wxLANGUAGE_INUPIAK = wx.gdi.LANGUAGE_INUPIAK -wxLANGUAGE_IRISH = wx.gdi.LANGUAGE_IRISH -wxLANGUAGE_ITALIAN = wx.gdi.LANGUAGE_ITALIAN -wxLANGUAGE_ITALIAN_SWISS = wx.gdi.LANGUAGE_ITALIAN_SWISS -wxLANGUAGE_JAPANESE = wx.gdi.LANGUAGE_JAPANESE -wxLANGUAGE_JAVANESE = wx.gdi.LANGUAGE_JAVANESE -wxLANGUAGE_KANNADA = wx.gdi.LANGUAGE_KANNADA -wxLANGUAGE_KASHMIRI = wx.gdi.LANGUAGE_KASHMIRI -wxLANGUAGE_KASHMIRI_INDIA = wx.gdi.LANGUAGE_KASHMIRI_INDIA -wxLANGUAGE_KAZAKH = wx.gdi.LANGUAGE_KAZAKH -wxLANGUAGE_KERNEWEK = wx.gdi.LANGUAGE_KERNEWEK -wxLANGUAGE_KINYARWANDA = wx.gdi.LANGUAGE_KINYARWANDA -wxLANGUAGE_KIRGHIZ = wx.gdi.LANGUAGE_KIRGHIZ -wxLANGUAGE_KIRUNDI = wx.gdi.LANGUAGE_KIRUNDI -wxLANGUAGE_KONKANI = wx.gdi.LANGUAGE_KONKANI -wxLANGUAGE_KOREAN = wx.gdi.LANGUAGE_KOREAN -wxLANGUAGE_KURDISH = wx.gdi.LANGUAGE_KURDISH -wxLANGUAGE_LAOTHIAN = wx.gdi.LANGUAGE_LAOTHIAN -wxLANGUAGE_LATIN = wx.gdi.LANGUAGE_LATIN -wxLANGUAGE_LATVIAN = wx.gdi.LANGUAGE_LATVIAN -wxLANGUAGE_LINGALA = wx.gdi.LANGUAGE_LINGALA -wxLANGUAGE_LITHUANIAN = wx.gdi.LANGUAGE_LITHUANIAN -wxLANGUAGE_MACEDONIAN = wx.gdi.LANGUAGE_MACEDONIAN -wxLANGUAGE_MALAGASY = wx.gdi.LANGUAGE_MALAGASY -wxLANGUAGE_MALAY = wx.gdi.LANGUAGE_MALAY -wxLANGUAGE_MALAYALAM = wx.gdi.LANGUAGE_MALAYALAM -wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM = wx.gdi.LANGUAGE_MALAY_BRUNEI_DARUSSALAM -wxLANGUAGE_MALAY_MALAYSIA = wx.gdi.LANGUAGE_MALAY_MALAYSIA -wxLANGUAGE_MALTESE = wx.gdi.LANGUAGE_MALTESE -wxLANGUAGE_MANIPURI = wx.gdi.LANGUAGE_MANIPURI -wxLANGUAGE_MAORI = wx.gdi.LANGUAGE_MAORI -wxLANGUAGE_MARATHI = wx.gdi.LANGUAGE_MARATHI -wxLANGUAGE_MOLDAVIAN = wx.gdi.LANGUAGE_MOLDAVIAN -wxLANGUAGE_MONGOLIAN = wx.gdi.LANGUAGE_MONGOLIAN -wxLANGUAGE_NAURU = wx.gdi.LANGUAGE_NAURU -wxLANGUAGE_NEPALI = wx.gdi.LANGUAGE_NEPALI -wxLANGUAGE_NEPALI_INDIA = wx.gdi.LANGUAGE_NEPALI_INDIA -wxLANGUAGE_NORWEGIAN_BOKMAL = wx.gdi.LANGUAGE_NORWEGIAN_BOKMAL -wxLANGUAGE_NORWEGIAN_NYNORSK = wx.gdi.LANGUAGE_NORWEGIAN_NYNORSK -wxLANGUAGE_OCCITAN = wx.gdi.LANGUAGE_OCCITAN -wxLANGUAGE_ORIYA = wx.gdi.LANGUAGE_ORIYA -wxLANGUAGE_OROMO = wx.gdi.LANGUAGE_OROMO -wxLANGUAGE_PASHTO = wx.gdi.LANGUAGE_PASHTO -wxLANGUAGE_POLISH = wx.gdi.LANGUAGE_POLISH -wxLANGUAGE_PORTUGUESE = wx.gdi.LANGUAGE_PORTUGUESE -wxLANGUAGE_PORTUGUESE_BRAZILIAN = wx.gdi.LANGUAGE_PORTUGUESE_BRAZILIAN -wxLANGUAGE_PUNJABI = wx.gdi.LANGUAGE_PUNJABI -wxLANGUAGE_QUECHUA = wx.gdi.LANGUAGE_QUECHUA -wxLANGUAGE_RHAETO_ROMANCE = wx.gdi.LANGUAGE_RHAETO_ROMANCE -wxLANGUAGE_ROMANIAN = wx.gdi.LANGUAGE_ROMANIAN -wxLANGUAGE_RUSSIAN = wx.gdi.LANGUAGE_RUSSIAN -wxLANGUAGE_RUSSIAN_UKRAINE = wx.gdi.LANGUAGE_RUSSIAN_UKRAINE -wxLANGUAGE_SAMOAN = wx.gdi.LANGUAGE_SAMOAN -wxLANGUAGE_SANGHO = wx.gdi.LANGUAGE_SANGHO -wxLANGUAGE_SANSKRIT = wx.gdi.LANGUAGE_SANSKRIT -wxLANGUAGE_SCOTS_GAELIC = wx.gdi.LANGUAGE_SCOTS_GAELIC -wxLANGUAGE_SERBIAN = wx.gdi.LANGUAGE_SERBIAN -wxLANGUAGE_SERBIAN_CYRILLIC = wx.gdi.LANGUAGE_SERBIAN_CYRILLIC -wxLANGUAGE_SERBIAN_LATIN = wx.gdi.LANGUAGE_SERBIAN_LATIN -wxLANGUAGE_SERBO_CROATIAN = wx.gdi.LANGUAGE_SERBO_CROATIAN -wxLANGUAGE_SESOTHO = wx.gdi.LANGUAGE_SESOTHO -wxLANGUAGE_SETSWANA = wx.gdi.LANGUAGE_SETSWANA -wxLANGUAGE_SHONA = wx.gdi.LANGUAGE_SHONA -wxLANGUAGE_SINDHI = wx.gdi.LANGUAGE_SINDHI -wxLANGUAGE_SINHALESE = wx.gdi.LANGUAGE_SINHALESE -wxLANGUAGE_SISWATI = wx.gdi.LANGUAGE_SISWATI -wxLANGUAGE_SLOVAK = wx.gdi.LANGUAGE_SLOVAK -wxLANGUAGE_SLOVENIAN = wx.gdi.LANGUAGE_SLOVENIAN -wxLANGUAGE_SOMALI = wx.gdi.LANGUAGE_SOMALI -wxLANGUAGE_SPANISH = wx.gdi.LANGUAGE_SPANISH -wxLANGUAGE_SPANISH_ARGENTINA = wx.gdi.LANGUAGE_SPANISH_ARGENTINA -wxLANGUAGE_SPANISH_BOLIVIA = wx.gdi.LANGUAGE_SPANISH_BOLIVIA -wxLANGUAGE_SPANISH_CHILE = wx.gdi.LANGUAGE_SPANISH_CHILE -wxLANGUAGE_SPANISH_COLOMBIA = wx.gdi.LANGUAGE_SPANISH_COLOMBIA -wxLANGUAGE_SPANISH_COSTA_RICA = wx.gdi.LANGUAGE_SPANISH_COSTA_RICA -wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC = wx.gdi.LANGUAGE_SPANISH_DOMINICAN_REPUBLIC -wxLANGUAGE_SPANISH_ECUADOR = wx.gdi.LANGUAGE_SPANISH_ECUADOR -wxLANGUAGE_SPANISH_EL_SALVADOR = wx.gdi.LANGUAGE_SPANISH_EL_SALVADOR -wxLANGUAGE_SPANISH_GUATEMALA = wx.gdi.LANGUAGE_SPANISH_GUATEMALA -wxLANGUAGE_SPANISH_HONDURAS = wx.gdi.LANGUAGE_SPANISH_HONDURAS -wxLANGUAGE_SPANISH_MEXICAN = wx.gdi.LANGUAGE_SPANISH_MEXICAN -wxLANGUAGE_SPANISH_MODERN = wx.gdi.LANGUAGE_SPANISH_MODERN -wxLANGUAGE_SPANISH_NICARAGUA = wx.gdi.LANGUAGE_SPANISH_NICARAGUA -wxLANGUAGE_SPANISH_PANAMA = wx.gdi.LANGUAGE_SPANISH_PANAMA -wxLANGUAGE_SPANISH_PARAGUAY = wx.gdi.LANGUAGE_SPANISH_PARAGUAY -wxLANGUAGE_SPANISH_PERU = wx.gdi.LANGUAGE_SPANISH_PERU -wxLANGUAGE_SPANISH_PUERTO_RICO = wx.gdi.LANGUAGE_SPANISH_PUERTO_RICO -wxLANGUAGE_SPANISH_URUGUAY = wx.gdi.LANGUAGE_SPANISH_URUGUAY -wxLANGUAGE_SPANISH_US = wx.gdi.LANGUAGE_SPANISH_US -wxLANGUAGE_SPANISH_VENEZUELA = wx.gdi.LANGUAGE_SPANISH_VENEZUELA -wxLANGUAGE_SUNDANESE = wx.gdi.LANGUAGE_SUNDANESE -wxLANGUAGE_SWAHILI = wx.gdi.LANGUAGE_SWAHILI -wxLANGUAGE_SWEDISH = wx.gdi.LANGUAGE_SWEDISH -wxLANGUAGE_SWEDISH_FINLAND = wx.gdi.LANGUAGE_SWEDISH_FINLAND -wxLANGUAGE_TAGALOG = wx.gdi.LANGUAGE_TAGALOG -wxLANGUAGE_TAJIK = wx.gdi.LANGUAGE_TAJIK -wxLANGUAGE_TAMIL = wx.gdi.LANGUAGE_TAMIL -wxLANGUAGE_TATAR = wx.gdi.LANGUAGE_TATAR -wxLANGUAGE_TELUGU = wx.gdi.LANGUAGE_TELUGU -wxLANGUAGE_THAI = wx.gdi.LANGUAGE_THAI -wxLANGUAGE_TIBETAN = wx.gdi.LANGUAGE_TIBETAN -wxLANGUAGE_TIGRINYA = wx.gdi.LANGUAGE_TIGRINYA -wxLANGUAGE_TONGA = wx.gdi.LANGUAGE_TONGA -wxLANGUAGE_TSONGA = wx.gdi.LANGUAGE_TSONGA -wxLANGUAGE_TURKISH = wx.gdi.LANGUAGE_TURKISH -wxLANGUAGE_TURKMEN = wx.gdi.LANGUAGE_TURKMEN -wxLANGUAGE_TWI = wx.gdi.LANGUAGE_TWI -wxLANGUAGE_UIGHUR = wx.gdi.LANGUAGE_UIGHUR -wxLANGUAGE_UKRAINIAN = wx.gdi.LANGUAGE_UKRAINIAN -wxLANGUAGE_URDU = wx.gdi.LANGUAGE_URDU -wxLANGUAGE_URDU_INDIA = wx.gdi.LANGUAGE_URDU_INDIA -wxLANGUAGE_URDU_PAKISTAN = wx.gdi.LANGUAGE_URDU_PAKISTAN -wxLANGUAGE_UZBEK = wx.gdi.LANGUAGE_UZBEK -wxLANGUAGE_UZBEK_CYRILLIC = wx.gdi.LANGUAGE_UZBEK_CYRILLIC -wxLANGUAGE_UZBEK_LATIN = wx.gdi.LANGUAGE_UZBEK_LATIN -wxLANGUAGE_VIETNAMESE = wx.gdi.LANGUAGE_VIETNAMESE -wxLANGUAGE_VOLAPUK = wx.gdi.LANGUAGE_VOLAPUK -wxLANGUAGE_WELSH = wx.gdi.LANGUAGE_WELSH -wxLANGUAGE_WOLOF = wx.gdi.LANGUAGE_WOLOF -wxLANGUAGE_XHOSA = wx.gdi.LANGUAGE_XHOSA -wxLANGUAGE_YIDDISH = wx.gdi.LANGUAGE_YIDDISH -wxLANGUAGE_YORUBA = wx.gdi.LANGUAGE_YORUBA -wxLANGUAGE_ZHUANG = wx.gdi.LANGUAGE_ZHUANG -wxLANGUAGE_ZULU = wx.gdi.LANGUAGE_ZULU -wxLANGUAGE_USER_DEFINED = wx.gdi.LANGUAGE_USER_DEFINED -wxLanguageInfo = wx.gdi.LanguageInfo -wxLanguageInfoPtr = wx.gdi.LanguageInfoPtr -wxLOCALE_CAT_NUMBER = wx.gdi.LOCALE_CAT_NUMBER -wxLOCALE_CAT_DATE = wx.gdi.LOCALE_CAT_DATE -wxLOCALE_CAT_MONEY = wx.gdi.LOCALE_CAT_MONEY -wxLOCALE_CAT_MAX = wx.gdi.LOCALE_CAT_MAX -wxLOCALE_THOUSANDS_SEP = wx.gdi.LOCALE_THOUSANDS_SEP -wxLOCALE_DECIMAL_POINT = wx.gdi.LOCALE_DECIMAL_POINT -wxLOCALE_LOAD_DEFAULT = wx.gdi.LOCALE_LOAD_DEFAULT -wxLOCALE_CONV_ENCODING = wx.gdi.LOCALE_CONV_ENCODING -wxLocale = wx.gdi.Locale -wxLocalePtr = wx.gdi.LocalePtr -wxLocale_GetSystemLanguage = wx.gdi.Locale_GetSystemLanguage -wxLocale_GetSystemEncoding = wx.gdi.Locale_GetSystemEncoding -wxLocale_GetSystemEncodingName = wx.gdi.Locale_GetSystemEncodingName -wxLocale_AddCatalogLookupPathPrefix = wx.gdi.Locale_AddCatalogLookupPathPrefix -wxLocale_GetLanguageInfo = wx.gdi.Locale_GetLanguageInfo -wxLocale_GetLanguageName = wx.gdi.Locale_GetLanguageName -wxLocale_FindLanguageInfo = wx.gdi.Locale_FindLanguageInfo -wxLocale_AddLanguage = wx.gdi.Locale_AddLanguage -wxGetLocale = wx.gdi.GetLocale -wxGetTranslation = wx.gdi.GetTranslation -wxGetTranslation = wx.gdi.GetTranslation -wxCONVERT_STRICT = wx.gdi.CONVERT_STRICT -wxCONVERT_SUBSTITUTE = wx.gdi.CONVERT_SUBSTITUTE -wxPLATFORM_CURRENT = wx.gdi.PLATFORM_CURRENT -wxPLATFORM_UNIX = wx.gdi.PLATFORM_UNIX -wxPLATFORM_WINDOWS = wx.gdi.PLATFORM_WINDOWS -wxPLATFORM_OS2 = wx.gdi.PLATFORM_OS2 -wxPLATFORM_MAC = wx.gdi.PLATFORM_MAC -wxEncodingConverter = wx.gdi.EncodingConverter -wxEncodingConverterPtr = wx.gdi.EncodingConverterPtr -wxEncodingConverter_GetPlatformEquivalents = wx.gdi.EncodingConverter_GetPlatformEquivalents -wxEncodingConverter_GetAllEquivalents = wx.gdi.EncodingConverter_GetAllEquivalents -wxEncodingConverter_CanConvert = wx.gdi.EncodingConverter_CanConvert -wxDC = wx.gdi.DC -wxDCPtr = wx.gdi.DCPtr -wxMemoryDC = wx.gdi.MemoryDC -wxMemoryDCPtr = wx.gdi.MemoryDCPtr -wxMemoryDCFromDC = wx.gdi.MemoryDCFromDC -wxBufferedDC = wx.gdi.BufferedDC -wxBufferedDCPtr = wx.gdi.BufferedDCPtr -wxBufferedDCInternalBuffer = wx.gdi.BufferedDCInternalBuffer -wxBufferedPaintDC = wx.gdi.BufferedPaintDC -wxBufferedPaintDCPtr = wx.gdi.BufferedPaintDCPtr -wxScreenDC = wx.gdi.ScreenDC -wxScreenDCPtr = wx.gdi.ScreenDCPtr -wxClientDC = wx.gdi.ClientDC -wxClientDCPtr = wx.gdi.ClientDCPtr -wxPaintDC = wx.gdi.PaintDC -wxPaintDCPtr = wx.gdi.PaintDCPtr -wxWindowDC = wx.gdi.WindowDC -wxWindowDCPtr = wx.gdi.WindowDCPtr -wxMirrorDC = wx.gdi.MirrorDC -wxMirrorDCPtr = wx.gdi.MirrorDCPtr -wxPostScriptDC = wx.gdi.PostScriptDC -wxPostScriptDCPtr = wx.gdi.PostScriptDCPtr -wxPostScriptDC_SetResolution = wx.gdi.PostScriptDC_SetResolution -wxPostScriptDC_GetResolution = wx.gdi.PostScriptDC_GetResolution -wxMetaFile = wx.gdi.MetaFile -wxMetaFilePtr = wx.gdi.MetaFilePtr -wxMetaFileDC = wx.gdi.MetaFileDC -wxMetaFileDCPtr = wx.gdi.MetaFileDCPtr -wxPrinterDC = wx.gdi.PrinterDC -wxPrinterDCPtr = wx.gdi.PrinterDCPtr -wxIMAGELIST_DRAW_NORMAL = wx.gdi.IMAGELIST_DRAW_NORMAL -wxIMAGELIST_DRAW_TRANSPARENT = wx.gdi.IMAGELIST_DRAW_TRANSPARENT -wxIMAGELIST_DRAW_SELECTED = wx.gdi.IMAGELIST_DRAW_SELECTED -wxIMAGELIST_DRAW_FOCUSED = wx.gdi.IMAGELIST_DRAW_FOCUSED -wxIMAGE_LIST_NORMAL = wx.gdi.IMAGE_LIST_NORMAL -wxIMAGE_LIST_SMALL = wx.gdi.IMAGE_LIST_SMALL -wxIMAGE_LIST_STATE = wx.gdi.IMAGE_LIST_STATE -wxImageList = wx.gdi.ImageList -wxImageListPtr = wx.gdi.ImageListPtr -wxNORMAL_FONT = wx.gdi.NORMAL_FONT -wxSMALL_FONT = wx.gdi.SMALL_FONT -wxITALIC_FONT = wx.gdi.ITALIC_FONT -wxSWISS_FONT = wx.gdi.SWISS_FONT -wxRED_PEN = wx.gdi.RED_PEN -wxCYAN_PEN = wx.gdi.CYAN_PEN -wxGREEN_PEN = wx.gdi.GREEN_PEN -wxBLACK_PEN = wx.gdi.BLACK_PEN -wxWHITE_PEN = wx.gdi.WHITE_PEN -wxTRANSPARENT_PEN = wx.gdi.TRANSPARENT_PEN -wxBLACK_DASHED_PEN = wx.gdi.BLACK_DASHED_PEN -wxGREY_PEN = wx.gdi.GREY_PEN -wxMEDIUM_GREY_PEN = wx.gdi.MEDIUM_GREY_PEN -wxLIGHT_GREY_PEN = wx.gdi.LIGHT_GREY_PEN -wxBLUE_BRUSH = wx.gdi.BLUE_BRUSH -wxGREEN_BRUSH = wx.gdi.GREEN_BRUSH -wxWHITE_BRUSH = wx.gdi.WHITE_BRUSH -wxBLACK_BRUSH = wx.gdi.BLACK_BRUSH -wxTRANSPARENT_BRUSH = wx.gdi.TRANSPARENT_BRUSH -wxCYAN_BRUSH = wx.gdi.CYAN_BRUSH -wxRED_BRUSH = wx.gdi.RED_BRUSH -wxGREY_BRUSH = wx.gdi.GREY_BRUSH -wxMEDIUM_GREY_BRUSH = wx.gdi.MEDIUM_GREY_BRUSH -wxLIGHT_GREY_BRUSH = wx.gdi.LIGHT_GREY_BRUSH -wxBLACK = wx.gdi.BLACK -wxWHITE = wx.gdi.WHITE -wxRED = wx.gdi.RED -wxBLUE = wx.gdi.BLUE -wxGREEN = wx.gdi.GREEN -wxCYAN = wx.gdi.CYAN -wxLIGHT_GREY = wx.gdi.LIGHT_GREY -wxSTANDARD_CURSOR = wx.gdi.STANDARD_CURSOR -wxHOURGLASS_CURSOR = wx.gdi.HOURGLASS_CURSOR -wxCROSS_CURSOR = wx.gdi.CROSS_CURSOR -wxNullBitmap = wx.gdi.NullBitmap -wxNullIcon = wx.gdi.NullIcon -wxNullCursor = wx.gdi.NullCursor -wxNullPen = wx.gdi.NullPen -wxNullBrush = wx.gdi.NullBrush -wxNullPalette = wx.gdi.NullPalette -wxNullFont = wx.gdi.NullFont -wxNullColour = wx.gdi.NullColour -wxPenList = wx.gdi.PenList -wxPenListPtr = wx.gdi.PenListPtr -wxBrushList = wx.gdi.BrushList -wxBrushListPtr = wx.gdi.BrushListPtr -wxColourDatabase = wx.gdi.ColourDatabase -wxColourDatabasePtr = wx.gdi.ColourDatabasePtr -wxFontList = wx.gdi.FontList -wxFontListPtr = wx.gdi.FontListPtr -wxTheFontList = wx.gdi.TheFontList -wxThePenList = wx.gdi.ThePenList -wxTheBrushList = wx.gdi.TheBrushList -wxTheColourDatabase = wx.gdi.TheColourDatabase -wxEffects = wx.gdi.Effects -wxEffectsPtr = wx.gdi.EffectsPtr -wxDC_old = wx.gdi.DC_old -wxMemoryDC_old = wx.gdi.MemoryDC_old -wxBufferedDC_old = wx.gdi.BufferedDC_old -wxBufferedPaintDC_old = wx.gdi.BufferedPaintDC_old -wxScreenDC_old = wx.gdi.ScreenDC_old -wxClientDC_old = wx.gdi.ClientDC_old -wxPaintDC_old = wx.gdi.PaintDC_old -wxWindowDC_old = wx.gdi.WindowDC_old -wxMirrorDC_old = wx.gdi.MirrorDC_old -wxPostScriptDC_old = wx.gdi.PostScriptDC_old -wxMetaFileDC_old = wx.gdi.MetaFileDC_old -wxPrinterDC_old = wx.gdi.PrinterDC_old -wxMaskColour = wx.gdi.MaskColour - - diff --git a/wxPython/wxPython/misc.py b/wxPython/wxPython/misc.py deleted file mode 100644 index 5a0d324227..0000000000 --- a/wxPython/wxPython/misc.py +++ /dev/null @@ -1,579 +0,0 @@ -## This file reverse renames symbols in the wx package to give -## them their wx prefix again, for backwards compatibility. -## -## Generated by ./distrib/build_renamers.py - -# This silly stuff here is so the wxPython.wx module doesn't conflict -# with the wx package. We need to import modules from the wx package -# here, then we'll put the wxPython.wx entry back in sys.modules. -import sys -_wx = None -if sys.modules.has_key('wxPython.wx'): - _wx = sys.modules['wxPython.wx'] - del sys.modules['wxPython.wx'] - -import wx.misc - -sys.modules['wxPython.wx'] = _wx -del sys, _wx - - -# Now assign all the reverse-renamed names: -wxSYS_OEM_FIXED_FONT = wx.misc.SYS_OEM_FIXED_FONT -wxSYS_ANSI_FIXED_FONT = wx.misc.SYS_ANSI_FIXED_FONT -wxSYS_ANSI_VAR_FONT = wx.misc.SYS_ANSI_VAR_FONT -wxSYS_SYSTEM_FONT = wx.misc.SYS_SYSTEM_FONT -wxSYS_DEVICE_DEFAULT_FONT = wx.misc.SYS_DEVICE_DEFAULT_FONT -wxSYS_DEFAULT_PALETTE = wx.misc.SYS_DEFAULT_PALETTE -wxSYS_SYSTEM_FIXED_FONT = wx.misc.SYS_SYSTEM_FIXED_FONT -wxSYS_DEFAULT_GUI_FONT = wx.misc.SYS_DEFAULT_GUI_FONT -wxSYS_ICONTITLE_FONT = wx.misc.SYS_ICONTITLE_FONT -wxSYS_COLOUR_SCROLLBAR = wx.misc.SYS_COLOUR_SCROLLBAR -wxSYS_COLOUR_BACKGROUND = wx.misc.SYS_COLOUR_BACKGROUND -wxSYS_COLOUR_DESKTOP = wx.misc.SYS_COLOUR_DESKTOP -wxSYS_COLOUR_ACTIVECAPTION = wx.misc.SYS_COLOUR_ACTIVECAPTION -wxSYS_COLOUR_INACTIVECAPTION = wx.misc.SYS_COLOUR_INACTIVECAPTION -wxSYS_COLOUR_MENU = wx.misc.SYS_COLOUR_MENU -wxSYS_COLOUR_WINDOW = wx.misc.SYS_COLOUR_WINDOW -wxSYS_COLOUR_WINDOWFRAME = wx.misc.SYS_COLOUR_WINDOWFRAME -wxSYS_COLOUR_MENUTEXT = wx.misc.SYS_COLOUR_MENUTEXT -wxSYS_COLOUR_WINDOWTEXT = wx.misc.SYS_COLOUR_WINDOWTEXT -wxSYS_COLOUR_CAPTIONTEXT = wx.misc.SYS_COLOUR_CAPTIONTEXT -wxSYS_COLOUR_ACTIVEBORDER = wx.misc.SYS_COLOUR_ACTIVEBORDER -wxSYS_COLOUR_INACTIVEBORDER = wx.misc.SYS_COLOUR_INACTIVEBORDER -wxSYS_COLOUR_APPWORKSPACE = wx.misc.SYS_COLOUR_APPWORKSPACE -wxSYS_COLOUR_HIGHLIGHT = wx.misc.SYS_COLOUR_HIGHLIGHT -wxSYS_COLOUR_HIGHLIGHTTEXT = wx.misc.SYS_COLOUR_HIGHLIGHTTEXT -wxSYS_COLOUR_BTNFACE = wx.misc.SYS_COLOUR_BTNFACE -wxSYS_COLOUR_3DFACE = wx.misc.SYS_COLOUR_3DFACE -wxSYS_COLOUR_BTNSHADOW = wx.misc.SYS_COLOUR_BTNSHADOW -wxSYS_COLOUR_3DSHADOW = wx.misc.SYS_COLOUR_3DSHADOW -wxSYS_COLOUR_GRAYTEXT = wx.misc.SYS_COLOUR_GRAYTEXT -wxSYS_COLOUR_BTNTEXT = wx.misc.SYS_COLOUR_BTNTEXT -wxSYS_COLOUR_INACTIVECAPTIONTEXT = wx.misc.SYS_COLOUR_INACTIVECAPTIONTEXT -wxSYS_COLOUR_BTNHIGHLIGHT = wx.misc.SYS_COLOUR_BTNHIGHLIGHT -wxSYS_COLOUR_BTNHILIGHT = wx.misc.SYS_COLOUR_BTNHILIGHT -wxSYS_COLOUR_3DHIGHLIGHT = wx.misc.SYS_COLOUR_3DHIGHLIGHT -wxSYS_COLOUR_3DHILIGHT = wx.misc.SYS_COLOUR_3DHILIGHT -wxSYS_COLOUR_3DDKSHADOW = wx.misc.SYS_COLOUR_3DDKSHADOW -wxSYS_COLOUR_3DLIGHT = wx.misc.SYS_COLOUR_3DLIGHT -wxSYS_COLOUR_INFOTEXT = wx.misc.SYS_COLOUR_INFOTEXT -wxSYS_COLOUR_INFOBK = wx.misc.SYS_COLOUR_INFOBK -wxSYS_COLOUR_LISTBOX = wx.misc.SYS_COLOUR_LISTBOX -wxSYS_COLOUR_HOTLIGHT = wx.misc.SYS_COLOUR_HOTLIGHT -wxSYS_COLOUR_GRADIENTACTIVECAPTION = wx.misc.SYS_COLOUR_GRADIENTACTIVECAPTION -wxSYS_COLOUR_GRADIENTINACTIVECAPTION = wx.misc.SYS_COLOUR_GRADIENTINACTIVECAPTION -wxSYS_COLOUR_MENUHILIGHT = wx.misc.SYS_COLOUR_MENUHILIGHT -wxSYS_COLOUR_MENUBAR = wx.misc.SYS_COLOUR_MENUBAR -wxSYS_COLOUR_MAX = wx.misc.SYS_COLOUR_MAX -wxSYS_MOUSE_BUTTONS = wx.misc.SYS_MOUSE_BUTTONS -wxSYS_BORDER_X = wx.misc.SYS_BORDER_X -wxSYS_BORDER_Y = wx.misc.SYS_BORDER_Y -wxSYS_CURSOR_X = wx.misc.SYS_CURSOR_X -wxSYS_CURSOR_Y = wx.misc.SYS_CURSOR_Y -wxSYS_DCLICK_X = wx.misc.SYS_DCLICK_X -wxSYS_DCLICK_Y = wx.misc.SYS_DCLICK_Y -wxSYS_DRAG_X = wx.misc.SYS_DRAG_X -wxSYS_DRAG_Y = wx.misc.SYS_DRAG_Y -wxSYS_EDGE_X = wx.misc.SYS_EDGE_X -wxSYS_EDGE_Y = wx.misc.SYS_EDGE_Y -wxSYS_HSCROLL_ARROW_X = wx.misc.SYS_HSCROLL_ARROW_X -wxSYS_HSCROLL_ARROW_Y = wx.misc.SYS_HSCROLL_ARROW_Y -wxSYS_HTHUMB_X = wx.misc.SYS_HTHUMB_X -wxSYS_ICON_X = wx.misc.SYS_ICON_X -wxSYS_ICON_Y = wx.misc.SYS_ICON_Y -wxSYS_ICONSPACING_X = wx.misc.SYS_ICONSPACING_X -wxSYS_ICONSPACING_Y = wx.misc.SYS_ICONSPACING_Y -wxSYS_WINDOWMIN_X = wx.misc.SYS_WINDOWMIN_X -wxSYS_WINDOWMIN_Y = wx.misc.SYS_WINDOWMIN_Y -wxSYS_SCREEN_X = wx.misc.SYS_SCREEN_X -wxSYS_SCREEN_Y = wx.misc.SYS_SCREEN_Y -wxSYS_FRAMESIZE_X = wx.misc.SYS_FRAMESIZE_X -wxSYS_FRAMESIZE_Y = wx.misc.SYS_FRAMESIZE_Y -wxSYS_SMALLICON_X = wx.misc.SYS_SMALLICON_X -wxSYS_SMALLICON_Y = wx.misc.SYS_SMALLICON_Y -wxSYS_HSCROLL_Y = wx.misc.SYS_HSCROLL_Y -wxSYS_VSCROLL_X = wx.misc.SYS_VSCROLL_X -wxSYS_VSCROLL_ARROW_X = wx.misc.SYS_VSCROLL_ARROW_X -wxSYS_VSCROLL_ARROW_Y = wx.misc.SYS_VSCROLL_ARROW_Y -wxSYS_VTHUMB_Y = wx.misc.SYS_VTHUMB_Y -wxSYS_CAPTION_Y = wx.misc.SYS_CAPTION_Y -wxSYS_MENU_Y = wx.misc.SYS_MENU_Y -wxSYS_NETWORK_PRESENT = wx.misc.SYS_NETWORK_PRESENT -wxSYS_PENWINDOWS_PRESENT = wx.misc.SYS_PENWINDOWS_PRESENT -wxSYS_SHOW_SOUNDS = wx.misc.SYS_SHOW_SOUNDS -wxSYS_SWAP_BUTTONS = wx.misc.SYS_SWAP_BUTTONS -wxSYS_CAN_DRAW_FRAME_DECORATIONS = wx.misc.SYS_CAN_DRAW_FRAME_DECORATIONS -wxSYS_CAN_ICONIZE_FRAME = wx.misc.SYS_CAN_ICONIZE_FRAME -wxSYS_SCREEN_NONE = wx.misc.SYS_SCREEN_NONE -wxSYS_SCREEN_TINY = wx.misc.SYS_SCREEN_TINY -wxSYS_SCREEN_PDA = wx.misc.SYS_SCREEN_PDA -wxSYS_SCREEN_SMALL = wx.misc.SYS_SCREEN_SMALL -wxSYS_SCREEN_DESKTOP = wx.misc.SYS_SCREEN_DESKTOP -wxSystemSettings = wx.misc.SystemSettings -wxSystemSettingsPtr = wx.misc.SystemSettingsPtr -wxSystemSettings_GetColour = wx.misc.SystemSettings_GetColour -wxSystemSettings_GetFont = wx.misc.SystemSettings_GetFont -wxSystemSettings_GetMetric = wx.misc.SystemSettings_GetMetric -wxSystemSettings_HasFeature = wx.misc.SystemSettings_HasFeature -wxSystemSettings_GetScreenType = wx.misc.SystemSettings_GetScreenType -wxSystemSettings_SetScreenType = wx.misc.SystemSettings_SetScreenType -wxSystemOptions = wx.misc.SystemOptions -wxSystemOptionsPtr = wx.misc.SystemOptionsPtr -wxSystemOptions_SetOption = wx.misc.SystemOptions_SetOption -wxSystemOptions_SetOptionInt = wx.misc.SystemOptions_SetOptionInt -wxSystemOptions_GetOption = wx.misc.SystemOptions_GetOption -wxSystemOptions_GetOptionInt = wx.misc.SystemOptions_GetOptionInt -wxSystemOptions_HasOption = wx.misc.SystemOptions_HasOption -wxFileSelectorPromptStr = wx.misc.FileSelectorPromptStr -wxFileSelectorDefaultWildcardStr = wx.misc.FileSelectorDefaultWildcardStr -wxDirSelectorPromptStr = wx.misc.DirSelectorPromptStr -wxNewId = wx.misc.NewId -wxRegisterId = wx.misc.RegisterId -wxGetCurrentId = wx.misc.GetCurrentId -wxBell = wx.misc.Bell -wxEndBusyCursor = wx.misc.EndBusyCursor -wxGetElapsedTime = wx.misc.GetElapsedTime -wxGetMousePosition = wx.misc.GetMousePosition -wxIsBusy = wx.misc.IsBusy -wxNow = wx.misc.Now -wxShell = wx.misc.Shell -wxStartTimer = wx.misc.StartTimer -wxGetOsVersion = wx.misc.GetOsVersion -wxGetOsDescription = wx.misc.GetOsDescription -wxGetFreeMemory = wx.misc.GetFreeMemory -wxSHUTDOWN_POWEROFF = wx.misc.SHUTDOWN_POWEROFF -wxSHUTDOWN_REBOOT = wx.misc.SHUTDOWN_REBOOT -wxShutdown = wx.misc.Shutdown -wxSleep = wx.misc.Sleep -wxUsleep = wx.misc.Usleep -wxEnableTopLevelWindows = wx.misc.EnableTopLevelWindows -wxStripMenuCodes = wx.misc.StripMenuCodes -wxGetEmailAddress = wx.misc.GetEmailAddress -wxGetHostName = wx.misc.GetHostName -wxGetFullHostName = wx.misc.GetFullHostName -wxGetUserId = wx.misc.GetUserId -wxGetUserName = wx.misc.GetUserName -wxGetHomeDir = wx.misc.GetHomeDir -wxGetUserHome = wx.misc.GetUserHome -wxGetProcessId = wx.misc.GetProcessId -wxTrap = wx.misc.Trap -wxFileSelector = wx.misc.FileSelector -wxLoadFileSelector = wx.misc.LoadFileSelector -wxSaveFileSelector = wx.misc.SaveFileSelector -wxDirSelector = wx.misc.DirSelector -wxGetTextFromUser = wx.misc.GetTextFromUser -wxGetPasswordFromUser = wx.misc.GetPasswordFromUser -wxGetSingleChoice = wx.misc.GetSingleChoice -wxGetSingleChoiceIndex = wx.misc.GetSingleChoiceIndex -wxMessageBox = wx.misc.MessageBox -wxGetNumberFromUser = wx.misc.GetNumberFromUser -wxColourDisplay = wx.misc.ColourDisplay -wxDisplayDepth = wx.misc.DisplayDepth -wxGetDisplayDepth = wx.misc.GetDisplayDepth -wxDisplaySize = wx.misc.DisplaySize -wxGetDisplaySize = wx.misc.GetDisplaySize -wxDisplaySizeMM = wx.misc.DisplaySizeMM -wxGetDisplaySizeMM = wx.misc.GetDisplaySizeMM -wxClientDisplayRect = wx.misc.ClientDisplayRect -wxGetClientDisplayRect = wx.misc.GetClientDisplayRect -wxSetCursor = wx.misc.SetCursor -wxBeginBusyCursor = wx.misc.BeginBusyCursor -wxGetActiveWindow = wx.misc.GetActiveWindow -wxGenericFindWindowAtPoint = wx.misc.GenericFindWindowAtPoint -wxFindWindowAtPoint = wx.misc.FindWindowAtPoint -wxGetTopLevelParent = wx.misc.GetTopLevelParent -wxGetKeyState = wx.misc.GetKeyState -wxWakeUpMainThread = wx.misc.WakeUpMainThread -wxMutexGuiEnter = wx.misc.MutexGuiEnter -wxMutexGuiLeave = wx.misc.MutexGuiLeave -wxMutexGuiLocker = wx.misc.MutexGuiLocker -wxMutexGuiLockerPtr = wx.misc.MutexGuiLockerPtr -wxThread_IsMain = wx.misc.Thread_IsMain -wxToolTip = wx.misc.ToolTip -wxToolTipPtr = wx.misc.ToolTipPtr -wxToolTip_Enable = wx.misc.ToolTip_Enable -wxToolTip_SetDelay = wx.misc.ToolTip_SetDelay -wxCaret = wx.misc.Caret -wxCaretPtr = wx.misc.CaretPtr -wxCaret_GetBlinkTime = wx.misc.Caret_GetBlinkTime -wxCaret_SetBlinkTime = wx.misc.Caret_SetBlinkTime -wxBusyCursor = wx.misc.BusyCursor -wxBusyCursorPtr = wx.misc.BusyCursorPtr -wxWindowDisabler = wx.misc.WindowDisabler -wxWindowDisablerPtr = wx.misc.WindowDisablerPtr -wxBusyInfo = wx.misc.BusyInfo -wxBusyInfoPtr = wx.misc.BusyInfoPtr -wxStopWatch = wx.misc.StopWatch -wxStopWatchPtr = wx.misc.StopWatchPtr -wxFileHistory = wx.misc.FileHistory -wxFileHistoryPtr = wx.misc.FileHistoryPtr -wxSingleInstanceChecker = wx.misc.SingleInstanceChecker -wxSingleInstanceCheckerPtr = wx.misc.SingleInstanceCheckerPtr -wxPreSingleInstanceChecker = wx.misc.PreSingleInstanceChecker -wxDrawWindowOnDC = wx.misc.DrawWindowOnDC -wxTipProvider = wx.misc.TipProvider -wxTipProviderPtr = wx.misc.TipProviderPtr -wxPyTipProvider = wx.misc.PyTipProvider -wxPyTipProviderPtr = wx.misc.PyTipProviderPtr -wxShowTip = wx.misc.ShowTip -wxCreateFileTipProvider = wx.misc.CreateFileTipProvider -wxTIMER_CONTINUOUS = wx.misc.TIMER_CONTINUOUS -wxTIMER_ONE_SHOT = wx.misc.TIMER_ONE_SHOT -wxEVT_TIMER = wx.misc.wxEVT_TIMER -wxTimer = wx.misc.Timer -wxTimerPtr = wx.misc.TimerPtr -wxTimerEvent = wx.misc.TimerEvent -wxTimerEventPtr = wx.misc.TimerEventPtr -wxTimerRunner = wx.misc.TimerRunner -wxTimerRunnerPtr = wx.misc.TimerRunnerPtr -wxLOG_FatalError = wx.misc.LOG_FatalError -wxLOG_Error = wx.misc.LOG_Error -wxLOG_Warning = wx.misc.LOG_Warning -wxLOG_Message = wx.misc.LOG_Message -wxLOG_Status = wx.misc.LOG_Status -wxLOG_Info = wx.misc.LOG_Info -wxLOG_Debug = wx.misc.LOG_Debug -wxLOG_Trace = wx.misc.LOG_Trace -wxLOG_Progress = wx.misc.LOG_Progress -wxLOG_User = wx.misc.LOG_User -wxLOG_Max = wx.misc.LOG_Max -wxTRACE_MemAlloc = wx.misc.TRACE_MemAlloc -wxTRACE_Messages = wx.misc.TRACE_Messages -wxTRACE_ResAlloc = wx.misc.TRACE_ResAlloc -wxTRACE_RefCount = wx.misc.TRACE_RefCount -wxTRACE_OleCalls = wx.misc.TRACE_OleCalls -wxTraceMemAlloc = wx.misc.TraceMemAlloc -wxTraceMessages = wx.misc.TraceMessages -wxTraceResAlloc = wx.misc.TraceResAlloc -wxTraceRefCount = wx.misc.TraceRefCount -wxTraceOleCalls = wx.misc.TraceOleCalls -wxLog = wx.misc.Log -wxLogPtr = wx.misc.LogPtr -wxLog_IsEnabled = wx.misc.Log_IsEnabled -wxLog_EnableLogging = wx.misc.Log_EnableLogging -wxLog_OnLog = wx.misc.Log_OnLog -wxLog_FlushActive = wx.misc.Log_FlushActive -wxLog_GetActiveTarget = wx.misc.Log_GetActiveTarget -wxLog_SetActiveTarget = wx.misc.Log_SetActiveTarget -wxLog_Suspend = wx.misc.Log_Suspend -wxLog_Resume = wx.misc.Log_Resume -wxLog_SetVerbose = wx.misc.Log_SetVerbose -wxLog_SetLogLevel = wx.misc.Log_SetLogLevel -wxLog_DontCreateOnDemand = wx.misc.Log_DontCreateOnDemand -wxLog_SetTraceMask = wx.misc.Log_SetTraceMask -wxLog_AddTraceMask = wx.misc.Log_AddTraceMask -wxLog_RemoveTraceMask = wx.misc.Log_RemoveTraceMask -wxLog_ClearTraceMasks = wx.misc.Log_ClearTraceMasks -wxLog_GetTraceMasks = wx.misc.Log_GetTraceMasks -wxLog_SetTimestamp = wx.misc.Log_SetTimestamp -wxLog_GetVerbose = wx.misc.Log_GetVerbose -wxLog_GetTraceMask = wx.misc.Log_GetTraceMask -wxLog_IsAllowedTraceMask = wx.misc.Log_IsAllowedTraceMask -wxLog_GetLogLevel = wx.misc.Log_GetLogLevel -wxLog_GetTimestamp = wx.misc.Log_GetTimestamp -wxLog_TimeStamp = wx.misc.Log_TimeStamp -wxLogStderr = wx.misc.LogStderr -wxLogStderrPtr = wx.misc.LogStderrPtr -wxLogTextCtrl = wx.misc.LogTextCtrl -wxLogTextCtrlPtr = wx.misc.LogTextCtrlPtr -wxLogGui = wx.misc.LogGui -wxLogGuiPtr = wx.misc.LogGuiPtr -wxLogWindow = wx.misc.LogWindow -wxLogWindowPtr = wx.misc.LogWindowPtr -wxLogChain = wx.misc.LogChain -wxLogChainPtr = wx.misc.LogChainPtr -wxSysErrorCode = wx.misc.SysErrorCode -wxSysErrorMsg = wx.misc.SysErrorMsg -wxLogFatalError = wx.misc.LogFatalError -wxLogError = wx.misc.LogError -wxLogWarning = wx.misc.LogWarning -wxLogMessage = wx.misc.LogMessage -wxLogInfo = wx.misc.LogInfo -wxLogDebug = wx.misc.LogDebug -wxLogVerbose = wx.misc.LogVerbose -wxLogStatus = wx.misc.LogStatus -wxLogStatusFrame = wx.misc.LogStatusFrame -wxLogSysError = wx.misc.LogSysError -wxLogTrace = wx.misc.LogTrace -wxLogTrace = wx.misc.LogTrace -wxLogGeneric = wx.misc.LogGeneric -wxSafeShowMessage = wx.misc.SafeShowMessage -wxLogNull = wx.misc.LogNull -wxLogNullPtr = wx.misc.LogNullPtr -wxPyLog = wx.misc.PyLog -wxPyLogPtr = wx.misc.PyLogPtr -wxPROCESS_DEFAULT = wx.misc.PROCESS_DEFAULT -wxPROCESS_REDIRECT = wx.misc.PROCESS_REDIRECT -wxKILL_OK = wx.misc.KILL_OK -wxKILL_BAD_SIGNAL = wx.misc.KILL_BAD_SIGNAL -wxKILL_ACCESS_DENIED = wx.misc.KILL_ACCESS_DENIED -wxKILL_NO_PROCESS = wx.misc.KILL_NO_PROCESS -wxKILL_ERROR = wx.misc.KILL_ERROR -wxSIGNONE = wx.misc.SIGNONE -wxSIGHUP = wx.misc.SIGHUP -wxSIGINT = wx.misc.SIGINT -wxSIGQUIT = wx.misc.SIGQUIT -wxSIGILL = wx.misc.SIGILL -wxSIGTRAP = wx.misc.SIGTRAP -wxSIGABRT = wx.misc.SIGABRT -wxSIGIOT = wx.misc.SIGIOT -wxSIGEMT = wx.misc.SIGEMT -wxSIGFPE = wx.misc.SIGFPE -wxSIGKILL = wx.misc.SIGKILL -wxSIGBUS = wx.misc.SIGBUS -wxSIGSEGV = wx.misc.SIGSEGV -wxSIGSYS = wx.misc.SIGSYS -wxSIGPIPE = wx.misc.SIGPIPE -wxSIGALRM = wx.misc.SIGALRM -wxSIGTERM = wx.misc.SIGTERM -wxProcess = wx.misc.Process -wxProcessPtr = wx.misc.ProcessPtr -wxProcess_Kill = wx.misc.Process_Kill -wxProcess_Exists = wx.misc.Process_Exists -wxProcess_Open = wx.misc.Process_Open -wxProcessEvent = wx.misc.ProcessEvent -wxProcessEventPtr = wx.misc.ProcessEventPtr -wxEVT_END_PROCESS = wx.misc.wxEVT_END_PROCESS -wxEXEC_ASYNC = wx.misc.EXEC_ASYNC -wxEXEC_SYNC = wx.misc.EXEC_SYNC -wxEXEC_NOHIDE = wx.misc.EXEC_NOHIDE -wxEXEC_MAKE_GROUP_LEADER = wx.misc.EXEC_MAKE_GROUP_LEADER -wxExecute = wx.misc.Execute -wxJOYSTICK1 = wx.misc.JOYSTICK1 -wxJOYSTICK2 = wx.misc.JOYSTICK2 -wxJOY_BUTTON_ANY = wx.misc.JOY_BUTTON_ANY -wxJOY_BUTTON1 = wx.misc.JOY_BUTTON1 -wxJOY_BUTTON2 = wx.misc.JOY_BUTTON2 -wxJOY_BUTTON3 = wx.misc.JOY_BUTTON3 -wxJOY_BUTTON4 = wx.misc.JOY_BUTTON4 -wxJoystick = wx.misc.Joystick -wxJoystickPtr = wx.misc.JoystickPtr -wxEVT_JOY_BUTTON_DOWN = wx.misc.wxEVT_JOY_BUTTON_DOWN -wxEVT_JOY_BUTTON_UP = wx.misc.wxEVT_JOY_BUTTON_UP -wxEVT_JOY_MOVE = wx.misc.wxEVT_JOY_MOVE -wxEVT_JOY_ZMOVE = wx.misc.wxEVT_JOY_ZMOVE -wxJoystickEvent = wx.misc.JoystickEvent -wxJoystickEventPtr = wx.misc.JoystickEventPtr -wxSOUND_SYNC = wx.misc.SOUND_SYNC -wxSOUND_ASYNC = wx.misc.SOUND_ASYNC -wxSOUND_LOOP = wx.misc.SOUND_LOOP -wxSound = wx.misc.Sound -wxSoundPtr = wx.misc.SoundPtr -wxSound_PlaySound = wx.misc.Sound_PlaySound -wxSound_Stop = wx.misc.Sound_Stop -wxMAILCAP_STANDARD = wx.misc.MAILCAP_STANDARD -wxMAILCAP_NETSCAPE = wx.misc.MAILCAP_NETSCAPE -wxMAILCAP_KDE = wx.misc.MAILCAP_KDE -wxMAILCAP_GNOME = wx.misc.MAILCAP_GNOME -wxMAILCAP_ALL = wx.misc.MAILCAP_ALL -wxFileTypeInfo = wx.misc.FileTypeInfo -wxFileTypeInfoPtr = wx.misc.FileTypeInfoPtr -wxFileTypeInfoSequence = wx.misc.FileTypeInfoSequence -wxNullFileTypeInfo = wx.misc.NullFileTypeInfo -wxFileType = wx.misc.FileType -wxFileTypePtr = wx.misc.FileTypePtr -wxFileType_ExpandCommand = wx.misc.FileType_ExpandCommand -wxTheMimeTypesManager = wx.misc.TheMimeTypesManager -wxMimeTypesManager = wx.misc.MimeTypesManager -wxMimeTypesManagerPtr = wx.misc.MimeTypesManagerPtr -wxMimeTypesManager_IsOfType = wx.misc.MimeTypesManager_IsOfType -wxART_TOOLBAR = wx.misc.ART_TOOLBAR -wxART_MENU = wx.misc.ART_MENU -wxART_FRAME_ICON = wx.misc.ART_FRAME_ICON -wxART_CMN_DIALOG = wx.misc.ART_CMN_DIALOG -wxART_HELP_BROWSER = wx.misc.ART_HELP_BROWSER -wxART_MESSAGE_BOX = wx.misc.ART_MESSAGE_BOX -wxART_OTHER = wx.misc.ART_OTHER -wxART_ADD_BOOKMARK = wx.misc.ART_ADD_BOOKMARK -wxART_DEL_BOOKMARK = wx.misc.ART_DEL_BOOKMARK -wxART_HELP_SIDE_PANEL = wx.misc.ART_HELP_SIDE_PANEL -wxART_HELP_SETTINGS = wx.misc.ART_HELP_SETTINGS -wxART_HELP_BOOK = wx.misc.ART_HELP_BOOK -wxART_HELP_FOLDER = wx.misc.ART_HELP_FOLDER -wxART_HELP_PAGE = wx.misc.ART_HELP_PAGE -wxART_GO_BACK = wx.misc.ART_GO_BACK -wxART_GO_FORWARD = wx.misc.ART_GO_FORWARD -wxART_GO_UP = wx.misc.ART_GO_UP -wxART_GO_DOWN = wx.misc.ART_GO_DOWN -wxART_GO_TO_PARENT = wx.misc.ART_GO_TO_PARENT -wxART_GO_HOME = wx.misc.ART_GO_HOME -wxART_FILE_OPEN = wx.misc.ART_FILE_OPEN -wxART_PRINT = wx.misc.ART_PRINT -wxART_HELP = wx.misc.ART_HELP -wxART_TIP = wx.misc.ART_TIP -wxART_REPORT_VIEW = wx.misc.ART_REPORT_VIEW -wxART_LIST_VIEW = wx.misc.ART_LIST_VIEW -wxART_NEW_DIR = wx.misc.ART_NEW_DIR -wxART_FOLDER = wx.misc.ART_FOLDER -wxART_GO_DIR_UP = wx.misc.ART_GO_DIR_UP -wxART_EXECUTABLE_FILE = wx.misc.ART_EXECUTABLE_FILE -wxART_NORMAL_FILE = wx.misc.ART_NORMAL_FILE -wxART_TICK_MARK = wx.misc.ART_TICK_MARK -wxART_CROSS_MARK = wx.misc.ART_CROSS_MARK -wxART_ERROR = wx.misc.ART_ERROR -wxART_QUESTION = wx.misc.ART_QUESTION -wxART_WARNING = wx.misc.ART_WARNING -wxART_INFORMATION = wx.misc.ART_INFORMATION -wxART_MISSING_IMAGE = wx.misc.ART_MISSING_IMAGE -wxArtProvider = wx.misc.ArtProvider -wxArtProviderPtr = wx.misc.ArtProviderPtr -wxArtProvider_PushProvider = wx.misc.ArtProvider_PushProvider -wxArtProvider_PopProvider = wx.misc.ArtProvider_PopProvider -wxArtProvider_RemoveProvider = wx.misc.ArtProvider_RemoveProvider -wxArtProvider_GetBitmap = wx.misc.ArtProvider_GetBitmap -wxArtProvider_GetIcon = wx.misc.ArtProvider_GetIcon -wxCONFIG_USE_LOCAL_FILE = wx.misc.CONFIG_USE_LOCAL_FILE -wxCONFIG_USE_GLOBAL_FILE = wx.misc.CONFIG_USE_GLOBAL_FILE -wxCONFIG_USE_RELATIVE_PATH = wx.misc.CONFIG_USE_RELATIVE_PATH -wxCONFIG_USE_NO_ESCAPE_CHARACTERS = wx.misc.CONFIG_USE_NO_ESCAPE_CHARACTERS -wxConfigBase = wx.misc.ConfigBase -wxConfigBasePtr = wx.misc.ConfigBasePtr -wxConfigBase_Set = wx.misc.ConfigBase_Set -wxConfigBase_Get = wx.misc.ConfigBase_Get -wxConfigBase_Create = wx.misc.ConfigBase_Create -wxConfigBase_DontCreateOnDemand = wx.misc.ConfigBase_DontCreateOnDemand -wxConfig = wx.misc.Config -wxConfigPtr = wx.misc.ConfigPtr -wxFileConfig = wx.misc.FileConfig -wxFileConfigPtr = wx.misc.FileConfigPtr -wxConfigPathChanger = wx.misc.ConfigPathChanger -wxConfigPathChangerPtr = wx.misc.ConfigPathChangerPtr -wxExpandEnvVars = wx.misc.ExpandEnvVars -wxDateFormatStr = wx.misc.DateFormatStr -wxTimeSpanFormatStr = wx.misc.TimeSpanFormatStr -wxDateTime = wx.misc.DateTime -wxDateTimePtr = wx.misc.DateTimePtr -wxDateTime_SetCountry = wx.misc.DateTime_SetCountry -wxDateTime_GetCountry = wx.misc.DateTime_GetCountry -wxDateTime_IsWestEuropeanCountry = wx.misc.DateTime_IsWestEuropeanCountry -wxDateTime_GetCurrentYear = wx.misc.DateTime_GetCurrentYear -wxDateTime_ConvertYearToBC = wx.misc.DateTime_ConvertYearToBC -wxDateTime_GetCurrentMonth = wx.misc.DateTime_GetCurrentMonth -wxDateTime_IsLeapYear = wx.misc.DateTime_IsLeapYear -wxDateTime_GetCentury = wx.misc.DateTime_GetCentury -wxDateTime_GetNumberOfDaysinYear = wx.misc.DateTime_GetNumberOfDaysinYear -wxDateTime_GetNumberOfDaysInMonth = wx.misc.DateTime_GetNumberOfDaysInMonth -wxDateTime_GetMonthName = wx.misc.DateTime_GetMonthName -wxDateTime_GetWeekDayName = wx.misc.DateTime_GetWeekDayName -wxDateTime_GetAmPmStrings = wx.misc.DateTime_GetAmPmStrings -wxDateTime_IsDSTApplicable = wx.misc.DateTime_IsDSTApplicable -wxDateTime_GetBeginDST = wx.misc.DateTime_GetBeginDST -wxDateTime_GetEndDST = wx.misc.DateTime_GetEndDST -wxDateTime_Now = wx.misc.DateTime_Now -wxDateTime_UNow = wx.misc.DateTime_UNow -wxDateTime_Today = wx.misc.DateTime_Today -wxDateTimeFromTimeT = wx.misc.DateTimeFromTimeT -wxDateTimeFromJDN = wx.misc.DateTimeFromJDN -wxDateTimeFromHMS = wx.misc.DateTimeFromHMS -wxDateTimeFromDMY = wx.misc.DateTimeFromDMY -wxTimeSpan = wx.misc.TimeSpan -wxTimeSpanPtr = wx.misc.TimeSpanPtr -wxTimeSpan_Seconds = wx.misc.TimeSpan_Seconds -wxTimeSpan_Second = wx.misc.TimeSpan_Second -wxTimeSpan_Minutes = wx.misc.TimeSpan_Minutes -wxTimeSpan_Minute = wx.misc.TimeSpan_Minute -wxTimeSpan_Hours = wx.misc.TimeSpan_Hours -wxTimeSpan_Hour = wx.misc.TimeSpan_Hour -wxTimeSpan_Days = wx.misc.TimeSpan_Days -wxTimeSpan_Day = wx.misc.TimeSpan_Day -wxTimeSpan_Weeks = wx.misc.TimeSpan_Weeks -wxTimeSpan_Week = wx.misc.TimeSpan_Week -wxDateSpan = wx.misc.DateSpan -wxDateSpanPtr = wx.misc.DateSpanPtr -wxDateSpan_Days = wx.misc.DateSpan_Days -wxDateSpan_Day = wx.misc.DateSpan_Day -wxDateSpan_Weeks = wx.misc.DateSpan_Weeks -wxDateSpan_Week = wx.misc.DateSpan_Week -wxDateSpan_Months = wx.misc.DateSpan_Months -wxDateSpan_Month = wx.misc.DateSpan_Month -wxDateSpan_Years = wx.misc.DateSpan_Years -wxDateSpan_Year = wx.misc.DateSpan_Year -wxGetLocalTime = wx.misc.GetLocalTime -wxGetUTCTime = wx.misc.GetUTCTime -wxGetCurrentTime = wx.misc.GetCurrentTime -wxGetLocalTimeMillis = wx.misc.GetLocalTimeMillis -wxDefaultDateTime = wx.misc.DefaultDateTime -wxDF_INVALID = wx.misc.DF_INVALID -wxDF_TEXT = wx.misc.DF_TEXT -wxDF_BITMAP = wx.misc.DF_BITMAP -wxDF_METAFILE = wx.misc.DF_METAFILE -wxDF_SYLK = wx.misc.DF_SYLK -wxDF_DIF = wx.misc.DF_DIF -wxDF_TIFF = wx.misc.DF_TIFF -wxDF_OEMTEXT = wx.misc.DF_OEMTEXT -wxDF_DIB = wx.misc.DF_DIB -wxDF_PALETTE = wx.misc.DF_PALETTE -wxDF_PENDATA = wx.misc.DF_PENDATA -wxDF_RIFF = wx.misc.DF_RIFF -wxDF_WAVE = wx.misc.DF_WAVE -wxDF_UNICODETEXT = wx.misc.DF_UNICODETEXT -wxDF_ENHMETAFILE = wx.misc.DF_ENHMETAFILE -wxDF_FILENAME = wx.misc.DF_FILENAME -wxDF_LOCALE = wx.misc.DF_LOCALE -wxDF_PRIVATE = wx.misc.DF_PRIVATE -wxDF_HTML = wx.misc.DF_HTML -wxDF_MAX = wx.misc.DF_MAX -wxDataFormat = wx.misc.DataFormat -wxDataFormatPtr = wx.misc.DataFormatPtr -wxCustomDataFormat = wx.misc.CustomDataFormat -wxFormatInvalid = wx.misc.FormatInvalid -wxDataObject = wx.misc.DataObject -wxDataObjectPtr = wx.misc.DataObjectPtr -wxDataObjectSimple = wx.misc.DataObjectSimple -wxDataObjectSimplePtr = wx.misc.DataObjectSimplePtr -wxPyDataObjectSimple = wx.misc.PyDataObjectSimple -wxPyDataObjectSimplePtr = wx.misc.PyDataObjectSimplePtr -wxDataObjectComposite = wx.misc.DataObjectComposite -wxDataObjectCompositePtr = wx.misc.DataObjectCompositePtr -wxTextDataObject = wx.misc.TextDataObject -wxTextDataObjectPtr = wx.misc.TextDataObjectPtr -wxPyTextDataObject = wx.misc.PyTextDataObject -wxPyTextDataObjectPtr = wx.misc.PyTextDataObjectPtr -wxBitmapDataObject = wx.misc.BitmapDataObject -wxBitmapDataObjectPtr = wx.misc.BitmapDataObjectPtr -wxPyBitmapDataObject = wx.misc.PyBitmapDataObject -wxPyBitmapDataObjectPtr = wx.misc.PyBitmapDataObjectPtr -wxFileDataObject = wx.misc.FileDataObject -wxFileDataObjectPtr = wx.misc.FileDataObjectPtr -wxCustomDataObject = wx.misc.CustomDataObject -wxCustomDataObjectPtr = wx.misc.CustomDataObjectPtr -wxURLDataObject = wx.misc.URLDataObject -wxURLDataObjectPtr = wx.misc.URLDataObjectPtr -wxMetafileDataObject = wx.misc.MetafileDataObject -wxMetafileDataObjectPtr = wx.misc.MetafileDataObjectPtr -wxDrag_CopyOnly = wx.misc.Drag_CopyOnly -wxDrag_AllowMove = wx.misc.Drag_AllowMove -wxDrag_DefaultMove = wx.misc.Drag_DefaultMove -wxDragError = wx.misc.DragError -wxDragNone = wx.misc.DragNone -wxDragCopy = wx.misc.DragCopy -wxDragMove = wx.misc.DragMove -wxDragLink = wx.misc.DragLink -wxDragCancel = wx.misc.DragCancel -wxIsDragResultOk = wx.misc.IsDragResultOk -wxDropSource = wx.misc.DropSource -wxDropSourcePtr = wx.misc.DropSourcePtr -wxDropTarget = wx.misc.DropTarget -wxDropTargetPtr = wx.misc.DropTargetPtr -wxTextDropTarget = wx.misc.TextDropTarget -wxTextDropTargetPtr = wx.misc.TextDropTargetPtr -wxFileDropTarget = wx.misc.FileDropTarget -wxFileDropTargetPtr = wx.misc.FileDropTargetPtr -wxClipboard = wx.misc.Clipboard -wxClipboardPtr = wx.misc.ClipboardPtr -wxTheClipboard = wx.misc.TheClipboard -wxClipboardLocker = wx.misc.ClipboardLocker -wxClipboardLockerPtr = wx.misc.ClipboardLockerPtr -wxVideoMode = wx.misc.VideoMode -wxVideoModePtr = wx.misc.VideoModePtr -wxDefaultVideoMode = wx.misc.DefaultVideoMode -wxDisplay = wx.misc.Display -wxDisplayPtr = wx.misc.DisplayPtr -wxDisplay_GetCount = wx.misc.Display_GetCount -wxDisplay_GetFromPoint = wx.misc.Display_GetFromPoint -wxDisplay_GetFromWindow = wx.misc.Display_GetFromWindow -wxPyTimer = wx.misc.PyTimer -wxPyDropTarget = wx.misc.PyDropTarget - - diff --git a/wxPython/wxPython/windows.py b/wxPython/wxPython/windows.py deleted file mode 100644 index e7d99eefad..0000000000 --- a/wxPython/wxPython/windows.py +++ /dev/null @@ -1,325 +0,0 @@ -## This file reverse renames symbols in the wx package to give -## them their wx prefix again, for backwards compatibility. -## -## Generated by ./distrib/build_renamers.py - -# This silly stuff here is so the wxPython.wx module doesn't conflict -# with the wx package. We need to import modules from the wx package -# here, then we'll put the wxPython.wx entry back in sys.modules. -import sys -_wx = None -if sys.modules.has_key('wxPython.wx'): - _wx = sys.modules['wxPython.wx'] - del sys.modules['wxPython.wx'] - -import wx.windows - -sys.modules['wxPython.wx'] = _wx -del sys, _wx - - -# Now assign all the reverse-renamed names: -wxPanel = wx.windows.Panel -wxPanelPtr = wx.windows.PanelPtr -wxPrePanel = wx.windows.PrePanel -wxScrolledWindow = wx.windows.ScrolledWindow -wxScrolledWindowPtr = wx.windows.ScrolledWindowPtr -wxPreScrolledWindow = wx.windows.PreScrolledWindow -wxFrameNameStr = wx.windows.FrameNameStr -wxDialogNameStr = wx.windows.DialogNameStr -wxStatusLineNameStr = wx.windows.StatusLineNameStr -wxToolBarNameStr = wx.windows.ToolBarNameStr -wxSTAY_ON_TOP = wx.windows.STAY_ON_TOP -wxICONIZE = wx.windows.ICONIZE -wxMINIMIZE = wx.windows.MINIMIZE -wxMAXIMIZE = wx.windows.MAXIMIZE -wxCLOSE_BOX = wx.windows.CLOSE_BOX -wxTHICK_FRAME = wx.windows.THICK_FRAME -wxSYSTEM_MENU = wx.windows.SYSTEM_MENU -wxMINIMIZE_BOX = wx.windows.MINIMIZE_BOX -wxMAXIMIZE_BOX = wx.windows.MAXIMIZE_BOX -wxTINY_CAPTION_HORIZ = wx.windows.TINY_CAPTION_HORIZ -wxTINY_CAPTION_VERT = wx.windows.TINY_CAPTION_VERT -wxRESIZE_BOX = wx.windows.RESIZE_BOX -wxRESIZE_BORDER = wx.windows.RESIZE_BORDER -wxDIALOG_NO_PARENT = wx.windows.DIALOG_NO_PARENT -wxDEFAULT_FRAME_STYLE = wx.windows.DEFAULT_FRAME_STYLE -wxDEFAULT_DIALOG_STYLE = wx.windows.DEFAULT_DIALOG_STYLE -wxFRAME_TOOL_WINDOW = wx.windows.FRAME_TOOL_WINDOW -wxFRAME_FLOAT_ON_PARENT = wx.windows.FRAME_FLOAT_ON_PARENT -wxFRAME_NO_WINDOW_MENU = wx.windows.FRAME_NO_WINDOW_MENU -wxFRAME_NO_TASKBAR = wx.windows.FRAME_NO_TASKBAR -wxFRAME_SHAPED = wx.windows.FRAME_SHAPED -wxDIALOG_MODAL = wx.windows.DIALOG_MODAL -wxDIALOG_MODELESS = wx.windows.DIALOG_MODELESS -wxUSER_COLOURS = wx.windows.USER_COLOURS -wxNO_3D = wx.windows.NO_3D -wxFULLSCREEN_NOMENUBAR = wx.windows.FULLSCREEN_NOMENUBAR -wxFULLSCREEN_NOTOOLBAR = wx.windows.FULLSCREEN_NOTOOLBAR -wxFULLSCREEN_NOSTATUSBAR = wx.windows.FULLSCREEN_NOSTATUSBAR -wxFULLSCREEN_NOBORDER = wx.windows.FULLSCREEN_NOBORDER -wxFULLSCREEN_NOCAPTION = wx.windows.FULLSCREEN_NOCAPTION -wxFULLSCREEN_ALL = wx.windows.FULLSCREEN_ALL -wxTOPLEVEL_EX_DIALOG = wx.windows.TOPLEVEL_EX_DIALOG -wxTopLevelWindow = wx.windows.TopLevelWindow -wxTopLevelWindowPtr = wx.windows.TopLevelWindowPtr -wxFrame = wx.windows.Frame -wxFramePtr = wx.windows.FramePtr -wxPreFrame = wx.windows.PreFrame -wxDialog = wx.windows.Dialog -wxDialogPtr = wx.windows.DialogPtr -wxPreDialog = wx.windows.PreDialog -wxMiniFrame = wx.windows.MiniFrame -wxMiniFramePtr = wx.windows.MiniFramePtr -wxPreMiniFrame = wx.windows.PreMiniFrame -wxSPLASH_CENTRE_ON_PARENT = wx.windows.SPLASH_CENTRE_ON_PARENT -wxSPLASH_CENTRE_ON_SCREEN = wx.windows.SPLASH_CENTRE_ON_SCREEN -wxSPLASH_NO_CENTRE = wx.windows.SPLASH_NO_CENTRE -wxSPLASH_TIMEOUT = wx.windows.SPLASH_TIMEOUT -wxSPLASH_NO_TIMEOUT = wx.windows.SPLASH_NO_TIMEOUT -wxSplashScreenWindow = wx.windows.SplashScreenWindow -wxSplashScreenWindowPtr = wx.windows.SplashScreenWindowPtr -wxSplashScreen = wx.windows.SplashScreen -wxSplashScreenPtr = wx.windows.SplashScreenPtr -wxStatusBar = wx.windows.StatusBar -wxStatusBarPtr = wx.windows.StatusBarPtr -wxPreStatusBar = wx.windows.PreStatusBar -wxSplitterNameStr = wx.windows.SplitterNameStr -wxSP_NOBORDER = wx.windows.SP_NOBORDER -wxSP_NOSASH = wx.windows.SP_NOSASH -wxSP_PERMIT_UNSPLIT = wx.windows.SP_PERMIT_UNSPLIT -wxSP_LIVE_UPDATE = wx.windows.SP_LIVE_UPDATE -wxSP_3DSASH = wx.windows.SP_3DSASH -wxSP_3DBORDER = wx.windows.SP_3DBORDER -wxSP_NO_XP_THEME = wx.windows.SP_NO_XP_THEME -wxSP_BORDER = wx.windows.SP_BORDER -wxSP_3D = wx.windows.SP_3D -wxSPLIT_HORIZONTAL = wx.windows.SPLIT_HORIZONTAL -wxSPLIT_VERTICAL = wx.windows.SPLIT_VERTICAL -wxSPLIT_DRAG_NONE = wx.windows.SPLIT_DRAG_NONE -wxSPLIT_DRAG_DRAGGING = wx.windows.SPLIT_DRAG_DRAGGING -wxSPLIT_DRAG_LEFT_DOWN = wx.windows.SPLIT_DRAG_LEFT_DOWN -wxSplitterWindow = wx.windows.SplitterWindow -wxSplitterWindowPtr = wx.windows.SplitterWindowPtr -wxPreSplitterWindow = wx.windows.PreSplitterWindow -wxSplitterEvent = wx.windows.SplitterEvent -wxSplitterEventPtr = wx.windows.SplitterEventPtr -wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED = wx.windows.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED -wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING = wx.windows.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING -wxEVT_COMMAND_SPLITTER_DOUBLECLICKED = wx.windows.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED -wxEVT_COMMAND_SPLITTER_UNSPLIT = wx.windows.wxEVT_COMMAND_SPLITTER_UNSPLIT -wxSashNameStr = wx.windows.SashNameStr -wxSashLayoutNameStr = wx.windows.SashLayoutNameStr -wxSASH_DRAG_NONE = wx.windows.SASH_DRAG_NONE -wxSASH_DRAG_DRAGGING = wx.windows.SASH_DRAG_DRAGGING -wxSASH_DRAG_LEFT_DOWN = wx.windows.SASH_DRAG_LEFT_DOWN -wxSW_NOBORDER = wx.windows.SW_NOBORDER -wxSW_BORDER = wx.windows.SW_BORDER -wxSW_3DSASH = wx.windows.SW_3DSASH -wxSW_3DBORDER = wx.windows.SW_3DBORDER -wxSW_3D = wx.windows.SW_3D -wxSASH_TOP = wx.windows.SASH_TOP -wxSASH_RIGHT = wx.windows.SASH_RIGHT -wxSASH_BOTTOM = wx.windows.SASH_BOTTOM -wxSASH_LEFT = wx.windows.SASH_LEFT -wxSASH_NONE = wx.windows.SASH_NONE -wxSashWindow = wx.windows.SashWindow -wxSashWindowPtr = wx.windows.SashWindowPtr -wxPreSashWindow = wx.windows.PreSashWindow -wxSASH_STATUS_OK = wx.windows.SASH_STATUS_OK -wxSASH_STATUS_OUT_OF_RANGE = wx.windows.SASH_STATUS_OUT_OF_RANGE -wxSashEvent = wx.windows.SashEvent -wxSashEventPtr = wx.windows.SashEventPtr -wxEVT_SASH_DRAGGED = wx.windows.wxEVT_SASH_DRAGGED -wxLAYOUT_HORIZONTAL = wx.windows.LAYOUT_HORIZONTAL -wxLAYOUT_VERTICAL = wx.windows.LAYOUT_VERTICAL -wxLAYOUT_NONE = wx.windows.LAYOUT_NONE -wxLAYOUT_TOP = wx.windows.LAYOUT_TOP -wxLAYOUT_LEFT = wx.windows.LAYOUT_LEFT -wxLAYOUT_RIGHT = wx.windows.LAYOUT_RIGHT -wxLAYOUT_BOTTOM = wx.windows.LAYOUT_BOTTOM -wxLAYOUT_LENGTH_Y = wx.windows.LAYOUT_LENGTH_Y -wxLAYOUT_LENGTH_X = wx.windows.LAYOUT_LENGTH_X -wxLAYOUT_MRU_LENGTH = wx.windows.LAYOUT_MRU_LENGTH -wxLAYOUT_QUERY = wx.windows.LAYOUT_QUERY -wxEVT_QUERY_LAYOUT_INFO = wx.windows.wxEVT_QUERY_LAYOUT_INFO -wxEVT_CALCULATE_LAYOUT = wx.windows.wxEVT_CALCULATE_LAYOUT -wxQueryLayoutInfoEvent = wx.windows.QueryLayoutInfoEvent -wxQueryLayoutInfoEventPtr = wx.windows.QueryLayoutInfoEventPtr -wxCalculateLayoutEvent = wx.windows.CalculateLayoutEvent -wxCalculateLayoutEventPtr = wx.windows.CalculateLayoutEventPtr -wxSashLayoutWindow = wx.windows.SashLayoutWindow -wxSashLayoutWindowPtr = wx.windows.SashLayoutWindowPtr -wxPreSashLayoutWindow = wx.windows.PreSashLayoutWindow -wxLayoutAlgorithm = wx.windows.LayoutAlgorithm -wxLayoutAlgorithmPtr = wx.windows.LayoutAlgorithmPtr -wxPopupWindow = wx.windows.PopupWindow -wxPopupWindowPtr = wx.windows.PopupWindowPtr -wxPrePopupWindow = wx.windows.PrePopupWindow -wxPopupTransientWindow = wx.windows.PopupTransientWindow -wxPopupTransientWindowPtr = wx.windows.PopupTransientWindowPtr -wxPrePopupTransientWindow = wx.windows.PrePopupTransientWindow -wxTipWindow = wx.windows.TipWindow -wxTipWindowPtr = wx.windows.TipWindowPtr -wxVScrolledWindow = wx.windows.VScrolledWindow -wxVScrolledWindowPtr = wx.windows.VScrolledWindowPtr -wxPreVScrolledWindow = wx.windows.PreVScrolledWindow -wxVListBoxNameStr = wx.windows.VListBoxNameStr -wxVListBox = wx.windows.VListBox -wxVListBoxPtr = wx.windows.VListBoxPtr -wxPreVListBox = wx.windows.PreVListBox -wxHtmlListBox = wx.windows.HtmlListBox -wxHtmlListBoxPtr = wx.windows.HtmlListBoxPtr -wxPreHtmlListBox = wx.windows.PreHtmlListBox -wxTaskBarIcon = wx.windows.TaskBarIcon -wxTaskBarIconPtr = wx.windows.TaskBarIconPtr -wxTaskBarIconEvent = wx.windows.TaskBarIconEvent -wxTaskBarIconEventPtr = wx.windows.TaskBarIconEventPtr -wxEVT_TASKBAR_MOVE = wx.windows.wxEVT_TASKBAR_MOVE -wxEVT_TASKBAR_LEFT_DOWN = wx.windows.wxEVT_TASKBAR_LEFT_DOWN -wxEVT_TASKBAR_LEFT_UP = wx.windows.wxEVT_TASKBAR_LEFT_UP -wxEVT_TASKBAR_RIGHT_DOWN = wx.windows.wxEVT_TASKBAR_RIGHT_DOWN -wxEVT_TASKBAR_RIGHT_UP = wx.windows.wxEVT_TASKBAR_RIGHT_UP -wxEVT_TASKBAR_LEFT_DCLICK = wx.windows.wxEVT_TASKBAR_LEFT_DCLICK -wxEVT_TASKBAR_RIGHT_DCLICK = wx.windows.wxEVT_TASKBAR_RIGHT_DCLICK -wxFileSelectorPromptStr = wx.windows.FileSelectorPromptStr -wxDirSelectorPromptStr = wx.windows.DirSelectorPromptStr -wxDirDialogNameStr = wx.windows.DirDialogNameStr -wxFileSelectorDefaultWildcardStr = wx.windows.FileSelectorDefaultWildcardStr -wxGetTextFromUserPromptStr = wx.windows.GetTextFromUserPromptStr -wxMessageBoxCaptionStr = wx.windows.MessageBoxCaptionStr -wxColourData = wx.windows.ColourData -wxColourDataPtr = wx.windows.ColourDataPtr -wxColourDialog = wx.windows.ColourDialog -wxColourDialogPtr = wx.windows.ColourDialogPtr -wxDirDialog = wx.windows.DirDialog -wxDirDialogPtr = wx.windows.DirDialogPtr -wxFileDialog = wx.windows.FileDialog -wxFileDialogPtr = wx.windows.FileDialogPtr -wxCHOICEDLG_STYLE = wx.windows.CHOICEDLG_STYLE -wxMultiChoiceDialog = wx.windows.MultiChoiceDialog -wxMultiChoiceDialogPtr = wx.windows.MultiChoiceDialogPtr -wxSingleChoiceDialog = wx.windows.SingleChoiceDialog -wxSingleChoiceDialogPtr = wx.windows.SingleChoiceDialogPtr -wxTextEntryDialog = wx.windows.TextEntryDialog -wxTextEntryDialogPtr = wx.windows.TextEntryDialogPtr -wxFontData = wx.windows.FontData -wxFontDataPtr = wx.windows.FontDataPtr -wxFontDialog = wx.windows.FontDialog -wxFontDialogPtr = wx.windows.FontDialogPtr -wxMessageDialog = wx.windows.MessageDialog -wxMessageDialogPtr = wx.windows.MessageDialogPtr -wxProgressDialog = wx.windows.ProgressDialog -wxProgressDialogPtr = wx.windows.ProgressDialogPtr -wxFR_DOWN = wx.windows.FR_DOWN -wxFR_WHOLEWORD = wx.windows.FR_WHOLEWORD -wxFR_MATCHCASE = wx.windows.FR_MATCHCASE -wxFR_REPLACEDIALOG = wx.windows.FR_REPLACEDIALOG -wxFR_NOUPDOWN = wx.windows.FR_NOUPDOWN -wxFR_NOMATCHCASE = wx.windows.FR_NOMATCHCASE -wxFR_NOWHOLEWORD = wx.windows.FR_NOWHOLEWORD -wxEVT_COMMAND_FIND = wx.windows.wxEVT_COMMAND_FIND -wxEVT_COMMAND_FIND_NEXT = wx.windows.wxEVT_COMMAND_FIND_NEXT -wxEVT_COMMAND_FIND_REPLACE = wx.windows.wxEVT_COMMAND_FIND_REPLACE -wxEVT_COMMAND_FIND_REPLACE_ALL = wx.windows.wxEVT_COMMAND_FIND_REPLACE_ALL -wxEVT_COMMAND_FIND_CLOSE = wx.windows.wxEVT_COMMAND_FIND_CLOSE -wxFindDialogEvent = wx.windows.FindDialogEvent -wxFindDialogEventPtr = wx.windows.FindDialogEventPtr -wxFindReplaceData = wx.windows.FindReplaceData -wxFindReplaceDataPtr = wx.windows.FindReplaceDataPtr -wxFindReplaceDialog = wx.windows.FindReplaceDialog -wxFindReplaceDialogPtr = wx.windows.FindReplaceDialogPtr -wxPreFindReplaceDialog = wx.windows.PreFindReplaceDialog -IDM_WINDOWTILE = wx.windows.IDM_WINDOWTILE -IDM_WINDOWTILEHOR = wx.windows.IDM_WINDOWTILEHOR -IDM_WINDOWCASCADE = wx.windows.IDM_WINDOWCASCADE -IDM_WINDOWICONS = wx.windows.IDM_WINDOWICONS -IDM_WINDOWNEXT = wx.windows.IDM_WINDOWNEXT -IDM_WINDOWTILEVERT = wx.windows.IDM_WINDOWTILEVERT -wxFIRST_MDI_CHILD = wx.windows.FIRST_MDI_CHILD -wxLAST_MDI_CHILD = wx.windows.LAST_MDI_CHILD -wxMDIParentFrame = wx.windows.MDIParentFrame -wxMDIParentFramePtr = wx.windows.MDIParentFramePtr -wxPreMDIParentFrame = wx.windows.PreMDIParentFrame -wxMDIChildFrame = wx.windows.MDIChildFrame -wxMDIChildFramePtr = wx.windows.MDIChildFramePtr -wxPreMDIChildFrame = wx.windows.PreMDIChildFrame -wxMDIClientWindow = wx.windows.MDIClientWindow -wxMDIClientWindowPtr = wx.windows.MDIClientWindowPtr -wxPreMDIClientWindow = wx.windows.PreMDIClientWindow -wxPyWindow = wx.windows.PyWindow -wxPyWindowPtr = wx.windows.PyWindowPtr -wxPrePyWindow = wx.windows.PrePyWindow -wxPyPanel = wx.windows.PyPanel -wxPyPanelPtr = wx.windows.PyPanelPtr -wxPrePyPanel = wx.windows.PrePyPanel -wxPyScrolledWindow = wx.windows.PyScrolledWindow -wxPyScrolledWindowPtr = wx.windows.PyScrolledWindowPtr -wxPrePyScrolledWindow = wx.windows.PrePyScrolledWindow -wxPrintoutTitleStr = wx.windows.PrintoutTitleStr -wxPreviewCanvasNameStr = wx.windows.PreviewCanvasNameStr -wxPRINT_MODE_NONE = wx.windows.PRINT_MODE_NONE -wxPRINT_MODE_PREVIEW = wx.windows.PRINT_MODE_PREVIEW -wxPRINT_MODE_FILE = wx.windows.PRINT_MODE_FILE -wxPRINT_MODE_PRINTER = wx.windows.PRINT_MODE_PRINTER -wxPRINT_MODE_STREAM = wx.windows.PRINT_MODE_STREAM -wxPrintData = wx.windows.PrintData -wxPrintDataPtr = wx.windows.PrintDataPtr -wxPageSetupDialogData = wx.windows.PageSetupDialogData -wxPageSetupDialogDataPtr = wx.windows.PageSetupDialogDataPtr -wxPageSetupDialog = wx.windows.PageSetupDialog -wxPageSetupDialogPtr = wx.windows.PageSetupDialogPtr -wxPrintDialogData = wx.windows.PrintDialogData -wxPrintDialogDataPtr = wx.windows.PrintDialogDataPtr -wxPrintDialog = wx.windows.PrintDialog -wxPrintDialogPtr = wx.windows.PrintDialogPtr -wxPRINTER_NO_ERROR = wx.windows.PRINTER_NO_ERROR -wxPRINTER_CANCELLED = wx.windows.PRINTER_CANCELLED -wxPRINTER_ERROR = wx.windows.PRINTER_ERROR -wxPrinter = wx.windows.Printer -wxPrinterPtr = wx.windows.PrinterPtr -wxPrinter_GetLastError = wx.windows.Printer_GetLastError -wxPrintout = wx.windows.Printout -wxPrintoutPtr = wx.windows.PrintoutPtr -wxPreviewCanvas = wx.windows.PreviewCanvas -wxPreviewCanvasPtr = wx.windows.PreviewCanvasPtr -wxPreviewFrame = wx.windows.PreviewFrame -wxPreviewFramePtr = wx.windows.PreviewFramePtr -wxPREVIEW_PRINT = wx.windows.PREVIEW_PRINT -wxPREVIEW_PREVIOUS = wx.windows.PREVIEW_PREVIOUS -wxPREVIEW_NEXT = wx.windows.PREVIEW_NEXT -wxPREVIEW_ZOOM = wx.windows.PREVIEW_ZOOM -wxPREVIEW_FIRST = wx.windows.PREVIEW_FIRST -wxPREVIEW_LAST = wx.windows.PREVIEW_LAST -wxPREVIEW_GOTO = wx.windows.PREVIEW_GOTO -wxPREVIEW_DEFAULT = wx.windows.PREVIEW_DEFAULT -wxID_PREVIEW_CLOSE = wx.windows.ID_PREVIEW_CLOSE -wxID_PREVIEW_NEXT = wx.windows.ID_PREVIEW_NEXT -wxID_PREVIEW_PREVIOUS = wx.windows.ID_PREVIEW_PREVIOUS -wxID_PREVIEW_PRINT = wx.windows.ID_PREVIEW_PRINT -wxID_PREVIEW_ZOOM = wx.windows.ID_PREVIEW_ZOOM -wxID_PREVIEW_FIRST = wx.windows.ID_PREVIEW_FIRST -wxID_PREVIEW_LAST = wx.windows.ID_PREVIEW_LAST -wxID_PREVIEW_GOTO = wx.windows.ID_PREVIEW_GOTO -wxPreviewControlBar = wx.windows.PreviewControlBar -wxPreviewControlBarPtr = wx.windows.PreviewControlBarPtr -wxPrintPreview = wx.windows.PrintPreview -wxPrintPreviewPtr = wx.windows.PrintPreviewPtr -wxPyPrintPreview = wx.windows.PyPrintPreview -wxPyPrintPreviewPtr = wx.windows.PyPrintPreviewPtr -wxPyPreviewFrame = wx.windows.PyPreviewFrame -wxPyPreviewFramePtr = wx.windows.PyPreviewFramePtr -wxPyPreviewControlBar = wx.windows.PyPreviewControlBar -wxPyPreviewControlBarPtr = wx.windows.PyPreviewControlBarPtr - - -d = globals() -for k, v in wx.windows.__dict__.iteritems(): - if k.startswith('EVT'): - d[k] = v - elif k.startswith('IDM'): - d[k] = v -del d, k, v - - - -- 2.45.2